// JavaScript Document
Cufon.replace(".fontReplace", { fontFamily : "Corbel",	hover: true});
Cufon.replace("#palco h2", { fontFamily : "Corbel",	hover: true});
Cufon.replace(".helvetica", { fontFamily : "Helvetica Neue",	hover: true});

function updateMinHeight() {
	$('#site').css('min-height', 0);
	var windowHeight = $(window).height();
	var bodyHeight = $('body').outerHeight(true);
	var footerHeight = $('#envolve-rodape').css('position') == 'absolute' ? $('#envolve-rodape').outerHeight(true) : 0;
	if (windowHeight > bodyHeight + footerHeight) {
		$('#envolve-rodape').css({
			position: 'fixed',
			bottom: 0
		});
	} else {
		$('#envolve-rodape').css({
			position: 'static'
		});
	}
}

if (jQuery) {
	if (!console) console = {};
	if (!console.log) console.log = function(){};
	$(window).resize(updateMinHeight);
	$(function(){
		updateMinHeight();
	});
}
