var map = null;



var geocoder = null;







function load() {



  if (GBrowserIsCompatible()) {



	geocoder = new GClientGeocoder();



	



	function showAddress(address) {



	  if (geocoder) {



		geocoder.getLatLng(



		  address,



		  function(point) {



			if (!point) {



			  document.getElementById("map").style.display="none";



			} else {



				map = new GMap2(document.getElementById("map"));



				map.setCenter(new GLatLng(40.285926,-84.154994), 15);



				map.addControl(new GSmallMapControl());



				map.addControl(new GMapTypeControl());



				map.addMapType(G_PHYSICAL_MAP);



			



			  map.setCenter(point, 15);



			



			  var marker = new GMarker(point);







				var infoTabs = [



				  new GInfoWindowTab('Address','<strong>The Community Foundation of Shelby County</strong><br />100 S. Main Ave., Suite 202<br />Sidney, Ohio 45365<br />(937) 497-7800'),                                                       



				  new GInfoWindowTab('Directions', '<strong>Enter your address:</strong><br /><form action="http://maps.google.com/maps" method="get" target="_blank"><input type="text" size="40" maxlength="60" name="saddr" id="saddr" value="" /><br /><input class="button" value="Get Directions" type="submit" /><input type="hidden" name="daddr" value="100 S. Main Ave., Suite 202+Sidney, OH+45365+WI" /></form>')]; 												



													  



			  GEvent.addListener(marker, 'click', function() {



				  marker.openInfoWindowTabsHtml(infoTabs);



				});







			  map.addOverlay(marker);



			  marker.openInfoWindowTabsHtml(infoTabs);



			}



		  }



		);



	  }



	}



	showAddress("100 S. Main Ave., Suite 202, Sidney, Ohio 45365");  



  }



}


