This is a stripped-down version of the PHP code which implements collapsible trees on my home page. The source code is here. Enjoy!

Expand all | collapse all