    //<![CDATA[

    function initMap(address) {
      var map = null;
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));
        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());
        map.addControl(new GScaleControl());
      }
      return (map);
    }

    function showAddress(map,address1,city,state,postalcode) {
      address = address1 + ", " + city + ", " + state + " " + postalcode;
      geocoder = new GClientGeocoder();
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              map.setCenter(point, 12);
              var marker = new GMarker(point);

      	      html = '<p><address>' +
	        address1 + '<br />' +
		city + ', ' +
		state + ' ' +
		postalcode +
	        '</address></p>' +
                '<p>Get directions to this property:' +
		'<form action="http://maps.google.com/maps" method="get" target="_blank">' +
                '<input type="text" size="30" name="saddr" id="saddr" value="" />' +
		'<br />' +
		'<input value="Get Directions" type="submit" />' +
		'<input type="hidden" name="daddr" value="' + address +  '"/>' +
		'</p>';

              GEvent.addListener(marker, "click", function() {
                marker.openInfoWindowHtml(html);
              });
              map.addOverlay(marker);
            }
          }
        );
      }
    }

    //]]>
