function insertParam(a,b,c,d){var e,f,g,h,i,j,k,l;if(0 iframe").each(function(){new Vimeo.Player(jQuery(this)[0]).pause()}),0!==a.slides.eq(a.currentSlide).find("[data-vimeo-video-id] > iframe").length&&("yes"===jQuery(a.slides.eq(a.currentSlide)).data("autoplay")&&new Vimeo.Player(a.slides.eq(a.currentSlide).find("iframe")[0]).play(),"yes"===jQuery(a.slides.eq(a.currentSlide)).data("mute")&&new Vimeo.Player(a.slides.eq(a.currentSlide).find("iframe")[0]).setVolume(0))),jQuery(a).find("video").each(function(){"function"==typeof jQuery(this)[0].pause&&jQuery(this)[0].pause(),!jQuery(this).parents("li").hasClass("clone")&&jQuery(this).parents("li").hasClass("flex-active-slide")&&"yes"===jQuery(this).parents("li").attr("data-autoplay")&&"function"==typeof jQuery(this)[0].play&&jQuery(this)[0].play()})}window.YTReady=function(){var a=[],b=!1;return function(c,d){if(!0===c)for(b=!0;a.length;)a.shift()();else"function"==typeof c&&(b?c():a[d?"unshift":"push"](c))}}(),jQuery(document).ready(function(){var a;jQuery(".fusion-fullwidth.video-background").each(function(){jQuery(this).find("[data-youtube-video-id]")&&(window.yt_vid_exists=!0)}),a=jQuery("iframe"),jQuery.each(a,function(a,b){var c,d,e=jQuery(this).attr("src");e&&(Number(fusionVideoGeneralVars.status_vimeo)&&1<=e.indexOf("vimeo")&&jQuery(this).attr("id","player_"+(a+1)),Number(fusionVideoGeneralVars.status_yt)&&ytVidId(e)&&(jQuery(this).attr("id","player_"+(a+1)),c=insertParam(e,"enablejsapi","1",!1),d=insertParam(c,"wmode","opaque",!1),jQuery(this).attr("src",d),window.yt_vid_exists=!0))}),jQuery(".full-video, .video-shortcode, .wooslider .slide-content, .fusion-portfolio-carousel .fusion-video").not("#bbpress-forums .full-video, #bbpress-forums .video-shortcode, #bbpress-forums .wooslider .slide-content, #bbpress-forums .fusion-portfolio-carousel .fusion-video").fitVids(),jQuery("#bbpress-forums").fitVids(),registerYoutubePlayers(),loadYoutubeIframeAPI()});