// JavaScript Document

<!-- Begin Greeting
datetoday = new Date();
timenow=datetoday.getTime();
datetoday.setTime(timenow);
thehour = datetoday.getHours();
if (thehour > 17) display = "Evening";
else if (thehour >11) display = "Afternoon";
else if (thehour >2) display = "Morning";
else display = "Evening";
var greeting = ("Good " + display + "!");
document.write(greeting);
//  End Greeting-->



<!-- Begin Date
/*
 Java Script Calendar
*/
 calendar = new Date();
 day = calendar.getDay();
 month = calendar.getMonth();
 date = calendar.getDate();
 year = calendar.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--;
 var dayname = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
 var monthname = 
 new Array ("January","February","March","April","May","June","July","August","September","October","November","December" );
 document.write("  --- Today is " + dayname[day] + ", ");
 document.write(monthname[month] + " ");
 if (date< 10) document.write("0" + date + ", ");
         else document.write(date + ", ");
 document.write(year);
// End Date-->

<!-- Begin Holidays
// Easter
 if ((month == emonth) && (date == edate)) document.write("   --- Easter Sunday");
 // January
 if ((month == 0) && (date == 1)) document.write("   --- Happy New Year's Day!");
 if ((month == 0) && (day == 1) && (date > 14) && (date< 22)) document.write("   --- Martin Luther King's Birthday");
 // February
 if ((month == 1) && (date == 2)) document.write("   --- Groundhog Day");
 if ((month == 1) && (date== 12)) document.write("   --- Abraham Lincoln's Birthday");
 if((month == 1) && (date == 14)) document.write("   --- Happy Valentine's Day");
 if ((month == 1) && (date == 22)) document.write("   --- George Washington's Birthday");
 if ((month == 1) && (date == 29)) document.write("   --- Leap Day");
 // March
 if ((month == 2) && (date == 17)) document.write("   --- Happy St. Patrick's Day");
 // April
 if ((month == 3) && (date == 1)) document.write("   --- April Fools' Day!");
 // May
 if ((month == 4) && (date == 1)) document.write("   --- May Day ");
 if ((month == 4) && (day == 0) && (date > 7) && (date< 16)) document.write("   --- Happy Mother's Day!");
 if ((month == 4) && (day == 1) && (date > 24)) document.write("   --- Happy Memorial Day");
 // June
 if ((month == 5) && (date == 14)) document.write("   --- Flag Day");
 if ((month == 5) && (date == 21)) document.write("   --- Summer Solstice");
 if ((month == 5) && (day == 0) && (date > 15) && (date< 22)) document.write("   --- Happy Father's Day!");
 // July
 if ((month == 6) && (date == 4)) document.write("   --- Happy Independence Day!");
  // August
 if ((month == 8) && (day== 1)&& (date > 0) && (date< 8)) document.write("   --- Happy Labor Day!");
 if ((month == 8) && (date == 13)) document.write("   --- Rosh Hashanah Begins");
 if ((month == 8) && (date == 22)) document.write("   --- Yom Kippur");
// October
 if ((month == 9) && (day == 1) && (date > 7) && (date< 16)) document.write("   --- Columbus Day");
 if ((month == 9) && (day == 0) && (date > 24) && (date< 31)) document.write("   --- Daylight Savings Time Ends");
 if ((month == 9) && (day == 0) && (date == 31)) document.write("   --- Daylight Savings Time Ends<BR>");
 if ((month == 9) && (date == 31)) document.write("   --- Happy Halloween!");
 // November
 if ((month == 10) && (date == 11)) document.write("   --- Veteran's Day");
 if ((month == 10) && (day == 4) && (date > 21) && (date< 30)) document.write("   --- Happy Thanksgiving!");
 if ((month == 10) && (date == 30) && (day == 4)) document.write("   --- Happy Thanksgiving!");
 // December
 if ((month == 11) && (date == 5)) document.write("   --- Hanukkah Begins");
 if ((month == 11) && (date == 21)) document.write("   --- Winter Solstice");
 if ((month == 11) && (date == 24)) document.write("   --- Christmas Eve");
 if ((month == 11) && (date == 25)) document.write("   --- Merry Christmas!");
 if ((month == 11) && (date == 26)) document.write("   --- Kwanzaa Begins");
 if ((month == 11) && (date == 31)) document.write("   --- Happy New Year's Eve!");
//  End Holidays-->

