//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(){
$("#g_CAPA_ADRESS").css("display","block");$("#g_CAPA_ADRESS").hide();
$("#g_CAPA_FORMAL_GREETING").css("display","block");$("#g_CAPA_FORMAL_GREETING").hide();
$("#g_CAPA_INTRODUCTION").css("display","block");$("#g_CAPA_INTRODUCTION").hide();
$("#g_CAPA_BODY").css("display","block");$("#g_CAPA_BODY").hide();
$("#g_CAPA_CONCLUSION").css("display","block");$("#g_CAPA_CONCLUSION").hide();
$("#g_CAPA_FORMAL_ENDING").css("display","block");$("#g_CAPA_FORMAL_ENDING").hide();
$("#g_CONCLUSION").css("display","block");$("#g_CONCLUSION").hide();
$("#g_ADDRESS2").css("display","block");$("#g_ADDRESS2").hide();
$("#g_LETTER").css("display","block");$("#g_LETTER").hide();
$("#g_recipients").css("display","block");$("#g_recipients").hide();
$("#g_GREETING").css("display","block");$("#g_GREETING").hide();
$("#g_SIGNING").css("display","block");$("#g_SIGNING").hide();
$("#g_opening").css("display","block");$("#g_opening").hide();
$("#g_CAPA_BODY").css("display","block");$("#g_CAPA_BODY").hide();
$("#g_BODY2").css("display","block");$("#g_BODY2").hide();
$("#gCONCLUSION").css("display","block");$("#gCONCLUSION").hide();
$("#g_INTRO2").css("display","block");$("#g_INTRO2").hide();
$("#g_INTRODUCTION").css("display","block");$("#g_INTRODUCTION").hide();
$("#g-INTRODUCTION").css("display","block");$("#g-INTRODUCTION").hide();
$("#g-BODY1").css("display","block");$("#g-BODY1").hide();
$("#gBODY1").css("display","block");$("#gBODY1").hide();
$("#gBODY2").css("display","block");$("#gBODY2").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 711 688")});
$("svg").each(function () { $(this)[0].setAttribute("width", "603px") });
$("svg").each(function () { $(this)[0].setAttribute("height", "585px") });
$("#gBODY").on("touchstart mouseover", function(e) {$("#gBODY").addClassSVG("c_Resaltar");$("#gBODY").show();}).on("touchend mouseout", function(e) {$("#gBODY").removeClassSVG("c_Resaltar");});
$("#gBODY").on("touchstart mouseover", function(e) {$("#g_CAPA_BODY").addClassSVG("c_Amosar");$("#g_CAPA_BODY").toggle();}).on("touchend mouseout", function(e) {$("#g_CAPA_BODY").removeClassSVG("c_Amosar");$("#g_CAPA_BODY").toggle();});
$("#gBODY").on("touchstart mouseover", function(e) {$("#textADRESS").addClassSVG("c_Atenuar");$("#textADRESS").show();}).on("touchend mouseout", function(e) {$("#textADRESS").removeClassSVG("c_Atenuar");});
$("#gBODY").on("touchstart mouseover", function(e) {$("#textFORMAL_GREETING").addClassSVG("c_Atenuar");$("#textFORMAL_GREETING").show();}).on("touchend mouseout", function(e) {$("#textFORMAL_GREETING").removeClassSVG("c_Atenuar");});
$("#gBODY").on("touchstart mouseover", function(e) {$("#textFORMALENDING").addClassSVG("c_Atenuar");$("#textFORMALENDING").show();}).on("touchend mouseout", function(e) {$("#textFORMALENDING").removeClassSVG("c_Atenuar");});
$("#gBODY").on("touchstart mouseover", function(e) {$("#textINTRODUCTION").addClassSVG("c_Atenuar");$("#textINTRODUCTION").show();}).on("touchend mouseout", function(e) {$("#textINTRODUCTION").removeClassSVG("c_Atenuar");});
$("#gBODY").on("touchstart mouseover", function(e) {$("#text3362").addClassSVG("c_Atenuar");$("#text3362").show();}).on("touchend mouseout", function(e) {$("#text3362").removeClassSVG("c_Atenuar");});
$("#gBODY").on("touchstart mouseover", function(e) {$("#text3416").addClassSVG("c_Atenuar");$("#text3416").show();}).on("touchend mouseout", function(e) {$("#text3416").removeClassSVG("c_Atenuar");});
$("#gBODY").on("touchstart mouseover", function(e) {$("#gCONCLUSION path,#gCONCLUSION rect,#gCONCLUSION polygon,#gCONCLUSION ellipse,#gCONCLUSION circle,#gCONCLUSION text,#gCONCLUSION line,#gCONCLUSION polyline").each(function(){$(this).addClassSVG("c_Atenuar");});$("#gCONCLUSION").show();}).on("touchend mouseout", function(e) {$("#gCONCLUSION path,#gCONCLUSION rect,#gCONCLUSION polygon,#gCONCLUSION ellipse,#gCONCLUSION circle,#gCONCLUSION text,#gCONCLUSION line,#gCONCLUSION polyline").each(function(){$(this).removeClassSVG("c_Atenuar");});});
$("#textLETTER").on("touchstart mouseover", function(e) {$("#textLETTER").addClassSVG("c_Resaltar");$("#textLETTER").show();}).on("touchend mouseout", function(e) {$("#textLETTER").removeClassSVG("c_Resaltar");});
$("#textLETTER").on("touchstart mouseover", function(e) {$("#g_LETTER path,#g_LETTER rect,#g_LETTER polygon,#g_LETTER ellipse,#g_LETTER circle,#g_LETTER text,#g_LETTER line,#g_LETTER polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#g_LETTER").toggle();}).on("touchend mouseout", function(e) {$("#g_LETTER path,#g_LETTER rect,#g_LETTER polygon,#g_LETTER ellipse,#g_LETTER circle,#g_LETTER text,#g_LETTER line,#g_LETTER polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#g_LETTER").toggle();});
$("#textLETTER").on("touchstart mouseover", function(e) {$("#textADDRESS1").addClassSVG("c_Atenuar");$("#textADDRESS1").show();}).on("touchend mouseout", function(e) {$("#textADDRESS1").removeClassSVG("c_Atenuar");});
$("#textLETTER").on("touchstart mouseover", function(e) {$("#textADDRESS2").addClassSVG("c_Atenuar");$("#textADDRESS2").show();}).on("touchend mouseout", function(e) {$("#textADDRESS2").removeClassSVG("c_Atenuar");});
$("#textLETTER").on("touchstart mouseover", function(e) {$("#textBODY1").addClassSVG("c_Atenuar");$("#textBODY1").show();}).on("touchend mouseout", function(e) {$("#textBODY1").removeClassSVG("c_Atenuar");});
$("#textLETTER").on("touchstart mouseover", function(e) {$("#textBODY2").addClassSVG("c_Atenuar");$("#textBODY2").show();}).on("touchend mouseout", function(e) {$("#textBODY2").removeClassSVG("c_Atenuar");});
$("#textLETTER").on("touchstart mouseover", function(e) {$("#textCONCLUSION").addClassSVG("c_Atenuar");$("#textCONCLUSION").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION").removeClassSVG("c_Atenuar");});
$("#textLETTER").on("touchstart mouseover", function(e) {$("#textCONCLUSION1").addClassSVG("c_Atenuar");$("#textCONCLUSION1").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION1").removeClassSVG("c_Atenuar");});
$("#textLETTER").on("touchstart mouseover", function(e) {$("#textCONCLUSION2").addClassSVG("c_Atenuar");$("#textCONCLUSION2").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION2").removeClassSVG("c_Atenuar");});
$("#textLETTER").on("touchstart mouseover", function(e) {$("#textENDING").addClassSVG("c_Atenuar");$("#textENDING").show();}).on("touchend mouseout", function(e) {$("#textENDING").removeClassSVG("c_Atenuar");});
$("#textLETTER").on("touchstart mouseover", function(e) {$("#textFORMALENDING").addClassSVG("c_Atenuar");$("#textFORMALENDING").show();}).on("touchend mouseout", function(e) {$("#textFORMALENDING").removeClassSVG("c_Atenuar");});
$("#textLETTER").on("touchstart mouseover", function(e) {$("#textGREETING").addClassSVG("c_Atenuar");$("#textGREETING").show();}).on("touchend mouseout", function(e) {$("#textGREETING").removeClassSVG("c_Atenuar");});
$("#textLETTER").on("touchstart mouseover", function(e) {$("#textOPENING").addClassSVG("c_Atenuar");$("#textOPENING").show();}).on("touchend mouseout", function(e) {$("#textOPENING").removeClassSVG("c_Atenuar");});
$("#textADDRESS1").on("touchstart mouseover", function(e) {$("#textADDRESS1").addClassSVG("c_Resaltar");$("#textADDRESS1").show();}).on("touchend mouseout", function(e) {$("#textADDRESS1").removeClassSVG("c_Resaltar");});
$("#textADDRESS1").on("touchstart mouseover", function(e) {$("#g_recipients").addClassSVG("c_Amosar");$("#g_recipients").toggle();}).on("touchend mouseout", function(e) {$("#g_recipients").removeClassSVG("c_Amosar");$("#g_recipients").toggle();});
$("#textADDRESS1").on("touchstart mouseover", function(e) {$("#textADDRESS2").addClassSVG("c_Atenuar");$("#textADDRESS2").show();}).on("touchend mouseout", function(e) {$("#textADDRESS2").removeClassSVG("c_Atenuar");});
$("#textADDRESS1").on("touchstart mouseover", function(e) {$("#textBODY1").addClassSVG("c_Atenuar");$("#textBODY1").show();}).on("touchend mouseout", function(e) {$("#textBODY1").removeClassSVG("c_Atenuar");});
$("#textADDRESS1").on("touchstart mouseover", function(e) {$("#textBODY2").addClassSVG("c_Atenuar");$("#textBODY2").show();}).on("touchend mouseout", function(e) {$("#textBODY2").removeClassSVG("c_Atenuar");});
$("#textADDRESS1").on("touchstart mouseover", function(e) {$("#textCONCLUSION").addClassSVG("c_Atenuar");$("#textCONCLUSION").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION").removeClassSVG("c_Atenuar");});
$("#textADDRESS1").on("touchstart mouseover", function(e) {$("#textCONCLUSION1").addClassSVG("c_Atenuar");$("#textCONCLUSION1").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION1").removeClassSVG("c_Atenuar");});
$("#textADDRESS1").on("touchstart mouseover", function(e) {$("#textCONCLUSION2").addClassSVG("c_Atenuar");$("#textCONCLUSION2").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION2").removeClassSVG("c_Atenuar");});
$("#textADDRESS1").on("touchstart mouseover", function(e) {$("#textENDING").addClassSVG("c_Atenuar");$("#textENDING").show();}).on("touchend mouseout", function(e) {$("#textENDING").removeClassSVG("c_Atenuar");});
$("#textADDRESS1").on("touchstart mouseover", function(e) {$("#textFORMALENDING").addClassSVG("c_Atenuar");$("#textFORMALENDING").show();}).on("touchend mouseout", function(e) {$("#textFORMALENDING").removeClassSVG("c_Atenuar");});
$("#textADDRESS1").on("touchstart mouseover", function(e) {$("#textGREETING").addClassSVG("c_Atenuar");$("#textGREETING").show();}).on("touchend mouseout", function(e) {$("#textGREETING").removeClassSVG("c_Atenuar");});
$("#textADDRESS1").on("touchstart mouseover", function(e) {$("#textLETTER").addClassSVG("c_Atenuar");$("#textLETTER").show();}).on("touchend mouseout", function(e) {$("#textLETTER").removeClassSVG("c_Atenuar");});
$("#textADDRESS1").on("touchstart mouseover", function(e) {$("#textOPENING").addClassSVG("c_Atenuar");$("#textOPENING").show();}).on("touchend mouseout", function(e) {$("#textOPENING").removeClassSVG("c_Atenuar");});
$("#textADDRESS2").on("touchstart mouseover", function(e) {$("#textADDRESS2").addClassSVG("c_Resaltar");$("#textADDRESS2").show();}).on("touchend mouseout", function(e) {$("#textADDRESS2").removeClassSVG("c_Resaltar");});
$("#textADDRESS2").on("touchstart mouseover", function(e) {$("#g_ADDRESS2").addClassSVG("c_Amosar");$("#g_ADDRESS2").toggle();}).on("touchend mouseout", function(e) {$("#g_ADDRESS2").removeClassSVG("c_Amosar");$("#g_ADDRESS2").toggle();});
$("#textADDRESS2").on("touchstart mouseover", function(e) {$("#textADDRESS1").addClassSVG("c_Atenuar");$("#textADDRESS1").show();}).on("touchend mouseout", function(e) {$("#textADDRESS1").removeClassSVG("c_Atenuar");});
$("#textADDRESS2").on("touchstart mouseover", function(e) {$("#textCONCLUSION").addClassSVG("c_Atenuar");$("#textCONCLUSION").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION").removeClassSVG("c_Atenuar");});
$("#textADDRESS2").on("touchstart mouseover", function(e) {$("#textBODY1").addClassSVG("c_Atenuar");$("#textBODY1").show();}).on("touchend mouseout", function(e) {$("#textBODY1").removeClassSVG("c_Atenuar");});
$("#textADDRESS2").on("touchstart mouseover", function(e) {$("#textBODY2").addClassSVG("c_Atenuar");$("#textBODY2").show();}).on("touchend mouseout", function(e) {$("#textBODY2").removeClassSVG("c_Atenuar");});
$("#textADDRESS2").on("touchstart mouseover", function(e) {$("#textCONCLUSION1").addClassSVG("c_Atenuar");$("#textCONCLUSION1").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION1").removeClassSVG("c_Atenuar");});
$("#textADDRESS2").on("touchstart mouseover", function(e) {$("#textCONCLUSION2").addClassSVG("c_Atenuar");$("#textCONCLUSION2").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION2").removeClassSVG("c_Atenuar");});
$("#textADDRESS2").on("touchstart mouseover", function(e) {$("#textENDING").addClassSVG("c_Atenuar");$("#textENDING").show();}).on("touchend mouseout", function(e) {$("#textENDING").removeClassSVG("c_Atenuar");});
$("#textADDRESS2").on("touchstart mouseover", function(e) {$("#textFORMALENDING").addClassSVG("c_Atenuar");$("#textFORMALENDING").show();}).on("touchend mouseout", function(e) {$("#textFORMALENDING").removeClassSVG("c_Atenuar");});
$("#textADDRESS2").on("touchstart mouseover", function(e) {$("#textGREETING").addClassSVG("c_Atenuar");$("#textGREETING").show();}).on("touchend mouseout", function(e) {$("#textGREETING").removeClassSVG("c_Atenuar");});
$("#textADDRESS2").on("touchstart mouseover", function(e) {$("#textOPENING").addClassSVG("c_Atenuar");$("#textOPENING").show();}).on("touchend mouseout", function(e) {$("#textOPENING").removeClassSVG("c_Atenuar");});
$("#textGREETING").on("touchstart mouseover", function(e) {$("#textGREETING").addClassSVG("c_Resaltar");$("#textGREETING").show();}).on("touchend mouseout", function(e) {$("#textGREETING").removeClassSVG("c_Resaltar");});
$("#textGREETING").on("touchstart mouseover", function(e) {$("#g_GREETING").addClassSVG("c_Amosar");$("#g_GREETING").toggle();}).on("touchend mouseout", function(e) {$("#g_GREETING").removeClassSVG("c_Amosar");$("#g_GREETING").toggle();});
$("#textGREETING").on("touchstart mouseover", function(e) {$("#textADDRESS1").addClassSVG("c_Atenuar");$("#textADDRESS1").show();}).on("touchend mouseout", function(e) {$("#textADDRESS1").removeClassSVG("c_Atenuar");});
$("#textGREETING").on("touchstart mouseover", function(e) {$("#textADDRESS2").addClassSVG("c_Atenuar");$("#textADDRESS2").show();}).on("touchend mouseout", function(e) {$("#textADDRESS2").removeClassSVG("c_Atenuar");});
$("#textGREETING").on("touchstart mouseover", function(e) {$("#textBODY1").addClassSVG("c_Atenuar");$("#textBODY1").show();}).on("touchend mouseout", function(e) {$("#textBODY1").removeClassSVG("c_Atenuar");});
$("#textGREETING").on("touchstart mouseover", function(e) {$("#textBODY2").addClassSVG("c_Atenuar");$("#textBODY2").show();}).on("touchend mouseout", function(e) {$("#textBODY2").removeClassSVG("c_Atenuar");});
$("#textGREETING").on("touchstart mouseover", function(e) {$("#textCONCLUSION").addClassSVG("c_Atenuar");$("#textCONCLUSION").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION").removeClassSVG("c_Atenuar");});
$("#textGREETING").on("touchstart mouseover", function(e) {$("#textCONCLUSION1").addClassSVG("c_Atenuar");$("#textCONCLUSION1").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION1").removeClassSVG("c_Atenuar");});
$("#textGREETING").on("touchstart mouseover", function(e) {$("#textCONCLUSION2").addClassSVG("c_Atenuar");$("#textCONCLUSION2").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION2").removeClassSVG("c_Atenuar");});
$("#textGREETING").on("touchstart mouseover", function(e) {$("#textENDING").addClassSVG("c_Atenuar");$("#textENDING").show();}).on("touchend mouseout", function(e) {$("#textENDING").removeClassSVG("c_Atenuar");});
$("#textGREETING").on("touchstart mouseover", function(e) {$("#textFORMALENDING").addClassSVG("c_Atenuar");$("#textFORMALENDING").show();}).on("touchend mouseout", function(e) {$("#textFORMALENDING").removeClassSVG("c_Atenuar");});
$("#textGREETING").on("touchstart mouseover", function(e) {$("#textOPENING").addClassSVG("c_Atenuar");$("#textOPENING").show();}).on("touchend mouseout", function(e) {$("#textOPENING").removeClassSVG("c_Atenuar");});
$("#textBODY1").on("touchstart mouseover", function(e) {$("#textBODY2").addClassSVG("c_Atenuar");$("#textBODY2").show();}).on("touchend mouseout", function(e) {$("#textBODY2").removeClassSVG("c_Atenuar");});
$("#textBODY1").on("touchstart mouseover", function(e) {$("#textCONCLUSION1").addClassSVG("c_Atenuar");$("#textCONCLUSION1").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION1").removeClassSVG("c_Atenuar");});
$("#textBODY1").on("touchstart mouseover", function(e) {$("#textGREETING").addClassSVG("c_Atenuar");$("#textGREETING").show();}).on("touchend mouseout", function(e) {$("#textGREETING").removeClassSVG("c_Atenuar");});
$("#textBODY1").on("touchstart mouseover", function(e) {$("#textOPENING").addClassSVG("c_Atenuar");$("#textOPENING").show();}).on("touchend mouseout", function(e) {$("#textOPENING").removeClassSVG("c_Atenuar");});
$("#textBODY2").on("touchstart mouseover", function(e) {$("#textBODY2").addClassSVG("c_Resaltar");$("#textBODY2").show();}).on("touchend mouseout", function(e) {$("#textBODY2").removeClassSVG("c_Resaltar");});
$("#textBODY2").on("touchstart mouseover", function(e) {$("#textBODY1").addClassSVG("c_Atenuar");$("#textBODY1").show();}).on("touchend mouseout", function(e) {$("#textBODY1").removeClassSVG("c_Atenuar");});
$("#textBODY2").on("touchstart mouseover", function(e) {$("#textCONCLUSION1").addClassSVG("c_Atenuar");$("#textCONCLUSION1").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION1").removeClassSVG("c_Atenuar");});
$("#textBODY2").on("touchstart mouseover", function(e) {$("#textOPENING").addClassSVG("c_Atenuar");$("#textOPENING").show();}).on("touchend mouseout", function(e) {$("#textOPENING").removeClassSVG("c_Atenuar");});
$("#textCONCLUSION").on("touchstart mouseover", function(e) {$("#textCONCLUSION").addClassSVG("c_Resaltar");$("#textCONCLUSION").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION").removeClassSVG("c_Resaltar");});
$("#textCONCLUSION").on("touchstart mouseover", function(e) {$("#g_CONCLUSION").addClassSVG("c_Amosar");$("#g_CONCLUSION").toggle();}).on("touchend mouseout", function(e) {$("#g_CONCLUSION").removeClassSVG("c_Amosar");$("#g_CONCLUSION").toggle();});
$("#textCONCLUSION").on("touchstart mouseover", function(e) {$("#textADDRESS1").addClassSVG("c_Atenuar");$("#textADDRESS1").show();}).on("touchend mouseout", function(e) {$("#textADDRESS1").removeClassSVG("c_Atenuar");});
$("#textCONCLUSION").on("touchstart mouseover", function(e) {$("#textADDRESS2").addClassSVG("c_Atenuar");$("#textADDRESS2").show();}).on("touchend mouseout", function(e) {$("#textADDRESS2").removeClassSVG("c_Atenuar");});
$("#textCONCLUSION").on("touchstart mouseover", function(e) {$("#textBODY1").addClassSVG("c_Atenuar");$("#textBODY1").show();}).on("touchend mouseout", function(e) {$("#textBODY1").removeClassSVG("c_Atenuar");});
$("#textCONCLUSION").on("touchstart mouseover", function(e) {$("#textBODY2").addClassSVG("c_Atenuar");$("#textBODY2").show();}).on("touchend mouseout", function(e) {$("#textBODY2").removeClassSVG("c_Atenuar");});
$("#textCONCLUSION").on("touchstart mouseover", function(e) {$("#textENDING").addClassSVG("c_Atenuar");$("#textENDING").show();}).on("touchend mouseout", function(e) {$("#textENDING").removeClassSVG("c_Atenuar");});
$("#textCONCLUSION").on("touchstart mouseover", function(e) {$("#textFORMALENDING").addClassSVG("c_Atenuar");$("#textFORMALENDING").show();}).on("touchend mouseout", function(e) {$("#textFORMALENDING").removeClassSVG("c_Atenuar");});
$("#textCONCLUSION").on("touchstart mouseover", function(e) {$("#textGREETING").addClassSVG("c_Atenuar");$("#textGREETING").show();}).on("touchend mouseout", function(e) {$("#textGREETING").removeClassSVG("c_Atenuar");});
$("#textCONCLUSION").on("touchstart mouseover", function(e) {$("#textOPENING").addClassSVG("c_Atenuar");$("#textOPENING").show();}).on("touchend mouseout", function(e) {$("#textOPENING").removeClassSVG("c_Atenuar");});
$("#g_signingoff").on("touchstart mouseover", function(e) {$("#g_signingoff").addClassSVG("c_Resaltar");$("#g_signingoff").show();}).on("touchend mouseout", function(e) {$("#g_signingoff").removeClassSVG("c_Resaltar");});
$("#g_signingoff").on("touchstart mouseover", function(e) {$("#g_SIGNING").addClassSVG("c_Amosar");$("#g_SIGNING").toggle();}).on("touchend mouseout", function(e) {$("#g_SIGNING").removeClassSVG("c_Amosar");$("#g_SIGNING").toggle();});
$("#g_signingoff").on("touchstart mouseover", function(e) {$("#textADDRESS1").addClassSVG("c_Atenuar");$("#textADDRESS1").show();}).on("touchend mouseout", function(e) {$("#textADDRESS1").removeClassSVG("c_Atenuar");});
$("#g_signingoff").on("touchstart mouseover", function(e) {$("#textADDRESS2").addClassSVG("c_Atenuar");$("#textADDRESS2").show();}).on("touchend mouseout", function(e) {$("#textADDRESS2").removeClassSVG("c_Atenuar");});
$("#g_signingoff").on("touchstart mouseover", function(e) {$("#textBODY1").addClassSVG("c_Atenuar");$("#textBODY1").show();}).on("touchend mouseout", function(e) {$("#textBODY1").removeClassSVG("c_Atenuar");});
$("#g_signingoff").on("touchstart mouseover", function(e) {$("#textBODY2").addClassSVG("c_Atenuar");$("#textBODY2").show();}).on("touchend mouseout", function(e) {$("#textBODY2").removeClassSVG("c_Atenuar");});
$("#g_signingoff").on("touchstart mouseover", function(e) {$("#textCONCLUSION").addClassSVG("c_Atenuar");$("#textCONCLUSION").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION").removeClassSVG("c_Atenuar");});
$("#g_signingoff").on("touchstart mouseover", function(e) {$("#textOPENING").addClassSVG("c_Atenuar");$("#textOPENING").show();}).on("touchend mouseout", function(e) {$("#textOPENING").removeClassSVG("c_Atenuar");});
$("#g_signingoff").on("touchstart mouseover", function(e) {$("#textGREETING").addClassSVG("c_Atenuar");$("#textGREETING").show();}).on("touchend mouseout", function(e) {$("#textGREETING").removeClassSVG("c_Atenuar");});
$("#textOPENING").on("touchstart mouseover", function(e) {$("#textOPENING").addClassSVG("c_Resaltar");$("#textOPENING").show();}).on("touchend mouseout", function(e) {$("#textOPENING").removeClassSVG("c_Resaltar");});
$("#textOPENING").on("touchstart mouseover", function(e) {$("#g_INTRO2 path,#g_INTRO2 rect,#g_INTRO2 polygon,#g_INTRO2 ellipse,#g_INTRO2 circle,#g_INTRO2 text,#g_INTRO2 line,#g_INTRO2 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#g_INTRO2").toggle();}).on("touchend mouseout", function(e) {$("#g_INTRO2 path,#g_INTRO2 rect,#g_INTRO2 polygon,#g_INTRO2 ellipse,#g_INTRO2 circle,#g_INTRO2 text,#g_INTRO2 line,#g_INTRO2 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#g_INTRO2").toggle();});
$("#textOPENING").on("touchstart mouseover", function(e) {$("#g-INTRODUCTION path,#g-INTRODUCTION rect,#g-INTRODUCTION polygon,#g-INTRODUCTION ellipse,#g-INTRODUCTION circle,#g-INTRODUCTION text,#g-INTRODUCTION line,#g-INTRODUCTION polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#g-INTRODUCTION").toggle();}).on("touchend mouseout", function(e) {$("#g-INTRODUCTION path,#g-INTRODUCTION rect,#g-INTRODUCTION polygon,#g-INTRODUCTION ellipse,#g-INTRODUCTION circle,#g-INTRODUCTION text,#g-INTRODUCTION line,#g-INTRODUCTION polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#g-INTRODUCTION").toggle();});
$("#textOPENING").on("touchstart mouseover", function(e) {$("#g_INTRODUCTION").addClassSVG("c_Amosar");$("#g_INTRODUCTION").toggle();}).on("touchend mouseout", function(e) {$("#g_INTRODUCTION").removeClassSVG("c_Amosar");$("#g_INTRODUCTION").toggle();});
$("#textOPENING").on("touchstart mouseover", function(e) {$("#textBODY1").addClassSVG("c_Atenuar");$("#textBODY1").show();}).on("touchend mouseout", function(e) {$("#textBODY1").removeClassSVG("c_Atenuar");});
$("#textOPENING").on("touchstart mouseover", function(e) {$("#textBODY2").addClassSVG("c_Atenuar");$("#textBODY2").show();}).on("touchend mouseout", function(e) {$("#textBODY2").removeClassSVG("c_Atenuar");});
$("#textOPENING").on("touchstart mouseover", function(e) {$("#textCONCLUSION1").addClassSVG("c_Atenuar");$("#textCONCLUSION1").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION1").removeClassSVG("c_Atenuar");});
$("#textBODY1").on("touchstart mouseover", function(e) {$("#textBODY1").addClassSVG("c_Resaltar");$("#textBODY1").show();}).on("touchend mouseout", function(e) {$("#textBODY1").removeClassSVG("c_Resaltar");});
$("#textBODY1").on("touchstart mouseover", function(e) {$("#gBODY1 path,#gBODY1 rect,#gBODY1 polygon,#gBODY1 ellipse,#gBODY1 circle,#gBODY1 text,#gBODY1 line,#gBODY1 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#gBODY1").toggle();}).on("touchend mouseout", function(e) {$("#gBODY1 path,#gBODY1 rect,#gBODY1 polygon,#gBODY1 ellipse,#gBODY1 circle,#gBODY1 text,#gBODY1 line,#gBODY1 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#gBODY1").toggle();});
$("#textBODY1").on("touchstart mouseover", function(e) {$("#g-BODY1 path,#g-BODY1 rect,#g-BODY1 polygon,#g-BODY1 ellipse,#g-BODY1 circle,#g-BODY1 text,#g-BODY1 line,#g-BODY1 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#g-BODY1").toggle();}).on("touchend mouseout", function(e) {$("#g-BODY1 path,#g-BODY1 rect,#g-BODY1 polygon,#g-BODY1 ellipse,#g-BODY1 circle,#g-BODY1 text,#g-BODY1 line,#g-BODY1 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#g-BODY1").toggle();});
$("#textBODY2").on("touchstart mouseover", function(e) {$("#gBODY2 path,#gBODY2 rect,#gBODY2 polygon,#gBODY2 ellipse,#gBODY2 circle,#gBODY2 text,#gBODY2 line,#gBODY2 polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#gBODY2").toggle();}).on("touchend mouseout", function(e) {$("#gBODY2 path,#gBODY2 rect,#gBODY2 polygon,#gBODY2 ellipse,#gBODY2 circle,#gBODY2 text,#gBODY2 line,#gBODY2 polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#gBODY2").toggle();});
$("#textCONCLUSION1").on("touchstart mouseover", function(e) {$("#textCONCLUSION1").addClassSVG("c_Resaltar");$("#textCONCLUSION1").show();}).on("touchend mouseout", function(e) {$("#textCONCLUSION1").removeClassSVG("c_Resaltar");});
$("#textCONCLUSION1").on("touchstart mouseover", function(e) {$("#textBODY1").addClassSVG("c_Atenuar");$("#textBODY1").show();}).on("touchend mouseout", function(e) {$("#textBODY1").removeClassSVG("c_Atenuar");});
$("#textCONCLUSION1").on("touchstart mouseover", function(e) {$("#textOPENING").addClassSVG("c_Atenuar");$("#textOPENING").show();}).on("touchend mouseout", function(e) {$("#textOPENING").removeClassSVG("c_Atenuar");});
$("#textCONCLUSION1").on("touchstart mouseover", function(e) {$("#textBODY2").addClassSVG("c_Atenuar");$("#textBODY2").show();}).on("touchend mouseout", function(e) {$("#textBODY2").removeClassSVG("c_Atenuar");});
$("#textCONCLUSION1").on("touchstart mouseover", function(e) {$("#gCONCLUSION path,#gCONCLUSION rect,#gCONCLUSION polygon,#gCONCLUSION ellipse,#gCONCLUSION circle,#gCONCLUSION text,#gCONCLUSION line,#gCONCLUSION polyline").each(function(){$(this).addClassSVG("c_Amosar");});$("#gCONCLUSION").toggle();}).on("touchend mouseout", function(e) {$("#gCONCLUSION path,#gCONCLUSION rect,#gCONCLUSION polygon,#gCONCLUSION ellipse,#gCONCLUSION circle,#gCONCLUSION text,#gCONCLUSION line,#gCONCLUSION polyline").each(function(){$(this).removeClassSVG("c_Amosar");});$("#gCONCLUSION").toggle();});
centerSvg();
createBar();
});
function centerSvg(){var nWi=($(document).width()-$("#ardoraAct").width()) /2;var nHi=($(document).height()-$("#ardoraAct").height()) /2;$("#ardoraAct").css("marginLeft", nWi.toString()+"px");$("#ardoraAct").css("marginTop", nHi.toString()+"px");}
$(window).resize(function() {centerSvg();});
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();};
