var embedId = {jw:[],yt:[],dm:[]};function pauseVideos(vid){var players=Object.keys(embedId); players.forEach(function (key){var ids=embedId[key]; switch (key){case "jw": ids.forEach(function (id){if (id !=vid){var player = jwplayer(id); if(player.getState() === "playing"){player.pause();}}}); break; case "yt": ids.forEach(function (id){if (id !=vid){id.pauseVideo();}}); break;case "dm": ids.forEach(function (id){if (id !=vid && !id.paused){id.pause();}}); break;}});}var ytOnLoadFn=[];function onYouTubePlayerAPIReady(){ytOnLoadFn.forEach(function(name){window[name]();});}function onYTEmbedLoad(ytp){embedId.yt.push(ytp);ytp.addEventListener("onStateChange", function(event){if(event.data === YT.PlayerState.PLAYING)pauseVideos(ytp);});}function pause(){pauseVideos()}function ytuB2Ev7O3aLE(){var p = new YT.Player("div_uB2Ev7O3aLE", {height: document.getElementById("div_uB2Ev7O3aLE").offsetWidth * (9/16),width: document.getElementById("div_uB2Ev7O3aLE").offsetWidth,videoId: "uB2Ev7O3aLE"}); onYTEmbedLoad(p)} ytOnLoadFn.push("ytuB2Ev7O3aLE");if(NHCommand && NHCommand.getMainVideoId){document.getElementById(NHCommand.getMainVideoId()).style.display="none";}