//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="Y3Jvc3N3b3Jk"; 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=[["Og","Vw","Og","Og","Uw","Og","Og","Og","Og","Og","Og"],["TA","SQ","UA","Uw","VA","SQ","Qw","Sw","Og","UA","Og"],["Og","Rw","Og","Og","VQ","Og","Og","Og","Og","SQ","Og"],["Og","Og","Og","Og","RA","Og","Og","Og","Og","RQ","Og"],["Og","VA","Og","Og","Og","Og","Og","Vg","Og","Ug","Og"],["TQ","QQ","Uw","Sw","Og","Og","Og","QQ","Og","Qw","Og"],["Og","VA","Og","Og","Og","Og","Og","Ug","Og","SQ","Og"],["Og","VA","Og","Og","Og","Og","Og","Tg","Og","Tg","Og"],["Og","Tw","Og","RQ","QQ","Ug","Ug","SQ","Tg","Rw","Uw"],["Og","Tw","Og","Og","Og","Og","Og","Uw","Og","Og","Og"],["Og","Og","Og","Og","Og","Og","Og","SA","Og","Og","Og"]];
var x1=[1,1,4,2,5,10,2,8];
var y1=[2,6,9,1,1,2,5,5];
var x2=[8,4,11,2,5,10,2,8];
var y2=[2,6,9,3,4,9,10,11];
var imaCW=["crossword_resources/media/lipstick-160269_960_720.jpg","crossword_resources/media/mask.jpg","crossword_resources/media/earrings-852898_960_720.jpg","crossword_resources/media/hair-310732_960_720.jpg","crossword_resources/media/nosestud.jpg","crossword_resources/media/girl-287138_960_720.jpg","crossword_resources/media/tattoo.jpg","crossword_resources/media/nail-varnish-944858_960_720.jpg"];
var audioCW=["","","","","","","",""];
var defCW=["","","","","Nose _______","","","Nail _______"];
var colNum=11;
var rowNum=11;
colorText="#000000";colorButton="#CC9900";colorBack="#FFFFFF";colorSele="#808040";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
