<!-- Begin Holidays Date Javascript

// Getting the Current Calendar
 calendar = new Date();
 day = calendar.getDay();
 month = calendar.getMonth();
 date = calendar.getDate();
 year = calendar.getFullYear();
	if (year < 2000)
		year += 1900;
 cent = parseInt(year/100);
 isHoliday = "no"

// Creating an array for the week
 var dayname = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");

// Creating an array for the months
 var monthname = new Array ("January",  "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" );

// Creating the number of days per month
 var montharr = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);

// Checking for Leap Year
 if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0))
	montharr[1] = "29";

// Beginning Chinese New Year Calculations
// Creating an array for the Chinese New Year dates for years 1961 - 2040
 var chinesenewyeardates = new Array('19600128',
	'19610215','19620205','19630125','19640213','19650202','19660122','19670209','19680130','19690217','19700206',
	'19710127','19720215','19730203','19740123','19750211','19760131','19770218','19780207','19790128','19800216',
	'19810205','19820125','19830213','19840202','19850220','19860209','19870129','19880218','19890206','19900127',
	'19910215','19920204','19930123','19940210','19950131','19960219','19970208','19980128','19990216','20000205',
	'20010124','20020212','20030201','20040122','20050209','20060129','20070218','20080207','20090126','20100214',
	'20110203','20120123','20130210','20140131','20150219','20160208','20170128','20180216','20190205','20200125',
	'20210212','20220201','20230122','20240210','20250129','20260217','20270207','20280127','20290213','20300203',
	'20310123','20320211','20330131','20340219','20350208','20360128','20370215','20380204','20390124','20400212');

// Creating an array for the Chinese Signs
 var  chsignsarray = new Array (
	'Rat','Ox','Tiger','Rabbit(Hare)','Dragon','Snake','Horse','Sheep(Goat)','Monkey','Rooster','Dog','Boar(Pig)')

 evalmonth = 1;
 evaldate = date;
 if (month < 10)
	{
	evalmonth = "0" + (evalmonth + month)
	};
 if (date < 10)
	{
	evaldate = "0" + date
	};

 currentyeardate = (year + (evalmonth) + evaldate);

 chnycounter = 0;
 chsign = 0;
 isTodayChineseNewYear = 'No'

 while (chnycounter < 81)
 {
	if (currentyeardate == chinesenewyeardates[chnycounter])
		{
		isTodayChineseNewYear = 'Yes';
		chsign = chnycounter % 12;
		}
	chnycounter++;
 }

// End of Chinese New Year Calculations

// Beginning Easter based holidays calculations
// Note for Netscape: parseInt(x) returns "NaN" if rerult of x < 1
//  ie. x = 3/4, parseInt(x) returns "NaN"; views x = .75 as a string
//    also, parseInt(0.75) returns "NaN"
//  use if (x < 1) x = 0 before parseInt() to correct for Netscape
// Internet Explorer does not have this problem, returns 0 if x < 1
//
 g = year % 19;
	vark = (cent - 17)/25;
	if (vark < 1) vark = 0;
 k = parseInt(vark);
 i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30;
	varo1 = i/28;
	if (varo1 < 1) varo1 = 0;
	varo2 = 29/(i+1);
	if (varo2 < 1) varo2 = 0;
 o = i - parseInt(varo1)*(1 - parseInt(varo1)*parseInt(varo2)*parseInt((21-g)/11));
 j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7;
 l = o - j;
	varem = (l + 40)/44;
	if (varem < 1) varem = 0;
 emonth = 3 + parseInt(varem);
	vared = emonth/4;
	if (vared < 1) vared = 0;
 edate = l + 28 - 31*parseInt(vared);
 emonth--;
 easterstatus = 0;

// Counting the number of days into the year
//
// For Easter day
	ecmonth = 0;
	ecdays = 0;
 while (ecmonth < emonth)
	{
	ecdays += montharr[ecmonth];
	ecmonth++;
	}
 ecdays += edate;

// For current day (Today)
	cmonth = 0;
	cdays = 0;
 while (cmonth < month)
	{
	cdays += montharr[cmonth];
	cmonth++;
	}
 cdays += date;

// Determines from todays date, how many days before or after Easter
	diffdays = 0;
 if ((cdays < ecdays) && (cdays != ecdays))
	{
	easterstatus = "before";
	diffdays = ecdays - cdays;
	};
 if ((cdays > ecdays) && (cdays != ecdays))
	{
	easterstatus = "after";
	diffdays = cdays - ecdays;
	};

