title: jQuery: How can I tell when a tab/window gains focus
body: <p>Is there an event that I can register for that fires each time the user clicks on a tab, meaning that they were on my page's tab, clicked on another tab, then came back to my tab.</p>
  
  <p><strong>EDIT:</strong>
  By tabs, I mean browser tabs, not jQueryUI tabs.</p>