var Shopping_Cart = Class.create();
Shopping_Cart.prototype = {
	initialize: function() {
		this.drags = [];
	},
	addDrop: function(drop_id) {
		Droppables.add(drop_id, { 
			accept: 'product-display',
			hoverclass: 'add-product',
			onDrop: this.handleDrop.bindAsEventListener()
		});
	},
	addDrags: function(css_selector) {
		$$(css_selector).each(function(item) {
			item.addClassName('product-display');
			this.drags.push(new Draggable(item.identify(), { 
				ghosting: true,
				revert: true
			}));
		}.bind(this));
	},
	handleDrop: function(draggable, droppable, event) {
		var product = draggable.readAttribute('data-productid');
		if(product == null) {
			return;
		}
	}
};