I think that is vBulletin specific code that generates them menus. I don't think you can find the exact script for that anywhere except for in the copyrighted vBulletin software, but I could be wrong. There's a lot of similar scripts out there though.