

// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this header

// =======================================
// Place this script in the head of your
// page and set the following variables.
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000

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

// Specify the image files
var Pic_1 = new Array() // don't touch this
//var Pic_2 = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below


Pic_1[0] = '/img/topbilder/01.jpg'
Pic_1[1] = '/img/topbilder/02.jpg'
Pic_1[2] = '/img/topbilder/03.jpg'
Pic_1[3] = '/img/topbilder/04.jpg'
Pic_1[4] = '/img/topbilder/05.jpg'
Pic_1[5] = '/img/topbilder/06.jpg'
/*
Pic_2[0] = '/images/gfx/pic2.jpg'
Pic_2[1] = '/images/gfx/pic7.jpg'
Pic_2[2] = '/images/gfx/pic8.jpg'
*/
// =======================================
// do not edit anything below this line
// =======================================

isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;

var t_1;
//var t_2;
var j_1 = 0;
//var j_2 = 0;
var p_1 = Pic_1.length;
//var p_2 = Pic_2.length;

var preLoad_1 = new Array()
//var preLoad_2 = new Array()

function initSlideShow_1(jStart) {
	j_1 = jStart;
	for (i = 0; i < p_1; i++) {
		 preLoad_1[i] = new Image();
		 preLoad_1[i].src = Pic_1[i];
	}
}
/*
function initSlideShow_2(jStart) {
	j_2 = jStart;
	for (i = 0; i < p_2; i++){
		 preLoad_2[i] = new Image();
		 preLoad_2[i].src = Pic_2[i];
	}
}
*/

function runSlideShow_1() {
   if (document.all){
      document.images.SlideShow_1.style.filter="blendTrans(duration=2)";
      document.images.SlideShow_1.style.filter="blendTrans(duration=crossFadeDuration)";
      document.images.SlideShow_1.filters.blendTrans.Apply();      
   }
   if (!isN4) document.images.SlideShow_1.src = preLoad_1[j_1].src;
   if (isN4) document.layers['theLayer'].document.images['SlideShow_1'].src = preLoad_1[j_1].src;
   if (document.all){
      document.images.SlideShow_1.filters.blendTrans.Play();
   }
   j_1 = j_1 + 1;
   if (j_1 > (p_1-1)) j_1=0;
   t_1= setTimeout('runSlideShow_1()', slideShowSpeed);
}
/*
function runSlideShow_2(){
   if (document.all){
      document.images.SlideShow_2.style.filter="blendTrans(duration=2)";
      document.images.SlideShow_2.style.filter="blendTrans(duration=crossFadeDuration)";
      document.images.SlideShow_2.filters.blendTrans.Apply();      
   }
   if (!isN4) document.images.SlideShow_2.src = preLoad_2[j_2].src;
   if (isN4) document.layers['theLayer'].document.images['SlideShow_2'].src = preLoad_2[j_2].src;
   if (document.all){
      document.images.SlideShow_2.filters.blendTrans.Play();
   }
   j_2 = j_2 + 1;
   if (j_2 > (p_2-1)) j_2=0;
   t_1= setTimeout('runSlideShow_2()', slideShowSpeed);
}
*/