Welcome to the photos page
The following pages are all generated from what I quaintly refer to as a "JavaScript Database". Madness. So if you don't have JavaScript turned on, you're not going to see a whole lot.
It's not really a database, of course, merely two multi-dimentional arrays - one for the sections of the site, and another for the images themselves.
This whole site has only three pages: a thumbnail page, a photo page and this home page. On each page, the navigation and the sub navigation is generated dynamically (which accounts for the slow rendering speed in Opera or if you fill up the arrays too much). The same goes for the tail end of the crumb trail, heading, next and previous links, and the image or images. The script is clever enough to realise which 'page' it's on, and omits the link, so none of the pages link to themselves. It also realises when there are no more images in a particular section, so you don't get dead links.
When it comes to writing the images to the page, it fills in the alt parameter itself, plus the width, height and source.
The script knows which 'page' it's on using string manipulation of the parameters passed after the URL. These are separated by a hyphen. The first number represents the image or page where you are, while the second represents the section.
Because 'pages' can be added into the array in any order, this static array is used to build a dynamic array, every time the page is loaded. This is not an ideal solution for larger sites! It does, however, allow the script to reorganise the array however it sees fit.
If you're interested in actually using this madness, then the administration section might be of interest. At the moment, there is no form validation, so you need to know what you're entering is correct. Also the only way to edit a 'page' after you've added it is to edit db.js by hand. The punchline of this site is that of course JavaScript is too sandboxed to actually amend a text file on a server, so the administration section requires some cut-and-paste fun, once you've added a new image.
I'm not counting the administration page.