initDropdowns = function() {
	var items = document.getElementById("mainmenu").getElementsByTagName("LI");
	for (var i = 0; i < items.length; i++) {
		items[i].onmouseover = function() {
			this.className += " over";
		}
		items[i].onmouseout = function() {
			this.className = this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", initDropdowns);