https://gist.github.com/grundprinzip/5868304
http://jsfiddle.net/Killswitch/BSukL/show/
Nothing on the page but the code, so open that in a new tab and swap tabs to see it in action.