IMPORTANT help with thumbnail gallery

I had searched the forum and was unable to find anything

http://www.kirupa.com/developer/mx2004/thumbnails.htm

I want to make it so you can click a thumbnail then have it so u can arrow through and click next through that set of images. Pretty much a different gallery for each thumbnail. Has anyone done this and has an exmaple of it or could help me.

The way I want it structured is like

-thumbnail of picture
-picture
-pop of uf big picture ine xternal window
-picture2
-pop of uf big picture ine xternal window
-picture3
-pop of uf big picture ine xternal window

Thatt kind of thing, thank you very much in advance it means a lot.