//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=4; attempts=0; attemptsMax=1;
var score=0; scoreMax=4; 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="¡  Muy bien! "; messageTime=""; messageError="Esa no es la palabra que buscamos."; messageErrorG="Esa no es la palabra que buscamos."; messageAttempts="Segundo 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="MDJsal9s"; 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=[["35","160","0","0"],["61","144","0","0"],["96","140","0","0"],["133","148","0","0"],["149","170","0","0"],["135","198","0","0"],["95","209","0","0"],["66","204","0","0"],["39","188","0","0"],["34","175","0","0"],["84","64","1","1"],["119","60","1","1"],["159","69","1","1"],["168","91","1","1"],["138","115","1","1"],["110","117","1","1"],["81","107","1","1"],["62","99","1","1"],["57","83","1","1"],["343","55","2","2"],["384","43","2","2"],["420","50","2","2"],["442","65","2","2"],["439","87","2","2"],["413","99","2","2"],["378","101","2","2"],["350","97","2","2"],["338","85","2","2"],["338","67","2","2"],["389","128","3","3"],["430","125","3","3"],["457","125","3","3"],["484","140","3","3"],["481","160","3","3"],["449","179","3","3"],["410","176","3","3"],["386","169","3","3"],["378","146","3","3"]];
var backSrc="02lj_l_resources/media/learn-2001847_1920.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(35,160),new Point(61,144),new Point(96,140),new Point(133,148),new Point(149,170),new Point(135,198),new Point(95,209),new Point(66,204),new Point(39,188),new Point(34,175)],[new Point(84,64),new Point(119,60),new Point(159,69),new Point(168,91),new Point(138,115),new Point(110,117),new Point(81,107),new Point(62,99),new Point(57,83)],[new Point(343,55),new Point(384,43),new Point(420,50),new Point(442,65),new Point(439,87),new Point(413,99),new Point(378,101),new Point(350,97),new Point(338,85),new Point(338,67)],[new Point(389,128),new Point(430,125),new Point(457,125),new Point(484,140),new Point(481,160),new Point(449,179),new Point(410,176),new Point(386,169),new Point(378,146)]];
var game=[];indexGame=0;
var area=["0","1","2","3"];
var areaSolved=["N","N","N","N"];
var areaWord=["Inglés","Alemán","Francés","Portugués"];
var areaHelp=["Inglés","Alemán","Francés","Portugués"];
var areaWrong=["","","",""];
var initMessageError="Esa no es la palabra que buscamos.";
var wordPointX=["35","84","343","389"];
var wordPointY=["160","64","55","128"];
var areaColor=["#FF8000","#FF8000","#FF8000","#FF8000"];
var pathMedia="02lj_l_resources/media/"
var auMP3=["","","",""];
var auOGG=["","","",""];
var colorWord="#000000";
colorText="#000000";colorButton="#FF8000";colorBack="#FFFFFF";colorSele="#EBD0AB";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
