$('document').ready(function(){
//slideshow
	$(".sliderImages").jCarouselLite({
        //btnNext: ".next",
        //btnPrev: ".prev",
		visible: 1,
		auto: 7000,
		speed: 1000
    });

//inserindo a chave decoração
	var chave = jQuery('<div id="chave"><img src="img/chave.png" alt="||" /></div>')
		.css({position: "absolute", bottom: "-83px", right: "0"})
		.appendTo("#header");

//inserindo os icones do telefone
$('#telephone span:first').css({ background :'url(img/icones/telefone.gif) no-repeat 0 4px', padding: "0 0 0 17px"});
$('#telephone span:last').css({ background : 'url(img/separador_1.gif) no-repeat 0 3px', padding: "0 0 0 5px"});
		
//detalhe na coluna esquerda
	var footer = jQuery('<div id="detalhe-footer"><img src="img/bg_footer.jpg" alt="" /></div>')
		.css({position: "absolute", bottom: "-15px", left: "3px"})
		.appendTo("#copy");

//identifica de quatro em quatro os elementos da lista
$("#lista-imoveis li:nth-child(4n)").addClass("quebra-linha");

//identifica a segunda lista (dl) das noticias e tira a margin
$(".news:nth-child(2n)").addClass("last");

//colocando as abas em cima das lis
var label = jQuery('<div class="label"></div>')
	.css({position: "absolute", top: "-1px", right: "-1px", height: "77px", overflow: "hidden"})
	.appendTo("#carousel li a");
	$("#carousel li a").hover(function(){
			$(this).append($('<div class="label"></div>')
				.css({position: "absolute", top: "-1px", right: "-1px", height: "77px", overflow: "hidden", backgroundPosition: "0 -77px"}));
	
	}, 
      function () {
        $(this).find("div:last").remove();
      });
	  
//carrossel
	$(".mais-imoveis").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
		visible: 3,
		auto: 7000,
		speed: 1000
    });
	
//reflexo em imagens
	$('img.reflect').each(function(){
		$(this).reflect({height: 0.2, opacity: 0.2, inline: true} );
	});

//cantos arredondados nas noticias
$("#list-all a.rounded-image img").before($('<span class="rounded"><img src="img/rounded_image.png" alt="" /></span>'));
	
//png transparente
$("#chave").pngFix();
$(".rounded-image").pngFix();
});
