I am using media tags to dynamically generate galleries of images based on the tags assigned to the media files. For example, the following code generates a gallery of all images that have been assigned the tag "people":
While Shadowbox JS works for creating bringing up the images in shadowboxes, the navigation links are working correctly. Rather than a continuous counter of all images generated for this gallery, the links are tied to the posts in which the images were originally posted. For example, when the tag "people" pulls (a) 1 image form post 1, (b) 3 images from post 2 and (c) 2 images from post 3, when Shadowbox JS displays the images, it shows (a) image 1 as a singe image with only an X "close" link; (b) images 2-4 with navigation links "1 of 3" through "3 of 3"; and then (c) images 5 and 6 with navigation links "1 of 2" and "2 of 2".