//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
$(document).ready(function() {
$("#goLeftBut").click(function() {window.open("txtImaIdadeMedia5.htm","_self");});
$("#goRightBut").click(function() {window.open("txtImaIdadeMedia7.htm","_self");});
var bWords = document.getElementsByTagName("b");if (bWords.length){for (x=0;x<bWords.length;x++){bWords[x].className="hideB";}}$("#boldBut").click(function() {hideBold();});
$("#urlBut1").click(function(){window.open("https://www.google.com/maps/place/Granada/@37.1770832,-3.5897374,3a,75y,223.46h,95.93t/data=!3m11!1e1!3m9!1sAF1QipN-IxPO5JwGI2BuOo1Vwb1E3AEh_X928cTstR0L!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipN-IxPO5JwGI2BuOo1Vwb1E3AEh_X928cTstR0L%3Dw203-h100-k-no-pi-0-ya145.6333-ro0-fo100!7i8704!8i4352!9m2!1b1!2i38!4m5!3m4!1s0xd71fce62d32c27d:0x9258f79dd3600d72!8m2!3d37.1773363!4d-3.5985571","_blank","height=600,width=800,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");});
$("#urlBut2").click(function(){window.open("https://www.google.es/maps/place/Patio+de+los+Naranjos/@37.8788175,-4.7800408,3a,75y,177.63h,105.29t/data=!3m11!1e1!3m9!1sAF1QipOuF7Ua6VQQpAvUuS-AmmpuGbStGy-t-lMP3wMz!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipOuF7Ua6VQQpAvUuS-AmmpuGbStGy-t-lMP3wMz%3Dw203-h100-k-no-pi-2.9338646-ya247.5-ro0-fo100!7i6144!8i3072!9m2!1b1!2i30!4m5!3m4!1s0xd6d209d2b5b5a9d:0x71478a7adb0adb9!8m2!3d37.8794651!4d-4.7798527","_blank","height=600,width=800,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");});
});
function hideBold(){var bWords=document.getElementsByTagName("b");if (bWords.length){if ((bWords[0].className=="") || (bWords[0].className=="showB")){
for (x=0;x<bWords.length;x++){bWords[x].className="hideB";}}else{for (x=0;x<bWords.length;x++){bWords[x].className="showB";}}}}
function imaUp(ima){$("body").css("overflow","hidden");$("#ardoraActCanvas").attr({"width": $(window).width(),"height": $(window).height()});document.getElementById("ardoraActCanvas").style.zIndex=5;document.getElementById("ardoraActCanvas").style["visibility"]="visible";
var alpha=0;var delta=0.03;var canvas=document.getElementById("ardoraActCanvas");var context=canvas.getContext("2d");context.beginPath();context.fillStyle="rgba(0, 0, 0, 0.25)";context.fillRect(0, 0, context.canvas.width, context.canvas.height);context.fill();var imageObj=new Image();
imageObj.onload = function() {var xCenterIma=($("#ardoraActCanvas").width()-imageObj.width) / 2;var yCenterIma=($("#ardoraActCanvas").height()-imageObj.height) / 2;context.beginPath();context.shadowColor ="rgba(0, 0, 0, 0.25)";context.shadowBlur = 10;
context.shadowOffsetX=10;context.shadowOffsetY=10;context.fill();context.beginPath();context.strokeStyle="rgba(0,0,0,1)";context.fillStyle ="rgba(255,255,255,1)";context.fillRect(xCenterIma-5,yCenterIma-5,imageObj.width+10,imageObj.height+10);
context.fill();context.rect(xCenterIma-5,yCenterIma-5,imageObj.width+10,imageObj.height+10);context.stroke();context.fill();context.shadowBlur=0;context.shadowOffsetX=0;context.shadowOffsetY = 0;loop();
function loop(){alpha+=delta;if (alpha<=1){context.clearRect(xCenterIma,yCenterIma,imageObj.width,imageObj.height);context.globalAlpha=alpha;context.drawImage(imageObj,xCenterIma,yCenterIma);requestAnimationFrame(loop);}}};
imageObj.src =ima;$("#ardoraActCanvas").css("cursor", "pointer");$("#ardoraActCanvas").click(function() {document.getElementById("ardoraActCanvas").style.zIndex=0;document.getElementById("ardoraActCanvas").style["visibility"]="hidden";canvas.width=canvas.width;$("body").css("overflow","visible");$("#ardoraActCanvas").attr({"width":2,"height":2});});}
window.requestAnimationFrame=(function(){return  window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame    || function( callback ){window.setTimeout(callback, 10000 / 60);};})();
function playIt(sound){var file=document.getElementById(sound);file.load();file.play();}
