function initPage(){
	var hold = document.getElementById("nav");
	if(hold){
		var nodes = hold.getElementsByTagName("li");
		for (var i=0; i<nodes.length; i++){
			if(nodes[i].getElementsByTagName('div').length == 0 && nodes[i].parentNode == hold){
				nodes[i].style.borderBottom = 'none';
				nodes[i].style.marginBottom = '0';
			}
			nodes[i].onmouseover = function(){
				this.className += " hover";
			}
			nodes[i].onmouseout = function(){
				this.className = this.className.replace(" hover", "");
			}
		}
	}
}
if (window.addEventListener) window.addEventListener("load", initPage, false);
else if (window.attachEvent && !window.opera) window.attachEvent("onload", initPage);
