//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="¡ Buen comienzo!"; messageTime=""; messageError="No es correcto."; messageErrorG="No es correcto."; 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="MDFtYXRlczAz"; 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=[["105","12","0","0"],["28","9","0","0"],["28","147","0","0"],["95","151","0","0"],["188","8","1","1"],["270","8","1","1"],["263","154","1","1"],["184","150","1","1"],["417","11","2","2"],["340","11","2","2"],["330","151","2","2"],["410","151","2","2"],["106","246","3","0"],["111","175","3","0"],["27","175","3","0"],["15","308","3","0"],["96","316","3","0"],["185","178","4","2"],["243","176","4","2"],["257","177","4","2"],["253","314","4","2"],["179","311","4","2"],["339","178","5","0"],["407","179","5","0"],["403","309","5","0"],["325","304","5","0"]];
var backSrc="01mates03_resources/media/act01.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(105,12),new Point(28,9),new Point(28,147),new Point(95,151)],[new Point(188,8),new Point(270,8),new Point(263,154),new Point(184,150)],[new Point(417,11),new Point(340,11),new Point(330,151),new Point(410,151)],[new Point(106,246),new Point(111,175),new Point(27,175),new Point(15,308),new Point(96,316)],[new Point(185,178),new Point(243,176),new Point(257,177),new Point(253,314),new Point(179,311)],[new Point(339,178),new Point(407,179),new Point(403,309),new Point(325,304)]];
var game=[];indexGame=0;
var area=["0","1","2","0","2","0"];
var areaSolved=["N","N","N","N","N","N"];
var areaWord=[">1","=1","<1",">1","<1",">1"];
var areaHelp=["Haz clic en las fracciones <b>mayores</b> que la unidad.","Indica cuáles son las fracciones <b>iguales</b> a la unidad.","¿ Cuáles son las fracciones <b>menores</b> que la unidad?","Haz clic en las fracciones <b>mayores</b> que la unidad.","¿ Cuáles son las fracciones <b>menores</b> que la unidad?","Haz clic en las fracciones <b>mayores</b> que la unidad."];
var areaWrong=["","","","","",""];
var initMessageError="No es correcto.";
var wordPointX=["105","265","415","105","265","415"];
var wordPointY=["105","105","105","270","270","270"];
var areaColor=["#F0F0F0","#F0F0F0","#F0F0F0","#F0F0F0","#F0F0F0","#F0F0F0"];
var pathMedia="01mates03_resources/media/"
var auMP3=["","","","","",""];
var auOGG=["","","","","",""];
var colorWord="#DC5A15";
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";
