// JavaScript Document

  //<![CDATA[

    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(40.7438001,-73.9255867), 13);
		// Our info window content
var infoTabs = [
  new GInfoWindowTab("Tab #1", "<center><strong>Pete's Grill</strong><br />39-14 Queens Blvd.<br />Sunnyside, NY 11104</center>")
];


// Place a marker in the center of the map and open the info window
// automatically
var marker = new GMarker(map.getCenter());
GEvent.addListener(marker, "click", function() {
  marker.openInfoWindowTabsHtml(infoTabs);
});
map.addOverlay(marker);
marker.openInfoWindowTabsHtml(infoTabs);
      }
    }

    //]]>
  
/**Code that was originally in the body tag,then rewrote to be put in the header and is now place in an external document. **/ 
window.onload=load;
window.onunload=GUnload;
