Are there any scripts available to create dynamic menus where the main categories are displayed and when they are clicked the sub topics are displayed?

We'd like to use something like this, but it would require to work under Section 508 and I don't want that to cause issues.

Thanks,

Mark