








/* for dropdowns */

var createMenu = function() {
	var menu = document.getElementById("navtop").getElementsByTagName("li");
	for (var i = 0; i < menu.length; i++) {
		menu[i].onmouseover = function() {
			this.className += " hover";
		}
		menu[i].onmouseout = function() {
			//this.className = this.className.replace(new RegExp(" hover\\b"), "");
			if (this.className.indexOf("main_li") != -1) this.className = "main_li";
			if (this.className.indexOf("main_li") == -1) this.className = "";
		}
	}
}





window.onload = function() {
	createMenu();
	
}





 




