function load() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map"));
		var geocoder = new GClientGeocoder();
		map.addControl(new GSmallMapControl());
		
		function showAddress(address, title) {
			geocoder.getLatLng(
				address,
				function(point) {
					if(point) {
						map.setCenter(point, 9);
						var marker = new GMarker(point);
						GEvent.addListener(marker, "click", function() {
							marker.openInfoWindowHtml('<strong>'+title+'</strong><br />'+address+'<br /><br /><a href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=70+Cohoes+Avenue+Green+Island,+NY+12183&sll=37.0625,-95.677068&sspn=50.69072,92.548828&ie=UTF8&z=16&iwloc=addr">Get directions from Google Maps</a>');
						});
						map.addOverlay(marker);
					}
				}
			);
		}
		
		showAddress("70 Cohoes Avenue, Green Island, NY 12183","Crystal IS");
	}
}

DOMReady(load);
