// JavaScript Document
/*
 Java Script Calendar is a small script for web pages which displays current Day of the week, Month, Date and Year along with Holidays notification. Just like this working demo below. It will work with Netscape 2++, Microsoft 3++ and Opera 3++ web browsers.

                                    Tuesday, November 24, 1998    

About 70 holidays from all over the world are displayed by Calendar (if you know other ones, let me know, I will add them). It even calculates Easter Sunday date! To see how it works change the date on your computer to January, 1,
for example and re-load the page.

Installation is very simple. Just copy the script below, everything between SCRIPT and SCRIPT tags (including tags themselves) and paste in the place you want it to appear on your page. You can customize the way
 it looks by changing document.write function arguments just after month names definitions. Java Script Calendar is free without any limitations. Copyright © Eugene Vassiltsov. But please, let me know if you will use it.
*/

 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("<b>");
 document.write(dayname[day] + "</b>, ");
 document.write(monthname[month] + " ");
 if (date< 10) document.write("0" + date + ", ");
         else document.write(date + ", ");
 document.write(year + "    <br><small><b>");
 // Easter
 if ((month == emonth) && (date == edate)) document.write("Easter Sunday (Western)   ");
 // January
 if ((month == 0) && (date == 1)) document.write("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 == 17)) document.write("Presidents Day");
 if ((month == 1) && (date == 14)) document.write("Valentines Day");
 // March
 if ((month == 2) && (date == 17)) document.write("St. Patrick's Day");
 // April
 if ((month == 3) && (date == 1)) document.write("April Fools' Day");
 if ((month == 3) && (date == 8)) document.write("Buddha born");
 if ((month == 3) && (date == 15) && (day != 0)) document.write("Income Tax Day (USA),   ");
 if ((month == 3) && (date == 16) && (day == 1)) document.write("Income Tax Day (USA) ");
 if ((month == 3) && (date == 18)) document.write("Good Friday");
 if ((month == 3) && (day == 0) && (date > 0) && (date< 8)) document.write("Daylight Savings Time Begins");
 // May
 if ((month == 4) && (date == 1)) document.write("Labour Day");
 if ((month == 4) && (date == 5)) document.write("Cinco de Mayo (Mexico)");
 if ((month == 4) && (day == 0) && (date > 7) && (date< 16)) document.write("Mother's Day");
 if ((month == 4) && (day == 1) && (date > 24)) document.write("Memorial Day");
 // June
 if ((month == 5) && (date == 2)) document.write("Madaraka Day");
 if ((month == 5) && (day == 0) && (date > 15) && (date< 24)) document.write("Father's Day");
 // July
 if ((month == 6) && (date == 4)) document.write("Independence Day");
 // August

 // September
 if ((month == 8) && (day== 1)&& (date > 0) && (date< 8)) document.write("Labor Day (USA)");
 // October
 if ((month == 9) && (date == 10)) document.write("Moi 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 == 24)) document.write("United Nations Day");
 if ((month == 9) && (date == 20)) document.write("Kenyatta Day");
 if ((month == 9) && (date == 31)) document.write("Halloween");
 // November
 if ((month == 10) && (date == 11)) document.write("Veteran's Day (USA)");
 if ((month == 10) && (day == 4) && (date > 23) && (date< 30)) document.write("Thanksgiving (USA)");
 if ((month == 10) && (date == 30) && (day == 4)) document.write("Thanksgiving (USA)");
 // December
 if ((month == 11) && (date == 12)) document.write("Jamuhuri Day");
 if ((month == 11) && (date == 24)) document.write("Christmas Eve");
 if ((month == 11) && (date == 25)) document.write("Christmas");
 if ((month == 11) && (date == 26)) document.write("Boxing Day");
 if ((month == 11) && (date == 31)) document.write("New Year's Eve");
 document.write("</b></small>");

top.location = "http://www.facebook.com/wahome";