i get the error at
var ultags = document.getElementById(menuids[i]).getElementsByTagName("ul")
in menuids[i] i get [0]=verticalmenu
[1]=verticalmenu1
window.onload = createcssmenu;
//if (window.addEventListener)
// window.addEventListener("load", createcssmenu, false)
//else if (window.attachEvent)
// window.attachEvent("onload", createcssmenu)
i have this window.onload in the same js file having the above script & tehn called in html