//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=23; attempts=0; attemptsMax=2;
var score=0; scoreMax=23; 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 fResp="Verdana, Geneva, sans-serif";
var fEnun="Verdana, Geneva, sans-serif";
var timeOnMessage=5; messageOk="Test completado!"; messageTime=""; messageError="Non é correcto."; messageErrorG="Non é correcto."; messageAttempts="Terceiro erro. 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="Z3JhblRlc3RJZGFkZU1lZGlh"; 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 burguesía aparece na...","2.- A idade media remata...","3.- Os romanos coñecían aos pobos invasores xermanos como <b>bárbaros</b> xa que en latín significa:","4.- A fin do Imperio romano de Occidente acontece...","5.- O que hoxe coñecemos como Galicia foi invadida polos","6.- Leovixildo...","7.- Na época dos visigodos a poboación vivía...","8.- Aínda que non deixaron grandes obras artísticas, os visigodos foron famosos...","9.- Ao principio Al-Ándalus era un emirato que dependía do califato...","10.- Os musulmáns para estender os cultivos de regadío construíron...","11.- Os materiais de construción que empegaban os musulmáns eran...","12.- Son construcións musulmás...","13.- En Al-Ándalus convivían as seguintes relixións:","14.- Os reinos de taifas...","15.- A Coroa de Castela formouse pola unión de:","16.- No século XIII o que hoxe coñecemos como Galicia pertencía...","17.- Un feudo era","18.- As cidades dos reinos cristiáns estaban organizadas en...","19.- Grazas á Escola de Tradutores de Toledo...","20.- O Tribunal da Inquisición...","21.- No románico...","22.- O condado de Galicia xurdiu...","23.- Os irmandiños eran."];
var answers1=["MUJhaXhhIElkYWRlIE1lZGlh","MEFsdGEgSWRhZGUgTWVkaWE"];
var answers2=["MWNvIGRlc2N1YnJpbWVudG8gZGUgQW3pcmljYQ","MGNvYSBSZXZvbHVjafNuIGZyYW5jZXNh","MGNvYSBjYe1kYSBkbyBJbXBlcmlvIHJvbWFubw","MGNvYSBlbnRyYWRhIGRvcyBtdXN1bG3hbnMgbmEgcGVu7W5zdWxh"];
var answers3=["MWVzdHJhbnhlaXJv","MGltcHJlc2lvbmFudGU","MGbzcmEgZGUgc2VyaWU","MGFsZ28gcXVlIG5vbiBzZSBwb2RlIGltYXhpbmFy","MGJydXRv"];
var answers4=["MWNhbmRvIG9zIHhlcm1hbm9zIHRvbWFuIFJvbWEu","MGNhbmRvIG1vcnJlIFLzbXVsbyBBdWd1c3RvLg","MGNhbmRvIFRlb2Rvc2lvIG8gZGl2aWRlIGVuIGT6YXMgcGFydGVzLg"];
var answers5=["MXN1ZXZvcw","MHZpc2lnb2Rvcw","MHbhbmRhbG9z","MGFsYW5vcw"];
var answers6=["MWNvbnF1aXN0b3UgbyByZWlubyBzdWV2bw","MGNvbnF1aXN0b3UgbyByZWlubyB2aXNpZ29kbw","MGZvaSBvIPpsdGltbyBlbXBlcmFkb3IgZGUgUm9tYQ","MGNvbnF1aXN0b3UgbyBjYWxpZmF0byBkZSBD83Jkb2Jh"];
var answers7=["MW5vcyBwb2Jvcw","MG5hcyBjaWRhZGVz"];
var answers8=["MXBvbGEgc/phIHhvaWVy7WE","MHBvbGFzIHP6YXMgcGludHVyYXM","MHBvbG9zIHNldXMgZXNjcml0b3MgcG/pdGljb3M","MHBvbGFzIHP6YXMgZ3JhbmRlcyBjb25zdHJ1Y2Np825z"];
var answers9=["MWRlIERhbWFzY28","MGRlIFRvbGVkbw","MGRlIEPzcmRvYmE","MGRlIMFmcmljYQ"];
var answers10=["MW5vcmFz","MWNhbmxlcw","MG1lc3F1aXRhcw","MHpvY29z","MGFycmFiYWxkZXM"];
var answers11=["MXBvYnJlcw","MHJpY29z","MG1vaSBkdXJhZGVpcm9z"];
var answers12=["MUFsaGFtYnJhIGRlIEdyYW5hZGE","MU1lc3F1aXRhIGRlIEPzcmRvYmE","MU1lZGluYSBBemFoYXJh","MENhdGVkcmFsIGRlIFNhbnRpYWdv","MENhdGVkcmFsIGRlIEzpb24","ME11cmFsbGEgZGUgwXZpbGE","MEFjdWVkdWN0byBkZSBTZWdvdmlh"];
var answers13=["MWNyaXN0aeFucw","MW11c3VsbeFucw","MXh1ZGV1cw","MGJ1ZGlzdGFz"];
var answers14=["MWVyYW4gb3MgcmVpbm9zIG5vcyBxdWUgc2UgZGVzY29tcHV4byBvIGNhbGlmYXRvIGRlIEPzcmRvYmE","MGVyYW4gb3MgcmVpbm9zIG9uZGUgaGFi7WEgcmVpcyBjcmlzdGnhbnMgcXVlIGxvaXRhYmFuIGNvbnRyYSBvIGNhbGlmYXRvLg","MGVyYW4gbyBsdWdhciBvbmRlIHZpdu1hbiBvcyB4dWRldXMu","MGVzdGFiYW4gZm9ybWFkb3MgcG9yIG1veuFyYWJlcyBxdWUgbm9uIGFjZXB0YXJhbiBvIGlzbGFtIGNvbW8gcmVsaXhp824u"];
var answers15=["MXJlaW5vIGRlIExl824","MXJlaW5vIGRlIENhc3RlbGE","MHJlaW5vIGRlIFBhbXBsb25h","MHJlaW5vIGRlIEdyYW5hZGE","MHJlaW5vIGRlIFBvcnR1Z2Fs","MHJlaW5vIGRlIEdhbGljaWE"];
var answers16=["MeEgQ29yb2EgZGUgQ2FzdGVsYQ","MGFvIHJlaW5vIGRlIFBvcnR1Z2Fs","MGFvIHJlaW5vIGRlIEdyYW5hZGE","MOEgQ29yb2EgZGUgQXJhZ/Nu"];
var answers17=["MXVuIHRlcnJpdG9yaW8gcXVlIG8gcmVpIGNlZOFpIGEgdW4gbm9icmUgYSBjYW1iaW8gZGEgc/phIGZpZGVsaWRhZGUu","MG8gbHVnYXIgb25kZSBvcyBhcnRlc+FucyBzZSByZXVu7WFuIHBhcmEgdmVuZGVyIG9zIHNldXMgcHJvZHV0b3Mu","MHVuaGEgZWRpZmljYWNp824gZm9ydGlmaWNhZGEgb25kZSB2aXbtYW4gb3Mgbm9icmVzLg","MG8gY29ueHVudG8gZGUgbW9zdGVpcm9zLCBpZ3JleGFzIGUgY2F0ZWRyYWlzIGR1biBkZXRlcm1pbmFkbyBsdWdhci4"];
var answers18=["MWJhcnJpb3M","MGFycmFiYWxkZXM","MHpvY29z","MGdyZW1pb3M","MG1lZGluYXM"];
var answers19=["MW1vaXRhcyBvYnJhcyBncmVnYXMsIGxhdGluYXMgZSBvcmllbnRhaXMgcHVpZGVyb24gZW1wcmVnYXJzZSBuYXMgdW5pdmVyc2lkYWRlcyBldXJvcGVhcw","MG9zIFJlaXMgQ2F082xpY29zIGZ1bmRhcm9uIG8gVHJpYnVuYWwgZGEgSW5xdWlzaWNp824u","MEFmb25zbyBYIG8gU2FiaW8gYWNjZWRldSBhbyB0cm9ubyBkYSBDb3JvYSBkZSBDYXN0ZWxhLg"];
var answers20=["MXBlcnNlZ3VpdSBhIGNhbHF1ZXJhIHF1ZSBub24gZm9zZSBjcmlzdGnhbg","MGNvbnNlZ3VldSBxdWUgdHJhYmFsbGFzZW4gY29ueHVudGFtZW50ZSB0cmFkdXRvcmVzIGRhcyB0cmVzIHJlbGl4afNucy4","MGZvaSBwZWNoYWRvIHBvbG9zIFJlaXMgQ2F082xpY29z"];
var answers21=["MWRlY29y4WJhbnNlIGFzIGlncmV4YXMgY29uIGVzY3VsdHVyYXMgZSBwaW50dXJhcyBxdWUgcmVwcmVzZW50YWJhbiBhcyBzYWdyYWRhcyBlc2NyaXR1cmFzLg","MHVz4WJhbnNlIG9zIHJlc2V0825z","MGVtcHJlZ+FiYXNlIGEgYvN2ZWRhIGRlIGNydWNlcu1h","MGFzIGlncmV4YXMgdGnxYW4gZ3JhbmRlcyB2aWRyaWVyYXMgZSBlcmFuIG3haXMgYWx0YXMu","MGFidW5kYWJhbiBvcyBhcmNvcyBhcHVudGFkb3MgbmFzIHBvcnRhZGFzIGUgaW50ZXJpb3JlcyBkYXMgcHJpbmNpcGFpcyBpZ3JleGFzLg"];
var answers22=["MWRhIGRpdmlzafNuIGVuIGRvdXMgZG8gcmVpbm8gZGUgR2FsaWNpYQ","MGRhIGRpdmlzafNuIGRvIHJlaW5vIGRlIFBvcnR1Z2Fs","MGRhIGRpdmlzafNuIGRvIHJlaW5vIGRlIExl824gZSBBc3R1cmlhcw"];
var answers23=["MWNhbXBlc2nxb3M","MWJ1cmd1ZXNlcw","MXhlbnRlIGRhIGJhaXhhIG5vYnJlemE","MG5vYnJlcw","MGJpc3Bvcw","MGR1cXVlcw","MHJlaXM"];
var ans=[answers1,answers2,answers3,answers4,answers5,answers6,answers7,answers8,answers9,answers10,answers11,answers12,answers13,answers14,answers15,answers16,answers17,answers18,answers19,answers20,answers21,answers22,answers23];
var err=["","","","","","","","","","Ollo. Hai dúas correctas.","","","","","","","","","","","","","Ollo. Hai tres corectas."];
var ima=["","","","","","","","","","","","","","","","","","","","","","",""];
var mp4=["","","","","","","","","","","","","","","","","","","","","","",""];
var ogv=["","","","","","","","","","","","","","","","","","","","","","",""];
var indexTag=0; actualAnswers=[]; dirMedia="granTestIdadeMedia_resources/media/";
var tiRandOrder=false;
var iT=0;var r_order=[];
colorText="#000000";colorButton="#D5D200";colorBack="#FFFFFF";colorSele="#DC5A15";goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
