function loadMap(address) {
   if (GBrowserIsCompatible()) {
      var map = new GMap2(document.getElementById("map"));
      map.addControl(new GSmallMapControl());
      map.addControl(new GMapTypeControl());
      map.setCenter(new GLatLng(-71.0595703125, 42.358543396), 9);
      address = address.replace(/<b>/g, "");
      address = address.replace(/<\/b>/g, "");
      showAddress(address, map);
      document.getElementById("map").style.display = "block";
      document.getElementById("mapClose").innerHTML = "<a class=\"mainFont brwn\" style=\"position:relative;top:4px;\" href=\"#resTop\" onClick=\"unloadMap();urchinTracker('/closeMap/%%ACCTID%%/');\">Close This Map</a>";
   }
}
function showAddress(address, map) {
  var geocoder = new GClientGeocoder();
  geocoder.getLatLng(
     address,
      function(point) {
        if (!point) { 
	  map.openInfoWindow(map.getCenter(),
	                     document.createTextNode("We're sorry but, " + address + " could not be found."));
        } else {
          var marker = new GMarker(point);
	  map.panTo(point);
          map.addOverlay(marker);
	  map.openInfoWindow(map.getCenter(),
	                     document.createTextNode(address));
	  map.checkResize();
	  map.setZoom(14);
        }
      }
  );
}
function unloadMap() {
      GUnload();
      document.getElementById("mapClose").innerHTML = "";
      document.getElementById("map").style.display = "none";
}
