var map = null;
var geocoder = null;
function initialize() {
  if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById("gmap"));
    map.setCenter(new GLatLng(37.4419, -122.1419), 13);
    geocoder = new GClientGeocoder();
  }
}

function showAddress(address) {
  if (geocoder) {
    geocoder.getLatLng(
      address,
      function(point) {
        if (point) {        	
          map.setCenter(point, 13);
          var marker = new GMarker(point);
          map.addOverlay(marker);
          marker.openInfoWindowHtml(address);
          document.getElementById("no_gmap").style.display = 'none';
          document.getElementById("gmap").style.display = '';
        }
      }
    );
  }
}
