/*
Title: JS to apply over class to menu items to activate drop-menu on mouse over *for IE sub 6*
Author: etalented.co.uk
Updated: May, 2006
*/

subMenu = function() {
	if (document.all && document.getElementById) {
		var mainMenu = document.getElementById("mainMenu");
		var mainMenuItems = mainMenu.getElementsByTagName("LI");
		for (i=0; i<mainMenuItems.length; i++) {
			li = mainMenuItems[i];
			li.onmouseover = function() {
				this.className += " over";
			}
			li.onmouseout = function() {
				this.className = this.className.replace(" over", "");
			}
		}
	}
}
window.onload = subMenu;