jQuery(function($) {
	var dbnce;
	var show_footer = function(){
		var $t = $(this);
		clearTimeout(dbnce);
		dbnce = setTimeout(function(){
			var to_height = Math.max($(".footer_left").height(),$(".footer_mid").height(),$(".footer_right").height()) - 12;
			$t.find(".divider").css('height',(to_height-35)+'px');
			$t.find(".container").animate(
						{
							height: to_height
						},
						400,
						function(){}
			);
		}, 100);
	};
	var hide_footer = function(){
		var $t = $(this);
		clearTimeout(dbnce);
		dbnce = setTimeout(function() {
			$t.find(".container").animate(
						{
							height: 12
						},
						400,
						function(){}
			);
		}, 400);
	}
	$("div#footer").mouseenter(show_footer).mouseleave(hide_footer);
});

