function initAjax() {
	/*$('.btcommander').click(function (e) {
		e.preventDefault();
		$.get('conditions-commande.html?pid='+$(this).attr("pid"), function(data){
			$(data).modal({
					onShow: conditions_commande.show,
					onClose: contact.close
			});
		});	
	});*/
	
	
	$('.btcommander').click(function (e) {
		e.preventDefault();
		$.get('/panier.html', function(data){
			$(data).modal({
					onShow: panier.updateAndShow,
					onClose: contact.close
			});
		});	
	});
	
	$('.btcommanderliste').click(function (e) {
		e.preventDefault();
		
		$.get('/panier.html?action=add&'+$(this).attr("pid")+'=1', function(data){
			$(data).modal({
					onShow: panier.show,
					onClose: contact.close
			});
		});	
	});
	
	$('#visu_commande').click(function (e) {
			e.preventDefault();
			 // Chargement du contenu des CGV
			$.get('/panier.html', function(data){
				$(data).modal({	
					onShow: panier.show,
					onClose: contact.close
				});
			});			
		});
	
	$('.bt_rappel').click(function (e) {
			e.preventDefault();
			$.get('/tools/contact.html?typeFormulaire=rappel', function(data){
				$(data).modal({
					iframeId: 'contactModalIframe',
					onOpen: contact.open,
					onShow: contact.show,
					onClose: contact.close
				});
			});			
		});
	$('.bt_contact').click(function (e) {
			e.preventDefault();
			$.get('/tools/contact.html?typeFormulaire=contact', function(data){
				$(data).modal({
					iframeId: 'contactModalIframe',
					onOpen: contact.open,
					onShow: contact.show,
					onClose: contact.close
				});
			});			
		});

	$('.bt_newsletter-promo-vin').click(function (e) {
			e.preventDefault();
			$.get('/tools/newsletter.html', function(data){
				$(data).modal({
					iframeId: 'contactModalIframe',
					onOpen: newsletter.open,
					onShow: newsletter.show,
					onClose: newsletter.close
				});
			});			
		});
	}
	function checkForm(pid){
		$.get('conditions-commande.html?pid='+pid, function(data){
			$(data).modal();
		});
	}
	function viderMessage() {
		if(document.rechercheform.nom.value == " Rechercher") {
			document.rechercheform.nom.value = "";
		}
	}