$(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(latitude, longitude), 12); // pass in latitude, longitude, and zoom level.
		m.openInfoWindow(m.getCenter(), document.createTextNode(myText)); // displays the text
		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.");
	}
});