// JavaScript Document
var largura = -screen.width;//define largura do monitor
var bgTotal = screen.width * 11;//define a largura total do site
var widthUsuario = screen.width;
var heightUsuario = screen.height;

/* CONFIGURAÇAO ISOLADA */
if(widthUsuario <= 800 && heightUsuario <= 600){
	
    var widthCont = "390px";
    var heightCont = "280px";
	
    var widthPerfil = "300px";
    var heightPerfil = "250px";
    var topPerfil = "-100px";
    var leftPerfil = "50px";
	
    var widthInfo = "300px";
    var heightInfo = "270px";
    var topInfo = "-30px";
    var leftInfo = "100px";
	
    var widthResp = "280px";
    var heightResp = "250px";
    var topResp = "10px";
    var leftResp = "15px";
	
    var widthShowResp = "350px";
    var heightShowResp = "270px";
    var topShowResp = "-270px";
    var leftShowResp = "10px";
	
    $(".menu").css("top", "71%");
	
}else{
	
    var widthCont = "450px";
    var heightCont = "460px";
	
    var widthPerfil = "350px";
    var heightPerfil = "325px";
    var topPerfil = "-150px";
    var leftPerfil = "50px";
	
    var widthInfo = "350px";
    var heightInfo = "300px";
    var topInfo = "-50px";
    var leftInfo = "100px";
	
    var widthResp = "400px";
    var heightResp = "350px";
    var topResp = "10px";
    var leftResp = "10px";
	
    var widthShowResp = "400px";
    var heightShowResp = "350px";
    var topShowResp = "-370px";
    var leftShowResp = "10px";
	
}
/* CONFIGURA��O ISOLADA */


