//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=11; attempts=0; attemptsMax=2;
var score=0; scoreMax=11; scoreInc=1; scoreDec=1
var typeGame=1;
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="Bo traballo."; messageTime=""; messageError="Repasa a túa resposta."; messageAttempts="Terceiro fallo. Volvemos a empezar."; 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>A métrica dun poema é indicar a cantidade de <select name="item1" id="item1" class="ardoraCombo"></select> que ten cada un dos <select name="item2" id="item2" class="ardoraCombo"></select> que o forman. Para ese cómputo debemos de ter en conta as seguintes regras: </p><p> Se un verso remata en <select name="item3" id="item3" class="ardoraCombo"></select>, entón debemos de <select name="item4" id="item4" class="ardoraCombo"></select> unha máis, se o fai en <select name="item5" id="item5" class="ardoraCombo"></select> debemos de <select name="item6" id="item6" class="ardoraCombo"></select> unha. </p><p> Cando, no mesmo verso, unha palabra remata en <select name="item7" id="item7" class="ardoraCombo"></select> e a seguinte comenza por <select name="item8" id="item8" class="ardoraCombo"></select> ou <select name="item9" id="item9" class="ardoraCombo"></select> as dúas sílabas cóntanse como <select name="item10" id="item10" class="ardoraCombo"></select>d. A isto chamámoslle <select name="item11" id="item11" class="ardoraCombo"></select>.</p>'];
var b=["Mzc","NDI","NDQ","OA","MzY","NDc","Mg","Mw","MzM","MTU","OQ","MjI","NA","MzA","Mzg","MTM","Mzk","Mjc","NA","MTA","NDM","MTE","NDg","NDk","MQ","MjM","MjQ","NQ","Mg","Nw","OA","OQ","MjE","Mw","Ng","Nw","MTI","MTQ","MTg"];
var c=[1,4,5,5,1,7,8,8,9,9,1,5,6,9,1,9,1,7,7,4,4,8,4,5,7,5,9,9,6,7,8,8,5,5,6,5,5,5,6];
var answers=["x","tres","catro","vogal","z","estrofa","palabras","estrofas","consoante","consoante","h","llana","versos","consoante","g","esdrúxula","ñ","engadir","engadir","unha","dúas","sinalefa","rima","resta","sílabas","vogal","consoante","esdrúxula","versos","sílabas","estrofas","palabras","aguda","aguda","restar","vogal","llana","vogal","quitar"];
var a=["9","10","10","8","9","11","1","1","8","3","9","5","1","7","9","3","9","6","4","10","10","11","11","11","1","5","5","5","2","2","2","2","5","3","6","7","3","3","4"];
var itemCorr=["0","0","0","0","0","0","0","0","0","0","0"];
var itemHelp=["","","","","","","","","","",""];
var animationX=[]; animationY=[]; animationPosX=[]; animationPosY=[]; animationLetter=[];
var wordsGame="MDZtZXRyaWNhR2Fs"; 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 tiUD=false;
var fHelp="Verdana, Geneva, sans-serif";
colorText="#000000";colorButton="#D5D200";colorBack="#FFFFFF";colorSele="#DC5A15";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
