<!--
	//filename: navigation.js
	//project: willburt.com
	//decription: main navigation dropdowns used throughout the site
	
	var lngLastMenuVisible = 0;
	var objNavTimer;
	var objNavLoader;
	
	function ShowSubNav( lngPagID )
	{
		//hide the last dropdown menu if applicable
		if ( lngLastMenuVisible != lngPagID )
		{
			HideSubNavDo( lngLastMenuVisible );
		}
		//display the current dropdown menu for the navigation parent
		if ( objMenu = document.getElementById( 'navDropDown' + lngPagID ) )
		{
			objMenu.style.display = 'block';
		}
		//underscore the navigation parent
		if ( objUnderScore = document.getElementById( 'pagParentUnderScore' + lngPagID ) )
		{
			objUnderScore.style.visibility = 'visible';
		}
		//capture the current dropdown
		lngLastMenuVisible = lngPagID;
		return;
	}
	
	function HideSubNav( lngPagID )
	{
		//set the timeout to hide the open dropdown menu
		objNavTimer = setTimeout( 'HideSubNavDo(' + lngPagID + ')', 750 );
	}
	
	function HideSubNavDo( lngPagID )
	{
		//hide the dropdown menu
		if ( objMenu = document.getElementById( 'navDropDown' + lngPagID ) )
		{
			objMenu.style.display = 'none';
			lngLastMenuVisible = 0;
		}
		//hide the navigation parent underscore
		if ( objUnderScore = document.getElementById( 'pagParentUnderScore' + lngPagID ) )
		{
			objUnderScore.style.visibility = 'hidden';
		}
		return;
	}
	
	function SubNavActive()
	{
		//clear any timeout set by the HideSubNav function
		clearTimeout( objNavTimer );
	}
	
	function SubNavUnderScoreOn( lngPagID )
	{
		//set the class name for the dropdown menu item to ON
		if ( objSpacer = document.getElementById( 'pagChildSpacer' + lngPagID ) )
		{
			objSpacer.className = 'pagChildSpacerOn';
		}
		//display the underscore for the dropdown menu
		if ( objUnderScore = document.getElementById( 'pagChildUnderScore' + lngPagID ) )
		{
			objUnderScore.style.visibility = 'visible';
		}
		return;
	}
	
	function SubNavUnderScoreOff( lngPagID )
	{
		//set the class name for the dropdown menu item to OFF
		if ( objSpacer = document.getElementById( 'pagChildSpacer' + lngPagID ) )
		{
			objSpacer.className = 'pagChildSpacerOff';
		}
		//hide the underscore for the dropdown menu item
		if ( objUnderScore = document.getElementById( 'pagChildUnderScore' + lngPagID ) )
		{
			objUnderScore.style.visibility = 'hidden';
		}
		return;
	}
	
	// MARKET ICONS
	function UpdateMarketLabel( strMktName )
	{
		if ( objMktLabel = document.getElementById( 'marketIconLabel' ) )
		{
			objMktLabel.innerHTML = strMktName;
		}
	}
//-->