function slide1sl()
{
  imgAnzahl = imgarr.length;
  fademi=1;
  vcurr=0;
  vnext=0;
  vssdiv=null;
  stepc=20*(3000/1000);
  dif=0.00;
  op=1.00;
  //dif=(1.00/stepc);
  dif = 1/anzahlInterval;
  uagent = window.navigator.userAgent.toLowerCase();
  IEB=(uagent.indexOf('msie') != -1)?true:false;
  var scompat = document.compatMode;
  if(scompat != "BackCompat"){}
  dstr1='<div id="';
  dstr2='" style="position:absolute;text-align:'+"center"+';width:'+100+'%;height:'+100+'%;visibility:hidden;left:0px;top:0px;padding:0px;margin:0px;overflow:hidden;">';
  dstr3='<img class="bgImg" id="slide1img';
  dstr4='" src="';
  dstr5='" style="position:relative;left:0px;margin:0px;border:0px;';
  dstr6='" alt="" border="0" /></div>';
  this.slide1dotrans=slide1dotrans;
  this.slide1initte=slide1initte;
  this.slide1initte2=slide1initte2;
  this.slide1beftrans=slide1beftrans;
  this.slide1dotransff=slide1dotransff;
}

function slide1dotrans()
{
  if(IEB==true){vssdiv.filters[0].apply();}
  objc=document.getElementById('slide1d'+vcurr);
  objn=document.getElementById('slide1d'+vnext);
  objc.style.visibility="hidden";
  objn.style.visibility="visible";
  if(IEB==true){vssdiv.filters[0].play();}
  vcurr=vnext;
  vnext=vnext+1;
  if(vnext>=imgAnzahl){vnext=0;}
  Timer1 = setTimeout('slide1dotrans()',(3000+showTime));
}

function slide1dotransff()
{
  op=op-dif;
  objc=document.getElementById('slide1d'+vcurr);
  objn=document.getElementById('slide1d'+vnext);
  if(op<(0.00)){op=0.00;}
  objc.style.opacity = op;
  objn.style.opacity = 1.00;

  if(op>(0.00))
  {
    Timer2 = setTimeout('slide1dotransff()',slideTime);
  }
  else
  {
    objc.style.zIndex=2;
    objn.style.zIndex=3;
    Timer3 = setTimeout('slide1beftrans()',showTime);
  }
}

function slide1beftrans()
{
  vcurr=vnext;
  vnext=vnext+1;
  if(vnext>=imgAnzahl){vnext=0;}
  op=1.00;
  objc=document.getElementById('slide1d'+vcurr);
  objn=document.getElementById('slide1d'+vnext);
  objc.style.visibility="visible";
  objn.style.visibility="visible";
  objc.style.zIndex=3;
  objn.style.zIndex=2;
  objc.style.opacity = 1.00;
  objn.style.opacity = 1.00;
  slide1dotransff();
}

function slide1initte2()
{
  vssdiv=document.getElementById("slide1dv");
  if(imgAnzahl>0)
  {
    objc=document.getElementById('slide1d'+0);
    objc.style.visibility="visible";
  }
  if(imgAnzahl>1)
  {
    if((IEB==true)||(fademi==0))
    {
      vcurr=0;
      vnext=1;
      Timer4 = setTimeout('slide1dotrans()',showTime);
    }
    else
    {
      vcurr=0;
      vnext=0;
      Timer5 = setTimeout('slide1beftrans()',showTime);
    }
  }
}

function slide1initte(page)
{
  i=0;
  looper = 0;
  innertxt="";
  for(i=0;i<imgAnzahl;i++)
  {
    innertxt=innertxt+dstr1+"slide1d"+i+dstr2+linkstr[i]+dstr3+i+dstr4+imgstr[i]+dstr5+clslinkstr[i]+dstr6;
  }
  spage=document.getElementById('slide1dv');
  spage.innerHTML=""+innertxt;
  Timer6 = setTimeout('slide1initte2()',200);
}

