//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(){
$("#n_keyboard").css("display","block");$("#n_keyboard").hide();
$("#n_micro").css("display","block");$("#n_micro").hide();
$("#n_RAM").css("display","block");$("#n_RAM").hide();
$("#n_mouse").css("display","block");$("#n_mouse").hide();
$("#n_printer").css("display","block");$("#n_printer").hide();
$("#n_printer").css("display","block");$("#n_printer").hide();
$("#n_speaker").css("display","block");$("#n_speaker").hide();
$("#n_speaker").css("display","block");$("#n_speaker").hide();
$("#n_monitor").css("display","block");$("#n_monitor").hide();
$("#n_system").css("display","block");$("#n_system").hide();
$("#n_system").css("display","block");$("#n_system").hide();
$("#n_app").css("display","block");$("#n_app").hide();
$("#n_app").css("display","block");$("#n_app").hide();
$("#n_scanner").css("display","block");$("#n_scanner").hide();
$("#n_SSD").css("display","block");$("#n_SSD").hide();
$("#n_DVD").css("display","block");$("#n_DVD").hide();
$("#n_cards").css("display","block");$("#n_cards").hide();
$("#n_power").css("display","block");$("#n_power").hide();
$("#n_mother").css("display","block");$("#n_mother").hide();
$("#g1412-9").css("display","block");$("#g1412-9").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 1448 871")});
$("svg").each(function () { $(this)[0].setAttribute("width", "765px") });
$("svg").each(function () { $(this)[0].setAttribute("height", "460px") });
$("#g1").on("touchstart mouseover", function(e) {$("#n_scanner path,#n_scanner rect,#n_scanner polygon,#n_scanner ellipse,#n_scanner circle,#n_scanner text,#n_scanner line,#n_scanner polyline").each(function(){$(this).addClassSVG("c_Mostrar");});$("#n_scanner").toggle();}).on("touchend mouseout", function(e) {$("#n_scanner path,#n_scanner rect,#n_scanner polygon,#n_scanner ellipse,#n_scanner circle,#n_scanner text,#n_scanner line,#n_scanner polyline").each(function(){$(this).removeClassSVG("c_Mostrar");});$("#n_scanner").toggle();});
$("#g1").on("touchstart click",function(e) {if ($("#n_scanner").css("display")=="block"){$("#n_scanner").css("display","hidden");$("#n_scanner").hide();}else{$("#n_scanner").css("display","block");$("#n_scanner").show();}});
$("#g1").on("touchstart mouseover", function(e) {$("#gscanner path,#gscanner rect,#gscanner polygon,#gscanner ellipse,#gscanner circle,#gscanner text,#gscanner line,#gscanner polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#gscanner path,#gscanner rect,#gscanner polygon,#gscanner ellipse,#gscanner circle,#gscanner text,#gscanner line,#gscanner polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
$("#g2").on("touchstart mouseover", function(e) {$("#n_micro path,#n_micro rect,#n_micro polygon,#n_micro ellipse,#n_micro circle,#n_micro text,#n_micro line,#n_micro polyline").each(function(){$(this).addClassSVG("c_Mostrar");});$("#n_micro").toggle();}).on("touchend mouseout", function(e) {$("#n_micro path,#n_micro rect,#n_micro polygon,#n_micro ellipse,#n_micro circle,#n_micro text,#n_micro line,#n_micro polyline").each(function(){$(this).removeClassSVG("c_Mostrar");});$("#n_micro").toggle();});
$("#g2").on("touchstart click",function(e) {if ($("#n_micro").css("display")=="block"){$("#n_micro").css("display","hidden");$("#n_micro").hide();}else{$("#n_micro").css("display","block");$("#n_micro").show();}});
$("#g2").on("touchstart mouseover", function(e) {$("#micro path,#micro rect,#micro polygon,#micro ellipse,#micro circle,#micro text,#micro line,#micro polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#micro path,#micro rect,#micro polygon,#micro ellipse,#micro circle,#micro text,#micro line,#micro polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
$("#g3").on("touchstart mouseover", function(e) {$("#n_RAM path,#n_RAM rect,#n_RAM polygon,#n_RAM ellipse,#n_RAM circle,#n_RAM text,#n_RAM line,#n_RAM polyline").each(function(){$(this).addClassSVG("c_Mostrar");});$("#n_RAM").toggle();}).on("touchend mouseout", function(e) {$("#n_RAM path,#n_RAM rect,#n_RAM polygon,#n_RAM ellipse,#n_RAM circle,#n_RAM text,#n_RAM line,#n_RAM polyline").each(function(){$(this).removeClassSVG("c_Mostrar");});$("#n_RAM").toggle();});
$("#g3").on("touchstart click",function(e) {if ($("#n_RAM").css("display")=="block"){$("#n_RAM").css("display","hidden");$("#n_RAM").hide();}else{$("#n_RAM").css("display","block");$("#n_RAM").show();}});
$("#g3").on("touchstart mouseover", function(e) {$("#ram path,#ram rect,#ram polygon,#ram ellipse,#ram circle,#ram text,#ram line,#ram polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#ram path,#ram rect,#ram polygon,#ram ellipse,#ram circle,#ram text,#ram line,#ram polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
$("#g3").on("touchstart mouseover", function(e) {$("#RAM-sockets path,#RAM-sockets rect,#RAM-sockets polygon,#RAM-sockets ellipse,#RAM-sockets circle,#RAM-sockets text,#RAM-sockets line,#RAM-sockets polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#RAM-sockets path,#RAM-sockets rect,#RAM-sockets polygon,#RAM-sockets ellipse,#RAM-sockets circle,#RAM-sockets text,#RAM-sockets line,#RAM-sockets polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
$("#g4").on("touchstart mouseover", function(e) {$("#n_cards path,#n_cards rect,#n_cards polygon,#n_cards ellipse,#n_cards circle,#n_cards text,#n_cards line,#n_cards polyline").each(function(){$(this).addClassSVG("c_Mostrar");});$("#n_cards").toggle();}).on("touchend mouseout", function(e) {$("#n_cards path,#n_cards rect,#n_cards polygon,#n_cards ellipse,#n_cards circle,#n_cards text,#n_cards line,#n_cards polyline").each(function(){$(this).removeClassSVG("c_Mostrar");});$("#n_cards").toggle();});
$("#g4").on("touchstart click",function(e) {if ($("#n_cards").css("display")=="block"){$("#n_cards").css("display","hidden");$("#n_cards").hide();}else{$("#n_cards").css("display","block");$("#n_cards").show();}});
$("#g4").on("touchstart mouseover", function(e) {$("#gcards path,#gcards rect,#gcards polygon,#gcards ellipse,#gcards circle,#gcards text,#gcards line,#gcards polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#gcards path,#gcards rect,#gcards polygon,#gcards ellipse,#gcards circle,#gcards text,#gcards line,#gcards polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
$("#g5").on("touchstart mouseover", function(e) {$("#n_power path,#n_power rect,#n_power polygon,#n_power ellipse,#n_power circle,#n_power text,#n_power line,#n_power polyline").each(function(){$(this).addClassSVG("c_Mostrar");});$("#n_power").toggle();}).on("touchend mouseout", function(e) {$("#n_power path,#n_power rect,#n_power polygon,#n_power ellipse,#n_power circle,#n_power text,#n_power line,#n_power polyline").each(function(){$(this).removeClassSVG("c_Mostrar");});$("#n_power").toggle();});
$("#g5").on("touchstart click",function(e) {if ($("#n_power").css("display")=="block"){$("#n_power").css("display","hidden");$("#n_power").hide();}else{$("#n_power").css("display","block");$("#n_power").show();}});
$("#g5").on("touchstart mouseover", function(e) {$("#power path,#power rect,#power polygon,#power ellipse,#power circle,#power text,#power line,#power polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#power path,#power rect,#power polygon,#power ellipse,#power circle,#power text,#power line,#power polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
$("#g6").on("touchstart mouseover", function(e) {$("#n_DVD path,#n_DVD rect,#n_DVD polygon,#n_DVD ellipse,#n_DVD circle,#n_DVD text,#n_DVD line,#n_DVD polyline").each(function(){$(this).addClassSVG("c_Mostrar");});$("#n_DVD").toggle();}).on("touchend mouseout", function(e) {$("#n_DVD path,#n_DVD rect,#n_DVD polygon,#n_DVD ellipse,#n_DVD circle,#n_DVD text,#n_DVD line,#n_DVD polyline").each(function(){$(this).removeClassSVG("c_Mostrar");});$("#n_DVD").toggle();});
$("#g6").on("touchstart click",function(e) {if ($("#n_DVD").css("display")=="block"){$("#n_DVD").css("display","hidden");$("#n_DVD").hide();}else{$("#n_DVD").css("display","block");$("#n_DVD").show();}});
$("#g6").on("touchstart mouseover", function(e) {$("#gDVD path,#gDVD rect,#gDVD polygon,#gDVD ellipse,#gDVD circle,#gDVD text,#gDVD line,#gDVD polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#gDVD path,#gDVD rect,#gDVD polygon,#gDVD ellipse,#gDVD circle,#gDVD text,#gDVD line,#gDVD polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
$("#g7").on("touchstart mouseover", function(e) {$("#n_SSD path,#n_SSD rect,#n_SSD polygon,#n_SSD ellipse,#n_SSD circle,#n_SSD text,#n_SSD line,#n_SSD polyline").each(function(){$(this).addClassSVG("c_Mostrar");});$("#n_SSD").toggle();}).on("touchend mouseout", function(e) {$("#n_SSD path,#n_SSD rect,#n_SSD polygon,#n_SSD ellipse,#n_SSD circle,#n_SSD text,#n_SSD line,#n_SSD polyline").each(function(){$(this).removeClassSVG("c_Mostrar");});$("#n_SSD").toggle();});
$("#g7").on("touchstart click",function(e) {if ($("#n_SSD").css("display")=="block"){$("#n_SSD").css("display","hidden");$("#n_SSD").hide();}else{$("#n_SSD").css("display","block");$("#n_SSD").show();}});
$("#g7").on("touchstart mouseover", function(e) {$("#gSSD path,#gSSD rect,#gSSD polygon,#gSSD ellipse,#gSSD circle,#gSSD text,#gSSD line,#gSSD polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#gSSD path,#gSSD rect,#gSSD polygon,#gSSD ellipse,#gSSD circle,#gSSD text,#gSSD line,#gSSD polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
$("#g8").on("touchstart mouseover", function(e) {$("#n_mother path,#n_mother rect,#n_mother polygon,#n_mother ellipse,#n_mother circle,#n_mother text,#n_mother line,#n_mother polyline").each(function(){$(this).addClassSVG("c_Mostrar");});$("#n_mother").toggle();}).on("touchend mouseout", function(e) {$("#n_mother path,#n_mother rect,#n_mother polygon,#n_mother ellipse,#n_mother circle,#n_mother text,#n_mother line,#n_mother polyline").each(function(){$(this).removeClassSVG("c_Mostrar");});$("#n_mother").toggle();});
$("#g8").on("touchstart click",function(e) {if ($("#n_mother").css("display")=="block"){$("#n_mother").css("display","hidden");$("#n_mother").hide();}else{$("#n_mother").css("display","block");$("#n_mother").show();}});
$("#g8").on("touchstart mouseover", function(e) {$("#mother path,#mother rect,#mother polygon,#mother ellipse,#mother circle,#mother text,#mother line,#mother polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#mother path,#mother rect,#mother polygon,#mother ellipse,#mother circle,#mother text,#mother line,#mother polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
$("#g9").on("touchstart mouseover", function(e) {$("#n_speaker path,#n_speaker rect,#n_speaker polygon,#n_speaker ellipse,#n_speaker circle,#n_speaker text,#n_speaker line,#n_speaker polyline").each(function(){$(this).addClassSVG("c_Mostrar");});$("#n_speaker").toggle();}).on("touchend mouseout", function(e) {$("#n_speaker path,#n_speaker rect,#n_speaker polygon,#n_speaker ellipse,#n_speaker circle,#n_speaker text,#n_speaker line,#n_speaker polyline").each(function(){$(this).removeClassSVG("c_Mostrar");});$("#n_speaker").toggle();});
$("#g9").on("touchstart click",function(e) {if ($("#n_speaker").css("display")=="block"){$("#n_speaker").css("display","hidden");$("#n_speaker").hide();}else{$("#n_speaker").css("display","block");$("#n_speaker").show();}});
$("#g9").on("touchstart mouseover", function(e) {$("#gspeaker1 path,#gspeaker1 rect,#gspeaker1 polygon,#gspeaker1 ellipse,#gspeaker1 circle,#gspeaker1 text,#gspeaker1 line,#gspeaker1 polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#gspeaker1 path,#gspeaker1 rect,#gspeaker1 polygon,#gspeaker1 ellipse,#gspeaker1 circle,#gspeaker1 text,#gspeaker1 line,#gspeaker1 polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
$("#g9").on("touchstart mouseover", function(e) {$("#gspeaker2 path,#gspeaker2 rect,#gspeaker2 polygon,#gspeaker2 ellipse,#gspeaker2 circle,#gspeaker2 text,#gspeaker2 line,#gspeaker2 polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#gspeaker2 path,#gspeaker2 rect,#gspeaker2 polygon,#gspeaker2 ellipse,#gspeaker2 circle,#gspeaker2 text,#gspeaker2 line,#gspeaker2 polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
$("#g10").on("touchstart mouseover", function(e) {$("#n_monitor path,#n_monitor rect,#n_monitor polygon,#n_monitor ellipse,#n_monitor circle,#n_monitor text,#n_monitor line,#n_monitor polyline").each(function(){$(this).addClassSVG("c_Mostrar");});$("#n_monitor").toggle();}).on("touchend mouseout", function(e) {$("#n_monitor path,#n_monitor rect,#n_monitor polygon,#n_monitor ellipse,#n_monitor circle,#n_monitor text,#n_monitor line,#n_monitor polyline").each(function(){$(this).removeClassSVG("c_Mostrar");});$("#n_monitor").toggle();});
$("#g10").on("touchstart click",function(e) {if ($("#n_monitor").css("display")=="block"){$("#n_monitor").css("display","hidden");$("#n_monitor").hide();}else{$("#n_monitor").css("display","block");$("#n_monitor").show();}});
$("#g10").on("touchstart mouseover", function(e) {$("#gmonitor path,#gmonitor rect,#gmonitor polygon,#gmonitor ellipse,#gmonitor circle,#gmonitor text,#gmonitor line,#gmonitor polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#gmonitor path,#gmonitor rect,#gmonitor polygon,#gmonitor ellipse,#gmonitor circle,#gmonitor text,#gmonitor line,#gmonitor polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
$("#g11").on("touchstart mouseover", function(e) {$("#n_system path,#n_system rect,#n_system polygon,#n_system ellipse,#n_system circle,#n_system text,#n_system line,#n_system polyline").each(function(){$(this).addClassSVG("c_Mostrar");});$("#n_system").toggle();}).on("touchend mouseout", function(e) {$("#n_system path,#n_system rect,#n_system polygon,#n_system ellipse,#n_system circle,#n_system text,#n_system line,#n_system polyline").each(function(){$(this).removeClassSVG("c_Mostrar");});$("#n_system").toggle();});
$("#g11").on("touchstart click",function(e) {if ($("#n_system").css("display")=="block"){$("#n_system").css("display","hidden");$("#n_system").hide();}else{$("#n_system").css("display","block");$("#n_system").show();}});
$("#g11").on("touchstart mouseover", function(e) {$("#system").addClassSVG("c_Resalta");}).on("touchend mouseout", function(e) {$("#system").removeClassSVG("c_Resalta");});
$("#g12").on("touchstart mouseover", function(e) {$("#n_app path,#n_app rect,#n_app polygon,#n_app ellipse,#n_app circle,#n_app text,#n_app line,#n_app polyline").each(function(){$(this).addClassSVG("c_Mostrar");});$("#n_app").toggle();}).on("touchend mouseout", function(e) {$("#n_app path,#n_app rect,#n_app polygon,#n_app ellipse,#n_app circle,#n_app text,#n_app line,#n_app polyline").each(function(){$(this).removeClassSVG("c_Mostrar");});$("#n_app").toggle();});
$("#g12").on("touchstart click",function(e) {if ($("#n_app").css("display")=="block"){$("#n_app").css("display","hidden");$("#n_app").hide();}else{$("#n_app").css("display","block");$("#n_app").show();}});
$("#g12").on("touchstart mouseover", function(e) {$("#app path,#app rect,#app polygon,#app ellipse,#app circle,#app text,#app line,#app polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#app path,#app rect,#app polygon,#app ellipse,#app circle,#app text,#app line,#app polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
$("#g13").on("touchstart mouseover", function(e) {$("#n_keyboard path,#n_keyboard rect,#n_keyboard polygon,#n_keyboard ellipse,#n_keyboard circle,#n_keyboard text,#n_keyboard line,#n_keyboard polyline").each(function(){$(this).addClassSVG("c_Mostrar");});$("#n_keyboard").toggle();}).on("touchend mouseout", function(e) {$("#n_keyboard path,#n_keyboard rect,#n_keyboard polygon,#n_keyboard ellipse,#n_keyboard circle,#n_keyboard text,#n_keyboard line,#n_keyboard polyline").each(function(){$(this).removeClassSVG("c_Mostrar");});$("#n_keyboard").toggle();});
$("#g13").on("touchstart click",function(e) {if ($("#n_keyboard").css("display")=="block"){$("#n_keyboard").css("display","hidden");$("#n_keyboard").hide();}else{$("#n_keyboard").css("display","block");$("#n_keyboard").show();}});
$("#g13").on("touchstart mouseover", function(e) {$("#gkeyboard path,#gkeyboard rect,#gkeyboard polygon,#gkeyboard ellipse,#gkeyboard circle,#gkeyboard text,#gkeyboard line,#gkeyboard polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#gkeyboard path,#gkeyboard rect,#gkeyboard polygon,#gkeyboard ellipse,#gkeyboard circle,#gkeyboard text,#gkeyboard line,#gkeyboard polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
$("#g14").on("touchstart mouseover", function(e) {$("#n_mouse path,#n_mouse rect,#n_mouse polygon,#n_mouse ellipse,#n_mouse circle,#n_mouse text,#n_mouse line,#n_mouse polyline").each(function(){$(this).addClassSVG("c_Mostrar");});$("#n_mouse").toggle();}).on("touchend mouseout", function(e) {$("#n_mouse path,#n_mouse rect,#n_mouse polygon,#n_mouse ellipse,#n_mouse circle,#n_mouse text,#n_mouse line,#n_mouse polyline").each(function(){$(this).removeClassSVG("c_Mostrar");});$("#n_mouse").toggle();});
$("#g14").on("touchstart click",function(e) {if ($("#n_mouse").css("display")=="block"){$("#n_mouse").css("display","hidden");$("#n_mouse").hide();}else{$("#n_mouse").css("display","block");$("#n_mouse").show();}});
$("#g14").on("touchstart mouseover", function(e) {$("#mouse path,#mouse rect,#mouse polygon,#mouse ellipse,#mouse circle,#mouse text,#mouse line,#mouse polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#mouse path,#mouse rect,#mouse polygon,#mouse ellipse,#mouse circle,#mouse text,#mouse line,#mouse polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
$("#g15").on("touchstart mouseover", function(e) {$("#g1412-9 path,#g1412-9 rect,#g1412-9 polygon,#g1412-9 ellipse,#g1412-9 circle,#g1412-9 text,#g1412-9 line,#g1412-9 polyline").each(function(){$(this).addClassSVG("c_Mostrar");});$("#g1412-9").toggle();}).on("touchend mouseout", function(e) {$("#g1412-9 path,#g1412-9 rect,#g1412-9 polygon,#g1412-9 ellipse,#g1412-9 circle,#g1412-9 text,#g1412-9 line,#g1412-9 polyline").each(function(){$(this).removeClassSVG("c_Mostrar");});$("#g1412-9").toggle();});
$("#g15").on("touchstart click",function(e) {if ($("#g1412-9").css("display")=="block"){$("#g1412-9").css("display","hidden");$("#g1412-9").hide();}else{$("#g1412-9").css("display","block");$("#g1412-9").show();}});
$("#g15").on("touchstart mouseover", function(e) {$("#g4992 path,#g4992 rect,#g4992 polygon,#g4992 ellipse,#g4992 circle,#g4992 text,#g4992 line,#g4992 polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#g4992 path,#g4992 rect,#g4992 polygon,#g4992 ellipse,#g4992 circle,#g4992 text,#g4992 line,#g4992 polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
$("#g16").on("touchstart mouseover", function(e) {$("#n_printer path,#n_printer rect,#n_printer polygon,#n_printer ellipse,#n_printer circle,#n_printer text,#n_printer line,#n_printer polyline").each(function(){$(this).addClassSVG("c_Mostrar");});$("#n_printer").toggle();}).on("touchend mouseout", function(e) {$("#n_printer path,#n_printer rect,#n_printer polygon,#n_printer ellipse,#n_printer circle,#n_printer text,#n_printer line,#n_printer polyline").each(function(){$(this).removeClassSVG("c_Mostrar");});$("#n_printer").toggle();});
$("#g16").on("touchstart click",function(e) {if ($("#n_printer").css("display")=="block"){$("#n_printer").css("display","hidden");$("#n_printer").hide();}else{$("#n_printer").css("display","block");$("#n_printer").show();}});
$("#g16").on("touchstart mouseover", function(e) {$("#gprinter path,#gprinter rect,#gprinter polygon,#gprinter ellipse,#gprinter circle,#gprinter text,#gprinter line,#gprinter polyline").each(function(){$(this).addClassSVG("c_Resalta");});}).on("touchend mouseout", function(e) {$("#gprinter path,#gprinter rect,#gprinter polygon,#gprinter ellipse,#gprinter circle,#gprinter text,#gprinter line,#gprinter polyline").each(function(){$(this).removeClassSVG("c_Resalta");});});
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);};})();
$.fn.clickToggle = function(func1, func2) {var funcs = [func1, func2];this.data("toggleclicked",0);this.click(function() {var data=$(this).data();var tc=data.toggleclicked;$.proxy(funcs[tc], this)();data.toggleclicked = (tc + 1) % 2;}); return this;};
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();};
