jq(document).ready(function(){
	jQuery('#partners ul').jcarousel();
	
	var timer;
	jq('#testimonials li').each(function(){
		var current = jq(this);
		var triggernext = function(){ current.blur() }
		current.css('display', 'none').blur(function(){
			var nextone = (current.next('li').length>0) ? current.next('li') : jq('#testimonials li:first');
			current.fadeOut('700', function(){
				clearTimeout(timer);
				nextone.focus();
			});
			return false;
		}).focus(function(){
			current.fadeIn('500', function(){
				timer = setTimeout(triggernext, 4500);
			}).bind("mouseover",function(){ 
			clearTimeout(timer);
			}).bind("mouseout",function(){
				timer= setTimeout(triggernext, 4500);
			});
		return false;
		});
	});
	jq('#testimonials li:first').focus();
});