var MAP={init:function(){MAP.wwLayer=$("#worldWideLayer");MAP.wwMapLink=$("#btWorldwide");MAP.wwMapLink.click(function(){if($("#worldWideLayer").hasClass("mapReady")){$("#worldWideLayer").removeClass("mapReady");}else{$("#worldWideLayer").addClass("mapReady");}$("#countrySelect").toggleClass("mapOpen");MAP.showContinent(0);return false;});MAP.wwCloseLink=$("#closeWorldLayer");MAP.wwCloseLink.click(function(){MAP.closeWorldLayer();return false;});MAP.wwContinents=$("#mapWorldmap").children(".continentShape");MAP.wwContinentsCountries=$("#wlCountries").children("div.countryListLayer");MAP.wwContinentLinks=MAP.wwLayer.find(".continentLink");MAP.wwCountryLayerLinks=MAP.wwContinentsCountries.children("ul.countryList").children("li").children("a");MAP.wwContinentLinks.each(function(){var a=this.id.split("_")[1];$(this).click(function(){MAP.showContinent(a);return false;});MAP.wwContinents.filter("#continent_"+a).hover(function(){MAP.hoverContinent(a);},function(){MAP.hoverContinent(0);});MAP.wwContinents.filter("#continent_"+a).click(function(){MAP.showContinent(a);return false;});});MAP.wwCountryLayerLinks.each(function(){$(this).click(function(){MAP.wwLayer.find("ul.countryMoreLinks").hide();MAP.wwLayer.find("a.selectedCountry").removeClass("selectedCountry");$(this).siblings("ul.countryMoreLinks").toggle();$(this).toggleClass("selectedCountry");return false;});});},hoverContinent:function(b){var a="/syn/assets/img/map/map"+b+".gif";$("#map_hover").attr("src",a);},showContinent:function(b){var a="/syn/assets/img/map/map"+b+".gif";$("#map_active").attr("src",a);MAP.wwContinentsCountries.filter(".selectedLayer").removeClass("selectedLayer");$("#countries_"+b).addClass("selectedLayer");},closeWorldLayer:function(){$("#worldWideLayer").removeClass("mapReady");$("#countrySelect").removeClass("mapOpen");}};
