XML Image Gallery with sections

Have to ask because I have been racking my head for a few days now and I can’t figure this out. Would appreciate any help anyone can offer.

I doing our in-house site, and the project section needs to be refreshed to a more modern style. Basically what needs to happen is an XML menu at the bottom of site, and sections loaded into the content area.

I need to get each section to display thumbnails for each project. I have everything working okay apart from the thumbnails, which is in the loadImages function.

I have included flash and actionscript file. Any help would be really appreciated, thanks.