<!--

var rotate_delay = 5000;
current = 0;
varurl = 'http://ukien.nl/usrfiles/pictures/'

function next() {
if (document.slideform.slide[current+1]) {
	

	
	SplitVar = document.slideform.slide[current +1].value.split("|");
	document.getElementById("TourText").innerHTML = "<strong>" + SplitVar[1] + "</strong>";
	document.images.show.src = varurl + SplitVar[0];
	document.slideform.slide.selectedIndex = ++current;
	
}
else first();
}
function previous() {
if (current-1 >= 0) {
	
	SplitVar = document.slideform.slide[current -1].value.split("|");
	document.getElementById("TourText").innerHTML = "<strong>" + SplitVar[1] + "</strong>";
	document.images.show.src = varurl + SplitVar[0];
	document.slideform.slide.selectedIndex = --current;
}
else last();
}
function first() {
current = 0;

SplitVar = document.slideform.slide[current].value.split("|");
document.getElementById("TourText").innerHTML = "<strong>" + SplitVar[1] + "</strong>";

document.images.show.src = varurl + SplitVar[0];
document.slideform.slide.selectedIndex = current;


}
function last() {
current = document.slideform.slide.length-1;


SplitVar = document.slideform.slide[current].value.split("|");
document.getElementById("TourText").innerHTML = "<strong>" + SplitVar[1] + "</strong>";

document.images.show.src = varurl + SplitVar[0];
document.slideform.slide.selectedIndex = current;


}
function ap(text) {
document.slideform.slidebutton.value = (text == "Stop Voorstelling") ? "Start Voorstelling" : "Stop Voorstelling";
rotate();
}
function change() {
current = document.slideform.slide.selectedIndex;


SplitVar = document.slideform.slide[current].value.split("|");
document.getElementById("TourText").innerHTML = "<strong>" + SplitVar[1] + "</strong>";

document.images.show.src = varurl + SplitVar[0];

}
function rotate() {
if (document.slideform.slidebutton.value == "Stop Voorstelling") {
current = (current == document.slideform.slide.length-1) ? 0 : current+1;

SplitVar = document.slideform.slide[current].value.split("|");

document.getElementById("TourText").innerHTML = "<strong>" + SplitVar[1] + "</strong>";

document.images.show.src = varurl + SplitVar[0];
document.slideform.slide.selectedIndex = current;
window.setTimeout("rotate()", rotate_delay);
   }
}

function wait(delay){
		setTimeout("moment",delay);
}


//-->
