$(document).ready(function() {
    /* Universal jQuery Actions */ 
    var link = "http://fastpixs.com/"; // URL to Application Root 
    
    /* AJAXIFY THE CART
    $(".view_meta form").submit(function() 
    {
		// Get the product ID and the quantity
			var id = $(this).find('input[name=product_id]').val();
			var qty = $(this).find('input[name=quantity]').val();

            $.post(link + "cart/add_cart_item", { product_id: id, quantity: qty, ajax: '1' },
  				function(data){
                // Interact With Cart Data
                if(data == 'true')
                {
                    $.get(link + "cart/show_cart", function(cart)
                    { // Get the Contents of Cart/Show_cart
                        $("#cart_content").html(cart);
                    });
                }
                else
                {
                    alert(data);
                }
                });
			return false; // Stop the browser from loading the form's ACTION.
		})  
    */
  
    $(".empty").live("click", function(){
    	$.get(link + "cart/empty_cart", function(){
    		$.get(link + "cart/show_cart", function(cart){
  				$("#cart_content").html(cart);
			});
		});

		return false;
    });
	      
});
