//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=6; attempts=0; attemptsMax=2;
var score=0; scoreMax=6; 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=true;
var startTime;
var colorBack="#E1E100"; colorButton="#0000FF"; 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="'Times New Roman', Times, serif";
var fActi="'Times New Roman', Times, serif";
var fEnun="'Times New Roman', Times, serif";
var timeOnMessage=2; messageOk="MOI BEN!"; messageTime=""; messageError="LE OS TEXTOS AMODIÑO"; messageAttempts="DEMASIADOS ERROS, INTÉNTAO DE NOVO"; isShowMessage=false;
var urlOk=""; urlTime=""; urlError=""; urlAttempts="";
var goURLOk="_blank"; goURLTime="_blank"; goURLAttempts="_blank"; goURLError="_blank"; 
var consolidateSuccess=0; var consolidateScore=0;
borderOk="#008000"; borderTime="#FF0000";borderError="#FF0000"; borderAttempts="#FF0000";
var indexTXT=0; var txtC=['<p>Entrou a mañá no meu pobo </p><p> tan limpa, tan redonda e pura </p><p> como unha mazá </p><p> sobre un espello      <input type="text" name="item1" id="item1" class="ardoraDropInput" readonly> </p><p> ..................... </p><p>  </p><p> As ventás, despertas, </p><p> ollábana caladas, ditosas     <input type="text" name="item2" id="item2" class="ardoraDropInput" readonly> </p><p> .................... </p><p>  </p><p> O poeta é un mestre sen ira     <input type="text" name="item3" id="item3" class="ardoraDropInput" readonly></p>','<p>Dentro do seu traxe de dura seda     <input type="text" name="item4" id="item4" class="ardoraDropInput" readonly> </p><p> .................... </p><p>  </p><p> Tac, tac, tac </p><p> culler de pau </p><p> cunca de madeira </p><p> o meu neno </p><p> está na lareira     <input type="text" name="item5" id="item5" class="ardoraDropInput" readonly> </p><p> .................... </p><p>  </p><p> Eu ben sei que hai un misterio </p><p> na nosa Terra: </p><p> máis alá da néboa, </p><p> máis alá do mar, </p><p> máis alá do bosque     <input type="text" name="item6" id="item6" class="ardoraDropInput" readonly></p>'];
var answers=["antítese","onomatopea","imaxe","comparación","paralelismo","personificación"];
var a=["NA","NQ","Mw","MQ","Ng","Mg"];
var itemCorr=["0","0","0","0","0","0"];
var itemHelp=["","","","","",""];
var animationX=[]; animationY=[]; animationPosX=[]; animationPosY=[]; animationLetter=[];
var wordsGame="ZXg0bGlyaWNh"; 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 messageNext="PREME AQUÍ PARA CONTINUAR";
