// JavaScript Document for Aussie SE global elements.

$(document).ready(function() {
													 
	// We need to play with the footer a little. It must always appear to either sit at the bottom of the browser window or the document depending on which is higher.
	if ($(window).height() >= $('.site').height()) {
		$('.footerHomepage').css('position', 'absolute');
	} else {
		$('.footerHomepage').css('position', 'relative');
	}
	
	// The above code happens onLoad. We also need to make sure it resizes the width of navBg when the window is resized. We'll also factor in the the above footer positioning code too.
	$(window).resize(function() {
			
		if ($(window).height() >= $('.site').height()) {
			$('.footerHomepage').css('position', 'absolute');
		} else {
			$('.footerHomepage').css('position', 'relative');
		}
	});
	
});
