Prevent an event while in another event
I want to be able to prevent an event from running while another is in progress. For example, on this page
http://www.queness.com/resources/html/newsslider/index.html
if you click "Next" a number of times quickly, it stores all the clicks in a queue and will continue to run all the clicks way after u finished clicking, how can i prevent another event being added to a queue while an event is running?