// JavaScript Document
function showSubNav(showNav, hereSubNav)
{
	// check if browser is DOM compliant
	if (!document.getElementById)
    document.getElementById = function() { return null; }
	
	// if showNav isn't set then we exit
	if (showNav == null || showNav == "") return;
	
	var list = document.getElementById(showNav);
	var subList = document.getElementById(hereSubNav);
	
	var display = list.style.display;
	list.style.display = (display == "block") ? "none" : "block";
	if (hereSubNav != "" && subList != null)
		subList.className = " hereSubNav";
}
function locationTab(onTab)
{
	if (!document.getElementById)
    document.getElementById = function() { return null; }
	if (onTab != "" || onTab != null)
	{
		subNavHide = document.getElementById("subNav");
		if(subNavHide != null)
		{
			subNavHide.style.background = "url('/images/subMenu_background.gif') no-repeat left top";
			subNavHide.style.marginBottom = "1px";
		}
	}
	var loc = document.getElementById(onTab);
	if (loc.className == "end2")
	{
		menuBack = document.getElementById("topMenu");
		menuBack.style.backgroundImage = "url('/images/menu_background_end.gif')";
		loc.className = " endHereTab";
	}
	else
	{
		if (onTab != "prdct")
		{
			loc.className = " hereTab";
		}
		else
		{
			loc.className = " firstHereTab";
		}
	}
	
}

// function that hides or shows an element
function showHide(id)
{
	// check if browser is DOM compliant
	if (!document.getElementById)
    document.getElementById = function() { return null; }
	
	if (id == null || id == "") return;
	
	var tag = document.getElementById(id);
	var state = tag.style.display;
	tag.style.display = (state == "block") ? "none" : "block";
}