/*
Yes, I wrote this code, but with lots of "input" from http://www.w3schools.com/js/default.asp - thanks for all the great information!

webmaster@djsteiner.com

2012 FEDERAL HOLIDAYS

http://www.opm.gov/Operating_Status_Schedules/fedhol/2012.asp

New Year’s Day - Sunday, January 1
Memorial Day - Monday, May 28
Independence Day - Wednesday, July 4
Labor Day - Monday, September 3
Thanksgiving Day - Thursday, November 22 & Friday, November 23
Christmas Day - Tuesday, December 25

Jan=0, 31
Feb=1, 28 or 29 in 2012, 2016...
Mar=2, 31
Apr=3, 30
May=4, 31
Jun=5, 30
Jul=6, 31
Aug=7, 31
Sep=8, 30
Oct=9, 31
Nov=10, 30
Dec=11, 31
*/

var d = new Date();

// d.setMonth(11,18);

// New Years Day - Sunday, January 1
if (d.getMonth()==11 && d.getDate()>=26 && d.getDate()<=31)
{
var h=("Because of the upcoming New Years Holiday, we will be open on Sunday, January 1st for boarding only, during the hours of 8a - 9a, 1p - 2p and 6p - 7p. We apologize for any inconvenience.");
}
// Memorial Day - Monday, May 28
else if (d.getMonth()==4 && d.getDate()>=21 && d.getDate()<=27)
{
var h=("Because of the upcoming Memorial Day Holiday, we will be open on Monday, May 28th for boarding only, during the hours of 8a - 9a, 1p - 2p and 6p - 7p. We apologize for any inconvenience.");
}
// Independence Day - Wednesday, July 4
else if ((d.getMonth()==5 && d.getDate()>=27) || (d.getMonth()==6 && d.getDate()<=3))
{
var h=("Because of the upcoming Independence Day Holiday, we will be open on Wednesday, July 4th for boarding only, during the hours of 8a - 9a, 1p - 2p and 6p - 7p. We apologize for any inconvenience.");
}
// Labor Day - Monday, September 3
else if ((d.getMonth()==7 && d.getDate()>=27) || (d.getMonth()==8 && d.getDate()<=2))
{
var h=("Because of the upcoming Labor Day Holiday, we will be open on Monday, September 3rd for boarding only, during the hours of 8a - 9a, 1p - 2p and 6p - 7p. We apologize for any inconvenience.");
}
// Thanksgiving - Thursday, November 22 & Friday, November 23
else if (d.getMonth()==10 && d.getDate()>=15 && d.getDate()<=22)
{
var h=("Because of the upcoming Thanksgiving Holiday, we will be open on Thursday, November 22nd and Friday, November 23rd for boarding only, during the hours of 8a - 9a, 1p - 2p and 6p - 7p. We apologize for any inconvenience.");
}
// Christmas Day - Tuesday, December 25
else if (d.getMonth()==11 && d.getDate()>=18 && d.getDate()<=24)
{
var h=("Because of the upcoming Christmas Holiday, we will be open on Tuesday, December 25th for boarding only, during the hours of 8a - 9a, 1p - 2p and 6p - 7p. We apologize for any inconvenience.");
}
else
{
var h=(" ");
}


// sets final color, font size for webpage

var holiday = h.italics().fontcolor("#FF0000");
