Register 'select' event
Register 'visible' and 'hidden' events properly (for Firefox tab switch)