var centerLatitude = 44.99;
var centerLongitude = -93.254453;
var startZoom = 12;
var map;

function init()
{
  if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById("map"));
    var location = new GLatLng(centerLatitude, centerLongitude);
    map.setCenter(location, startZoom);
    map.addControl(new GSmallZoomControl());

    for (id in marker) {
    addMarker(marker[id].latitude, marker[id].longitude, marker[id].message);
    }
  }
}
function addMarker(latitude, longitude, description)
{
  var marker = new GMarker(new GLatLng(latitude, longitude));

  GEvent.addListener(marker, 'click',
    function() {
      marker.openInfoWindowHtml(description);
    }
  );

  map.addOverlay(marker);

}
window.onload = init;
window.onunload = GUnload;