
function mapLoad() {
    if (GBrowserIsCompatible()) {

        function createMarker(point,html) {
            var marker = new GMarker(point);
            GEvent.addListener(marker, "click", function() {
                marker.openInfoWindowHtml(html);
            });
            return marker;
        }

        function createMarker(point,html) {
            var marker = new GMarker(point);
            GEvent.addListener(marker, "click", function() {
                marker.openInfoWindowHtml(html);
            });
            return marker;
        }

        var map = new GMap2(document.getElementById("map"));
        map.addControl(new GSmallMapControl());
        map.setCenter(new GLatLng(40.77,-73.989),12);

        var point = new GLatLng(40.769165, -73.994887);
        var marker = createMarker(point,'<div id="mapcallout"><img src="/_images/smalllogo.gif"/><p>Pier 94<br/> 12th Ave. at 55th St.<br/>New York City, NY 10019</p></div>');
        map.addOverlay(marker);

    }

    // display a warning if the browser was not compatible
    else {
        alert("Sorry, the Google Maps API is not compatible with this browser");
    }
}