function Bildwechsler(bildname, objectname, slidespeed, popup_win) {
	this.ie55 = window.createPopup;
	this.slidespeed = slidespeed;
	this.arr_images = new Array();
	this.arr_links = new Array();
	this.imageholder = new Array();
	this.whichlink = 0;
	this.whichimage = 0;
	this.pixeldelay = 0;
	this.bildname = bildname;
	this.popup_win = popup_win;

	this.setimages = function(){
		for (i=0;i<this.arr_images.length;i++){
			this.imageholder[i] = new Image();
			this.imageholder[i].src = this.arr_images[i];
		}
	}

	this.gotoshow = function(){
		if (this.arr_links[this.whichlink]!=""){
			if (this.popup_win==1){
				window.open(this.arr_links[this.whichlink]);
			} else {
				window.location=this.arr_links[this.whichlink];
			}
		}
	}

	this.slideit = function(){
		if (!document.images) return;
		if (this.ie55) document.images[this.bildname].filters[0].apply();
		document.images[this.bildname].src=this.imageholder[this.whichimage].src;
		if (this.ie55) document.images[this.bildname].filters[0].play();
		this.whichlink = this.whichimage;
		this.whichimage = (this.whichimage < this.arr_images.length-1)? this.whichimage+1 : 0;
		setTimeout(objectname+".slideit()",this.slidespeed+this.pixeldelay);
	}
}
