// drop-down menus based on the technique known as "son of suckerfish dropdowns"
// http://www.htmldog.com/articles/suckerfish/dropdowns/

// this function attaches something akin to a "hover" pseudo-element to all <li> tags
// that are part of the navitgation for Windows versions of Internet Explorer
startList = function() {
	nodes = document.getElementById("navigation").getElementsByTagName("LI");
	for (i = 0; i < nodes.length; i++) {
		nodes[i].onmouseover = function() {
			this.className += " over";
		}
		nodes[i].onmouseout = function() {
			this.className = this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}

// window.attachEvent is IE/Win-only
if (window.attachEvent) window.attachEvent("onload",startList);