var playerRef;

// pops window with video player
// vPath.....url to video src
// vWidth....video width
// vHeight...video height
// vName.....name of video
// vFormat...video format
function openHdPlayer(vPath, vWidth, vHeight, vName, vFormat) {
  vHeight = parseInt(vHeight) + 40;
  if (playerRef != null && !playerRef.closed) {
    playerRef.close();
  }
  if (playerRef = window.open('assets/hdplayer.html?w=' + vWidth + '&h=' + vHeight + '&vid=' + escape(vPath) + '&n=' + escape(vName) + '&f=' + escape(vFormat), 'hdPlayer', 'width=' + vWidth + ',height=' + vHeight + ',resizable=no,scrollbars=no,menubar=no,toolbar=no,location=no,statusbar=no')) playerRef.focus();  
}