$(document).ready(function(){$.fn.slideToggleMinHeight=function(minHeight,speed,easing,callback){var el=$(this);el.css("overflow","hidden");var minHeight=minHeight>0?minHeight:80;var currHeight=el.height();var speed=speed>10?speed:500;var easing=easing===undefined||easing==""?false:easing;var callback=$.isFunction(callback)?callback:function(){};if(el.data("origHeight")){var origHeight=el.data("origHeight");}else{el.data("origHeight",el.height())
var origHeight=el.height();}
if(currHeight>minHeight){el.animate({height:minHeight},speed,easing,function(){callback($(this),"close");});}else if(currHeight==minHeight){el.animate({height:origHeight},speed,easing,function(){callback($(this),"open");});}}});
