// JavaScript Document

startList = function() {

/* Must combine the menu animation using JavaScript for Internet Explorer */
// Here we are "animating" the main navigation bar
	if (document.all && document.getElementById) {
			navRoot = document.getElementById("dmenu");
			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", "");
					}
				}
			}
		}


// Here we are "animating" the side navigation bar
	if (document.all && document.getElementById) {
		navSideRoot = document.getElementById("side_dmenu");
		for (j=0; j < navSideRoot.childNodes.length; j++) {
			nodeSide = navSideRoot.childNodes[j];
			if (nodeSide.nodeName=="LI") {
				nodeSide.onmouseover=function() {
					this.className+=" side_over";
				}
				nodeSide.onmouseout=function() {
					this.className=this.className.replace(" side_over", "");
				}
			}
		}
	}
}

// Fire in the hole!
window.onload=startList;

