$.fn.stickyfloat=function(c,b){var g=this;var e=parseInt(g.parent().css("padding-top"));var d=$.extend({offsetY:e,duration:200,lockBottom:true},c);g.css({position:"absolute"});if(d.lockBottom){var a=g.parent().height()-g.height()+e;if(a<0){a=0}}var f;$(window).scroll(function(){if(f!==undefined&&f!==null){clearTimeout(f)}f=setTimeout(function(){g.stop();var h=g.parent().offset().top;var i=$(document).scrollTop()>h;var j=g.offset().top>h;var l=g.outerHeight()<$(window).height();if((i||j)&&l){var k=($(document).scrollTop()-h+d.offsetY);if(k>a){k=a}if($(document).scrollTop()<h){k=e}g.animate({top:k},d.duration)}f=null},500)})};
