(function($) {
	$.fn.slides = function() {
		var $this = $(this);
		var ul = $('ul', $this);
		var items = [];
		var idx = 0;
		
		var div = $('.item', $this);
		
		var i = 0;
		$('.item', $this).each(function() {
			items[i++] = $(this);
		});
		
		var i = 0;
		$('li', ul).each(function() {
			$(this).attr('idx', i++);
			$(this).hover(function() {
				change($(this));
			}, function() {});
		});
		
		function change(elem) {
			var i = elem.attr('idx');
			if (i == idx)
				return;
			
			$('li a', ul).hide();
			$('a', elem).show();
			
			$(div[idx]).fadeOut('slow');
			$(div[i]).fadeIn('slow');
			
			idx = i;
		}
	};
})(jQuery);
