code: function(e) {
        var t = this,
            h1 = $(e.currentTarget),
            icon = h1.find('i:first-child'),
            div = h1.find('+div'),
            isClosed = h1.hasClass('closed');
  
  
        // Animate the height.  Can't do CSS animations, because CSS
        // requires specific start/end points, and can't animate from
        // height:auto to height:0px.
        if (isClosed) {
          var divHeight = div.css({height:'auto'}).height();
          div.css({height:0});
          div.animate({height:divHeight}, 200, function(){
            div.css({height:'auto'});
          });
          icon.attr({class:"icon-caret-down"});
        } else {
          div.animate({height:0}, 200, function(){
            div.css({display:'none'});
          });
          icon.attr({class:"icon-caret-right"});
        }
        h1.toggleClass('closed');
        div.css({display:'block'});
      }
docs: This toggles open/closed a section