
function slideshow_sl(image_array){
fademi=1;
imgarr=image_array; 
/*new Array();
imgstr=new Array();
linkstr=new Array();
clslinkstr=new Array();
imgarr[0]=new Image();
imgarr[0].src='images/service_ausstattung_logo.jpg';
linkstr[0]='';
clslinkstr[0]='';
imgarr[1]=new Image();
imgarr[1].src='images/plan.png';
linkstr[1]='';
clslinkstr[1]='';
imgarr[2]=new Image();
imgarr[2].src='images/splash_img.jpg';
linkstr[2]='';
clslinkstr[2]='';*/
vcurr=0;
vnext=0;
vssdiv=null;
stepc=20*(3000/1000);
dif=0.00;
op=1.00;
dif=(1.00/stepc);
atime=2000;
awidth = 732;
aheight = 319;
acount = imgarr.length;
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:'+awidth+'px;height:'+aheight+'px;visibility:hidden;left:0px;top:0px;padding:0px;margin:0px;overflow:hidden;">';
dstr3='<img id="slideshow_img';
dstr4='" src="';
dstr5='" style="position:relative;left:0px;top:0px;padding:0px;margin:0px;border:0px;" alt="" border="0"></img>';
dstr6='</div>';
this.slideshow_dotrans=slideshow_dotrans;
this.slideshow_initte=slideshow_initte;
this.slideshow_initte2=slideshow_initte2;
this.slideshow_beftrans=slideshow_beftrans;
this.slideshow_dotransff=slideshow_dotransff;
}

function slideshow_dotrans(){
 if(IEB==true){
vssdiv.filters[0].apply();
}
 objc=document.getElementById('slideshow_d'+vcurr);
 objn=document.getElementById('slideshow_d'+vnext);
   objc.style.visibility="hidden";
 objn.style.visibility="visible";
 if(IEB==true){
vssdiv.filters[0].play();
}
  vcurr=vnext; vnext=vnext+1;  
  if(vnext>=acount) {
  vnext=0; 
}
   setTimeout('slideshow_dotrans()',(3000+atime));
}

function slideshow_dotransff(){
 op=op-dif;
 objc=document.getElementById('slideshow_d'+vcurr);
 objn=document.getElementById('slideshow_d'+vnext);
  if(op<(0.00)){
op=0.00;
}
 objc.style.opacity = op;
 objn.style.opacity = 1.00;
 if(op>(0.00)) {
  setTimeout('slideshow_dotransff()',50); 
}
 else {
  objc.style.zIndex=2;
  objn.style.zIndex=3;
  setTimeout('slideshow_beftrans()',atime);
   
} 
}

function slideshow_beftrans(){
 vcurr=vnext;
 vnext=vnext+1;
 if(vnext>=acount) {
  vnext=0;
}
 op=1.00; 
 objc=document.getElementById('slideshow_d'+vcurr);
 objn=document.getElementById('slideshow_d'+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;
   slideshow_dotransff();
}

function slideshow_initte2(){
 vssdiv=document.getElementById("slideshow_dv");
 if(acount>0) {
  objc=document.getElementById('slideshow_d'+0);
   objc.style.visibility="visible";
  
}
 if(acount>1) {
  if((IEB==true)||(fademi==0))  {
   vcurr=0;
   vnext=1;
   setTimeout('slideshow_dotrans()',atime);
}
  else  {
   vcurr=0;
   vnext=0;
     setTimeout('slideshow_beftrans()',atime); 
}
}
}

function slideshow_initte(){
 i=0;
 innertxt="";
 for(i=0;i<acount;i++) {
  innertxt=innertxt+dstr1+"slideshow_d"+i+dstr2+dstr3+i+dstr4+(imgarr[i].src)+dstr5+dstr6;
}
 spage=document.getElementById('slideshow_dv');
 spage.innerHTML=""+innertxt;
 setTimeout('slideshow_initte2()',200);
}


