Hard to tell in isolation but you have
Code:
function toggleMenu(currElem,nextPos) {
if (stdBrowser) {
menuObj = document.getElementById(currElem).style
}
else {
menuObj = eval("document." + currElem)
}
These two do not equate. I would change it to this (you do not need eval for this, in fact I've never seen a case for eval):
Code:
function toggleMenu(currElem,nextPos) {
if (stdBrowser) {
menuObj = document.getElementById(currElem)
}
else {
menuObj = document.all[currElem];
}
//rest of stuff
If you actually do want the style object instead of the object have:
Code:
function toggleMenu(currElem,nextPos) {
if (stdBrowser) {
menuObj = document.getElementById(currElem).style
}
else {
menuObj = document.all[currElem].style;
}
//rest of stuff
--
Joe