//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=5;
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=true;
var tiAttempts=true;
var tiScore=false;
var startTime;
var colorBack="#FFFFFF"; colorButton="#91962F"; colorText="#000000"; colorSele="#FF8000";
var goURLNext=false; goURLRepeat=false;tiAval=false;
var scoOk=0; scoWrong=0; scoOkDo=1; scoWrongDo=1; scoMessage=""; scoPtos=10;
var fMenssage="Verdana, Geneva, sans-serif";
var fActi="Verdana, Geneva, sans-serif";
var fEnun="Verdana, Geneva, sans-serif";
var timeOnMessage=3; messageOk="WELL DONE!!"; messageTime=""; messageError="FALSE!!"; messageErrorG="FALSE!!"; 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 d=[[0,0,0,0,0],[0,1,1,1,1],[0,1,1,1,1],[0,1,1,1,1]];
var vCell=[["0","0","0","0","0"],["0","3","3","3","3"],["0","3","3","3","3"],["0","3","3","3","3"]];
var a0Cell=[["UEVSU09O","QU5O","R0VPUkdF","SEFEUklBTg","VEVTUw"],["TVVTRVVN","TkFUSU9OQUwgR0FMTEVSWQ","QlJJVElTSCBNVVNFVU0","VEFURSBNT0RFUk4","U0FBVENIWSBHQUxMRVJZ"],["RVhISUJJVElPTg","VkFOIEdPR0g","REFMzQ","QkFOS1NZ","UElDQVNTTw"],["REFURQ","QVBSSUwgMTc","QVBSSUwgMTg","QVBSSUwgMTk","QVBSSUwgMjA"]];
var c=[[6,3,6,7,4],[6,16,14,11,15],[10,8,4,6,7],[4,8,8,8,8]];
var c1=[[0,0,0,0,0],[0,11,11,14,14],[0,4,7,7,4],[0,8,8,8,8]];
var c2=[[0,0,0,0,0],[0,15,16,16,16],[0,7,8,4,8],[0,8,8,8,8]];
var c3=[[0,0,0,0,0],[0,14,15,15,11],[0,6,6,8,6],[0,8,8,8,8]];
var a1Cell=[["UEVSU09O","QU5O","R0VPUkdF","SEFEUklBTg","VEVTUw"],["TVVTRVVN","VEFURSBNT0RFUk4","VEFURSBNT0RFUk4","QlJJVElTSCBNVVNFVU0","QlJJVElTSCBNVVNFVU0"],["RVhISUJJVElPTg","REFMzQ","UElDQVNTTw","UElDQVNTTw","REFMzQ"],["REFURQ","QVBSSUwgMTg","QVBSSUwgMTc","QVBSSUwgMTg","QVBSSUwgMTc"]];
var a2Cell=[["UEVSU09O","QU5O","R0VPUkdF","SEFEUklBTg","VEVTUw"],["TVVTRVVN","U0FBVENIWSBHQUxMRVJZ","TkFUSU9OQUwgR0FMTEVSWQ","TkFUSU9OQUwgR0FMTEVSWQ","TkFUSU9OQUwgR0FMTEVSWQ"],["RVhISUJJVElPTg","UElDQVNTTw","VkFOIEdPR0g","REFMzQ","VkFOIEdPR0g"],["REFURQ","QVBSSUwgMTk","QVBSSUwgMTk","QVBSSUwgMTc","QVBSSUwgMTg"]];
var a3Cell=[["UEVSU09O","QU5O","R0VPUkdF","SEFEUklBTg","VEVTUw"],["TVVTRVVN","QlJJVElTSCBNVVNFVU0","U0FBVENIWSBHQUxMRVJZ","U0FBVENIWSBHQUxMRVJZ","TU9ERVJOIFRBVEU"],["RVhISUJJVElPTg","QkFOS1NZ","QkFOS1NZ","VkFOIEdPR0g","QkFOS1NZ"],["REFURQ","QVBSSUwgMjA","QVBSSUwgMjA","QVBSSUwgMjA","QVBSSUwgMTk"]];
var wordsGame="bG9naWNnYW1lNQ"; 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 cols=4; var rows=5;var showC=true;
