<!--

var current_location = 0;

function slideshowPrevious() {
	tour_left_img = document.getElementById("tour_left_image");
	tour_right_img = document.getElementById("tour_right_image");
	tour_right_txt = document.getElementById("tour_right_copy");

	if (current_location == 0) {
		return false;
	}
	for (i = current_location; i > (current_location-2); i--) {
		tour_left_img.src = slideshowImages[i][0];
		tour_left_img.alt = slideshowImages[i][2];
		tour_right_img.src = slideshowImages[i][1];
		tour_right_img.alt = slideshowImages[i][2];
		tour_right_txt.innerHTML = slideshowImages[i][2];
	}
	current_location--;
	updateNavigation();
}

function slideshowNext() {
	tour_left_img = document.getElementById("tour_left_image");
	tour_right_img = document.getElementById("tour_right_image");
	tour_right_txt = document.getElementById("tour_right_copy");

	if (current_location == slideshowImages.length) {
		return false;
	}
	for (i = current_location; i < (current_location+2); i++) {
		tour_left_img.src = slideshowImages[i][0];
		tour_left_img.alt = slideshowImages[i][2];
		tour_right_img.src = slideshowImages[i][1];
		tour_right_img.alt = slideshowImages[i][2];
		tour_right_txt.innerHTML = slideshowImages[i][2];
	}
	current_location++;
	updateNavigation();
}

function updateNavigation() {
	span_id_previous = document.getElementById("span_previous");
	span_id_spacer = document.getElementById("span_spacer");
	span_id_next = document.getElementById("span_next");

	if ( current_location == 0 ) {
		span_id_previous.style.display = "none";
		span_id_spacer.style.display = "none";
	}
	else if ( current_location == slideshowImages.length-1 ) {
		span_id_spacer.style.display = "none";
		span_id_next.style.display = "none";
	}
	else {
		span_id_previous.style.display = "inline";
		span_id_spacer.style.display = "inline";
		span_id_next.style.display = "inline";
	}
}

//-->