$(document).ready(function() { // when the document is ready to be manipulated.

    if (GBrowserIsCompatible()) { // if the browser is compatible with Google Map's
		var map = new GMap2(document.getElementById("map-canvas")) // get div element and create new instance of GMap2 class

		var center = new GLatLng(48.848621, 2.3416121); // pass in latitude and longitude
	    map.setCenter(center, 13); // pass in zoom level

	    var marker = new GMarker(center);
	
        map.addControl(new GSmallMapControl()); // creates the zoom feature
	    map.addControl(new GMapTypeControl()); // switch map modes
	    map.removeMapType(G_HYBRID_MAP); // remove hybrid control

		map.addOverlay(marker); // show marker on map
    }
    else {
        alert("Upgrade your browser, man!");
    }
});