function onYouTubeIframeAPIReady(){$(".yPlayer").each(function(n,t){var i=$(t).attr("id"),r=new YT.Player(i,{videoId:i,host:"https://www.youtube-nocookie.com",playerVars:{autoplay:0,rel:0,showinfo:0,autohide:1,controls:1,modestBranding:1},events:{onReady:onPlayerReady,onStateChange:onPlayerStateChange,onError:onPlayerError}});players.push(r)});$(".start-video").on("click",function(){var i=$(this).data("id"),n,t;for($(this).fadeOut("normal"),n=0;players.length>n;n++)t=players[n],$(t.m).attr("id")===i&&t.playVideo()});$(".start-video").keypress(function(n){var u=n.keyCode?n.keyCode:n.which,i,t,r;if(u=="13")for(i=$(this).data("id"),$(this).fadeOut("normal"),t=0;players.length>t;t++)r=players[t],$(r.m).attr("id")===i&&(r.playVideo(),$("#"+i).attr("tabindex","0"))})}function onPlayerReady(){}function onPlayerStateChange(n){var t=$(n.target.m).attr("id"),i=$("#button-"+t);n.data===YT.PlayerState.PLAYING&&i.fadeOut("normal");n.data===YT.PlayerState.ENDED&&(i.fadeIn("normal"),$("#"+t).attr("tabindex","-1"));n.data===YT.PlayerState.PAUSED&&(i.fadeIn("normal"),$("#"+t).attr("tabindex","-1"))}function onPlayerError(n){var t=n.target.f.id;$("#button-"+t).fadeOut("normal")}var tag=document.createElement("script"),firstScriptTag,players,done;tag.src="https://www.youtube.com/iframe_api";firstScriptTag=document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);players=[];done=!1