$().ready(function() {

	// Configuration Variables:
	var
		fadeIn = false,		// If set to false, page will load normally
		fadeInDuration = 1.5,	// Fade duration (in seconds): higher number = slower fade
		
		fadeOut = false,		  // If set to false, page will unload normally upon clicking a link
		fadeOutDuration = .5,  // Fade duration (in seconds)
		
		fadeFooter = false	// The footer isn't contained by #main-outer-wrapper. Should it still be faded?
	;



	var fadedEls = '#main-outer-wrapper';
	if (fadeFooter) fadedEls += ', #footer';
	
	if (fadeIn) {
		$(fadedEls).hide();
		$(fadedEls).fadeIn(fadeInDuration*1000);
	}
	else $('#main-outer-wrapper, #footer').show();
	
	if (fadeOut) {
		$('a').click(function() {
			var href = $(this).attr('href');
			$(fadedEls).fadeOut(fadeOutDuration*1000, function() {
				window.location = href;
			});
			return false;
		});
	}

});
