function NuSlideshow(){
	this.step;
	this.speed;
	this.scrollwidthneg;
	this.scrollwidth;
	this.scrollheight;
	this.scroller1;
	this.scroller2;
	this.scrollers;
	this.active;
	this.pause;
	this.imgcount;
	this.imgelwidth;
	this.scroll=function(){
		if(!this.pause){
			for(var i=0;i<this.scrollers.length;i++){
			var _17=parseInt(this.scrollers[i].style.left);
			this.scrollers[i].style.left=_17-this.step+"px";
			if(_17<this.scrollwidthneg){
				this.scrollers[i].style.left=this.scrollwidth+"px";;
			}
			if(_17>this.scrollwidth){
				this.scrollers[i].style.left="-"+this.scrollwidth+"px";;
			}
		}
	}
	window.setTimeout("slideshow.scroll()",this.speed);
};
this.stop=function(){
	this.pause=true;
};
this.play=function(){
	this.pause=false;
	this.step=1;
};
this.speedup=function(){
	this.step=3;
}
this.speeddown=function(){
	this.step=-3;
}
this.init=function(_18,_19,_20,_22,_21){
	this.step=1;
	this.speed=20;
	this.imgcount=_21;
	this.imgelwidth=_20;
	this.scrollwidth=this.imgelwidth*this.imgcount;
	this.scrollwidthneg=this.scrollwidth*-1;
	document.getElementById(_19).style.left="0px";
	this.scroller1=document.getElementById(_19);
	this.scroller1.style.width=this.scrollwidth+"px";
	this.scroller2=this.scroller1.cloneNode(true);
	this.scroller1.parentNode.appendChild(this.scroller2);
	with(this.scroller2){
		style.width=this.scrollwidth+"px";
		style.visibility = "visible";
		style.position="relative";
		style.top="-"+_22+"px";
		style.left=this.scrollwidth+"px";
		setAttribute("id",_19+"2");
	}
	this.scrollers=new Array(this.scroller1,this.scroller2);
	var _1f=$(_18);
	Event.observe(_1f,'mouseover', function(e) { 
		var coordX = 300;
		var mouseinscroller = Event.pointerX(e) - Position.positionedOffset($('scrollertd'))[0];
		var coordX2 = 914;
		var coordX3 = 614;
		var mouseinscroller2 = Event.pointerX(e) - coordX2;
		if(mouseinscroller <= coordX)
		{			
		//slideshow.speedup();
		slideshow.speeddown();
		}
		else if(mouseinscroller <= coordX2 && mouseinscroller >= coordX3){
			//slideshow.speeddown();
			slideshow.speedup();
		}
		else
		{			
		slideshow.stop();
		}
	});
	Event.observe(_1f,'mouseout',function() { slideshow.play(); });
	this.pause=false;
	this.scroll();
	};
}
var slideshow=new NuSlideshow();