// End of Easter based holidays calculations

 document.write("<br><marquee><center>");
 document.write('<span class="holiday">&nbsp;&nbsp;');

// Chinese New Year
 if (isTodayChineseNewYear == 'Yes')
	{
	document.write("Chinese New Year. Year of the " +  chsignsarray[chsign] + ". ");
	}

// Easter
 if ((month == emonth) && (date == edate))
	{
	isHoliday = "yes";
	document.write("Easter Sunday (Western)");
	}

 // Before Easter Holidays
 if (easterstatus == "before")
	{
	if (diffdays == 46)
		{
		isHoliday = "yes";
		document.write("Ash Wednesday. ");
		}
	if (diffdays == 7)
		{
		isHoliday = "yes";
		document.write("Palm Sunday. ");
		}
	if (diffdays == 2)
		{
		isHoliday = "yes";
		document.write("Good Friday. ");
		}
	}

 // After Easter Holidays
 if (easterstatus == "after")
	{
	if (diffdays == 1)
		{
		isHoliday = "no";
		document.write("Easter Monday. ");
		}
	if (diffdays == 35)
		{
		isHoliday = "no";
		document.write("Rogation Sunday. ");
		}
	if (diffdays == 56)
		{
		isHoliday = "yes";
		document.write("Trinity Sunday. ");
		}
	if (diffdays == 60)
		{
		isHoliday = "no";
		document.write("Corpus Christi. ");
		}
	}

 // January Important Dates and Holidays
 if ((month == 0) && (date == 1))
	{
	isHoliday = "yes";
	document.write("New Year's Day! ");
	}
 if ((month == 0) && (date > 0) && (date < 8))
	document.write("<font color='green'> Happy New Year! </font>");
 if ((month == 0) && (day == 1) && (date > 14) && (date < 22))
	{
	isHoliday = "yes";
	document.write("Martin Luther King, Jr. Day (USA) ");
	}

 // February Important Dates and Holidays
 if ((month == 1) && (date == 2))
	document.write("Groundhog Day ");
 if ((month == 1) && (date == 12))
	document.write("Lincoln's Birthday (USA) ");
 if ((month == 1) && (date == 14))
	document.write("St. Valentine's Day. Happy Valentine's Day! ");
 if ((month == 1) && (day == 1) && (date > 14) && (date < 22))
	{
	isHoliday = "yes";
	document.write("President's Day (USA) ");
	}
 if ((month == 1) && (date == 22))
	document.write("Washington's Birthday (USA) ");
 if ((month == 1) && (date == 29))
	document.write("Leap Day. ");

 // March Important Dates and Holidays
 if ((month == 2) && (day == 0) && (date > 7) && (date < 15))
	document.write("Daylight Saving Time Begins (USA) ");
 if ((month == 2) && (date == 17))
	document.write("St. Patrick's Day. ");
 if ((month == 2) && (date == 20))
	document.write("Spring Begins (Vernal Equinox) ");
 if ((month == 2) && (date == 31))
	{
	isHoliday = "yes";
	document.write("Cesar Chavez Day (California, USA) ");
	}

 // April Important Dates and Holidays
 if ((month == 3) && (date == 1))
	document.write("April Fools' Day ");
 if ((month == 3) && (((date == 15) && (day != 0)) || ((date == 16) && (day == 1))))
	document.write("Income Tax Day (USA) ");
 if ((month == 3) && (date == 22))
	document.write("Earth Day ");
 if ((month == 3) && (day == 3) && (date > 20) && (date < 28))
	document.write("Administrative Professionals (Professional Secretaries) Day (USA) ");

 // May Important Dates and Holidays
 if ((month == 4) && (date == 5))
	document.write("Cinco de Mayo (Mexico) ");
 if ((month == 4) && (day == 0) && (date > 7) && (date < 16))
	{
	isHoliday = "yes";
	document.write("Mother's Day. Happy Mother's Day! ");
	}
 if ((month == 4) && (day == 6) && (date > 15) && (date < 23))
	document.write("Armed Forces Day (USA) ");
 if ((month == 4) && (day == 1) && (date > 17) && (date < 25))
	document.write("Victoria Day (Canada) ");
 if ((month == 4) && (day == 1) && (date > 24) && (date < 32))
	{
	isHoliday = "yes";
	document.write("Memorial Day Observed (USA) ");
	}
 if ((month == 4) && (date == 30))
	{
	isHoliday = "yes";
	document.write("Memorial Day ");
	}

 // June Important Dates and Holidays
 if ((month == 5) && (date == 6))
	document.write("D-Day (USA) ");
 if ((month == 5) && (date == 14))
	document.write("Flag Day (USA) ");
 if ((month == 5) && (date == 21))
	document.write("Summer Begins (Summer Solstice) ");
 if ((month == 5) && (day == 0) && (date > 14) && (date < 22))
	{
	isHoliday = "yes";
	document.write("Father's Day. Happy Father's Day! ");
	}
 if ((month == 5) && (date == 24))
	document.write("St. Jean-Baptiste Day (Quebec) ");

 // July Important Dates and Holidays
 if ((month == 6) && (date == 1))
	document.write("Independence Day (Canada) ");
 if ((month == 6) && (date == 4))
	{
	isHoliday = "yes";
	document.write("Independence Day (USA) ");
	}

 // August Important Dates and Holidays
 if ((month == 7) && (date == 1))
	document.write("Confederation Day (Switzerland) ");
 if ((month == 7) && (date == 10))
	document.write("Independence Day (Ecuador) ");
 if ((month == 7) && (date == 15))
	document.write("Independence Day (India) ");

 // September Important Dates and Holidays
 if ((month == 8) && (day == 1) && (date > 0) && (date < 8))
	{
	isHoliday = "yes";
	document.write("Labor Day (Canada, USA) ");
	}
 if ((month == 8) && (date == 7))
	document.write("Independence Day (Brazil) ");
 if ((month == 8) && (date == 11))
	document.write('Patriot Day - In Remembrance of 9-11 ');
 if ((month == 8) && (date == 16))
	document.write("Independence Day (Mexico) ");
 if ((month == 8) && (date == 22))
	document.write("Autumn Begins (Autumnal Equinox) ");

 // October Important Dates and Holidays
 if ((month == 9) && (date == 1))
	document.write("German Reunufication (1990) ");
 if ((month == 9) && (day == 1) && (date > 7) && (date < 15))
	{
	isHoliday = "yes";
	document.write("Columbus Day Observed (USA), Thanksgiving Day (Canada) ");
	}
 if ((month == 9) && (date == 16))
	document.write("National Boss Day (USA) ");
 if ((month == 9) && (date == 24))
	document.write("United Nations Day. ");
 if ((month == 9) && (date == 31))
	document.write("Happy Halloween. ");

 // November Important Dates and Holidays
 if ((month == 10) && (date == 1))
	document.write("All Saints Day. ");
 if ((year % 2 == 0) && (month == 10) && (day == 2) && (date > 1) && (date < 9))
	document.write("Election Day (USA) ");
 if ((month == 10) && (day == 0) && (date > 0) && (date < 8))
	document.write("Daylight Saving Time Ends (USA) ");
 if ((month == 10) && (date == 11))
	{
	isHoliday = "yes";
	document.write("Veteran's Day (USA), Remembrance Day (Canada) ");
	}
 if ((month == 10) && (day == 4) && (date > 22) && (date < 30))
	{
	isHoliday = "yes";
	document.write("Thanksgiving Day (USA) ");
	}

 // December Important Dates and Holidays
 if ((month == 11) && (date == 21))
	document.write("Winter Begins (Winter Solstice) ");
 if ((month == 11) && (date == 24))
	document.write("Christmas Eve! ");
 if ((month == 11) && (date == 25))
	document.write("Christmas Day! Merry Christmas! ");
 if ((month == 11) && (date == 26))
	document.write("Kwanzaa, Boxing Day (Canada) ");
 if ((month == 11) && (date == 31))
	document.write("New Year's Eve! ");
 if ((month == 11))
	{
	isHoliday = "yes";
	document.write('</span><span class="datedecember"> Seasons Greetings! ');
	document.write('</span><span class="datenewyear"> Have a wonderful New Year! ');
	}

 // Happy Holiday Greeting
 if (isHoliday == "yes")
	document.write('</span><span class="dateholiday"> Happy Holidays! ');

 document.write("</span></marquee></center>");

// End of script -->
