// Javascript for IE & Opera to mimic the :hover action in CSS. Loops through the eagle main navigation container for li tags and on mouse over mouse out performs rollovers by taking out or putting in the style "over" in the CSS .over displays the block to make it visible.

startList = function() 
{
	//alert( "navigator.appName= " + navigator.appMinorVersion  );
	if (document.all&&document.getElementById) 
	{
		//alert("contentTable.className= " + contentTable.className);
		navRoot = document.getElementById("eaglemainnavigation");
		for (i=0; i<navRoot.childNodes.length; i++) 
		{
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") 
			{
				node.onmouseover=function() 
				{
					this.className+=" over";
  				}
  				node.onmouseout=function() 
				{
  					this.className=this.className.replace(" over", "");
   				}
   			}
  		}
		// Redefines the class for IE (but not Opera) appMinorVersion makes the distinction.
		if (document.all&&document.getElementById&&navigator.appMinorVersion==";SP2;") 
		{
			// for TABLE contentTable.className=contentTable.className.replace("content", "othercontent");
			document.all.contentTable.className=document.all.contentTable.className.replace("content", "othercontent");
		}
		//alert("contentTable.className= " + contentTable.className);
	}
}

window.onload=startList;