[jQuery] can one detect if the current tab is still visible?

[jQuery] can one detect if the current tab is still visible?


I've got a slideshow that polls the server each 7 seconds for new images
to display, and want to pause it when the tab that the user is on isn't
visible..
I have little hope of it being possible (in all browsers), but am asking
anyway ;)
Perhaps, perhaps, they thought of it..
If u know of a way, please let me / us know.