!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery),$(".horizontal-main").sticky({topSpacing:0})}(function(e){var t=Array.prototype.slice,s=Array.prototype.splice,i={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"inherit"},o=e(window),n=e(document),a=[],r=o.height(),l=function(){for(var t=o.scrollTop(),s=n.height(),i=s-r,l=t>i?i-t:0,c=0,p=a.length;p>c;c++){var m=a[c],u=m.stickyWrapper.offset().top,d=u-m.topSpacing-l;if(m.stickyWrapper.css("height",m.stickyElement.outerHeight()),d>=t)null!==m.currentTop&&(m.stickyElement.css({width:"",position:"",top:"","z-index":""}),m.stickyElement.parent().removeClass(m.className),m.stickyElement.trigger("sticky-end",[m]),m.currentTop=null);else{var v=s-m.stickyElement.outerHeight()-m.topSpacing-m.bottomSpacing-t-l;if(0>v?v+=m.topSpacing:v=m.topSpacing,m.currentTop!==v){var h;m.getWidthFrom?(padding=m.stickyElement.innerWidth()-m.stickyElement.width(),h=e(m.getWidthFrom).width()-padding||null):m.widthFromWrapper&&(h=m.stickyWrapper.width()),null==h&&(h=m.stickyElement.width()),m.stickyElement.css("width",h).css("position","fixed").css("top",v).css("z-index",m.zIndex),m.stickyElement.parent().addClass(m.className),null===m.currentTop?m.stickyElement.trigger("sticky-start",[m]):m.stickyElement.trigger("sticky-update",[m]),m.currentTop===m.topSpacing&&m.currentTop>v||null===m.currentTop&&v<m.topSpacing?m.stickyElement.trigger("sticky-bottom-reached",[m]):null!==m.currentTop&&v===m.topSpacing&&m.currentTop<v&&m.stickyElement.trigger("sticky-bottom-unreached",[m]),m.currentTop=v}var g=m.stickyWrapper.parent(),w=m.stickyElement.offset().top+m.stickyElement.outerHeight()>=g.offset().top+g.outerHeight()&&m.stickyElement.offset().top<=m.topSpacing;w?m.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):m.stickyElement.css("position","fixed").css("top",v).css("bottom","").css("z-index",m.zIndex)}}},c=function(){r=o.height();for(var t=0,s=a.length;s>t;t++){var i=a[t],n=null;i.getWidthFrom?i.responsiveWidth&&(n=e(i.getWidthFrom).width()):i.widthFromWrapper&&(n=i.stickyWrapper.width()),null!=n&&i.stickyElement.css("width",n)}},p={init:function(t){return this.each(function(){var s=e.extend({},i,t),o=e(this),n=o.attr("id"),r=n?n+"-"+i.wrapperClassName:i.wrapperClassName,l=e("<div></div>").attr("id",r).addClass(s.wrapperClassName);o.wrapAll(function(){return 0==e(this).parent("#"+r).length?l:void 0});var c=o.parent();s.center&&c.css({width:o.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===o.css("float")&&o.css({"float":"none"}).parent().css({"float":"right"}),s.stickyElement=o,s.stickyWrapper=c,s.currentTop=null,a.push(s),p.setWrapperHeight(this),p.setupChangeListeners(this)})},setWrapperHeight:function(t){var s=e(t),i=s.parent();i&&i.css("height",s.outerHeight())},setupChangeListeners:function(e){if(window.MutationObserver){var t=new window.MutationObserver(function(t){(t[0].addedNodes.length||t[0].removedNodes.length)&&p.setWrapperHeight(e)});t.observe(e,{subtree:!0,childList:!0})}else window.addEventListener?(e.addEventListener("DOMNodeInserted",function(){p.setWrapperHeight(e)},!1),e.addEventListener("DOMNodeRemoved",function(){p.setWrapperHeight(e)},!1)):window.attachEvent&&(e.attachEvent("onDOMNodeInserted",function(){p.setWrapperHeight(e)}),e.attachEvent("onDOMNodeRemoved",function(){p.setWrapperHeight(e)}))},update:l,unstick:function(t){return this.each(function(){for(var t=this,i=e(t),o=-1,n=a.length;n-->0;)a[n].stickyElement.get(0)===t&&(s.call(a,n,1),o=n);-1!==o&&(i.unwrap(),i.css({width:"",position:"",top:"","float":"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",l,!1),window.addEventListener("resize",c,!1)):window.attachEvent&&(window.attachEvent("onscroll",l),window.attachEvent("onresize",c)),e.fn.sticky=function(s){return p[s]?p[s].apply(this,t.call(arguments,1)):"object"!=typeof s&&s?void e.error("Method "+s+" does not exist on jQuery.sticky"):p.init.apply(this,arguments)},e.fn.unstick=function(s){return p[s]?p[s].apply(this,t.call(arguments,1)):"object"!=typeof s&&s?void e.error("Method "+s+" does not exist on jQuery.sticky"):p.unstick.apply(this,arguments)},e(function(){setTimeout(l,0)})}),$(document).ready(function(){function e(){s=i.innerHeight(),i.css({"margin-bottom":"-"+s+"px"}),i.next().css({"padding-top":+s+"px"})}function t(){var e=$(this).scrollTop();e>=n?i.addClass(o):i.removeClass(o)}var s,i=$(".sticky"),o="sticky-pin",n=i.offset().top;i.after('<div class="jumps-prevent"></div>'),e(),$(window).resize(function(){e()}),t(),$(window).scroll(function(){t()})});