/** IE script for nav **/
// ** Special thanks to Nick Rigby & A List Apart
// http://www.alistapart.com/articles/horizdropdowns/

// this script runs only for windows ie

// second - changed to make script work on all submenus

startList = function() {
	if (document.all&&document.getElementById) {
		//alert("startList");
		navRoot = document.getElementById("Mnav");
		setChildNodes(navRoot);
	}
}
function setChildNodes(element) {
		//alert(element.childNodes.length);
		var x = 0;
		for (var i=0; i<element.childNodes.length; i++) {
			node = element.childNodes[i];
			if (node.nodeName=="LI") {
				x++;
				node.className += " standard";
				node.onmouseover=function() {
					this.className=this.className.replace(" standard", " hover");
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" hover", " standard");
				}
				if (node.hasChildNodes()) {
					// look for a UL
					for (var n=0; n<node.childNodes.length; n++) {
						nodeB = node.childNodes[n];
						if (nodeB.nodeName=="UL") {
							// recursive script
							setChildNodes(nodeB);
						}
					}
				}
			}
		}
		//alert("element "+element.id+" has "+x+" LI tags");
	return;
}
window.onload=startList;
