// Filename: menu.js
// Project : bennetconstruction.com
//
// Description:
// General script for use on all of the pages.  Rollover images and dropdown menus
//
// Revision History:
// 04MAR2004 - MJT - Initial development.  Pulled from pages



// strVisible
// Global variable to track if any specific menu is currently visible
var strVisible = "";

// ShowMenu
// Handles the dropdown menus.  Call with the name of the menu item to display
// or call with empty string to hide the menus
function ShowMenu( strID )
{
	var	objMenu;
				
	if ( document.getElementById )
	{
		if ( ( strVisible != "" ) && ( strVisible != strID ) )
		{
			if ( objMenu = document.getElementById( strVisible ) )
			{
				objMenu.style.visibility = 'hidden';
			}
		}
		if ( strID != '' )
		{
			if ( objMenu = document.getElementById( strID ) )
			{
				objMenu.style.visibility = 'visible';
				strVisible = strID;
			}
		}
	}
}

