/***********************************************
* slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
//---------------------------
//slider on place
var variableslide=new Array();
//variableslide[x]=["path to image", "link for image", "text description (supports HTML tags)"]
variableslide[0]=['images/slider/haiti.jpg','whirlpoolsysteme/index.html','zu den Whirlpoolsystemen'];
variableslide[1]=['images/slider/helgoland.jpg','whirlpoolsysteme/index.html','zu den Whirlpoolsystemen'];
variableslide[2]=['images/slider/key_west.jpg','whirlpoolsysteme/index.html','zu den Whirlpoolsystemen'];
variableslide[3]=['images/slider/luxor.jpg','whirlpoolsysteme/index.html','zu den Whirlpoolsystemen'];
variableslide[4]=['images/slider/tokio_rund.jpg','whirlpoolsysteme/index.html','zu den Whirlpoolsystemen'];
variableslide[5]=['images/slider/venedig.jpg','whirlpoolsysteme/index.html','zu den Whirlpoolsystemen'];
//the below 3 variables configure the dimension and background color of the slideshow
//widht of the largest images
var slidewidth='450px';
//height of the largest images
var slideheight='300px';
var slidebgcolor='#ffffff';
//the delay between image rotations (in miliseconds)
var slidedelay=3000;
for (i=0;i<variableslide.length;i++){
  var cacheimage=new Image();
  cacheimage.src=variableslide[i][0];
}

var currentslide=0;

function rotateimages(){
  contentcontainer='<center>';
  if (variableslide[currentslide][1]!=""){
    contentcontainer+='<a href="'+variableslide[currentslide][1]+'" onmouseover="return showinfotooltip(\''+variableslide[currentslide][2]+'\');" onmouseout="return hidetooltip();">';
  }
  contentcontainer+='<img src="'+variableslide[currentslide][0]+'" vspace="3">';
  if (variableslide[currentslide][1]!=""){
    contentcontainer+='</a>';
  }
  contentcontainer+='</center>';
  if (document.layers){
    crossrotateobj.document.write(contentcontainer);
    crossrotateobj.document.close();
  }
  else if (ie||moz)
  crossrotateobj.innerHTML=contentcontainer;
  if (currentslide>=(variableslide.length-1)){
    currentslide=0;
  }
  else{
    currentslide++;
  }
  setTimeout("rotateimages()",slidedelay);
}

function start_slider(){
  crossrotateobj=moz? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub;
  if (document.layers)
    document.slidensmain.visibility="show";
  rotateimages();
}