    var map = null;
    var geocoder = null;

	function createMarker(point,html) {
        var marker = new GMarker(point);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
        return marker;
      }    
	
    function showAddress(address) {
   
    if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("map"));
		geocoder = new GClientGeocoder();
	
	 }
       if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
               	document.getElementById("map").style.display = 'none';
				document.getElementById("maptitle").style.display = 'none';
            } else {
              document.getElementById("map").style.display = 'block';	
              map.setCenter(point, 13);
              map.addControl(new GSmallMapControl());
              // var marker = new GMarker(point);
			  var marker = createMarker(point,address);
              map.addOverlay(marker);
             // marker.openInfoWindowHtml("<b>Address: </b>" + address);
            }
          }
        );
      }
    }
