//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="Correcto. Aquí finalizamos este apartado."; messageTime=""; messageError="No. Ese no es el triángulo que se pide."; messageErrorG="No. Ese no es el triángulo que se pide."; messageAttempts="Vamos a empezar 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="MDZhY3RtYXQwMQ"; 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=[["151","136","0","0"],["350","196","0","0"],["7","197","0","0"],["152","127","1","1"],["294","67","1","1"],["96","6","1","1"],["298","72","2","1"],["351","193","2","1"],["157","133","2","1"],["38","51","3","3"],["150","132","3","3"],["91","2","3","3"],["3","194","4","3"],["146","131","4","3"],["34","56","4","3"]];
var backSrc="06actmat01_resources/media/figura.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(151,136),new Point(350,196),new Point(7,197)],[new Point(152,127),new Point(294,67),new Point(96,6)],[new Point(298,72),new Point(351,193),new Point(157,133)],[new Point(38,51),new Point(150,132),new Point(91,2)],[new Point(3,194),new Point(146,131),new Point(34,56)]];
var game=[];indexGame=0;
var area=["0","1","1","3","3"];
var areaSolved=["N","N","N","N","N"];
var areaWord=["Obtusángulo","Rectángulo","Rectángulo","Acutángulos","Acutángulo"];
var areaHelp=["Haz clic en el triángulo obtusángulo.","Indica cuáles son rectángulos.","Indica cuáles son rectángulos.","Señala cuáles son los triángulo acutángulos.","Señala cuáles son los triángulo acutángulos."];
var areaWrong=["","","","",""];
var initMessageError="No. Ese no es el triángulo que se pide.";
var wordPointX=["151","180","226","83","43"];
var wordPointY=["186","83","130","51","103"];
var areaColor=["#DC5A15","#DC5A15","#DC5A15","#DC5A15","#DC5A15"];
var pathMedia="06actmat01_resources/media/"
var auMP3=["","","","",""];
var auOGG=["","","","",""];
var colorWord="#000000";
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";