/*CONFIGURANDO O LAYOUT PRA CADA RESOLU��O*/
if(widthUsuario <= 800 && heightUsuario <= 600){
	
    var	 larguraPath = 800;
    var	 alturaPath = 600;
	
    var alturaSub = "40px";
    var widthSub = "75%";
	
    var leftAno = "90%";
    var topAno = "0px";
	
    var frases = "45%";//POSICIONAMENTO DAS FRASES DA HOME
	
	//MENU EM FLASH
    var menuVersao = 'versao680x110.swf';
    var menuLargura = '800px';
    var menuAltura = '110px';
	
}else if(widthUsuario > 800 && heightUsuario > 600 && widthUsuario <= 1024 && heightUsuario <= 640){
	
    var	 larguraPath = 1024;
    var	 alturaPath = 640;
	
    var alturaSub = "60px";
    var widthSub = "80%";
	
    var leftAno = "92%";
    var topAno = "0px";
	
    var frases = "45%";//POSICIONAMENTO DAS FRASES DA HOME
	
	//MENU EM FLASH
    var menuVersao = 'versao904x110.swf';
    var menuLargura = '1024px';
    var menuAltura = '110px';
	
}else if(widthUsuario > 800 && heightUsuario > 640 && widthUsuario <= 1024 && heightUsuario <= 768){
	
    var	 larguraPath = 1024;
    var	 alturaPath = 768;
	
    var alturaSub = "100px";
    var widthSub = "80%";
	
    var leftAno = "92%";
    var topAno = "0px";
	
    var frases = "55%";//POSICIONAMENTO DAS FRASES DA HOME
	
	
    var menuVersao = 'versao904x110.swf';
    var menuLargura = '1024px';
    var menuAltura = '110px';
	
}else if(widthUsuario > 1024 && heightUsuario > 640 && widthUsuario <= 1152 && heightUsuario <= 720){
	
    var	 larguraPath = 1152;
    var	 alturaPath = 720;
	
    var alturaSub = "120px";
    var widthSub = "82%";
	
    var leftAno = "93%";
    var topAno = "0px";
	
    var frases = "55%";//POSICIONAMENTO DAS FRASES DA HOME
	
	//MENU EM FLASH
    var menuVersao = 'versao1032x110.swf';
    var menuLargura = '1152px';
    var menuAltura = '110px';
	
}else if(widthUsuario > 1024 && heightUsuario > 720 && widthUsuario <= 1152 && heightUsuario <= 864){
	
    var	 larguraPath = 1152;
    var	 alturaPath = 864;
	
    var alturaSub = "170px";
    var widthSub = "82%";
	
    var leftAno = "93%";
    var topAno = "0px";
	
    var frases = "55%";//POSICIONAMENTO DAS FRASES DA HOME
	
	//MENU EM FLASH
    var menuVersao = 'versao1032x110.swf';
    var menuLargura = '1152px';
    var menuAltura = '150px';
	
}else if(widthUsuario > 1152 && widthUsuario <= 1280 && heightUsuario <= 600){
	
    var	 larguraPath = 1280;
    var	 alturaPath = 720;
	
    var alturaSub = "-90px";
    var widthSub = "84%";
	
    var leftAno = "94 os anos %";
    var topAno = "0px";
	
    var frases = "55%";//POSICIONAMENTO DAS FRASES DA HOME
	
	//MENU EM FLASH
    var menuVersao = 'versao1160x110.swf';
    var menuLargura = '1280px';
    var menuAltura = '110px';
	
}else if(widthUsuario > 1152 && heightUsuario > 640 && widthUsuario <= 1280 && heightUsuario <= 720){
	
    var	 larguraPath = 1280;
    var	 alturaPath = 720;
	
    var alturaSub = "-90px";
    var widthSub = "84%";
	
    var leftAno = "94%";
    var topAno = "0px";
	
    var frases = "55%";//POSICIONAMENTO DAS FRASES DA HOME
	
	//MENU EM FLASH
    var menuVersao = 'versao1160x110.swf';
    var menuLargura = '1280px';
    var menuAltura = '110px';
	
}else if(widthUsuario > 1152 && heightUsuario > 720 && widthUsuario <= 1280 && heightUsuario <= 768){
	
    var	 larguraPath = 1280;
    var	 alturaPath = 768;
	
    var alturaSub = "70px";
    var widthSub = "84%";
	
    var leftAno = "94%";
    var topAno = "0px";
	
    var frases = "55%";//POSICIONAMENTO DAS FRASES DA HOME
	
	//MENU EM FLASH
    var menuVersao = 'versao1160x110.swf';
    var menuLargura = '1280px';
    var menuAltura = '110px';
	
}else if(widthUsuario > 1152 && heightUsuario > 768 && widthUsuario <= 1280 && heightUsuario <= 800){
	
    var	 larguraPath = 1280;
    var	 alturaPath = 960;
	
    var alturaSub = "110px";
    var widthSub = "84%";
	
    var leftAno = "94%";
    var topAno = "0px";
	
    var frases = "65%";//POSICIONAMENTO DAS FRASES DA HOME
	
	//MENU EM FLASH
    var menuVersao = 'versao1160x110.swf';
    var menuLargura = '1280px';
    var menuAltura = '110px';
	
}else if(widthUsuario > 1152 && heightUsuario > 768 && widthUsuario <= 1280 && heightUsuario <= 960){
	
    var	 larguraPath = 1280;
    var	 alturaPath = 960;
	
    var alturaSub = "200px";
    var widthSub = "84%";
	
    var leftAno = "94%";
    var topAno = "0px";
	
    var frases = "55%";//POSICIONAMENTO DAS FRASES DA HOME
	
	//MENU EM FLASH
    var menuVersao = 'versao1120x150.swf';
    var menuLargura = '1280px';
    var menuAltura = '150px';
	
}else if(widthUsuario > 1152 && heightUsuario > 960 && widthUsuario <= 1280 && heightUsuario <= 1024){
	
    var	 larguraPath = 1280;
    var	 alturaPath = 1024;
	
    var alturaSub = "270px";
    var widthSub = "84%";
	
    var leftAno = "94%";
    var topAno = "-50px";
	
    var frases = "55%";//POSICIONAMENTO DAS FRASES DA HOME
	
	//MENU EM FLASH
    var menuVersao = 'versao1120x150.swf';
    var menuLargura = '1280px';
    var menuAltura = '150px';
	
}else if(widthUsuario > 1280 && heightUsuario > 720 && widthUsuario <= 1360 && heightUsuario <= 768){
	
    var	 larguraPath = 1440;
    var	 alturaPath = 900;
	
    var alturaSub = "290px";
    var widthSub = "84%";
	
    var leftAno = "47%";
    var topAno = "310px";
	
    var frases = "55%";//POSICIONAMENTO DAS FRASES DA HOME
	
	//MENU EM FLASH
    var menuVersao = 'versao1130x150.swf';
    var menuLargura = '1440px';
    var menuAltura = '150px';
	
}else if(widthUsuario > 1280 && heightUsuario > 768 && widthUsuario <= 1440 && heightUsuario <= 900){
	
    var	 larguraPath = 1440;
    var	 alturaPath = 900;
	
    var alturaSub = "150px";
    var widthSub = "86%";
	
    var leftAno = "95%";
    var topAno = "0px";
	
    var frases = "60%";//POSICIONAMENTO DAS FRASES DA HOME
	
	//MENU EM FLASH
    var menuVersao = 'versao1280x150.swf';
    var menuLargura = '1280px';
    var menuAltura = '150px';
	
	
}else if(widthUsuario > 1440 && heightUsuario > 900 && widthUsuario <= 1680 && heightUsuario <= 1050){
	
    var	 larguraPath = 1680;
    var	 alturaPath = 1050;
	
    var alturaSub = "250px";
    var widthSub = "88%";
	
    var leftAno = "95%";
    var topAno = "0px";
	
    var frases = "65%";//POSICIONAMENTO DAS FRASES DA HOME
	
	//MENU EM FLASH
    var menuVersao = 'versao1520x150.swf';
    var menuLargura = '1680px';
    var menuAltura = '150px';
	
}else if(widthUsuario > 1680 && heightUsuario > 1050 && widthUsuario <= 1920 && heightUsuario <= 1200){
	
    var	 larguraPath = 1920;
    var	 alturaPath = 1200;
	
    var alturaSub = "250px";
    var widthSub = "89%";
	
    var leftAno = "95%";
    var topAno = "0px";
	
    var frases = "60%";//POSICIONAMENTO DAS FRASES DA HOME
	
	//MENU EM FLASH
    var menuVersao = 'versao1760x150.swf';
    var menuLargura = '1920px';
    var menuAltura = '150px';
	
	
}else if(widthUsuario == 1600 && heightUsuario == 900){

    var	 larguraPath = 1680;
    var	 alturaPath = 1050;

    var alturaSub = "150px";
    var widthSub = "87%";
	
    var leftAno = "95%";
    var topAno = "0px";

    var frases = "65%";//POSICIONAMENTO DAS FRASES DA HOME

	//MENU EM FLASH
    var menuVersao = 'versao1520x150.swf';
    var menuLargura = '1680px';
    var menuAltura = '150px';

}else if(widthUsuario == 1400 && heightUsuario == 1050){

    var larguraPath = 1680;
    var	alturaPath = 1050;

    var alturaSub = "290px";
    var widthSub = "84%";

    var leftAno = "95%";
    var topAno = "0px";

    var frases = "60%";//POSICIONAMENTO DAS FRASES DA HOME

	//MENU EM FLASH
    var menuVersao = 'versao1280x150.swf';
    var menuLargura = '1280px';
    var menuAltura = '150px';

}else{ // SENÃO USA A VERSÃO DE 1024

	var	 larguraPath = 1024;
    var	 alturaPath = 768;
	
    var alturaSub = "100px";
    var widthSub = "80%";
	
    var leftAno = "92%";
    var topAno = "0px";
	
    var frases = "55%";//POSICIONAMENTO DAS FRASES DA HOME
	
	
    var menuVersao = 'versao904x110.swf';
    var menuLargura = '1024px';
    var menuAltura = '110px';
	
}
/*CONFIGURANDO O LAYOUT PRA CADA RESOLU��O*/


