Expanding xml gallery

Hi folks!

I’m using one of the resizeable image gallery’s found on this site.
It works great for me, but i have one problem… I can’t really expand it now.

I use a frame where i load all the thumbnails for the images. 12 thumbnails will fit in that frame, not more. I want to create it like this: if i load more then 12 thumbnails, a link(a nr) will come automatically at the bottom of that frame. If i will click that link i will see the other thumbnails… In case there are more then 24 thumbnails a third link (nr 3) will come… and so on.

the problem is that i havent got the slightest idea how to achieve this…:*(

Any one can help me with this one??

Tnx for the effort!

here the rar with the fla, xml and example images:
example.rar