// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 4500;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this

// Specify the image files...
// To add more images, just continue
// the pattern, adding to the array below.
// To use fewer images, remove lines
// starting at the end of the Picture array.
// Caution: The number of Pictures *must*
// equal the number of Captions!

// 0 = Jan, 11 = Dec (+ eval(1) ändert dies in normale Monatszahlen)
now = new Date();
var m = eval(now.getMonth()) + eval(1);

if ((m >= 1) && (m <= 2)){
Picture[1]  = '../images/slide1.jpg';
Picture[2]  = '../images/slide2.jpg';
Picture[3]  = '../images/slide3.jpg';
Picture[4]  = '../images/slide4.jpg';
Picture[5]  = '../images/slide5.jpg';
Picture[6]  = '../images/slide6.jpg';
}

if ((m >= 3) && (m <= 4)){
Picture[1]  = '../images/slide1.jpg';
Picture[2]  = '../images/slide6.jpg';
Picture[3]  = '../images/slide7.jpg';
Picture[4]  = '../images/slide8.jpg';
Picture[5]  = '../images/slide9.jpg';
Picture[6]  = '../images/slide10.jpg';
}

if ((m >= 5) && (m <= 6)){
Picture[1]  = '../images/slide1.jpg';
Picture[2]  = '../images/slide11.jpg';
Picture[3]  = '../images/slide12.jpg';
Picture[4]  = '../images/slide13.jpg';
Picture[5]  = '../images/slide14.jpg';
Picture[6]  = '../images/slide15.jpg';
}

if ((m >= 7) && (m <= 8)){
Picture[1]  = '../images/slide1.jpg';
Picture[2]  = '../images/slide16.jpg';
Picture[3]  = '../images/slide17.jpg';
Picture[4]  = '../images/slide18.jpg';
Picture[5]  = '../images/slide19.jpg';
Picture[6]  = '../images/slide20.jpg';
}

if ((m >= 9) && (m <= 10)){
Picture[1]  = '../images/slide1.jpg';
Picture[2]  = '../images/slide21.jpg';
Picture[3]  = '../images/slide22.jpg';
Picture[4]  = '../images/slide23.jpg';
Picture[5]  = '../images/slide24.jpg';
Picture[6]  = '../images/slide25.jpg';
}

if ((m >= 11) && (m <= 12)){
Picture[1]  = '../images/slide1.jpg';
Picture[2]  = '../images/slide26.jpg';
Picture[3]  = '../images/slide27.jpg';
Picture[4]  = '../images/slide28.jpg';
Picture[5]  = '../images/slide29.jpg';
Picture[6]  = '../images/slide30.jpg';
}


// Specify the Captions... (Beschreibung zu den Bildern)
// To add more captions, just continue
// the pattern, adding to the array below.
// To use fewer captions, remove lines
// starting at the end of the Caption array.
// Caution: The number of Captions *must*
// equal the number of Pictures!

Caption[1]  = "";
Caption[2]  = "";
Caption[3]  = "";
Caption[4]  = "";
Caption[5]  = "";
Caption[6]  = "";

// =====================================
// Do not edit anything below this line!
// =====================================

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;
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);
}

