//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="Localizados!"; messageTime=""; messageError="Ese non é ningún dos países que buscamos."; messageErrorG="Ese non é ningún dos países que buscamos."; 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="MDVleHByZQ"; 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=[["137","97","0","0"],["156","85","0","0"],["108","82","0","0"],["62","83","0","0"],["50","103","0","0"],["60","114","0","0"],["85","124","0","0"],["98","118","0","0"],["110","120","0","0"],["115","130","0","0"],["117","114","0","0"],["127","103","0","0"],["249","68","1","0"],["251","60","1","0"],["261","70","1","0"],["258","75","1","0"],["249","81","1","0"],["245","75","1","0"]];
var backSrc="05expre_resources/media/mapa.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(137,97),new Point(156,85),new Point(108,82),new Point(62,83),new Point(50,103),new Point(60,114),new Point(85,124),new Point(98,118),new Point(110,120),new Point(115,130),new Point(117,114),new Point(127,103)],[new Point(249,68),new Point(251,60),new Point(261,70),new Point(258,75),new Point(249,81),new Point(245,75)]];
var game=[];indexGame=0;
var area=["0","0"];
var areaSolved=["N","N"];
var areaWord=["Boston","Liverpool"];
var areaHelp=["Fai clic sobre os países que uniría este medio de transporte.","Fai clic sobre os países que uniría este medio de transporte."];
var areaWrong=["",""];
var initMessageError="Ese non é ningún dos países que buscamos.";
var wordPointX=["137","249"];
var wordPointY=["97","68"];
var areaColor=["#D5D200","#D5D200"];
var pathMedia="05expre_resources/media/"
var auMP3=["",""];
var auOGG=["",""];
var colorWord="#000000";
colorText="#000000";colorButton="#D5D200";colorBack="#FFFFFF";colorSele="#DC5A15";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
