var month_names = new Array(13);
month_names[0]  = null;
month_names[1]  = "January";
month_names[2]  = "February";
month_names[3]  = "March";
month_names[4]  = "April";
month_names[5]  = "May";
month_names[6]  = "June";
month_names[7]  = "July";
month_names[8]  = "August";
month_names[9]  = "September";
month_names[10] = "October";
month_names[11] = "November";
month_names[12] = "December";
var month_days = new Array(13);
month_days[0]  = null;
month_days[1]  = 31;
month_days[2]  = 28;
month_days[3]  = 31;
month_days[4]  = 30;
month_days[5]  = 31;
month_days[6]  = 30;
month_days[7]  = 31;
month_days[8]  = 31;
month_days[9]  = 30;
month_days[10] = 31;
month_days[11] = 30;
month_days[12] = 31;
var dayofyear=0;
for (var m=1; m <= 12; m++)
{
   for (var i=1; i <= month_days[m]; i++)
   {
      ++dayofyear;
      document.write('<SPAN ID="d' + dayofyear + '" class="datetext">Sunset, ' + month_names[m] + ' ' + i + '</SPAN>');
   }
}

//Currently we only make hours from 6:00 PM to 11:55 PM
var timeofday=0;
for (var h=6; h <= 11; h++) //hour
{
   document.write('<SPAN ID="t' + timeofday + '" class="timetext">' + h + ':00 PM</SPAN>');
   ++timeofday;
   document.write('<SPAN ID="t' + timeofday + '" class="timetext">' + h + ':05 PM</SPAN>');
   ++timeofday;
   for (var m=10; m < 60; m=m+5) //minute
   {
      document.write('<SPAN ID="t' + timeofday + '" class="timetext">' + h + ':' + m + ' PM</SPAN>');
      ++timeofday;
   }
}

