
// hier de snelheid van de slideshow  (in milliseconden)
var SlideShowSpeed = 2000;
// duur van de crossfade (in seconden)
var CrossFadeDuration = 2;

var Picture = new Array(); // 
Picture[1]  = 'slideshow/foto1.jpg';
Picture[2]  = 'slideshow/foto2.jpg';
Picture[3]  = 'slideshow/foto3.jpg';
Picture[4]  = 'slideshow/foto4.jpg';


var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}


function runSlideShow1(){
if (document.all){
document.images.Slideshow1.style.filter="blendTrans(duration=2)";
document.images.Slideshow1.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.Slideshow1.filters.blendTrans.Apply();}
document.images.Slideshow1.src = preLoad[jss].src;
if (document.all) document.images.Slideshow1.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow1()', SlideShowSpeed);
}

//========================================================================

var Fotootje = new Array(); // 
Fotootje[1]  = 'img/img2.jpg';
Fotootje[2]  = 'img/img4.jpg';
Fotootje[3]  = 'img/img6.jpg';
Fotootje[4]  = 'img/img8.gif';


var tss2;
var iss2;
var jss2 = 1;
var pss2 = Fotootje.length-1;

var preLoad2 = new Array();
for (iss2 = 1; iss2 < pss2+1; iss2++){
preLoad2[iss2] = new Image();
preLoad2[iss2].src = Fotootje[iss2];}


function runSlideShow2(){
if (document.all){
document.images.Slideshow2.style.filter="blendTrans(duration=2)";
document.images.Slideshow2.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.Slideshow2.filters.blendTrans.Apply();}
document.images.Slideshow2.src = preLoad2[jss2].src;
if (document.all) document.images.Slideshow2.filters.blendTrans.Play();
jss2 = jss2 + 1;
if (jss2 > (pss2)) jss2=1;
tss2 = setTimeout('runSlideShow2()', SlideShowSpeed);
}

//========================================================================



function StartBijLoad(){
  runSlideShow1();
  runSlideShow2();
}

window.onload=StartBijLoad;
