Lastfm.Track = function (a, placebutton, flp) {
  //{{{ overrides
  this.swfwidth = 160;
  this.swfheight = 48;
  this.flp = flp;
  this.swf = 'playbutton_smallest.swf';

  this.stopped = function() {
    this.close();
  }
  this.finished = function() {
    this.close();
  }
  this.started = function() {
    this.infoBox.style.display = 'inline';
    Lastfm.Insertion.inside(this.swfCode, this.infoBox);
  }
  this.playing = function() {
  }
  this.buffering = function() {
  }
  this.init = function() {
    
  }
  this.closed = function() {
    this.infoBox.style.display = 'none';
    Lastfm.Insertion.inside('', this.infoBox);
  }
  //}}}
  this.Resource(Lastfm.RES_TRACK, a, placebutton);
}
//}}}
//{{{ Artist
Lastfm.Artist = function (a, placebutton) {
  //{{{ overrides
  this.swfwidth = 225;
  this.swfheight = 74;
  this.swf = 'playalbum.swf';

  this.stopped = function() {
  }
  this.finished = function() {
    Lastfm.Insertion.inside('', this.infoBox);
    this.infoBox.style.display = 'none';
  }
  this.started = function() {
    Lastfm.Insertion.inside(this.swfCode, this.infoBox);
    this.infoBox.style.display = 'inline';
  }
  this.playing = function() {
  }
  this.buffering = function() {
  }
  this.init = function() {
  }
  this.closed = function() {
    Lastfm.Insertion.inside('', this.infoBox);
    this.infoBox.style.display = 'none';
  }
  //}}}
  this.Resource(Lastfm.RES_ARTIST, a, placebutton);
}
//}}}

Lastfm.Resource.extend(Lastfm.Track);
Lastfm.Resource.extend(Lastfm.Artist);


