//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=180; timeIni=180; timeBon=20;
var successes=0; successesMax=14; attempts=0; attemptsMax=3;
var score=0; scoreMax=14; scoreInc=1; scoreDec=1
var typeGame=0;
var tiTime=true;
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 fResp="Verdana, Geneva, sans-serif";
var fEnun="Verdana, Geneva, sans-serif";
var timeOnMessage=5; messageOk="Bo traballo. Test rematado."; messageTime=""; messageError="Resposta incorrecta"; messageErrorG="Resposta incorrecta"; messageAttempts="Cuarto fallo. Volvemos a empezar."; 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="Z3JhbnRlc3RSZWxh"; 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 tags=["1.- A pituitaria do nariz e as células receptoras do tacto son exemplos de células que podemos atopar ...","2.- Quen realiza as ordes enviadas polo cerebro?","3.- Que parte das neuronas son as encargadas de recibir información dos sentidos e doutras neuronas?","4.- En que parte do noso sistema nervioso central se localiza a memoria?","5.- Que parte do encéfalo regula a actividade de moitos órganos?","6.- Que parte do encéfalo está protexida pola columna vertebral?","7.- Quen transmite ordes do sistema nervioso central ata os órganos efectores?","8.- Un movemento reflexo ...","9.- Existen movementos que deben de ser realizados con unha certa coordinación, esta coordinación realízana ...","10.- As glándulas endocrinas fabrican ...","11.- Quen fabrica a hormona do crecemento?","12.- A tiroxina está relacionada ...","13.- A insulina ...","14.- O alzhéimer é unha enfermidade que produce"];
var answers1=["MW5vcyBvcmdhbm9zIHJlY2VwdG9yZXM","MG5vcyBvcmdhbm9zIGVmZWN0b3Jlcw","MG5vIHNpc3RlbWEgZW5kb2NyaW5v","MG5hcyBuZXVyb25hcw"];
var answers2=["MU9zIPNyZ2Fub3MgZWZlY3RvcmVz","ME9zIPNyZ2Fub3MgcmVjZXB0b3Jlcw","ME9zIG5lcnZpb3Mgc2Vuc2l0aXZvcw","MEEgbWVkdWxhIGVzcGnxYWw"];
var answers3=["MURlbmRyaXRhcw","MEF4824","MENvcnBv","ME76Y2xlbw"];
var answers4=["MUNlcmVicm8","MENlcmViZWxv","MFRyb25jbyBlbmNlZuFsaWNv","MEJ1bGJvIHJhcXXtZGVv","ME1lZHVsYSBlc3Bp8WFs"];
var answers5=["MUJ1bGJvIHJhcXXtZGVv","MENlcmViZWxv","MENlcmVicm8","ME1lZHVsYSBlc3Bp8WFs"];
var answers6=["MUEgbWVkdWxhIGVzcGnxYWw","ME8gdHJvbmNvIGVuY2Vm4WxpY28","ME8gY2VyZWJybw","ME8gY2VyZWJlbG8"];
var answers7=["MU9zIG5lcnZpb3MgbW90b3Jlcw","ME9zIG5lcnZpb3Mgc2Vuc2l0aXZvcw","ME8gY2VyZWJlbG8","ME8gZW5j6WZhbG8"];
var answers8=["MXBvZGUgcmVhbGl6YXJzZSBzZW4gYSBpbnRlcnZlbmNp824gZG8gY2VyZWJyby4","MXRlbiB1bmhhIGZ1bmNp824gcHJvdGVjdG9yYS4","MOkgYSByZXNwb3N0YSBkbyBjZXJlYnJvIGEgdW4gZXN07W11bG8u","MHJlY29ycmUg4SBtZW1vcmlhIHBhcmEgcmVhbGl6YXJzZS4"];
var answers9=["MW8gc2lzdGVtYSBlbmRvY3Jpbm8","MW9zIG36c2N1bG9zIGludm9sdW50YXJpb3M","MGFzIG5ldXJvbmFzIGRlIGFzb2NpYWNp824","MGFzIG5ldXJvbmFzIHNlbnNpdGl2YXM","MGFzIG5ldXJvbmFzIG1vdG9yYXM"];
var answers10=["MWhvcm1vbmFz","MGF6dWNyZQ","MG51dHJpZW50ZXM","MG5ldXJvbmFz","MG5lcnZpb3M"];
var answers11=["MUhpcPNmaXNl","MFRpcm9pZGU","MFDhbmNyZWFz","ME92YXJpb3MgZSB0ZXN07WN1bG9z"];
var answers12=["MWNvIGFwcm92ZWl0YW1lbnRvIGRvcyBudXRyaWVudGVz","MGNvIG5pdmVsIGRlIGF6dWNyZSBkZSBzYW5ndWU","MGNvIGNyZWNlbWVudG8gZGFzIHBlcnNvYXM","MGNvYSBhcGFyaWNp824gZG9zIGNhcmFjdGVyZXMgc2V4dWFpcyBzZWN1bmRhcmlvcy4"];
var answers13=["MWNvbnRyb2xhIGEgY2FudGlkYWRlIGRlIGF6dWNyZSBubyBzYW5ndWU","MGNvbnRyb2xhIGEgYXBhcmljafNuIGRvcyBjYXJhY3RlcmVzIHNleHVhaXMgc2VjdW5kYXJpb3M","MOkgYSByZXNwb25zYWJsZSBkbyBjcmVjZW1lbnRv","MOkgY3JlYWRhIHBvbGEgdGlyb2lkZQ"];
var answers14=["MWEgbW9ydGUgZGFzIGPpbHVsYXMgY2VyZWJyYWlz","MHRyZW1vcmVz","MHBhcuFsaXNl","MHBhcmFwbGV4aWE"];
var ans=[answers1,answers2,answers3,answers4,answers5,answers6,answers7,answers8,answers9,answers10,answers11,answers12,answers13,answers14];
var err=["","","","","","","","Fíxate, hai dúas correctas.","","","","","",""];
var ima=["","","","","","","","","","","","","",""];
var indexTag=0; actualAnswers=[]; dirMedia="grantestRela_resources/media/";
colorText="#2B2B2B";colorButton="#D5D200";colorBack="#FFFFFF";colorSele="#D94C00";goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
