// if required DOM methods are supported, add function to onLoad event
if (document.getElementById && GBrowserIsCompatible()) {
  addLoadEvent(addMap); // addLoadEvent function is in separate file
}


function addMap() {

  var map = null;
  var geocoder = null;

  var mapContainer = document.getElementById("streetmap");
  mapContainer.addClass("googleMap");  // mapContainer's display is set to none; add class googleMap to turn display on

  map = new GMap2(mapContainer);

  map.setCenter(new GLatLng(47.6234,-122.3424), 15);  // approx Republican St. and Dexter Ave. N

  map.addControl(new GLargeMapControl()); 	


  var marker = new GMarker(new GLatLng(47.624819,-122.356453));  // 10 Mercer St.
  map.addOverlay(marker);

  var html="Ten Mercer Restaurant" + "<br>" + "10 Mercer <abbr title='street'>St</abbr>., Seattle";
  marker.openInfoWindowHtml(html);

}