if(document.all)var isIE=true; var fotos = new Array(); function neu(url,text,link) { Neu = fotos.length; fotos[Neu] = new Array(); fotos[Neu]["pic"]=new Image() fotos[Neu]["pic"].src=url; } // editiere hier das große bild exakt=false; //false = runterskalieren | true = die exakte angegebene größe height=266; //bei exakt=false sollte die width sehr hoch gesetzt werden! width=348; preview=3; //anzahl der thumbnails in der manual-navi-leiste time=6000 //'slide'Zeit wie lange ein einzelnes Bild angezeigt wird in ms function skalieren(x,h,w,e) { H=fotos[x]["pic"].height; W=fotos[x]["pic"].width; W1=W; H1=H; if(!e) { if(H>h) { W1=W*h/H; H1=h; } if(W>w) { H1=H*w/W; W1=w; } }else { H1=h; W1=w; } var re = new Array(); re["w"]=W1; re["h"]=H1; return(re); W1=""; H1=""; W=""; H=""; } var nav=0; NAV=-1; function show(x,fs) { x=Number(x); if(fotos[x]) { var Size = skalieren(x,height,width,exakt); if(fs){size="width="+Size["w"]+" height="+Size["h"]; alt=""; was=false} else {size=""; alt=""; was=true} if(isIE) document.getElementById("inhalt").filters.blendTrans.Apply(); document.getElementById("inhalt").innerHTML = ""; if (isIE) document.getElementById("inhalt").filters.blendTrans.Play(); document.getElementById("name").innerHTML=fotos[x]["text"]; } NAV=x } var Timer; running=false; runningback=false; function start() { if(!running&&!runningback) { slideshow(); running=true; } } function back() { if(!runningback&&!running) { slideshowback(); runningback=true; } } function slideshow() { NAV++; if(NAV>=fotos.length)NAV=0; show(NAV,true); Timer = setTimeout("slideshow()",time); // document.getElementById("status2").innerHTML=NAV+1; } function slideshowback() { NAV--; if(NAV==-1)NAV=fotos.length-1; show(NAV,true); Timer = setTimeout("slideshowback()",time); // document.getElementById("status2").innerHTML=NAV+1; } function kill() { running=false; runningback=false; // document.getElementById("status2").innerHTML=NAV+1; if(Timer)clearTimeout(Timer); }