function slideSwitch() {
	var $active = $('#photos li.active');
	if ( $active.length == 0 ) $active = $('#phtos li:last');
	var $next = $active.next().length ? $active.next()
	: $('#photos li:first');
	
	$active.addClass('last-active');
	$next.addClass('active')
	$active.removeClass('active last-active');
}

$(document).ready(function() {
	var $active = $('#testimonials .testimonial');
	$active.addClass('hidden');
	setInterval("slideSwitch()", 3000);
	slideSwitch();
}); 
