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

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

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

// =====================================
// Add, delete or edit the following pictures
// Last picture MUST be the same picture in the file 'slide.html'!
// =====================================


Picture[1]  = 'img/hotel_baden-baden_pic43.jpg';
Picture[2]  = 'img/hotel_baden-baden_pic44.jpg';
Picture[3]  = 'img/hotel_baden-baden_pic45.jpg';

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

var tss;
var iss;
var jss = 0;
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 control(how) {
if (showHot) {
	if (how=="H") jss = 1;
	if (how=="F") jss = jss + 1;
	if (how=="B") jss = jss - 1;
	if (jss > (pss)) jss=1;
	if (jss < 1) jss = pss;
	if (document.all) {
		document.images.slidepic.style.filter="blendTrans(duration=2)";
		document.images.slidepic.style.filter="blendTrans(duration=CrossFadeDuration)";
		document.images.slidepic.filters.blendTrans.Apply();
	}
	document.images.slidepic.src = preLoad[jss].src;
	if (document.all) document.images.slidepic.filters.blendTrans.Play();
	timer();
	}
}

function timer() {
	setTimeout("control('F');", 4000);
}
