<!--
	/* MENUS.JS */
	
	var eOpenMenu = null;
	var offsetMenuLeft = 1; //Number of pixels to the left side of the menu.
	var offsetMenuTop = 90; //Number of pixels to the top side of the menu.


	function OpenMenu(eSrc,eMenu)
	{
		eMenu.style.left = offsetMenuLeft + eSrc.offsetLeft + divMenuBar.offsetLeft;
		eMenu.style.top = offsetMenuTop + divMenuBar.offsetHeight + divMenuBar.offsetTop;
		eMenu.style.visibility = "visible";		
		ShowHide("hidden");
		eOpenMenu = eMenu;
	}

	function CloseMenu(eMenu)
	{
		ShowHide("visible");
		eMenu.style.visibility = "hidden";
		eOpenMenu = null;
	}

	function ShowHide(option) {
		//for (i=0; i&lt;document.all.tags(elmTag).length; i++){
		obj = document.getElementById('MenuHide');
		if (!obj || !obj.offsetParent) {}
		else{
		
		obj.style.visibility = option;
		}
	}

/*	function showDiv(obj) {
		hideElms('SELECT');
		obj.style.visibility = "visible";
	}

*/

	function document.onmouseover()
	{
		var eSrc = window.event.srcElement;
		if (eSrc!=null)
		{
		if ("clsMenuBarItem" == eSrc.className)
		{
			eSrc.style.color = "moccasin"; 
			var eMenu = document.all[eSrc.id.replace("tdMenuBarItem","divMenu")];
			if (eOpenMenu && eOpenMenu != eMenu) 
			{
				CloseMenu(eOpenMenu);
			}
			if (eMenu) 
			{
				OpenMenu(eSrc,eMenu);
			}
		}
		else if (eOpenMenu && !eOpenMenu.contains(eSrc) && !divMenuBar.contains(eSrc)) 
		{
			CloseMenu(eOpenMenu);
		}
		}
	}
	
	function document.onmouseout()
	{
		var eSrc = window.event.srcElement;
		if (eSrc!=null)
		{				
		if ("clsMenuBarItem" == eSrc.className)
		{
			eSrc.style.color = ""; 
		}
		}
	}	
	
	    
/********************************************************************  
*  Author: David Capelo  
*  Description: JavaScript Menu Functions that control the behavior of 
*	the Top Menu. (MENU TYPE - TOP TABS)
*	This function assumes that the two images, normal and glow, 
*	of each menu item will be call the same with the sufix _Off 
*	or _On.  The images are also assumed to be GIF
*  History: 9/18/2002 - Page Creation
* 
********************************************************************/
//***********************************************************
//Author - David Capelo
//This function assumes that the two images, normal and glow, 
//of each menu item will be call the same with the sufix _Off 
//or _On.  The images are also assumed to be GIF
//***********************************************************
var currentPageImageID="";

function preselectMenuImages(imageID) {
	//Hold imageID selected
	currentPageImageID = imageID;
	if (document.getElementById(imageID) != null)	
	{
	    swapImage(document.getElementById(imageID));		
	    
	}
	else
	    alert("object could not be found!");
}
function swapImgRestore(obj){
    swapImage(obj);
};
function swapImage(obj){
	var index;
	var i;	
	
	if (obj.src.indexOf("_on.gif") == -1)
	{
	    obj.src = "/images/menus/" + obj.id + "_on.gif";
	}
	else
	{
	    obj.src = "/images/menus/" + obj.id + "_off.gif";
	}	

};

-->



