//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=3; attempts=0; attemptsMax=1;
var score=0; scoreMax=3; 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="Localizado!"; messageTime=""; messageError=""; messageErrorG=""; messageAttempts="Relle el primero y último párrafo e inténtalo otra 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="MDJyb2JpY2Fz"; 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=[["245","42","0","0"],["197","46","0","0"],["186","20","0","0"],["204","11","0","0"],["234","19","0","0"],["264","5","0","0"],["282","2","0","0"],["283","18","0","0"],["267","30","0","0"],["72","195","1","1"],["140","201","1","1"],["142","242","1","1"],["90","264","1","1"],["69","221","1","1"],["143","195","2","2"],["214","213","2","2"],["201","250","2","2"],["204","269","2","2"],["142","263","2","2"]];
var backSrc="02robicas_resources/media/mapaAfrica2.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(245,42),new Point(197,46),new Point(186,20),new Point(204,11),new Point(234,19),new Point(264,5),new Point(282,2),new Point(283,18),new Point(267,30)],[new Point(72,195),new Point(140,201),new Point(142,242),new Point(90,264),new Point(69,221)],[new Point(143,195),new Point(214,213),new Point(201,250),new Point(204,269),new Point(142,263)]];
var game=[];indexGame=0;
var area=["0","1","2"];
var areaSolved=["N","N","N"];
var areaWord=["Islas Canarias","Cabo Verde","Posición final"];
var areaHelp=["Comunidad autónoma española citada al inicio del fragmento.","Islas que cree divisar el protagonista al final del fragmento.","Lugar en el que cree encontrarse el protagonista al final del fragmento."];
var areaWrong=["Fíjate, al principio habla de unas islas.","Fíjate en el nombre de las islas que se citan en el último fragmento.","Fíjate, dice que ve tierra a un lado y otro de la barca."];
var initMessageError="";
var wordPointX=["245","70","160"];
var wordPointY=["42","210","230"];
var areaColor=["#FF0000","#FF0000","#FF0000"];
var pathMedia="02robicas_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";
