/* CORE Fitness Script */
/* Alex Ford / Crater  */
/* Created 10/15/2011  */

var indexSwap;


$(document).ready(function(){
	// yep yep yep
	$("#slideshow").removeClass('hidden');
	
	$(".detail").first().fadeIn(500);
	$(".chooser").first().addClass('shown');
	
	$(".chooser:not(.shown)").live('click', function() {
		indexSwap = $(this).index();
		
		//trainer/testimonial chooser
		$(".detail").hide();
		$(".detail:eq("+indexSwap+")").show();
		
		
		$(".chooser").removeClass('shown');
		
		$(this).addClass('shown');
		return false;
	});	
	
	$("#productcategories a").click(function() {
		// nutrition categories
		
		$(".nutrition #leftcontent div.switch").hide();
		$($(this).attr("href")).show();
		
		return false;
	});
	
	
});
