The posted code is nothing like the link you included. That type of display is usually referred to as an "Accordion Menu"
Accordion menus are just a variation of the show/hide or toggle scripts. There are a bunch of examples on this and other forums.
Finally, based upon your EDIT: remarks, are you done and satisfied with answers given in this thread?
If yes, post a 'resolved' message. You will not be able to resolve the thread of posts as it was started by a different person.
This is why it is always a good idea to not hijack another thread, but start your own. It's OK to reference the thread you wish to discuss, but you should do it under your own name.