How in the world is this done?

http://www.asymptote.net/

I’d love to know where to start looking so I can reproduce this menu system? any pointers much appreciated!!