//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=8; attempts=0; attemptsMax=2;
var score=0; scoreMax=8; 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="Perfecto. Veamos ahora las compuestas."; messageTime=""; messageError="No es correcta."; messageErrorG="No es correcta."; messageAttempts="Tercer fallo. Espera a que se recargue la actividad."; 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="MDN2ZXJibzNjYXM"; 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=[["319","41","0","0"],["411","40","0","0"],["411","90","0","0"],["320","92","0","0"],["321","91","1","1"],["411","90","1","1"],["410","142","1","1"],["320","143","1","1"],["319","143","2","2"],["409","141","2","2"],["411","193","2","2"],["320","192","2","2"],["320","194","3","3"],["408","194","3","3"],["411","226","3","3"],["317","229","3","3"],["319","227","4","4"],["411","228","4","4"],["411","266","4","4"],["319","265","4","4"],["318","272","5","5"],["410","274","5","5"],["412","310","5","5"],["320","310","5","5"],["319","309","6","6"],["410","309","6","6"],["410","360","6","6"],["320","359","6","6"],["319","359","7","7"],["409","358","7","7"],["411","395","7","7"],["319","397","7","7"]];
var backSrc="03verbo3cas_resources/media/act01.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(319,41),new Point(411,40),new Point(411,90),new Point(320,92)],[new Point(321,91),new Point(411,90),new Point(410,142),new Point(320,143)],[new Point(319,143),new Point(409,141),new Point(411,193),new Point(320,192)],[new Point(320,194),new Point(408,194),new Point(411,226),new Point(317,229)],[new Point(319,227),new Point(411,228),new Point(411,266),new Point(319,265)],[new Point(318,272),new Point(410,274),new Point(412,310),new Point(320,310)],[new Point(319,309),new Point(410,309),new Point(410,360),new Point(320,359)],[new Point(319,359),new Point(409,358),new Point(411,395),new Point(319,397)]];
var game=[];indexGame=0;
var area=["0","1","2","3","4","5","6","7"];
var areaSolved=["N","N","N","N","N","N","N","N"];
var areaWord=["como","comía","comí","comeré","comería","coma","comiese","comiere"];
var areaHelp=["como","comía","comí","comeré","comería","coma","comiese","comiere"];
var areaWrong=["","Recuerda es una acción en el pasado de la que no sabemos si finalizó.","Fíjate, es una acción pasada y finalizada.","","","","",""];
var initMessageError="No es correcta.";
var wordPointX=["340","340","340","340","340","340","340","340"];
var wordPointY=["80","130","180","224","267","310","345","390"];
var areaColor=["#FF8040","#FF8040","#FF8000","#FF8040","#FF8040","#FF8040","#FF8000","#FF8040"];
var pathMedia="03verbo3cas_resources/media/"
var auMP3=["","","","","","","",""];
var auOGG=["","","","","","","",""];
colorText="#2B2B2B";colorButton="#D5D200";colorBack="#FFFFFF";colorSele="#D94C00";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
