// Google Map 

//Old function - remaining to prevent errors
function loadGMap() {
	
}
//New function
$(document).ready(function(){
	//double check that there is actually a map to display
	if (document.getElementById("map")) {
		if (GBrowserIsCompatible()) {

		//var centerMap = new GLatLng(42.3946680,-71.1460530);
		
		var CIDC_Office = new GLatLng(42.3946680,-71.1460530);
		// Create our custom marker icon
		var CIDC_Icon = new GIcon(G_DEFAULT_ICON);
		CIDC_Icon.image = "/common/images/CIDC_marker.gif";
		markerOptions = { icon:CIDC_Icon };
		var CIDC_Marker = new GMarker(CIDC_Office,markerOptions);
		
		var map = new GMap2(document.getElementById("map"));
		//zoom controls
		map.addControl(new GSmallMapControl());
		//center the map
		map.setCenter(CIDC_Office, 14);
		
		map.addOverlay(CIDC_Marker);
		}
	}
});
