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