function clearDragDrop()
{
	Sortable.destroy("col1");
	Sortable.destroy("col2");
	Sortable.destroy("col3");
}

function initializeDragDrop()
{
	var opts = {
				 	dropOnEmpty:true,
				 	tag:'div',
					containment:['col1','col2','col3'],
					constraint:false, 
					ghosting: false, 
					onUpdate: onBoxMove
				};
	
	Sortable.create("col1",opts);
  	Sortable.create("col2",opts);
   	Sortable.create("col3",opts);  
	
}

function onBoxMove(element)
{
	resetCookie();
}

function resetToDefaults()
{
	eraseCookie("boxes");
	eraseCookie("state");
	history.go(0);
}


function recicle(id)
{
	var id = id;
	clearDragDrop();
	state.addMessage(1,id);
	initializeDragDrop();
	refreshMenu(state);
	state.makeVisible();
	resetCookie();
}

