    var map = null;
    var geocoder = null;
    
    function load() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));

        geocoder = new GClientGeocoder();
	showAddress(aptAddress1 + ", " + aptAddress2);
	map.addControl(new GSmallMapControl());
	map.addControl(new GMapTypeControl());

      }
    }

    function showAddress(address) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              map.setCenter(point, 14);
              var marker = new GMarker(point);
              map.addOverlay(marker);
              marker.openInfoWindowHtml(aptNameDisplay + "<br>" + aptAddress1 + "<br>" + aptAddress2 );

            }
          }
        );
      }
    }



