(function(B){var l=jQuery.fn.revolution,C=l.is_mobile(),z=(l.is_android(),{alias:"Video Min JS",name:"revolution.extensions.video.min.js",min_core:"5.4.8",version:"2.2.2"});function h(e){return e==null?-1:jQuery.isNumeric(e)?e:1a.vd?punchgs.TweenLite.set(a.ifr,{height:n+"%",width:"100%",top:-(n-100)/2+"%",left:"0px",position:"absolute"}):punchgs.TweenLite.set(a.ifr,{width:d+"%",height:"100%",left:-(d-100)/2+"%",top:"0px",position:"absolute"}),a.ifr.hasClass("resizelistener")||(a.ifr.addClass("resizelistener"),jQuery(window).resize(function(){l.prepareCoveredVideo(e,t),clearTimeout(a.ifr.data("resizelistener")),a.ifr.data("resizelistener",setTimeout(function(){l.prepareCoveredVideo(e,t)},90))}))}},checkVideoApis:function(e,t,a){if((e.data("ytid")!=null||0';r=="auto"&&(t.mediapreload=!0),p==="video"?(c!=null&&l.get_browser().toLowerCase()=="firefox"&&(s=s+''),y!=null&&(s=s+''),g!=null&&(s=s+'')):p==="audio"&&(y!=null&&(s=s+''),g!=null&&(s=s+'')),s=s+"";var k="";b!=="true"&&b!==!0||(k='
'),L=="controls"&&(s=s+'
'+k+"
"),e.data("videomarkup",s),e.append(s),(C&&e.data("disablevideoonmobile")==1||l.isIE(8))&&e.find(p).remove(),e.find(p).each(function(N){var q,M=jQuery(this);M.parent().hasClass("html5vid")||M.wrap('
'),M.parent().data("metaloaded")!=1&&w(this,"loadedmetadata",(E(q=e,t),void l.resetVideo(q,t)))});break;case"youtube":T="https",L=="none"&&(n=n.replace("controls=1","controls=0")).toLowerCase().indexOf("controls")==-1&&(n+="&controls=0"),(i.videoinline===!0||i.videoinline==="true"||i.videoinline===1||e.hasClass("rs-background-video-layer")||e.data("autoplay")==="on")&&(n+="&playsinline=1");var I=h(e.data("videostartat")),j=h(e.data("videoendat"));I!=-1&&(n=n+"&start="+I),j!=-1&&(n=n+"&end="+j);var S=n.split("origin="+T+"://"),_="";1');break;case"vimeo":T="https",e.data("videomarkup",'')}var R=C&&e.data("noposteronmobile")=="on";if(i.videoposter!=null&&2'),e.find("iframe").length==0&&e.find(".tp-videoposter").click(function(){if(l.playVideo(e,t),C){if(e.data("disablevideoonmobile")==1)return!1;punchgs.TweenLite.to(e.find(".tp-videoposter"),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),punchgs.TweenLite.to(e.find("iframe"),.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut})}});else{if(C&&e.data("disablevideoonmobile")==1)return!1;e.find("iframe").length!=0||m!="youtube"&&m!="vimeo"||(e.removeData("vimeoplayer"),e.append(e.data("videomarkup")),O(e,t,!1))}e.data("dottedoverlay")!="none"&&e.data("dottedoverlay")!=null&&e.find(".tp-dottedoverlay").length!=1&&e.append('
'),e.addClass("HasListener"),e.data("bgvideo")==1&&(e.data("ytid")?punchgs.TweenLite.set(e.find("iframe"),{opacity:0}):punchgs.TweenLite.set(e.find("video, iframe"),{autoAlpha:0}))}});var w=function(e,t,a){e.addEventListener?e.addEventListener(t,a,{capture:!1,passive:!0}):e.attachEvent(t,a,{capture:!1,passive:!0})},V=function(e,t,a){var o={};return o.video=e,o.videotype=t,o.settings=a,o},A=function(e,t){if(t.data("bgvideo")==1||t.data("forcecover")==1){t.data("forcecover")===1&&t.removeClass("fullscreenvideo").addClass("coverscreenvideo");var a=t.data("aspectratio");a===void 0&&a.split(":").length<=1&&t.data("aspectratio","16:9"),l.prepareCoveredVideo(e,t)}},O=function(e,t,a){var o=e.data(),i=e.find("iframe"),n="iframe"+Math.round(1e5*Math.random()+1),d=o.videoloop,f=d!="loopandnoslidestop";if(d=d=="loop"||d=="loopandnoslidestop",A(t,e),i.attr("id",n),a&&e.data("startvideonow",!0),e.data("videolistenerexist")!==1)switch(o.videotype){case"youtube":var r=new YT.Player(n,{events:{onStateChange:function(v){var s=e.closest(".tp-simpleresponsive"),k=(o.videorate,e.data("videostart"),D());if(v.data==YT.PlayerState.PLAYING)punchgs.TweenLite.to(e.find(".tp-videoposter"),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),punchgs.TweenLite.to(e.find("iframe"),.3,{autoAlpha:1,display:"block",ease:punchgs.Power3.easeInOut}),e.data("volume")=="mute"||l.lastToggleState(e.data("videomutetoggledby"))||t.globalmute===!0?r.mute():(r.unMute(),r.setVolume(parseInt(e.data("volume"),0)||75)),t.videoplaying=!0,Q(e,t),f?t.c.trigger("stoptimer"):t.videoplaying=!1,t.c.trigger("revolution.slide.onvideoplay",V(r,"youtube",e.data())),l.toggleState(o.videotoggledby);else{if(v.data==0&&d){var I=h(e.data("videostartat"));I!=-1&&r.seekTo(I),r.playVideo(),l.toggleState(o.videotoggledby)}k||v.data!=0&&v.data!=2||!(e.data("showcoveronpause")=="on"&&0v.seconds&&e.data("nextslidecalled")!=1)if(d){u.play();var k=h(e.data("videostartat"));k!=-1&&u.setCurrentTime(k)}else e.data("nextslideatend")==1&&(e.data("nextslideatend-triggered",1),e.data("nextslidecalled",1),t.c.revnext()),u.pause()}),u.on("ended",function(v){P(e,t),t.videoplaying=!1,t.c.trigger("starttimer"),t.c.trigger("revolution.slide.onvideostop",V(u,"vimeo",e.data())),e.data("nextslideatend")==1&&(e.data("nextslideatend-triggered",1),t.c.revnext()),t.currentLayerVideoIsPlaying!=null&&t.currentLayerVideoIsPlaying.attr("id")!=e.attr("id")||l.unToggleState(o.videotoggledby)}),u.on("pause",function(v){(e.data("showcoveronpause")=="on"&&0 '),e.find("video, .tp-poster, .tp-video-play-button").click(function(){e.hasClass("videoisplaying")?d.pause():d.play()})),e.data("forcecover")==1||e.hasClass("fullscreenvideo")||e.data("bgvideo")==1)if(e.data("forcecover")==1||e.data("bgvideo")==1){f.addClass("fullcoveredvideo");var c=e.data("aspectratio");c!==void 0&&c.split(":").length!=1||e.data("aspectratio","16:9"),l.prepareCoveredVideo(t,e)}else f.addClass("fullscreenvideo");var g=e.find(".tp-vid-play-pause")[0],b=e.find(".tp-vid-mute")[0],L=e.find(".tp-vid-full-screen")[0],T=e.find(".tp-seek-bar")[0],x=e.find(".tp-volume-bar")[0];g!=null&&w(g,"click",function(){d.paused==1?d.play():d.pause()}),b!=null&&w(b,"click",function(){d.muted==0?(d.muted=!0,b.innerHTML="Unmute"):(d.muted=!1,b.innerHTML="Mute")}),L!=null&&L&&w(L,"click",function(){d.requestFullscreen?d.requestFullscreen():d.mozRequestFullScreen?d.mozRequestFullScreen():d.webkitRequestFullscreen&&d.webkitRequestFullscreen()}),T!=null&&(w(T,"change",function(){var m=d.duration*(T.value/100);d.currentTime=m}),w(T,"mousedown",function(){e.addClass("seekbardragged"),d.pause()}),w(T,"mouseup",function(){e.removeClass("seekbardragged"),d.play()})),w(d,"canplaythrough",function(){l.preLoadAudioDone(e,t,"canplaythrough")}),w(d,"canplay",function(){l.preLoadAudioDone(e,t,"canplay")}),w(d,"progress",function(){l.preLoadAudioDone(e,t,"progress")}),w(d,"timeupdate",function(){var m=100/d.duration*d.currentTime,p=h(e.data("videoendat")),u=d.currentTime;if(T!=null&&(T.value=m),p!=0&&p!=-1&&Math.abs(p-u)<=.3&&u