anchor.diff:  		});
   		return s;
   	};
  +	
   
  -	function dragAndDrop(event){
  -			//Get dragged object 
  -			var dragged = document.elementFromPoint(event.clientX,event.clientY);
  -			dragged = $(dragged).closest(".overlay .box-item");
  -			//Get whatever is behind
  -			dragged.hide();
  -			var pre_rec = document.elementFromPoint(event.clientX,event.clientY);
  -			dragged.show();
  -			var receiver = $(pre_rec).closest(".overlay .box-item");
  -			
  -			//if dragged onto another object
  -			if (receiver.length != 0){
  -				if (receiver.hasClass("categorie-item")){
  -					var dragged_id = dragged.attr("edit-id");
  -					var receiver_id = receiver.attr("edit-id");
  -					if(dragged_id != receiver_id){
  -						movements_array.push([dragged_id,receiver_id]);
  -						dragged.fadeOut();
  -						dragged.remove();
  -					}
  -				//ajax petition
  -				}
  -			}
  -
  -			//if dragged into the bin
  -			receiver = $(pre_rec).closest(".overlay .delete");
  -			if (receiver.length != 0){
  -				//checkbox to confirm erasing
  -				var conf_erased = confirm("<%=t('categories.dragandrop.confirm')%>");
  -				if(conf_erased){
  -					var dragged_id = dragged.attr("edit-id");
  -					movements_array.push([dragged_id,"-1"]);
  +	function apply_droppable_to_elem(elem){
  +		elem.droppable({
  +		    drop: function( event, ui ) {
  +		        var dragged = ui.draggable;
  +		        var dragged_id = dragged.attr("edit-id");
  +				var receiver_id = $(this).attr("edit-id");
  +				console.log("receiver_id: " + receiver_id + " y drageed_id: " + dragged_id);				
  +				if(dragged_id != receiver_id){
  +					movements_array.push([dragged_id,receiver_id]);
   					dragged.fadeOut();
   					dragged.remove();
  -				}//do nothing if not confirmed
  -				else{return;}
  -
  -			}
  -			$(".delete p").text("<%=t('categories.dragandrop.trash')%>");	
  -		};
  +				}
  +		    },
  +		    activeClass: "category_active",
  +		});
  +	};
   
   	function prepare_sort_category(){
   		//Array where placed all actions
  
positive.code: 				 }
  				 $(ui.item).width($(ui.item).width()*0.8);
  				 $(ui.item).height($(ui.item).height()*0.8);
  
  			},
  			tolerance: "intersect"
  		}).disableSelection();
  	
  
  		//Handler Dropping
  		$( ".edit_categories .box-item" ).mouseup(dragAndDrop);		
  	};
  
  
  
negative.code: 				movements_array = [];
  				$(".edit_categories .box-item").remove();
  				beginObjects.appendTo(".edit_categories");
  				apply_droppable_to_elem($(".edit_categories .categorie-item"));
  				//$( ".edit_categories .box-item" ).mouseup(dragAndDrop);	
  				$(".overlay .edit_categories .box-item").click(function(){return false;});
  			});
  		});
  		
  		$(".overlay .edit_categories .box-item").click(function(){
  			console.log("click en overlay");
  			return false;
  		});
  
  		$(".edit_categories").sortable({
  			start:function(event,ui){
  