//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(){
$("#g1469texto").css("display","block");$("#g1469texto").hide();
$("#g1479texto").css("display","block");$("#g1479texto").hide();
$("#g1492texto").css("display","block");$("#g1492texto").hide();
$("#g1496texto").css("display","block");$("#g1496texto").hide();
$("#g1504texto").css("display","block");$("#g1504texto").hide();
$("#g1516texto").css("display","block");$("#g1516texto").hide();
$("#g1512texto").css("display","block");$("#g1512texto").hide();
$("#gtx1429").css("display","block");$("#gtx1429").hide();
$("#gtx1610").css("display","block");$("#gtx1610").hide();
$("#gtx1599").css("display","block");$("#gtx1599").hide();
$("#gtx1439").css("display","block");$("#gtx1439").hide();
$("#gtx1486").css("display","block");$("#gtx1486").hide();
$("#gtx263").css("display","block");$("#gtx263").hide();
$("#gtx1503").css("display","block");$("#gtx1503").hide();
$("#gtx1495").css("display","block");$("#gtx1495").hide();
$("#gtx1508").css("display","block");$("#gtx1508").hide();
$("#gtx1517").css("display","block");$("#gtx1517").hide();
$("#gtx4392").css("display","block");$("#gtx4392").hide();
$("#gtx1534").css("display","block");$("#gtx1534").hide();
$("#g-tx1350").css("display","block");$("#g-tx1350").hide();
$("#gtx4392-4").css("display","block");$("#gtx4392-4").hide();
$("#gtx1618").css("display","block");$("#gtx1618").hide();
$("#g116").css("display","block");$("#g116").hide();
$("#gtx1511").css("display","block");$("#gtx1511").hide();
document.addEventListener("touchstart", touchHandler, true);document.addEventListener("touchmove", touchHandler, true);document.addEventListener("touchend", touchHandler, true);document.addEventListener("touchcancel", touchHandler, true);
$("svg").each(function () { $(this)[0].setAttribute("preserveAspectRatio","xMinYMin meet") });
 $("svg").each(function () { $(this)[0].setAttribute("viewBox","0 0 900 400")});
