(function(){var a,b;a=this.jquery||window.jquery,b=a(window),a.fn.stick_in_parent=function(c){var d,e,f,g,h,i,j,k,l,m,n,o;for(null==c&&(c={}),o=c.sticky_class,i=c.inner_scrolling,n=c.recalc_every,m=c.parent,l=c.offset_top,k=c.spacer,f=c.bottoming,null==l&&(l=0),null==m&&(m=void 0),null==i&&(i=!0),null==o&&(o="is_stuck"),d=a(document),null==f&&(f=!0),g=function(c,e,g,h,j,p,q,r){var s,t,u,v,w,x,y,z,a,b,c,d;if(!c.data("sticky_kit")){if(c.data("sticky_kit",!0),w=d.height(),y=c.parent(),null!=m&&(y=y.closest(m)),!y.length)throw"failed to find stick parent";if(u=!1,s=!1,c=null!=k?k&&c.closest(k):a("
"),c&&c.css("position",c.css("position")),z=function(){var a,b,f;if(!r)return w=d.height(),a=parseint(y.css("border-top-width"),10),b=parseint(y.css("padding-top"),10),e=parseint(y.css("padding-bottom"),10),g=y.offset().top+a+b,h=y.height(),u&&(u=!1,s=!1,null==k&&(c.insertafter(c),c.detach()),c.css({position:"",top:"",width:"",bottom:""}).removeclass(o),f=!0),j=c.offset().top-(parseint(c.css("margin-top"),10)||0)-l,p=c.outerheight(!0),q=c.css("float"),c&&c.css({width:c.outerwidth(!0),height:p,display:c.css("display"),"vertical-align":c.css("vertical-align"),float:q}),f?d():void 0},z(),p!==h)return v=void 0,x=l,b=n,d=function(){var a,m,t,a,d,e;if(!r)return t=!1,null!=b&&(b-=1)<=0&&(b=n,z(),t=!0),t||d.height()===w||(z(),t=!0),a=b.scrolltop(),null!=v&&(m=a-v),v=a,u?(f&&(d=a+p+x>h+g,s&&!d&&(s=!1,c.css({position:"fixed",bottom:"",top:x}).trigger("sticky_kit:unbottom"))),a