The idle timer is built on YUI 3 and provides two events:
active, which fire when the user's idle state has changed.
This example has an idle timeout of 10 seconds. When you move your mouse over the page or start typing, you're considered "active". The status at the top of the screen changes to indicate your current state.