// JavaScript Document
// ----------------------------------------------------------------Menu Geral-------------------------------------------------------------------//
$(document).ready(function() {
	
	
	// função click em Agência, abre conteudo agencia e fecha as demais.//
	$("#menuAgencia") .click(function () 
	{
		if (document.getElementById("conteudoAgencia").style.display != "none") 
		{
			$("#conteudoAgencia").hide('slow');
			document.getElementById("menuAgencia").setAttribute("class", "btAgencia");
			$("#conteudoTrabalhos").hide('slow');
			$("#conteudoClientes").hide('slow');
			$("#conteudoContatos").hide('slow');
			$("#conteudoNoticias").fadeIn('slow');
			$("#quadrosNoticias").hide('slow');
		}
		else
		{
			$("#conteudoNoticias").hide(500, "swing");
			$("#conteudoAgencia").show('slow');
			document.getElementById("menuAgencia").setAttribute("class", "btAgencia2");
			$("#conteudoTrabalhos").hide('slow');
			document.getElementById("menuTrabalhos").setAttribute("class", "btTrabalho");
			$("#conteudoClientes").hide('slow');
			document.getElementById("menuClientes").setAttribute("class", "btCliente");
			$("#conteudoContatos").hide('slow');
			document.getElementById("menuContatos").setAttribute("class", "btContato");
			$("#quadrosNoticias").hide('slow');	
		}
	});
	// função click em Trabalhos, abre conteudo trabalhos e fecha as demais.//
	$("#menuTrabalhos").click(function () 
	{
		if (document.getElementById("conteudoTrabalhos").style.display != "none") 
		{
			$("#conteudoAgencia").hide('slow');
			$("#conteudoTrabalhos").hide('slow');
			document.getElementById("menuTrabalhos").setAttribute("class", "btTrabalho");
			$("#conteudoClientes").hide('slow');
			$("#conteudoContatos").hide('slow');
			$("#conteudoNoticias").fadeIn('slow');
			$("#quadrosNoticias").hide('slow');
		}
		else
		{
			$("#conteudoAgencia").hide('slow');
			document.getElementById("menuAgencia").setAttribute("class", "btAgencia");
			$("#conteudoTrabalhos").show('slow');
			document.getElementById("menuTrabalhos").setAttribute("class", "btTrabalho2");
			$("#conteudoClientes").hide('slow');
			document.getElementById("menuClientes").setAttribute("class", "btCliente");
			$("#conteudoContatos").hide('slow');
			document.getElementById("menuContatos").setAttribute("class", "btContato");
			$("#conteudoNoticias").hide(500, "swing");	
			$("#quadrosNoticias").hide('slow');
		}
	});
		// função click em Clientes, abre conteudo clientes e fecha as demais.//
		$("#menuClientes").click(function () 
		{
		if (document.getElementById("conteudoClientes").style.display != "none") 
		{
			$("#conteudoAgencia").hide('slow');
			$("#conteudoTrabalhos").hide('slow');
			$("#conteudoClientes").hide('slow');
			document.getElementById("menuClientes").setAttribute("class", "btCliente");
			$("#conteudoContatos").hide('slow');
			$("#conteudoNoticias").fadeIn('slow');
			$("#quadrosNoticias").hide('slow');
		}
		else
		{
			$("#conteudoAgencia").hide('slow');
			document.getElementById("menuAgencia").setAttribute("class", "btAgencia");
			$("#conteudoTrabalhos").hide('slow');
			document.getElementById("menuTrabalhos").setAttribute("class", "btTrabalho");
			$("#conteudoClientes").show('slow');
			document.getElementById("menuClientes").setAttribute("class", "btCliente2");
			$("#conteudoContatos").hide('slow');
			document.getElementById("menuContatos").setAttribute("class", "btContato");
			$("#conteudoNoticias").hide(500, "swing");
			$("#quadrosNoticias").hide('slow');
		}
	});
		// função click em Contatos, abre conteudo Contatos e fecha as demais.//
		$("#menuContatos").click(function () 
		{
		if (document.getElementById("conteudoContatos").style.display != "none") 
		{
			$("#conteudoAgencia").hide('slow');
			$("#conteudoTrabalhos").hide('slow');
			$("#conteudoClientes").hide('slow');
			$("#conteudoContatos").hide('slow');
			document.getElementById("menuContatos").setAttribute("class", "btContato");
			$("#conteudoNoticias").fadeIn('fast');
			$("#quadrosNoticias").hide('slow');
		}
		else
		{
			$("#conteudoAgencia").hide('slow');
			document.getElementById("menuAgencia").setAttribute("class", "btAgencia");
			$("#conteudoTrabalhos").hide('slow');
			document.getElementById("menuTrabalhos").setAttribute("class", "btTrabalho");
			$("#conteudoClientes").hide('slow');
			document.getElementById("menuClientes").setAttribute("class", "btCliente");
			$("#conteudoContatos").show('slow');
			document.getElementById("menuContatos").setAttribute("class", "btContato2");
			$("#conteudoNoticias").hide(500, "swing");
			$("#quadrosNoticias").hide('slow');
		}
	});
	
	// ----------------------------------------------------------------Noticias-------------------------------------------------------------------//
		$("#btNoticia1").click(function () 
		{
		if (document.getElementById("noticia_1").style.display != "none" && document.getElementById("quadrosNoticias").style.display != "none")
		{
			$("#noticia_1").hide('slow');
			$("#noticia_2").hide('slow');	
			$("#noticia_3").hide('slow');
			$("#noticia_4").hide('slow');
			$("#noticia_5").hide('slow');
			$("#noticia_6").hide('slow');
		}
		else
		{
			$("#quadrosNoticias").show('slow');
			$("#noticia_1").show('slow');
			$("#noticia_2").hide('slow');	
			$("#noticia_3").hide('slow');
			$("#noticia_4").hide('slow');
			$("#noticia_5").hide('slow');
			$("#noticia_6").hide('slow');
		}
	});	
	
		$("#btNoticia2").click(function () 
		{
		if (document.getElementById("noticia_2").style.display != "none"  && document.getElementById("quadrosNoticias").style.display != "none")
		{
			$("#noticia_1").hide('slow');
			$("#noticia_2").hide('slow');	
			$("#noticia_3").hide('slow');
			$("#noticia_4").hide('slow');
			$("#noticia_5").hide('slow');
			$("#noticia_6").hide('slow');
		}
		else
		{
			$("#quadrosNoticias").show('slow');
			$("#noticia_1").hide('slow');
			$("#noticia_2").show('slow');	
			$("#noticia_3").hide('slow');
			$("#noticia_4").hide('slow');
			$("#noticia_5").hide('slow');
			$("#noticia_6").hide('slow');
		}
	});
	
		$("#btNoticia3").click(function () 
		{
		if (document.getElementById("noticia_3").style.display != "none"  && document.getElementById("quadrosNoticias").style.display != "none")
		{
			$("#noticia_1").hide('slow');
			$("#noticia_2").hide('slow');	
			$("#noticia_3").hide('slow');
			$("#noticia_4").hide('slow');
			$("#noticia_5").hide('slow');
			$("#noticia_6").hide('slow');
		}
		else
		{
			$("#quadrosNoticias").show('slow');
			$("#noticia_1").hide('slow');
			$("#noticia_2").hide('slow');	
			$("#noticia_3").show('slow');
			$("#noticia_4").hide('slow');
			$("#noticia_5").hide('slow');
			$("#noticia_6").hide('slow');
		}
	});
	
		$("#btNoticia4").click(function () 
		{
		if (document.getElementById("noticia_4").style.display != "none"  && document.getElementById("quadrosNoticias").style.display != "none")
		{
			$("#noticia_1").hide('slow');
			$("#noticia_2").hide('slow');	
			$("#noticia_3").hide('slow');
			$("#noticia_4").hide('slow');
			$("#noticia_5").hide('slow');
			$("#noticia_6").hide('slow');
		}
		else
		{
			$("#quadrosNoticias").show('slow');
			$("#noticia_1").hide('slow');
			$("#noticia_2").hide('slow');	
			$("#noticia_3").hide('slow');
			$("#noticia_4").show('slow');
			$("#noticia_5").hide('slow');
			$("#noticia_6").hide('slow');
		}
	});
	
		$("#btNoticia5").click(function () 
		{
		if (document.getElementById("noticia_5").style.display != "none"  && document.getElementById("quadrosNoticias").style.display != "none")
		{
			$("#noticia_1").hide('slow');
			$("#noticia_2").hide('slow');	
			$("#noticia_3").hide('slow');
			$("#noticia_4").hide('slow');
			$("#noticia_5").hide('slow');
			$("#noticia_6").hide('slow');
		}
		else
		{
			$("#quadrosNoticias").show('slow');
			$("#noticia_1").hide('slow');
			$("#noticia_2").hide('slow');	
			$("#noticia_3").hide('slow');
			$("#noticia_4").hide('slow');
			$("#noticia_5").show('slow');
			$("#noticia_6").hide('slow');
		}
	});
	
		$("#btNoticia6").click(function () 
		{
		if (document.getElementById("noticia_6").style.display != "none"  && document.getElementById("quadrosNoticias").style.display != "none")
		{
			$("#noticia_1").hide('slow');
			$("#noticia_2").hide('slow');	
			$("#noticia_3").hide('slow');
			$("#noticia_4").hide('slow');
			$("#noticia_5").hide('slow');
			$("#noticia_6").hide('slow');
		}
		else
		{
			$("#quadrosNoticias").show('slow');
			$("#noticia_1").hide('slow');
			$("#noticia_2").hide('slow');	
			$("#noticia_3").hide('slow');
			$("#noticia_4").hide('slow');
			$("#noticia_5").hide('slow');
			$("#noticia_6").show('slow');
		}
	});

	
	// função click em Posicionamento, abre conteudo posicionamento e fecha as demais.//
	$("#btPosicionamento").click(function () 
	{
		if (document.getElementById("conteudoPosicionamento").style.display = "none")
		{
			$("#conteudoPosicionamento").show('slow');
			document.getElementById("btPosicionamento").style.color=('#eb582c')
			document.getElementById("btHistoria").style.color=('#979391')
			
			$("#conteudoHistoria").hide('slow');	
		}
	});
	
	
	$("#btHistoria").click(function () {
		if (document.getElementById("conteudoHistoria").style.display  = "none"){
			$("#conteudoPosicionamento").hide('slow');
			$("#conteudoHistoria").show('slow');
			document.getElementById("btHistoria").style.color=('#eb582c')
			document.getElementById("btPosicionamento").style.color=('#979391')	
		}
	});
	
	$("#btVendas").click(function () {
		if (document.getElementById("conteudoVendas").style.display  = "none"){
			$("#conteudoVendas").show('slow');
			document.getElementById("btVendas").style.color=('#eb582c')
			document.getElementById("btEventos").style.color=('#979391')
			document.getElementById("btIncentivo").style.color=('#979391')	
			document.getElementById("btAtivacao").style.color=('#979391')
			document.getElementById("btInteractive").style.color=('#979391')
			document.getElementById("btMkt").style.color=('#979391')
			document.getElementById("btOut").style.color=('#979391')
			$("#conteudoEventos").hide('slow')
			$("#conteudoIncentivo").hide('slow');
			$("#conteudoAtivacao").hide('slow');
			$("#conteudoInteractive").hide('slow');
			$("#conteudoMkt").hide('slow');
			$("#conteudoOut").hide('slow');	
		}
	});
	$("#btEventos").click(function () {
		if (document.getElementById("conteudoEventos").style.display  = "none"){
			$("#conteudoEventos").show('slow');
			document.getElementById("btEventos").style.color=('#eb582c')
			document.getElementById("btVendas").style.color=('#979391')
			document.getElementById("btIncentivo").style.color=('#979391')	
			document.getElementById("btAtivacao").style.color=('#979391')
			document.getElementById("btInteractive").style.color=('#979391')
			document.getElementById("btMkt").style.color=('#979391')
			document.getElementById("btOut").style.color=('#979391')
			$("#conteudoVendas").hide('slow');
			$("#conteudoIncentivo").hide('slow');
			$("#conteudoAtivacao").hide('slow');
			$("#conteudoInteractive").hide('slow');
			$("#conteudoMkt").hide('slow');
			$("#conteudoOut").hide('slow');	
		}
	});
	
	$("#btIncentivo").click(function () {
		if (document.getElementById("conteudoIncentivo").style.display  = "none"){
			$("#conteudoVendas").hide('slow');
			$("#conteudoEventos").hide('slow');
			$("#conteudoIncentivo").show('slow');
			document.getElementById("btIncentivo").style.color=('#eb582c')
			document.getElementById("btVendas").style.color=('#979391')
			document.getElementById("btEventos").style.color=('#979391')	
			document.getElementById("btAtivacao").style.color=('#979391')
			document.getElementById("btInteractive").style.color=('#979391')
			document.getElementById("btMkt").style.color=('#979391')
			document.getElementById("btOut").style.color=('#979391')
			$("#conteudoAtivacao").hide('slow');
			$("#conteudoInteractive").hide('slow');
			$("#conteudoMkt").hide('slow');
			$("#conteudoOut").hide('slow');
		}
	});
	
		$("#btAtivacao").click(function () {
		if (document.getElementById("conteudoAtivacao").style.display  = "none"){
			$("#conteudoVendas").hide('slow');
			$("#conteudoEventos").hide('slow');
			$("#conteudoIncentivo").hide('slow');
			$("#conteudoAtivacao").show('slow');
			document.getElementById("btAtivacao").style.color=('#eb582c')
			document.getElementById("btVendas").style.color=('#979391')
			document.getElementById("btEventos").style.color=('#979391')	
			document.getElementById("btIncentivo").style.color=('#979391')
			document.getElementById("btInteractive").style.color=('#979391')
			document.getElementById("btMkt").style.color=('#979391')
			document.getElementById("btOut").style.color=('#979391')
			$("#conteudoInteractive").hide('slow');
			$("#conteudoMkt").hide('slow');
			$("#conteudoOut").hide('slow');
		}
	});
	
		$("#btInteractive").click(function () {
		if (document.getElementById("conteudoInteractive").style.display  = "none"){
			$("#conteudoVendas").hide('slow');
			$("#conteudoEventos").hide('slow');
			$("#conteudoIncentivo").hide('slow');
			$("#conteudoAtivacao").hide('slow');
			$("#conteudoInteractive").show('slow');
			document.getElementById("btInteractive").style.color=('#eb582c')
			document.getElementById("btVendas").style.color=('#979391')
			document.getElementById("btEventos").style.color=('#979391')	
			document.getElementById("btIncentivo").style.color=('#979391')
			document.getElementById("btAtivacao").style.color=('#979391')
			document.getElementById("btMkt").style.color=('#979391')
			document.getElementById("btOut").style.color=('#979391')
			$("#conteudoMkt").hide('slow');
			$("#conteudoOut").hide('slow');
		}
	});
	
		$("#btMkt").click(function () {
		if (document.getElementById("conteudoMkt").style.display  = "none"){
			$("#conteudoVendas").hide('slow');
			$("#conteudoEventos").hide('slow');
			$("#conteudoIncentivo").hide('slow');
			$("#conteudoAtivacao").hide('slow');
			$("#conteudoInteractive").hide('slow');
			$("#conteudoMkt").show('slow');
			document.getElementById("btMkt").style.color=('#eb582c')
			document.getElementById("btVendas").style.color=('#979391')
			document.getElementById("btEventos").style.color=('#979391')	
			document.getElementById("btIncentivo").style.color=('#979391')
			document.getElementById("btAtivacao").style.color=('#979391')
			document.getElementById("btInteractive").style.color=('#979391')
			document.getElementById("btOut").style.color=('#979391')
			$("#conteudoOut").hide('slow');
		}
	});
	
		$("#btOut").click(function () {
		if (document.getElementById("conteudoOut").style.display  = "none"){
			$("#conteudoVendas").hide('slow');
			$("#conteudoEventos").hide('slow');
			$("#conteudoIncentivo").hide('slow');
			$("#conteudoAtivacao").hide('slow');
			$("#conteudoInteractive").hide('slow');
			$("#conteudoMkt").hide('slow');
			$("#conteudoOut").show('slow');
			document.getElementById("btOut").style.color=('#eb582c')
			document.getElementById("btVendas").style.color=('#979391')
			document.getElementById("btMkt").style.color=('#979391')
			document.getElementById("btEventos").style.color=('#979391')	
			document.getElementById("btIncentivo").style.color=('#979391')
			document.getElementById("btAtivacao").style.color=('#979391')
			document.getElementById("btInteractive").style.color=('#979391')			
		}
	});
	$("#btFale").click(function () {
		if (document.getElementById("conteudoFale").style.display  = "none"){
			$("#conteudoFale").fadeIn('fast');
			document.getElementById("btFale").style.color=('#eb582c')
			document.getElementById("btTrabalhe").style.color=('#979391')
			$("#conteudoTrabalhe").hide('slow');
		}
	
});
	$("#btTrabalhe").click(function () {
		if (document.getElementById("conteudoTrabalhe").style.display  = "none"){
			$("#conteudoFale").hide('slow');
			$("#conteudoTrabalhe").fadeIn('fast');
			document.getElementById("btTrabalhe").style.color=('#eb582c')
			document.getElementById("btFale").style.color=('#979391')
		}
	
});
});


	   	$(function() {
        $('#galeriaHistoria a').lightBox();
    });

    	$(function() {
        $('#galeriaPosicionamento a').lightBox();
    });
	
	   	$(function() {
        $('#galeriaVendas a').lightBox();
    });
	    $(function() {
        $('#galeriaEventos a').lightBox();
    });
	
	    $(function() {
        $('#galeriaIncentivo a').lightBox();
    });
	
	    $(function() {
        $('#galeriaAtivacao a').lightBox();
    });
	
	    $(function() {
        $('#galeriaInteractive a').lightBox();
    });
	
	$(function() {
        $('#galeriaMkt a').lightBox();
    });
	
	    $(function() {
        $('#galeriaOut a').lightBox();
    });




