
    // Image PhotoTour
    // Variables
	var maxPhotos = 81;
	var folder = 'images/tour/'
	var currentPhoto = 1;
	
	// Functions
	function startTour(){
		document.photoTour.src = folder + currentPhoto + ".jpg";
		document.getElementById('picinfo').innerHTML = currentPhoto + " of " + maxPhotos;
	}
	
	function photoTour(direction) {
		if (direction == 1) {
			currentPhoto++;
			if (currentPhoto > maxPhotos) {
				currentPhoto = 1;
			}
		} else {
			currentPhoto--;
			if (currentPhoto < 1) {
				currentPhoto = maxPhotos;
			}
		}
		
		document.photoTour.src = folder + currentPhoto + ".jpg";
		
		document.getElementById('picinfo').innerHTML = currentPhoto + " of " + maxPhotos;
	}
