function abrirbusca(){
	document.getElementById('conteudoBuscaAvancada').style.display = 'block';
	document.getElementById('conteudoBuscaSimples').style.display = 'none';
}
function fecharbusca(){
	document.getElementById('conteudoBuscaAvancada').style.display = 'none';
	document.getElementById('conteudoBuscaSimples').style.display = 'block';
}

$(document).ready(function(){

	//slider
	function formatText(index, panel) {return index + "";}	
	$('.anythingSlider').anythingSlider({ 
		easing: "easeInOutExpo", 
		autoPlay: true, 
		delay: 5000, 
		startStopped: false, 
		animationTime: 800, 
		hashTags: false, 
		buildNavigation: true, 
		pauseOnHover: true, 
		startText: "Iniciar", 
		stopText: "Pausar", 
		navigationFormatter: formatText
	});	

});						   

window.onload = function(e){

	//mostraFlash("destaqueflashHome", "media/swf/destaques.swf", 505, 215);
	//mostraFlash("destaqueflashHome2", "media/swf/destaques.swf", 505, 215);	
	//mostraFlash("bnAnuncieSeuCarro", "media/swf/anuncie.swf", 140, 65);	
	
	$('#noticias').innerfade({
		animationtype: 'slide',
		speed: 750,
		timeout: 7000,
		type: 'sequence',
		containerheight: '55px'
	});

	$('.carro').innerfade({
		animationtype: 'fade',
		speed: 750,
		timeout: 5000,
		type: 'sequence',
		runningclass: 'carro',
		containerheight: '123px'
	});
	
}

