 var map = null;
    var geocoder = null;
    function initialize(address) {
    if(document.getElementById('map_canvas'))
    {
	      if (GBrowserIsCompatible())
	      {
	        map = new GMap2(document.getElementById("map_canvas"));
	        //map.setCenter(new GLatLng(37.4419, -122.1419), 1);
	        geocoder = new GClientGeocoder();
	      }
	      showAddress(address);
      }
    }

    function showAddress(address)
    {

    if(document.getElementById('map_canvas'))
    {
	      if (geocoder)
	      {
	        geocoder.getLatLng(
	          address,
	          function(point) {
	            if (!point) {
	              //alert(address + " not found");
	            } else {
	              map.setCenter(point, 12);
	              var marker = new GMarker(point, {draggable: true});
	              map.addOverlay(marker);
	              map.getContainer().style.overflow="hidden";
	              GEvent.addListener(marker, "dragend", function() {
	                marker.openInfoWindowHtml(marker.getLatLng().toUrlValue(6));
	              });
	              GEvent.addListener(marker, "click", function() {
	                //marker.openInfoWindowHtml(marker.getLatLng().toUrlValue(6));
	              });
		      GEvent.trigger(marker, "click");
	            }
	          }
	        );
	      }
      }
    }

