//-------------------------------------------------------------------------------
// Checks for pasted Microsoft Word text and alerts user
    function fnIsNotMSText(obj) {
//      if(document.getElementById(obj).value.indexOf('mso-') >= 0 || document.getElementById(obj).value.indexOf('class=Mso') >= 0) {
//        alert('When pasting text from Microsoft Word, first paste the text into Notepad and then into the text editor.');
//        return false;
//      } else {
//          return true;
//        }
    }
//-------------------------------------------------------------------------------
// Highlights the line under the mouse cursor
    function fnShowLit(bol,obj) {
      obj.style.backgroundColor = bol ? '#505050' : '';
    }
//-------------------------------------------------------------------------------
// Highlights the video under the mouse cursor
    function fnVideoLit(obj,bol) {
      obj.style.backgroundColor = bol ? '#262626' : '';
      obj.style.cursor = bol ? 'pointer' : '';
    }
//-------------------------------------------------------------------------------
  function fnVideo(video) {
    var bolResizable = 'no';
    var bolScrollbars = 'no';

    var screenWidth = window.screen.availWidth;
    var screenHeight = window.screen.availHeight;

    var movieWidth = 640;
    var movieHeight = 480;

    var offsetXWinXP = 5;
    var offsetYWinXP = 18;

    var windowWidth = movieWidth;
    var windowHeight = movieHeight;

    var halfScreenWidth = Number(window.screen.availWidth / 2);
    var halfScreenHeight = Number(window.screen.availHeight / 2);

    var halfWindowWidth = Number(windowWidth / 2);
    var halfWindowHeight = Number(windowHeight / 2);

    var diffWidth = Number(halfScreenWidth - halfWindowWidth);
    var diffHeight = Number(halfScreenHeight - halfWindowHeight);

    diffWidth -= offsetXWinXP;
    diffHeight -= offsetYWinXP;
    
    var features = 'directories=no,location=no,menubar=no,resizable=' + bolResizable + ',scrollbars=' + bolScrollbars + ',status=no,toolbar=no,width=' + windowWidth + ',height=' + windowHeight + ',top=' + diffHeight + ',left=' + diffWidth;
    window.open('trophy_video/default.aspx?video=' + video, 'TrophyVideo', features);
  } //fnVideo
//-------------------------------------------------------------------------------
