Help with Photo Gallery adding buttons

I like this gallery http://www.kirupa.com/developer/mx2004/thumbnails.htm and I would like to use it in my project but I want to alter it and I don’t know how.
What i want is to load different galleries (photos, drawings, vector design etc) onto same area but each gallery idividually linked with buttons. Any idea how to do it or where I can find tutorial about this? Please help