Hi,

Similar to the post earlier today I'm also looking to configure a javascript which controls a collapsable menu with submenus appearing below the header when clicked. I want it so that only one menu is open at one time, i.e. the rest are closed when one is open. i.e.

MENU1
item1
item2
item3
MENU2
MENU3

etc.

Here's my code:

var ns6=document.getElementById&&!document.all?1:0

var head="display:''"
var folder=''

function expandit(curobj){

folder=ns6?curobj.nextSibling.nextSibling.style:document.all[curobj.sourceIndex+1].style

if (folder.display=="none")
folder.display=""
else
folder.display="none"
}