<!--
	//filename: navigation.js
	//project: novasolutionsinc.com
	//decription: main navigation dropdowns used throughout the site
	
	var lngLastMenuVisible = 0;
	var objNavTimer;
	
	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 ) )
		{
			if ( navigator.appName == 'Microsoft Internet Explorer' )
			{
				objMenu.style.filter = 'progid:DXImageTransform.Microsoft.GradientWipe(duration=.35, WipeStyle=1) progid:DXImageTransform.Microsoft.Shadow( color=#8f8e8d,direction=130,strength=2 )';
				objMenu.filters[0].apply();
				objMenu.filters[0].play();
			}
			objMenu.style.display = 'block';
		}
		//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;
		}
		return;
	}
	
	function SubNavActive()
	{
		//clear any timeout set by the HideSubNav function
		clearTimeout( objNavTimer );
	}
//-->
