!function(t,o,n){"use strict";var i="slinky",e=t.fn[i]=function(s){return s=t.extend({},e.options,s),this.each(function(){function e(){h.forEach(function(t){var o="",n=t.$parent.position().top;n<=t.top?o="top":n+t.height>=p-t.bottom&&(o="bottom"),o?t.position!=o&&(t.$parent.css("paddingTop",t.height),t.$.css("position","absolute").css(o,t[o]).css("top"==o?"bottom":"top",""),t.position=o):(t.$parent.css("paddingTop",""),t.$.css("position",""),t.position="")})}function s(){p=f.outerHeight(),h=[],a=f.children(),a.each(function(){var o=t(this),n=o.children().first();h.push({$:n,$parent:o,height:n.outerHeight(),position:""})}),h.forEach(function(t,o){t.top=o>0?h[o-1].top+h[o-1].height:0,o=h.length-o-1,h[o].bottom=o