function PlayFlashVideo(videoUrl, videoTitle, thumbnail, author, duration, views, description)
{
  var player = document.getElementById('flashvideoplayer');
  var obj = {type:"flv",file:unescape(videoUrl),title:videoTitle};
  player.sendEvent('LOAD',obj);
  player.sendEvent('PLAY');
  UpdateEPGinfo(videoTitle, thumbnail, author, duration, views, description)
}

function UpdateEPGinfo(title, thumbnail, author, duration, views, description)
{
  var epgVideoTitle = document.getElementById('epgVideoTitle');
  var epgVideoThumbnail = document.getElementById('epgVideoThumbnail');
  var epgVideoAuthor = document.getElementById('epgVideoAuthor');
  var epgVideoDuration = document.getElementById('epgVideoDuration');
  var epgVideoViews = document.getElementById('epgVideoViews');
  var epgVideoDescription = document.getElementById('epgVideoDescription');

  if (epgVideoTitle != null) epgVideoTitle.innerHTML = title;
  if ((epgVideoThumbnail != null) && (thumbnail != '')) epgVideoThumbnail.innerHTML = '<img src="' + thumbnail + '"/>';
  if (epgVideoAuthor != null) epgVideoAuthor.innerHTML = author;
  if (epgVideoDuration != null) epgVideoDuration.innerHTML = duration;
  if (epgVideoViews != null) epgVideoViews.innerHTML = "Views: " + views;  
  if (epgVideoDescription != null) epgVideoDescription.innerHTML = description;
}

