This is a quick demo to show the usage of the PageVisibility API.
Head to http://rmehner.github.com/page-visibility-api-demo to see it in action and read the corresponding blog post to learn about the API and what you can do with it.
All the important code can be found in the index.html