function newSlideShow(showName, speed, transSpeed) {
	var SlideShow = eval('document.images.'+showName);

	SlideShow.showStart = showStart;
	SlideShow.showStop = showStop;
	SlideShow.nextSlide = nextSlide;
	SlideShow.addSlide = addSlide;
				
	SlideShow.showSpeed = speed;
	SlideShow.transSpeed = transSpeed;
	SlideShow.isRunning = false;
	SlideShow.slideCount = 0;
	SlideShow.slides = new Array();
	SlideShow.showIntervalID
	SlideShow.currentSlide = 0;
	document.all
	function showStart() {
		this.isRunning = true;
		
		//this.showIntervalID = setInterval('document.images.'+this.name+'.nextSlide(document.images.'+this.name+')', this.showSpeed);
		this.showIntervalID = setInterval('document.images.'+this.name+'.nextSlide()', this.showSpeed);
	};
	function showStop() {
		this.isRunning = false;
		
		clearInterval(this.showIntervalID);
	};
	function nextSlide() {
		this.currentSlide++;
		if (this.currentSlide >= this.slideCount) {
			this.currentSlide = 0;
		};
		
		if (this.transSpeed != 0) {
			this.style.filter="blendTrans(duration="+this.transSpeed+")";
			this.style.filter="blendTrans(duration=crossFadeDuration)";
			this.filters.blendTrans.Apply();
		};
		
		this.src = this.slides[this.currentSlide];
		
		if (this.transSpeed != 0) {
			this.filters.blendTrans.Play();
		};
	};
	function addSlide(slideName) {
		this.slides[this.slideCount] = slideName;
		this.slideCount++;
	};
};

