I haven't had a chance to do any documentation on it, but if you're looking for an example you can check out the header.tpl file. This has 2 popup menus in it. When I get a chance I'll put together some documenation on how to create one.