//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="#BFC6DB"; colorButton="#96505C"; colorText="#2E2899"; 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="Inténtao de novo!"; messageErrorG="Inténtao de novo!"; 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="bGwx"; 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=[["TQ","QQ","Og","RQ","Uw","VA","Ug","Tw","UA","QQ","TA","TA","Tw"],["QQ","Rw","QQ","Uw","QQ","TA","TA","Tw","Og","Og","UA","RQ","TA"],["Og","Og","QQ","Qw","VQ","Qg","SQ","TA","TA","Tw","Og","RQ","TA"],["Qw","Tw","Og","QQ","TA","TA","RQ","Tw","Og","Uw","SQ","Og","QQ"],["RQ","Tg","Qw","Ug","VQ","Qw","SQ","TA","TA","QQ","RA","Tw","Og"],["TA","Og","Qg","QQ","Qw","QQ","TA","TA","QQ","VQ","Og","VQ","QQ"],["TA","Tw","Og","Vg","QQ","Uw","SQ","TA","TA","QQ","Og","VA","UA"],["QQ","Og","Qw","RQ","Ug","Ug","QQ","TA","TA","RQ","SQ","Ug","Tw"],["Og","Og","Tw","TA","TA","RQ","SQ","Ug","QQ","Uw","Og","QQ","SQ"],["RQ","Tw","Og","TA","RQ","Tg","VA","RQ","TA","TA","QQ","Og","Tw"],["SA","Og","Uw","Tw","Og","QQ","Tg","VA","Tw","TA","TA","Tw","Og"]];
var x1=[11,4,4,1,3,3,6,4,5,6,7,8,11,13,3,11,3,9,11,4,1,3,1,12,1,10,12,1,12,3,12,1,4,3,1,2,12,10,1,2,12,13,3,1];
var y1=[2,4,7,5,6,8,11,1,1,1,1,1,1,1,2,4,5,5,10,1,2,3,1,3,4,4,6,7,7,9,9,10,10,11,1,1,1,3,4,4,5,6,8,10];
var x2=[13,8,10,12,10,13,12,4,5,6,7,8,11,13,3,11,3,9,11,13,8,10,2,13,2,11,13,2,13,10,13,2,11,4,1,2,12,10,1,2,12,13,3,1];
var y2=[2,4,7,5,6,8,11,11,10,11,11,11,2,4,3,5,6,11,11,1,2,3,1,3,4,4,6,7,7,9,9,10,10,11,2,2,3,11,8,5,9,10,9,11];
var imaCW=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""];
var audioCW=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""];
var defCW=["Tecido que cobre o corpo","Estraño","Recipiente","Xogo de palabras","Peixe","Que traballa con chaves e pechaduras.","Apetencia ou desexo","Insecto","","","","","","Mira","","","","","Símbolo do aluminio","Material para fregar","Regalo","Refuxio","Contracción me+a","Pronome persoal","Con +o","Afirmación","","Segunda forma do artigo","","Sinais de non durmir.","Adverbio de lugar(sen tilde)","Río galego","Legume","Debaixo de","Me+a","Símbolo da prata","","","Sobrecella","","Diferente","Axuda","con +o","Interxección para chamar"];
var colNum=13;
var rowNum=11;
colorText="#0000A0";colorButton="#808080";colorBack="#FFFFFF";colorSele="#808080";goURLNext=true;
fMenssage="'Arial Narrow', sans-serif";fActi="'Arial Narrow', sans-serif";fEnun="'Arial Narrow', sans-serif";
