sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



// @scriptname	menuExpandable3
// @purpose		Implements an expandable menu based on an HTML list
// @version		?
// @author		Dave Lindquist (http://www.gazingus.org)

if (!document.getElementById)
    document.getElementById = function() { return null; }

function initializeMenu(menuId, actuatorId) {
    var menu = document.getElementById(menuId);
    var actuator = document.getElementById(actuatorId);

    if (menu == null || actuator == null) return;

    //if (window.opera) return; // I'm too tired

    actuator.parentNode.className = "closed";	
	actuator.onclick = function() {
        var display = menu.style.display;
    	this.parentNode.className = 
			(display == "block") ? "closed" : "expanded";
        menu.style.display = (display == "block") ? "none" : "block";

        return false;
    }
}