Cufon.replace("#cabecalho a");
Cufon.replace("#rodape a");
Cufon.replace("h2,h3,h5");
Cufon.replace("#conteudo h4 : not(.noticia h4)");

$(function(){
	centraliza();
	
	$links = $(".links a");
	
	url = document.URL;
	$links.each(function(i){
		if ($(this)[0].href == url && 1 == 0) {
		
			//$(this).parent().addClass("on");
			Cufon.replace(this);
			
			/* imagem de enfeite dos links */
			tamanho = 0;
			$("span",this).each(function(i){
				tamanho += $(this).width();
			})
			tamanho = Math.round(tamanho/10);
			
			$(this).parent().css({
				"backgroundImage": "url(imagens/enfeite_menu"+tamanho+".jpg)"
			})
			/*/imagem*/
		}
	})
	
	$links = $(".links li:not(.on) a");
	
	$links.parent().hover(function(){
		
		$("a",this).addClass("hover");
		Cufon.replace(this);
		
		$(this).animate({
			backgroundColor:"#194e5a"
		},250)
		
	},function(){
		
		$("a",this).removeClass("hover");
		Cufon.replace(this);
		
		$(this).animate({
			backgroundColor:"#FFF"
		},250)
		
	}).click(function(e){
		e.preventDefault();
		var link = $("a",this).attr("href");
		if(link.indexOf("http://") == -1) {
			document.location = link;
		} else {
			
			n = window.open(link,'leya');
			n.focus()
		}
	})
	
	$historia = $("#linkhistoria a");
	$historia.click(function(e){
		e.preventDefault();
		
		ativar = $(this).attr("href")
		
		if (ativar == "#letra") {
			$("#historia").hide("slow");
			$("#letra").show("slow");
		} else {
			$("#letra").hide("slow");
			$("#historia").show("slow");
		}
		
	})
	
})