(function(n){var t={defaults:{slideSpeed:400,easing:!1,callback:!1},thisCallArgs:{slideSpeed:400,easing:!1,callback:!1},methods:{up:function(i,r,u){var f,e,o;if(typeof i=="object")for(p in i)t.thisCallArgs.eval(p)=i[p];else t.thisCallArgs.slideSpeed=typeof i!="undefined"&&(typeof i=="number"||i=="slow"||i=="fast")?i:t.defaults.slideSpeed;return typeof r=="string"?t.thisCallArgs.easing=r:typeof r=="function"?t.thisCallArgs.callback=r:typeof r=="undefined"&&(t.thisCallArgs.easing=t.defaults.easing),typeof u=="function"?t.thisCallArgs.callback=u:typeof u=="undefined"&&typeof r!="function"&&(t.thisCallArgs.callback=t.defaults.callback),f=n(this).find("> td"),f.wrapInner('<div class="slideRowUp" />'),e=f.css("padding"),$cellContentWrappers=n(this).find(".slideRowUp"),$cellContentWrappers.slideUp(t.thisCallArgs.slideSpeed,t.thisCallArgs.easing).parent().animate({paddingTop:"0px",paddingBottom:"0px"},{complete:function(){n(this).children(".slideRowUp").replaceWith(n(this).children(".slideRowUp").contents());n(this).parent().css({display:"none"});n(this).css({padding:e})}}),o=setInterval(function(){$cellContentWrappers.is(":animated")===!1&&(clearInterval(o),typeof t.thisCallArgs.callback=="function"&&t.thisCallArgs.callback.call(this))},100),n(this)},down:function(i,r,u){var f,e;if(typeof i=="object")for(p in i)t.thisCallArgs.eval(p)=i[p];else t.thisCallArgs.slideSpeed=typeof i!="undefined"&&(typeof i=="number"||i=="slow"||i=="fast")?i:t.defaults.slideSpeed;return typeof r=="string"?t.thisCallArgs.easing=r:typeof r=="function"?t.thisCallArgs.callback=r:typeof r=="undefined"&&(t.thisCallArgs.easing=t.defaults.easing),typeof u=="function"?t.thisCallArgs.callback=u:typeof u=="undefined"&&typeof r!="function"&&(t.thisCallArgs.callback=t.defaults.callback),f=n(this).find("> td"),f.wrapInner('<div class="slideRowDown" style="display:none;" />'),$cellContentWrappers=f.find(".slideRowDown"),n(this).show(),$cellContentWrappers.slideDown(t.thisCallArgs.slideSpeed,t.thisCallArgs.easing,function(){n(this).replaceWith(n(this).contents())}),e=setInterval(function(){$cellContentWrappers.is(":animated")===!1&&(clearInterval(e),typeof t.thisCallArgs.callback=="function"&&t.thisCallArgs.callback.call(this))},100),n(this)}}};n.fn.slideRow=function(n){if(typeof n!="undefined"&&t.methods[n])return t.methods[n].apply(this,Array.prototype.slice.call(arguments,1))}})(jQuery);