// show-hide for content changes// script access to youTube videos to STOP one when choosing anothervar myPlayerOne;var myPlayerTwo;function onYouTubePlayerReady (playerid) {	// alert("onYouTubePlayerReady for " + playerid);	if(playerid == "playerOne") {		if(myPlayerOne) {			// alert("already set");		}		else {			myPlayerOne = document.getElementById('playerOne');			$('.mediaOne').hide();			$('#playerOne').hide();			$('.mediaTwo').hide();			$('.mediaThree').show();		}	}	if(playerid == "playerTwo") {		if(myPlayerTwo) {			// alert("already set");		}		else {			myPlayerTwo = document.getElementById('playerTwo');			$('.mediaOne').hide();			$('#playerTwo').hide();			$('.mediaTwo').hide();			$('.mediaThree').show();		}	}}// HIDE AT START:// main content section$(document).ready(function(){$('.contentOne').hide();$('.contentTwo').hide();$('.contentThree').hide();/* $('.contentFour').hide(); show Why Hardiebacker on load */$('.contentFive').hide();$('.contentSix').hide();$('.contentSeven').hide();$('.contentEight').hide();$('.contentNine').hide();$('.contentThanks').hide();$('.contentError').hide();$('.contentFaq').hide();// masthead section (videos and photos)$('.mediaOne').hide();$('.mediaTwo').hide();$('.mediaThree').show();// SHOW-HIDE CONTROLS:// showOne$('.showOne').click(function() {$('.contentOne').delay(200).fadeIn(300);$('.contentTwo').fadeOut(250);$('.contentThree').fadeOut(250);$('.contentFour').fadeOut(250);$('.contentFive').fadeOut(250);$('.contentSix').fadeOut(250);$('.contentSeven').fadeOut(250);$('.contentEight').fadeOut(250);$('.contentNine').fadeOut(250);$('.contentThanks').fadeOut(250);$('.contentError').fadeOut(250);$('.contentFaq').fadeOut(250);});// showTwo$('.showTwo').click(function() {$('.contentOne').fadeOut(250);$('.contentTwo').delay(200).fadeIn(300);$('.contentThree').fadeOut(250);$('.contentFour').fadeOut(250);$('.contentFive').fadeOut(250);$('.contentSix').fadeOut(250);$('.contentSeven').fadeOut(250);$('.contentEight').fadeOut(250);$('.contentNine').fadeOut(250);$('.contentThanks').fadeOut(250);$('.contentError').fadeOut(250);$('.contentFaq').fadeOut(250);});// showThree$('.showThree').click(function() {$('.contentOne').fadeOut(250);$('.contentTwo').fadeOut(250);$('.contentThree').delay(200).fadeIn(300);$('.contentFour').fadeOut(250);$('.contentFive').fadeOut(250);$('.contentSix').fadeOut(250);$('.contentSeven').fadeOut(250);$('.contentEight').fadeOut(250);$('.contentNine').fadeOut(250);$('.contentThanks').fadeOut(250);$('.contentError').fadeOut(250);$('.contentFaq').fadeOut(250);});// showFour$('.showFour').click(function() {$('.contentOne').fadeOut(250);$('.contentTwo').fadeOut(250);$('.contentThree').fadeOut(250);$('.contentFour').delay(200).fadeIn(300);$('.contentFive').fadeOut(250);$('.contentSix').fadeOut(250);$('.contentSeven').fadeOut(250);$('.contentEight').fadeOut(250);$('.contentNine').fadeOut(250);$('.contentThanks').fadeOut(250);$('.contentError').fadeOut(250);$('.contentFaq').fadeOut(250);});// showFive$('.showFive').click(function() {$('.contentOne').fadeOut(250);$('.contentTwo').fadeOut(250);$('.contentThree').fadeOut(250);$('.contentFour').fadeOut(250);$('.contentFive').delay(200).fadeIn(300);$('.contentSix').fadeOut(250);$('.contentSeven').fadeOut(250);$('.contentEight').fadeOut(250);$('.contentNine').fadeOut(250);$('.contentThanks').fadeOut(250);$('.contentError').fadeOut(250);$('.contentFaq').fadeOut(250);});// showSix$('.showSix').click(function() {$('.contentOne').fadeOut(250);$('.contentTwo').fadeOut(250);$('.contentThree').fadeOut(250);$('.contentFour').fadeOut(250);$('.contentFive').fadeOut(250);$('.contentSix').delay(200).fadeIn(300);$('.contentSeven').fadeOut(250);$('.contentEight').fadeOut(250);$('.contentNine').fadeOut(250);$('.contentThanks').fadeOut(250);$('.contentError').fadeOut(250);$('.contentFaq').fadeOut(250);});// showSeven$('.showSeven').click(function() {$('.contentOne').fadeOut(250);$('.contentTwo').fadeOut(250);$('.contentThree').fadeOut(250);$('.contentFour').fadeOut(250);$('.contentFive').fadeOut(250);$('.contentSix').fadeOut(250);$('.contentSeven').delay(200).fadeIn(300);$('.contentEight').fadeOut(250);$('.contentNine').fadeOut(250);$('.contentThanks').fadeOut(250);$('.contentError').fadeOut(250);$('.contentFaq').fadeOut(250);});// showEight$('.showEight').click(function() {$('.contentOne').fadeOut(250);$('.contentTwo').fadeOut(250);$('.contentThree').fadeOut(250);$('.contentFour').fadeOut(250);$('.contentFive').fadeOut(250);$('.contentSix').fadeOut(250);$('.contentSeven').fadeOut(250);$('.contentEight').delay(200).fadeIn(300);$('.contentNine').fadeOut(250);$('.contentThanks').fadeOut(250);$('.contentError').fadeOut(250);$('.contentFaq').fadeOut(250);});// showNine$('.showNine').click(function() {$('.contentOne').fadeOut(250);$('.contentTwo').fadeOut(250);$('.contentThree').fadeOut(250);$('.contentFour').fadeOut(250);$('.contentFive').fadeOut(250);$('.contentSix').fadeOut(250);$('.contentSeven').fadeOut(250);$('.contentEight').fadeOut(250);$('.contentNine').delay(200).fadeIn(300);$('.contentThanks').fadeOut(250);$('.contentError').fadeOut(250);$('.contentFaq').fadeOut(250);});// showThanks$('.showThanks').click(function() {$('.contentOne').fadeOut(250);$('.contentTwo').fadeOut(250);$('.contentThree').fadeOut(250);$('.contentFour').fadeOut(250);$('.contentFive').fadeOut(250);$('.contentSix').fadeOut(250);$('.contentSeven').fadeOut(250);$('.contentEight').fadeOut(250);$('.contentNine').fadeOut(250);$('.contentThanks').delay(200).fadeIn(300);$('.contentError').fadeOut(250);$('.contentFaq').fadeOut(250);});// showError$('.showError').click(function() {$('.contentOne').fadeOut(250);$('.contentTwo').fadeOut(250);$('.contentThree').fadeOut(250);$('.contentFour').fadeOut(250);$('.contentFive').fadeOut(250);$('.contentSix').fadeOut(250);$('.contentSeven').fadeOut(250);$('.contentEight').fadeOut(250);$('.contentNine').fadeOut(250);$('.contentThanks').fadeOut(250);$('.contentError').delay(200).fadeIn(300);$('.contentFaq').delay(200).fadeIn(300);});// showFaq$('.showFaq').click(function() {$('.contentOne').fadeOut(250);$('.contentTwo').fadeOut(250);$('.contentThree').fadeOut(250);$('.contentFour').fadeOut(250);$('.contentFive').fadeOut(250);$('.contentSix').fadeOut(250);$('.contentSeven').fadeOut(250);$('.contentEight').fadeOut(250);$('.contentNine').fadeOut(250);$('.contentThanks').fadeOut(250);$('.contentError').fadeOut(250);$('.contentFaq').delay(200).fadeIn(300);});	// masthead section (videos and photos)		// showMediaOne (video one)	$('.showMediaOne').click(function() {		$('.mediaOne').show();		$('.mediaTwo').hide();		$('#playerOne').show();		$('#playerTwo').hide();		$('.mediaThree').hide();		// stop video two		if(myPlayerTwo) {			myPlayerTwo.stopVideo();		}	});		// showMediaTwo (video two)	$('.showMediaTwo').click(function() {		$('.mediaOne').hide();		$('.mediaTwo').show();		$('#playerOne').hide();		$('#playerTwo').show();		$('.mediaThree').hide();		// stop video one		if(myPlayerOne) {			myPlayerOne.stopVideo();		}	});		// showMediaThree	$('.showMediaThree').click(function() {		$('.mediaOne').hide();		$('.mediaTwo').hide();		$('#playerOne').hide();		$('#playerTwo').hide();		$('.mediaThree').show();		// stop both videos		if(myPlayerOne) {			myPlayerOne.stopVideo();		}		if(myPlayerTwo) {			myPlayerTwo.stopVideo();		}	});	});// end
