//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=9; attempts=0; attemptsMax=2;
var score=0; scoreMax=9; 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="Bo traballo!"; messageTime=""; messageError=""; messageErrorG=""; messageAttempts="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="MDNyb21hbmE"; 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.- Os exipcios inventaron ...","2.- Os romanos dispuñan do seu propio aparello chamado...","3.- A romana xa existía ...","4.- O funcionamento da romana está baseado...","5.- Os dous brazos da romana son...","6.- O produto a colgar penduraba ...","7.- O contrapeso...","8.- O contrapeso...","9.- A romana é un aparato..."];
var answers1=["MXVuaGEgYmFsYW56YSBjb3MgYnJhem9zIHNpbel0cmljb3M","MHVuaGEgYmFsYW56YSBjb3MgYnJhem9zIGFzaW3pdHJpY29z","MG8gZ2FuY2hvIGRhIGJhbGFuemE","MG9zIGJyYXpvcyBkYSBiYWxhbnph"];
var answers2=["MWEgcm9tYW5hIGRlIGdhbmNobw","MG8gZ2FuY2hvIGRhIHJvbWFuYQ","MGFlcXVpcG9uZGl1bQ","MGNvbnRyYXBlc28gZGUgZmVycm8"];
var answers3=["MTIwMCBhbm9zIGFudGVzIGRlIENyaXN0bw","MDUwMDAgYW5vcyBhbnRlcyBkZSBDcmlzdG8","MG5vIHPpY3VsbyBkb3VzIGRlc3BvaXMgZGUgQ3Jpc3Rv","MG5vIG11bmRvIGV4aXBjaW8"];
var answers4=["MW5hIGxlaSBkYSBwYW5jYQ","MG5hIGJhbGFuemEgZXhpcGNpYQ","MG5vIGdhbmNobw","MG5hIHNpbWV0cu1h"];
var answers5=["MW5vbiBzaW3pdHJpY29z","MHNpbel0cmljb3M","MHBlcXVlbm9z","MGlndWFpcw"];
var answers6=["MWRvIGJyYXpvIG3haXMgY3VydG8","MGRvIGJyYXpvIG3haXMgbG9uZ28","MGRvIGNvbnRyYXBlc28","MGRvIGFlcXVpcG9uZGl1bQ"];
var answers7=["MWNvbG9j4WJhc2Ugbm8gYnJhem8gbeFpcyBsb25nbw","MGNvbG9j4WJhc2Ugbm8gYnJhem8gbeFpcyBjdXJ0bw","MGdyYWR14WJhc2Ugc2Vn+m4gbyBwcm9kdXRvIGEgcGVzYXI"];
var answers8=["MW5vcm1hbG1lbnRlIGVyYSBkZSBmZXJybyBtYWNpem8","MG5vcm1hbG1lbnRlIGVyYSB1biBsYXTtbg","MG5vbiBlcmEgcHJlY2lzbw","MGVyYSBpbm94aWRhYmxl"];
var answers9=["MWRlIHBvdWNhIHByZWNpc2nzbg","MGRlIGdyYW4gcHJlY2lzafNu","MG1vaSB1c2FkbyBuYSBhY3R1YWxpZGFkZQ"];
var ans=[answers1,answers2,answers3,answers4,answers5,answers6,answers7,answers8,answers9];
var err=["Non é correcto, le con atención o primeiro parágrafo.","Non, deberías de ler o segundo parágrafo da lectura antes de volver a contestar.","Fíxate, na lectura fala de dous séculos antes de Cristo","Seguro que liches o texto?","Non é correcto.","Non, no terceiro parágrafo explícase con claridade esta pregunta.","Realmente liches o texto?","Resposta incorrecta","Non é correcto."];
var ima=["","","","","","","","",""];
var mp4=["","","","","","","","",""];
var ogv=["","","","","","","","",""];
var indexTag=0; actualAnswers=[]; dirMedia="03romana_resources/media/";
var tiRandOrder=false;
var iT=0;var r_order=[];
colorText="#000000";colorButton="#6F89E6";colorBack="#FFFFFF";colorSele="#C5E6FA";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
