/* JavaScript Document
	Process ajax driven add to shopping cart.
*/

// LOAD JQUERY FUNCTIONS
$(document).ready(function(){	
	/* ADD CART */	
	$("#AddCart").addCart();	
});

/* PROCESS AJAX ADD CART*/
$.fn.addCart = function(e){	
	
	$("a")
	.filter(".Add2Cart")
	.click(function(e){
		// Add Cart Code		
		/*
		$.post(appUrl+"/app/modules/shopping/addCart.ajax.php", { item : $(this).html() } ,function(xml){
			$("#CartBox").html("Done." + xml);		
		});		
		*/
	end()
		
		return false;
	})
	
}



/***********************************************/

/*mon panier effet de connexion*/



$(function() {
		// run the currently selected effect
		function runEffect() {
			//effect blind
			/*
			var options = {};
			// some effects have required parameters
			options = { percent: 0 };
			
			// run the effect
			//$( "#panier" ).hide( "blind", 100);
			//$( "#panierInfo" ).hide( "blind", 100);
			//$( "#Connexion" ).show( "blind", 1000);
			*/
			$("#panier").css('display','none');
			$("#panierInfo").css('display','none');
			$("#Connexion").fadeIn(400);
		};

		// set effect from select menu value
		$( "#btnCmd" ).click(function() {
			runEffect();
			return false;
		});
	});
	
/*********************************/
