How in the world do they do this?

http://www.asymptote.net/

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