var YouTubeTable = {
   addItem: function(YouTubeId, YouTubeThumbSrc, YouTubeTitle, YouTubeDescription){
    if ($('tr_'+YouTubeId) != undefined) return;
    var tr = new Element('tr');
    tr.id = 'tr_'+YouTubeId;
    var td = new Element('td');
    var img = new Element('img', {'src': YouTubeThumbSrc});
    td.appendChild(img);
    tr.appendChild(td);
    td = new Element('td').update(YouTubeTitle);
    tr.appendChild(td);
    td = new Element('td').update(YouTubeDescription);
    tr.appendChild(td);
    td = new Element('td');
    var a = new Element('a', {'onclick': 'xajax_removeListItem('+YouTubeId+')'}).update('remove');
    td.appendChild(a);
    tr.appendChild(td);
    $('youtubeListBody').appendChild(tr);
  }, 
  removeItem: function(YouTubeId){
    $('tr_'+YouTubeId).remove();
  }
}
