anchor.diff:        },
   
         //Deletes a selected element from a media field
  +      //and returns current position before removing it
         delete_element: function(field, counter, unique_id){
           var parent = $('media_selector_'+ counter).select(".element_"+unique_id).first();
  +        var position = parent.select(".position").first().value;
           parent.remove();
           this.fields[counter]['size']--;
           this.reload(field, counter);
  +        return position;
         },
   
         //Hides or show 'add' and 'search' links (and inner content)
  
positive.code:           "</dd>"+
            "</dl>"+
            "</li>")
          $('media_selector_'+ counter).select(".relations_list").first().insert(templ.evaluate({
            counter: counter,
            field: field,
            id: id,
  
negative.code:         var templ = new Template(
          "<li class='element element_#{unique_id}'>"+
            "<input type='hidden' name='#{field_name}[#{field}_ids][#{unique_id}][id]' value='#{id}' />"+
            "<input type='hidden' class='position' name='#{field_name}[#{field}_ids][#{unique_id}][position]' value='' />"+
            "<a class='handle'>handle</a>"+
            "<h4>#{asset_name}</h4>" +
            "<img src='#{thumb}' alt='#{asset_name}'/>" +
  