//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=180; timeIni=180; timeBon=10;
var successes=0; successesMax=16; attempts=0; attemptsMax=2;
var score=0; scoreMax=16; scoreInc=1; scoreDec=1
var typeGame=0;
var tiTime=true;
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 rematado. Bo traballo."; messageTime=""; messageError="Non é correcta."; messageErrorG="Non é correcta."; messageAttempts="Terceiro fallo. 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="Z3JhblRlc3Q"; 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.- Un ecositema é un conxunto formado por...","2.- O biotopo é...","3.- Son factores do medio físico que teñen repercusión nos seres vivos:","4.- O pH está relacionado","5.- Unha duna é un ecosistema...","6.- Un lago é un ecosistema...","7.- O conxunto de todos os membros dunha mesma especie nun ecositema constitúen...","8.- Na relación de depredación...","9.- Os seres vivos gregarios...","10.- As formigas presentan unha relación:","11.- Os consumidores secundarios son aqueles que se alimentan...","12.- Os descompoñedores medran sobre...","13.- As redes alimentarias son a representación...","14.- Nun ecosistema o número de consumidores secundarios debe de ser","15.- Coa reforestación dos montes...","16.- Os espacios naturais protexidos son"];
var answers1=["MXVuIG1lZGlvIGbtc2ljbw","MW9zIHNlcmVzIHZpdm9zIHF1ZSBvIGhhYml0YW4","MWFzIHJlbGFjafNucyBlbnRyZSBvcyBzZXJlcyB2aXZvcw","MGEgYmlvc2ZlcmE","MGEgc2FsaW5pZGFkZQ","MGEgZXNwZWNpZSBxdWUgbyBoYWJpdGE"];
var answers2=["MW8gbWVkaW8gZu1zaWNvIGUgb3MgZmFjdG9yZXMgcXVlIHJlcGVyY3V0ZW4gbm9zIHNlcmVzIHZpdm9z","MG8gY29ueHVudG8gZGFzIGRpc3RpbnRhcyBwb2JvYWNp825zIHF1ZSBmb3JtYW4gbyBlY29zaXN0ZW1h","MGEgYmlvc2ZlcmEsIGEgYXVnYSwgYSBzYWxpbmlkYWRlIGUgbyBwSA"];
var answers3=["MWx1eg","MXRlbXBlcmF0dXJh","MXNhbGluaWRhZGU","MXBI","MWh1bWlkYWRl","MWFsdGl0dWRl","MGJpb3NmZXJh","MG1peHRv","MGFjdeF0aWNv","MHRlcnJlc3RyZQ"];
var answers4=["MWNvYSBhY2lkZXogZG8gbWVkaW8","MGNvYSBodW1pZGFkZSBkbyBhbWJpZW50ZQ","MGNvYSBzYWxpbmlkYWRlIGRhIGF1Z2E","MGNvYSB0ZW1wZXJhdHVyYQ","MGNvYSBhbHRpdHVkZQ"];
var answers5=["MW1peHRv","MHRlcnJlc3RyZQ","MGFjdeF0aWNv"];
var answers6=["MWFjdeF0aWNv","MG1peHRv","MHRlcnJlc3RyZQ"];
var answers7=["MXVuaGEgcG9ib2FjafNu","MHVuaGEgY29tdW5pZGFkZQ","MHVuaGEgYmlvY2Vub3Nl","MHVuIGJpb3RvcG8","MHVuaGEgYmlvc2ZlcmE"];
var answers8=["MXVuaGEgZXNwZWNpZSBzYWUgYmVuZWZpY2lhZGEgYSBvdXRyYSBub24","MGFzIGT6YXMgZXNwZWNpZXMgc2FlbiBiZW5lZmljaWFkYXM","MHVuaGEgZXNwZWNpZSBzYWUgYmVuZWZpY2lhZGEgc2VuIGRhbmFyIOEgb3V0cmE"];
var answers9=["MWNvbnZpdmVuIHBhcmEgcHJvdGV4ZXJzZQ","MHRl8WVuIHVuaGEgZGl2aXNp824gZXN0cmljdGEgZG8gdHJhYmFsbG8","MGVzdOFuIHVuaWRvcyBmaXNpY2FtZW50ZSBlbnRyZSBzaQ"];
var answers10=["MXNvY2lhbA","MGdyZWdhcmlh","MGZhbWlsaWFy","MGNvbG9uaWFs"];
var answers11=["MWRvcyBjb25zdW1pZG9yZXMgcHJpbWFyaW9z","MGRvcyBwcm9kdXRvcnJlcw","MGRvcyBkZXNjb21wb/FlZG9yZXM"];
var answers12=["MXVuIHByb2R1dG9y","MXVuIGNvbnN1bWlkb3I","MGEgdGVycmE","MGFzIHBsYW50YXM"];
var answers13=["MWRhcyBkaXN0aW50YXMgY2FkZWFzIGFsaW1lbnRhcmlhcw","MGRhIHJlbGFjafNuIGFsaW1lbnRhcmlhIGVudHJlIGT6YXMgZXNwZWNpZXM","MGRvcyBzZXJlcyB2aXZvcyBxdWUgaGFiaXRhbiB1biBlY29zaXN0ZW1h"];
var answers14=["MW1lbm9yIHF1ZSBvIGRlIGNvbnN1bWlkb3JlcyBwcmltYXJpb3M","MG1haW9yIHF1ZSBvIGRlIHByb2R1dG9yZXM","MGlndWFsIHF1ZSBvIGRlIHByb2R1dG9yZXM","MG1haW9yIHF1ZSBvIGRlIGNvbnN1bWlkb3JlcyBwcmltYXJpb3M"];
var answers15=["MWNvbnPpZ3Vlc2UgYSBz+mEgcmVjdXBlcmFjafNu","MHDpcmRlbnNlIHRvZGFzIGFzIOFyYm9yZXM","MGVzZ/N0YW5zZSBvcyByZWN1cnNvcyBuYXR1cmFpcw"];
var answers16=["MWx1Z2FyZXMgcXVlIHRl8WVuIGltcG9ydGFuY2lhIGVjb2zzeGljYQ","MHNvbiBlc3Bhem9zIG5vcyBxdWUgZXN04SBwcm9oaWJpZGEgdG9kbyB0aXBvIGRlIGFjdGl2aWRhZGUgaHVtYW5h","MGVzcGF6b3MgcXVlIHBvciB0ZXIgdW4gYWx0byBuaXZlbCBkZSBjb250YW1pbmFjafNuIHRl8WVuIHVuaGEgZXNwZWNpYWwgcHJvdGVjY2nzbg","MG9zIGVzcGF6b3MgcmVzZXJ2YWRvcyBwYXJhIGEgcmVjaWNsYXhl"];
var ans=[answers1,answers2,answers3,answers4,answers5,answers6,answers7,answers8,answers9,answers10,answers11,answers12,answers13,answers14,answers15,answers16];
var err=["Non. Fíxate hai 3 correctas.","","Fíxate. Hai 6 correctas.","","","","","","","","","Ollo. Hai dúas correctas.","","","",""];
var ima=["","","","","","","","","","","","","","","",""];
var indexTag=0; actualAnswers=[]; dirMedia="granTest_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";
