$(document).ready(function(){
	
		$('#menuProd').click(function(e){
			$('#menuProd li').removeClass();
			$(e.target).closest("li").addClass('ativo');
			//$(e.target).closest("img").attr({src: "img/setinhas2.png"})
		})
		
		$("#peguntas-frequentes").click(function(e){
			window.document.title="Informaçoes e Perguntas Frequentes sobre Pigmentos e Corantes"
			e.preventDefault();
			$('#infoContainer').html('<p class="loading"><img src="img/prodLoad.gif" alt="Carregando..." />Carregando...</p>');
			
			$.post('info-faq-pigmentos-corantes.php',function(data){
				$('#infoContainer').hide();
				$('#infoContainer').fadeIn('normal').html(data);
				initMenu();
			},"html")
		})
		
		$("#perguntastecnicas").click(function(e){
			window.document.title="Perguntas Tecnicas sobre Pigmentos e Corantes";
			e.preventDefault();
			$('#infoContainer').html('<p class="loading"><img src="img/prodLoad.gif" alt="Carregando..." />Carregando...</p>');
			
			$.post('info-perguntas-tecnicas-pigmentos-corantes.php',function(data){
				$('#infoContainer').hide();
				$('#infoContainer').fadeIn('normal').html(data);
				initMenu();
				
			} )
		})
		
		$("#depoimentos").click(function(e){
			window.document.title="Depoimentos de Clientes sobre nossos Corantes e Pigmentos";
			e.preventDefault();
			$('#infoContainer').html('<p class="loading"><img src="img/prodLoad.gif" alt="Carregando..." />Carregando...</p>');
			
			$.post('info-depoimentos-clientes-pigmentos-corantes.php',function(data){
				$('#infoContainer').hide();
				$('#infoContainer').fadeIn('normal').html(data);
				initMenu();
				
			})
		})
			
		$("#fispq").click(function(e){
			window.document.title="Download FISPQ dos nossos Pigmentos e Corantes";
			e.preventDefault();
			$('#infoContainer').html('<p class="loading"><img src="img/prodLoad.gif" alt="Carregando..." />Carregando...</p>');
			
			$.post('info-fispq-pigmentos-corantes.php',function(data){
				$('#infoContainer').hide();
				$('#infoContainer').fadeIn('normal').html(data);
				initMenu();
				
			})
				
		})
		
		$("#especificacoes").click(function(e){
			window.document.title="Download Especificaçoes Técnicas dos nossos Pigmentos e Corantes";
			e.preventDefault();
			$('#infoContainer').html('<p class="loading"><img src="img/prodLoad.gif" alt="Carregando..." />Carregando...</p>');
			
			$.post('info-especificacoes-pigmentos-corantes.php',function(data){
				$('#infoContainer').hide();
				$('#infoContainer').fadeIn('normal').html(data);
				initMenu();
				
			})
				
		})
		
		$("#duvidas").click(function(e){
			window.document.title="Dúvidas sobre Pigmentos e Corantes";
			e.preventDefault();
			$('#infoContainer').html('<p class="loading"><img src="img/prodLoad.gif" alt="Carregando..." />Carregando...</p>');
			
			$.post('perguntas-faq-corantes-pigmentos.php',function(data){
				$('#infoContainer').hide();
				$('#infoContainer').fadeIn('normal').html(data);
				initMenu();
				
			})
				
		})                
				
})
