function API_play(n) {
   if (document.all(this.id).HasError) {
      alert("MediaPlayer Alert: "  + document.all(this.id).ErrorDescription);
   } else {
      document.all(this.id).settings.playCount = n;
      document.all(this.id).controls.play();
   }
}

function API_stop() {
   document.all(this.id).controls.stop();
}

function API_pause() {
   document.all(this.id).controls.pause();
}

function API_rewind() {
   document.all(this.id).controls.stop();
   document.all(this.id).controls.currentPosition = 0;
}

function API_load(URL) {
   document.all(this.id).URL = URL;
}
