function openMapa()
{
	tb_show(false,"imagem.html?width=670&amp;height=500&amp;modal=false",null);
}

/*
 *@author Israel /FESS KOBBI
 */
jQuery('document').ready(function(){
	Cufon.replace(".cufont", {fontFamily: "DIN"});
	Cufon.replace(".cufont", {hover: true, hoverables: {strong:true, em:true}});
//	if(Cufon){console.info("cufon work");}

	/*CSS*/
	jQuery('table.table-imoveis tbody tr.item:last').addClass("noborder");
	jQuery('ul.order-by li:last').addClass('noborder');
	jQuery('ul.links li:last').addClass('noborder');
	jQuery('div.middle-filter ul:last').addClass('noborder');
	jQuery('ul.abas-color li:last').addClass('nomargin');
	
	//BARRA LATERAL DA HOME ADICIONANDO A CLASSE APENAS PARA O PRIMEIRO ELEMENTO DA LIST DE IMOVEIS
	jQuery('div.list-last-visited ul li').eq(0).addClass('first-of-all');
	
	/*ABAS*/
	jQuery.tabula('#abas-dados-inner', '.container-carrossel-superior-interno', '#dados-inner',4);
	jQuery.tabula('#abas-informacoes-gerais', '.wrapc', '#informacoes-gerais',4);
	jQuery.tabula('.carrousel-superior', '.container-carrossel-superior-home', '.abas-color',null,3);
	
	/*mostra a localizacao*/
	jQuery('a#show-local').click(function(){
		jQuery('.wrapc').hide();
		jQuery(jQuery(this).attr('href')).show();
		console.info(jQuery(this).attr('href'));
	});
	
	/*mostra mapa do site*/
	jQuery('.map-content').hide();
	jQuery('#show-site-map').click(function(){
		jQuery('.map-content').slideToggle('600');
	});
	
	/*apaga bt*/
	jQuery('ul.bank-flags').hide();
	jQuery('#bt-desapair').click(function(){
		jQuery(this).fadeOut('fast');
		jQuery('ul.bank-flags').fadeIn('fast');
	});

	jQuery('table.progress-phase div.fill-progress').each(function(i){
		jQuery('.value-progress').eq(i).text(jQuery(this).css('width') );
	});

	/*ABAS SOCIAL MEDIA*/
	jQuery('.abas-social-media').children().hide();
	jQuery('a.bt-voltar').click(function(){
		jQuery('.abas-social-media').children().fadeOut('normal');
	});
	jQuery('.social-media-list li a').each(function(){
		jQuery(this).click(function(){
			jQuery(jQuery('.abas-social-media').children()).fadeOut('slow');
			jQuery(jQuery(this).attr('href')).fadeIn('normal');
			return false;
		});
	});
	jQuery('.social-media-list li a').each(function(){
		var legendaMedia = jQuery(this).text();
		var legendaVazia = " ";
		jQuery(this).mouseover(function(){	
			jQuery('.textos-abas').text(legendaMedia);
		});
		jQuery(this).mouseleave(function(){
			jQuery('.textos-abas').text(legendaVazia);
		});
	});


	jQuery('table.table-imoveis tbody tr.item').each(function(){
		jQuery(this).find('td').addClass('rule-bottom');
	});
	jQuery('table.table-imoveis tbody tr.item:last').each(function(){
		jQuery(this).find('td').removeClass('rule-bottom');
	})
	Carroussel._init('#carrousel-inferior',4);
	/*TABELA DE FICHA TÉCNICA*/
	jQuery(jQuery('table.ficha-tecnica tbody tr:nth-child(odd)')).each(function(){
		jQuery(this).find('td').addClass('oddLine');
	});
	jQuery('table.ficha-tecnica tbody tr td:nth-child(odd)').addClass('title-ficha-tecnica');

	/*FAZ O LINK DO MENU FICAR ATIVO QUANDO A PÁGINA FOR CARREGADA*/
	paginaAtual = window.location+"";
	paginaAtual = paginaAtual.split("/").pop();
	if(paginaAtual != ""){
		jQuery('li.teste a[href="'+paginaAtual+'"]').addClass('ativo');
		jQuery('li.teste a[href="'+paginaAtual+'"]').siblings('ul').removeClass('recolheSubItem');
		jQuery('li.teste a[href="'+paginaAtual+'"]').parents('ul').removeClass('recolheSubItem').siblings('a').addClass('ativo');
	}
});



