function load(address,text) {
	geocoder = new GClientGeocoder();
  if (GBrowserIsCompatible()) {
	  var map = new GMap2(document.getElementById("map"));
	  if (geocoder) {
		geocoder.getLatLng(
		  address,
		  function(point) {
			if (!point) {
			  alert(address + " not found");
			} else {
			  map.setCenter(point, 11);
			  map.addOverlay(createMarker(point,text));
			  map.addControl(new GSmallZoomControl());
			}
		  }
		);
	  }
  }
}

function createMarker(point,text) {
	var icon = new GIcon();
	icon.image = "http://labs.google.com/ridefinder/images/mm_20_green.png";
	icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";	icon.iconSize = new GSize(38, 26);
	icon.iconSize = new GSize(12, 20);
	icon.shadowSize = new GSize(22, 20);
	icon.iconAnchor = new GPoint(6, 20);	
	icon.infoWindowAnchor = new GPoint(5, 1);
	var marker = new GMarker(point, icon);
		GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml(text);
	});
	return marker;
}
