﻿// hier de snelheid van de slideshow  (in milliseconden)
var SlideShowSpeed = 3000;

// duur van de crossfade (in seconden)
var CrossFadeDuration = 1;

var Picture = new Array(); // 
var Caption = new Array(); // 

// hieonder kun je meer images tovoegen
// ze moeten echter gelijk zijn aan het aantal captions daaronder

Picture[1]  = 'images/01.jpg';
Picture[2]  = 'images/02.jpg';
Picture[3]  = 'images/03.jpg';
Picture[4]  = 'images/04.jpg';
Picture[5]  = 'images/05.jpg';
Picture[6]  = 'images/06.jpg';
Picture[7]  = 'images/07.jpg';
Picture[8]  = 'images/08.jpg';
Picture[9]  = 'images/09.jpg';
Picture[10]  = 'images/10.jpg';
Picture[11]  = 'images/11.jpg';
Picture[12]  = 'images/12.jpg';
Picture[13]  = 'images/13.jpg';
Picture[14]  = 'images/14.jpg';


// teksten bij de plaatjes ( aantal moet gelijk zijn aan aantal plaatjes hierboven )
Caption[1]  = "Voorkant Villa Eridanus";
Caption[2]  = "Woonkamer";
Caption[3]  = "Sfeer (1)";
Caption[4]  = "Keuken (1)";
Caption[5]  = "Keuken (2)";
Caption[6]  = "Zithoek";
Caption[7]  = "Eethoek";
Caption[8]  = "Trap";
Caption[9]  = "Grote slaapkamer 1";
Caption[10]  = "Grote slaapkamer 2";
Caption[11]  = "Kleine slaapkamer met 2 stapelbedden";
Caption[12]  = "Badkamer (1)";
Caption[13]  = "Badkamer (2)";
Caption[14]  = "Teras";

// =====================================
// verander hieronder niets meer

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 runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
//document.images.PictureBox.alt = Caption[jss];
//if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}
