//<![CDATA[

function onLoad() {

  // Display Info Windows Above Markers

  if (GBrowserIsCompatible()) {

    // Create our "tiny" marker icon
    var icon = new GIcon();
    icon.image = "http://momjian.us/main/img/mm_20_red.png";
    icon.shadow = "http://momjian.us/main/img/mm_20_shadow.png";
    icon.iconSize = new GSize(12, 20);
    icon.shadowSize = new GSize(22, 20);
    icon.iconAnchor = new GPoint(6, 20);
    icon.infoWindowAnchor = new GPoint(5, 1);

    var map = new GMap2(document.getElementById("map"));
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl());
    map.setCenter(new GLatLng(0, 30), 1);

    // Creates a marker whose info window displays the given number
    function createMarker(lat, lng, locstr) {
      var point = new GPoint(lng, lat);
      var marker = new GMarker(point, icon);
      var label = new ELabel(new GLatLng(lat, lng), locstr, "GmapLabel", new GSize (10,-10), 100, true);

      // Show this marker's description when the mouse is over it
      GEvent.addListener(marker, "mouseover", function() {
        map.addOverlay(label);
      });
      GEvent.addListener(marker, "mouseout", function() {
        map.removeOverlay(label);
      });

      map.addOverlay(marker);
    }

    for (var loc = 0; loc < momjian_us_geo_locations.length; loc++)
    {
        createMarker(momjian_us_geo_locations[loc][3], 
		momjian_us_geo_locations[loc][4], 
		momjian_us_geo_locations[loc][1] + ', ' +
		momjian_us_geo_locations[loc][0] + '<br />' +
		momjian_us_geo_locations[loc][2]);
    }

  } else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
  }
}

//]]>

