


function ch_clean_field() {

	var checkfield = document.forms.header_cadastro.ch_email.value;

	if (checkfield == "Escreva seu e-mail aqui e receba nossas oportunidades") { document.forms.header_cadastro.ch_email.value = ""; }

}



function ch_write_field() {

	var checkfield = document.forms.header_cadastro.ch_email.value;

	if (checkfield == "") { document.forms.header_cadastro.ch_email.value = "Escreva seu e-mail aqui e receba nossas oportunidades"; }

}







function lb_clean_lfield() { var checkfield = document.forms.header_login.h_login.value; if (checkfield == "e-mail") { document.forms.header_login.h_login.value = ""; } }



function lb_write_lfield() { var checkfield = document.forms.header_login.h_login.value; if (checkfield == "") { document.forms.header_login.h_login.value = "e-mail"; } }





function lb_clean_sfield() { var checkfield = document.forms.header_login.h_senha.value; if (checkfield == "senha") { document.forms.header_login.h_senha.value = ""; } }



function lb_write_sfield() { var checkfield = document.forms.header_login.h_senha.value; if (checkfield == "") { document.forms.header_login.h_senha.value = "senha"; } }







function ReloadPage() { location.reload(); }


function getXMLHTTP() { 
	var xmlhttp=false;	
	try{ xmlhttp=new XMLHttpRequest(); }
	catch(e) {		
		try{ xmlhttp= new ActiveXObject("Microsoft.XMLHTTP"); }
		catch(e){
			try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");	}
			catch(e1){ xmlhttp=false; }
		}
	}	
	return xmlhttp;
} 
function clear_vemail() {
	document.forms.formcadastro.vemail.value = "";	
}








$(document).ready(function(){


	$("#siteContainer").fadeIn();

	$("#ac").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#acCont").fadeIn("slow");
	});
	
	$("#am").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#amCont").fadeIn("slow");
	});
	$("#rr").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#rrCont").fadeIn("slow");
	});
	
	$("#ap").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#apCont").fadeIn("slow");
	});
	$("#pa").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#paCont").fadeIn("slow");
	});
	
	$("#ma").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#maCont").fadeIn("slow");
	});
	$("#pi").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#piCont").fadeIn("slow");
	});
	
	$("#ce" ).click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#ceCont").fadeIn("slow");
	});
	$("#rn").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#rnCont").fadeIn("slow");
	});
	
	$("#pb").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#pbCont").fadeIn("slow");
	});
	$("#pe").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#peCont").fadeIn("slow");
	});
	
	$("#al").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#alCont").fadeIn("slow");
	});
	$("#se").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#seCont").fadeIn("slow");
	});
	
	$("#ba").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#baCont").fadeIn("slow");
	});
	$("#to").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#toCont").fadeIn("slow");
	});
	$("#mt").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#mtCont").fadeIn("slow");
	});
	$("#ro").click(function(){
		$(".pdvCont").hide();
$("#pdv_cidades").fadeIn("slow");
		//$("#roCont").fadeIn("slow");
	});
	$("#ms").click(function(){
		$(".pdvCont").hide();
$("#pdv_cidades").fadeIn("slow");
		//$("#msCont").fadeIn("slow");
	});
	$("#go").click(function(){
		$(".pdvCont").hide();
$("#pdv_cidades").fadeIn("slow");
		//$("#goCont").fadeIn("slow");
	});
	$("#mg").click(function(){
		$(".pdvCont").hide();
$("#pdv_cidades").fadeIn("slow");
		//$("#mgCont").fadeIn("slow");
	});
	$("#es").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#esCont").fadeIn("slow");
	});
	$("#rj").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#rjCont").fadeIn("slow");
	});
	$("#sp").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#pdv_cidades").fadeIn("slow");
		//$("#spCont").fadeIn("slow");
	});
	$("#pr").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#prCont").fadeIn("slow");
	});
	$("#sc").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#scCont").fadeIn("slow");
	});
	$("#rs").click(function(){
		$(".pdvCont").hide();
		$("#pdv_cidades").fadeIn("slow");
		//$("#rsCont").fadeIn("slow");
	});

	$("#fechaCaixaAviso").click(function(){

		$("#caixaAviso").fadeOut("slow");

	});

	

	$("#cfItem01c").click(function() {

		$("#cfItem01").slideToggle();

	});

	$("#cfItem02c").click(function() {

		$("#cfItem02").slideToggle();

	});

	$("#cfItem03c").click(function() {

		$("#cfItem03").slideToggle();

	});

	$("#cfItem04c").click(function() {

		$("#cfItem04").slideToggle();

	});

	$("#cfItem05c").click(function() {

		$("#cfItem05").slideToggle();

	});

	$("#cfItem06c").click(function() {

		$("#cfItem06").slideToggle();

	});

	$("#cfItem07c").click(function() {

		$("#cfItem07").slideToggle();

	});

	$("#cfItem08c").click(function() {

		$("#cfItem08").slideToggle();

	});

	$("#cfItem09c").click(function() {

		$("#cfItem09").slideToggle();

	});

	

	$("#spItem01c").click(function() {

		$("#spItem01").slideToggle();

	});

	$("#spItem02c").click(function() {

		$("#spItem02").slideToggle();

	});

	$("#spItem03c").click(function() {

		$("#spItem03").slideToggle();

	});

	$("#spItem04c").click(function() {

		$("#spItem04").slideToggle();

	});

	$("#spItem05c").click(function() {

		$("#spItem05").slideToggle();

	});

	$("#btnFecharBannerHome").click(function() {

		$("#bannerHome").fadeOut("fast");

	});

});














