//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=1;
var score=0; scoreMax=1; scoreInc=1; scoreDec=1;
var typeGame=0;
var tiTime=false;
var tiTimeType=0;
var tiButtonTime=false;
var textButtonTime="Comenzar";
var tiSuccesses=false;
var tiAttempts=false;
var tiScore=false;
var startTime; var tiAudio=false;
var colorBack="#F2F2F2"; colorButton="#000080"; colorText="#000080"; colorSele="#FFFFFF";
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="'Arial Narrow', sans-serif";
var fDefs="'Arial Narrow', sans-serif";
var fEnun="Verdana, Geneva, sans-serif";
var timeOnMessage=5; messageOk="Moi ben!"; messageTime=""; messageError="Hai algún erro!"; messageErrorG="Hai algún erro!"; messageAttempts=""; 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="Y2lkNA"; 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=[["Uw","RQ","TQ","QQ","Rg","Tw","Ug","Tw","",""],["WA","RQ","QQ","RA","QQ","Ug","SQ","QQ","",""],["","UA","Ug","QQ","Wg","QQ","","","",""],["","","UQ","QQ","VA","QQ","Ug","SQ","",""],["","WA","VQ","TA","Rw","QQ","RA","Tw","",""],["","Qg","RQ","SQ","Ug","QQ","Ug","Ug","VQ","QQ"],["","RQ","Uw","VA","Ug","QQ","RA","QQ","",""],["","","SQ","Rw","Ug","RQ","WA","QQ","",""],["Ug","QQ","0Q","QQ","Qw","RQ","Tw","Uw","",""],["","Rw","QQ","Ug","RA","RQ","Ug","SQ","QQ",""]];
var x1=[1,1,2,3,2,2,2,3,1,1,2,3,4,5,6,7,8,7,8,2,2];
var y1=[1,2,3,4,5,6,7,8,9,1,1,1,1,1,1,1,1,4,4,5,9];
var x2=[8,8,6,8,8,10,8,8,8,1,2,3,4,5,6,7,8,7,8,2,2];
var y2=[1,2,3,4,5,6,7,8,9,2,3,10,10,10,10,2,2,10,10,7,10];
var imaCW=["","","","","","","","","","","","","","","","","","","","",""];
var audioCW=["","","","","","","","","","","","","","","","","","","","",""];
var defCW=["Regulador de tráfico","Lugar onde se venden xeados.","Lugar de reunión e xogo.","Habitante de Qatar.","Lugar onde se imparte xustiza.","Espazo para o tránsito de peóns.","Rúa para os automóbiles.","Lugar relixioso.","Edificio moi alto.","","","Espazo cuberto na parada de autobús.","","","","","","","","",""];
var colNum=10;
var rowNum=10;
colorText="#000080";colorButton="#808080";colorBack="#FFFFFF";colorSele="#FFFFFF";goURLNext=true;
fMenssage="'Arial Narrow', sans-serif";fActi="'Arial Narrow', sans-serif";fEnun="'Arial Narrow', sans-serif";
