XML Gallery/thumbnails with modification

Hello.I’ve done the xml gallery thumbnails tutorial and everything works ok.As you enter http://boko.ovh.org/strona2.html and the Fotos button you will see small thumbnails represanting diffrent gallery.What I want to do is:when I click on one of thos pics I want a specific gallery to appear.In other words I want 8 diffrent galleries under one button Fotos.The gallery I’ve made so far is ready and all i need is how to put it all togehter.Thanks in advance!!