var path = "images/"+larguraPath+"x"+alturaPath+"/";


function resetForm(){
    document.form1.nome.value = "";
    document.form1.email.value = "";
    document.form1.telefone.value = "";
    document.form1.assunto.value = "";
    document.form1.mensagem.value = "";
}


/////////////////////////
//INICIANDO JQUERY FIXO//
$(document).ready(function(){
							   
    //LARGURA DE CADA P�GINA
    $(".pag1, .pag2, .pag3, .pag4, .pag5, .pag6, .pag7, .pag8, .pag9, .pag10, .pag11").css("width", screen.width);
		
    //ALTURA DE CADA P�GINA
    $(".pag1, .pag2, .pag3, .pag4, .pag5, .pag6, .pag7, .pag8, .pag9, .pag10, .pag11").css("height", screen.height);
		
    /* BACKGROUNDS */
    $(".pag1").css("background-image", "url("+path+"index.jpg)");
    $(".pag2").css("background-image", "url("+path+"quem_somos.jpg)");
    $(".pag3").css("background-image", "url("+path+"atuacao.jpg)");
    $(".pag4").css("background-image", "url("+path+"informativos.jpg)");
    $(".pag5").css("background-image", "url("+path+"imprensa.jpg)");
    $(".pag6").css("background-image", "url("+path+"links_uteis.jpg)");
    $(".pag7").css("background-image", "url("+path+"localizacao.jpg)");
    $(".pag8").css("background-image", "url("+path+"trabalhe.jpg)");
    $(".pag9").css("background-image", "url("+path+"area_restrita.jpg)");
    $(".pag10").css("background-image", "url("+path+"fale_conosco.jpg)");
    $(".pag11").css("background-image", "url("+path+"pesquisa.jpg)");
    /* BACKGROUNDS */
		
		
    /* POSICIONANDO AS CAIXAS DE CONTE�DO */
    $("#cont2, #cont3, #cont4, #cont5, #cont6, #cont8, #cont9").css({
        /* left:"50%", */
        top:"27%",
        marginLeft:"440px",
        marginTop:"-200px",
        width:widthCont,
        height:heightCont,
        position:"relative",
		float:"left"
    });
		
    $("#cont10").css({
        left:"5%",
        top:"5%",
        width: "450px",
        height: "350px",
        //marginLeft: "-500px",
        //marginTop: "-450px",
        position:"relative"
    });
		
    $("#tit1").css({
        left:"5%",
        top:frases,
        marginTop: -100,
        width: 500,
        height: 150,
        // marginLeft: "-450px",
        //marginTop: "-75px",
        position:"relative"
    });
		
    $("#loca1").css({
        left:"50%",
        top:"50%",
        width: "400px",
        height: "80px",
        marginLeft: "-200px",
        marginTop: "-300px",
        overflow: "hidden",
        position:"relative"
    });
		
    $("#loca2").css({
        left:"50%",
        top:"50%",
        width: "400px",
        height: "80px",
        marginLeft: "-200px",
        marginTop: "20px",
        overflow: "hidden",
        position:"relative"
    });
		
		
    $("#sub4").css({
        top:alturaSub,
        left:widthSub
    });
		
    $("#tema4 a, #tema3 a, #tema2 a, #tema1 a").css({
        color:"#FFFFFF",
        fontSize:"11px"
    });
		
    $("#ano5").css({
        left:leftAno,
        top:topAno
    });
		
    $("#info").css({
        left:leftInfo,
        top:topInfo,
        width:widthInfo,
        height:heightInfo
    });
		
    $("#perfil").css({
        left:leftPerfil,
        top:topPerfil,
        width:widthPerfil,
        height:heightPerfil
    });
		
    $("#resp").css({
        left:leftResp,
        top:topResp,
        width:widthResp,
        height:heightResp
    });
    $("#showResp").css({
        left:leftShowResp,
        top:topShowResp,
        width:widthShowResp,
        height:heightShowResp
    });
		
    $("#result2").css({
        left:"500px",
        top:"10px",
        width:widthResp,
        height:heightResp
    });
    $("#showResult2").css({
        left:"10px",
        top:"10px",
        width:widthResp,
        height:heightResp
    });
		
    $("#pesquisa4").css({
        left:"10px",
        top:"10px"
    });
    $("#result4").css({
        left:"500px",
        top:"10px",
        width:widthResp,
        height:heightResp
    });
    $("#showResult4").css({
        left:"10px",
        top:"10px",
        width:widthResp,
        height:heightResp
    });
		
    $("#pesquisa5").css({
        left:"10px",
        top:"10px"
    });
    $("#result5").css({
        left:"500px",
        top:"10px",
        width:widthResp,
        height:heightResp
    });
    /* POSICIONANDO AS CAIXAS DE CONTE�DO */
		
		
    //AJUSTANDO TRANSPARENCIA
    $("#cont2, #cont3, #cont4, #cont5, #cont6, #loca1, #loca2, #cont8, #cont9, #cont10,	#cont11, #perfil, #showResp, #resp, #info, #tit3, .menu, #result2, #showResult2, #pesquisa4, #pesquisa5, #result4, #result5, #showResult4, #sub4, #ano5").animate({opacity: 0.8}, 0);
		
    $("#bg").css("width", bgTotal);//LARGURA TOTAL DO SITE
    $("#body").css("overflow", "hidden");//ESCONDER BARRAS DE ROLAGEM DO NAVEGADOR
    $("#button").click(function(){
        return true;
    });
		
		
	
    $('#tit1').cycle({
        timeout: 10000,
        cleartype:  true,
        cleartypeNoBg:  true
    });
		
		
});
//FIM JQUERY FIXO////////
/////////////////////////


