//
// Initialize google map on contact-us.html

function mapInit() {
  if (GBrowserIsCompatible()) {
    
    // Create map opject
    var map = new GMap2(document.getElementById("map-canvas"));
    
    // Add controls
    map.addControl(new GSmallMapControl());
    
    // Display address
    geocoder = new GClientGeocoder();
    geocoder.getLatLng(
      "575 8th Avenue, New York, NY 10018",
      function(point) {
        if (!point) {
          alert(address + " not found");
        } else {
          map.setCenter(point, 13);
          var marker = new GMarker(point);
          map.addOverlay(marker);
          marker.openInfoWindowHtml(address);
        }
      }
    );

  }
}
