//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=10; attempts=0; attemptsMax=1;
var score=0; scoreMax=10; 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!"; messageTime=""; messageError="Esa fracción no es igual a un número natural."; messageErrorG="Esa fracción no es igual a un número natural."; messageAttempts="Piénsalo bien y 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="MDFtYXRlczA1"; 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=[["4","0","0","0"],["94","3","0","0"],["93","112","0","0"],["1","111","0","0"],["189","1","1","0"],["272","0","1","0"],["272","112","1","0"],["186","110","1","0"],["365","1","2","0"],["447","2","2","0"],["447","114","2","0"],["362","110","2","0"],["450","1","3","0"],["529","1","3","0"],["531","112","3","0"],["450","113","3","0"],["2","114","4","0"],["94","115","4","0"],["91","218","4","0"],["3","217","4","0"],["276","113","5","0"],["363","114","5","0"],["363","217","5","0"],["273","218","5","0"],["94","219","6","0"],["185","219","6","0"],["187","321","6","0"],["92","320","6","0"],["187","219","7","0"],["271","219","7","0"],["269","320","7","0"],["186","320","7","0"],["272","218","8","0"],["361","220","8","0"],["361","320","8","0"],["272","320","8","0"],["365","221","9","0"],["446","219","9","0"],["446","323","9","0"],["362","321","9","0"]];
var backSrc="01mates05_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(4,0),new Point(94,3),new Point(93,112),new Point(1,111)],[new Point(189,1),new Point(272,0),new Point(272,112),new Point(186,110)],[new Point(365,1),new Point(447,2),new Point(447,114),new Point(362,110)],[new Point(450,1),new Point(529,1),new Point(531,112),new Point(450,113)],[new Point(2,114),new Point(94,115),new Point(91,218),new Point(3,217)],[new Point(276,113),new Point(363,114),new Point(363,217),new Point(273,218)],[new Point(94,219),new Point(185,219),new Point(187,321),new Point(92,320)],[new Point(187,219),new Point(271,219),new Point(269,320),new Point(186,320)],[new Point(272,218),new Point(361,220),new Point(361,320),new Point(272,320)],[new Point(365,221),new Point(446,219),new Point(446,323),new Point(362,321)]];
var game=[];indexGame=0;
var area=["0","0","0","0","0","0","0","0","0","0"];
var areaSolved=["N","N","N","N","N","N","N","N","N","N"];
var areaWord=["✓","✓","✓","✓","✓","✓","✓","✓","✓","✓"];
var areaHelp=["Haz clic en la fracciones equivalentes a un número natural.","Haz clic en la fracciones equivalentes a un número natural.","Haz clic en la fracciones equivalentes a un número natural.","Haz clic en la fracciones equivalentes a un número natural.","Haz clic en la fracciones equivalentes a un número natural.","Haz clic en la fracciones equivalentes a un número natural.","Haz clic en la fracciones equivalentes a un número natural.","Haz clic en la fracciones equivalentes a un número natural.","Haz clic en la fracciones equivalentes a un número natural.","Haz clic en la fracciones equivalentes a un número natural."];
var areaWrong=["","","","","","","","","",""];
var initMessageError="Esa fracción no es igual a un número natural.";
var wordPointX=["50","225","400","500","50","325","150","225","300","400"];
var wordPointY=["50","50","50","50","170","170","270","270","270","270"];
var areaColor=["#F0F0F0","#F0F0F0","#F0F0F0","#F0F0F0","#F0F0F0","#F0F0F0","#F0F0F0","#F0F0F0","#F0F0F0","#F0F0F0"];
var pathMedia="01mates05_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";
