//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=4; attempts=0; attemptsMax=1;
var score=0; scoreMax=4; 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="¡ Localizados! Pasamos a la siguiente."; messageTime=""; messageError="Ahí no está lo pedido."; messageErrorG="Ahí no está lo pedido."; messageAttempts="Demasiados errores, 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="MDJyb21hbmE"; 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","147","0","0"],["119","193","0","0"],["180","194","0","0"],["290","94","1","1"],["458","88","1","1"],["461","122","1","1"],["156","111","1","1"],["157","91","1","1"],["66","166","2","2"],["77","168","2","2"],["87","222","2","2"],["49","224","2","2"],["54","171","2","2"],["121","27","3","3"],["131","39","3","3"],["127","82","3","3"],["118","96","3","3"],["103","85","3","3"],["104","58","3","3"],["106","34","3","3"]];
var backSrc="02romana_resources/media/romanaMudo.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(148,147),new Point(119,193),new Point(180,194)],[new Point(290,94),new Point(458,88),new Point(461,122),new Point(156,111),new Point(157,91)],[new Point(66,166),new Point(77,168),new Point(87,222),new Point(49,224),new Point(54,171)],[new Point(121,27),new Point(131,39),new Point(127,82),new Point(118,96),new Point(103,85),new Point(104,58),new Point(106,34)]];
var game=[];indexGame=0;
var area=["0","1","2","3"];
var areaSolved=["N","N","N","N"];
var areaWord=["Contrapeso","Brazo graduado","Gancho","Punto de apoyo"];
var areaHelp=["En latín se llamaba aequipondium","Parte graduada","Lugar reservado para colgar el objeto a pesar","Lugar por el que se sujeta la romana"];
var areaWrong=["","","",""];
var initMessageError="Ahí no está lo pedido.";
var wordPointX=["148","290","66","121"];
var wordPointY=["147","94","166","27"];
var areaColor=["#F0F0F0","#F0F0F0","#F0F0F0","#F0F0F0"];
var pathMedia="02romana_resources/media/"
var auMP3=["","","",""];
var auOGG=["","","",""];
var colorWord="#000000";
colorText="#000000";colorButton="#408053";colorBack="#FFFFFF";colorSele="#E3EEEC";goURLNext=true;goURLRepeat=true;tiAval=true;
fMenssage="Verdana, Geneva, sans-serif";fActi="Verdana, Geneva, sans-serif";fEnun="Verdana, Geneva, sans-serif";
