//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=200; timeIni=200; timeBon=20;
var successes=0; successesMax=18; attempts=0; attemptsMax=3;
var score=0; scoreMax=18; 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="Test superado. Bo traballo!"; messageTime=""; messageError="Resposta incorrecta."; messageErrorG="Resposta incorrecta."; messageAttempts="Cuarto fallo. Inténtao outra vez."; 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="Z3JhblRlc3RUZXJyYQ"; 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.- Se a Terra se atopase tan alonxada do Sol como Venus...","2.- O gas máis importante para a vida que hai na atmósfera é","3.- As estrelas fugaces son","4.- A vida transcurre na...","5.- Os principais gases da atmósfera son:","6.- A cantidade de auga que hai na Terra...","7.- Ao conxunto de seres vivos que habitan a Terra chamámoslle:","8.- As rochas e minerais que forman os continentes forman a:","9.- A Terra está dividada en 24...","10.- O hemisferio norte é:","11.- A latitude é a distancia que hai...","12.- Todos os puntos da superficie de Galicia teñen:","13.- Os movementos de rotación e translación da Lúa...","14.- As mareas terrestres son debidas...","15.- Son planetoides:","16.- Amais de na Terra tamén podemos atopar auga...","17.- Unha galaxia é un conxunto de...","18.- A luz ten unha velocidade de..."];
var answers1=["MXRlcu1hIHVuaGEgdGVtcGVyYXR1cmEgbW9pIGFsdGE","MHRlcu1hIHVuaGEgdGVtcGVyYXR1cmEgbWVkaWEgZnJlc2Nh","MHRlcu1hIHVuaGEgdGVtcGVyYXR1cmEgbW9pIGJhaXhh"];
var answers2=["MW8gb3PteGVubw","MG8gbml0cvN4ZW5v","MG8gaGlkcvN4ZW5v","MG8gaGVsaW8"];
var answers3=["MWltcGFjdG9zIGRlIG1ldGVvcml0b3Mgc29icmUgYSBhdG1vc2ZlcmEgdGVycmVzdHJlLg","MGltcGFjdG9zIGRlIG1ldGVvcml0b3Mgc29icmUgYSBzdXBlcmZpY2llIGx1bmFyLg","MGltcGFjdG9zIGRlIGFzdGVyb2lkZXMgc29icmUgYSBjb2RpYSB0ZXJyZXN0cmUu","MGFzdGVyb2lkZXMgcXVlIGFiYW5kb25hcm9uIG8gY2ludG8gZGUgYXN0ZXJvaWRlcy4"];
var answers4=["MXRyb3Bvc2ZlcmE","MGVzdHJhdG9zZmVyYQ","MG1lc29zZmVyYQ","MHRlcm1vc2ZlcmE"];
var answers5=["MW9z7Xhlbm8","MWhpZHLzeGVubw","MW5pdHLzeGVubw","MGhlbGlv"];
var answers6=["Mekgc2VtcHJlIGEgbWVzbWEu","MGNvbnPpZ3Vlc2UgcG9sYSByYWRpYWNp824gZG8gU29s","MGNvbnPpZ3Vlc2UgbWVkaWFudGUgYSBjb25kZW5zYWNp824"];
var answers7=["MWJpb3NmZXJh","MHhlb3NmZXJh","MGVjb3Npc3RlbWE","MGhpZHJvc2ZlcmE","MGF0bW9zZmVyYQ"];
var answers8=["MVhlb3NmZXJh","MEJpb3NmZXJh","MEF0bW9zZmVyYQ","MEhpZHJvc2ZlcmE"];
var answers9=["MWZ1c29zIGhvcmFyaW9z","MHRy83BpY29z","MHBvbG9z","MGVpeGVzIGRlIHJvdGFjafNu"];
var answers10=["MWEgcGFydGUgZGEgVGVycmEgcXVlIHF1ZWRhIHBvciByaWJhIGRvIGVjdWFkb3I","MGEgcGFydGUgZGEgVGVycmEgcXVlIHF1ZWRhIHBvciByaWJhIGRvcyB0cvNwaWNvcw","MGEgcGFydGUgZGEgVGVycmEgcXVlIHF1ZSBwb3IgYmFpeG8gZG8gZWN1YWRvcg","MGEgcGFydGUgcXVlIGNvaW5jaWRlIGNvIFBvbG8gTm9ydGUu","MHVuaGEgbGnxYSBpbWF4aW5hcmlh"];
var answers11=["MWRlbmRlIG8gZWN1YWRvciBhIHVuIHB1bnRv","MGRlbmRlIG8gbWVyaWRpYW5vIGRlIEdyZWVud2ljaCBhIHVuIHB1bnRv","MGRlbmRlIG8gVHLzcGljbyBkZSBDYW5jZXIgYSB1biBwdW50bw","MGRlbmRlIG8gVHLzcGljbyBkZSBDYXByaWNvcm5pbyBhIHVuIHB1bnRvLg"];
var answers12=["MWxhdGl0dWRlIG5vcnRlIGUgbG9ueGl0dWRlIG9lc3Rl","MGxhdGl0dWRlIHN1ciBlIGxvbnhpdHVkZSBvZXN0ZQ","MGxhdGl0dWRlIHN1ciBlIGxvbnhpdHVkZSBsZXN0ZQ","MGxhdGl0dWRlIG5vcnRlIGUgbG9ueGl0dWRlIGxlc3Rl"];
var answers13=["MWR1cmFuIGNhc2UgbyBtZXNtbw","MHRl8WVuIHVuaGEgZHVyYWNp824gZGUgMjQgaCBlIDM2NSBk7WFzIHJlc3BlY3RpdmFtZW50ZQ","MGEgTPphIG5vbiBzZSBtb3ZlLCB0ZW4gZmFzZXMu"];
var answers14=["MeEgYXRyYWNjafNuIGRhIEz6YQ","MGFvIG1vdmVtZW50byBkZSB0cmFuc2xhY2nzbiB0ZXJyZXN0cmU","MGFvIG1vdmVtZW50byBkZSB0cmFuc2xhY2nzbiBkYSBM+mE","MGFvcyBlY2xpcHNlcyBkZSBTb2wgb3UgZGUgTPph","MGFzIGZhc2VzIGx1bmFyZXM"];
var answers15=["MVBsdXTzbg","MUNlcmVz","MUVpcmlz","MFj6cGl0ZXI","MFNhdHVybm8","MEhhbGxleQ","MFVyYW5v"];
var answers16=["MW5hIGNvbGEgZG9zIGNvbWV0YXM","MG5vIGNpbnRvIGRlIGFzdGVyb2lkZXM","MG5hcyBlc3RyZWxhcyBmdWdhY2Vz","MG5vcyBhbmVpcyBkZSBTYXR1cm5v","MG5hIEz6YQ"];
var answers17=["MXNpc3RlbWFzIHBsYW5ldGFyaW9zIGUgbmVidWxvc2Fz","MG5lYnVsb3NhcyBlIGVzdHJlbGFz","MGFzdGVyb2lkZXMgZSBwbGFuZXRhcw"];
var answers18=["MTMwMCAwMDAgS20gbnVuIHNlZ3VuZG8","MDMwMCBLbSBudW4gc2VndW5kbw","MDMgMDAwIEttIG51biBtaW51dG8","MDMwMCAwMDAga20gcG9yIGhvcmE"];
var ans=[answers1,answers2,answers3,answers4,answers5,answers6,answers7,answers8,answers9,answers10,answers11,answers12,answers13,answers14,answers15,answers16,answers17,answers18];
var err=["","","","","Fíxate, hai tres.","","","","","","","","","","Fíxate. Hai tres.","","",""];
var ima=["","","","","","","","","","","","","","","","","",""];
var indexTag=0; actualAnswers=[]; dirMedia="granTestTerra_resources/media/";
var tiRandOrder=false;
var iT=0;var r_order=[];
colorText="#000000";colorButton="#FF8000";colorBack="#FFFFFF";colorSele="#EBD0AB";goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
