I assume you mean the menu -
It is written in javascript and is included. the source can be found here
http://www.teamwarfare.com/include/TWLMenus.js and also /include/TWLDrawMenus.js
To be honest you are probably better off writing your own menu since it would mean changing everything anyway. there are plenty of tutorials on the web - just search for javascript menus.