function ITA_picSideScroller(rootId,slideDelay,slideStep,picSpacing,mouseListen) {
	
	this.rootId=rootId;
	this.slideDelay=slideDelay;
	this.slideStep=slideStep;
	this.mouseListen=mouseListen;
	this.picSpacing=picSpacing;
	
	this.mainDiv=document.getElementById(rootId);
	this.mainDiv.style.position="absolute";
	this.mainDiv.style.left="0px";
	this.mainDiv.style.top="0px";
	this.mainDiv.style.width="100%";
	this.mainDiv.style.height="100%";
	this.mainWidth=this.mainDiv.offsetWidth;
	this.mainHeight=this.mainDiv.offsetHeight;
	
	this.picArray=new Array();
	this.divArray=new Array();
	
	this.picsLoaded=false;
	this.startTime=new Date().getTime();
	this.stopped=false;
} // ITA_picSideScroller (Klasse)

ITA_picSideScroller.prototype.movePics=function() {
	var kk=new Date().getTime();
	var diff=kk-this.lastTime;
	if(diff>this.slideDelay) {
		this.lastTime+=this.slideDelay;
		
		var j;
		var maxi=this.maxIndex;
		var mini=this.minIndex;
		
		if(this.slideStep>0) {
			
			for(var i=0;i<this.divArray.length;i++) {
				j=maxi-i;
				if(j<0) j+=this.divArray.length;
				this.divArray[j].xPos+=this.slideStep;
			
				if(this.divArray[j].xPos>this.mainWidth) {
					this.divArray[j].xPos=this.divArray[this.minIndex].xPos-this.divArray[j].offsetWidth-this.picSpacing;
					this.minIndex=j;
					this.maxIndex=j-1;
					if(this.maxIndex<0) this.maxIndex+=this.picArray.length;
					this.divArray[j].xPos=Math.min(-this.divArray[j].offsetWidth,this.divArray[j].xPos);
				}
				this.divArray[j].style.left=Math.round(this.divArray[j].xPos)+"px";
			} // for pics
			
		} else if(this.slideStep<0) {
			
			for(var i=0;i<this.divArray.length;i++) {
				j=mini+i;
				if(j>=this.divArray.length) j-=this.divArray.length;
				this.divArray[j].xPos+=this.slideStep;
			
				if(this.divArray[j].xPos<-(this.divArray[j].offsetWidth+this.picSpacing)) {
					this.divArray[j].xPos=this.divArray[this.maxIndex].xPos+this.divArray[this.maxIndex].offsetWidth+this.picSpacing;
					this.maxIndex=j;
					this.minIndex=j+1;
					if(this.minIndex>=this.picArray.length) this.minIndex-=this.picArray.length;
					this.divArray[j].xPos=Math.max(this.mainWidth,this.divArray[j].xPos);
				}
				this.divArray[j].style.left=Math.round(this.divArray[j].xPos)+"px";
			} // for pics
			
		}
		
	}
} // ITA_picSideScroller.prototype.movePics

ITA_picSideScroller.prototype.addPicture=function(picSrc,picTitle,picLink,picTarget) {
	var ind=this.picArray.length;
	
	this.picArray[ind]=new Array();
	
	this.picArray[ind]["pic"]=new Image();
	this.picArray[ind]["pic"].src=picSrc;
	
	this.picArray[ind]["picSrc"]=picSrc;
	this.picArray[ind]["picTitle"]=unescape(picTitle);
	this.picArray[ind]["picLink"]=picLink;
	this.picArray[ind]["picTarget"]=picTarget;
	
} // ITA_picSideScroller.prototype.addPicture

