// JAVASCRIPT INCLUDE FILE - photoablum.js
// Usage: (Include this file after the photos array
//        is created and populated.)
//
//   var which = 0;
//   var photos = new Array();
//
//   photos[0] = "img1.jpg";
//   photos[1] = "img2.jpg";
//   photos[2] = "img3.jpg";

var preloadedimages = new Array();

for (i=0;i<photos.length;i++) {
	preloadedimages[i] = new Image();
	preloadedimages[i].src = photos[i];
}

function backward() {
	if (which > 0) {
		which--;
		document.images.album.src = photos[which];
	}
}

function forward(){
	if (which < photos.length - 1) {
		which++;
		document.images.album.src = photos[which];
	}
}
