var map = null;
    var geocoder = null;

    function initialize() {
      if (GBrowserIsCompatible()) {
        if ( document.getElementById("map_canvas") ) {
          map = new GMap2(document.getElementById("map_canvas"));
          map.setCenter(new GLatLng(37.4419, -122.1419), 13);
          geocoder = new GClientGeocoder();
          map.setCenter(new GLatLng(0, 0), 15);
          map.addControl(new GSmallMapControl());
          map.addControl(new GMapTypeControl());
          mapdisplay();
        }
      }
    }

    function showAddress(address, hname, hlat, hlon) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) { var point = new GLatLng( hlat, hlon ); } ;
            map.setCenter(point, 15);
            var marker = new GMarker(point);
            map.addOverlay(marker);
            marker.openInfoWindowHtml("<b>"+hname+"</b><br>"+address); 
          }
        );
      }
    }

