/* === ShannonPort.js ============================== */
/*	@ddamico Nov. 2010
	site-specific js utils for shannon mcglothin
	web portfolio
/* ============================================= */

// declare namespace to enclose the few custom methods we'll
// work with below.
var ShannonPort = {
	// declare holder for this function, which will be
	// filled in differently depending on platform
	navigateToProject: null,
	
	refreshNavPosition: function () {
		$('#mainNav').hide();
		$('#mainNav').css('left', $(document).scrollLeft());
		$('#mainNav').fadeIn('fast');
	},
	
	refreshHeadingState: function () {
		if ($(window).height() < 675)
		{
			$('.projectBlock .description h3').css('display', 'none');
			$('.videoBlock .description h3').css('display', 'none');
		}
		else if ($(window).height() > 675)
		{
			$('.projectBlock .description h3').css('display', 'block');
			$('.videoBlock .description h3').css('display', 'block');
		}
	},
	
	isiPad: function () {
	    return (navigator.platform.indexOf("iPad") != -1);
	}
}
