jQuery.noConflict();
var footer_jq$ = jQuery;

var prevHeight;

footer_jq$(document).ready(function() {
	footer_jq$(window).resize(function() {
	  var height = footer_jq$(window).height();
	  if ( prevHeight == height ) 
     return; // hack to prevent recursion in IE6
	  prevHeight = height;
		adjustDisplay(0);
	});
	footer_jq$(window).scroll(function() {
		scrollTop = document.body.scrollTop || document.documentElement.scrollTop;
		adjustDisplay(scrollTop);
	});
	adjustDisplay(0);
});


function adjustDisplay(offset){
	var target = footer_jq$(window).height()+footer_jq$('body').scrollTop()-52;
	footer_jq$('#home_footer').stop();
	footer_jq$('#home_footer').animate({top:target},'slow');
	target = footer_jq$(window).height()+offset;
	footer_jq$('#container-inner').height(target);
	footer_jq$('#container').height(target);
	footer_jq$('body').height(target);
};
