// JavaScript Document
//<![CDATA[

    var map = null;
    var geocoder = null;

    function load() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(32.463734,-84.991007), 15);
        geocoder = new GClientGeocoder();
		showAddress("100 10th Street, Columbus, Georgia, 31901");
	  map.addControl(new GSmallMapControl());
      }
    }
function createMarker(point) {
  var marker = new GMarker(point);
  GEvent.addListener(marker, "click", function() {
    marker.openInfoWindowHtml('<div align="left">Need directions to the Columbus<br>Consolidated Government Center?<br>Type your address below:<form action="http://maps.google.com/maps" method="get" target="_blank"><input type="text" name="saddr" id="saddr" value="" size="20" /><input type="submit" value="Submit" /><input type="hidden" name="daddr" value="100 10th Street, Columbus, Georgia, 31901" /><input type="hidden" name="hl" value="en" /></form></div>');
  });
  return marker;
}
	


    function showAddress(address) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
		  
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              map.setCenter(point, 15);
              var marker = new GMarker(point);
              map.addOverlay(marker);
    marker.openInfoWindowHtml('<div align="left">Need directions to the Columbus<br>Consolidated Government Center?<br>Type your address below:<form action="http://maps.google.com/maps" method="get" target="_blank"><input type="text" name="saddr" id="saddr" value="" size="20" /><input type="submit" value="Submit" /><input type="hidden" name="daddr" value="100 10th Street, Columbus, Georgia, 31901" /><input type="hidden" name="hl" value="en" /></form></div>');
			  map.addOverlay(createMarker(point));

			  
            }
          }
        );
      }
    }


    //]]>