//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=2; attempts=0; attemptsMax=1;
var score=0; scoreMax=2; 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 fEnun="Verdana, Geneva, sans-serif";
var timeOnMessage=5; messageOk="Ben. Vexamos agora os ríos."; messageTime=""; messageError="Pénsao ben."; messageErrorG="Pénsao ben."; 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="MDFkaXRnYWw"; 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 points=[["325","221","0","0"],["206","216","0","0"],["199","234","0","0"],["213","249","0","0"],["243","266","0","0"],["271","264","0","0"],["291","262","0","0"],["298","275","0","0"],["312","256","0","0"],["319","234","0","0"],["143","253","1","1"],["224","290","1","1"],["299","299","1","1"],["358","270","1","1"],["351","251","1","1"],["321","249","1","1"],["303","284","1","1"],["291","278","1","1"],["279","268","1","1"],["259","274","1","1"],["234","266","1","1"],["219","258","1","1"],["200","248","1","1"],["192","240","1","1"],["167","237","1","1"]];
var backSrc="01ditgal_resources/media/mapaGal01.jpg";
var Shape = function () {this.x=undefined;this.y=undefined;};
Shape.prototype={fill:function(context){context.save();context.fillStyle=this.fillStyle;this.createPath(context);context.fill();context.restore();},
stroke:function(context){context.save();this.createPath(context);context.stroke();context.restore();},
isPointInPath:function(context,x,y){this.createPath(context);return context.isPointInPath(x, y);},};
var Polygon=function(){this.points = [];this.numInd=0;};Polygon.prototype=new Shape();Polygon.prototype.addPoint=function(x,y){this.points.push(new Point(x,y));};
Polygon.prototype.createPath=function (context) {if (this.points.length === 0)return;context.beginPath();
context.moveTo(this.points[0].x,this.points[0].y);for (var i=0; i < this.points.length; ++i) {context.lineTo(this.points[i].x,this.points[i].y);}context.closePath();};
var Point=function(x,y){this.x=x;this.y=y;};var shapes=[];
var polygonPoints=[[new Point(325,221),new Point(206,216),new Point(199,234),new Point(213,249),new Point(243,266),new Point(271,264),new Point(291,262),new Point(298,275),new Point(312,256),new Point(319,234)],[new Point(143,253),new Point(224,290),new Point(299,299),new Point(358,270),new Point(351,251),new Point(321,249),new Point(303,284),new Point(291,278),new Point(279,268),new Point(259,274),new Point(234,266),new Point(219,258),new Point(200,248),new Point(192,240),new Point(167,237)]];
var game=[];indexGame=0;
var area=["0","1"];
var areaSolved=["N","N"];
var areaWord=["Sur de Lugo","Norte de Ourense"];
var areaHelp=["Indica onde se atopa o sur da provincia de Lugo","Fai clic no norte da provincia de Ourense."];
var areaWrong=["",""];
var initMessageError="Pénsao ben.";
var wordPointX=["225","200"];
var wordPointY=["265","300"];
var areaColor=["#FF8000","#FF8000"];
var pathMedia="01ditgal_resources/media/"
var auMP3=["",""];
var auOGG=["",""];
colorText="#2B2B2B";colorButton="#D5D200";colorBack="#FFFFFF";colorSele="#D94C00";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
