
$(document).ready(function(){
	$('#slideExclusivos').after('<div id="barraExclusivos">').cycle({ 
		fx:     'fade', 
		speed:   600, 
		timeout: 6000, 
		pager:  '#barraExclusivos',
		cleartypeNoBg:true,
		pagerAnchorBuilder: function(idx, slide) {
		return '<li><a href="#"><img src="' + $(slide).find("img").attr("src") + '" width="120" height="75" /></a>' + '</div></li>';
		}
	});
	


	
		$('.cycleVenda').jCarouselLite({
		btnNext: '#imoVenda #navPrev',
		btnPrev: '#imoVenda #navNext',
		auto: 8000,
		speed: 600,
		visible: 1
	}); 
	
	$('.cycleLocacao').jCarouselLite({
		btnNext: '#imoLoca #navPrev',
		btnPrev: '#imoLoca #navNext',
		auto: 8000,
		speed: 600,
		visible: 1
	}); 
							   });
$(document).ready(function() {

	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});
	$(".twiits").getTwitter({
		userName: "zylberimob",
		numTweets: 2,
		loaderText: "Carregando tweets...",
		slideIn: true,
		showHeading: false,
		headingText: "Fique por dentro das not&iacute;cias da Bamberg",
		showProfileLink: false
	});


});
	


//Mascara Telefone
$(document).ready(function(){
	$("#Telefone").mask("(99) 9999-9999");
	$("#Celular").mask("(99) 9999-9999");	
	$("#Telefone_imobiliaria").mask("(99) 9999-9999");	
	$("#Telefone_comercial").mask("(99) 9999-9999");
	$("#Telefone_comercial_conjuge").mask("(99) 9999-9999");
	$("#Telefone_banco").mask("(99) 9999-9999");	
	$("#Telefone_banco2").mask("(99) 9999-9999");	
	$("#Telefone_empresa_contato").mask("(99) 9999-9999");
	$("#Telefone_empresa_contato2").mask("(99) 9999-9999");
	$("#Telefone_residencial").mask("(99) 9999-9999");
	$("#Telefone_banco3").mask("(99) 9999-9999");
	$("#Telefone_empresa_contato3").mask("(99) 9999-9999");
	$("#Telefone_locador").mask("(99) 9999-9999");
	$("#Telefone_conjuge").mask("(99) 9999-9999");
	$("#Celular_conjuge").mask("(99) 9999-9999");
	$("#Telefone_Residencial").mask("(99) 9999-9999");
	$("#Telefone_Comercial").mask("(99) 9999-9999");
	$("dd #telefone").mask("(99) 9999-9999");	
	$("#celular").mask("(99) 9999-9999");	
	$("#Fax").mask("(99) 9999-9999");	
	$("#Celular_locador").mask("(99) 9999-9999");
	$("#tx_telefone").mask("(99) 9999-9999");
	
	$("#Data_nascimento").mask("99/99/9999");
	$("#Data_nascimento_conjuge").mask("99/99/9999");
	$("#Data_Nascimento").mask("99/99/9999");	
	
	$("#Cpf").mask("999.999.999-99");
	$("#Cpf_conjuge").mask("999.999.999-99");	
	
	$("#Cep").mask("99999-999");
	$("#Cep_locador").mask("99999-999");
	$("#Cep_conjuge").mask("99999-999");
	
	$("#txtArea").maskDecimal();
	$("#txtAreaTot").maskDecimal();
	$("#Area_construida").maskDecimal();
	$("#Valor").maskMoney();
	$("#Valor_condominio").maskMoney();		

	
});







