//<![CDATA[
/*

  availability_map.js
  
  Copyright 2008 and beyond: Udell Enterprises, Inc

*/

var map;
var daylight;

function initMap()
{
  if (GBrowserIsCompatible())
  {
    var mapDiv = document.getElementById('map_daylight_layer');
    map = new GMap2(mapDiv, {mapTypes: [G_NORMAL_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP]});

    daylight = new daylightLayer();
    daylight.addToMap(map);
    
    map.setCenter(new GLatLng(0, 12), 0, G_PHYSICAL_MAP);

    map.addControl(new GMapTypeControl(true));
    map.addControl(new GSmallMapControl(), new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(-5, -54)));

    setInterval('daylight.refresh()', 60000);
  }
}

//]]>
