function SlideShow_start(){
 		if (is_win && (is_ie5up || is_gecko || is_opera5up )) {			
			if ( 	this.slideFirstCall ){
				this.slideFirstCall = false;
				this.loadSlides();
				this.slideIndex += 1;
				if ( this.slideIndex > this.slideCount ) this.slideIndex = 1;				
				if (this.slideDuration>0) {
					var pThis = this;
					var f = function(){pThis.start();}
					this.timerID = window.setTimeout(f, this.slideDuration * 1000);
				}				
				return;
			}
			var win = window;
			var elImg = win.document.images[this.imgID]	
 			if( elImg != null){		// we've found it
 				slideCount = this.slideCount;
 				slideFolder =  this.showDir;
 				slideSecs = this.slideDuration;
 				style= this.showStyle.toUpperCase();
 				style= style.substr(0,3);
 				random = (style=='RAN');
				if ( ! this.slideFirstCall ){	// change the slide 
					if (is_ie5up) xbElHide(elImg) 
					elImg.src = this.slides[this.slideIndex].src
					if (is_ie5up) {
						elImg.filters.item(0).Transition = this.slideTransition; 
						elImg.filters.item(0).Apply();
						xbElShow(elImg);
						elImg.filters.item(0).Play(1);
					}
				}	 			
				this.slideIndex += 1;
				if ( this.slideIndex > this.slideCount ) this.slideIndex = 1;
				if (this.slideDuration>0) {
					var pThis = this;
					var f = function(){pThis.start();}
					this.timerID = window.setTimeout(f, this.slideDuration * 1000);
				}
			}
			else{	
				if (this.slideDuration>0) {
					var pThis = this;
					var f = function(){pThis.start();}
					this.timerID = window.setTimeout(f, 1 * 1000);
				}
			}
		}
}
function SlideShow_loadSlides(){
	for(f=1;f<=this.slideCount;f++){
		this.slides[f] = new Image();
		this.slides[f].src = this.showDir + "/slide_" + f + this.slideExtn;
	}
}
function SlideShow() {
	this.slideIndex = 1;
	this.slideTransition = 12; // 23=random;
	this.slides = new Array();
	this.showDir=String('');
	this.slideCount=0;
	this.slideDuration=5;
	this.showStyle='SEQ';
	this.imgID='imgSlideShow';
	this.slideFirstCall=true;
	this.slidePreLoad = new Image();
 	this.slideExtn=".jpg";	
	this.start = SlideShow_start;
	this.loadSlides=SlideShow_loadSlides;
}
