Generic z-index manager.
Creates Layers stack. All participating elements are
assigned increasing sequence of z-indexes, started from
baseOffset .
Adds element to stack. When activationEvent
(default: mousedown) fires, the element is raised.
Removes element from stack.