/* INICIO HOME */
/*
function rand(min, max) {
	return Math.floor((Math.random() * (max - min + 1)) + min);
}

setInterval("change();", 5000);	

function change(){
	$(document).ready(function(){
			
			var msg1 = "�Onde me devo abster da moral, deixo de ter poder.�{Johann Goethe}";
			var msg2 = "Texto 2";
			var msg3 = "Texto 3";
			
			var n = rand(1,3);
			
			$("#tit1").html(eval("msg"+n));
							   
	});
}
*/

$(document).ready(function() {
	
    $('#tit1').cycle({
        timeout: 10000,
        cleartype:  true,
        cleartypeNoBg:  true
    });
});


function btn1(){
    $(document).ready(function(){
        var posicao = 0;
        $("#bg").animate({
            marginLeft: posicao
        }, "slow");
    });
}
/* INICIO HOME */


/* INICIO QUEM SOMOS */
function btn2(pag, per){
		
    var posicao = largura;
		
    $(document).ready(function(){
		
        $("#bg").animate({
            marginLeft: posicao
        }, "slow");
        $("#cont2").animate({
            opacity: 0.85
        }, "fast");
			
        //ESCONDENDO TUDO
        $("#perfil").hide("normal");
        $("#result2").hide("normal");
        $("#showResult2").hide("normal");
			
        //APAGANDO �REAS
        $("#perfil").html("");
        $("#result2").html("");
        $("#showResult2").html("");
		
		
        if(pag == 1){
			
            //conteudo = "<p>Desde 1999, o Correia da Silva atua com qualidade e comprometimento   em diversas &aacute;reas do direito, alcan&ccedil;ando um importante lugar entre os   500 melhores escrit&oacute;rios do Brasil de acordo com o Anu&aacute;rio An&aacute;lise   Advocacia, em que recebeu destaque entre os 40 melhores nas &aacute;reas de   Infra-estrutura e Regulat&oacute;rio. O escrit&oacute;rio &eacute; tamb&eacute;m reconhecido   mundialmente tanto pela publica&ccedil;&atilde;o inglesa Pratical Law Company   Cross-border Handbooks - Life Sciences como pelo International Who's Who   of Business Lawyers. Em um contexto de grandes conquistas, ao prestar   servi&ccedil;os jur&iacute;dicos de forma integrada, os clientes s&atilde;o assessorados em   todos os aspectos relativos ao seu neg&oacute;cio, tanto no &acirc;mbito preventivo   como no contencioso, para prote&ccedil;&atilde;o e recupera&ccedil;&atilde;o de ativos.</p><p>A excel&ecirc;ncia de servi&ccedil;os se d&aacute; devido ao constante desenvolvimento   t&eacute;cnico e humano da equipe, que atende as exig&ecirc;ncias de um mercado   moderno, com senso de oportunidade, urg&ecirc;ncia e persist&ecirc;ncia,   possibilitando assim o surgimento de solu&ccedil;&otilde;es diferenciadas adequadas   aos desafios empresarias dos clientes. S&atilde;o profissionais din&acirc;micos com   viv&ecirc;ncia em quest&otilde;es complexas que est&atilde;o aptos a atuar no mercado   globalizado atual.</p><p>Estes profissionais garantem um atendimento personalizado de acordo   com as necessidades de clientes de todos os portes, possibilitando um   relacionamento est&aacute;vel e duradouro com os mesmos.<br />  Com tradi&ccedil;&atilde;o na &aacute;rea de Sa&uacute;de e destaque nacional e internacional em   Direito Regulat&oacute;rio e Infra-estrutura, o escrit&oacute;rio est&aacute; em constante   crescimento, seguindo uma trajet&oacute;ria guiada pela dedica&ccedil;&atilde;o e pela &eacute;tica.</p><p>Posicionado na vanguarda brasileira, o Correia da Silva conta tamb&eacute;m   com uma grande preocupa&ccedil;&atilde;o s&oacute;cio-ambiental. Ela &eacute; refletida na pr&aacute;tica   da cultura do paperless, na reciclagem de materiais e na busca de   servi&ccedil;os terceirizados ecologicamente corretos. Este posicionamento &eacute;   fruto dos valores do escrit&oacute;rio, de seu s&oacute;cio-fundador e funcion&aacute;rios,   que se concretizam em servi&ccedil;os jur&iacute;dicos conscientes e de qualidade.</p><p><strong>Miss&atilde;o:</strong><br />Alavancar o neg&oacute;cio do cliente com as melhores solu&ccedil;&otilde;es jur&iacute;dicas.</p><p><strong>Vis&atilde;o: </strong><br />Ser reconhecido pelo mundo empresarial por oferecer as melhores solu&ccedil;&otilde;es   jur&iacute;dicas.</p><p><strong>Valores:</strong><br />&Eacute;tica, Energia, Estrat&eacute;gia, Efic&ecirc;cia, Transpar&ecirc;ncia, Confidencialidade,   Colabora&ccedil;&atilde;o, Compromisso, Conhecimento e Criatividade.</p><strong>Diretrizes:</strong><br /><ul>  <li>    Sermos boas pessoas e bons profissionais;</li>  <li>N&atilde;o fazer aos outros o que n&atilde;o queremos que nos fa&ccedil;am;</li>  <li>Adquirir, desenvolver e compartilhar conhecimento;</li>  <li>Identificar e atender necessidades e desejos;</li>  <li>Desenvolver e manter relacionamentos saud&aacute;veis;</li>  <li>Simplificar para entender, resolver e melhorar;</li>  <li>Manter o foco no cliente e o do cliente em n&oacute;s.</li></ul>";
			//$("#cont2").html(conteudo);
			
			ajaxGet("php/getFixo.php?id=3", document.getElementById("cont2"), false);
            		
			
        }else if(pag == 2){
			
            ajaxGet("php/getEmpregados.php?tp=1", document.getElementById("cont2"),false);
			
        }else if(pag == 3){
			
            //conteudo = "O s&oacute;cio  Rodrigo Alberto Correia da Silva fundou o escrit&oacute;rio no ano de 1999 na cidade  de S&atilde;o Paulo e, desde ent&atilde;o, seu crescimento &eacute; evidente. O reconhecimento se d&aacute;  tanto em publica&ccedil;&otilde;es nacionais e internacionais como atrav&eacute;s da marcante satisfa&ccedil;&atilde;o  dos clientes.<p>O  Correia da Silva Advogados, desde seu in&iacute;cio, teve importantes experi&ecirc;ncias  jur&iacute;dicas na &aacute;rea de sa&uacute;de, atendendo grandes associa&ccedil;&otilde;es e empresas do ramo.  Hoje, por&eacute;m, tem seus neg&oacute;cios expandidos, atuando tamb&eacute;m junto a outros  segmentos. </p><p>Atualmente,  o escrit&oacute;rio conta com aproximadamente 20 profissionais, todos com forma&ccedil;&atilde;o nas  melhores institui&ccedil;&otilde;es brasileiras, ingl&ecirc;s fluente e comprometimento constante.  As equipes seguem os ideais do escrit&oacute;rio e os aplicam diariamente ao atenderem  casos das seguintes &aacute;reas do direito: Direito Regulat&oacute;rio e Econ&ocirc;mico, Direito  Administrativo, Direito Tribut&aacute;rio, Direito Comercial Consultivo, Contencioso  Comercial Nacional e Internacional, Direito do Trabalho e Rela&ccedil;&otilde;es  Governamentais. O maior destaque do escrit&oacute;rio se d&aacute; em rela&ccedil;&atilde;o ao Direito Regulat&oacute;rio  e Infra-estrutura.</p><p>Com  o passar dos anos e a sequ&ecirc;ncia de casos bem-sucedidos, o escrit&oacute;rio ampliou  sua carteira de clientes nacionais e expandiu seus servi&ccedil;os, passando a atender  empresas multinacionais e obtendo tamb&eacute;m experi&ecirc;ncias internacionais, com a  mesma excel&ecirc;ncia reconhecida at&eacute; ent&atilde;o. </p><p>Essa  proximidade em rela&ccedil;&atilde;o &agrave;s empresas multinacionais e internacionais se d&aacute; devido  &eacute; capacidade do escrit&oacute;rio em se adaptar ao cen&aacute;rio globalizado da atualidade e  gra&ccedil;as ao estreito relacionamento do escrit&oacute;rio com c&acirc;maras internacionais de  com&eacute;rcio.</p>";
			//$("#cont2").html(conteudo);
			
			ajaxGet("php/getFixo.php?id=5", document.getElementById("cont2"), false);
			
        }else if(pag == 4){
			
            ajaxGet("php/getEmpregados.php?tp=2&id="+per, document.getElementById("perfil"), false);
			
            $("#cont2").animate({
                opacity: 0.1
            }, 500);
            $("#perfil").show("normal");
			
        }

    });
	
}

