//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=1; scoWrongDo=1; 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="NO WAY"; messageErrorG="NO WAY"; 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="cGNjcm9zc3dvcmQ"; 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","Og","Qw","Tw","TQ","UA","VQ","VA","RQ","Ug","Og","Og"],["Og","Sw","Og","Og","Og","Ug","Og","Og","Og","Og","Og","Og"],["Og","RQ","Og","Og","Og","SQ","Og","Og","Og","Og","Og","Og"],["Og","WQ","Og","Og","Og","Tg","Og","Og","Og","Og","Og","Og"],["Og","Qg","Og","Og","Og","VA","Og","TQ","Tw","VQ","Uw","RQ"],["Og","Tw","Og","Og","Og","RQ","Og","Og","Og","Og","Qw","Og"],["SA","QQ","Ug","RA","RA","Ug","SQ","Vg","RQ","Og","QQ","Og"],["Og","Ug","Og","Og","Og","Og","Og","Og","Og","Og","Tg","Og"],["Og","RA","Og","Og","Og","Og","Og","Og","Og","Og","Tg","Og"],["Og","Og","Og","Og","Og","Og","RA","Ug","SQ","Vg","RQ","Og"],["Og","Og","Og","Og","Og","Og","Og","Og","Og","Og","Ug","Og"]];
var x1=[3,8,1,6,2,11,7];
var y1=[1,5,7,1,2,5,10];
var x2=[10,12,9,6,2,11,11];
var y2=[1,5,7,7,9,11,10];
var imaCW=["","","","","","",""];
var audioCW=["","","","","","",""];
var defCW=["An electronic device which is capable of receiving information (data) and of performing a sequence of operations","A small device to click on different areas of your screen","An external ____ _____ is a component that allows you to store information outside your PC","Output unit that allows you to print documents","Input unit to write letters and numbers","A  device that scans documents and converts them into digital data","A Flash ______ is used to transfer data to or from a computer"];
var colNum=12;
var rowNum=11;
colorText="#2B2B2B";colorButton="#0086FF";colorBack="#FFFFFF";colorSele="#CBDDEB";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
