var geocoder=null;var icons=[];var map=null;var oAjaxMapReq;google.load("maps","2.x");function GoogleMap(b){var c=eval(b);var d={'G_NORMAL_MAP':1,'G_SATELLITE_MAP':1,'G_HYBRID_MAP':1};if(typeof(c)!="object"){throw new Error("GoogleMap constructor requires exactly one argument, a valid JSON string.");}if(typeof(c.id)=="undefined"){throw new Error("GoogleMap constructor requires exactly one argument, a valid JSON string, which must include a value for the \"id\" property.");}if(typeof(c.address)=="undefined"&&(typeof(c.lng)=="undefined"||typeof(c.lat)=="undefined")){throw new Error("GoogleMap constructor requires exactly one argument, a valid JSON string, "+"which must include either a valid map location for \"address\" or "+"valid numeric values for the \"lat\" and \"lng\" properties "+"corresponding to latitude and longitude, respectively.");}var f=document.getElementById(c.id);var g=(typeof(c.width)=="undefined"?500:c.width);var h=(typeof(c.height)=="undefined"?300:c.height);try{f.style.width=g+"px";f.style.height=h+"px"}catch(e){}this.initialize=function(){map=new GMap2(document.getElementById("map_canvas"));geocoder=new GClientGeocoder();if(c.address){showAddress(c.address)}else{showAddress("New York, NY, US");map.setCenter(new google.maps.LatLng(c.lat,c.lng),11)}map.setMapType(eval(c.type));map.disableDragging();map.disableInfoWindow();map.disableDoubleClickZoom();map.disableContinuousZoom();map.disableGoogleBar();var a=new GIcon();a.image="/templates/default/_images/reddot.png";a.iconSize=new GSize(32,32);a.shadow="/templates/default/_images/reddotshadow.png";a.shadowSize=new GSize(59,32);a.iconAnchor=new GPoint(16,32);a.infoWindowAnchor=new GPoint(16,32);icons[0]=a}}