function showAdvogados(){
    $(document).ready(function(){
        $("#divAdvogados").toggle("normal");
        $("#icoPlusAdv").toggle();
        $("#icoMinusAdv").toggle();
    });
}
function showEstagiarios(){
    $(document).ready(function(){
        $("#divEstagiarios").toggle("normal");
        $("#icoPlusEst").toggle();
        $("#icoMinusEst").toggle();
    });
}
function buscarArtigos(){
    $(document).ready(function(){
        $("#result2").show("normal");
        ajaxGet("php/getBuscaEmp.php?tp=0&str="+document.buscaEmp.nome.value, document.getElementById("result2"), false);
    });
}
function mostrarArtigo(){
    $(document).ready(function(){
        $("#perfil").hide("normal");
        ajaxGet("php/showBusca.php?id="+id, document.getElementById("showResp"), false);
    });
}
	
/*FUN��O PARA RESETAR A �REA DE "QUEM SOMOS"*/
function resetPerfil(){
    $(document).ready(function(){
        $("#cont2").animate({
            opacity: 0.85
        }, "fast");
        $("#perfil").hide("normal");
        $("#perfil").html("");
			
        $("#result2").hide("normal");
        $("#result2").html("");
			
        $("#showResult2").hide("normal");
        $("#showResult2").html("");
    });
}
function resetResult2(){
    $(document).ready(function(){
        $("#result2").hide("normal");
    });
}
function resetShowResult2(){
    $(document).ready(function(){
        $("#perfil").show("normal");
        $("#showResult2").hide("normal");
    });
}
/*FUN��O PARA RESETAR A �REA DE "QUEM SOMOS"*/
/* FIM QUEM SOMOS */



