//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=6; attempts=0; attemptsMax=1;
var score=0; scoreMax=6; 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="Fijate en lo que se indica debajo de la imagen."; messageErrorG="Fijate en lo que se indica debajo de la imagen."; messageAttempts="Vuelve a intentarlo"; 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="bWFBY3QwMV8wMg"; 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=[["183","25","0","0"],["183","99","0","0"],["283","94","0","0"],["282","24","0","0"],["14","144","1","0"],["82","144","1","0"],["82","221","1","0"],["15","222","1","0"],["87","227","2","0"],["189","226","2","0"],["189","310","2","0"],["82","309","2","0"],["252","160","3","3"],["207","218","3","3"],["306","284","3","3"],["341","210","3","3"],["99","15","4","0"],["16","67","4","0"],["39","127","4","0"],["99","113","4","0"],["136","66","4","0"],["427","2","5","5"],["372","30","5","5"],["420","75","5","5"],["481","76","5","5"],["491","30","5","5"],["454","15","5","5"]];
var backSrc="maAct01_02_resources/media/graMul.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(183,25),new Point(183,99),new Point(283,94),new Point(282,24)],[new Point(14,144),new Point(82,144),new Point(82,221),new Point(15,222)],[new Point(87,227),new Point(189,226),new Point(189,310),new Point(82,309)],[new Point(252,160),new Point(207,218),new Point(306,284),new Point(341,210)],[new Point(99,15),new Point(16,67),new Point(39,127),new Point(99,113),new Point(136,66)],[new Point(427,2),new Point(372,30),new Point(420,75),new Point(481,76),new Point(491,30),new Point(454,15)]];
var game=[];indexGame=0;
var area=["0","0","0","3","0","5"];
var areaSolved=["N","N","N","N","N","N"];
var areaWord=["5","5","5","11","5","6"];
var areaHelp=["Haz clic en los <b>múltiplos de 5</b>","Haz clic en los <b>múltiplos de 5</b>","Haz clic en los <b>múltiplos de 5</b>","Haz clic en los <b>múltiplos de 11</b>","Haz clic en los <b>múltiplos de 5</b>","Haz clic en los <b>múltiplos del 6</b>"];
var areaWrong=["","","","","",""];
var initMessageError="Fijate en lo que se indica debajo de la imagen.";
var wordPointX=["200","38","120","260","90","427"];
var wordPointY=["60","170","240","180","40","27"];
var areaColor=["#0080C0","#0080C0","#0080C0","#80FF00","#0080C0","#8080FF"];
var pathMedia="maAct01_02_resources/media/"
var auMP3=["","","","","",""];
var auOGG=["","","","","",""];
colorText="#2B2B2B";colorButton="#858B00";colorBack="#FFFFFF";colorSele="#F8F5D7";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
