//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="¡ Correcto!"; messageTime=""; messageError="Ese no es el lugar adecuado."; messageErrorG="Ese no es el lugar adecuado."; 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="MDRwdW50b3M"; 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=[["204","53","0","0"],["216","52","0","0"],["217","76","0","0"],["195","78","0","0"],["193","54","0","0"],["308","153","1","0"],["316","150","1","0"],["319","171","1","0"],["302","171","1","0"],["300","151","1","0"],["387","217","2","0"],["398","217","2","0"],["399","233","2","0"],["387","236","2","0"],["378","230","2","0"],["378","216","2","0"],["253","281","3","0"],["261","280","3","0"],["263","303","3","0"],["253","303","3","0"],["241","297","3","0"],["242","281","3","0"],["362","148","4","4"],["374","149","4","4"],["378","170","4","4"],["365","172","4","4"],["362","164","4","4"],["415","144","5","4"],["426","148","5","4"],["428","168","5","4"],["418","171","5","4"],["409","159","5","4"]];
var backSrc="04puntos_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(204,53),new Point(216,52),new Point(217,76),new Point(195,78),new Point(193,54)],[new Point(308,153),new Point(316,150),new Point(319,171),new Point(302,171),new Point(300,151)],[new Point(387,217),new Point(398,217),new Point(399,233),new Point(387,236),new Point(378,230),new Point(378,216)],[new Point(253,281),new Point(261,280),new Point(263,303),new Point(253,303),new Point(241,297),new Point(242,281)],[new Point(362,148),new Point(374,149),new Point(378,170),new Point(365,172),new Point(362,164)],[new Point(415,144),new Point(426,148),new Point(428,168),new Point(418,171),new Point(409,159)]];
var game=[];indexGame=0;
var area=["0","0","0","0","4","4"];
var areaSolved=["N","N","N","N","N","N"];
var areaWord=[":",":",":",";",",",","];
var areaHelp=["Indica los lugares en los que deberíamos de colocar los dos puntos.","Indica los lugares en los que deberíamos de colocar los dos puntos.","Indica los lugares en los que deberíamos de colocar los dos puntos.","Indica los lugares en los que deberíamos de colocar los dos puntos.","Haz clic en los lugares en los que debería de haber una coma.","Haz clic en los lugares en los que debería de haber una coma."];
var areaWrong=["","","","","",""];
var initMessageError="Ese no es el lugar adecuado.";
var wordPointX=["204","308","387","253","370","420"];
var wordPointY=["53","153","217","281","155","155"];
var areaColor=["#DC5A15","#DC5A15","#DC5A15","#DC5A15","#D5D200","#D5D200"];
var pathMedia="04puntos_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";