/* INICIO ÁREAS DE ATUAÇÃO */
function btn3(){
    $(document).ready(function(){
        var posicao = largura * 2;
        $("#bg").animate({
            marginLeft: posicao
        }, "slow");
    });
	
    ajaxGet("php/getAtuacao.php?acao=list", document.getElementById("cont3"), false);
}
function showArea(id){
    $(document).ready(function(){
        $("#cont3").animate({
            opacity: 0.10
        }, "slow");
        $("#tit3").show("slow");
		$("#tit3").html("");
    });
    ajaxGet("php/getAtuacao.php?acao=show&id="+id, document.getElementById("tit3"), false);
}
function closeArea(){
    $(document).ready(function(){
        $("#cont3").animate({
            opacity: 0.80
        }, "slow");
        $("#tit3").hide("slow");
    });
}
/* FIM ÁREAS DE ATUAÇÃO */



/* INICIO INFORMATIVO */
function btn4(info){
    $(document).ready(function(){
		
        var posicao = largura * 3;
        $("#bg").animate({
            marginLeft: posicao
        }, "slow");
        $("#result4").hide("normal");
        $("#showResult4").hide("normal");
		
        if(info == 1){
			
            ajaxGet("php/getInformativos.php?cat="+info, document.getElementById("cont4"), false);
			
            //titulo = "<li style=\"font-size:30px; list-style:none;\"><a href=\"javascript:btn4(1)\" target=\"_self\"><img src=\"./images/infoGeraisG.png\" border=\"0\" /></a></li><li style=\"list-style:none;\"><a href=\"javascript:btn4(2)\" target=\"_self\"><img src=\"./images/negSaudeP.png\" width=\"200\" height=\"31\" border=\"0\" /></a></li><li style=\"list-style:none;\"><a href=\"javascript:btn4(3)\" target=\"_self\"><img src=\"./images/agLegP.png\" width=\"200\" height=\"32\" border=\"0\" /></a></li><li style=\"list-style:none;\"><a href=\"javascript:btn4(4)\" target=\"_self\"><img src=\"./images/artP.png\" width=\"200\" height=\"31\" border=\"0\" /></a></li>";
			
            $("#sub4").css({
                display:"block",
                marginTop:"10%"
            });
			
            $("#tema1 a").css({
                fontSize:"16px",
                color:"#FFFFFF",
                fontWeight:"bold"
            });
            $("#tema4 a, #tema3 a, #tema2 a").css({
                fontSize:"11px",
                color:"#FFFFFF",
                fontWeight:""
            });
			
            $("#info").hide("normal");
				
  
        }else if (info == 2){
			
            ajaxGet("php/getInformativos.php?cat="+info, document.getElementById("cont4"), false);
			
            //titulo = "<li style=\"font-size:30px; list-style:none;\"><a href=\"javascript:btn4(1)\" target=\"_self\"><img width=\"200\" height=\"26\" src=\"./images/infoGeraisP.png\" border=\"0\" /></a></li><li style=\"list-style:none;\"><a href=\"javascript:btn4(2)\" target=\"_self\"><img src=\"./images/negSaudeG.png\" border=\"0\" /></a></li><li style=\"list-style:none;\"><a href=\"javascript:btn4(3)\" target=\"_self\"><img src=\"./images/agLegP.png\" width=\"200\" height=\"32\" border=\"0\" /></a></li><li style=\"list-style:none;\"><a href=\"javascript:btn4(4)\" target=\"_self\"><img src=\"./images/artP.png\" width=\"200\" height=\"31\" border=\"0\" /></a></li>";
			
            $("#sub4").css({
                display:"block",
                marginTop:"10%"
            });
			
            $("#tema2 a").css({
                color:"#FFFFFF",
                fontSize:"16px",
                fontWeight:"bold"
            });
            $("#tema4 a, #tema3 a, #tema1 a").css({
                color:"#FFFFFF",
                fontSize:"11px",
                fontWeight:""
            });
			
            $("#info").hide("normal");
			
			
        }else if (info == 3){
			
            ajaxGet("php/getInformativos.php?cat="+info, document.getElementById("cont4"), false);
			
            //titulo = "<li style=\"font-size:30px; list-style:none;\"><a href=\"javascript:btn4(1)\" target=\"_self\"><img width=\"200\" height=\"26\" src=\"./images/infoGeraisP.png\" border=\"0\" /></a></li><li style=\"list-style:none;\"><a href=\"javascript:btn4(2)\" target=\"_self\"><img src=\"./images/negSaudeP.png\" width=\"200\" height=\"31\" border=\"0\" /></a></li><li style=\"list-style:none;\"><a href=\"javascript:btn4(3)\" target=\"_self\"><img src=\"./images/agLegG.png\" border=\"0\" /></a></li><li style=\"list-style:none;\"><a href=\"javascript:btn4(4)\" target=\"_self\"><img src=\"./images/artP.png\" width=\"200\" height=\"31\" border=\"0\" /></a></li>";
			
            $("#sub4").css({
                display:"block",
                marginTop:"10%"
            });
			
            $("#tema3 a").css({
                color:"#FFFFFF",
                fontSize:"16px",
                fontWeight:"bold"
            });
            $("#tema4 a, #tema2 a, #tema1 a").css({
                color:"#FFFFFF",
                fontSize:"11px",
                fontWeight:""
            });
			
            $("#info").hide("normal");
			
        }else if (info == 4){
			
            ajaxGet("php/getInformativos.php?cat="+info, document.getElementById("cont4"), false);
			
            //titulo = "<li style=\"font-size:30px; list-style:none;\"><a href=\"javascript:btn4(1)\" target=\"_self\"><img width=\"200\" height=\"26\" src=\"./images/infoGeraisP.png\" border=\"0\" /></a></li><li style=\"list-style:none;\"><a href=\"javascript:btn4(2)\" target=\"_self\"><img src=\"./images/negSaudeP.png\" width=\"200\" height=\"31\" border=\"0\" /></a></li><li style=\"list-style:none;\"><a href=\"javascript:btn4(3)\" target=\"_self\"><img src=\"./images/agLegP.png\" width=\"200\" height=\"32\" border=\"0\" /></a></li><li style=\"list-style:none;\"><a href=\"javascript:btn4(4)\" target=\"_self\"><img src=\"./images/artG.png\" border=\"0\" /></a></li>";
			
            $("#sub4").css({
                display:"block",
                marginTop:"10%"
            });
			
            $("#tema4 a").css({
                color:"#FFFFFF",
                fontSize:"16px",
                fontWeight:"bold"
            });
            $("#tema3 a, #tema2 a, #tema1 a").css({
                color:"#FFFFFF",
                fontSize:"11px",
                fontWeight:""
            });
			
            $("#info").hide("normal");
			
			
        }else{
			
           // conteudo = "Para manter os clientes sempre informados, o Correia da Silva conta com tr&ecirc;s diferentes informativos: Geral, Neg&oacute;cios da Sa&uacute;de e Agenda Legislativa. Sendo suas periodicidades, respectivamente, mensal, quinzenal e semanal. Os artigos s&atilde;o confeccionados pelos profissionais do escrit&oacute;rio, abordando temas relevantes para os clientes, com textos de car&aacute;ter cr&iacute;tico e informativo, contendo uma vis&atilde;o t&eacute;cnica e pr&aacute;tica dos aspectos jur&iacute;dicos que alteram a realidade pol&iacute;tica, econ&ocirc;mica e social do pa&iacute;s.<br /><br /><strong>Acesse o informativo que deseja:</strong><br /><a href=\"javascript:btn4(1);\">Informativos Gerais</a> <br /><a href=\"javascript:btn4(2);\">Neg&oacute;cios da Sa&uacute;de</a> <br /><a href=\"javascript:btn4(3);\">Agenda Legislativa</a> <br /><a href=\"javascript:btn4(4);\">Artigos</a>";
			
			ajaxGet("php/getFixo.php?id=14", document.getElementById("cont4"), false);
			
            $("#sub4").css({
                display:"none",
                marginTop:"10%"
            });
            $("#tema4 a, #tema3 a, #tema2 a, #tema1 a").css({
                color:"#FFFFFF",
                fontSize:"11px",
                fontWeight:""
            });
			
            //$("#cont4").html(conteudo);
            $("#info").hide("normal");
			
        }
		
    });
}

