var $youtubeBGVideos={};function _fbRowGetAllElementsWithAttribute(e){var t,i,a=[],o=document.getElementsByTagName("*");for(t=0,i=o.length;t=a.getDuration()&&(a.pauseVideo(),a.seekTo(0),a.playVideo(),d=!1)},150))}function _fbRowOnPlayerStateChange(e){e.data===YT.PlayerState.ENDED?(void 0!==e.target.loopTimeout&&clearTimeout(e.target.loopTimeout),0!==jQuery("[data-youtube-video-id="+e.target.getVideoData().video_id+"]").data("loop")&&e.target.seekTo(0)):e.data===YT.PlayerState.PLAYING&&jQuery(e.target.getIframe()).parent().css("opacity","1")}function resizeVideo(e){var t,i,a,o,d,n,s,r,u,f,v,l,c,y,m=e.parent();m.find("iframe").hasClass("fusion-hidden")&&m.find("iframe").attr("data-privacy-src")||(null!==m.find("iframe").width()?((t=e).css({width:"auto",height:"auto",left:"auto",top:"auto"}),t.css("position","absolute"),c=m.find("> div").data("display"),m.find("iframe").width(),m.find("iframe").height(),i=m.width(),a=m.height(),o=parseInt(m.css("padding-left"),10),d=parseInt(m.css("padding-right"),10),1<=jQuery(".width-100").length&&(0=a&&(u=a,f=r[0]/r[1]*a),f>=i&&(f=i,u=r[1]/r[0]*i)):n>=i&&s>=a?(u=a,f=r[0]/r[1]*a):(f=i,u=i*r[1]/r[0]),1<=jQuery(".width-100").length&&(0m.find(".fusion-video-cover").length&&m.find("iframe").parent().prepend('
 
'),m.is(":visible")&&(m.find(".fusion-video-cover").css({"z-index":0,width:f,height:u,position:"absolute"}),y="iframe",m.hasClass("video-background")&&(y="iframe.fusion-container-video-bg"),m.find(y).parent().css({marginLeft:l,marginTop:v}),m.find(y).css({width:f,height:u,"z-index":-1}))):setTimeout(function(){resizeVideo(e)},500))}if(Number(fusionVideoBgVars.status_yt))var onYouTubeIframeAPIReady=function(){var e,t,i,a,o,d=_fbRowGetAllElementsWithAttribute("data-youtube-video-id");if("function"!=typeof fusionGetConsent||fusionGetConsent("youtube"))for(e=0;e iframe, iframe[data-privacy-type="vimeo"]')).length,o=0;o