	var map = null;
    var geocoder = null;

    function GoogleMapsLoad(id,geocode,zoom,view_type) {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById(id));
        map.setCenter(new GLatLng(geocode),zoom,view_type);
				map.addControl(new GMapTypeControl());
				map.addControl(new GSmallZoomControl());
        geocoder = new GClientGeocoder();
      }
    }

    function showAddress(address,html,zoom) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              map.setCenter(point,zoom);
              var marker = new GMarker(point);
              map.addOverlay(marker);
              marker.openInfoWindowHtml(html);
            }
          }
        );
      }
    }
