Michael Leigeber writes some of the finest javascript you can find, including the finest javascript dropdown menu known to humankind. If more dropdowns were written like this, they wouldn’t have a bad reputation. If you look at his Sandbox, you can see how to set it up in just about any configuration you’d want.