function closeBanner(){	
	var screenHeight = $(window).height();
	var objHeight = $('#popup').outerHeight();
	var objPosition = $('#popup').position().top;
	var deslocamento = screenHeight - objHeight - objPosition;
	
	$('#popup').css({position: 'relative'})
	.animate({top: 1000, opacity: 0}, 2500, function() {
		$('#popup').hide();
	});		
}

function openBanner(tempo) {
	tempo = tempo * 1000;
	setTimeout("closeBanner()", tempo);
}

$(document).ready(function() {
	
		
	
});
