	var bolHome = false;
	var	mastheadLeftImg	= new Image();
	var	mastheadCenterImg =	new	Image();
	var	mastheadRightImg = new Image();

	mastheadLeftImg.src	= "/images/left_masthead_image.jpg";
	mastheadCenterImg.src =	"/images/center_masthead_image.jpg";
	mastheadRightImg.src = "/images/right_masthead_image.jpg";

	var	winPopup;

//-------------------------------------------------------------------------------------------------
// Load	the	three masthead images.

	function loadMastheadImages() {
		
		document["leftMastheadImage"].src =	mastheadLeftImg.src;
		document["centerMastheadImage"].src	= mastheadCenterImg.src;
		document["rightMastheadImage"].src = mastheadRightImg.src;
	}

//-------------------------------------------------------------------------------------------------
// Open	a new child	window or close	and	reopen an existing child window.
	
	function openPopupWin(strURL, strParams)
	{
		if (winPopup == null)
		{
			winPopup = window.open(strURL + strParams, "", "width=732,height=415,scrollbars=yes,resizable=yes,left=0,top=0");
		}
		else
		{
			if (winPopup.closed == false)
			{
				winPopup.close();
			}
			winPopup = window.open(strURL + strParams, "", "width=732,height=415,scrollbars=yes,resizable=yes,left=0,top=0");
		}
	}

//-------------------------------------------------------------------------------------------------
// Close existing child window.

	function cleanUp()
	{
		bolhome = false;
		
		if (winPopup != null)
		{
			if (winPopup.closed == false)
			{
				winPopup.close();
				winPopup = null;
			}
		}
	}
	
//-------------------------------------------------------------------------------------------------
// Top navigation button functionality.

	function browseToNavItem(strDestination, strURL)
	{
		document.getElementById("destination").value = strDestination;
		document.left_navigation.action = strURL;
		document.left_navigation.submit();
	}

//-------------------------------------------------------------------------------------------------
// Set top navigation button rollover states.

	function setNavItemState(strNavItem, strState)
	{
		if (strNavItem != 1)
		{
			if (strState == "on")
			{
				depressButton(strNavItem)
			}
			else
			{
				raiseButton(strNavItem);
			}
		}
		else
		{
			if (bolHome == false)
			{
				if (strState == "on")
				{
					depressButton(strNavItem);
				}
				else
				{
					raiseButton(strNavItem);
				}
			}
		}
	}
	
	function depressButton(strNavItem)
	{
		document.getElementById("nav_item_" + strNavItem).style.backgroundColor = "#C5C5C5";
		document.getElementById("nav_item_" + strNavItem).style.cursor = "hand";
		document.getElementById("nav_item_caption_" + strNavItem).style.color = "#000000";
		document.getElementById("nav_item_caption_" + strNavItem).style.paddingLeft = "8px";
		document.getElementById("nav_item_caption_" + strNavItem).style.paddingRight = "8px";
		document.getElementById("nav_item_outer_rect_" + strNavItem).style.borderLeftWidth = "1px";
		document.getElementById("nav_item_outer_rect_" + strNavItem).style.borderRightWidth = "1px";
		document.getElementById("nav_item_middle_rect_" + strNavItem).style.borderLeftWidth = "1px";
		document.getElementById("nav_item_middle_rect_" + strNavItem).style.borderRightWidth = "1px";
		document.getElementById("nav_item_middle_rect_" + strNavItem).style.borderTopColor = "#909090";
		document.getElementById("nav_item_middle_rect_" + strNavItem).style.borderBottomColor = "#D9D9D9";
		document.getElementById("nav_item_inner_rect_" + strNavItem).style.borderLeftWidth = "1px";
		document.getElementById("nav_item_inner_rect_" + strNavItem).style.borderRightWidth = "1px";
		document.getElementById("nav_item_inner_rect_" + strNavItem).style.borderTopColor = "#B4B4B4";
		document.getElementById("nav_item_inner_rect_" + strNavItem).style.borderBottomColor = "#CDCDCD";
	}

	function raiseButton(strNavItem)
	{
		document.getElementById("nav_item_" + strNavItem).style.backgroundColor = "#838595";
		document.getElementById("nav_item_" + strNavItem).style.cursor = "default";
		document.getElementById("nav_item_caption_" + strNavItem).style.color = "#F0F0F0";
		document.getElementById("nav_item_caption_" + strNavItem).style.paddingLeft = "11px";
		document.getElementById("nav_item_caption_" + strNavItem).style.paddingRight = "11px";
		document.getElementById("nav_item_outer_rect_" + strNavItem).style.borderLeftWidth = "0px";
		document.getElementById("nav_item_outer_rect_" + strNavItem).style.borderRightWidth = "0px";
		document.getElementById("nav_item_middle_rect_" + strNavItem).style.borderLeftWidth = "0px";
		document.getElementById("nav_item_middle_rect_" + strNavItem).style.borderRightWidth = "0px";
		document.getElementById("nav_item_middle_rect_" + strNavItem).style.borderTopColor = "#AEAFBA";
		document.getElementById("nav_item_middle_rect_" + strNavItem).style.borderBottomColor = "#60626D";
		document.getElementById("nav_item_inner_rect_" + strNavItem).style.borderLeftWidth = "0px";
		document.getElementById("nav_item_inner_rect_" + strNavItem).style.borderRightWidth = "0px";
		document.getElementById("nav_item_inner_rect_" + strNavItem).style.borderTopColor = "#9495A3";
		document.getElementById("nav_item_inner_rect_" + strNavItem).style.borderBottomColor = "#787A88";
	}
	
//-------------------------------------------------------------------------------------------------
// Close About PSD popup and redirect main window.

function redirectMainPage(strDestination)
{
	if(confirm("Following this link will close the About PSD window and redirect PSD Online's main\nwindow. Do you wish to continue?"))
	{
		top.close();
		top.opener.location.href = strDestination;
	}
}
	
//-------------------------------------------------------------------------------------------------
// Close About PSD popup and open a new window.

function openNewContentPage(strDestination)
{
	if(confirm("Following this link will close the About PSD window and open a new window\nto display the selected content. PSD Online will continue to be available\nbehind the new window. Do you wish to continue?"))
	{
		top.close();
		window.open(strDestination, "");
	}
}