$(document).ready(function(){

	// Setup the nav to stick to the top of the page when scrolling past the header
	var wwidth = $(document).width();
	var wheight = $(document).height();
	
	$(window).scroll(function(){
		// Sticky Navigation
		if($(window).scrollTop() > 154) {
			$('#access').css('top', '35px');
			$('#access').css('position', 'fixed');
		}
		else {
			$('#access').css('position', 'relative');
			$('#access').css('top', '0');
		}
		
	});
	
	
	// Loop through all images inside links and set a class to remove the yellow hover state
	$("a img").each(function(removeImageRolloverColor) {
		$(this).parent().addClass("nohover");
	});
 
 
 	// Fade in elements after user has enough time to view the Detroit background imagery
	$('.home #header').css('display','none');
	$('.home #main').css('display','none');
	$('.home #footer').css('display','none');
	$('.home #header').delay(800).fadeIn('slow');
	$('.home #main').delay(1100).fadeIn('slow');
	$('.home #footer').delay(1100).fadeIn('slow');
	
});

