function EatoutDetail(){this.map=new Object();this.mgr=new Object();this.adder=new Object()}var eatoutdetail;$(document).ready(function(){$("#map_eatoutdetail").data("lat",LAT);$("#map_eatoutdetail").data("lng",LNG);eatoutdetail=new EatoutDetail();if(GBrowserIsCompatible()){eatoutdetail.map=new GMap2(document.getElementById("map_eatoutdetail"));eatoutdetail.map.setCenter(new GLatLng($("#map_eatoutdetail").data("lat"),$("#map_eatoutdetail").data("lng")),15);var d=new GControlPosition(G_ANCHOR_TOP_RIGHT,new GSize(10,10));eatoutdetail.map.addControl(new GSmallZoomControl3D(),d);var c={borderPadding:50,maxZoom:17,trackMarkers:true};eatoutdetail.mgr=new MarkerManager(eatoutdetail.map,c);var a=new GIcon(G_DEFAULT_ICON);a.image="/static/images/gicons/food.png";a.iconSize=new GSize(29,27);a.shadow="";a.iconAnchor=new GPoint(14,25);var b={icon:a,draggable:false};eatoutdetail.adder=new GMarker(new GLatLng($("#map_eatoutdetail").data("lat"),$("#map_eatoutdetail").data("lng")),b);eatoutdetail.adder.can_see=true;eatoutdetail.mgr.addMarker(eatoutdetail.adder,0,17)}$("#show_map").bind("click",function(){if($(this).hasClass("ON")){$(this).removeClass("ON").addClass("OFF");$("#map_eatoutdetail").animate({height:"0px"},"normal",function(){$("#map_eatoutdetail").hide()});$(this).html("View On Map")}else{$(this).removeClass("OFF").addClass("ON");$("#map_eatoutdetail").animate({height:"200px"},"normal");$(this).html("Hide Map")}});$("#add_review").hide();$("#first_review_link, #write_review_link").toggle(function(){$("#add_review").show()},function(){$("#add_review").hide()});$("#add_photo").hide();$("#add_photo_link").toggle(function(){$("#add_photo").show()},function(){$("#add_photo").hide()})});function add_favorite_to_favlist(a,c,b){data=new Object();data.id=c;data.link=document.URL;data.title=$("#top_heading").children("h1").text();data.type=b;data.photo="";show_favorites(data);UpdateFavoritesNumber();$("#favorites_dd").trigger("click");$("#favorites #myfavs").children("div").removeClass("hoverclass");$("#myfav-"+c).addClass("hoverclass");$("#myfavs").scrollTop(0);return false};
