title: How to pause a HTML5 video on an event?
body: <p>I am building a website with HTML5-<code>&lt;video&gt;</code> in fullscreen background. There are pages in shape of <code>&lt;div&gt;</code>s becoming visible with SWF-container player in them that cause serious CPU performance issues when both media play.
  So I want to add a simple javascript command that pauses the background video when a project-<code>&lt;div&gt;</code> becomes visible. Would be nice if it resumes again the playback when it gets closed/hidden.</p>
  
  <p>Thanks in advance.</p>