(function(b){var e={init:function(a){return this.each(function(){var c=b(this);c.data("tipdown");a=b.extend({},b.fn.tipdown.defaults,a);c.data("tipdown",{target:c,options:a,internal:{}});c=c.find(a.trigger);c.each(function(){element=b(this).next(a.content);height=element.height();element.height(height)});c.next(a.content).hide();c.click(function(){var d=b(this),f=d.next(a.content);if(d.hasClass(a.openClass)){d.removeClass(a.openClass);f.slideUp(a.speed)}else{d.addClass(a.openClass);f.slideDown(a.speed)}})})}};
b.fn.tipdown=function(a){if(e[a])return e[a].apply(this,Array.prototype.slice.call(arguments,1));else if(typeof a==="object"||!a)return e.init.apply(this,arguments);else b.error("Method "+a+" does not exist on jQuery.tipdown")};b.fn.tipdown.defaults={trigger:"h3",content:"div",openClass:"link-open",speed:"fast"}})(jQuery);
