// Example html file: http://gist.github.com/26239
(function($) {
    $.fn.toggler = function(options) {

        var opts = $.extend({}, $.fn.toggler.defaults, options);

        return this.each(function() {
            this.togglee = $($(this).attr('href')).hide();
            $(this).click(onClick);
        });

        function onClick() {
            this.togglee[opts.animate ? 'slideToggle' : 'toggle']("fast");
            $(this).blur();
            return false;
        }
    }

    $.fn.toggler.defaults = { animate: false }
})(jQuery);