window.onhashchange = function() { var s = window.location.href; var string_escapegame_top = "escape-game-top"; var string_guide_escape_game = "guide-escape-game"; if(s.indexOf("#") > -1) { if ((s.indexOf(string_escapegame_top) !== -1)||(s.indexOf(string_guide_escape_game) !== -1)) { } else { var finale = s.substr(s.lastIndexOf('#') + 1); if (finale!="!") { document.getElementById("body").style.overflow = "hidden"; document.getElementById(finale).style.overflow = "auto"; document.getElementById(finale+"p1").style.position = "absolute"; } else { document.getElementById("body").style.overflow = "initial"; var url_to_use = window.location.href; var reload_addr= url_to_use.substr(0, url_to_use.indexOf('#')); window.location.href = reload_addr; } } } if (!document.getElementById("map")){ } else { initMap(); } } var s = window.location.href; var string_escapegame_top = "escape-game-top"; var string_guide_escape_game = "guide-escape-game"; if(s.indexOf("#") > -1) { if ((s.indexOf(string_escapegame_top) !== -1)||(s.indexOf(string_guide_escape_game) !== -1)) { } else { var finale = s.substr(s.lastIndexOf('#') + 1); if (finale!="!") { document.getElementById("body").style.overflow = "hidden"; document.getElementById(finale).style.overflow = "auto"; document.getElementById(finale+"p1").style.position = "absolute"; } else { document.getElementById("body").style.overflow = "initial"; var url_to_use = window.location.href; var reload_addr= url_to_use.substr(0, url_to_use.indexOf('#')); window.location.href = reload_addr; } } }