/******************************************** * revolution 5.2.6 extension - parallax * @version: 1.5 (23.06.2016) * @requires jquery.themepunch.revolution.js * @author themepunch *********************************************/ !function(e){function r(e,r){e.lastscrolltop=r}var t=jquery.fn.revolution,a=t.is_mobile();jquery.extend(!0,t,{checkforparallax:function(e,r){function o(e){if("3d"==s.type||"3d"==s.type){e.find(".slotholder").wrapall('
'),e.find(".tp-parallax-wrap").wrapall(''),e.find(".rs-parallaxlevel-tobggroup").closest(".tp-parallax-wrap").wrapall('');var t=e.find(".dddwrapper"),a=e.find(".dddwrapper-layer"),o=e.find(".dddwrapper-layertobggroup");o.appendto(t),"carousel"==r.slidertype&&("on"==s.ddd_shadow&&t.addclass("dddwrappershadow"),punchgs.tweenlite.set(t,{borderradius:r.carousel.border_radius})),punchgs.tweenlite.set(e,{overflow:"visible",transformstyle:"preserve-3d",perspective:1600}),punchgs.tweenlite.set(t,{force3d:"auto",transformorigin:"50% 50%"}),punchgs.tweenlite.set(a,{force3d:"auto",transformorigin:"50% 50%",zindex:5}),punchgs.tweenlite.set(r.ul,{transformstyle:"preserve-3d",transformperspective:1600})}}var s=r.parallax;if(!s.done){if(s.done=!0,a&&"on"==s.disable_onmobile)return!1;("3d"==s.type||"3d"==s.type)&&(punchgs.tweenlite.set(r.c,{overflow:s.ddd_overflow}),punchgs.tweenlite.set(r.ul,{overflow:s.ddd_overflow}),"carousel"!=r.slidertype&&"on"==s.ddd_shadow&&(r.c.prepend(''),punchgs.tweenlite.set(r.c.find(".dddwrappershadow"),{force3d:"auto",transformperspective:1600,transformorigin:"50% 50%",width:"100%",height:"100%",position:"absolute",top:0,left:0,zindex:0}))),r.li.each(function(){o(jquery(this))}),("3d"==s.type||"3d"==s.type&&r.c.find(".tp-static-layers").length>0)&&(punchgs.tweenlite.set(r.c.find(".tp-static-layers"),{top:0,left:0,width:"100%",height:"100%"}),o(r.c.find(".tp-static-layers"))),s.pcontainers=new array,s.pcontainer_depths=new array,s.bgcontainers=new array,s.bgcontainer_depths=new array,r.c.find(".tp-revslider-slidesli .slotholder, .tp-revslider-slidesli .rs-background-video-layer").each(function(){var e=jquery(this),t=e.data("bgparallax")||r.parallax.bgparallax;t="on"==t?1:t,void 0!==t&&"off"!==t&&(s.bgcontainers.push(e),s.bgcontainer_depths.push(r.parallax.levels[parseint(t,0)-1]/100))});for(var i=1;i<=s.levels.length;i++)r.c.find(".rs-parallaxlevel-"+i).each(function(){var e=jquery(this),r=e.closest(".tp-parallax-wrap");r.data("parallaxlevel",s.levels[i-1]),r.addclass("tp-parallax-container"),s.pcontainers.push(r),s.pcontainer_depths.push(s.levels[i-1])});("mouse"==s.type||"scroll+mouse"==s.type||"mouse+scroll"==s.type||"3d"==s.type||"3d"==s.type)&&(e.mouseenter(function(r){var t=e.find(".active-revslide"),a=e.offset().top,o=e.offset().left,s=r.pagex-o,i=r.pagey-a;t.data("enterx",s),t.data("entery",i)}),e.on("mousemove.hoverdir, mouseleave.hoverdir, trigger3dpath",function(t,a){var o=a&&a.li?a.li:e.find(".active-revslide");if("enterpoint"==s.origo){var i=e.offset().top,l=e.offset().left;void 0==o.data("enterx")&&o.data("enterx",t.pagex-l),void 0==o.data("entery")&&o.data("entery",t.pagey-i);var n=o.data("enterx")||t.pagex-l,d=o.data("entery")||t.pagey-i,p=n-(t.pagex-l),c=d-(t.pagey-i),h=s.speed/1e3||.4}else var i=e.offset().top,l=e.offset().left,p=r.conw/2-(t.pagex-l),c=r.conh/2-(t.pagey-i),h=s.speed/1e3||3;"mouseleave"==t.type&&(p=s.ddd_lasth||0,c=s.ddd_lastv||0,h=1.5);for(var u=0;u