Complicated indeed. The easiest method is to copy the source of one of the demos. Just modify the divs and such defining the menu's parts as needed.

It is available under the GNU GPL, so it is free to use (as long as you don't remove the copyright and licensing info):
http://www.brainjar.com/terms.asp