X - 200 + "px";
      } else {
        menu.style.left = e.offsetX + "px";
      }
      if (e.offsetY + 150 > self.player.offsetHeight) {
        menu.style.top = e.offsetY - 150 + "px";
      } else {
        menu.style.top = e.offsetY + "px";
      }

      menu.style.display = "block";
    }

    e.preventDefault();
    return false;
  }

  if (playButton) {
    playButton.addEventListener('contextmenu', showContextMenu);
  }
  this.player.addEventListener('contextmenu', showContextMenu);

  player.addE