function initMenu() {
	var _hold = document.getElementById("nav");
	if(_hold){
		var nodes = _hold.getElementsByTagName("li");
		for (var i=0; i<nodes.length; i++) {
			nodes[i].onmouseover = function() {
				this.className += " hover";
				
			}
			nodes[i].onmouseout = function() {
				this.className = this.className.replace(" hover", "");
				
			}
		}
	}
	var _hold = document.getElementById("main-nav");
	if(_hold){
		var nodes = _hold.getElementsByTagName("li");
		for (var i=0; i<nodes.length; i++) {
			nodes[i].onmouseover = function() {
				this.className += " hover";
				_box = this.getElementsByTagName('ul');
				for(var j = 0; j < _box.length; j++) hideSelectBoxes(_box[j]);
			}
			nodes[i].onmouseout = function() {
				this.className = this.className.replace(" hover", "");
				_box = this.getElementsByTagName('ul');
				for(var j = 0; j < _box.length; j++)
				{
					_box[j].style.dispaly='none'	;
					 showSelectBoxes(_box[j]);
				}
			}
		}
	}
}
if (document.all && !window.opera) attachEvent("onload", initMenu);