!function(t,e,s){function i(t){return/youtu\.be/.test(t)?t.split("youtu.be/")[1].split("?")[0].split("&")[0].split("#")[0]:/youtube\.com\/v\//.test(t)?t.split("youtube.com/v/")[1].split("?")[0].split("&")[0].split("#")[0]:/youtube\.com\/embed\//.test(t)?t.split("youtube.com/embed/")[1].split("?")[0].split("&")[0].split("#")[0]:!!/youtube.com|youtuberepeater.com|listenonrepeat.com/.test(t)&&t.split("v=")[1].split("&")[0].split("#")[0]}function n(t,e,s){var i=JSON.stringify({event:"command",func:e,args:s||[]});-1!==t.src.indexOf("youtube.com/embed")&&t.contentWindow.postMessage(i,"*")}function o(e,i,o){function p(){n(C[0],"playVideo"),f()}function f(){v.stop().fadeIn("fast"),h.stop().fadeIn("fast")}function m(){v.stop().fadeOut("fast"),h.stop().fadeOut("fast",function(){null===i&&e.open&&(v.remove(),h.remove())})}var h=t(s.createElement("DIV")).addClass(e.cssClass).css(c),v=t(s.createElement("DIV")).addClass(e.cssClass+e.overlayCssClass).css(r),y=t(s.createElement("BUTTON")).addClass(e.cssClass+e.closeCssClass).html(e.closeText),C=t(s.createElement("IFRAME")).addClass(e.cssClass+e.iframeCssClass).attr({src:l+o+d}).css(u);h.append(C).append(y),t("body").append(v).append(h),e.open&&C.on("load",function(){p()}),null!==i&&i.on("click",function(t){t.preventDefault(),p()}),y.add(v).on("click",function(t){t.preventDefault(),n(C[0],"pauseVideo"),m()}),a.on("resize",function(){var t=a.width()-e.minPaddingX,s=a.height()-e.minPaddingY,i=t/s,n=e.ratio;i>n?(h.height(s),h.width(s*n)):(h.width(t),h.height(t/n)),h.css("left",(a.width()-h.width())/2),h.css("top",(a.height()-h.height())/2)}).trigger("resize")}var a=t(e),l="https://www.youtube.com/embed/",d="?enablejsapi=1",c={display:"none",position:"fixed"},u={width:"100%",height:"100%"},r={display:"none",position:"fixed",top:0,left:0,width:"100%",height:"100%"},p={minPaddingX:50,minPaddingY:50,ratio:16/9,cssClass:"yu2fvl",overlayCssClass:"-overlay",iframeCssClass:"-iframe",closeCssClass:"-close",closeText:"X",open:!1,vid:!1};t.yu2fvl=function(e){var s=t.extend({},p,e);if(!1===s.vid)throw"YOU MUST SET THE 'vid' option";o(s,null,s.vid)},t.fn.yu2fvl=function(e){var s=t.extend({},p,e);return!1!==s.vid?(o(s,this,s.vid),this):this.each(function(){var e=t(this),n=i(e.attr("href"));o(s,e,n)})},t(".play-1").yu2fvl(),t(".yu2fvl iframe").attr("src",function(t,e){return e+"&rel=0"})}(jQuery,window,document);