function rodape(){
	var rodape_height = $("#mapa_site ul li ul.maior").height(); 
	$("#mapa_site ul").each(function(){
		if ( $(this).height() > rodape_height ){
			rodape_height = $(this).height();
		}
	});
	rodape_height = rodape_height + 50;
	$("#mapa_site ul").hide();
	$("#mapa_site h2").toggle(
		function(){
			$("#mapa_site ul").slideDown(500);
			$("#mapa_site").animate( { height : rodape_height }, 500); //ajusta o tamanho do rodapé
			$(this).css("background","url(imagens/bt_mapa_up.jpg) 0 0 no-repeat");
		 },
		 function(){
			$("#mapa_site ul").slideUp(500);
			$("#mapa_site").animate( { height : 20 }, 500); //ajusta o tamanho do rodapé
			$(this).css("background","url(imagens/bt_mapa_dow.jpg) 0 0 no-repeat");
		 }				
	);
	
	
	//adiciona logomarca da genialbox
	$("body").prepend("<div id='assinaturagenialbox'><a href='http://www.genialbox.com' target='_blank'><img src='imagens/genialbox_60.jpg' width='8' height='63' /></a></div>");
	var banner_ofset = $("#banner").offset();
	$("#assinaturagenialbox").css({
			'position'	: 'absolute',
			top			: '65px',
			left		: banner_ofset.left + 980
	});
	$("#assinaturagenialbox").hover( function() {
	   $(this).find("img").attr("src", "imagens/genialbox_100.jpg");
	 }, function() {
	   $(this).find("img").attr("src", "imagens/genialbox_60.jpg");
	 }
   );
}

function lateral(){
	//paginacao de noticias e acoes
	$(".mais_hover").hover( function() {
	   $(this).attr("src", "imagens/bt_mais_hover.jpg");
	 }, function() {
	   $(this).attr("src", "imagens/bt_mais.jpg");
	 }
   );
	$("#noticias_mais").click(function(){
		$.post('noticias_ajax.php',{ limite: 1, atual: $("#noticia_atual").val() },function(response){
			$('#noticias ul').html(response);
		});
		return false;
	});
	$("#acoes_mais").click(function(){
		$.post('acoes_ajax.php',{ limite: 1, atual: $("#acao_atual").val() },function(response){
			$('#acoes ul').html(response);
		});
		return false;
	});
}
