/* ----------------------------------------------------------------------------------------
File Name: MediaPlayerFunctions2.js

This file is called when a sound file is ready in MediaPlayer2. 
It calls relevant functions, if necessary. 
	
	Written By:  Yonit Rusho
	Date:	     08 June 2003

 ----------------------------------------------------------------------------------------*/
//This page receives lResult: The ReadyState.


//-------------- ReadyStateChange -----------------------------------------------
//var UNINITIALIZED = 0
//var LOADING		= 1
var INTERACTIVE		= 3
var COMPLETE		= 4

// a ReadyStateChange event was fired.  Check which Status the MediaPlayer is now in.
if(lResult == COMPLETE && document.all.MediaPlayer2.Duration > 0)//ReadyState == INTERACTIVE  || 
{
	fileLength = document.all.MediaPlayer2.Duration * 1000;
	//alert("fileLength: " + fileLength + "\n" + "fileName: " + document.all.MediaPlayer2.fileName)
	StartRecord2(fileLength)
}




