var timeAct=360; timeIni=360; timeBon=0;
var successes=0; successesMax=22; attempts=0; attemptsMax=1;
var score=0; scoreMax=22; scoreInc=1; scoreDec=1
var typeGame=0;
var tiTime=false;
var tiTimeType=0;
var tiButtonTime=false;
var textButtonTime="Comenzar";
var tiSuccesses=true;
var tiAttempts=false;
var tiScore=true;
var startTime;
var colorBack="#FFFFFF"; 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=3; messageOk="Fantástico! Ti estiveches con Plinio!"; messageTime=""; messageError="Non lle mintas a Vulcano!"; messageErrorG="Non lle mintas a Vulcano!"; messageAttempts=""; 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="UG9tcGVpYVRlc3Q"; 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=["Que dous deuses da mitoloxía romana aparecen na lectura?","Que criaturas lle tiñan medo a Vulcano?","Que desexaban os deuses e os humanos?","Como aplacaban os romanos a ira de Vulcano?","En que ano foi a erupción do Vesuvio?","En que mes foi a erupción do Vesuvio?","Que volume tiña o magma acumulado baixo o volcán?","A que distancia da superficie estaba o magma antes da erupción?","Como se chamaba o secretario de Plinio?","Que facía Alexion cun reloxo de auga?","A que velocidade empezou a ascender o magma?","Que día foi a erupción volcánica?","A que hora se produxo a erupción?","Cal foi a velocidade de saída do magma?","Cal foi a ruta de fuxida dos pompeianos?","Que material alfombraba a superficie do mar?","A que ritmo foi lanzada a pedra pómez?","Quie tres cidades foron sepultadas pola erupción do Vesubio?","Que texto consultou Plinio?","Que outros dous volcáns aparecen no texto aparte do Vesuvio?","Cantas vítimas provocou o volcán?","Como lle chamamos a unha defición dunha erupción volcánica tal e como a fixo Plinio?"];
var answers1=["MVZ1bGNhbm8","MUVvbG8","MFj6cGl0ZXI","MFZlbnVz","MEFwb2xv","ME1hcnRl"];
var answers2=["MUhvbWU","MU11bGxlcg","MUNhbg","MUxl824","MFBlaXhl"];
var answers3=["MUFxdWlsbyBxdWUgbm9uIHBvZO1hbiBhbGNhbnphcg","MEFxdWlsbyBxdWUgb2RpYWJhbg","MEFxdWlsbyBxdWUgbm9uIHBvZO1hbiB0b2Nhcg","MEFxdWlsbyBxdWUgbm9uIHBvZO1hbiB2ZXI"];
var answers4=["MUJvdGFuZG8gcGVpeGVzIHZpdm9zIGEgdW4gbHVtZQ","MEJvdGFuZG8gcGVpeGVzIGEgdW5oYSBwaXJh","MFNhY3JpZmljYW5kbyBwZWl4ZXMgbnVuIGFsdGFy","MEJvdGFuZG8gcGVpeGVzIGFvIHZvbGPhbg"];
var answers5=["MTc5IGQuQy4","MDc5IGEuQy4","MDI5IGQuQy4","MDU5YS5DLg"];
var answers6=["MUFnb3N0bw","MFhhbmVpcm8","MFh1bGxv","MFh18W8","MEFicmls"];
var answers7=["MTMsNiBtaWxs825zIGRlIGtpbPNtZXRyb3MgY/piaWNvcw","MDYsMyBtaWxs825zIGRlIGtpbPNtZXRyb3MgY/piaWNvcw","MDM2IG1pbGzzbnMgZGUga2ls821ldHJvcyBj+mJpY29z","MDMzLDYgbWlsbPNucyBkZSBraWzzbWV0cm9zIGP6Ymljb3M"];
var answers8=["MTMga20","MDMwLjAwMCBt","MDIsNSBrbQ","MDMzLjAwMC4wMDAgY20"];
var answers9=["MUFsZXhpb24","MEFsZWl4bw","MEFsYmVydG8","MEFsZWl4824","ME1leGls824"];
var answers10=["MUNvbnRyb2xhciBhIGZyZWN1ZW5jaWEgZG9zIHRyZW1vcmVz","MEJlYmVyLiBUafFhIHNlZGU","ME1pcmFyIGEgaG9yYS4gUXVlIO1hIGZhY2VyICE","MENvbnRyb2xhciBhIGZyZWN1ZW5jaWEgZGFzIGVydXBjafNucyB2b2xj4W5pY2Fz"];
var answers11=["MTAuNzIga20gcG9yIGhvcmE","MDcyIG0gcG9yIGhvcmE","MDIwIGNtIHBvciBzZWd1bmRv","MDIwIG1tIHBvciBzZWd1bmRv"];
var answers12=["MTI0IGFnb3N0bw","MDI0IHh1bGxv","MDIxIHhhbmVpcm8","MDE0IG1hcnpv","MDI4IGRlY2VtYnJv"];
var answers13=["MURlc3BvaXMgZGFzIDEy","MEFudGVzIGRvIG1lZGlvZO1h","MEFvIGFtZW5jZXIsIG1vaSBjZWRv","MFBvbGEgdGFyZGUsIGEgaXNvIGRhcyA0"];
var answers14=["MTEuNDQwIGttIHBvciBob3Jh","MDE0MCBrbSBwb3IgaG9yYQ","MDEsNCBrbSBwb3IgaG9yYQ","MDE0NCBrbSBwb3IgaG9yYQ"];
var answers15=["MUNhcmEgbyBtYXI","MFBvbGEgcG9ydGE","MFBvbGEgbGFkZWlyYSBkYSBtb250YfFh","MFBvbGEgcnV0YSB4YWNvYmVh","MENhcmEgSGVyY3VsYW5v"];
var answers16=["MVBlZHJhIHDzbWV6","MEFyZ2F6bw","MEJhcmNvcw","MEFyZWE","MEZ1bWU","MFBlZHJhIGfzbWV6","MFBldHJhIFDzbWV6"];
var answers17=["MTEsNSBtaWxs825zIGRlIHRvbmVsYWRhcyBwb3Igc2VndW5kbw","MDE1IHRvbmVsZGFzIHBvciBtaW51dG8","MDEsNSB0b25lbGFkYXMgcG9yIHNlZ3VuZG8","MDEsNSBtaWxs825zIGRlIHRvbmVsYWRhcyBwb3IgbWludXRv"];
var answers18=["MVBvbXBlaWE","MUhlcmN1bGFubw","MU9wbG9udGlz","MFJvbWE","ME7hcG9sZXM","MFN0cm9tYm9saQ","MEZsb3JlbmNpYQ","MFNpY2lsaWE"];
var answers19=["MUEgWGVvZ3JhZu1hIGRlIEVzdHJhYvNu","MEEgSGlzdG9yaWEgZGUgSGVy82RvdG8","MEEgVm9sY+FuaWNhIGRlIEFyaXN083RlbGVz","MEEgWGVvZ3JhZu1hIGRlIFBsYXTzbg","ME8gdGVvcmVtYSBkZSBQaXThZ29yYXM"];
var answers20=["MUV0bmE","MVN0cm9tYm9saQ","MEtyYWthdG9h","MENoaW1ib3Jhem8","MFRlaWRl","MEhpcm9zaGltYQ"];
var answers21=["MU3haXMgZGUgZPphcyBtaWwgZW4gbWVub3MgZHVuIG1pbnV0bw","ME1lbm9zIGRlIHRyZXMgbWlsIG51biBtaW51dG8","ME3haXMgZGUgbWlsIGVuIGRvdXMgbWludXRvcw","ME1vZ29sbPNu","ME5vbiBzZSBzYWJl","MET6YXMgbWlsIHBvciBtaW51dG8"];
var answers22=["MVBs7W5pY2E","MFDtcnJpY2E","MENs7W5pY2E","MENpZW507WZpY2E"];
var ans=[answers1,answers2,answers3,answers4,answers5,answers6,answers7,answers8,answers9,answers10,answers11,answers12,answers13,answers14,answers15,answers16,answers17,answers18,answers19,answers20,answers21,answers22];
var err=["","","","","","","","","","","","","","","","","","","","","",""];
var ima=["","","","","","","","","","","","","","","","","","","","","",""];
var indexTag=0; actualAnswers=[]; dirMedia="PompeiaTest_resources/media/";
colorText="#2B2B2B";colorButton="#647B2A";colorBack="#FFFFFF";colorSele="#80715C";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
