//Creado con Ardora - www.webardora.net
//bajo licencia Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)
//para otros usos contacte con el autor
var timeAct=360; timeIni=360; timeBon=0;
var successes=0; successesMax=1; attempts=0; attemptsMax=4;
var score=0; scoreMax=10; scoreInc=10; scoreDec=1;
var typeGame=0;
var tiTime=false;
var tiTimeType=0;
var tiButtonTime=false;
var textButtonTime="Start";
var tiSuccesses=false;
var tiAttempts=true;
var tiScore=true;
var startTime; var tiAudio=false;
var colorBack="#FFFDFD"; colorButton="#91962F"; colorText="#000000"; colorSele="#FF8000";
var goURLNext=false; goURLRepeat=false;tiAval=false;
var scoOk=0; scoWrong=0; scoOkDo=0; scoWrongDo=0; scoMessage=""; scoPtos=10;
var fMenssage="Verdana, Geneva, sans-serif";
var fActi="Verdana, Geneva, sans-serif";
var fDefs="Verdana, Geneva, sans-serif";
var fEnun="Verdana, Geneva, sans-serif";
var timeOnMessage=5; messageOk="BRAVO!!"; messageTime=""; messageError="WRONG!!"; messageErrorG="WRONG!!"; messageAttempts="START AGAIN!!"; isShowMessage=false;
var urlOk=""; urlTime=""; urlError=""; urlAttempts="";
var goURLOk="_blank"; goURLTime="_blank"; goURLAttempts="_blank"; goURLError="_blank"; 
borderOk="#008000"; borderTime="#FF0000";borderError="#FF0000"; borderAttempts="#FF0000";
var wordsGame="Y3Jvc3NsaXN0ZW4"; wordsStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
function giveZindex(typeElement){var valueZindex=0; capas=document.getElementsByTagName(typeElement);
for (i=0;i<capas.length;i++){if (parseInt($(capas[i]).css("z-index"),10)>valueZindex){valueZindex=parseInt($(capas[i]).css("z-index"),10);}}return valueZindex;}
var col=0; row=0; writeDir=0;
var cw=[["SA","RQ","QQ","RA","UA","SA","Tw","Tg","RQ","Uw","Og"],["Og","Og","Og","Og","Ug","Og","Og","Og","Og","Og","Rg"],["Og","Og","Og","Og","SQ","Og","Og","Og","Og","Og","TA"],["Og","Og","Og","Og","Tg","Og","Og","Og","Og","Og","QQ"],["Sg","Tw","WQ","Uw","VA","SQ","Qw","Sw","Og","Og","Uw"],["Og","Og","Og","Og","RQ","Og","Og","Og","Og","Og","SA"],["Og","Og","Og","Og","Ug","Og","Og","RA","Og","Og","RA"],["Og","Og","Og","Og","Og","Og","Og","Vg","Og","Og","Ug"],["Sw","RQ","WQ","Qg","Tw","QQ","Ug","RA","Og","Og","SQ"],["Og","Og","Og","Og","Og","Og","Og","Og","Og","Og","Vg"],["Og","Og","Og","Og","Og","Og","TQ","Tw","VQ","Uw","RQ"]];
var x1=[5,11,8,1,1,1,7];
var y1=[1,2,7,1,5,9,11];
var x2=[5,11,8,10,8,8,11];
var y2=[7,11,9,1,5,9,11];
var imaCW=["","","","","","",""];
var audioCW=["audio0","audio1","audio2","audio3","audio4","audio5","audio6"];
var defCW=["","","","","","",""];
var colNum=11;
var rowNum=11;
colorText="#2B2B2B";colorButton="#0086FF";colorBack="#FFFFFF";colorSele="#CBDDEB";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
