//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=5; attempts=0; attemptsMax=1;
var score=0; scoreMax=5; 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, ese no es el número pedido."; messageErrorG="No, ese no es el número pedido."; messageAttempts="Inténtalo 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="MDFzdXJlbXVs"; 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=[["125","83","0","0"],["146","84","0","0"],["147","140","0","0"],["117","142","0","0"],["97","111","0","0"],["92","86","0","0"],["264","79","1","1"],["287","79","1","1"],["287","144","1","1"],["234","146","1","1"],["232","81","1","1"],["403","82","2","2"],["423","80","2","2"],["426","108","2","2"],["372","112","2","2"],["373","84","2","2"],["98","157","3","3"],["146","158","3","3"],["147","188","3","3"],["95","186","3","3"],["417","126","4","4"],["423","113","4","4"],["375","114","4","4"],["371","135","4","4"],["424","141","4","4"],["425","133","4","4"]];
var backSrc="01suremul_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(125,83),new Point(146,84),new Point(147,140),new Point(117,142),new Point(97,111),new Point(92,86)],[new Point(264,79),new Point(287,79),new Point(287,144),new Point(234,146),new Point(232,81)],[new Point(403,82),new Point(423,80),new Point(426,108),new Point(372,112),new Point(373,84)],[new Point(98,157),new Point(146,158),new Point(147,188),new Point(95,186)],[new Point(417,126),new Point(423,113),new Point(375,114),new Point(371,135),new Point(424,141),new Point(425,133)]];
var game=[];indexGame=0;
var area=["0","1","2","3","4"];
var areaSolved=["N","N","N","N","N"];
var areaWord=["Factores","Sumandos","Minuendo","Producto","Sustraendo"];
var areaHelp=["Factores","Sumandos","Minuendo","Producto","Sustraendo"];
var areaWrong=["","","","",""];
var initMessageError="No, ese no es el número pedido.";
var wordPointX=["125","264","403","110","420"];
var wordPointY=["83","79","82","157","130"];
var areaColor=["#F0F0F0","#F0F0F0","#F0F0F0","#F0F0F0","#F0F0F0"];
var pathMedia="01suremul_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";
