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