$(document).ready(function() {
		 
	//Target and add class to "You are here" link
	$("body#Index li#IndexLink").addClass('Selected');
	$("body#Values li#ValuesLink").addClass('Selected');
	$("body#Team li#TeamLink").addClass('Selected');
	$("body#Contact li#ContactLink").addClass('Selected');
	
	
	
	//Main Nav links: remove the link element from the page, and insert its text in the parent li tag.
	var Link = $("li.Selected a").text();
	$("li.Selected a").remove();
	$("li.Selected").text(Link);
	
	// Attach the cycle function to the #wisequote, #testimontial divs
	$('#Testimonials').fadeIn('slow');
	
	$('#WiseQuotes').fadeIn('slow');
	
	$('#Testimonials').cycle({
	fx:'fade',
	timeout: 7000,
	speed: 500,
	delay: -2500
	});		
	
	$('#WiseQuotes').cycle({
	fx:'fade',
	timeout: 4000,
	speed: 500,
	delay: -1000
	});		
	
	// end cycle
	
	// Default hide the team description textboxes
	//$('.TeamDescText').hide();
	
	$('#RobinTeamBox').hover(
		function () {
			$('#RobinDescText').fadeIn(300);	
			$('#RobinTeamText').addClass('Selected');
			$('#RobinTeamPhoto').addClass('Selected');
		},
		function () {
			$('#RobinDescText').hide();	
			$('#RobinTeamText').removeClass('Selected');
			$('#RobinTeamPhoto').removeClass('Selected');
		}
	); // end hover()
	
	$('#SteveTeamBox').hover(
		function () {
			$('#SteveDescText').fadeIn(300);	
			$('#SteveTeamText').addClass('Selected');
			$('#SteveTeamPhoto').addClass('Selected');
		},
		function () {
			$('#SteveDescText').hide();	
			$('#SteveTeamText').removeClass('Selected');
			$('#SteveTeamPhoto').removeClass('Selected');
		}
	); // end hover()
	
	$('#MichaelTeamBox').hover(
		function () {
			$('#MichaelDescText').fadeIn(300);	
			$('#MichaelTeamText').addClass('Selected');
			$('#MichaelTeamPhoto').addClass('Selected');
		},
		function () {
			$('#MichaelDescText').hide();	
			$('#MichaelTeamText').removeClass('Selected');
			$('#MichaelTeamPhoto').removeClass('Selected');
		}
	); // end hover()
	
	$('#JamesTeamBox').hover(
		function () {
			$('#JamesDescText').fadeIn(300);	
			$('#JamesTeamText').addClass('Selected');
			$('#JamesTeamPhoto').addClass('Selected');
		},
		function () {
			$('#JamesDescText').hide();	
			$('#JamesTeamText').removeClass('Selected');
			$('#JamesTeamPhoto').removeClass('Selected');
		}
	); // end hover()

		 
			 
}); //end ready function
