Creating xml gallery button!

I need to greate buttons, what takes pictures form xml fail. In scotty xml gallery there are 4 “gallery” buttons what i need, but i dont know how do create them. I give also page too - http://www.2rdesign.com/gallery/V3_thumbs_scrolled.html

so i repeat it shortly, how do great these kind of buttons (gallery 1, gallery 2, gallery 3 and gallery 4)