
<!--

function play(){
	if (navigator.appName == "Netscape"){
		if (document.YraPlayer.GetReadyState() > 3){
			document.YraPlayer.Play();
		}
	} else{
		if (document.YraPlayer.ReadyState > 3){
			document.YraPlayer.Play();
		}
	}
}

function pause(){
	if (navigator.appName == "Netscape"){
		if (document.YraPlayer.GetPlayState() == 2){
			document.YraPlayer.Pause();
		}
	}
	else{
		if (document.YraPlayer.PlayState == 2){
			document.YraPlayer.Pause();
		}
	}
}

function stop(){
	if (navigator.appName == "Netscape"){
		if (document.YraPlayer.GetPlayState() == 2 || document.YraPlayer.GetPlayState() == 4){
			document.YraPlayer.Stop();
			document.YraPlayer.SetCurrentPosition(0);
		}
	}
	else{
		if (document.YraPlayer.PlayState == 2 || document.YraPlayer.PlayState == 4){
			document.YraPlayer.Stop();
			document.YraPlayer.CurrentPosition=0;
		}
	}
}

function showFullScreen(){
	if (navigator.appName == "Netscape"){
		document.YraPlayer.SetDisplaySize(3);
	} else {
		document.YraPlayer.DisplaySize = 3;
		document.YraPlayer.Play();
	}
}

function theMovieMediaPlayer(MovieStillImage,movieToPlay,movWidth,movHeight){
	playerOutput='<OBJECT ID="NSPlay" WIDTH=1 HEIGHT=1 classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="#Version=6,4,5,715"></object>'
	playerOutput+='<OBJECT ID="YraPlayer" WIDTH='+movWidth+' HEIGHT='+movHeight+' align="center" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft® Windows® Media Player components..." type="application/x-oleobject">'
	playerOutput+='<PARAM NAME=FileName VALUE=' + movieToPlay + '>'
	playerOutput+='<PARAM NAME=AutoStart VALUE=True>'
	playerOutput+='<PARAM NAME=TransparentAtStart VALUE=False>'
	playerOutput+='<PARAM NAME=ShowControls VALUE=1>'
	playerOutput+='<PARAM NAME=AllowChangeDisplaySize VALUE=True>'
	playerOutput+='<PARAM NAME=DisplaySize VALUE=0>'
	playerOutput+='<PARAM NAME=ShowDisplay VALUE=False>'
	playerOutput+='<PARAM NAME=ShowStatusBar VALUE=True>'
	playerOutput+='<PARAM NAME=AutoSize VALUE=0>'
	playerOutput+='<PARAM NAME=AnimationAtStart VALUE=False>'
	playerOutput+='<PARAM NAME=EnableFullScreenControls VALUE=False>'
	playerOutput+='<Embed type=application/x-mplayer2 align=center pluginspage=http://www.microsoft.com/windows/windowsmedia/download/default.asp Name=YraPlayer SRC=' + movieToPlay + ' AutoStart=1 TransparentAtStart=FALSE ShowControls=0 AllowChangeDisplaySize=True DisplaySize=0 showDisplay=0 ShowStatusBar=1 AutoSize=0 AnimationAtStart=0 EnableFullScreenControls=0 WIDTH='+movWidth+' HEIGHT='+movHeight+'>'
	playerOutput+='</embed>'
	playerOutput+='</OBJECT>'

	document.write(playerOutput)
}
//-->
