//http://coryschires.com/jquery-quote-rotator-plugin/
(function($){$.testimonial_rotator={defaults:{rotation_speed:10000,pause_on_hover:true,randomize_first_testimonial:true}}
$.fn.extend({testimonial_rotator:function(config){var config=$.extend({},$.testimonial_rotator.defaults,config);return this.each(function(){var testimonial_list=$(this);var list_items=testimonial_list.find('li');var rotation_speed=config.rotation_speed<2000?2000:config.rotation_speed;list_items.hide();if(config.randomize_first_testimonial){var random=Math.floor(Math.random()*(list_items.length));$(list_items[random]).addClass('active');}else if(!(testimonial_list.find('li.active')).length){$('li:first',testimonial_list).addClass('active');};testimonial_list.find('li.active').show();var rotation_active=true;testimonial_list.hover(function(){if(config.pause_on_hover){rotation_active=false};},function(){rotation_active=true});setInterval(function(){if(rotation_active){var active_testimonial=testimonial_list.find('li.active');var next_testimonial=active_testimonial.next().length?active_testimonial.next():testimonial_list.find('li:first');active_testimonial.animate({opacity:0},500,function(){active_testimonial.hide().css('opacity',1);next_testimonial.fadeIn(500);});active_testimonial.removeClass('active');next_testimonial.addClass('active');};},rotation_speed);})}})})(jQuery);
