Javascript Help

I need some help doing this page.

I'm trying to do a navigation bar, where when the user clicks one of the items, it expands with a menu, (there are 4 items that expand 4 different menus). I also need a link to show and hide all the menus. Something like this

Menu Expand


  • [*]menu item

    [*]menu item
    [/list]

So anyone have an idea how to do this with javascript?

if ( menu item clicked ) {
if (menu closed) {
expand menu
}
if (menu opened) {
close menu
}
}

if ( link expand clicked ) {
set all lists to display:block;
}

if ( link collapse clicked ) {
set all lists to display: none;
}

Just the basic idea, here is the page I'm doing.

www.vastyles.com/new/nav.html

Any help would be appreciated.

#301961

Ugh, nevermind lads, I figure it out on my own, so simple I overlooked it.

#301966