var movableElements = new Array();

function initDragAndDrop(){	
	var toMoveElements = document.getElementsByClassName("toMove");
	//Get the list of movable objects.
	for (var i=0;i<toMoveElements.length;++i){
		movableElements[i] = toMoveElements[i];
	}
	// Make all the items dragable by creating Draggable objects
	drag();
}
function drag() {
	movableElements.each(
		function(item) {
			new Draggable(item, {}); //Scriptaculous function.
		}
	);
}
