// Flash Video player and video elements like VOD Barker or video browser communication file.
// VideoPlayerCommunicationJS.js
// 17 February 2009 - Philip Bedi - Emojo - T-17696 - Top 50 Call Centres > Windows Media Auto-plays, even though auto-play is not selected on either Video Browser or TV Player - fixed some minor things, still it is not fixed.


// Function to trigger load command in flash video player
function LoadCommand()
{
	try
	{
		FlashPlayerMovie("VidPlayerFullScreen").playerCommand("LOAD");
	}
	catch(e){}
}

// Function to get the movie
function FlashPlayerMovie(movieName) 
{
	if (navigator.appName.indexOf("Microsoft") != -1) 
	{
		FlashPlayerMovieObject = document.getElementById(movieName);
		return FlashPlayerMovieObject;
	} 
	else 
	{
		FlashPlayerMovieObject = document[movieName];
		return FlashPlayerMovieObject;
	}
}

// Function to check if javascript is ready to communicate with browser
function isFlashPlayerReady() {
	return true;
}