// <![CDATA[
	// Affichage du gif d'attente
	function attente(div_ajax) {
		Element.update(div_ajax, '<img src="/images/indicator.gif" alt="Chargement ..." />');
	}
	
	// Renvoie le panier
	function getPanier() {
		var myAjax = new Ajax.Updater('div_panier', '/panier-ajax-getTheme.php', {
			method: 'get',
			parameters: ''
		});
	}

	// Ajoute un produit au panier
	function addProduit() {
		var myAjax = new Ajax.Updater('', '/panier-addproduit.php', {
			method: 'post',
			parameters: $('choix').serialize()
		});
	}
	
	// Détruit le panier
	function destroyPanier() {
		var myAjax = new Ajax.Updater('', '/panier-destroy.php', {
			method: 'get',
			parameters: ''
		});
	}
	
	// Affiche div panier
	function ouvrePanier() {
		$('Panier').style.top = Math.round((screen.height - 400) / 2) + 'px';
		$('Panier').style.left = Math.round((screen.width - 609) / 2) + 'px';
		
		$('conteneur').fade({ duration: 0, from: 1, to: 0.2 });
		
		Effect.toggle('Panier', 'appear', { duration: 0 });
	}
	
	// Cache div
	function fermePanier() {
		Effect.toggle('Panier', 'appear', { duration: 0 });
		$('conteneur').appear({ duration: 0, from: 0, to: 1 });
	}
	
	// Affiche div
	function ouvreCommande() {
		$('Commande').style.top = '240px';
		$('Commande').style.left = Math.round((screen.width - 609) / 2) + 'px';
		
		Effect.toggle('Commande', 'appear', { duration: 0 });
	}
	
	// Cache div
	function fermeCommande() {
		Effect.toggle('Commande', 'appear', { duration: 0 });
	}
	
	// Affiche div
	function ouvreCompte() {
		$('Compte').style.top = '240px';
		$('Compte').style.left = Math.round((screen.width - 609) / 2) + 'px';

		Effect.toggle('Compte', 'appear', { duration: 0 });
	}
	
	// Cache div
	function fermeCompte() {
		Effect.toggle('Compte', 'appear', { duration: 0 });
	}
	
// ]]>