ITA_picSideScroller.prototype.initPics=function() {
	
	if(!this.checkedInfoBox) {
		if(document.getElementById(this.rootId+"Infos")) {
			this.infoBox=document.getElementById(this.rootId+"Infos");
			this.resetInfoBox();
		}
		this.checkedInfoBox=true;
	}
	
	if(!this.picsLoaded && this.picArray.length) {
		if(!window.ITA_sideSrcollers) window.ITA_sideSrcollers=new Array();
		if(!window.ITA_sideSrcollers[this.rootId]) {
			window.ITA_sideSrcollers[this.rootId]=this;
			this.intVal=window.setInterval("ITA_sideSrcollers['"+this.rootId+"'].initPics()",500); // alle 500 ms checken ob bilder geladen
		}
		
		this.checkPics();
		
		if(this.picArray.length) {
			var cDate=new Date().getTime();
			if((cDate-this.startTime)>60000 && !this.picsLoaded) { // nach 1 min laden aufgeben
				window.clearInterval(this.intVal);
				this.stopped=true;
				this.mainDiv.innerHTML="<div style='width:100%;text-align:center;position:relative;top:40%;font-weight:bold;'>Scrollpics timed out!</div>";
			}
		}
	} else {
		this.mainDiv.innerHTML="<div width='100%' height='100%' align='middle'><b>Scrollpics not available!</b></div>";
	}
	
} // ITA_picSideScroller.prototype.initPics

ITA_picSideScroller.prototype.fillInfoBox=function(indi) {
	if(this.infoBox) {
		window.clearInterval(this.intVal_info);
		this.intVal_info=0;
		this.infoBox.innerHTML="<div>"+this.picArray[indi]["picTitle"]+"</div>";
	}
} // ITA_picSideScroller.prototype.fillInfoBox

ITA_picSideScroller.prototype.clearInfoBox=function(indi) {
	if(this.infoBox) {
		window.clearInterval(this.intVal_info);
		this.intVal_info=0;
		this.intVal_info=window.setInterval("ITA_sideSrcollers['"+this.rootId+"'].resetInfoBox()",1000);
	}
} // ITA_picSideScroller.prototype.clearInfoBox

ITA_picSideScroller.prototype.resetInfoBox=function() {
	if(this.infoBox) {
		window.clearInterval(this.intVal_info);
		this.intVal_info=0;
		this.infoBox.innerHTML="<div>"+unescape(this.startMessage)+"</div>";
	}
} // ITA_picSideScroller.prototype.resetInfoBox

ITA_picSideScroller.prototype.checkPics=function() {
	var ready=true;
	
	for(var i=0;i<this.picArray.length;i++) {
		if(this.picArray[i]["pic"]) {
			if(!this.picArray[i]["pic"].complete) ready=false;
		} else {
			ready=false;
		}
	}
	
	if(ready) {
		window.clearInterval(this.intVal);
		this.picsLoaded=true;
		var div,pic,a;
		
		var xPos=0;
		for(var i=0;i<this.picArray.length;i++) {
			div=document.createElement("div");
			pic=document.createElement("img");
			pic.src=this.picArray[i]["pic"].src;
			
			div.style.position="absolute";
			
			div.mainObj=this;
			div.scrollIndex=i;
			if(this.picArray[i]["picTitle"]) {
				div.onmouseover=function() {
					this.mainObj.fillInfoBox(this.scrollIndex);
				}
				div.onmouseout=function() {
					this.mainObj.clearInfoBox(this.scrollIndex);
				}
			}
			
			if(this.picArray[i]["picLink"]) {
				a=document.createElement("a");
				a.setAttribute("href",this.picArray[i]["picLink"]);
				if(this.picArray[i]["picTarget"]) {
					a.setAttribute("target",this.picArray[i]["picTarget"]);
				}
				pic.style.border="none";
				a.appendChild(pic);
				div.appendChild(a);
			} else {
				div.appendChild(pic);
			}
			
			this.mainDiv.appendChild(div);
			this.divArray[i]=div;
			this.divArray[i].style.top=Math.round((this.mainHeight-this.divArray[i].offsetHeight)/2)+"px";
			
			xPos=this.initPicPosition(i,xPos);
		}
		
	} // if ready
	
	// das eigtl. bewegen starten
	this.lastTime=new Date().getTime();
	this.minIndex=0;
	this.maxIndex=this.picArray.length-1;
	this.intVal_move=window.setInterval("ITA_sideSrcollers['"+this.rootId+"'].movePics()",10);
	
} // ITA_picSideScroller.prototype.checkPics

ITA_picSideScroller.prototype.initPicPosition=function(ind,offX) {
	
	this.divArray[ind].style.left=offX+"px";
	this.divArray[ind].xPos=offX;
	var zur=offX+this.divArray[ind].offsetWidth+this.picSpacing;
	
	return zur;
} // ITA_picSideScroller.prototype.initPicPosition