window.addEvent('domready', function(){
			var drop = $('cart');

			var dropFx = drop.effect('background-color', {wait: false}); // wait is needed so that to toggle the effect,
			
			$$('.item').each(function(item){
			
				item.addEvent('mousedown', function(e) {
					e = new Event(e).stop();
			
					var clone = this.clone()
						.setStyles(this.getCoordinates()) // this returns an object with left/top/bottom/right, so its perfect
						.setStyles({'opacity': 0.7, 'position': 'absolute'})
						.addEvent('emptydrop', function() {
							this.remove();
							drop.removeEvents();
						}).inject(document.body);
			
					drop.addEvents({
						'drop': function() {
							drop.removeEvents();
							clone.remove();
document.getElementById('zwspeicher').value=item.id;
var Obj1=createRequestObject2();
sendReq2(Obj1, 'cart_out_1', 'innerHTML', 'http://www.boodi.de/ajax/handle_cart.php?cart=1', 'query', 'zwspeicher');
			go();
							dropFx.start('7389AE').chain(dropFx.start.pass('E6EEF7', dropFx));
					
						},
						'over': function() {
							dropFx.start('98B5C1');
						},
						'leave': function() {
							dropFx.start('E6EEF7');
						
						}
					});

					var drag = clone.makeDraggable({
						droppables: [drop]
					}); // this returns the dragged element

  				drag.start(e); // start the event manual
				});
			
			});
		}); 