var bControl; 
if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
	bControl = true;
} else {
	var plugIn = document.MediaPlayer;
	bControl = false;
	   // The following line of code registers the PlayStateChange event
	   // in the appObs applet, so that when a PlayStateChange event occurs,
	   // the appObs Applet sends the appropriate callback method.
	document.appObs.setByProxyDSPlayStateChangeObserver(plugIn,true);
}

var currentsize="small";
var f="8417";

function StopClick()
{	document.MediaPlayer.Stop(); 
	if (bControl == true)
		document.MediaPlayer.CurrentPosition=0;
	else
		document.MediaPlayer.SetCurrentPosition(0);
}

function PlayClick() {
	document.MediaPlayer.Play();
}


function zoom()
{  if (currentsize=="small")
   {  currentsize="large";
      window.location.href="default.asp?csize=large&fid=";
   }
   else
   {  currentsize="small";
      window.location.href="default.asp?csize=small&fid=";
   }
}

function PauseClick()
{	
	if (bControl == true)
	{	if (document.MediaPlayer.PlayState == 2)
			document.MediaPlayer.Pause();
	}else
	{	if (document.MediaPlayer.GetPlayState() == 2)
			document.MediaPlayer.Pause();
  	}
}

function selvalue(objSelect)
{
	var i=objSelect.selectedIndex;
	n=objSelect.options[i].value;
	return n;
}

var abc=null;
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.name = 'original';
  abc = window.open(theURL,winName,features); 
  abc.focus();  
}


function click_video(file, object, msg) {
  MediaPlayer.Filename=file;
  object.innerHTML=msg;
  
}
 