var g_Browser = navigator.appName;

function controlType (setting)
{
    if (g_Browser == "Netscape")
      	document.WMPlay.SetShowControls(setting);
    else
        document.WMPlay.ShowControls = setting;

}   /* end controlType() */


function displaySize (setting)
{
    if (g_Browser == "Netscape")
        document.WMPlay.SetDisplaySize(setting);
    else
	    alert ("Stai per passare alla modalità FULLSCREEN.  Per tornare alla modalità normale premi il tasto ESC   ");
        document.WMPlay.DisplaySize = setting;

}   /* end displaySize() */


function PlayClick ()
{
    document.WMPlay.Play();

}   /* end PlayClick() */


function StopClick ()
{
    document.WMPlay.Stop();
    
    if (g_Browser == "Netscape")
        document.WMPlay.SetCurrentPosition(0);
    else
        document.WMPlay.CurrentPosition = 0;

}   /* end StopClick() */


function PauseClick ()
{
    document.WMPlay.Pause();

}   /* end PauseClick() */

function PlayStopClick ()
{
    var state;
    
    if (g_Browser == "Netscape")
        state = document.WMPlay.GetPlayState();
    else
        state = document.WMPlay.PlayState;
		
   if (state == 0) {
        document.WMPlay.Play();
        document.myform.PlayStop.value = "   Stop   ";
    } else if (state == 2) {
        document.WMPlay.Stop();
        document.myform.PlayStop.value = "   Play   ";
    } else if (state == 6) {
        return false;
    }

}   /* end PlayStopClick() */
