docs: function (direction) {
              var i,
                  zoom = false,
                  currentZoom = this.state.zoomState.zoom,
                  zoomLevels = this.zoomLevels;
  
              if (direction === Crocodoc.ZOOM_IN) {
                  for (i = 0; i < zoomLevels.length; ++i) {
                      if (zoomLevels[i] > currentZoom) {
                          zoom = zoomLevels[i];
                          break;
                      }
                  }
              } else if (direction === Crocodoc.ZOOM_OUT) {
                  for (i = zoomLevels.length - 1; i >= 0; --i) {
                      if (zoomLevels[i] < currentZoom) {
                          zoom = zoomLevels[i];
                          break;
                      }
                  }
              }
  
              return zoom;
          }