
// this function is used for the holiday popup from the home page.
function PopUp()
{
 if(document.cookie==null || document.cookie=="")
		{
		var myDate = new Date();
		// Y2K Fix
		if (myDate.getYear() <= 1000) var myYear= myDate.getYear() + 1900;
		else  myYear= myDate.getYear(); 
		var myMonth = myDate.getMonth() +1; // this line gets the Month variable to correspond with the 		calendar month.
		var dayOfMonth = myDate.getDate();  // this line gets the current date (day of the month).
		var holiday = (myMonth + "/" + dayOfMonth + "/" + myYear);
		//document.write(holiday);
		var dateArray = new Array();
		dateArray["11/20/2006"] = "thanksgiving";
		dateArray["11/21/2006"] = "thanksgiving";
		dateArray["11/22/2006"] = "thanksgiving";
		dateArray["11/23/2006"] = "thanksgiving";
	
		dateArray["12/21/2006"] = "christmas";
		dateArray["12/22/2006"] = "christmas";
		dateArray["12/23/2006"] = "christmas";
		dateArray["12/24/2006"] = "christmas";
		dateArray["12/25/2006"] = "christmas";

		dateArray["12/28/2006"] = "newyear";
		dateArray["12/29/2006"] = "newyear";
		dateArray["12/30/2006"] = "newyear";
		dateArray["12/31/2006"] = "newyear";
		dateArray["1/1/2007"] = "newyear";

		dateArray["5/24/2007"] = "memorial";
		dateArray["5/25/2007"] = "memorial";
		dateArray["5/26/2007"] = "memorial";
		dateArray["5/27/2007"] = "memorial";
		dateArray["5/28/2007"] = "memorial";

		dateArray["7/1/2007"] = "independence";
		dateArray["7/2/2007"] = "independence";
		dateArray["7/3/2007"] = "independence";
		dateArray["7/4/2007"] = "independence";

		dateArray["8/30/2007"] = "labor";
		dateArray["8/31/2007"] = "labor";
		dateArray["9/1/2007"] = "labor";
		dateArray["9/2/2007"] = "labor";
		dateArray["9/3/2007"] = "labor";

		if (dateArray[holiday])
			{
			window.open('holidays.htm', dateArray[holiday], 'scrollbars=no,toolbar=no,width=435,height=400');
			}
		}
	document.cookie="Visited=Yes;";
}

