//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 colorBack="#FFFDFD"; colorButton="#CC9900"; colorText="#000000"; colorSele="#808040";
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="FANTASTIC!!"; messageTime=""; messageError="CHECK THE WRONG ANSWERS!!"; messageErrorG="CHECK THE WRONG ANSWERS!!"; 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=[["VElNRQ","MDk6MDAgYW0","MTE6MzAgYW0","MTM6MDAgcG0","MTU6MzAgcG0"],["VFlQRSBPRiBET0NUT1I","UGh5c2ljaWFu","RGVudGlzdA","RGVybWF0b2xvZ2lzdA","Q2FyZGlvbG9naXN0"],["TkFNRQ","RHIuIEJyYXZv","RHIuIE1hcnTtbg","RHIuIEJhcnJvcw","RHIuIFN14XJleg"],["RFVSQVRJT04","MS8yIGhvdXI","MSBob3Vy","MSBob3Vy","MS8yIGhvdXI"]];
var c=[[4,8,8,8,8],[14,9,7,13,12],[4,9,10,10,10],[8,8,6,6,8]];
var c1=[[0,0,0,0,0],[0,7,12,12,13],[0,10,9,10,9],[0,6,8,8,6]];
var c2=[[0,0,0,0,0],[0,13,13,7,7],[0,10,10,10,10],[0,0,0,0,0]];
var c3=[[0,0,0,0,0],[0,12,9,9,9],[0,10,10,9,10],[0,0,0,0,0]];
var a1Cell=[["VElNRQ","MDk6MDAgYW0","MTE6MzAgYW0","MTM6MDAgcG0","MTU6MzAgcG0"],["VFlQRSBPRiBET0NUT1I","RGVudGlzdA","Q2FyZGlvbG9naXN0","Q2FyZGlvbG9naXN0","RGVybWF0b2xvZ2lzdA"],["TkFNRQ","RHIuIE1hcnRpbg","RHIuIEJyYXZv","RHIuIE1hcnTtbg","RHIuIEJyYXZv"],["RFVSQVRJT04","MSBob3Vy","MS8yIGhvdXI","MS8yIGhvdXI","MSBob3Vy"]];
var a2Cell=[["VElNRQ","MDk6MDAgYW0","MTE6MzAgYW0","MTM6MDAgcG0","MTU6MzAgcG0"],["VFlQRSBPRiBET0NUT1I","RGVybWF0b2xvZ2lzdA","RGVybWF0b2xvZ2lzdA","RGVudGlzdA","RGVudGlzdA"],["TkFNRQ","RHIuIFN14XJleg","RHIuIEJhcnJvcw","RHIuIFN14XJleg","RHIuIEJhcnJvcw"],["RFVSQVRJT04","MS8yIGhvdXI","MSBob3Vy","MSBob3Vy","MS8yIGhvdXI"]];
var a3Cell=[["VElNRQ","MDk6MDAgYW0","MTE6MzAgYW0","MTM6MDAgcG0","MTU6MzAgcG0"],["VFlQRSBPRiBET0NUT1I","Q2FyZGlvbG9naXN0","UGh5c2ljaWFu","UGh5c2ljaWFu","UGh5c2ljaWFu"],["TkFNRQ","RHIuIEJhcnJvcw","RHIuIFN14XJleg","RHIuIEJyYXZv","RHIuIE1hcnTtbg"],["RFVSQVRJT04","MS8yIGhvdXI","MSBob3Vy","MSBob3Vy","MS8yIGhvdXI"]];
var wordsGame="dGFibGVsb2dpY2dhbWU3"; 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;
