Collapsable menu - PLEASE HELP

I found a file to manipulate for my collapsible menu and it works great. You get to see the sub menu you click on a main nav piece and if you click on another one, the first one collapses and the one you click opens up. I attached the file (sounds weird when i describe it)

I need to change the code to click on an item to open and then click on it to collapse so you can have multiple sections open at once if the user feel like it. Please help.

:worried: Serra