
function affichePartenaire(params){
	$.post("affiche_partenaire.php", params, function(data){
		$("#affiche_partenaire").fadeOut().html(data).fadeIn();
	},"html");
}

function afficheAuto(params){
	$.post("affiche_auto.php", params, function(data){
		$("#affiche_auto").fadeOut().html(data).fadeIn();
		/*tb_init('a.thickbox, area.thickbox, input.thickbox');*/
		$('.thickbox').fancybox();
	},"html");
}

function afficheAuto2(params){
	$.post("affiche_auto_total.php", params, function(data){
		$("#affiche_auto").fadeOut().html(data).fadeIn();
		/*tb_init('a.thickbox, area.thickbox, input.thickbox');*/
		$('.thickbox').fancybox();
	},"html");
}

function afficheMR(params){
	$.post("moteur_recherche.php", params, function(data){
		$("#affiche_mr").fadeOut().html(data).fadeIn();
		
		var minHeight=0;
		$('.cadre_recherche').each(function(){
			if($(this).height()>minHeight)
				minHeight=$(this).height();
		});
		$('.cadre_recherche').css({
			'min-height':minHeight+'px',
			'_height':minHeight+'px'
		});
		
	},"html");
}


function afficheMRD(params){
	$.post("moteur_recherche_detail.php", params, function(data){
		$("#affiche_mrd").fadeOut().html(data).fadeIn();
		
		var minHeight=0;
		$('.moteur_recherche_large').each(function(){
			if($(this).height()>minHeight)
				minHeight=$(this).height();
		});
		$('.moteur_recherche_large').css({
			'min-height':minHeight+'px',
			'_height':minHeight+'px'
		});
		
	},"html");
}