	var imageFiles = new Array(
"shots/1.2/01.PNG",
"shots/1.2/02.PNG",
"shots/1.2/03.PNG",
"shots/1.2/04.PNG",
"shots/1.2/05.PNG",
"shots/1.2/06.PNG",
"shots/1.2/07.PNG",
"shots/1.2/08.PNG",
"shots/1.2/8_ana.PNG",
"shots/1.2/09.PNG",
"shots/1.2/10.PNG",
"shots/1.2/11.PNG",
"shots/1.2/12.PNG",
"shots/1.2/13.PNG",
"shots/1.2/14.jpg",
"shots/1.2/15.PNG",
"shots/1.2/16.PNG",
"shots/1.2/17.PNG",
"shots/1.2/18.PNG",
"shots/1.2/19.PNG",
"shots/1.2/20.PNG"
);
	var currentShot = 0;
	var images = new Array();
	var loaded = new Array(), i, curLoad, curShot;
	var loader = new Image();
	loader.src = "ajax-loader.gif";

	for(i=0;i<imageFiles.length; i++){
		images[i] = new Image();
		loaded[i] = false;
	}

	function setShot( i ){
		var shotDiv = document.getElementById("screenshot");
		shotDiv.replaceChild(i, shotDiv.firstChild);					
	}

	function updateLoad(){
		if(images[curLoad].complete){
			setShot(images[curLoad]);
			return;
		}
		setTimeout("updateLoad()", 10);
	}
	function loadImage( i ){
		curLoad = i;
		var d = document.getElementById("shotNav");
		d.innerHTML = (curShot + 1) + " of " + imageFiles.length;
		if( loaded[i] == true ){
			setShot(images[curLoad]);
			return;
		}
		setShot(loader);
		images[i].src = imageFiles[i];
		updateLoad();
	}
	function nextshot(){
		curShot++;
		if(curShot == imageFiles.length) curShot = 0;
		loadImage(curShot);
	}
	function prevshot(){
		curShot--;
		if(curShot == -1) curShot = imageFiles.length - 1;
		loadImage(curShot);
	}
	function startGallery(){
		curShot = 0;
		loadImage(0);
	}
