﻿<!--

var deTimert;
var scrollTot = -1;
var x = width = 0;
var breedte;

function scrollLinks () {

	if (scrollTot == -1) {
		document.getElementById ("divfotocontainer1").style.overflow = "auto";
		document.getElementById ("fotodivcontainer").style.overflow = "visible";
		scrollTot = document.getElementById ("feauteaux").offsetWidth - document.getElementById ("divfotocontainer1").offsetWidth;
		breedte = document.getElementById ("feauteaux").offsetWidth;
		document.getElementById ("divfotocontainer1").style.overflow = "hidden";
		document.getElementById ("fotodivcontainer").style.overflow = "visible";
	}
	
	if (scrollTot > -1) {
		var scrollert = document.getElementById ("fotodivcontainer");
		
		deTimert = setTimeout ("scrollLinks ()", 20);
		
		if (x > -scrollTot) {
		x -= 5;
		width += 5;
		}
		
		scrollert.style.left = x + "px";
		scrollert.style.width = (breedte + width) + "px";
	}
}


function scrollRechts () {
	if (scrollTot > -1) {
		var scrollert = document.getElementById ("fotodivcontainer");
		
		deTimert = setTimeout ("scrollRechts ()", 20);
		
		if (x < 0) {
			x += 5;
			width -= 5;
		}
		
		scrollert.style.left = x + "px";
		scrollert.style.width = (breedte + width) + "px";
	}
}


function stopScroll () {
	
	clearTimeout (deTimert);
}


//-->

