You do stay busy on this forum, jakecigar!!
So when this page loads you will see 1) topMenu, 2) subMenu and 3) thumbMenu. On page load they fade into view in sequence with the function to "load" content into topMenu firing first, followed by a second function to "load" subMenu.
The function for thumbMenu is buried inside that of subMenu, the reason being that the selected sub menu section in the xml file is checked for valid images (if it contains any entries and if the files exists) before any content is displayed. For example, if a subcategory contains no valid images, it is skipped and so no subMenu link is added. Likewise, if and image within the selected subcategory does not exists it, it will not be added to thumbMenu so as to avoid any nasty-looking broken links.
It would be easier to have a third function to load thumbMenu, but if there were any problems with the first (or the first 100) subcategory or images the page would load with no content or lots of broken links. So the thumbMenu function relies on a series of error-checking tasks that are done first in subMenu.
After page load, clicking on a topMenu category triggers the same subMenu function, using ".live('click', etc.)", but this time information is passed from the clicked item into the subMenu function. As before, the subMenu function does its thing and fires the thumbMenu function. Clicking on a subMenu option reloads thumbMenu, but the biggest difference here is that the function is fired off in the ".live()" event instead of from within the SubMenu function (b/c the subMenu table has already been built).
You will see that it all works in the demo script, but in an earlier version the div containing thumbMenu, which is still present on page load, was manipulated so as to disappear, reload with the new thumbMenu table, and then gently fade back into view. Now, though, I do not want to work with this div (the white display area), and instead disappear and fade in the dynamic thumbMenu table itself. And this is where I'm having my problem.
Hope that all makes sense.