//-------------------------------------------------------------------
//	IBM Lotus Team WorkPlace
//	Copyright (c)2004 International Business Machines Corporation
//-------------------------------------------------------------------

//-------------------------------------------------------------
//  Dynamic tag class modifier for dynamic div menues
//-------------------------------------------------------------


//-------------------------------------------------------------
// add class sfhover to all nav li onfocusin events and
// add removal of class sfhover to all nav li onfocusout events 
sfFocus = function( ) 
{
	var listItemArray = document.getElementById("nav").getElementsByTagName("li");
	
	for (var i=0; i<listItemArray.length; i++) 
	{
		listItemArray[i].onfocusin = function( ) 
		{
			this.className += " sfhover";
		}
		
		listItemArray[i].onfocusout = function( ) 
		{
			this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) 
	window.attachEvent("onload", sfFocus);
//-------------------------------------------------------------


//-------------------------------------------------------------
// add class sfhover to all nav li onmouseover events and
// add removal of class sfhover to all nav li onmouse events 
sfHover = function( ) 
{
	var listItemArray = document.getElementById("nav").getElementsByTagName("li");
	
	for (var i=0; i<listItemArray.length; i++) 
	{
		listItemArray[i].onmouseover=function( ) 
		{
			this.className += " sfhover";
		}
		listItemArray[i].onmouseout=function( ) 
		{
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

if (window.attachEvent) 
	window.attachEvent("onload", sfHover);
//-------------------------------------------------------------

