//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=11; attempts=0; attemptsMax=1;
var score=0; scoreMax=11; 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="¡ Localizadas!"; messageTime=""; messageError="Ahí no hay sinalefa."; messageErrorG="Ahí no hay sinalefa."; messageAttempts="Vamos a intentarlo de nuevo."; 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="MDJyaW1hY2Fz"; 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=[["73","48","0","0"],["135","46","0","0"],["136","76","0","0"],["73","77","0","0"],["277","50","1","0"],["351","48","1","0"],["354","75","1","0"],["279","76","1","0"],["42","100","2","0"],["106","101","2","0"],["104","135","2","0"],["39","133","2","0"],["145","100","3","0"],["208","102","3","0"],["209","136","3","0"],["143","136","3","0"],["380","105","4","0"],["433","103","4","0"],["434","131","4","0"],["378","130","4","0"],["446","103","5","0"],["493","100","5","0"],["496","132","5","0"],["447","132","5","0"],["37","162","6","0"],["86","158","6","0"],["86","194","6","0"],["39","193","6","0"],["266","159","7","0"],["314","160","7","0"],["315","185","7","0"],["267","185","7","0"],["328","160","8","0"],["388","157","8","0"],["387","186","8","0"],["327","187","8","0"],["162","215","9","0"],["229","211","9","0"],["230","243","9","0"],["160","242","9","0"],["320","214","10","0"],["375","212","10","0"],["376","241","10","0"],["321","240","10","0"]];
var backSrc="02rimacas_resources/media/actcas01.jpg";
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(73,48),new Point(135,46),new Point(136,76),new Point(73,77)],[new Point(277,50),new Point(351,48),new Point(354,75),new Point(279,76)],[new Point(42,100),new Point(106,101),new Point(104,135),new Point(39,133)],[new Point(145,100),new Point(208,102),new Point(209,136),new Point(143,136)],[new Point(380,105),new Point(433,103),new Point(434,131),new Point(378,130)],[new Point(446,103),new Point(493,100),new Point(496,132),new Point(447,132)],[new Point(37,162),new Point(86,158),new Point(86,194),new Point(39,193)],[new Point(266,159),new Point(314,160),new Point(315,185),new Point(267,185)],[new Point(328,160),new Point(388,157),new Point(387,186),new Point(327,187)],[new Point(162,215),new Point(229,211),new Point(230,243),new Point(160,242)],[new Point(320,214),new Point(375,212),new Point(376,241),new Point(321,240)]];
var game=[];indexGame=0;
var area=["0","0","0","0","0","0","0","0","0","0","0"];
var areaSolved=["N","N","N","N","N","N","N","N","N","N","N"];
var areaWord=["✓","✓","✓","✓","✓","✓","✓","✓","✓","✓","✓"];
var areaHelp=["","","","","","","","","","",""];
var areaWrong=["","","","","","","","","","",""];
var initMessageError="Ahí no hay sinalefa.";
var wordPointX=["104","311","80","180","419","470","58","298","344","200","350"];
var wordPointY=["75","75","130","130","130","130","185","185","185","235","235"];
var areaColor=["#FF8000","#FF8000","#FF8000","#FF8000","#FF8000","#FF8000","#FF8000","#FF8000","#FF8000","#FF8000","#FF8000"];
var pathMedia="02rimacas_resources/media/"
var auMP3=["","","","","","","","","","",""];
var auOGG=["","","","","","","","","","",""];
colorText="#2B2B2B";colorButton="#858B00";colorBack="#FFFFFF";colorSele="#F8F5D7";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
