//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=5; attempts=0; attemptsMax=1;
var score=0; scoreMax=5; 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="Sitio incorrecto."; messageErrorG="Sitio incorrecto."; messageAttempts="Vamos a intentalo outra 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="MDNzaWdub3NHQUw"; 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=[["522","35","0","0"],["506","36","0","0"],["505","14","0","0"],["523","14","0","0"],["225","108","1","0"],["227","93","1","0"],["211","92","1","0"],["207","111","1","0"],["222","117","1","0"],["372","108","2","0"],["374","94","2","0"],["356","92","2","0"],["353","107","2","0"],["352","116","2","0"],["368","116","2","0"],["267","56","3","3"],["267","40","3","3"],["252","40","3","3"],["248","56","3","3"],["248","61","3","3"],["264","63","3","3"],["134","131","4","3"],["135","115","4","3"],["120","117","4","3"],["115","137","4","3"],["132","141","4","3"]];
var backSrc="03signosGAL_resources/media/act01.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(522,35),new Point(506,36),new Point(505,14),new Point(523,14)],[new Point(225,108),new Point(227,93),new Point(211,92),new Point(207,111),new Point(222,117)],[new Point(372,108),new Point(374,94),new Point(356,92),new Point(353,107),new Point(352,116),new Point(368,116)],[new Point(267,56),new Point(267,40),new Point(252,40),new Point(248,56),new Point(248,61),new Point(264,63)],[new Point(134,131),new Point(135,115),new Point(120,117),new Point(115,137),new Point(132,141)]];
var game=[];indexGame=0;
var area=["0","0","0","3","3"];
var areaSolved=["N","N","N","N","N"];
var areaWord=[",",",",",",".","."];
var areaHelp=["Fai clic nos lugares nos que debería de haber unha coma.","Fai clic nos lugares nos que debería de haber unha coma.","Fai clic nos lugares nos que debería de haber unha coma.","En que lugares debería de haber un punto.","En que lugares debería de haber un punto."];
var areaWrong=["","","","",""];
var initMessageError="Sitio incorrecto.";
var wordPointX=["522","225","372","267","134"];
var wordPointY=["45","120","120","70","145"];
var areaColor=["#F0F0F0","#F0F0F0","#F0F0F0","#F0F0F0","#F0F0F0"];
var pathMedia="03signosGAL_resources/media/"
var auMP3=["","","","",""];
var auOGG=["","","","",""];
var colorWord="#FFFF00";
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";
