    var map = null;
    var geocoder = null;
 
    function showAnyGoogleMaps() {
      if (GBrowserIsCompatible() && document.getElementById("directions_map_canvas")) {
        initializeDirectionsMap();
      } 
      if (GBrowserIsCompatible() && document.getElementById("contacts_map_canvas")) {
        initializeContactsMap();
      } 
    }

    function initializeDirectionsMap() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("directions_map_canvas"));
	map.addControl(new GSmallMapControl());
        map.setCenter(new GLatLng(33.1, -83.0), 6);
        geocoder = new GClientGeocoder();
	showDirectionMapAddresses();
      }
    }
 
    function initializeContactsMap() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("contacts_map_canvas"));
	map.addControl(new GSmallMapControl());
        map.setCenter(new GLatLng(33.1, -83.0), 6);
        geocoder = new GClientGeocoder();
	showContactsMapAddresses();
      }
    }
 
    function showDirectionMapAddresses() {
      showAddress('1180 E. Broad Street, Athens, GA 30602-5412', '<a href="http://www.gtpac.org/directions/athens/">Athens Office</a>');
      showAddress('75 - 5th Street, NW, Atlanta, GA 30308', '<a href="http://www.gtpac.org/directions/atlanta-training-facility/">Atlanta Training Facility</a><br /><br />' +
      '<p><a href="http://www.gtpac.org/directions/atlanta-office/">Atlanta Office</a></p>' );
      showAddress('125 Pine Avenue, Suite 220, Albany, GA 31701', '<a href="http://www.gtpac.org/directions/albany/">Albany Office</a>');
      showAddress('1450 Greene Street, Suite 3500, Augusta, GA 30901', '<a href="http://www.gtpac.org/directions/augusta/">Augusta Office</a>');
      showAddress('500 Old Bremen Rd, Carrollton, GA 30117', '<a href="http://www.gtpac.org/directions/carrollton/">Carrollton Office</a>');
      showAddress('3100 Gentian Blvd, Columbus, GA 31907', '<a href="http://www.gtpac.org/directions/columbus/">Columbus Office</a>');
      showAddress('999 Chestnut St. SE, Gainesville, GA 30501', '<a href="http://www.gtpac.org/directions/gainesville/">Gainesville Office</a>');
      showAddress('210 Technology Circle, Savannah, GA 31407-3038', '<a href="http://www.gtpac.org/directions/savannah/">Savannah Office</a>');
      showAddress('151 Osigian Blvd., Suite 157, Warner Robins, GA 31088', '<a href="http://www.gtpac.org/directions/warner-robins/">Warner Robins Office</a>');
    }

    function showContactsMapAddresses() {
      showAddress('1180 E. Broad Street, Athens, GA 30602-5412', '<a href="http://www.gtpac.org/team-directory/athens-counselor/">Athens Counselor</a>');
      showAddress('75 - 5th Street, NW, Atlanta, GA 30308', '<a href="http://www.gtpac.org/team-directory/atlanta-counselors/">Atlanta Counselors</a>');
      showAddress('125 Pine Avenue, Suite 220, Albany, GA 31701', '<a href="http://www.gtpac.org/team-directory/albany-counselor/">Albany Counselor</a>');
      showAddress('1450 Greene Street, Suite 3500, Augusta, GA 30901', '<a href="http://www.gtpac.org/team-directory/augusta-counselor/">Augusta Counselor</a>');
      showAddress('500 Old Bremen Rd, Carrollton, GA 30117', '<a href="http://www.gtpac.org/team-directory/carrollton-counselor/">Carrollton Counselor</a>');
      showAddress('3100 Gentian Blvd, Columbus, GA 31907', '<a href="http://www.gtpac.org/team-directory/columbus-counselor/">Columbus Counselor</a>');
      showAddress('999 Chestnut St. SE, Gainesville, GA 30501', '<a href="http://www.gtpac.org/team-directory/gainesville-counselor/">Gainesville Counselor</a>');
      showAddress('210 Technology Circle, Savannah, GA 31407-3038', '<a href="http://www.gtpac.org/team-directory/savannah-counselor/">Savannah Counselor</a>');
      showAddress('151 Osigian Blvd., Suite 157, Warner Robins, GA 31088', '<a href="http://www.gtpac.org/team-directory/warner-robins-counselor/">Warner Robins Counselor</a>');
    }

    function showAddress(address, html) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
	      var myIcon = new GIcon(G_DEFAULT_ICON);
	      myIcon.image = "http://www.google.com/intl/en_us/mapfiles/ms/micons/yellow-dot.png";
	      myIcon.iconSize = new GSize(30, 30);
	      myIcon.iconAnchor = new GPoint(15, 30);
	      myIcon.infoWindowAnchor = new GPoint(15, 30);
	      markerOptions = { icon:myIcon };
              var marker = new GMarker(point, markerOptions);
              GEvent.addListener(marker, "click", function() {
		    marker.openInfoWindowHtml( html );
	      });

              map.addOverlay(marker);
              // marker.openInfoWindowHtml(address);
            }
          }
        );
      }
    }


