function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
	return window[movieName]
  } else {
	return document[movieName]
  }
}
function movieIsLoaded (theMovie) {
  // First make sure the movie's defined.
  if (typeof(theMovie) != "undefined") {
	// If it is, check how much of it is loaded.
	return theMovie.PercentLoaded() == 100;
  } else {
	// If the movie isn't defined, it's not loaded.
	return false;
  }
}
function playmovieByID( video_id ) {
  if ( movieIsLoaded( thisMovie( 'diversionplayer' ) ) ) {
	  var today  = new Date();
		thisMovie( 'diversionplayer' ).SetVariable( 'watchMe', today.getTime() );
		thisMovie( 'diversionplayer' ).SetVariable( 'vidID', video_id );
		thisMovie( 'diversionplayer' ).SetVariable( 'showControls', "true" );
		
	  //(comments) in header
		right_col_container.reloadMessages( video_id );
  }
}
function diversionplayer_DoFSCommand( command, args ) {
	if ( command == "FSCommand:playNextVideo" || command == "playNextVideo" ) {
		playlist.playNextVideo( args );
	}
}
