$(document).ready(function() {

	$('.mainNav li:has(ul)').addClass('hasChild').children("a:first-child").addClass('arrow');			//	Add classes to Navigation for styling

	$('.mainNav li:has(ul)').hover(			//	Navigation Hover
		function() {
			$(this).addClass('hover');
			$(this).children("a:first-child").addClass('fc');
		},
		function() {
			$(this).removeClass('hover');
			$(this).children("a:first-child").removeClass('fc');
		}
	);
	
	$('#centerStage .full').innerfade({			//	Calling InnerFade Plugin on Homepage
		speed: 2500,
		timeout: 7777,
		containerheight: '500px'
	});
	
	var defSrch = 'Search';			//	Show/Hide Search Box Default Text	
	$('nav #s').focus(function(){	
		if( $(this).val() == defSrch ) {
			$(this).val('');
		}		
	});	
	$('nav #s').blur(function(){	
		if( $(this).val() == '' ) {
			$(this).val(defSrch);
		}
	});
	
	
	$('#centerStage').mouseover(function() {			//	Show Thumbnail Strip on Mouseover
		$('#centerStage .thumbs').animate(
			{ height:"51px" },
			{ queue:false, duration:200 }
		);
	});
	
	$('#centerStage').mouseout(function() {			//	Hide Thumbnail Strip on Mouseout
		$('#centerStage .thumbs').animate(
			{ height:"0px" },
			{ queue:false, duration:200 }
		);
	});
	
	$('#centerStage .thumbs img').click(function() {
		var idx = $('#centerStage .thumbs img').index(this);
		$('#centerStage .full li').hide();
		$('#centerStage .full li:eq('+idx+')').fadeIn(1000);
	});
	
	
	
});
