<!--
function handlePlayOrPauseClick(){
  var state;
  playerStatus = document.mediaPlayer.playState;
  if (playerStatus == 0) {
    document.mediaPlayer.play();
//    document.playerCtrl.playOrPause.value = " Pause ";
  } 
  else if (playerStatus == 1) {
    document.mediaPlayer.play();
//    document.playerCtrl.playOrPause.value = " Pause ";
  } 
  else if (playerStatus == 2) {
    document.mediaPlayer.pause();
//    document.playerCtrl.playOrPause.value = " Play  ";
  }

} 

function handleControlsOnOffClick() {
  if (document.mediaPlayer.showControls == true) {
    document.mediaPlayer.showControls = false;
    document.playerCtrl.controls.value = "  Show Controls ";
  }
  else {
    document.mediaPlayer.showControls = true;
    document.playerCtrl.controls.value = "  Hide Controls "
  }
}

function changeSize(newSize) {
  document.mediaPlayer.displaySize = newSize;
}

function changeFileName(newFile) {
  document.mediaPlayer.fileName = newFile;
 document.mediaPlayer.play();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function goFullscreen() {
newWin = window.open('../fullscreenalert.html', 'newWin', 'toolbar=no,location=no,scrollbar=no,status=no,height=100,width=400');
setTimeout('newWin.close()', 2000)
setTimeout('document.mediaPlayer.displaySize = 3', 3000)
}

function goFullscreen2(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
setTimeout('win.close()', 3000)
setTimeout('document.mediaPlayer.displaySize = 3', 4000)
}


//-->
                                                                                                                                                                                                                                                                                                                                                           