play/pause, fix grey rects on mouseout in firefox

I wrote some code for a play/pause button, and I stop the animation whenever the browser window is hidden, hopefully this fixes the problem in firefox where there would be too many grey tallrects.

http://stackoverflow.com/questions/5927284 explains that chrome pauses setInterval timers automatically.