Is there an event thrown when the web page loses focus?

Is there an event thrown when the web page loses focus?

I want to stop the flowplayer video player when the page loses focus. Either another tab is being viewed or another app is in focus...

I tried (document).blur, ("#pagewrapper").blur, ("#pagewrapper").mouseout...

Any suggestions?

I have everything working except the page.blur... I can't seem to find an event that will work for this.