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

