// JavaScript Document<!--
/*
This holiday calendar is used in conjunction with the timestamp complexdate javascript that provides info based on day 
of the week and time of day. This one provides an opportunity to highlight certain days of the year that require special 
messages - Spring break, holidays, etc. It needs to be updated each December.
Included images must be no larger than 75 X 200 px.
*/

d = new Date();
var Time;
Hours = d.getHours();
if (Hours >= 12) {
Time = " P.M.";
}
else {
Time = " A.M.";
}
if (Hours > 12) {
Hours -= 12;
}
if (Hours == 0) {
Hours = 12;
}
Mins = d.getMinutes();
if (Mins < 10) {
Mins = "0" + Mins;
}	
//document.write('<font size=2 face=Arial><b>' + Hours + ":" + Mins + Time + '</b></font>');

d = new Date();
 day = d.getDay();
 month = d.getMonth();
 date = d.getDate();
 year = d.getYear();
 if (year < 1000)
 year+=1900
 cent = parseInt(year/100);
 g = year % 19;
 k = parseInt((cent - 17)/25);
 i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30;
 i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11));
 j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7;
 l = i - j;
 emonth = 3 + parseInt((l + 40)/44);
 edate = l + 28 - 31*parseInt((emonth/4));
 emonth--;
 dayValue = d.getDay();
monthValue = d.getMonth();
month+=" "
if (monthValue == 0)
    month += "January";
if (monthValue == 1)
    month += "February";
if (monthValue == 2)
    month += "March";
if (monthValue == 3)
    month += "April";
if (monthValue == 4)
    month += "May";
if (monthValue == 5)
    month += "June";
if (monthValue == 6)
    month += "July";
if (monthValue == 7)
    month += "August";
if (monthValue == 8)
    month += "September";
if (monthValue == 9)
    month += "October";
if (monthValue == 10)
    month += "November";
if (monthValue == 11)
    month += "December";
 
 //document.write("<font face=verdana,arial size=2>");
 //document.write(month+=" " + " ");
 // if (date< 10) document.write("0" + date + ", ");
   //   else document.write(date + ", ");
//document.write( year + "  " + "</font> <b><font color=FF0000>");
   

 //day 0=Sun
 // January = 0
 if ((monthValue == 0) && (date == 1)) document.write("<img src=../images/nyanim.gif align=center>");

// February = 1
 if ((monthValue == 1) && (date == 2)) document.write("<img src=../images/groundhoganim.gif align=center>");
if ((monthValue == 1) && (date == 5)) document.write("<img src=../images/animflag.gif align=center>");
 if((monthValue == 1) && (date == 14)) document.write("<img src=../images/valentine.gif align=center>");
 if ((monthValue == 1) && (date == 16)) document.write("<img src=../images/presidents2.gif align=center>");
 if ((monthValue == 1) && (date == 29)) document.write("<img src=../images/leapday.gif align=center>");
 
 // March = 2 day 0=Sun
  

 if ((monthValue == 2) && (date == 17)) document.write("<img src=../images/stpatricksday.gif align=center>");
 // if ((monthValue == 2) && (date == 8)) document.write("<img src=../images/dstmar.gif align=center>");

 // April = 3
 
 
 if ((monthValue == 3) && (date == 15) && (day != 0)) document.write("Income Tax Day (USA) ");
 if ((monthValue == 3) && (date == 16) && (day == 1)) document.write("Income Tax Day (USA) ");

 
 // May =4

// June =5
 
 
 // July =6

 if ((monthValue == 6) && (date == 4)) document.write("<img src=../images/july4.gif >");


// August =7

 
 // September
 
 // October


 if ((monthValue == 9) && (date == 31)) document.write("<img src=susanspumpkin.gif align=center>");
 
 
 // November

 if ((monthValue == 10) && (date ==1)) document.write("<img src=../images/dstnov.gif >");
if ((monthValue == 10) && (date == 26)) document.write("<img src=../images/turkeywalk.gif align=left>");

 
 // December
 if ((monthValue == 11) && (date == 31)) document.write("<img src=../images/nyanim.gif align=center>");



//-->