<!--
function processNav(sWhichNav,sLevel1Nav,sLevel2Nav,sLevel3Nav)
{
/***************************
This function processes the nav

Input: string identifier indicating which nav to affect i.e. main nav or highlighted nav, id of the 1st level nav as a string, suffix of the id of the 2nd level nav as a string (relative to the top level), suffix of the id of the 3rd level nav as a string (relative to the 2nd level)
Returns: nothing
***************************/
	var sDelim = '-'; //delimiter used in nav naming mechanism
	if (showNav(sWhichNav+sDelim+sLevel1Nav))
	{
		//only process next level in heirarchy if the previous level was successful
		//show the container - there will always be a container with naming nomenclature "sLevel1Nav-SubNav"
		var sLevel1SNavContainer = sWhichNav+sDelim+sLevel1Nav+sDelim+'SubNav';
	    //if its successful also show its container
		showNavItemContainer( sLevel1SNavContainer );
		//now if we have to show the second level
		if (showNav(sWhichNav+sDelim+sLevel1Nav+sDelim+sLevel2Nav))
		{
			//only process next level in heirarchy if the previous level was successful
			//show the container - there will always be a container with naming nomenclature "sLevel1Nav-sLevel2Nav-SubNav"
			var sLevel2SNavContainer = sWhichNav+sDelim+sLevel1Nav+sDelim+sLevel2Nav+sDelim+'SubNav';
		    showNavItemContainer( sLevel2SNavContainer );
			//now if we have to show the third level
			showNav(sWhichNav+sDelim+sLevel1Nav+sDelim+sLevel2Nav+sDelim+sLevel3Nav);
		}
	}
}

function showNav(sNav)
{
/***************************
This function processes the 1st level nav

Input: id of the item to be turned on as a string
Returns: true if successful, false if any error occurs and nav cannot be turned on for any reason
***************************/
	if (sNav=='') return false;
	else 
	{
		return showNavItem( sNav );
	}
}

function showNavItem( sItem ){
/***************************
This function turns on the specified item if found on the page

Input: id of the item to be turned on as a string
Returns: true if successful, false if any error occurs and nav cannot be turned on for any reason
***************************/
	if (document.getElementById) {
		if (String(sItem)!='' && String(sItem)!='null' && String(sItem)!='undefined')
		{
			var oItem = document.getElementById( sItem );
			if (oItem == null) return (false);
			else
			{
				oItem.className = "on";

				return (true);
			}
		}
		else return (false);
	}
	else
		return (false);
}

function showNavItemContainer( sItem ){
/***************************
This function toggles the display of the specified item if found on the page

Input: id of the item to be turned on as a string
Returns: true if successful, false if any error occurs and nav cannot be turned on for any reason
***************************/
	if (document.getElementById) {
	
		if (String(sItem)!='' && String(sItem)!='null' && String(sItem)!='undefined')
		{
			var oItem = document.getElementById( sItem );
			if (oItem == null) return (false);
			else
			{
				oItem.style.display = "";

				return (true);
			}
		}
		else return (false);
	}
	else
		return (false);
}

//-->