(function(B){B.publish("espn.skirmish.load");B(".video-play").click(function(){var E=B.parseUri(B(this).attr("href")).queryKey.id||null;var D=B("a.video-play").metadata();B("div#top-stories").find(".mod-container").find(".mod-content").addClass("video-playing");B(".videoplayer").addClass("videoplayer-show");setTimeout(function(){B.playVideo(E,D,true);},2000);setTimeout(function(){C();},250);return false;});var A=function(){if(typeof (com)!=="undefined"&&typeof (com.espn)!=="undefined"&&typeof (com.espn.utils)!=="undefined"&&typeof (com.espn.utils.PlayerCommands)!=="undefined"){window.com.espn.utils.PlayerCommands.mpfVideoPause();}};var C=function(){if(typeof (com)!=="undefined"&&typeof (com.espn)!=="undefined"&&typeof (com.espn.utils)!=="undefined"&&typeof (com.espn.utils.PlayerCommands)!=="undefined"){var D='<a href="#" class="btn-close-video">X</a>';B(".videoplayer-show").append(D);B(".btn-close-video").click(function(){A();B(".videoplayer").removeClass("videoplayer-show");B("div#top-stories").find(".mod-container").find(".mod-content").removeClass("video-playing");return false;});}else{setTimeout(function(){C();},250);}};})(jQuery);