var fadeBild = new Array();
fadeBild[0]  = new Array("images/pictures/diashow/001.JPG","index.html");
fadeBild[1]  = new Array("images/pictures/diashow/002.JPG","index.html");
fadeBild[2]  = new Array("images/pictures/diashow/003.JPG","index.html");
fadeBild[3]  = new Array("images/pictures/diashow/004.JPG","index.html");
fadeBild[4]  = new Array("images/pictures/diashow/005.JPG","index.html");
fadeBild[5]  = new Array("images/pictures/diashow/006.JPG","index.html");
fadeBild[6]  = new Array("images/pictures/diashow/007.JPG","index.html");
fadeBild[7]  = new Array("images/pictures/diashow/008.JPG","index.html");
fadeBild[8]  = new Array("images/pictures/diashow/009.JPG","index.html");
fadeBild[9]  = new Array("images/pictures/diashow/010.JPG","index.html");
fadeBild[10]  = new Array("images/pictures/diashow/011.JPG","index.html");
fadeBild[11]  = new Array("images/pictures/diashow/012.JPG","index.html");
fadeBild[12]  = new Array("images/pictures/diashow/013.JPG","index.html");



/* SLIDESHOW */ 

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000;

// Duration of crossfade (seconds)
var crossFadeDuration = 1;

// =======================================
// do not edit anything below this line
// =======================================

var t;
var p = fadeBild.length;
var j = Math.round( (p-1) * Math.random() ) ;

var preLoad = new Array();
for (i = 0; i < p; i++)
{
   preLoad[i] = new Image();
   preLoad[i].src = fadeBild[i][0];
   
}
var preLoad2 = new Array();
for (i = 0; i < p; i++)
{
   preLoad2[i] = new Image();
   preLoad2[i].src = fadeBild[i][1];
   
}


function runSlideShow()
{
   if (document.all)
   {
      document.getElementById("startimg").style.filter="blendTrans(duration=2)";
      document.getElementById("startimg").style.filter="blendTrans(duration=crossFadeDuration)";
      document.getElementById("startimg").filters.blendTrans.Apply();
   }

   document.getElementById("startimg").src = preLoad[j].src;

   if (document.all)
   {
      document.getElementById("startimg").filters.blendTrans.Play();
   }

   j = j + 1;
   if (j > (p-1)) j=0;
   t = setTimeout('runSlideShow()', slideShowSpeed);
}

