function updateList(aElement, aFile)
{
	var aOptions = {method : 'post', parameters : Sortable.serialize(aElement) };
	
	new Ajax.Request(aFile, aOptions);
}

function initSortable()
{
	var option = 
	{
	onUpdate : function(){updateOrder('list','ajax/serialize.php');}
	}
	Sortable.create('list', option);	
}

function updateOrder(e, url)
{
	var qString = Sortable.serialize(e)  ;
	var option = 
	{
		method : 'post',
		parameters : qString,
		onComplete: function()
		{
			writeResponse('de volgorde is aangepast'); 
			success();
			refreshContent(new Array(3,4,6,'thumbHeader'));
		}
	};
	new Ajax.Request(url, option);
}

function overMove(e)
{
	e.style.backgroundColor = '#eeeeee';
	e.style.cursor='move';
}

function outMove(e)
{
	e.style.backgroundColor = '#ffffff';	
}


