document.observe('dom:loaded', function()
{
	if ($('sort'))
	{
		Sortable.create
		(
			"sort",
			{
				handles: $$(".handle"),
				onUpdate: function() 
				{
					new Ajax.Request(RELATIVE_ROOT+"?controller=front&action=sort", 
					{
						method: "post",
						parameters: { data: Sortable.serialize("sort") }
					});
				}
			}
		);
	}
	
});

