// Photo object definition
function Photo(title, caption, imgFile, thumbFile, width, height, thumbWidth, thumbHeight, imgCache)
{
	this.title = title;
	this.caption = caption;
	this.imgFile = imgFile;
	this.thumbFile = thumbFile;
	this.width = width;
	this.height = height;
	this.thumbWidth = thumbWidth;
	this.thumbHeight = thumbHeight;
	this.cache = imgCache;
}

// Display a given photo in the image container
function showPhoto(container, photoIdx)
{
	var photo = Photos[photoIdx];
	container.src = photo.imgFile;
	container.style.height = photo.height;
	container.style.width = photo.width;
	document.all.title.innerHTML = photo.title + "<br/>" + photo.caption;
}
