﻿function setClassBuscaSimples(objLayerOn, objLayerOff){
    document.getElementById(objLayerOn).className = "busca_topo_simples_on";
    document.getElementById(objLayerOff).className = "busca_topo_detalhada_off";
}

function setClassBuscaAvancada(objLayerOn, objLayerOff){
    document.getElementById(objLayerOn).className = "busca_topo_detalhada_on";
    document.getElementById(objLayerOff).className = "busca_topo_simples_off";
}

function closeModalNewsletter(){
	jQuery('#mask').hide();
	jQuery('.windowNewslleter').hide();
}
function jCarouseAdvertBuy(){
    jQuery("#advertisementBuyScroll").jCarouselLite({
          btnPrev : '#upBuy',
          btnNext : '#downBuy',
          speed   : 300,
          visible : 2,
          circular: false,
          vertical: true
    });
}
function jCarouseAdvertRent(){
    jQuery("#advertisementRentScroll").jCarouselLite({
          btnPrev : '#upRent',
          btnNext : '#downRent',
          speed   : 300,
          visible : 2,
          circular: false,
          vertical: true
    });
}

function jCarouseHistNavegacao(){
    jQuery("#histNavegacaoScroll").jCarouselLite({
          btnPrev : '#leftHist',
          btnNext : '#rightHist',
          speed   : 300,
          visible : 6,
          circular: false,
          vertical: false
    });
}

jQuery(function(){
    jQuery("#advertisementBuyScroll").jCarouselLite({
          btnPrev : '#upBuy',
          btnNext : '#downBuy',
          speed   : 300,
          visible : 2,
          circular: false,
          vertical: true
    });
});
jQuery(function(){
    jQuery("#advertisementRentScroll").jCarouselLite({
          btnPrev : '#upRent',
          btnNext : '#downRent',
          speed   : 300,
          visible : 2,
          circular: false,
          vertical: true
    });
});


jQuery(function(){
    jQuery("#histNavegacaoScroll").jCarouselLite({
          btnPrev : '#leftHist',
          btnNext : '#rightHist',
          speed   : 300,
          visible : 6,
          circular: false,
          vertical: false
    });
});

jQuery(function(){
    jQuery("#imoveis_destaque").jCarouselLite({
          speed   : 300,
          visible : 4,
          circular: true,
          auto	  : 5000,
          vertical: false
    });
});




//configuration
OAS_url = 'http://ads.buscape.com.br/RealMedia/ads/';
OAS_listpos = 'Bottom,Middle';
OAS_query = '';
OAS_sitepage = 'br.pedireito/home';
//end of configuration
OAS_version = 10;
OAS_rn = '001234567890'; OAS_rns = '1234567890';
OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11);
function OAS_NORMAL(pos) {
	document.write('<A HREF="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + OAS_query + '" TARGET=_top>');
	document.write('<IMG SRC="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + OAS_query + '" BORDER=0></A>');
}


OAS_version = 11;
if (navigator.userAgent.indexOf('Mozilla/3') != -1)
OAS_version = 10;
if (OAS_version >= 11)
document.write('<SCR'+ 'IPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + OAS_query + '"></SC'+'RIPT>');


document.write('');
function OAS_AD(pos) {
if (OAS_version >= 11)
	OAS_RICH(pos);
else
	OAS_NORMAL(pos);
}
