$.fn.jSlide = function(speed){
	var timer;
	
	function jSlide(wrapper, width){
		wrapper.children().first().animate({
			width: 0
		}, speed, "linear", function(){
			$(this).css("width", width).appendTo(wrapper)
			jSlide(wrapper, width)
		})
	}
	
	return this.each(function(){
		var that = $(this),
			width = that.children().first().width()
	
		jSlide(that, width)
		that.hover(function(){
			that.children().stop()
		},function(){
			jSlide(that, width)
		})
		// .parent().append(
			// $("<span>OHai Spped op!</span>")
		// ).css({
			// "position": "absolute",
			// "display": "inline",
			// "margin": 0,
			// "right": 0
		// })
	})
}
$(function(){
	$("#slider_events .slider_wrapper").jSlide(2000)
	$("#slider_djs .slider_wrapper").jSlide(2000)
})
