function getPhoto(number) {
	index = number - 1;
	
	if (document.getElementById) {
		document.getElementById("imgLarge").src = photos[index].imageName;
		document.getElementById("imgContent").innerHTML = photos[index].caption;
	} else if (document.all) {
		document.all["imgLarge"].src = photos[index].imageName;
		document.all["imgContent"].innerHTML = photos[index].caption;
	} else if (document.layers) {
		document.layers["imgLarge"].src = photos[index].imageName;
		document.layers["imgContent"].innerHTML = photos[index].caption;
	}
}

// Initialize the photo
function initPhotos() {
	// Loop over the photos
	for (i = 0; i < photos.length; i++) {
		index = i + 1;
		
		if (document.getElementById) {
			document.getElementById("imgThumb" + index).src = photos[i].thumbName;
		} else if (document.all) {
			document.all["imgThumb" + index].src = photos[i].thumbName;
		} else if (document.layers) {
			document.layers["imgThumb" + index].src = photos[i].thumbName;
		}
	}
	
	getPhoto(1);
}

initPhotos();
