A useful function to combine with the things we have learned to this point is the stop function. Stop can be called with 0, 2, or 3 arguments. 0 Will do the simple default action of pausing all animations currently active on the element which it is attached to.
The use of 2 arguments can give the coder control over the entire queue of elements on the element, not just the current item. 3 arguments can be used to specify the queue that you wish to edit, as well as what to do with it.