$(document).ready(function() {
	initialize();
});
    
    function initialize() {
      if (GBrowserIsCompatible()) {
	  
		var center = new GLatLng( latitude, longitude );
        
        var map = new GMap2(document.getElementById("map_canvas"));
        map.removeMapType(G_HYBRID_MAP);
		map.setMapType(G_NORMAL_MAP);
        map.setCenter(center, 15);
        map.addControl(new GLargeMapControl()); 
        var mapControl = new GMapTypeControl(); 
        map.addControl(mapControl);

        var baseIcon = new GIcon();

        baseIcon.image = "/img/venue.png";
        baseIcon.shadow = "/img/venue_shadow.png";
        baseIcon.iconSize = new GSize(29, 26);
        baseIcon.shadowSize = new GSize(42, 24);
        baseIcon.iconAnchor = new GPoint(15, 13);
        baseIcon.infoWindowAnchor = new GPoint(15, 3);

	    // Creates a marker at the given point
	    markerOptions = { icon:baseIcon, draggable: false};
	 	marker = new GMarker(center, markerOptions);
	    // Add marker to the map
		map.addOverlay(marker);
		marker.openInfoWindowHtml(infowindow);
 
      }
    }