This tool was designed to generate the code for the PHP/ECMAScript menus that I use for www.phrebh.com.
To use it, list the menu items in the provided text area, in the order that you want, putting only one item on each line. Put a dash (-) in front of an item to make it a sub-menu.
The given menu items will be used to generate the image names and the alt text for the image tags. The results will also give a list of filenames needed.
To download the source code for this tool, and for other neat things, visit www.phrebh.com.