<!--
var sscurrIndex = 18;
var sspreloader = new Image();
var ssarray = new Array();
ssarray[0] = "PTP_uitgesneden.png";
	ssarray[1] = "PTPMR2_lach.png";
	ssarray[2] = "Arendonk2008-07.jpg";
	ssarray[3] = "Arendonk2008-12.jpg";
	ssarray[4] = "Arendonk2008-09.jpg";
	ssarray[5] = "notplacetopee.png";
	ssarray[6] = "jeepenwagen.jpg";
	ssarray[7] = "pleeboys.png";
	ssarray[8] = "ipvjury.jpg";
	ssarray[9] = "wind.jpg";
	ssarray[10] = "placetopee.png";
	ssarray[11] = "PTPMR4_duell.png";
	ssarray[12] = "record.jpg";
	ssarray[13] = "Arendonk2008-03.jpg";
	ssarray[14] = "Arendonk2008-06.jpg";
	ssarray[15] = "Arendonk2008-01.jpg";
	ssarray[16] = "kopspijkers.png";
	ssarray[17] = "Arendonk2008-08.jpg";
	ssarray[18] = "PTPMR3_staart.png";
	
var ssendIndex = 18;
//actual preloading
var i = 0;
for (i = 0; i <= ssendIndex; i++) {
	sspreloader.src = "images/slideshow/"+ssarray[i];
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
	var object = document.getElementById(id).style;
	object.opacity = (opacity / 100);
	object.filter = "alpha(opacity=" + opacity + ")";
}
//smooth fading of images
function fadeimage(divid, imageid, imagefile, millisec) {
	var speed = Math.round(millisec / 100);
	var timer = 0;
	//set current image as bg
	document.getElementById(divid).style.backgroundImage = "url(" + document.getElementById(imageid).src + ")"; 
	//set current image transparent
	changeOpac(0, imageid);
	//make new image
	document.getElementById(imageid).src = "images/slideshow/" + imagefile;
	//fade in image
	for(i = 0; i <= 100; i++) {
		setTimeout("changeOpac(" + i + ",'" + imageid + "')",(timer*speed));
		timer++;
	}
}

function rotateSs() {
	sscurrIndex++;
	if (sscurrIndex > ssendIndex) {
		sscurrIndex = 0;
	}
	fadeimage('ssswitcher', 'ssswitcherfront', ssarray[sscurrIndex], 750);
	setTimeout("rotateSs()", 3750);
}
// -->

