/**
 * Script for ensuring menu works properly on EI (not needed for other browsers).
 */

/*
 * Function -  
 */
function elementClassModifier() {

/*
 * if array of all elements is not null (IE only) and can retrieve elements by id
 * run the following code.
 */
	if (document.all&&document.getElementById) {
	
		// Get the overall ul element (the only child of the menu-bar element).
		navRoot = document.getElementById("menu-bar").childNodes[0];
	
		// Work through each li child element.
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
					// Define element within over class whilst mouse is over element.
					node.onmouseover=function() {this.className+=" over";}
					// Remove over class status once mouse has moved off element.
					node.onmouseout=function() {this.className=this.className.replace(" over", "");
					}
				} // End of if block
				
			} // End of for loop - no more child nodes.
		
		
		
		
		
		} // End of if block - IE specific action completed.
		
	} // End of function.

/*
 * Run script on loading page.
 */
window.onload=elementClassModifier;