I need to customize a css menu. I don't need help with the styling, only the functionality of the menu itself. What I need is a menu that will do this:
When the website visitor first visits the website the accordian menu is collapsed so that only the main menu items are visible, such as:
Each of these main links will link to their own pages. In addition, when a user clicks on one of these main links, such as Departments, they will be directed to the Department page of the website, but the submenu items under Departments should expand and be visible until the user leaves that section of the main nav or any items in the subnav for that particular item, so if they are on on Anatomy they will still see the subnav as visible. i.e.
As a side note I will be using the menu as a PHP include on the site.
This must be cross browser compatible. There will be about 4 more links with subnavs but I am just trying to illustrate what I am looking for. Please PM with questions.