//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="¡ Bien visto!"; messageTime=""; messageError="Ese no es el color que buscamos."; messageErrorG="Ese no es el color que buscamos."; messageAttempts="Vamos a intentarlo 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="MDdsZWN0Q0FT"; 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=[["25","35","0","0"],["35","22","0","0"],["74","20","0","0"],["89","32","0","0"],["90","74","0","0"],["79","89","0","0"],["39","87","0","0"],["23","72","0","0"],["121","123","1","1"],["134","109","1","1"],["173","108","1","1"],["183","119","1","1"],["186","162","1","1"],["174","179","1","1"],["132","179","1","1"],["117","162","1","1"],["344","181","2","2"],["366","178","2","2"],["378","162","2","2"],["378","123","2","2"],["364","110","2","2"],["327","110","2","2"],["312","125","2","2"],["311","166","2","2"],["320","176","2","2"]];
var backSrc="07lectCAS_resources/media/cores.png";
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(25,35),new Point(35,22),new Point(74,20),new Point(89,32),new Point(90,74),new Point(79,89),new Point(39,87),new Point(23,72)],[new Point(121,123),new Point(134,109),new Point(173,108),new Point(183,119),new Point(186,162),new Point(174,179),new Point(132,179),new Point(117,162)],[new Point(344,181),new Point(366,178),new Point(378,162),new Point(378,123),new Point(364,110),new Point(327,110),new Point(312,125),new Point(311,166),new Point(320,176)]];
var game=[];indexGame=0;
var area=["0","1","2"];
var areaSolved=["N","N","N"];
var areaWord=["Verde esmeralda","Bermellón","Púrpura"];
var areaHelp=["Verde esmeralda","Bermellón","Púrpura"];
var areaWrong=["","",""];
var initMessageError="Ese no es el color que buscamos.";
var wordPointX=["50","150","344"];
var wordPointY=["35","150","160"];
var areaColor=["#F0F0F0","#F0F0F0","#F0F0F0"];
var pathMedia="07lectCAS_resources/media/"
var auMP3=["","",""];
var auOGG=["","",""];
var colorWord="#000000";
colorText="#000000";colorButton="#6F89E6";colorBack="#FFFFFF";colorSele="#C5E6FA";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
