function advance() {
	//Increment the current photo
	current++;
	
	//Return to 0 if beyond the end of the array
	if (current == photos.length) {
		current = 0;
	} //end current == photos.length IF
	
	//Update Image
	document.getElementById("slideshow").setAttribute("src","/photos/"+album+"/"+photos[current]);
} //end advance
function retreat() {
	//Decrement the current photo
	current--;
	
	//Return to the end of the array if beyond 0
	if (current == -1) {
		current = (photos.length-1);
	} //end current == -1 IF
	
	//Update Image
	document.getElementById("slideshow").setAttribute("src","/photos/"+album+"/"+photos[current]);
} //end retreat

function startScroll(duration) {
	$("#scroller").animate({
		left: "0px"
	}, 500);
	$("#scroller").animate({
		left: (width * -1) + "px"
	}, (duration * 1000));
}
