
    //<![CDATA[
    
    function load(){
	if (GBrowserIsCompatible()) { 

      // A function to create the marker and set up the event window
      // Dont try to unroll this function. It has to be here for the function closure
      // Each instance of the function preserves the contends of a different instance
      // of the "marker" and "html" variables which will be needed later when the event triggers.    
      function createMarker(point,html) {
        var marker = new GMarker(point);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
		  setTimeout('document.getElementById("saddr").focus()',1); 
        });
        return marker;
      }

      // Display the map, with some controls and set the initial location 
      var map = new GMap2(document.getElementById("map"));
      map.setCenter(new GLatLng(32.463734,-84.986930),15);
    
      // Set up three markers with info windows 
    
      var point = new GLatLng(32.463734,-84.991007);
      var marker = createMarker(point,'<div align="left"><font style="font-family:Arial, sans-serif; font-size:12px">Need directions to the Sheriffs<br>Office?<br>Type your address below:</font><form action="http://maps.google.com/maps" method="get" target="_blank" name="mapform" id="mapform"><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(marker);
	  
	  marker.openInfoWindowHtml('<div align="left"><font style="font-family:Arial, sans-serif; font-size:12px">Need directions to the Sheriffs<br>Office?<br>Type your address below:</font><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>')
	  setTimeout('document.getElementById("saddr").focus()',1); 

      var point = new GLatLng(32.463734,-84.983454);
      var marker = createMarker(point,'<div align="left"><font style="font-family:Arial, sans-serif; font-size:12px">Need directions to the Muscogee<br>County Jail?<br>Type your address below:</font><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="700 10th Street, Columbus, Georgia, 31901" /><input type="hidden" name="hl" value="en" /></form></div>')
      map.addOverlay(marker);

    }
    
    // display a warning if the browser was not compatible
    else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
    }

    // This Javascript is based on code provided by the
    // Blackpool Community Church Javascript Team
    // http://www.commchurch.freeserve.co.uk/   
    // http://econym.googlepages.com/index.htm

    //]]>
	}

