// JavaScript Document

$(document).ready(function() {
	
	/* MENU HOME */	
	$("ul#topnav li").hover(function() { //Hover over event on list item
		$(this).css({'background' : '#ab0f12'}); //Add background color + image on hovered list item
		$("span.ativo").hide();
		$(this).find("span").show(); //Show the subnav
			} , function() { //on hover out...
				$(this).css({ 'background' : '#a4a4a4'}); //Ditch the background
				$(this).find("span").hide(); //Hide the subnav
				$("span.ativo").show();
				
				$("ul#topnav li.ativo").css({'background' : '#ab0f12'});
	});
	
	$("span.ativo").show();

	$(".titulo ul li:nth-child(1) img").addClass('imprimir-pagina');
	$(".titulo ul li:nth-child(2) img").css("margin","0 10px");
	
	$(".contato li:nth-child(odd)").css("background","url(images/img_bullet.gif) no-repeat left 7px;");
	$(".contato li:nth-child(even)").css("margin-bottom","10px");
	
	$("ul#topnav li:last-child span").css("text-align","right");
	
	/*
	$(".mapa-site").click(function(){
		$(".mapa-site-rodape").slideToggle("slow", function(){
			$("footer").css("padding-bottom","10px");
		});		
	})
	*/
	
	/*$(".mapa-site").click(function(){
		
		console.log ( $(".conteudo-interna").css("padding-bottom"))
	
		if ( $(".conteudo-interna").css("padding-bottom")!="230px"){
			$(".conteudo-interna").animate({"padding-bottom":"230px"})
		} else {
			$(".conteudo-interna").animate({"padding-bottom":"60px"})
		}
		$(".mapa-site-rodape").slideToggle("slow", function(){
			$("footer").css("padding-bottom","10px");
		});
	})*/
});
