As you can see I’ve put the images in a ul list.
I’ll show you how to do that dynamically with php in later posts.
And there are some wrap divs I’ve used for positioning.
popopen_wrap is the parent div which is displayed with opacity in bg when we click on thumbnail images.
img_holder_bg is div used for backgournd opacity.

In fact this javascript code is not entirely mine, one of my friend have written the basic key storke movement using array in pure javascript.
I’ve ported that into jquery and added dynamic checking of what to display next.