$(document).ready(function() {
	$('.tab_container').each(function(index) {
		$(this).find('.tabs LI').removeClass('selected');
		$(this).find('.tabs LI A').click(function(){
			$(this).parent().siblings().removeClass("selected");
			$(this).parents('.tab_container').find('.tab_content').hide();
			$(this).parent().addClass("selected");
			$($(this).attr('href')).fadeIn();
			return false;
		});
		$(this).find('.tabs LI A').first().click();
		
	});

});
/*
$(document).ready(function() {
	var timing = 6000;

	var cycles = $('.testimonials UL').length;
	if (!window.current_testimonial_cycle) { window.current_testimonial_cycle = 0; }

	var cycle_testimonials = function() {
		var current_cycle = window.current_testimonial_cycle;
		if($('.testimonials UL:visible').length > 0) {
			$('.testimonials UL:visible').fadeOut("fast", function() {
				$('.testimonials UL').slice(current_cycle, current_cycle+1).fadeIn();	
			});		
		} else {
			$('.testimonials UL').slice(current_cycle, current_cycle+1).fadeIn();	
		}
		window.current_testimonial_cycle = (current_cycle + 1) % cycles;
		setTimeout(cycle_testimonials, timing);
	}
	cycle_testimonials();
}); 
*/

