This example illustrates jsDomenu set up to:
Check out the configuration file ("ddconfig2.js") to see how this is set up, and view the source of this page to see the necessary codes to insert on your page.
Obviously, be sure to also check out the other folders outside of "dynamicdrive" for comprehensive documentation and demos as provided by the author himself.
Enjoy!
Example prepared by Dynamic Drive