//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=30; attempts=0; attemptsMax=1;
var score=0; scoreMax=30; 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 fEnun="Verdana, Geneva, sans-serif";
var timeOnMessage=3; messageOk="Realmente... incríbel!"; messageTime=""; messageError="Pénsao mellor!"; messageAttempts=""; isShowMessage=false;
var urlOk=""; urlTime=""; urlError=""; urlAttempts="";
var goURLOk="_blank"; goURLTime="_blank"; goURLAttempts="_blank"; goURLError="_blank"; 
var consolidateSuccess=0; var consolidateScore=0;
borderOk="#008000"; borderTime="#FF0000";borderError="#FF0000"; borderAttempts="#FF0000";
var indexTXT=0; var txtC=['<p>O territorio galego, cunha superficie de <input type="text" name="item1" id="item1" class="ardoraDropInput" readonly> km2, sitúase na zona <input type="text" name="item2" id="item2" class="ardoraDropInput" readonly> da Península Ibérica tendo coma límites terrestres polo Leste, <input type="text" name="item3" id="item3" class="ardoraDropInput" readonly>, <input type="text" name="item4" id="item4" class="ardoraDropInput" readonly> ( León e Zamora ), polo Sur <input type="text" name="item5" id="item5" class="ardoraDropInput" readonly>, e coma límites marítimos: O. <input type="text" name="item6" id="item6" class="ardoraDropInput" readonly> e o Mar <input type="text" name="item7" id="item7" class="ardoraDropInput" readonly>. </p><p> O conxunto da paisaxe galega está constituida por un <input type="text" name="item8" id="item8" class="ardoraDropInput" readonly> constituido por <input type="text" name="item9" id="item9" class="ardoraDropInput" readonly> antigas e moi <input type="text" name="item10" id="item10" class="ardoraDropInput" readonly>.</p>','<p>Podemos dividir o relevo galego nas seguintes unidades: </p><p> 1.<input type="text" name="item11" id="item11" class="ardoraDropInput" readonly>: estreitas <input type="text" name="item12" id="item12" class="ardoraDropInput" readonly> que se extenden por toda a costa de Galicia. </p><p> 2.<input type="text" name="item13" id="item13" class="ardoraDropInput" readonly>: pequenas serras de pouca altitude ( uns 500 m ) coma a do Barbanza. </p><p> 3.<input type="text" name="item14" id="item14" class="ardoraDropInput" readonly>: ascensión do terreo cara o interior desde as costas. </p><p> 4.<input type="text" name="item15" id="item15" class="ardoraDropInput" readonly>: tamén chamadas <input type="text" name="item16" id="item16" class="ardoraDropInput" readonly>, constituida por pequenas serras de non moita altitude ( 1000 m ):  </p><p> 5.<input type="text" name="item17" id="item17" class="ardoraDropInput" readonly> lucense: <input type="text" name="item18" id="item18" class="ardoraDropInput" readonly> duns 400 m de altitude situada ao norte, na provincia de Lugo. </p><p> 6.<input type="text" name="item19" id="item19" class="ardoraDropInput" readonly>, percorrida polo río Miño </p><p> 7.<input type="text" name="item20" id="item20" class="ardoraDropInput" readonly>: as montañas máis altas do país.</p>','<p>Galicia ten unha costa duns 1.500 km, na que podemos  destacar as rías e os cabos. As rías podemos dividilas en: </p><p> 1.Rías Altas: <input type="text" name="item21" id="item21" class="ardoraDropInput" readonly>. </p><p> 2.Rías o Golfo Ártabro: <input type="text" name="item22" id="item22" class="ardoraDropInput" readonly>. </p><p> 3.Rías da Costa da Morte: <input type="text" name="item23" id="item23" class="ardoraDropInput" readonly> </p><p> 4.Rías Baixas: <input type="text" name="item24" id="item24" class="ardoraDropInput" readonly>. </p><p> Os cabos máis salientabeis son ( de Norte a Sur ): <input type="text" name="item25" id="item25" class="ardoraDropInput" readonly> ( marca o comenzo do Mar Cantábrico e é o punto máis septentrional da Península Ibérica), <input type="text" name="item26" id="item26" class="ardoraDropInput" readonly>, Prior, Vilán, <input type="text" name="item27" id="item27" class="ardoraDropInput" readonly>, <input type="text" name="item28" id="item28" class="ardoraDropInput" readonly>, <input type="text" name="item29" id="item29" class="ardoraDropInput" readonly> e <input type="text" name="item30" id="item30" class="ardoraDropInput" readonly>.</p>'];
var answers=["Serras Orientais","erosionadas","Ortegal","Serras litorias","Touriñán","NO","Cantábrico","Ribadeo, Foz, Viveiro, Barqueiro, Ortigueira","Terra Chá","meseta","Fisterra","macizo","Serras Centrais e Septentrionais","Dorsal galega","Corrubedo","Asturias","Silleiro","Depresións de Ourense","Castela-León","29.574","rochas","Chairas litorais","Portugal","Ferrol, Betanzos, A Coruña","Punta Estaca de Bares","Atlántico","Corme e Laxe, Camariñas, Corcubión","Muros e Noia, Arousa, Pontevedra, Vigo","chairas","Escalón de Santiago"];
var a=["MjA","MTA","MjY","MTM","Mjc","Mg","Nw","MjE","MTc","MTg","Mjg","OA","MTU","MTY","Mjk","Mw","MzA","MTk","NA","MQ","OQ","MTE","NQ","MjI","MjU","Ng","MjM","MjQ","MTI","MTQ"];
var itemCorr=["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"];
var itemHelp=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""];
var animationX=[]; animationY=[]; animationPosX=[]; animationPosY=[]; animationLetter=[];
var wordsGame="R2FsVGV4dENvbXBs"; 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;}
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";
