Load external...buttons. is this possible?

I have one last step in this xml-fed portfolio:

http://www.strongfelt.com/v2/portfolio.html

I need to attach detail buttons [and corresponding photos]. not all images have details, and those that do have between 1 and 4. As it stands, I have AS loading a jpg, title and description from external xml files when a thumbnail is activated. I’m thinking some sort of conditional that checks ‘i’ (incremental variable) to see if there are associated detail image(s)…set up a separate xml file with this info… but i need to generate clickable text - or thumbnails - to each detail found. is this possible?

I can’t wrap my brain around how to go about this…so let me ask - how would YOU approach it?
thanks!