// Copyright 2002, 2007 Factor of 4, LLC -- www.factorof4.com
// All Rights Reserved.
//
// Version 2007-02-24 GRD

// This script enables onouseover and onmouse out for IE which doesn't support the CSS pseudo-class "hover". 
// Thus it enables a substantially CSS primary and secondary drop-down menuing system.


startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		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", "");
				}
			}
		}
	}
}
window.onload=startList;
