function moteurRecherche () {	/*REGLAGE CSS*/	   	$("#menuFooter li:last").css({"padding-right":"0px"});	$("form.formSearch-little li:last-child").css({"margin-right":"0px"});	$(".formJugand ul:eq(1)").css({'marginLeft':'5px'});		cufonAjax();}function cufonAjax() {	Cufon.replace('.fontSpec, label, #flowtabs-content li, .compteur', {		hover: true	})}function opacityAjax() {/*OPACIITY*/		$(".opacity, .listMarques li a").hover(function(){		$(this).animate({'opacity':"0.5"}, "slow");	},function(){		$(this).stop().animate({'opacity':"1"}, "slow");	});}$(function() {		moteurRecherche();		if ($.support.opacity) { 		/*TOOLTIP RSS*/        $('#trigger').tooltip(); 		/*TABS RECHERCHE*/		$("#flowtabs").tabs("#flowpanes-search div.panes ",{			event:'click',			effect:'fade',			initialIndex:0		});    } else {         $('#trigger').tooltip({             effect: 'toggle'         }); 		$("#flowtabs").tabs("#flowpanes-search div.panes ",{			event:'mouseover',			effect:'default',			initialIndex:0		});    }	/*OVERLAY*/	$(".bt-contact").overlay({ 		color: '#ccc', 		start:  { 			top: 300 		}, 		finish: {top: 'center', left:'center'},		expose: '#333',		close: '.close'	});	/*VALIDATION FORM DEVIS*/	$("#formContact form").validate({		rules: {			nom: "required",			prenom: "required",			email: {				required:true,				email: true			},			commentaire:"required"								},		meta: "validate",		highlight: function(element, errorClass) {			$(element).fadeIn("slow",function() {			$(element).addClass(errorClass);			$(element).prev().animate({"marginLeft": "5px"},"fast",				function(){					$(this).animate({"marginLeft": "0"},"fast" );				});			});		},		unhighlight: function(element, errorClass) {			$(element).removeClass(errorClass);		}	});	/*VALIDATION FORM CONTACT*/	$("#formContact2 form").validate({		rules: {			nom: "required",			prenom: "required",			email: {				required:true,				email: true			},			commentaire:"required"								},		meta: "validate",		highlight: function(element, errorClass) {			$(element).fadeIn("slow",function() {			$(element).addClass(errorClass);			$(element).prev().animate({"marginLeft": "5px"},"fast",				function(){					$(this).animate({"marginLeft": "0"},"fast" );				});			});		},		unhighlight: function(element, errorClass) {			$(element).removeClass(errorClass);		},			    submitHandler: function(form) {			//alert(form.civilite.value);			//alert($('#civilite')[0].val());			$.post(CHEMIN_SITEWEB+'include/content/inc_ajax_contact.php', {civilite : form.civilite.value, nom : form.nom.value, prenom : form.prenom.value, cp : form.cp.value, tel : form.tel.value, email : form.email.value, commentaire : form.commentaire.value }, function(html){$('#msgMail')[0].innerHTML=html;} );			//alert($('#msgMail')[0].innerHTML);			//alert()			//$(form).ajaxSubmit();	    }			});	/*OPACIITY*/		opacityAjax();		/*APARITION FORM RECHERCHE*/	$("#search").fadeIn("slow");		/*BLOCK PROMO*/	$(".blockPromo > div").animate({'opacity':"1"}, "fast", 		function(){			$(this).animate({'opacity':"0"}, "slow", 				function(){					$(this).animate({'opacity':"1"}, "slow");				});		});});function changeBlocRecherche(idBloc) {	if ($.support.opacity) { 		/*TOOLTIP RSS*/        $('#trigger').tooltip(); 		/*TABS RECHERCHE*/		$("#flowtabs").tabs("#flowpanes-search div.panes ",{			event:'click',			effect:'fade',			initialIndex:idBloc		});    } else {         $('#trigger').tooltip({             effect: 'toggle'         }); 		$("#flowtabs").tabs("#flowpanes-search div.panes ",{			event:'click',			effect:'default',			initialIndex:idBloc		});    }	}
