// JavaScript Document plfmSlideshow.prototype.transport = function(action){ switch(action){ case("pause"): return(clearTimeout(this.to)); case("rw"): return(this.changeSlide(this.topSlideIndex - 1)); case("ff"): return(this.changeSlide(this.bottomSlideIndex)); } } plfmSlideshow.prototype.slideShowRedirect = function(){ if(this.clickArray[this.topSlideIndex]!=""){ if(this.targetArray[this.topSlideIndex] == "_blank"){ window.open(this.clickArray[this.topSlideIndex]); }else{ document.location.href= this.clickArray[this.topSlideIndex]; } } } plfmSlideshow.prototype.fadeChange = function(){ this.upwardOpacity = this.upwardOpacity + .02; this.downwardOpacity = this.downwardOpacity - .02; if(null!=this.bottomSlide.style.filter){ eval("this.bottomSlide.style.filter = \"Alpha(Opacity=" + this.upwardOpacity*100 +")\";"); eval("this.topSlide.style.filter = \"Alpha(Opacity=" + this.downwardOpacity*100 +")\";"); } if(null!=this.bottomSlide.style.opacity){ this.bottomSlide.style.opacity = this.upwardOpacity; this.topSlide.style.opacity = this.downwardOpacity; } if(null!=this.bottomSlide.style.MozOpacity){ this.bottomSlide.style.MozOpacity=this.upwardOpacity; this.topSlide.style.MozOpacity=this.downwardOpacity; } if(this.holdOnSlide == 1){ this.holdOnSlide = 0; this.to = setTimeout(this.obj + ".fadeChange();",this.showSeconds); }else if(this.upwardOpacity>1.0){ this.changeSlide(this.bottomSlideIndex); }else{ this.to = setTimeout(this.obj + ".fadeChange();",15); } } plfmSlideshow.prototype.thumbHilighting = function(direction,tid){ null == tid ? tid = this.topSlideIndex : 1; if(!dge(this.baseDiv + "t" + tid)){ return; } var obj = dge(this.baseDiv + "t" + tid); if(direction == 1){ obj.style.color = this.bc; obj.style.backgroundColor = this.fc; }else{ obj.style.color = this.fc; obj.style.backgroundColor = this.bc; } } plfmSlideshow.prototype.changeSlide = function(newTopSlideIndex){ clearTimeout(this.to); if(null!=this.topSlideIndex){ this.thumbHilighting(-1); } newTopSlideIndex == (this.numSlides - 1) ? this.bottomSlideIndex = 0 : this.bottomSlideIndex = newTopSlideIndex + 1; this.topSlideIndex = newTopSlideIndex; this.thumbHilighting(1); this.topSlide.innerHTML = this.contents[this.topSlideIndex]; this.topSlide.style.opacity = 1.0; if(null!=this.bottomSlide.style.filter){ this.topSlide.style.filter = "Alpha(Opacity=100);"; } this.bottomSlide.innerHTML = this.contents[this.bottomSlideIndex]; this.bottomSlide.style.opacity = 0; this.upwardOpacity = 0.0; this.downwardOpacity = 1.00; this.holdOnSlide = 1; this.fadeChange(); } plfmSlideshow.prototype.loadContent = function(){ var lastSlide = this.baseDiv + "s" + (this.numSlides - 1); if(dge(lastSlide)){ for(var i=0;i