function getInfo(id){
	
    ajaxGet("php/getInformativos.php?id="+id, document.getElementById("info"), false);
	
    $("#cont4").animate({
        opacity: 0.2
    }, 500);
    $("#info").show("normal");
	
}
function resetInfo(){
	
    $("#cont4").animate({
        opacity: 0.85
    }, 500);
    $("#info").hide("normal");
	
}

function buscarInfo(){
    $(document).ready(function(){
        $("#result4").show("normal");
        ajaxGet("php/getBuscaInfo.php?tp=0&str="+document.pesquisa4.busca.value, document.getElementById("result4"), false);
    });
}
function mostrarInfo(){
    $(document).ready(function(){
        $("#pesquisa4").hide("normal");
        $("#mostrarResult4").show("normal");
        ajaxGet("php/showBusca.php?id="+id, document.getElementById("showResult4"), false);
    });
}
	
function resetInfo4(){
    $(document).ready(function(){
        $("#result4").hide("normal");
    });
}
function resetShowInfo4(){
    $(document).ready(function(){
        $("#pesquisa").show("normal");
        $("#showResult4").hide("normal");
        $("#result4").hide("normal");
    });
}
/* FIM INFORMATIVO */


/* INICIO IMPRENSA */
function btn5(ano){
	
    if(ano){
        ajaxGet("php/getImprensa.php?ano="+ano, document.getElementById("cont5"), false);
    }else{
        ajaxGet("php/getImprensa.php", document.getElementById("cont5"), false);
    }
	
    $("#result5").hide("normal");
    ajaxGet("php/getDataImprensa.php", document.getElementById("ano5"), false);
	
    $(document).ready(function(){
        var posicao = largura * 4;
        $("#bg").animate({
            marginLeft: posicao
        }, "slow");
    });

}
function buscarImp(){
    $(document).ready(function(){
        $("#result5").show("normal");
        $("#cont5").animate({
            opacity: 0.1
        }, 500);
        ajaxGet("php/getBuscaImp.php?tp=0&str="+document.pesquisa5.busca.value, document.getElementById("result5"), false);
    });
}
function resetImp(){
    $(document).ready(function(){
        $("#cont5").animate({
            opacity: 0.85
        }, 500);
        $("#result5").hide("normal");
    });
}
/* FIM IMPRENSA */


/* INICIO LINKS �TEIS */
function btn6(){
	
    ajaxGet("php/getLinks.php", document.getElementById("cont6"), false);
	
    $(document).ready(function(){
        var posicao = largura * 5;
        $("#bg").animate({
            marginLeft: posicao
        }, "slow");
    });
}
function showLinks(id){
	
    $(document).ready(function(){
        $("#divLink"+id).toggle("normal");
        $("#icoPlus"+id).toggle();
        $("#icoMinus"+id).toggle();
    });
	
}