$("svg").each(function () { $(this)[0].setAttribute("width", "900px") });
$("svg").each(function () { $(this)[0].setAttribute("height", "400px") });
$("#g1469").on("touchstart mouseover", function(e) {$("#g-tx1350 path,#g-tx1350 rect,#g-tx1350 polygon,#g-tx1350 ellipse,#g-tx1350 circle,#g-tx1350 text,#g-tx1350 line,#g-tx1350 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#g-tx1350").toggle();}).on("touchend mouseout", function(e) {$("#g-tx1350 path,#g-tx1350 rect,#g-tx1350 polygon,#g-tx1350 ellipse,#g-tx1350 circle,#g-tx1350 text,#g-tx1350 line,#g-tx1350 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#g-tx1350").toggle();});
$("#g1479").on("touchstart mouseover", function(e) {$("#g1479 path,#g1479 rect,#g1479 polygon,#g1479 ellipse,#g1479 circle,#g1479 text,#g1479 line,#g1479 polyline").each(function(){$(this).addClassSVG("c_Resaltar");});$("#g1479").show();}).on("touchend mouseout", function(e) {$("#g1479 path,#g1479 rect,#g1479 polygon,#g1479 ellipse,#g1479 circle,#g1479 text,#g1479 line,#g1479 polyline").each(function(){$(this).removeClassSVG("c_Resaltar");});});
$("#g1492").on("touchstart mouseover", function(e) {$("#g1492 path,#g1492 rect,#g1492 polygon,#g1492 ellipse,#g1492 circle,#g1492 text,#g1492 line,#g1492 polyline").each(function(){$(this).addClassSVG("c_Resaltar");});$("#g1492").show();}).on("touchend mouseout", function(e) {$("#g1492 path,#g1492 rect,#g1492 polygon,#g1492 ellipse,#g1492 circle,#g1492 text,#g1492 line,#g1492 polyline").each(function(){$(this).removeClassSVG("c_Resaltar");});});
$("#g1496").on("touchstart mouseover", function(e) {$("#g1496").addClassSVG("c_Resaltar");$("#g1496").show();}).on("touchend mouseout", function(e) {$("#g1496").removeClassSVG("c_Resaltar");});
$("#g1496").on("touchstart mouseover", function(e) {$("#g1496texto").addClassSVG("c_Amosar");$("#g1496texto").toggle();}).on("touchend mouseout", function(e) {$("#g1496texto").removeClassSVG("c_Amosar");$("#g1496texto").toggle();});
$("#g1504").on("touchstart mouseover", function(e) {$("#g1504 path,#g1504 rect,#g1504 polygon,#g1504 ellipse,#g1504 circle,#g1504 text,#g1504 line,#g1504 polyline").each(function(){$(this).addClassSVG("c_Resaltar");});$("#g1504").show();}).on("touchend mouseout", function(e) {$("#g1504 path,#g1504 rect,#g1504 polygon,#g1504 ellipse,#g1504 circle,#g1504 text,#g1504 line,#g1504 polyline").each(function(){$(this).removeClassSVG("c_Resaltar");});});
$("#g1512").on("touchstart mouseover", function(e) {$("#g1512 path,#g1512 rect,#g1512 polygon,#g1512 ellipse,#g1512 circle,#g1512 text,#g1512 line,#g1512 polyline").each(function(){$(this).addClassSVG("c_Resaltar");});$("#g1512").show();}).on("touchend mouseout", function(e) {$("#g1512 path,#g1512 rect,#g1512 polygon,#g1512 ellipse,#g1512 circle,#g1512 text,#g1512 line,#g1512 polyline").each(function(){$(this).removeClassSVG("c_Resaltar");});});
$("#g1516").on("touchstart mouseover", function(e) {$("#g1516 path,#g1516 rect,#g1516 polygon,#g1516 ellipse,#g1516 circle,#g1516 text,#g1516 line,#g1516 polyline").each(function(){$(this).addClassSVG("c_Resaltar");});$("#g1516").show();}).on("touchend mouseout", function(e) {$("#g1516 path,#g1516 rect,#g1516 polygon,#g1516 ellipse,#g1516 circle,#g1516 text,#g1516 line,#g1516 polyline").each(function(){$(this).removeClassSVG("c_Resaltar");});});
$("#g1469").on("touchstart mouseover", function(e) {$("#g1469 path,#g1469 rect,#g1469 polygon,#g1469 ellipse,#g1469 circle,#g1469 text,#g1469 line,#g1469 polyline").each(function(){$(this).addClassSVG("c_Resaltar");});$("#g1469").show();}).on("touchend mouseout", function(e) {$("#g1469 path,#g1469 rect,#g1469 polygon,#g1469 ellipse,#g1469 circle,#g1469 text,#g1469 line,#g1469 polyline").each(function(){$(this).removeClassSVG("c_Resaltar");});});
$("#g1479").on("touchstart mouseover", function(e) {$("#gtx1429 path,#gtx1429 rect,#gtx1429 polygon,#gtx1429 ellipse,#gtx1429 circle,#gtx1429 text,#gtx1429 line,#gtx1429 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#gtx1429").toggle();}).on("touchend mouseout", function(e) {$("#gtx1429 path,#gtx1429 rect,#gtx1429 polygon,#gtx1429 ellipse,#gtx1429 circle,#gtx1429 text,#gtx1429 line,#gtx1429 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#gtx1429").toggle();});
$("#g1479-8").on("touchstart mouseover", function(e) {$("#g1479-8 path,#g1479-8 rect,#g1479-8 polygon,#g1479-8 ellipse,#g1479-8 circle,#g1479-8 text,#g1479-8 line,#g1479-8 polyline").each(function(){$(this).addClassSVG("c_Resaltar");});$("#g1479-8").show();}).on("touchend mouseout", function(e) {$("#g1479-8 path,#g1479-8 rect,#g1479-8 polygon,#g1479-8 ellipse,#g1479-8 circle,#g1479-8 text,#g1479-8 line,#g1479-8 polyline").each(function(){$(this).removeClassSVG("c_Resaltar");});});
$("#g1479-8").on("touchstart mouseover", function(e) {$("#gtx1439 path,#gtx1439 rect,#gtx1439 polygon,#gtx1439 ellipse,#gtx1439 circle,#gtx1439 text,#gtx1439 line,#gtx1439 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#gtx1439").toggle();}).on("touchend mouseout", function(e) {$("#gtx1439 path,#gtx1439 rect,#gtx1439 polygon,#gtx1439 ellipse,#gtx1439 circle,#gtx1439 text,#gtx1439 line,#gtx1439 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#gtx1439").toggle();});
$("#g1479-4").on("touchstart mouseover", function(e) {$("#g1479-4 path,#g1479-4 rect,#g1479-4 polygon,#g1479-4 ellipse,#g1479-4 circle,#g1479-4 text,#g1479-4 line,#g1479-4 polyline").each(function(){$(this).addClassSVG("c_Resaltar");});$("#g1479-4").show();}).on("touchend mouseout", function(e) {$("#g1479-4 path,#g1479-4 rect,#g1479-4 polygon,#g1479-4 ellipse,#g1479-4 circle,#g1479-4 text,#g1479-4 line,#g1479-4 polyline").each(function(){$(this).removeClassSVG("c_Resaltar");});});
$("#g1479-4").on("touchstart mouseover", function(e) {$("#gtx1486 path,#gtx1486 rect,#gtx1486 polygon,#gtx1486 ellipse,#gtx1486 circle,#gtx1486 text,#gtx1486 line,#gtx1486 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#gtx1486").toggle();}).on("touchend mouseout", function(e) {$("#gtx1486 path,#gtx1486 rect,#gtx1486 polygon,#gtx1486 ellipse,#gtx1486 circle,#gtx1486 text,#gtx1486 line,#gtx1486 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#gtx1486").toggle();});
$("#g1492").on("touchstart mouseover", function(e) {$("#gtx263 path,#gtx263 rect,#gtx263 polygon,#gtx263 ellipse,#gtx263 circle,#gtx263 text,#gtx263 line,#gtx263 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#gtx263").toggle();}).on("touchend mouseout", function(e) {$("#gtx263 path,#gtx263 rect,#gtx263 polygon,#gtx263 ellipse,#gtx263 circle,#gtx263 text,#gtx263 line,#gtx263 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#gtx263").toggle();});
$("#g1479-4-1-4").on("touchstart mouseover", function(e) {$("#g1479-4-1-4 path,#g1479-4-1-4 rect,#g1479-4-1-4 polygon,#g1479-4-1-4 ellipse,#g1479-4-1-4 circle,#g1479-4-1-4 text,#g1479-4-1-4 line,#g1479-4-1-4 polyline").each(function(){$(this).addClassSVG("c_Resaltar");});$("#g1479-4-1-4").show();}).on("touchend mouseout", function(e) {$("#g1479-4-1-4 path,#g1479-4-1-4 rect,#g1479-4-1-4 polygon,#g1479-4-1-4 ellipse,#g1479-4-1-4 circle,#g1479-4-1-4 text,#g1479-4-1-4 line,#g1479-4-1-4 polyline").each(function(){$(this).removeClassSVG("c_Resaltar");});});
$("#g1479-4-1-4").on("touchstart mouseover", function(e) {$("#gtx1495 path,#gtx1495 rect,#gtx1495 polygon,#gtx1495 ellipse,#gtx1495 circle,#gtx1495 text,#gtx1495 line,#gtx1495 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#gtx1495").toggle();}).on("touchend mouseout", function(e) {$("#gtx1495 path,#gtx1495 rect,#gtx1495 polygon,#gtx1495 ellipse,#gtx1495 circle,#gtx1495 text,#gtx1495 line,#gtx1495 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#gtx1495").toggle();});
$("#g1479-4-1").on("touchstart mouseover", function(e) {$("#g1479-4-1 path,#g1479-4-1 rect,#g1479-4-1 polygon,#g1479-4-1 ellipse,#g1479-4-1 circle,#g1479-4-1 text,#g1479-4-1 line,#g1479-4-1 polyline").each(function(){$(this).addClassSVG("c_Resaltar");});$("#g1479-4-1").show();}).on("touchend mouseout", function(e) {$("#g1479-4-1 path,#g1479-4-1 rect,#g1479-4-1 polygon,#g1479-4-1 ellipse,#g1479-4-1 circle,#g1479-4-1 text,#g1479-4-1 line,#g1479-4-1 polyline").each(function(){$(this).removeClassSVG("c_Resaltar");});});
$("#g1479-4-1").on("touchstart mouseover", function(e) {$("#gtx1503 path,#gtx1503 rect,#gtx1503 polygon,#gtx1503 ellipse,#gtx1503 circle,#gtx1503 text,#gtx1503 line,#gtx1503 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#gtx1503").toggle();}).on("touchend mouseout", function(e) {$("#gtx1503 path,#gtx1503 rect,#gtx1503 polygon,#gtx1503 ellipse,#gtx1503 circle,#gtx1503 text,#gtx1503 line,#gtx1503 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#gtx1503").toggle();});
$("#g1496-2").on("touchstart mouseover", function(e) {$("#g1496-2 path,#g1496-2 rect,#g1496-2 polygon,#g1496-2 ellipse,#g1496-2 circle,#g1496-2 text,#g1496-2 line,#g1496-2 polyline").each(function(){$(this).addClassSVG("c_Resaltar");});$("#g1496-2").show();}).on("touchend mouseout", function(e) {$("#g1496-2 path,#g1496-2 rect,#g1496-2 polygon,#g1496-2 ellipse,#g1496-2 circle,#g1496-2 text,#g1496-2 line,#g1496-2 polyline").each(function(){$(this).removeClassSVG("c_Resaltar");});});
$("#g1496-2").on("touchstart mouseover", function(e) {$("#gtx1508 path,#gtx1508 rect,#gtx1508 polygon,#gtx1508 ellipse,#gtx1508 circle,#gtx1508 text,#gtx1508 line,#gtx1508 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#gtx1508").toggle();}).on("touchend mouseout", function(e) {$("#gtx1508 path,#gtx1508 rect,#gtx1508 polygon,#gtx1508 ellipse,#gtx1508 circle,#gtx1508 text,#gtx1508 line,#gtx1508 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#gtx1508").toggle();});
$("#g1511").on("touchstart mouseover", function(e) {$("#g1511 path,#g1511 rect,#g1511 polygon,#g1511 ellipse,#g1511 circle,#g1511 text,#g1511 line,#g1511 polyline").each(function(){$(this).addClassSVG("c_Resaltar");});$("#g1511").show();}).on("touchend mouseout", function(e) {$("#g1511 path,#g1511 rect,#g1511 polygon,#g1511 ellipse,#g1511 circle,#g1511 text,#g1511 line,#g1511 polyline").each(function(){$(this).removeClassSVG("c_Resaltar");});});
$("#g1511").on("touchstart mouseover", function(e) {$("#gtx1511 path,#gtx1511 rect,#gtx1511 polygon,#gtx1511 ellipse,#gtx1511 circle,#gtx1511 text,#gtx1511 line,#gtx1511 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#gtx1511").toggle();}).on("touchend mouseout", function(e) {$("#gtx1511 path,#gtx1511 rect,#gtx1511 polygon,#gtx1511 ellipse,#gtx1511 circle,#gtx1511 text,#gtx1511 line,#gtx1511 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#gtx1511").toggle();});
$("#g1504").on("touchstart mouseover", function(e) {$("#gtx1517 path,#gtx1517 rect,#gtx1517 polygon,#gtx1517 ellipse,#gtx1517 circle,#gtx1517 text,#gtx1517 line,#gtx1517 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#gtx1517").toggle();}).on("touchend mouseout", function(e) {$("#gtx1517 path,#gtx1517 rect,#gtx1517 polygon,#gtx1517 ellipse,#gtx1517 circle,#gtx1517 text,#gtx1517 line,#gtx1517 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#gtx1517").toggle();});
$("#g1496-7").on("touchstart mouseover", function(e) {$("#g1496-7 path,#g1496-7 rect,#g1496-7 polygon,#g1496-7 ellipse,#g1496-7 circle,#g1496-7 text,#g1496-7 line,#g1496-7 polyline").each(function(){$(this).addClassSVG("c_Resaltar");});$("#g1496-7").show();}).on("touchend mouseout", function(e) {$("#g1496-7 path,#g1496-7 rect,#g1496-7 polygon,#g1496-7 ellipse,#g1496-7 circle,#g1496-7 text,#g1496-7 line,#g1496-7 polyline").each(function(){$(this).removeClassSVG("c_Resaltar");});});
$("#g1496-7").on("touchstart mouseover", function(e) {$("#gtx4392 path,#gtx4392 rect,#gtx4392 polygon,#gtx4392 ellipse,#gtx4392 circle,#gtx4392 text,#gtx4392 line,#gtx4392 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#gtx4392").toggle();}).on("touchend mouseout", function(e) {$("#gtx4392 path,#gtx4392 rect,#gtx4392 polygon,#gtx4392 ellipse,#gtx4392 circle,#gtx4392 text,#gtx4392 line,#gtx4392 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#gtx4392").toggle();});
$("#g1512").on("touchstart mouseover", function(e) {$("#gtx1534 path,#gtx1534 rect,#gtx1534 polygon,#gtx1534 ellipse,#gtx1534 circle,#gtx1534 text,#gtx1534 line,#gtx1534 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#gtx1534").toggle();}).on("touchend mouseout", function(e) {$("#gtx1534 path,#gtx1534 rect,#gtx1534 polygon,#gtx1534 ellipse,#gtx1534 circle,#gtx1534 text,#gtx1534 line,#gtx1534 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#gtx1534").toggle();});
$("#g1512-8").on("touchstart mouseover", function(e) {$("#g1512-8 path,#g1512-8 rect,#g1512-8 polygon,#g1512-8 ellipse,#g1512-8 circle,#g1512-8 text,#g1512-8 line,#g1512-8 polyline").each(function(){$(this).addClassSVG("c_Resaltar");});$("#g1512-8").show();}).on("touchend mouseout", function(e) {$("#g1512-8 path,#g1512-8 rect,#g1512-8 polygon,#g1512-8 ellipse,#g1512-8 circle,#g1512-8 text,#g1512-8 line,#g1512-8 polyline").each(function(){$(this).removeClassSVG("c_Resaltar");});});
$("#g1512-8").on("touchstart mouseover", function(e) {$("#gtx1599 path,#gtx1599 rect,#gtx1599 polygon,#gtx1599 ellipse,#gtx1599 circle,#gtx1599 text,#gtx1599 line,#gtx1599 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#gtx1599").toggle();}).on("touchend mouseout", function(e) {$("#gtx1599 path,#gtx1599 rect,#gtx1599 polygon,#gtx1599 ellipse,#gtx1599 circle,#gtx1599 text,#gtx1599 line,#gtx1599 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#gtx1599").toggle();});
$("#g1516").on("touchstart mouseover", function(e) {$("#gtx1610 path,#gtx1610 rect,#gtx1610 polygon,#gtx1610 ellipse,#gtx1610 circle,#gtx1610 text,#gtx1610 line,#gtx1610 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#gtx1610").toggle();}).on("touchend mouseout", function(e) {$("#gtx1610 path,#gtx1610 rect,#gtx1610 polygon,#gtx1610 ellipse,#gtx1610 circle,#gtx1610 text,#gtx1610 line,#gtx1610 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#gtx1610").toggle();});
$("#g1618").on("touchstart mouseover", function(e) {$("#g1618").addClassSVG("c_Resaltar");$("#g1618").show();}).on("touchend mouseout", function(e) {$("#g1618").removeClassSVG("c_Resaltar");});
$("#g1618").on("touchstart mouseover", function(e) {$("#gtx1618").addClassSVG("c_Amosar");$("#gtx1618").toggle();}).on("touchend mouseout", function(e) {$("#gtx1618").removeClassSVG("c_Amosar");$("#gtx1618").toggle();});
createBar();
});
function randomSort(){
}
function isCorrect(){
}
function goTime(){clearInterval(timeInterval);showMessage("Time");}
function showSol(oldTypeGame){ 
}
function imaUp(ima){$("body").css("overflow","hidden");$("#ardoraActCanvas").attr({"width": $(window).width(),"height": $(window).height()});document.getElementById("ardoraActCanvas").style.zIndex=15;document.getElementById("ardoraActCanvas").style["visibility"]="visible";
document.getElementById("ardoraActCanvas").style["position"] = "fixed";document.getElementById("ardoraActCanvas").style["left"]=0;document.getElementById("ardoraActCanvas").style["top"]=0;
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 paintBack(){}
function svgFWords(input) {var output = ""; var chr1, chr2, chr3 = ""; var enc1, enc2, enc3, enc4 = "";var i = 0;
var btest = /[^A-Za-z0-9\+\/\=]/g; if (btest.exec(input)) { alert("Invalid characters");} input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
do { enc1 = wordsStr.indexOf(input.charAt(i++)); enc2 = wordsStr.indexOf(input.charAt(i++)); enc3 = wordsStr.indexOf(input.charAt(i++)); enc4 = wordsStr.indexOf(input.charAt(i++)); chr1 = (enc1 << 2) | (enc2 >> 4); chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);chr3 = ((enc3 & 3) << 6) | enc4;
output = output + String.fromCharCode(chr1);if (enc3 != 64) {output = output + String.fromCharCode(chr2);} if (enc4 != 64) {output = output + String.fromCharCode(chr3);}
chr1 = chr2 = chr3 = ""; enc1 = enc2 = enc3 = enc4 = "";} while (i < input.length);return unescape(output);}
Array.prototype.in_array=function(){ for(var j in this){ if(this[j]==arguments[0]){return true;}}return false;}
$.fn.removeClassSVG = function(className){$(this).attr("class", function(index, existingClassNames) {var re = new RegExp(className, "g");return existingClassNames.replace(re, "");}); return this;};
$.fn.addClassSVG = function(className) {$(this).attr("class", function(index, existingClassNames) {if (existingClassNames==null) {return className;}else{return existingClassNames + " " + className;};});return this;};
function touchHandler(event) {var touch = event.changedTouches[0];var simulatedEvent = document.createEvent("MouseEvent");simulatedEvent.initMouseEvent({touchstart: "mousedown",touchmove: "mousemove",touchend: "mouseup"}[event.type], true, true, window, 1,
touch.screenX, touch.screenY,touch.clientX, touch.clientY, false,false, false, false, 0, null);touch.target.dispatchEvent(simulatedEvent);event.preventDefault();};
