/* holiday.js
 * List of holidays for calendar from http://www.dynarch.com/projects/calendar
 */

var HOLIDAYS = new Array();
    for (year=2011; year <= 2014; year++) {
      HOLIDAYS[year] = new Array(11);
      for (month=0; month <= 11; month++) {
        HOLIDAYS[year][month] = new Array(31);
      }
    }
	
    HOLIDAYS[2011][0][1] = "New Year's Day";
    HOLIDAYS[2011][0][18] = "Martin Luther King Day";
    HOLIDAYS[2011][1][14] = "Valentine's Day";
    HOLIDAYS[2011][1][15] = "President's Day";
    HOLIDAYS[2011][2][30] = "Passover";
    HOLIDAYS[2011][3][2] = "Good Friday";
    HOLIDAYS[2011][3][4] = "Easter";
    HOLIDAYS[2011][4][9] = "Mother's Day";
    HOLIDAYS[2011][4][24] = "Victoria Day (Canada)";
    HOLIDAYS[2011][4][31] = "Memorial Day";
    HOLIDAYS[2011][5][20] = "Father's Day";
    HOLIDAYS[2011][6][1] = "Canada Day";
    HOLIDAYS[2011][6][4] = "Independence Day";
    HOLIDAYS[2011][8][6] = "Labor Day";
    HOLIDAYS[2011][8][9] = "Rosh Hashanah";
    HOLIDAYS[2011][8][18] = "Yom Kippur";
    HOLIDAYS[2011][9][11] = "Columbus Day/Thanksgiving (Canada)";
    HOLIDAYS[2011][9][31] = "Halloween";
    HOLIDAYS[2011][10][11] = "Veterans Day/Remembrance Day";
    HOLIDAYS[2011][10][25] = "Thanksgiving";
    HOLIDAYS[2011][10][26] = "Thanksgiving";
    HOLIDAYS[2011][11][2] = "Hanukkah";
    HOLIDAYS[2011][11][25] = "Christmas";
    HOLIDAYS[2011][11][26] = "Boxing Day (Canada)";
	
    function calHoliday(date, year, month, day) {
      if (HOLIDAYS[year][month][day])
        return HOLIDAYS[year][month][day]; // return holiday name
      return false;
    }


