<!--

/* FUNCTIONS USED IN QT PLAYER CONTROLS */

function isPlaying(anObj)
{
	if(anObj.GetRate() != 0)
		return "true";
	else
		return "false";
}

function isStopped(anObj)
{
	if(anObj.GetRate() != 0)
		return "false";
	else
		return "true";
}

/* a javascript function that takes a QT movie and calls its "Reverse" method */
function ReverseIt(anObj)
{
	anObj.Step(-1);
}

/* a javascript function that takes a QT movie and calls its "Forward" method */
function ForwardIt(anObj)
{
	anObj.Step(1);
}

function playFrameFwd(anObj, rate)
{
	anObj.Play();
	anObj.SetRate(rate);
	
}

function playFromPosition(anObj, destFrame)
{
	anObj.SetTime(destFrame * anObj.GetTimeScale());
	anObj.Play();
}

function setMediaPosition(anObj, destFrame)
{
	anObj.SetTime(destFrame);
}

function getMediaPosition(anObj)
{
	//return Unit time
	return anObj.GetTime();
}

function getMediaDuration(anObj)
{
	return 	anObj.GetDuration();
}

function getMediaCurrTime(anObj) 
{
	var currTime = 0;
	
	currTime = (anObj.GetTime() / anObj.GetTimeScale());
	
	return currTime;
}

function getMediaEndTime(anObj) 
{
	var endTime = 0;
	
	endTime = (anObj.GetDuration() / anObj.GetTimeScale());
	
	return endTime;
}

 /* a javascript function that takes a QT movie and calls its "Play" method */
function startPlayer(anObj)
{
	anObj.Play();
}
/* a javascript function that takes a QT movie and calls its "Stop" method */
function stopPlayer(anObj)
{
	anObj.Stop();
}

-->