	$(document).ready(function(){
		$.fn.extend({
			alignFooter: function(){
				var topo = $("#topo").height();
				var menu = $("#menuCont").height();
				var footer = $("#footer").height();
				var dif = 96;
				var cont = $("#conteudo").height() + dif;
				var win = $(window).height();

				$(this).height(cont);
				
				var hgt = win - topo - menu - footer - 10;
				//alert(hgt);

				if (cont < hgt) $(this).height(hgt);
			}
		});

		$("#centro").alignFooter();

		//Chrome FIX
		setTimeout(function(){
			$("#centro").alignFooter();
		},3000);

		$(window).resize(function(){
			$("#centro").alignFooter();
		});
	});
