images = new Array( 'destiny', 'iMac', 'seat', 'monkey', 'whiteboard', 'room', 'view' );
comments = new Array( 'I wanted a cheesy motivational poster and all I could find was one about Destiny ;)', "The iMac I use to work on most of my stuff. When I'm on the road I use my Macbook Pro.", 'Splashed out a little for a comfy seat to plot my world domination.', 'Trying to keep a light hearted atmosphere.', "My trusty whiteboard for scribbling todo's and thinking through problems.", "Full view of the studio aka spare bedroom. Yep, it's not very big.", 'Looking out from the window.' );
			
currentImage = 0;
			
function displayNextImage()
{
	currentImage++;
	// wrap around back to beginning
	if (currentImage > images.length - 1)
	{
		currentImage = 0;
	}
	
	swapInCurrentImage();
}
			
function displayPreviousImage()
{
	currentImage--;
	// wrap back to the end
	if (currentImage < 0)
	{
		currentImage = images.length - 1;
	}
	
	swapInCurrentImage();
}
			
function swapInCurrentImage()
{
	snapshot = document.getElementById('slideshow_image');
	snapshot.setAttribute('src', 'images/inside_studio/' + images[currentImage] + '.jpg');
	
	comment = document.getElementById('snapshot_comment');
	comment.firstChild.nodeValue = comments[currentImage];
}

function setupPage()
{
	pageLoaded();
	
	swapInCurrentImage();
}