/**
 * adds an product to the current session, thru ajax
 * witch return the complete markup for the new cart box.
 * @param {Object} productId
 */
function addToBasket(productId)
{
	var params 		= {
			'productId': 	productId
	};
	
	$.post(base_url + 'basket/add-to-basket/', params, replaceCartWithResponse);		
}

function replaceCartWithResponse(data)
{
	if (data)
	{
		$('#shopping-basket-box').find('.basket').html(data)
								 .end().show();
	}
}