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

        if (GBrowserIsCompatible()) { // if the browser is compatible with Google Map's
          var map = document.getElementById("google_map"); // Get div element
          var m = new GMap2(map); // new instance of the GMap2 class and pass in our div location.
        
          m.setCenter(new GLatLng(38.57989,-121.48407), 13); // pass in latitude, longitude, and zoom level.
        
          m.setMapType(G_NORMAL_MAP); // sets the default mode. G_NORMAL_MAP, G_HYBRID_MAP
        
          var c = new GMapTypeControl(); // switch map modes
          m.addControl(c);
          
            // create a marker
          var marker = new GMarker(new GLatLng(51.500152,-0.126236));
          
          m.addOverlay(marker);
          google.maps.Event.trigger(marker, "click");
        
          m.addControl(new GLargeMapControl()); // creates the zoom feature
        }
        else {
          alert("Upgrade your browser, man!");
        }
    });
    
