    var map = null;
    var geocoder = null;

    function initialize() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(47.4419, -122.1419), 13);
        geocoder = new GClientGeocoder();
		
		map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl()); 
      }
    }

    function showAddress(address) {
	if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map_canvas"));
        
        geocoder = new GClientGeocoder();
		
				map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl()); 
      }
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              // alert(address + " not found");
							$('googlemap').style.display = 'none';
            } else {
              map.setCenter(point, 13);
              var marker = new GMarker(point);
              map.addOverlay(marker);
						  var info = address;
              marker.openInfoWindowHtml(info);
            }
          }
        );
      }
    }

