var mapLat="0",mapLng="0";var menu=[{element_expand:"map_expande",element_close:"map_close",element_content:"map_canvas"},{element_expand:"poi_expande",element_close:"poi_close",element_content:"poiListDiv"}];function toggleMenu(a){if($(menu[a].element_expand).style.display=="none"){$(menu[a].element_expand).show();$(menu[a].element_close).hide();$(menu[a].element_content).hide()}else{$(menu[a].element_expand).hide();$(menu[a].element_close).show();$(menu[a].element_content).show()}}function closeAllOtherMenus(b){for(var a=0;a<menu.length;a++){if(b!=a){document.getElementById(menu[a].element_expand).style.display="block";document.getElementById(menu[a].element_close).style.display="none";document.getElementById(menu[a].element_content).style.display="none"}}}function getCouponSpotlightContent(){if($("spotlightContent").innerHTML.blank()){$("spotlightLoading").show();new Ajax.Updater("spotlightContent","SpotlightCoupon.action",{asynchronous:true,evalScripts:true,onComplete:function(){$("spotlightLoading").hide()}})}}function getCouponSpotlightOtherPOIS(a,b){if($("poiListDiv").innerHTML.blank()){$("spotlightLoading").show();new Ajax.Updater("poiListDiv","SpotlightCouponOtherPOIS.action",{parameters:{couponId:a,poiId:b},asynchronous:true,evalScripts:true,onComplete:function(){$("spotlightLoading").hide()}})}}function changeLocationInMap(b,a){top.frames[0].initialize(b,a)}function notifyLoading(){changeLocationInMap(mapLat,mapLng)};
