// JavaScript Document/************************************************ DHTML slideshow script-  © Dynamic Drive DHTML code library (www.dynamicdrive.com)* This notice must stay intact for legal use* Visit http://www.dynamicdrive.com/ for full source code***********************************************/var photos=new Array()var photoslink=new Array()var which=0var maxslides = 5//define images. You can have as many as you want:photos[0]="images/home/1.jpg"photos[1]="images/home/2.jpg"photos[2]="images/home/3.jpg"photos[3]="images/home/4.jpg"photos[4]="images/home/5.jpg"//Specify whether images should be linked or not (1=linked)var linkornot=1//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"photoslink[0]="Keep on Catering in actie tijdens Elle Wonendag"photoslink[1]="Lekker eten tijdens de dag"photoslink[2]="Toetjes"photoslink[3]="Op het Nederlands Filmfestival"photoslink[4]="Impressie eten op NFF"//do NOT edit pass this linevar preloadedimages=new Array()for (i=0;i<photos.length;i++){preloadedimages[i]=new Image()preloadedimages[i].src=photos[i]}function backward(){if (which>0){which--//applyeffect()document.images.photoslider.src=photos[which]document.getElementById("test").innerHTML=photoslink[which]//playeffect()//keeptrack()}else {which = maxslides - 1document.images.photoslider.src=photos[which]document.getElementById("test").innerHTML=photoslink[which]}}function forward(){clearTimeout(volgende);var intervalle=6000; <!-- interval: 5000 = 5 seconds -->	if (which<photos.length-1){which++//applyeffect()document.images.photoslider.src=photos[which]document.getElementById("test").innerHTML=photoslink[which]//playeffect()//keeptrack()}else {which = 0document.images.photoslider.src=photos[which]document.getElementById("test").innerHTML=photoslink[which]}volgende = setTimeout("forward()",intervalle);}function gaNaar(nummer){clearTimeout(volgende);var intervalle=4000;which = nummer;//applyeffect()document.images.photoslider.src=photos[nummer]document.getElementById("test").innerHTML=photoslink[nummer]//playeffect()//keeptrack()volgende = setTimeout("forward()",intervalle);}function transport(){window.location=photoslink[which]}function delayforward() {var intervalle=8000;volgende = setTimeout("forward()",intervalle);}
