//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=5; attempts=0; attemptsMax=1;
var score=0; scoreMax=5; scoreInc=1; scoreDec=1
var typeGame=0;
var tiTime=false;
var tiTimeType=0;
var tiButtonTime=true;
var textButtonTime="Comenzar";
var tiSuccesses=false;
var tiAttempts=false;
var tiScore=false;
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=""; messageTime=""; messageError=""; messageErrorG=""; 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="MDV0ZXN0"; 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.- Todos os seres que podemos atopar na natureza pertencen a un de estes dous grupos:","2.- Os seres vivos teñen unha organización..","3.- As funcións vitais son:","4.- Mediante a función de nutrición, as persoas,...","5.- A célula é.."];
var answers1=["MWluZXJ0ZXM","MXZpdm9z","MHVuaWNlbHVsYXJlcw","MGFuaW1haXM","MHBsYW50YXM","MHBsdXJpY2VsdWxhcmVz"];
var answers2=["MW1vaSBjb21wbGV4YQ","MG1vaSBzaW1wbGU","MGNh83RpY2E","MHBsdXJpY2VsdWxhcg"];
var answers3=["MW51dHJpY2nzbg","MXJlbGFjafNu","MXJlcHJvZHVjafNu","MGNlbHVsYXI"];
var answers4=["MU9idGVtb3MgbWF0ZXJpYWlzIHBhcmEgbyBub3NvIGNyZWNlbWVudG8u","ME9idGVtb3MgZXN07W11bG9zIGV4dGVybm9zLg","MFBvZGVtb3MgcmVhbGl6YXIgYSBmdW5jafNuIGRlIHJlbGFjafNuLg"];
var answers5=["MWEgbWVub3IgcGFydGUgbmEgcXVlIHBvZGVtb3MgImRpdmlkaXIiIGEgdW4gc2VyIHZpdm8gcXVlIHJlYWxpY2UgYXMgdHJlcyBmdW5jafNucyB2aXRhaXMu","MHVuIPNyZ2FubyBxdWUgdG9kb3Mgb3Mgc2VyZXMgdml2b3MgdGXxZW4u","MG8gbWFpb3IgdGVjaWRvIHF1ZSB0ZfFlbiB0b2RvcyBvcyBzZXJlcyB2aXZvcy4"];
var ans=[answers1,answers2,answers3,answers4,answers5];
var err=["","","","",""];
var ima=["","","","",""];
var indexTag=0; actualAnswers=[]; dirMedia="05test_resources/media/";
var tiRandOrder=false;
var iT=0;var r_order=[];
colorText="#000000";colorButton="#FF8000";colorBack="#FFFFFF";colorSele="#EBD0AB";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
