﻿
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;

var Picture = new Array();

Picture[1]  = 'Images/Slideshow/2009/01.jpg';
Picture[2]  = 'Images/Slideshow/2009/02.jpg';
Picture[3]  = 'Images/Slideshow/2009/03.jpg';
Picture[4]  = 'Images/Slideshow/2009/04.jpg';
Picture[5]  = 'Images/Slideshow/2009/05.jpg';
Picture[6]  = 'Images/Slideshow/2009/06.jpg';
Picture[7]  = 'Images/Slideshow/2009/07.jpg';
Picture[8]  = 'Images/Slideshow/2009/08.jpg';
Picture[9]  = 'Images/Slideshow/2009/09.jpg';
Picture[10]  = 'Images/Slideshow/2009/10.jpg';
Picture[11]  = 'Images/Slideshow/2009/11.jpg';
Picture[12]  = 'Images/Slideshow/2009/12.jpg';
Picture[13]  = 'Images/Slideshow/2009/13.jpg';
Picture[14]  = 'Images/Slideshow/2009/14.jpg';
Picture[15]  = 'Images/Slideshow/2009/15.jpg';
Picture[16]  = 'Images/Slideshow/2009/16.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 runSlideShow2(){
	var div = document.getElementById('slideshow');
    if (document.all){
        pb.style.filter="blendTrans(duration=2)";
        pb.style.filter="blendTrans(duration=CrossFadeDuration)";
        pb.filters.blendTrans.Apply();}
        pb.src = preLoad[jss].src;
    
    if (document.all) pb.filters.blendTrans.Play();
        jss = jss + 1;
    
    if (jss > (pss)) jss=2;
        tss = setTimeout('runSlideShow()', SlideShowSpeed);
}
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;
    
    if (document.all) document.images.PictureBox.filters.blendTrans.Play();
        jss = jss + 1;
    
    if (jss > (pss)) jss=2;
        tss = setTimeout('runSlideShow()', SlideShowSpeed);
}