jQuery(document).ready(function($){
$("#footer").css("margin-top", $(document).height() - 338);
$("#footer").width($(window).width() - 1);
	$(window).resize(function() {
		$("#footer").css("width", "auto");
		$("#footer").css("margin-top", "0"); // IE sucks at life; all three popular versions appear to calculate this wrong
		$("#footer").width($(window).width() - 1);
		$("#footer").css("margin-top", $(document).height() - 338);
	});
	$('.comment-reply-link').click(function() {
		$("#footer").css("margin-top", "0");
		$("#footer").css("margin-top", $(document).height() - 338);
	});
	$("#back2top").click(function(){
		$('body').animate({scrollTop: '0px'}, 600);
	});
});