var map;
var directionsPanel;
var directions;
    function load() {
      if (GBrowserIsCompatible()) {
       map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());  


     //   map.setCenter(new GLatLng(41.84367,-89.482827), 9);
		        map.setCenter(new GLatLng(38.61392,-89.368715), 9);

	var icon = new GIcon();
				var iconA = new GIcon();

/* icon.image = "hesstopia_marker.png";
icon.iconSize = new GSize(30, 35);
icon.iconAnchor = new GPoint(1, 35);
icon.infoWindowAnchor = new GPoint(25, 10);
*/


/* 15 miles:
var pointSW = new GLatLng(38.426473,-89.632542);
var pointNE = new GLatLng(38.81025,-89.104888);
*/

var pointSW = new GLatLng(38.32389,-89.74056);
var pointNE = new GLatLng(38.90278,-88.99972);

var groundOverlay = new GGroundOverlay(
   "http://www.chadone.com/images/map_overlay.png", 
   new GLatLngBounds(pointSW, pointNE));


map.addOverlay(groundOverlay);


      }
    }


function doDirections() {
      if (GBrowserIsCompatible()) {
  directions.clear()
  directions.load(document.getElementById("start_addr").value+" to 40.430485,-90.973063");
GEvent.addListener(directions, "error", function() {
if(directions.getStatus().code == '602') {
alert('Google could not understand your address');
} else {
alert ('An unknown error has occurred.');
}
  directions.clear();

});

}
return false;
}