jQuery(function(){
		jQuery("img").fullsize();  

		//jQuery.ajax({  
		//type: "POST",  
		//url: "includes/carrinho.inc.php",  
		//data: { action: "mostraValor"},  
		//success: function(theResponse) {
		//jQuery("#carrinhoValor").html(theResponse);
		//}  
		//});  


	//jQuery("#basketItemsWrap li:first").hide();
	
	//jQuery("#productPriceWrapRight a img").click(function() {


	//var productIDValSplitter 	= (this.id).split("_");
	//var productIDVal 			= productIDValSplitter[1];
		
	
		//jQuery("#notificationsLoader").html('<img src="templates/loader_carrinho.gif">');

	
		//jQuery.ajax({  
		//type: "POST",  
		//url: "includes/carrinho.inc.php",  
		//data: { productID: productIDVal, action: "addToBasket"},  
		//success: function(theResponse) {
		
			//if( jQuery("#productID_" + productIDVal).length > 0){
				//jQuery("#productID_" + productIDVal).animate({ opacity: 0 }, 500, function() {
					//jQuery("#productID_" + productIDVal).before(theResponse).remove();
				//});				
				//jQuery("#productID_" + productIDVal).animate({ opacity: 0 }, 500);
				//jQuery("#productID_" + productIDVal).animate({ opacity: 1 }, 500);
				//jQuery("#notificationsLoader").empty();			
			//} else {
				//jQuery("#basketItemsWrap li:first").before(theResponse);
				//jQuery("#basketItemsWrap li:first").hide();
				//jQuery("#basketItemsWrap li:first").show("slow");  
				//jQuery("#notificationsLoader").empty();			
			//}
			
		//}  
		//});
		
		//jQuery.ajax({  
		//type: "POST",  
		//url: "includes/carrinho.inc.php",  
		//data: { action: "mostraValor"},  
		//success: function(theResponse) {
			
			//jQuery("#carrinhoValor").html(theResponse);
		
		//}  
		//});  


	//});
	
	
	
	//jQuery("#basketItemsWrap li img").live("click", function(event) { 
														
		//var productIDValSplitter 	= (this.id).split("_");
		//var productIDVal 			= productIDValSplitter[1];	
	
		//jQuery("#notificationsLoader").html('<img src="templates/loader_carrinho.gif">');
	
		//jQuery.ajax({  
		//type: "POST",  
		//url: "includes/carrinho.inc.php",  
		//data: { productID: productIDVal, action: "deleteFromBasket"},  
		//success: function(theResponse) {
			
			//jQuery("#productID_" + productIDVal).hide("slow",  function() {jQuery(this).remove();});
			//jQuery("#notificationsLoader").empty();
		
		//}  
		//});  
		
	//});
	
	
	//move the image in pixel
	//var move = -15;
	var move = 0;
	
	//zoom percentage, 1.2 =120%
	//var zoom = 1.2;
	var zoom = 1.0;

	//On mouse over those thumbnail
	jQuery('.zitem').hover(function() {
		
		//Set the width and height according to the zoom percentage
		width = jQuery('.zitem').width() * zoom;
		height = jQuery('.zitem').height() * zoom;
		
		//Move and zoom the image
		jQuery(this).find('img').stop(false,true).animate({'width':width, 'height':height, 'top':move, 'left':move}, {duration:200});
		
		//Display the caption
		jQuery(this).find('div.caption').stop(false,true).slideDown(200);
	},
	function() {
		//Reset the image
		jQuery(this).find('img').stop(false,true).animate({'width':jQuery('.zitem').width(), 'height':jQuery('.zitem').height(), 'top':'0', 'left':'0'}, {duration:100});	

		//Hide the caption
		jQuery(this).find('div.caption').stop(false,true).slideUp(200);
	});


});
