function createdropmenu() {
    var ultags=document.getElementById("dropmenu").getElementsByTagName("ul")

    for (var t=0; t<ultags.length; t++) {
        ultags[t].style.top=ultags[t].parentNode.offsetHeight-1+"px"
        var spanref=document.createElement("span")
        spanref.className="arrowdiv"
        spanref.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;"
        ultags[t].parentNode.getElementsByTagName("a")[0].appendChild(spanref)

        ultags[t].parentNode.onmouseover=function() {
            this.style.zIndex=100
            this.getElementsByTagName("ul")[0].style.visibility="visible"
            this.getElementsByTagName("ul")[0].style.zIndex=0
        }

        ultags[t].parentNode.onmouseout=function(){
            this.style.zIndex=0
            this.getElementsByTagName("ul")[0].style.visibility="hidden"
            this.getElementsByTagName("ul")[0].style.zIndex=100
        }
    }
}

if (window.addEventListener)
window.addEventListener("load", createdropmenu, false)
else if (window.attachEvent)
window.attachEvent("onload", createdropmenu)
