
/*
Up down slideshow Script
By Dynamic Drive (www.dynamicdrive.com)
For full source code, terms of use, and 100's more scripts, visit
http://www.dynamicdrive.com
*/

///////configure the below four variables to change the style of the
//slider///////
//set the scrollerwidth and scrollerheight to the width/height of the LARGEST
//image in your slideshow!
var scrollerwidth='253px'
var scrollerheight='80px'
//3000 miliseconds=3 seconds
var pausebetweenimages=3000

//configure the below variable to change the images used in the slideshow. If
//you wish the images to be clickable, simply wrap the images with the
//appropriate <a> tag
var slideimages=new Array()
slideimages[0]='<a href="/?page=sponsors"><img src="/adv/images/2010wareco.jpg" alt="Wareco Amsterdam BV" border="0"><\/a>'
slideimages[1]='<a href="/?page=sponsors"><img src="/adv/images/2010vanderschaafenkooymans.jpg" alt="Gilde Makelaars : Van der Schaaf en Kooijmans" border="0"><\/a>'
slideimages[2]='<a href="/?page=sponsors"><img src="/adv/images/2011bakertillyberk.jpg" alt="Baker Tilly Berk Accountants en Belastingadviseurs" border="0"><\/a>'
//slideimages[4]='<a href="/?page=sponsors"><img src="/adv/images/2006beijneshal.gif" alt="Bar/Restaurant Beijneshal" border="0"><\/a>'
//slideimages[4]='<a href="/?page=sponsors"><img src="/adv/images/2006planningencommunicatie.jpg" alt="Planning en Communicatie" border="0"><\/a>'
slideimages[3]='<a href="/?page=sponsors"><img src="/adv/images/2010huijgsport.jpg" alt="Huijg Sport" border="0"><\/a>'
slideimages[4]='<a href="/?page=sponsors"><img src="/adv/images/2010fortrestaurant.gif" alt="Restaurant t Fort" border="0"><\/a>'
slideimages[5]='<a href="/?page=sponsors"><img src="/adv/images/2010sportsunlimited.jpg" alt="Sports Unlimited" border="0"><\/a>'
slideimages[6]='<a href="/?page=sponsors"><img src="/adv/images/2010mutasport.jpg" alt="Mutasport" border="0"><\/a>'
slideimages[7]='<a href="/?page=sponsors"><img src="/adv/images/2010Banner FysioExpert-HealthTime.jpg" alt="Mutasport" border="0"><\/a>'
//extend this list
///////Do not edit pass this line///////////////////////

var ie=document.all
var dom=document.getElementById

if (slideimages.length>2)
ii=2
else
ii=0

function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.top>0&&tlayer.top<=5){
tlayer.top=0
setTimeout("move1(tlayer)",pausebetweenimages)
setTimeout("move2(document.main.document.bansecond1)",pausebetweenimages)
return
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=5
setTimeout("move1(tlayer)",50)
}
else{
tlayer.top=parseInt(scrollerheight)
tlayer.document.write(slideimages[ii])
tlayer.document.close()
if (ii==slideimages.length-1)
ii=0
else
ii++
}
}

function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.top>0&&tlayer2.top<=5){
tlayer2.top=0
setTimeout("move2(tlayer2)",pausebetweenimages)
setTimeout("move1(document.main.document.banfirst1)",pausebetweenimages)
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=5
setTimeout("move2(tlayer2)",50)
}
else{
tlayer2.top=parseInt(scrollerheight)
tlayer2.document.write(slideimages[ii])
tlayer2.document.close()
if (ii==slideimages.length-1)
ii=0
else
ii++
}
}

function move3(whichdiv){
tdiv=eval(whichdiv)
if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
tdiv.style.top=0+"px"
setTimeout("move3(tdiv)",pausebetweenimages)
setTimeout("move4(bansecond2_obj)",pausebetweenimages)
return
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
setTimeout("move3(tdiv)",50)
}
else{
tdiv.style.top=scrollerheight
tdiv.innerHTML=slideimages[ii]
if (ii==slideimages.length-1)
ii=0
else
ii++
}
}

function move4(whichdiv){
tdiv2=eval(whichdiv)
if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
tdiv2.style.top=0+"px"
setTimeout("move4(tdiv2)",pausebetweenimages)
setTimeout("move3(banfirst2_obj)",pausebetweenimages)
return
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
setTimeout("move4(bansecond2_obj)",50)
}
else{
tdiv2.style.top=scrollerheight
tdiv2.innerHTML=slideimages[ii]
if (ii==slideimages.length-1)
ii=0
else
ii++
}
}

function startscroll(){
if (ie||dom){
banfirst2_obj=ie? banfirst2 : document.getElementById("banfirst2")
bansecond2_obj=ie? bansecond2 : document.getElementById("bansecond2")
move3(banfirst2_obj)
bansecond2_obj.style.top=scrollerheight
bansecond2_obj.style.visibility='visible'
}
else if (document.layers){
document.main.visibility='show'
move1(document.main.document.banfirst1)
document.main.document.bansecond1.top=parseInt(scrollerheight)+5
document.main.document.bansecond1.visibility='show'
}
// toevoeging voor marquee op voorpagina
//document.getElementById('fotoglijder').innerHTML = '<marquee id="marquee" onmouseover="this.stop()" onmouseout="this.start()" scrollAmount="2">'+document.getElementById('fotoglijder').innerHTML+'</marquee>';
//document.getElementById('marquee').start()
// einde toevoeging voor marquee op voorpagina
}
addDOMLoadEvent(startscroll);
// window.onload=startscroll

