$.fn.fader = function(delay){
	return this.each(function(){
		var container = $(this);
		var items = container.children();
		var timer;
		var switchItem = function(){
			var item = items.filter(':visible');
			var nextItem = item.next().length ? item.next() : items.first();
			item.fadeOut(500,function(){
				nextItem.fadeIn(500);
			});
		}
		items.not(':first').hide();
		container.mouseover(function(){
			clearInterval(timer);
		}).mouseout(function(){
			timer = setInterval(switchItem,delay);
		}).mouseout();
	});
}
