<!-- Hide script in older browsers

// Global variables
stdBrowser = (document.getElementById) ? true : false;
menuVisible = false;

function moveMenuWithSwitch(switchElement,menuElement)
{
	var obj_switchElement = document.getElementById(switchElement);
	var obj_menuElement = document.getElementById(menuElement);

	if(obj_switchElement == null) obj_switchElement = switchElement;
	if(obj_menuElement == null) obj_menuElement = menuElement;
	
	// Create the Objects
	switchObj = (stdBrowser) ? obj_switchElement : eval("document." + switchElement);
	menuObj = (stdBrowser) ? obj_menuElement : eval("document." + menuElement);
	
	// Find the switch's position and assign it to the appropriate variables
	switchLeft = findPosX(switchObj) + 2;
	switchTop = findPosY(switchObj) + 36;

	// Set the menu equal to the switch's position
	menuObj.style.left = switchLeft + "px";
	menuObj.style.top = switchTop + "px";
	
	// Create copies of the current switchElement and menuElement
	switchElementTwo = switchElement;
	menuElementTwo = menuElement;
	
	// Re-call this positioning script every 1/2 second
	setTimeout("moveMenuWithSwitch(switchElementTwo,menuElementTwo)", 500);
}

function showMenu(menuElement)
{
	if ( menuVisible == false)
	{
		menuObj = (stdBrowser) ? document.getElementById(menuElement) : eval("document." + menuElement);
		menuObj.style.visibility = "visible";
		menuVisible = true;
	}
}

function toggleVisibility(menuElement)
{
	// Create the Object
	menuObj = (stdBrowser) ? document.getElementById(menuElement) : eval("document." + menuElement);
	
	if (menuVisible == false)
	{
		// Make the menu visible
		menuObj.style.visibility = "visible";
		menuVisible = true;
	}
	else if (menuVisible == true)
	{
		// Make the menu hidden
		menuObj.style.visibility = "hidden";
		menuVisible = false;
	}
	else
	{
		alert("There is a conflict within the sites script. Please notify the webmaster.");
	}
}


/////////////////////////////////////////
// Following script borrowed from PP:K //
/////////////////////////////////////////

function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

// End hiding script -->

