$(document).ready(function(){

	var map = null;
	var geocoder = null;
	function showAddress(address, addressText) {
		if (geocoder) {
			geocoder.getLatLng(
				address,
				function(point) {
					if (!point) {
						alert(address + " not found");
					} else {
						map.setCenter(point, 13);
						var marker = new GMarker(point);
						map.addOverlay(marker);
						marker.openInfoWindowHtml(addressText);
					}
				}
			);
		}
	}
	
	  if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("map"));
		map.setCenter(new GLatLng(41.87075, -87.68600), 13);
		map.addControl(new GLargeMapControl());
		geocoder = new GClientGeocoder();
	  }
	  showAddress("833 W Jackson Blvd, # 600 Chicago IL 60607", "<strong>Meyers + Partners</strong><br />833 W Jackson Blvd # 600<br />Chicago IL, 60607<br /><small><a href='http://maps.google.com/maps?hl=en&q=833+W.+Jackson+Blvd.+Suite+600+Chicago,+IL+60607&um=1&ie=UTF-8&sa=X&oi=geocode_result&resnum=1&ct=title' target='_blank'>View Larger Map/Directions</a></small>" )
	
});
