function menuInit(){
	var uls=document.getElementById("menu").getElementsByTagName("ul")
	for (var t=0; t<uls.length; t++){
			uls[t].style.top=uls[t].parentNode.offsetHeight+"px"
			var s=document.createElement("span")
			s.className="arrowdiv"
			s.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;"
			uls[t].parentNode.getElementsByTagName("a")[0].appendChild(s)
			uls[t].parentNode.onmouseover=function(){
				this.getElementsByTagName("ul")[0].style.visibility="visible"
			}
			uls[t].parentNode.onmouseout=function(){
				this.getElementsByTagName("ul")[0].style.visibility="hidden"
			}
	}
}
if (window.addEventListener)
	window.addEventListener("load", menuInit, false)
else if (window.attachEvent)
	window.attachEvent("onload", menuInit)
