//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=2; attempts=0; attemptsMax=1;
var score=0; scoreMax=2; 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. Con esto finalizamos este apartado."; messageTime=""; messageError="No. Ahí no es."; messageErrorG="No. Ahí no es."; 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="MDhsZWN0Q0FT"; 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=[["148","68","0","0"],["164","65","0","0"],["166","37","0","0"],["152","16","0","0"],["136","26","0","0"],["132","43","0","0"],["134","62","0","0"],["118","70","1","1"],["187","74","1","1"],["183","86","1","1"],["178","104","1","1"],["170","124","1","1"],["173","136","1","1"],["150","147","1","1"],["129","146","1","1"],["123","137","1","1"],["131","127","1","1"],["121","111","1","1"],["117","91","1","1"]];
var backSrc="08lectCAS_resources/media/armadura.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(148,68),new Point(164,65),new Point(166,37),new Point(152,16),new Point(136,26),new Point(132,43),new Point(134,62)],[new Point(118,70),new Point(187,74),new Point(183,86),new Point(178,104),new Point(170,124),new Point(173,136),new Point(150,147),new Point(129,146),new Point(123,137),new Point(131,127),new Point(121,111),new Point(117,91)]];
var game=[];indexGame=0;
var area=["0","1"];
var areaSolved=["N","N"];
var areaWord=["Yelmo","Coraza"];
var areaHelp=["Yelmo","Coraza"];
var areaWrong=["",""];
var initMessageError="No. Ahí no es.";
var wordPointX=["150","150"];
var wordPointY=["55","100"];
var areaColor=["#F0F0F0","#F0F0F0"];
var pathMedia="08lectCAS_resources/media/"
var auMP3=["",""];
var auOGG=["",""];
var colorWord="#000000";
colorText="#000000";colorButton="#6F89E6";colorBack="#FFFFFF";colorSele="#C5E6FA";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
