//-->

// JavaScript Document

//-->

function SetupPopupWindow ()
{

	var popup = document.getElementById("popupFlash");
	if (popup)
		{
		var closeButton = document.getElementById("closeButton");

		if (closeButton)
			closeButton.onclick = function()
				{
				popup.style.display = "none";
				}

		if (clientHasSeen2008HolidayPopup() == false)
			{

			popup.style.display = "inline";

			recordThatClientHas2008SeenHolidayPopup();

			}
		}
}


//-->

// Cookie for One-time Loading



function recordThatClientHas2008SeenHolidayPopup ()	   // this stores the cookie
{

	var myCookie = new Cookie (document, "MM", 99999);
	myCookie.retrieve();	// read the cookie and ALL of its values, so we don't lose anything
	myCookie.clientHasSeen2008HolidayPopup = "yes";
	myCookie.store();

}

function clientHasSeen2008HolidayPopup ()	 // this is the check
{

	var myCookie = new Cookie (document, "MM", 99999);
	var result = (myCookie.retrieve() && myCookie != null && myCookie.clientHasSeen2008HolidayPopup == "no") ? true : false;
	return result;

}

//-->

// Cross-browser document event handling Window onload -- DIRECT CODE

//-->

if (window.addEventListener)
	{

	window.addEventListener("load", SetupPopupWindow, false);

	}
else if (document.addEventListener)
	{

	document.addEventListener("load", SetupPopupWindow, false);

	}
else if (window.attachEvent)
	{

	window.attachEvent("onload", SetupPopupWindow);

	}

//-->

//load flash

//-->
 
function WriteFlash (width, height, fileName, skip, flashReplacement)
{

	if (skip)
		{
		document.write("<p id=\"skipflash\" class=\"skipbutton\"><a href=\"default.asp?nf=0\">Skip &gt;&gt;&gt;</a></p>");
		}

	// Check if the current browser is IE or not and write the beginning of the Flash Object html code accordingly...

	if (navigator.appName != "Microsoft Internet Explorer")
		{

		document.write("<object type=\"application/x-shockwave-flash\" data=\"" + fileName + "\" width=\"" + width + "\" height=\"" + height + "\" id=\"flMovie\">");

		}
	else
		{

		document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"" + width + "\" height=\"" + height + "\" id=\"flMovie\">");

		document.write("<param name=\"movie\" value=\"" + fileName + "\" />");

		}



	document.write("<param name=\"wmode\" value=\"transparent\">");

	document.write("<p>Flash player is not installed.  Please download flash player from <a href=\"http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash&Lang=English\">the Adobe website</a>.</p>");

	// If any replacement has been provided, insert it...

	if (flashReplacement!=undefined)
		{

		document.write(flashReplacement);

		}

	document.write("</object>");

}


