/**
 * All functions enhancing the user interface (drag n´ drop,...)
 *  
 */
 
function makeDraggable(element)
{
    new Draggable(element, {revert: true, ghosting: true });
}      

function itemDropped(element)
{
    new Ajax.Updater('basketbox', basePath + 'basket/ajax_entries/' + element.id, {
      method: 'get'
    });        
}

function changeImage(id, img_old, img_new)
{
    src = $(id).src;
    $(id).src = src.replace(img_old, img_new);
}
