//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=12; attempts=0; attemptsMax=1;
var score=0; scoreMax=12; 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 trabajo!"; messageTime=""; messageError="Fíjate. Ahí no está el ángulo que pedimos."; messageErrorG="Fíjate. Ahí no está el ángulo que pedimos."; 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="MDRyZWNvcmRhbW9z"; 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=[["142","84","0","0"],["51","19","0","0"],["27","93","0","0"],["189","197","1","0"],["237","132","1","0"],["183","118","1","0"],["385","222","2","0"],["386","308","2","0"],["313","285","2","0"],["249","86","3","3"],["252","9","3","3"],["170","87","3","3"],["39","196","4","3"],["118","194","4","3"],["35","115","4","3"],["346","199","5","3"],["401","144","5","3"],["285","137","5","3"],["440","8","6","3"],["512","9","6","3"],["437","89","6","3"],["34","306","7","0"],["127","305","7","0"],["70","221","7","0"],["463","198","8","8"],["545","197","8","8"],["471","118","8","8"],["408","120","8","8"],["391","87","9","8"],["425","13","9","8"],["345","28","9","8"],["282","89","9","8"],["217","306","10","10"],["281","307","10","10"],["273","271","10","10"],["159","273","10","10"],["157","308","10","10"],["487","269","11","10"],["525","313","11","10"],["539","291","11","10"],["512","245","11","10"],["452","215","11","10"],["444","232","11","10"]];
var backSrc="04recordamos_resources/media/act04.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(142,84),new Point(51,19),new Point(27,93)],[new Point(189,197),new Point(237,132),new Point(183,118)],[new Point(385,222),new Point(386,308),new Point(313,285)],[new Point(249,86),new Point(252,9),new Point(170,87)],[new Point(39,196),new Point(118,194),new Point(35,115)],[new Point(346,199),new Point(401,144),new Point(285,137)],[new Point(440,8),new Point(512,9),new Point(437,89)],[new Point(34,306),new Point(127,305),new Point(70,221)],[new Point(463,198),new Point(545,197),new Point(471,118),new Point(408,120)],[new Point(391,87),new Point(425,13),new Point(345,28),new Point(282,89)],[new Point(217,306),new Point(281,307),new Point(273,271),new Point(159,273),new Point(157,308)],[new Point(487,269),new Point(525,313),new Point(539,291),new Point(512,245),new Point(452,215),new Point(444,232)]];
var game=[];indexGame=0;
var area=["0","0","0","3","3","3","3","0","8","8","10","10"];
var areaSolved=["N","N","N","N","N","N","N","N","N","N","N","N"];
var areaWord=["✔","✔","✔","✔","✔","✔","✔","✔","✔","✔","✔","✔"];
var areaHelp=["Haz clic en todos los ángulos <b>agudos</b>","Haz clic en todos los ángulos <b>agudos</b>","Haz clic en todos los ángulos <b>agudos</b>","Señala los ángulos <b>rectos</b>","Señala los ángulos <b>rectos</b>","Señala los ángulos <b>rectos</b>","Señala los ángulos <b>rectos</b>","Haz clic en todos los ángulos <b>agudos</b>","Indica cuáles de estos ángulos son <b>obtusos</b>","Indica cuáles de estos ángulos son <b>obtusos</b>","Haz clic sobre los ángulos que son <b>llanos</b>","Haz clic sobre los ángulos que son <b>llanos</b>"];
var areaWrong=["","","","","","","","","","","",""];
var initMessageError="Fíjate. Ahí no está el ángulo que pedimos.";
var wordPointX=["142","189","385","249","39","346","440","34","463","391","217","487"];
var wordPointY=["84","197","222","86","196","199","8","306","198","87","306","269"];
var areaColor=["#DC5A15","#DC5A15","#DC5A15","#DC5A15","#DC5A15","#DC5A15","#DC5A15","#DC5A15","#DC5A15","#DC5A15","#DC5A15","#DC5A15"];
var pathMedia="04recordamos_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";
