// JavaScript Document
<!--
function RegisterEventObservers() 
{ 
    var plugin = document.WMPlay;
    document.appObs.setByProxyDSNewStreamObserver(plugin, true); 
    troca();
    numero = numero - 1;
}
function OnDSNewStreamEvt(oldstate, newstate)
{
    setTimeout('troca();',1000);
}         
function PlayClick()
{
    document.WMPlay.Play();
}
function StopClick()
{
    numero = 1;
    document.WMPlay.Stop();
    if (navigator.appName.indexOf('Netscape') != -1) {
        document.WMPlay.SetCurrentPosition(0);
    } else {
        document.WMPlay.CurrentPosition = 0;
    }
}
function PauseClick()
{
    if (navigator.appName.indexOf('Netscape') != -1) {
        estado=document.WMPlay.GetPlayState();
    } else {
        estado=document.WMPlay.PlayState;
    }

    if (estado==1) {
        document.WMPlay.Play();
    } else if (estado==2) {
        document.WMPlay.Pause();
    }
}
function FowardClick()
{
    document.WMPlay.Next();
}
function BackClick()
{
    numero = numero - 2;
    document.WMPlay.Previous();
}
function UpVolumeClick()
{
    if (document.WMPlay.Volume <= -300) {
        document.WMPlay.Volume = document.WMPlay.Volume + 300;
    }
}
function DownVolumeClick()
{
    if (document.WMPlay.Volume >= -8000) {
        document.WMPlay.Volume = document.WMPlay.Volume - 300;
    }
}
//-->

