//sIFR
$(document).ready(function(){
	//alert($(".fichaimoveldetalhes").lenght);
		$("h1").each(function(){
							  
			if($(this).parent().attr("class") != "fichaimoveldetalhes"){							  
				$(this).flash({
					src: 'swf/sIFR.swf',
					wmode: "transparent",
					flashvars: {
						css: [
							  '* {color:#A04E55;}'
							  ].join(' ')
						}
					},
					
					{ version: 8 },
					function(htmlOptions) {
						htmlOptions.flashvars.txt = this.innerHTML;
						this.innerHTML = '<span>'+this.innerHTML+'</span>';
						var $alt = $(this.firstChild);
						htmlOptions.height = $alt.height();
						htmlOptions.width = $alt.width();
						$alt.addClass('alt');
						$(this)
						.addClass('sIFR')
						.prepend($.fn.flash.transform(htmlOptions));
				});
			}
		});


	
	$("#imagens_imoveis").cycle({ 
		fx: 'scrollVert',
		next:   '.proximo_cycle', 
		prev:   '.anterior_cycle',
		speed: 1000,
		timeout:  8000 
	});
	
	$('#imagens_imoveis *').tooltip({ 
		track: true, 
		delay: 0, 
		showURL: false, 
		showBody: " - ", 
		fade: 250
	});
	
});


//TABS
$(function(){
	$('#imvTabs').tabs({
		fxFade: true,
		fxSpeed: 'fast'
	});
	
});