firstleft = 1;
lastleft = 3;
currentleft = 3;

firstright = 1;
lastright = 3;
currentright = 3;

function nextPicture() {
	// Hide current picture
	object = document.getElementById('slideleft' + currentleft);
	object.style.display = 'none';

	// Show next picture, if last, loop back to front
	if (currentleft == lastleft) { currentleft = 1; }
	else { currentleft++ }
	object = document.getElementById('slideleft' + currentleft);
	object.style.display = 'block';

	// Hide current picture
	object = document.getElementById('slideright' + currentright);
	object.style.display = 'none';

	// Show next picture, if last, loop back to front
	if (currentright == lastright) { currentright = 1; }
	else { currentright++ }
	object = document.getElementById('slideright' + currentright);
	object.style.display = 'block';
}

function changeText() {
	nextPicture()
	setTimeout('changeText()',10000);
}