One problem I have is that if you click on any thumbnail and a larger image slideshow begins, the script continues to run from the first thumbnail until the final one (no 12). Ideally, the slideshow should run from 1-4 and then start at no 1 again. Likewise on the second row (though there are no tables involved), the slideshow should run from image 5 until image 8. On the third row, from image 9 to image 12. Each 'row', which has a unique ID, should be self-contained.