[jQuery] copying styles from one id to another?

[jQuery] copying styles from one id to another?


I have to add an additional menu to a page that already has one and
style it identically to the existing menu. Creating the menu xhtml is
easy but capturing the css is not. There is a very easy way (which
won't validate) and that is to steal the id of the main menu and apply
it to the new submenu. It works great but of course I now have two
identical ids in the page which is 'illegal'.
What I would like to do, as a solution, is to 'copy' all the css which
is applied to the original menu id (and its 'children' ... <li>, <a>,
etc.) and apply them to the parallel classes under the new submenu's
id.
Anyone have any ideas how to do this?
Thanks for the anticipated ingenuity!
rrm