/*		Safety Partners menu code
		Copyright 2005, Safety Partners Inc., All Rights Reserved
		Safety Partners, Inc., 39 Blake Road, Lexington, MA 02420
		webmaster@safetypartnersinc.com
*/
// In MSIE assign the "iehover" style to all live top-level list items
// on a mouseover, and remove it on mouseout, so that their color will
// change properly
startList = function() {
	if (document.all&&document.getElementById) {
		IEAdjust("topul", "live", "ietophover");
		IEAdjust("sideul", null, "iesidehover");
	}
}
function IEAdjust(menuID, listClass, newClass) {
	menuRoot = document.getElementById(menuID);
	for (i=0; i<menuRoot.childNodes.length; i++) {
		node = menuRoot.childNodes[i];
		if ((node.nodeName=="LI") && (listClass == null ||
				(node.className==listClass))) {
			node.onmouseover=function() {
				this.className += " " + newClass;
			}
			node.onmouseout=function() {
				this.className = this.className.replace(" " + newClass, "");
			}
		}
	}
}
window.onload=startList;

