Event.observe(window,'load',function(e){
	$$('.slider').each(function(v) {
		v.calculatedWidth = 0;
		// Fix the width of the slider element
		v.select('li').each(function(vv) {
			v.calculatedWidth += vv.offsetWidth;
		});
		v.style.width = ""+v.calculatedWidth+"px";
		var sliderIns = new Df.Slider(v.up('th'));
		sliderIns.pars.animate = {time: 750,pause: 20,ease: Df.Transitions["backInOut"]};
		sliderIns.pars.iterateBy = "li";
		sliderIns.set();
	});
});

