    var map = null;
    var geocoder = null;
    function initialize() {
      if (GBrowserIsCompatible()) {
         map = new GMap2(document.getElementById("map"));
         //map.addControl(new GLargeMapControl()); 
		     //map.addControl(new GMapTypeControl()); 
		     map.setCenter(new GLatLng(37.4419, -122.1419), 14);
			 map.enableScrollWheelZoom();
		     geocoder = new GClientGeocoder();
		     GEvent.addListener(map, "click", clicked);
      }
      	showAddress(GMAPFIRSTADDRESS);
    }
    function showAddress(address) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              //alert("We're sorry but '" + address + "' cannot be found on Google Maps. Please try again.");
            } else {
     	     map.panTo(point); 
			  }
      });
    }
  }

    function clicked(overlay, latlng) {
      if (latlng) {
        geocoder.getLocations(latlng, function(addresses) {
          if(addresses.Status.code != 200) {
            alert("reverse geocoder failed to find an address for " + latlng.toUrlValue());
          }
          else {
            address = addresses.Placemark[0];
            var myHtml = address.address;                                     
			mytext = "<span class='dblue12'>"+myHtml+"</span>"
			//alert(myHtml)
            map.openInfoWindow(latlng, mytext);
          }
        });
      }
    }
