I have finally gotten around to cleaning up this script and making it work for more levels. This cascading menu is straight-forward and simple. It does require a little
fore-thought as to how you want to layout your menu, but other than that, it is straight forward!
This code is used to generate an image directory with proportional thumbnails. The number of images on the page can be set as well as the size of the thumbnails generated.
Another feature is an automatically generated menu at the bottom of each page. This code is a spin-off of code originally submitted by mauricio portasio.