This example shows how to create a menu from the scratch. The process is more involved and script is slower in comparison to declaring menu using HTML. The main point is to demonstrate that it's possibly to modify a menu on the fly. It can come in handy in certain situations.
Resulting HTML code can be seen by clicking on the top item in the menu to the left:
JavaScript code used to initialize both menus (after the library was loaded) is:
glyFX Image Library
PerthWeb Pty Ltd (c) 2001 - 2005
All Rights Reserved