$(document).ready(function() {
	positionFooter();
	
	$(window)
	.scroll(positionFooter)
	.resize(positionFooter);
	
	function positionFooter() {
		var docHeight = $(document.body).height() - $("#footer-push").height();
		if(docHeight < $(window).height()){
			var diff = $(window).height() - docHeight;
			if (!$("#footer-push").length > 0) {
				$("#footer").before('<div id="footer-push"></div>');
			}
			$("#footer-push").height(diff);
		}	
	}
	
	$("#bclogo").css({opacity: 0.3}).hover(function() {
		$(this).stop().animate({ opacity: 1 });
	}, function() {
		$(this).stop().animate({ opacity: 0.3 });
	});
});

