//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=120; timeIni=120; timeBon=10;
var successes=0; successesMax=12; attempts=0; attemptsMax=1;
var score=0; scoreMax=12; scoreInc=1; scoreDec=1
var typeGame=0;
var tiTime=true;
var tiTimeType=1;
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 rematado! Ben feito!"; messageTime="Rematou o tempo. Inténtao outra vez."; messageError="Resposta incorrecta."; messageErrorG="Resposta incorrecta."; messageAttempts="Volve a intentalo."; 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="QWN0YW50aWdhR3JhblRlc3Q"; 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 historia empeza...","2.- A Idade Antiga remata...","3.- Foron grandes civilizacións da Idade Antiga:","4.- Marca as verdadeiras sobre os iberos.","5.- Os fenicios...","6.- Os cartaxineses...","7.- No seu primeiro desembarco os romanos atopáronse cos...","8.- Anibal foi...","9.- Os romanos dividiron Hispania en...","10.- As persoas que podían formar parte do goberno ou ser propietarios de grandes extensións de terra eran...","11.- As cidades estaban organizadas arredor...","12.- Na nosa terra os romanos atopáronse cos..."];
var answers1=["MWNvYSBhcGFyaWNp824gZGFzIHByaW1laXJhcyBwcm9iYXMgZXNjcml0YXMu","MGNvYSBjYWlkYSBkbyBJbXBlcmlvIFJvbWFubw","MGNvIGRlc2N1YnJpbWVudG8gZGUgQW3pcmljYQ","MGNvYSBSZXZvbHVjafNuIEZyYW5jZXNh"];
var answers2=["MWNvYSBjYWlkYSBkbyBJbXBlcmlvIFJvbWFubw","MGNvYSBhcGFyaWNp824gZGFzIHByaW1laXJhcyBtb3N0cmFzIGVzY3JpdGFz","MGNvIGRlc2N1YnJpbWVudG8gZGUgQW3pcmljYQ","MGNvYSBSZXZvbHVjafNuIEZyYW5jZXNh"];
var answers3=["MUdyZWdh","MUV4aXBjaWE","MVJvbWFuYQ","MU1lc29wb3ThbWljYQ","MEJpemFudGluYQ","ME9jaWRlbnRhbA"];
var answers4=["MURlc2Vudm9sdmVyb24gdW4gY29tZXJjaW8gbW9pIGFjdGl2bw","MVZpdu1hbiBkYSBhZ3JpY3VsdHVyYSwgZ2FuZGFy7WEgZSBhcnRlc2Fu7WE","MVZpdu1hbiBlbiB0cmlib3Mu","ME9jdXBhYmFuIGEgY29zdGEgYXRs4W50aWNhIGUgY2FudOFicmljYQ","MFZpdu1hbiBlbiBjYXN0cm9zLg","MEFzIHP6YXMgY2FzYXMgZXJhbiBjaXJjdWxhcmVzLg"];
var answers5=["MWFzZW504XJvbnNlIG5vIHJlaW5vIGRlIFRhcnRlc29z","MG1lcmNhYmFuIHNhbCwgZXNwYXJ0byBlIG1ldGFpcw","MHF1ZXLtYW4gY29ucXVpc3RhciBtb2l0b3MgdGVycml0b3Jpb3M","MHZp8WFuIGRlIEdyZWNpYQ","MGZvcm9uIGNvbnF1aXN0YWRvcyBwb2xvcyBUYXJ0ZXNzb3M"];
var answers6=["MXByb2NlZO1hbiBkbyBub3J0ZSBkZSDBZnJpY2E","MGZ1bmRhcm9uIEPhZGl6IGUgTeFsYWdh","MHZlbmTtYW4gY2Vy4W1pY2E","MGNoZWdhcm9uIG5vIHPpY3VsbyBWSSBhLkMu"];
var answers7=["MWNhcnRheGluZXNlcw","MGZlbmljaW9z","MGdyZWdvcw","MHRhcnRlc3Nvcw"];
var answers8=["MWNhcnRheGlu6XM","MGdyZWdv","MGZlbmljaW8","MHRhcnRlc3Nv","MGhpc3Bhbm8"];
var answers9=["MXByb3ZpbmNpYXM","MHBvcHVsdW1z","MGNhc3Ryb3M","MGNvbXVuaWRhZGVzIGF1dPNub21hcw","MHBh7XNlcw"];
var answers10=["MWFzIHBlcnNvYXMgbGlicmVz","MGFzIHBlcnNvYXMgZXNjcmF2YXM","MG9zIG1pbGl0YXJlcw","MG9zIGdvYmVybmFkb3Jlcw"];
var answers11=["MWRvIGNhcmRvIGUgbyBkZWN1bWFudXM","MGRlIGFjdWVkdWN0b3MsIHBvbnRlcyBlIHRlYXRyb3M","MG11cm9zIGNvbiBtb3NhaWNvcw","MGR1bmhhIG11cmFsbGE"];
var answers12=["MWdhbGFpY29z","MHRhcnRlc3Nvcw","MGdyZWdvcw","MGZlbmljaW9z","MGNhcnRheGluZXNlcw"];
var ans=[answers1,answers2,answers3,answers4,answers5,answers6,answers7,answers8,answers9,answers10,answers11,answers12];
var err=["","","","","","","","","","","",""];
var ima=["","","","","","","","","","","",""];
var mp4=["","","","","","","","","","","",""];
var ogv=["","","","","","","","","","","",""];
var indexTag=0; actualAnswers=[]; dirMedia="ActantigaGranTest_resources/media/";
var tiRandOrder=false;
var iT=0;var r_order=[];
colorText="#000000";colorButton="#408053";colorBack="#FFFFFF";colorSele="#E3EEEC";goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
