$(function() { // when the document is ready to be manipulated.
	if (GBrowserIsCompatible()) { // if the browser is compatible with Google Map's
		var map = document.getElementById("myMap"); // Get div element
		var m = new GMap2(map); // new instance of the GMap2 class and pass in our div location.
		m.setCenter(new GLatLng(37.148771, -93.293982), 14); // pass in latitude, longitude, and zoom level.
		
		var marker = new GMarker(m.getCenter());
		m.addOverlay(marker);
		
		m.setMapType(G_NORMAL_MAP); // sets the default mode. G_NORMAL_MAP, G_HYBRID_MAP, G_SATELLITE_MAP
		var c = new GMapTypeControl(); // switch map modes
		m.addControl(c);
		m.addControl(new GLargeMapControl()); // creates the zoom feature
	} else {
		alert("Your browser doesn't support this feature.");
	}
});