/* FIM LINKS �TEIS */


/* INICIO LOCALIZA��O */
function btn7(){
    $(document).ready(function(){
        var posicao = largura * 6;
        $("#bg").animate({
            marginLeft: posicao
        }, "slow");
		
		ajaxGet("php/getFixo.php?id=1", document.getElementById("loca1"), false);
		ajaxGet("php/getFixo.php?id=2", document.getElementById("loca2"), false);
    });
}
/* FIM LOCALIZA��O */


/* INICIO TRABALHE CONOSCO */
function btn8(){
    $(document).ready(function(){
        var posicao = largura * 7;
        $("#bg").animate({
            marginLeft: posicao
        }, "slow");
		
		ajaxGet("php/getFixo.php?id=18", document.getElementById("cont8"), false);
    });
}
/* FIM TRABALHE CONOSCO */


/* INICIO �REA RESTRITA */
function btn9(){
    $(document).ready(function(){
        var posicao = largura * 8;
        $("#bg").animate({
            marginLeft: posicao
        }, "slow");
		
		ajaxGet("php/getFixo.php?id=20", document.getElementById("cont9"), false);
    });
}
/* FIM �REA RESTRITA */


/* INICIO FALE CONOSCO */
function btn10(){
    $(document).ready(function(){
        var posicao = largura * 9;
        $("#bg").animate({
            marginLeft: posicao
        }, "slow");
    });
}
function sendEmail(){
	
	$(document).ready(function(){
							   
	   var nome = $("#nome").val();
	   var email = $("#email").val();
	   var telefone = $("#telefone").val();
	   var assunto = $("#assunto").val();
	   var mensagem = $("#mensagem").val();
	   
	   $("#form1").ajaxStart(function(){
			$("#result").html("<img src='./images/loader.gif' />");						  
		});
	   
	   $.get("./php/faleConosco.php",
			 {nome: nome, email: email, telefone: telefone, assunto: assunto, mensagem: mensagem},
			 function(data){
				$("#nome").attr("value", "");
				$("#email").attr("value", "");
				$("#telefone").attr("value", "");
				$("#assunto").attr("value", "");
				$("#mensagem").attr("value", "");
				$("#result").html(data);
		  	 });
	   });
	
	}
/* FIM FALE CONOSCO */


/* INICIO PESQUISA */
function btn11(){
    $(document).ready(function(){
        var posicao = largura * 10;
        $("#bg").animate({
            marginLeft: posicao
        }, "slow");
		
        //RESETANDO O FORM DE BUSCA
        $("#cont11").animate({
            height: 100
        }, "normal");
        $(document.form2.tpBusca[0]).attr("checked", true);
        $(document.form2.tipo[0]).attr("checked", false);
        $(document.form2.busca).val("");
        ///////////////////////////
		
        $("#resp").hide("fast");
        $("#buscaAv").hide("fast");
        $("#showResp").hide("fast");
    });
}
function buscaAv(tp){
    $(document).ready(function(){
							   
        if(tp == 0){
            $("#buscaAv").hide("normal");
            $("#cont11").animate({
                height: 100
            }, "normal");
        //$("#resp").animate({top:-160}, "normal");
        }else if (tp == 1){
            $("#buscaAv").show("normal");
            $("#cont11").animate({
                height: 200
            }, "normal");
            //$("#resp").animate({top:-240}, "normal");
            $("#fim").attr("disabled", false);
            $("#inicio").attr("disabled", false);
        }
    });
}
function getBusca(){
	
    var form = document.form2;
	
    if(form.tpBusca[0].checked){
		
        ajaxGet("php/getBusca.php?tp=0&str="+form.busca.value, document.getElementById("resp"), false);
		
    }else if (form.tpBusca[1].checked){
		
        if(form.tipo[0].checked){
			
            ajaxGet("php/getBusca.php?tp=1&cat=1&de="+form.inicio.value+"&ate="+form.fim.value+"&str="+form.busca.value, document.getElementById("resp"), false);
		
        }else if(form.tipo[1].checked){
			
            ajaxGet("php/getBusca.php?tp=1&cat=2&de="+form.inicio.value+"&ate="+form.fim.value+"&str="+form.busca.value, document.getElementById("resp"), false);
			
        }else if(form.tipo[2].checked){
			
            ajaxGet("php/getBusca.php?tp=1&cat=3&de="+form.inicio.value+"&ate="+form.fim.value+"&str="+form.busca.value, document.getElementById("resp"), false);
			
        }else if(form.tipo[3].checked){
			
            ajaxGet("php/getBusca.php?tp=1&cat=4&de="+form.inicio.value+"&ate="+form.fim.value+"&str="+form.busca.value, document.getElementById("resp"), false);
			
        }else if(form.tipo[4].checked){
			
            ajaxGet("php/getBusca.php?tp=1&cat=5&de="+form.inicio.value+"&ate="+form.fim.value+"&str="+form.busca.value, document.getElementById("resp"), false);
			
        }
		
		
    }
	
    $(document).ready(function(){
        $("#resp").show("normal");
    });
	
	
	
	
}
function showBusca(id){
    ajaxGet("php/showBusca.php?id="+id, document.getElementById("showResp"), false);
	
    $("#cont11").animate({
        opacity: 0.2
    }, 500);
    $("#showResp").show("normal");
}
function resetBusca(){
    $("#cont11").animate({
        opacity: 0.85
    }, 500);
    $("#showResp").hide("normal");
}
function resetResult(){
    $("#resp").hide("normal");
}
/* FIM PESQUISA */
