jQuery(document).ready(function() {
	// jQuery('#slider_wrap').clickRotation();
	
	jQuery("#slider_wrap").tabs({ fx: { opacity: 'toggle', duration: 'fast' } }).tabs('rotate', 5000, true);
	
	jQuery("#slider_wrap").click(function() {
		jQuery(this).tabs('rotate', 0, false);
	});
});

// jQuery.fn.clickRotation = function(){
// 	return this.each(function(){
// 		var lis = jQuery('.slider>li',this);
// 		lis.eq(0).show();
// 		lis.not(':first').hide();
// 
// 		window.setInterval(function(){
// 			var current = lis.filter(':visible');
// 			var next = (current.next().length>0) ? current.next() : lis.eq(0);
// 			current.siblings().removeClass('active');
// 			current.addClass('active');
// 			current.fadeOut('slow');
// 			next.fadeIn('slow');
// 		},4000);
// 		
// 	});
// };

