I'm using this plugin customizing it based on my requiremens.

It is based on jquery, the code is here http://www.leonardodellagli.com/temp...prettyPhoto.js

I have a set of thumbnails pointing to different sets of images (using differents rel ttributes). When I open an image I see the single set with little thumbs, perfect.

What I need is to move to another set of pictures when I click on next on the last image.

What's happen now is that the lightbox shows only images in the gallery, I need to move to the next image and its gallery

thank you