I have a simple HTML gallery on my site (here
), when you click a thumbnail it opens a new window from where you can browse through the pictures using a right/left arrow. As it is all html, it is completely static and when I want to move thumbnails around I have to make sure the arrows in all the adjacent view windows still point to the correct picture (corresponding with the thumbnail left or right of it).
I want to make this a bit more felxible so I can easily switch their order while the arrows always point to the picture left or right of it.
The code isn't yet a problem, for now it's mostly the way in how to best aproach this.