(function(){var t,i;t=this.jQuery||window.jQuery,i=t(window),t.fn.stick_in_parent=function(e){var o,n,s,a,r,c,l,d,h,p,f;for(null==e&&(e={}),f=e.sticky_class,r=e.inner_scrolling,p=e.recalc_every,h=e.parent,d=e.offset_top,l=e.spacer,n=e.bottoming,null==d&&(d=0),null==h&&(h=void 0),null==r&&(r=!0),null==f&&(f="is_stuck"),o=t(document),null==n&&(n=!0),s=function(e,s,a,c,u,g,w,m){var v,y,k,b,C,_,x,j,T,A,z,I;if(!e.data("sticky_kit")){if(e.data("sticky_kit",!0),C=o.height(),x=e.parent(),null!=h&&(x=x.closest(h)),!x.length)throw"failed to find stick parent";if(v=k=!1,(z=null!=l?l&&e.closest(l):t("
"))&&z.css("position",e.css("position")),(j=function(){var t,i,n;if(!m&&(C=o.height(),t=parseInt(x.css("border-top-width"),10),i=parseInt(x.css("padding-top"),10),s=parseInt(x.css("padding-bottom"),10),a=x.offset().top+t+i,c=x.height(),k&&(v=k=!1,null==l&&(e.insertAfter(z),z.detach()),e.css({position:"",top:"",width:"",bottom:""}).removeClass(f),n=!0),u=e.offset().top-(parseInt(e.css("margin-top"),10)||0)-d,g=e.outerHeight(!0),w=e.css("float"),z&&z.css({width:e.outerWidth(!0),height:g,display:e.css("display"),"vertical-align":e.css("vertical-align"),float:w}),n))return I()})(),g!==c)return b=void 0,_=d,A=p,I=function(){var t,h,y,T;if(!m&&(y=!1,null!=A&&(0>=--A&&(A=p,j(),y=!0)),y||o.height()===C||j(),y=i.scrollTop(),null!=b&&(h=y-b),b=y,k?(n&&(T=y+g+_>c+a,v&&!T&&(v=!1,e.css({position:"fixed",bottom:"",top:_}).trigger("sticky_kit:unbottom"))),yt&&!v&&(_-=h,_=Math.max(t-g,_),_=Math.min(d,_),k&&e.css({top:_+"px"})))):y>u&&(k=!0,(t={position:"fixed",top:_}).width="border-box"===e.css("box-sizing")?e.outerWidth()+"px":e.width()+"px",e.css(t).addClass(f),null==l&&(e.after(z),"left"!==w&&"right"!==w||z.append(e)),e.trigger("sticky_kit:stick")),k&&n&&(null==T&&(T=y+g+_>c+a),!v&&T)))return v=!0,"static"===x.css("position")&&x.css({position:"relative"}),e.css({position:"absolute",bottom:s,top:"auto"}).trigger("sticky_kit:bottom")},T=function(){return j(),I()},y=function(){if(m=!0,i.off("touchmove",I),i.off("scroll",I),i.off("resize",T),t(document.body).off("sticky_kit:recalc",T),e.off("sticky_kit:detach",y),e.removeData("sticky_kit"),e.css({position:"",bottom:"",top:"",width:""}),x.position("position",""),k)return null==l&&("left"!==w&&"right"!==w||e.insertAfter(z),z.remove()),e.removeClass(f)},i.on("touchmove",I),i.on("scroll",I),i.on("resize",T),t(document.body).on("sticky_kit:recalc",T),e.on("sticky_kit:detach",y),setTimeout(I,0)}},a=0,c=this.length;a