<!--
	//filename: navigation.js
	//project: guardiantitle.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';
		}
		//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 );
	}
	
	function OpenPDF( strFilename, strName )
	{
		POPUP_Open( 'pdf/' + strFilename, strName, 'resizable=yes,width=640,height=560' );
	}
//-->