function initPage() {
	// main menu
	var mainmenu = document.getElementById("mainmenu");
	if (mainmenu) {
		var nodes = mainmenu.getElementsByTagName("li");
		for (var i = 0; i < nodes.length; i++) {
			if (nodes[i].parentNode.id == "mainmenu") {
				nodes[i].onmouseover = function () {
					if (this.className.indexOf("hover") == -1) { this.className += " hover"; }
				}
				nodes[i].onmouseout = function() {
					this.className = this.className.replace(" hover", "");
				}
			}
		}
	}
}

// fires an onload event after plage load
if (window.attachEvent && !window.opera)
	window.attachEvent("onload", initPage);
