//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=24; attempts=0; attemptsMax=3;
var score=0; scoreMax=1; scoreInc=1; scoreDec=1
var typeGame=0;
var tiTime=false;
var tiTimeType=0;
var tiButtonTime=true;
var textButtonTime="Comenzar";
var tiSuccesses=true;
var tiAttempts=true;
var tiScore=true;
var startTime;
var colorBack="#FFFDFD"; colorButton="#91962F"; colorText="#000000"; colorSele="#FF8000";
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="Verdana, Geneva, sans-serif";
var fEnun="Verdana, Geneva, sans-serif";
var timeOnMessage=5; messageOk=""; messageTime=""; messageError="Resposta incorrecta"; messageErrorG="Resposta incorrecta"; messageAttempts="Cuarto fallo. Volve a intentalo."; 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="MDRmb3JtdWxhcw"; 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 joinPar=[["wWNpZG8gdGFydOFyaWNv", "QzxzdWI+NDwvc3ViPkg8c3ViPjY8L3N1Yj5PPHN1Yj42PC9zdWI+"],["QXVnYQ", "SDxzdWI+Mjwvc3ViPk8"],["U2FsIGRlIG1lc2E", "TmFDbA"],["QXV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5],[6,42],[6,27],[39,7],[39,9],[39,7],[14,9],[14,7],[4,5],[4,5],[26,9],[26,7],[5,5],[5,5],[5,7],[42,7],[42,9],[42,7],[27,7],[27,9]];
var con1=["Ácido tartárico","Auga","Sal de mesa","Auga osixenada","Lexivia","Azúcar","Butano"];
var con2=["C<sub>4</sub>H<sub>6</sub>O<sub>6</sub>","H<sub>2</sub>O","NaCl","H<sub>2</sub>O<sub>2</sub>","NaClO","C<sub>12</sub>H<sub>22</sub>O<sub>11</sub>","C<sub>4</sub>H<sub>10</sub>"];
var con3=["Carbono","Hidróxeno","Osíxeno","Sodio","Cloro"];
var sel1=""; join1=[]; join2=[];
colorText="#2B2B2B";colorButton="#858B00";colorBack="#FFFFFF";colorSele="#F8F5D7";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
