XML + flash photo gallery tutorial help

hi. i just came across the tutorial mentioned above and it was the ideal thing i needed for my site.

i have a question though…

i want each image that opens up from the scrolling thumbnails below to have another set buttons relating to the main image. for instance:

   [SIZE=6]A   [SIZE=2]1 2 3[/SIZE][/SIZE]


lower case = scrolling thumbnails
upper case = big image
numbers = buttons linked to another set of external images that are related to the big image.

the problem is i don’t know what controls the thumbnail/main image when i click on the scroller (i’m kinda lost in the code). so right now i have only one set of numbers regardless of which big image opens up.

what would be the best way to go about this?