var SlideshowJC=new Class({Implements:Options,options:{delay:3000,overStop:false,duration:"long"},initialize:function(b,a){this.elements=$$(b);this.total=this.elements.length;if(this.total<=0){return false}this.setOptions(a);this.current=0;this.elements.each(function(d,c){d.setStyle("opacity","0");d.set("tween",{duration:this.options.duration})}.bind(this));this.elements[0].tween("opacity",1);this.timer=this.next.periodical(this.options.delay,this);if(this.options.overStop){this.elements.addEvents({mouseover:function(){$clear(this.timer)}.bind(this),mouseout:function(){this.timer=this.next.periodical(this.options.delay,this)}.bind(this)})}},next:function(){var a=this.current;this.current++;if(this.current==this.total){this.current=0}this.elements[a].tween("opacity",0);this.elements[this.current].tween("opacity",1)},prev:function(){var a=this.current;this.current--;if(this.current<0){this.current=this.total-1}this.elements[a].tween("opacity",0);this.elements[this.current].tween("opacity",1)}});