$(document).ready(function(){
	if($('#contentStage').length){
		
		// Set Up
		$("#contentStage > div:nth-child(n+2)").hide();
		
		/*
		$('#contentStage').css('min-height', function(){
			return $(this).height();										  
		});
		*/
		$('#body div.content').css('min-height', function(){
			return $(this).height();											  
		});
		
		$('#contentNav a:first').addClass('active');
		
		$('#contentNav a').not('.pdf, .cbox').click(function(){
			var theClick = $(this);
			var theTarget = $(this).attr('href');
			theTarget = $(theTarget);
			
			if(theTarget.is(':hidden')) {
				$('#contentNav a.active').removeClass();
				theClick.addClass('active');
				
				// IE ClearType Bug
				if($.browser.msie){
					$('#contentStage > div').css('background-color', '#FFF');
				}
				
				$('#contentStage > div:visible').fadeOut(function(){
					theTarget.fadeIn();
					$('#body div.content').css('min-height', function(){
						return theTarget.height();											  
					});
				});
			}
			
			return false;
		});
	}
});
