//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(){
$("#b_portugal").css("display","block");$("#b_portugal").hide();
$("#b_espana").css("display","block");$("#b_espana").hide();
$("#b_irlanda").css("display","block");$("#b_irlanda").hide();
$("#b_bretana").css("display","block");$("#b_bretana").hide();
$("#b_francia").css("display","block");$("#b_francia").hide();
$("#b_italia").css("display","block");$("#b_italia").hide();
$("#b_malta").css("display","block");$("#b_malta").hide();
$("#b_grecia").css("display","block");$("#b_grecia").hide();
$("#b_chipre").css("display","block");$("#b_chipre").hide();
$("#b_bulgaria").css("display","block");$("#b_bulgaria").hide();
$("#b_romania").css("display","block");$("#b_romania").hide();
$("#b_croacia").css("display","block");$("#b_croacia").hide();
$("#b_eslovenia").css("display","block");$("#b_eslovenia").hide();
$("#b_hungria").css("display","block");$("#b_hungria").hide();
$("#b_austria").css("display","block");$("#b_austria").hide();
$("#b_eslovaquia").css("display","block");$("#b_eslovaquia").hide();
$("#b_checa").css("display","block");$("#b_checa").hide();
$("#b_alemana").css("display","block");$("#b_alemana").hide();
$("#b_luxemburgo").css("display","block");$("#b_luxemburgo").hide();
$("#b_belxica").css("display","block");$("#b_belxica").hide();
$("#b_paisesbaixos").css("display","block");$("#b_paisesbaixos").hide();
$("#b_dinamarca").css("display","block");$("#b_dinamarca").hide();
$("#b_polonia").css("display","block");$("#b_polonia").hide();
$("#b_lituania").css("display","block");$("#b_lituania").hide();
$("#b_letonia").css("display","block");$("#b_letonia").hide();
$("#b_finlandia").css("display","block");$("#b_finlandia").hide();
$("#b_suecia").css("display","block");$("#b_suecia").hide();
$("#b_estonia").css("display","block");$("#b_estonia").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 207290 175047")});
$("svg").each(function () { $(this)[0].setAttribute("width", "710px") });
$("svg").each(function () { $(this)[0].setAttribute("height", "600px") });
$("#m_portugal").on("touchstart mouseover", function(e) {$("#m_portugal").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_portugal").removeClassSVG("c_resaltar");});
$("#m_portugal").on("touchstart mouseover", function(e) {$("#b_portugal path,#b_portugal rect,#b_portugal polygon,#b_portugal ellipse,#b_portugal circle,#b_portugal text,#b_portugal line,#b_portugal polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_portugal").toggle();}).on("touchend mouseout", function(e) {$("#b_portugal path,#b_portugal rect,#b_portugal polygon,#b_portugal ellipse,#b_portugal circle,#b_portugal text,#b_portugal line,#b_portugal polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_portugal").toggle();});
$("#m_espana").on("touchstart mouseover", function(e) {$("#m_espana path,#m_espana rect,#m_espana polygon,#m_espana ellipse,#m_espana circle,#m_espana text,#m_espana line,#m_espana polyline").each(function(){$(this).addClassSVG("c_resaltar");});}).on("touchend mouseout", function(e) {$("#m_espana path,#m_espana rect,#m_espana polygon,#m_espana ellipse,#m_espana circle,#m_espana text,#m_espana line,#m_espana polyline").each(function(){$(this).removeClassSVG("c_resaltar");});});
$("#m_espana").on("touchstart mouseover", function(e) {$("#b_espana path,#b_espana rect,#b_espana polygon,#b_espana ellipse,#b_espana circle,#b_espana text,#b_espana line,#b_espana polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_espana").toggle();}).on("touchend mouseout", function(e) {$("#b_espana path,#b_espana rect,#b_espana polygon,#b_espana ellipse,#b_espana circle,#b_espana text,#b_espana line,#b_espana polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_espana").toggle();});
$("#m_chipre").on("touchstart mouseover", function(e) {$("#m_chipre").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_chipre").removeClassSVG("c_resaltar");});
$("#m_chipre").on("touchstart mouseover", function(e) {$("#b_chipre path,#b_chipre rect,#b_chipre polygon,#b_chipre ellipse,#b_chipre circle,#b_chipre text,#b_chipre line,#b_chipre polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_chipre").toggle();}).on("touchend mouseout", function(e) {$("#b_chipre path,#b_chipre rect,#b_chipre polygon,#b_chipre ellipse,#b_chipre circle,#b_chipre text,#b_chipre line,#b_chipre polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_chipre").toggle();});
$("#m_croacia").on("touchstart mouseover", function(e) {$("#m_croacia").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_croacia").removeClassSVG("c_resaltar");});
$("#m_croacia").on("touchstart mouseover", function(e) {$("#b_croacia path,#b_croacia rect,#b_croacia polygon,#b_croacia ellipse,#b_croacia circle,#b_croacia text,#b_croacia line,#b_croacia polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_croacia").toggle();}).on("touchend mouseout", function(e) {$("#b_croacia path,#b_croacia rect,#b_croacia polygon,#b_croacia ellipse,#b_croacia circle,#b_croacia text,#b_croacia line,#b_croacia polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_croacia").toggle();});
$("#m_belxica").on("touchstart mouseover", function(e) {$("#m_belxica").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_belxica").removeClassSVG("c_resaltar");});
$("#m_belxica").on("touchstart mouseover", function(e) {$("#b_belxica path,#b_belxica rect,#b_belxica polygon,#b_belxica ellipse,#b_belxica circle,#b_belxica text,#b_belxica line,#b_belxica polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_belxica").toggle();}).on("touchend mouseout", function(e) {$("#b_belxica path,#b_belxica rect,#b_belxica polygon,#b_belxica ellipse,#b_belxica circle,#b_belxica text,#b_belxica line,#b_belxica polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_belxica").toggle();});
$("#m_italia").on("touchstart mouseover", function(e) {$("#m_italia").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_italia").removeClassSVG("c_resaltar");});
$("#m_italia").on("touchstart mouseover", function(e) {$("#b_italia path,#b_italia rect,#b_italia polygon,#b_italia ellipse,#b_italia circle,#b_italia text,#b_italia line,#b_italia polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_italia").toggle();}).on("touchend mouseout", function(e) {$("#b_italia path,#b_italia rect,#b_italia polygon,#b_italia ellipse,#b_italia circle,#b_italia text,#b_italia line,#b_italia polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_italia").toggle();});
$("#m_polonia").on("touchstart mouseover", function(e) {$("#m_polonia").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_polonia").removeClassSVG("c_resaltar");});
$("#m_polonia").on("touchstart mouseover", function(e) {$("#b_polonia path,#b_polonia rect,#b_polonia polygon,#b_polonia ellipse,#b_polonia circle,#b_polonia text,#b_polonia line,#b_polonia polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_polonia").toggle();}).on("touchend mouseout", function(e) {$("#b_polonia path,#b_polonia rect,#b_polonia polygon,#b_polonia ellipse,#b_polonia circle,#b_polonia text,#b_polonia line,#b_polonia polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_polonia").toggle();});
$("#m_finlandia").on("touchstart mouseover", function(e) {$("#m_finlandia").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_finlandia").removeClassSVG("c_resaltar");});
$("#m_finlandia").on("touchstart mouseover", function(e) {$("#b_finlandia path,#b_finlandia rect,#b_finlandia polygon,#b_finlandia ellipse,#b_finlandia circle,#b_finlandia text,#b_finlandia line,#b_finlandia polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_finlandia").toggle();}).on("touchend mouseout", function(e) {$("#b_finlandia path,#b_finlandia rect,#b_finlandia polygon,#b_finlandia ellipse,#b_finlandia circle,#b_finlandia text,#b_finlandia line,#b_finlandia polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_finlandia").toggle();});
$("#m_alemana").on("touchstart mouseover", function(e) {$("#m_alemana").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_alemana").removeClassSVG("c_resaltar");});
$("#m_alemana").on("touchstart mouseover", function(e) {$("#b_alemana path,#b_alemana rect,#b_alemana polygon,#b_alemana ellipse,#b_alemana circle,#b_alemana text,#b_alemana line,#b_alemana polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_alemana").toggle();}).on("touchend mouseout", function(e) {$("#b_alemana path,#b_alemana rect,#b_alemana polygon,#b_alemana ellipse,#b_alemana circle,#b_alemana text,#b_alemana line,#b_alemana polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_alemana").toggle();});
$("#m_suecia").on("touchstart mouseover", function(e) {$("#m_suecia").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_suecia").removeClassSVG("c_resaltar");});
$("#m_suecia").on("touchstart mouseover", function(e) {$("#b_suecia path,#b_suecia rect,#b_suecia polygon,#b_suecia ellipse,#b_suecia circle,#b_suecia text,#b_suecia line,#b_suecia polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_suecia").toggle();}).on("touchend mouseout", function(e) {$("#b_suecia path,#b_suecia rect,#b_suecia polygon,#b_suecia ellipse,#b_suecia circle,#b_suecia text,#b_suecia line,#b_suecia polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_suecia").toggle();});
$("#m_irlanda").on("touchstart mouseover", function(e) {$("#m_irlanda").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_irlanda").removeClassSVG("c_resaltar");});
$("#m_irlanda").on("touchstart mouseover", function(e) {$("#b_irlanda path,#b_irlanda rect,#b_irlanda polygon,#b_irlanda ellipse,#b_irlanda circle,#b_irlanda text,#b_irlanda line,#b_irlanda polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_irlanda").toggle();}).on("touchend mouseout", function(e) {$("#b_irlanda path,#b_irlanda rect,#b_irlanda polygon,#b_irlanda ellipse,#b_irlanda circle,#b_irlanda text,#b_irlanda line,#b_irlanda polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_irlanda").toggle();});
$("#m_austria").on("touchstart mouseover", function(e) {$("#m_austria").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_austria").removeClassSVG("c_resaltar");});
$("#m_austria").on("touchstart mouseover", function(e) {$("#b_austria path,#b_austria rect,#b_austria polygon,#b_austria ellipse,#b_austria circle,#b_austria text,#b_austria line,#b_austria polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_austria").toggle();}).on("touchend mouseout", function(e) {$("#b_austria path,#b_austria rect,#b_austria polygon,#b_austria ellipse,#b_austria circle,#b_austria text,#b_austria line,#b_austria polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_austria").toggle();});
$("#m_checa").on("touchstart mouseover", function(e) {$("#m_checa").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_checa").removeClassSVG("c_resaltar");});
$("#m_checa").on("touchstart mouseover", function(e) {$("#b_checa path,#b_checa rect,#b_checa polygon,#b_checa ellipse,#b_checa circle,#b_checa text,#b_checa line,#b_checa polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_checa").toggle();}).on("touchend mouseout", function(e) {$("#b_checa path,#b_checa rect,#b_checa polygon,#b_checa ellipse,#b_checa circle,#b_checa text,#b_checa line,#b_checa polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_checa").toggle();});
$("#m_eslovaquia").on("touchstart mouseover", function(e) {$("#m_eslovaquia").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_eslovaquia").removeClassSVG("c_resaltar");});
$("#m_eslovaquia").on("touchstart mouseover", function(e) {$("#b_eslovaquia path,#b_eslovaquia rect,#b_eslovaquia polygon,#b_eslovaquia ellipse,#b_eslovaquia circle,#b_eslovaquia text,#b_eslovaquia line,#b_eslovaquia polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_eslovaquia").toggle();}).on("touchend mouseout", function(e) {$("#b_eslovaquia path,#b_eslovaquia rect,#b_eslovaquia polygon,#b_eslovaquia ellipse,#b_eslovaquia circle,#b_eslovaquia text,#b_eslovaquia line,#b_eslovaquia polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_eslovaquia").toggle();});
$("#m_hungria").on("touchstart mouseover", function(e) {$("#m_hungria").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_hungria").removeClassSVG("c_resaltar");});
$("#m_hungria").on("touchstart mouseover", function(e) {$("#b_hungria path,#b_hungria rect,#b_hungria polygon,#b_hungria ellipse,#b_hungria circle,#b_hungria text,#b_hungria line,#b_hungria polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_hungria").toggle();}).on("touchend mouseout", function(e) {$("#b_hungria path,#b_hungria rect,#b_hungria polygon,#b_hungria ellipse,#b_hungria circle,#b_hungria text,#b_hungria line,#b_hungria polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_hungria").toggle();});
$("#m_lituania").on("touchstart mouseover", function(e) {$("#m_lituania").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_lituania").removeClassSVG("c_resaltar");});
$("#m_lituania").on("touchstart mouseover", function(e) {$("#b_lituania path,#b_lituania rect,#b_lituania polygon,#b_lituania ellipse,#b_lituania circle,#b_lituania text,#b_lituania line,#b_lituania polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_lituania").toggle();}).on("touchend mouseout", function(e) {$("#b_lituania path,#b_lituania rect,#b_lituania polygon,#b_lituania ellipse,#b_lituania circle,#b_lituania text,#b_lituania line,#b_lituania polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_lituania").toggle();});
$("#m_letonia").on("touchstart mouseover", function(e) {$("#m_letonia").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_letonia").removeClassSVG("c_resaltar");});
$("#m_letonia").on("touchstart mouseover", function(e) {$("#b_letonia path,#b_letonia rect,#b_letonia polygon,#b_letonia ellipse,#b_letonia circle,#b_letonia text,#b_letonia line,#b_letonia polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_letonia").toggle();}).on("touchend mouseout", function(e) {$("#b_letonia path,#b_letonia rect,#b_letonia polygon,#b_letonia ellipse,#b_letonia circle,#b_letonia text,#b_letonia line,#b_letonia polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_letonia").toggle();});
$("#m_romania").on("touchstart mouseover", function(e) {$("#m_romania").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_romania").removeClassSVG("c_resaltar");});
$("#m_romania").on("touchstart mouseover", function(e) {$("#b_romania path,#b_romania rect,#b_romania polygon,#b_romania ellipse,#b_romania circle,#b_romania text,#b_romania line,#b_romania polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_romania").toggle();}).on("touchend mouseout", function(e) {$("#b_romania path,#b_romania rect,#b_romania polygon,#b_romania ellipse,#b_romania circle,#b_romania text,#b_romania line,#b_romania polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_romania").toggle();});
$("#m_bulgaria").on("touchstart mouseover", function(e) {$("#m_bulgaria").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_bulgaria").removeClassSVG("c_resaltar");});
$("#m_bulgaria").on("touchstart mouseover", function(e) {$("#b_bulgaria path,#b_bulgaria rect,#b_bulgaria polygon,#b_bulgaria ellipse,#b_bulgaria circle,#b_bulgaria text,#b_bulgaria line,#b_bulgaria polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_bulgaria").toggle();}).on("touchend mouseout", function(e) {$("#b_bulgaria path,#b_bulgaria rect,#b_bulgaria polygon,#b_bulgaria ellipse,#b_bulgaria circle,#b_bulgaria text,#b_bulgaria line,#b_bulgaria polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_bulgaria").toggle();});
$("#m_estonia").on("touchstart mouseover", function(e) {$("#m_estonia").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_estonia").removeClassSVG("c_resaltar");});
$("#m_estonia").on("touchstart mouseover", function(e) {$("#b_estonia path,#b_estonia rect,#b_estonia polygon,#b_estonia ellipse,#b_estonia circle,#b_estonia text,#b_estonia line,#b_estonia polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_estonia").toggle();}).on("touchend mouseout", function(e) {$("#b_estonia path,#b_estonia rect,#b_estonia polygon,#b_estonia ellipse,#b_estonia circle,#b_estonia text,#b_estonia line,#b_estonia polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_estonia").toggle();});
$("#m_luxemburgo").on("touchstart mouseover", function(e) {$("#m_luxemburgo").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_luxemburgo").removeClassSVG("c_resaltar");});
$("#m_luxemburgo").on("touchstart mouseover", function(e) {$("#b_luxemburgo path,#b_luxemburgo rect,#b_luxemburgo polygon,#b_luxemburgo ellipse,#b_luxemburgo circle,#b_luxemburgo text,#b_luxemburgo line,#b_luxemburgo polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_luxemburgo").toggle();}).on("touchend mouseout", function(e) {$("#b_luxemburgo path,#b_luxemburgo rect,#b_luxemburgo polygon,#b_luxemburgo ellipse,#b_luxemburgo circle,#b_luxemburgo text,#b_luxemburgo line,#b_luxemburgo polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_luxemburgo").toggle();});
$("#m_francia").on("touchstart mouseover", function(e) {$("#m_francia").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_francia").removeClassSVG("c_resaltar");});
$("#m_francia").on("touchstart mouseover", function(e) {$("#b_francia path,#b_francia rect,#b_francia polygon,#b_francia ellipse,#b_francia circle,#b_francia text,#b_francia line,#b_francia polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_francia").toggle();}).on("touchend mouseout", function(e) {$("#b_francia path,#b_francia rect,#b_francia polygon,#b_francia ellipse,#b_francia circle,#b_francia text,#b_francia line,#b_francia polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_francia").toggle();});
$("#m_paisesbaixos").on("touchstart mouseover", function(e) {$("#m_paisesbaixos").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_paisesbaixos").removeClassSVG("c_resaltar");});
$("#m_paisesbaixos").on("touchstart mouseover", function(e) {$("#b_paisesbaixos path,#b_paisesbaixos rect,#b_paisesbaixos polygon,#b_paisesbaixos ellipse,#b_paisesbaixos circle,#b_paisesbaixos text,#b_paisesbaixos line,#b_paisesbaixos polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_paisesbaixos").toggle();}).on("touchend mouseout", function(e) {$("#b_paisesbaixos path,#b_paisesbaixos rect,#b_paisesbaixos polygon,#b_paisesbaixos ellipse,#b_paisesbaixos circle,#b_paisesbaixos text,#b_paisesbaixos line,#b_paisesbaixos polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_paisesbaixos").toggle();});
$("#m_eslovenia").on("touchstart mouseover", function(e) {$("#m_eslovenia").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_eslovenia").removeClassSVG("c_resaltar");});
$("#m_eslovenia").on("touchstart mouseover", function(e) {$("#b_eslovenia path,#b_eslovenia rect,#b_eslovenia polygon,#b_eslovenia ellipse,#b_eslovenia circle,#b_eslovenia text,#b_eslovenia line,#b_eslovenia polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_eslovenia").toggle();}).on("touchend mouseout", function(e) {$("#b_eslovenia path,#b_eslovenia rect,#b_eslovenia polygon,#b_eslovenia ellipse,#b_eslovenia circle,#b_eslovenia text,#b_eslovenia line,#b_eslovenia polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_eslovenia").toggle();});
$("#m_dinamarca").on("touchstart mouseover", function(e) {$("#m_dinamarca").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_dinamarca").removeClassSVG("c_resaltar");});
$("#m_dinamarca").on("touchstart mouseover", function(e) {$("#b_dinamarca path,#b_dinamarca rect,#b_dinamarca polygon,#b_dinamarca ellipse,#b_dinamarca circle,#b_dinamarca text,#b_dinamarca line,#b_dinamarca polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_dinamarca").toggle();}).on("touchend mouseout", function(e) {$("#b_dinamarca path,#b_dinamarca rect,#b_dinamarca polygon,#b_dinamarca ellipse,#b_dinamarca circle,#b_dinamarca text,#b_dinamarca line,#b_dinamarca polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_dinamarca").toggle();});
$("#m_malta").on("touchstart mouseover", function(e) {$("#m_malta").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_malta").removeClassSVG("c_resaltar");});
$("#m_malta").on("touchstart mouseover", function(e) {$("#b_malta path,#b_malta rect,#b_malta polygon,#b_malta ellipse,#b_malta circle,#b_malta text,#b_malta line,#b_malta polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_malta").toggle();}).on("touchend mouseout", function(e) {$("#b_malta path,#b_malta rect,#b_malta polygon,#b_malta ellipse,#b_malta circle,#b_malta text,#b_malta line,#b_malta polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_malta").toggle();});
$("#m_grecia").on("touchstart mouseover", function(e) {$("#m_grecia").addClassSVG("c_resaltar");}).on("touchend mouseout", function(e) {$("#m_grecia").removeClassSVG("c_resaltar");});
$("#m_grecia").on("touchstart mouseover", function(e) {$("#b_grecia path,#b_grecia rect,#b_grecia polygon,#b_grecia ellipse,#b_grecia circle,#b_grecia text,#b_grecia line,#b_grecia polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_grecia").toggle();}).on("touchend mouseout", function(e) {$("#b_grecia path,#b_grecia rect,#b_grecia polygon,#b_grecia ellipse,#b_grecia circle,#b_grecia text,#b_grecia line,#b_grecia polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_grecia").toggle();});
$("#m_bretana").on("touchstart mouseover", function(e) {$("#m_bretana path,#m_bretana rect,#m_bretana polygon,#m_bretana ellipse,#m_bretana circle,#m_bretana text,#m_bretana line,#m_bretana polyline").each(function(){$(this).addClassSVG("c_resaltar");});}).on("touchend mouseout", function(e) {$("#m_bretana path,#m_bretana rect,#m_bretana polygon,#m_bretana ellipse,#m_bretana circle,#m_bretana text,#m_bretana line,#m_bretana polyline").each(function(){$(this).removeClassSVG("c_resaltar");});});
$("#m_bretana").on("touchstart mouseover", function(e) {$("#b_bretana path,#b_bretana rect,#b_bretana polygon,#b_bretana ellipse,#b_bretana circle,#b_bretana text,#b_bretana line,#b_bretana polyline").each(function(){$(this).addClassSVG("c_mostrar");});$("#b_bretana").toggle();}).on("touchend mouseout", function(e) {$("#b_bretana path,#b_bretana rect,#b_bretana polygon,#b_bretana ellipse,#b_bretana circle,#b_bretana text,#b_bretana line,#b_bretana polyline").each(function(){$(this).removeClassSVG("c_mostrar");});$("#b_bretana").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();};
