
 $(document).ready(initializeDirections);
 
    

    function initializeDirections() {
      if (GBrowserIsCompatible()) {      
        mapItMap = new GMap2(document.getElementById("mapIt-map"));
		mapItMap.addMapType(G_PHYSICAL_MAP);
		mapItMap.addControl(new GSmallZoomControl3D());
		var mapControl = new GHierarchicalMapTypeControl();
		mapControl.clearRelationships();
		mapControl.addRelationship(G_SATELLITE_MAP, G_HYBRID_MAP, "Labels", false);
		mapItMap.addControl(mapControl);
		mapItMap.setMapType(G_PHYSICAL_MAP);
		var mapBounds = new GLatLngBounds();
		
//		 the below needs to be called after the map is pop-upped
//		 in addition to here.  The setCenter call here initializes the map center regardless
//		 of the map width & height, and then is called again after the markers are added
		mapItMap.setCenter(new GLatLng(40.771592,-111.888189), 8);
      }
    }