function showAddress(address, geocoder, map) {
	geocoder.getLatLng(address, function(point) {
									if (!point) {
										alert(address + " not found");
									} else {
										//alert(point.lat());
										//alert(point.lng());
										map.setCenter(point, 15);
										var marker = new GMarker(point);
										map.addOverlay(marker);
										marker.openInfoWindowHtml("<p><strong>Suteishi Restaurant</strong></p><p>(212) 766-2344</p>" + address);
										GEvent.addListener(marker, "click", function() {
															marker.openInfoWindowHtml("<p><strong>Suteishi Restaurant</strong></p><p>(212) 766-2344</p>" + address);
										});
									}
    							});
}

function prepareMap() {
	if (GBrowserIsCompatible()) {
    	var gmap = new GMap2(document.getElementById("gmap"));
		var geocoder = new GClientGeocoder();
		var addr = "24 Peck Slip, New York, NY 10038";
		gmap.addControl(new GSmallZoomControl());
		showAddress(addr, geocoder, gmap);
    }
}

addLoadEvent(prepareMap);
addUnloadEvent(GUnload);