<!--
function RegisterEventObservers() { 
    var plugin = document.MediaPlayer;
    document.appObs.setByProxyDSNewStreamObserver(plugin, true); 
    troca();
    numero = numero - 1;
}
function OnDSNewStreamEvt(oldstate, newstate) {
    setTimeout('troca();',1000);
}         
function Play() {
    document.MediaPlayer.Play();
}
function Stop(){
    numero = 1;
    document.MediaPlayer.Stop();
    if (navigator.appName.indexOf('Netscape') != -1) {
        document.MediaPlayer.SetCurrentPosition(0);
    } else {
        document.MediaPlayer.CurrentPosition = 0;
    }
}
function Pause() {
    if (navigator.appName.indexOf('Netscape') != -1) {
        estado=document.MediaPlayer.GetPlayState();
    } else {
        estado=document.MediaPlayer.PlayState;
    }
    if (estado==1) {
        document.MediaPlayer.Play();
    } else if (estado==2) {
        document.MediaPlayer.Pause();
    }
}
function Avanca() {
    document.MediaPlayer.Next();
}
function Volta() {
    numero = numero - 2;
    document.MediaPlayer.Previous();
}
function Aumenta() {
    if (document.MediaPlayer.Volume <= -300) {
        document.MediaPlayer.Volume = document.MediaPlayer.Volume + 300;
    }
}
function Abaixa() {
    if (document.MediaPlayer.Volume >= -8000) {
        document.MediaPlayer.Volume = document.MediaPlayer.Volume - 300;
    }
}
//-->