code: function(e) {
        var t = this,
            sidebar = $('.nm-sb'),
            newWidth = startWidth = sidebar.width(),
            startX = e.pageX;
        function drag(e) {
          newWidth = startWidth + (e.pageX - startX);
          sidebar.css({width:newWidth});
          t.tour.css({left: newWidth + t.handleWidth});
          UI.pageView.centerPage();
        }
        function drop(e) {
          t.handle.removeClass('drag');
          $(document).unbind("mousemove", drag).unbind("mouseup", drop);
          // Simulate click?
          if (newWidth === startWidth) {
            newWidth = startWidth === 0 ? Sidebar.prototype.defaults.width : 0;
          }
          // Auto-close?
          else if (newWidth < 30) {
            newWidth = 0;
          }
          // Set the width, center the page, and persist
          t.sidebar.set('width', newWidth);
          sidebar.css({width: newWidth});
          t.tour.css({left: newWidth + t.handleWidth});
          UI.pageView.centerPage();
        }
        $(document).bind("mousemove", drag).bind("mouseup", drop);
        t.handle.addClass('drag');
        drag(e);
        e.preventDefault();
      }
docs: Resize the sidebar