title: How to check with jquery if Internet Explorer is running in Compatibility View
body: <p>Since jQuery.browser is deprecated and jQuery.support is the recommended tool to tackle browser issues, what's the recommended way to handle the following problem?</p>
  
  <p>The Fullscreen theme of the Galleria jquery plugin doesn't work properly (wrong image positioning) in IE &lt; 8 and in IE 8 and 9 compatibility view mode. Doctype is HTML 5, and turning off that mode with </p>
  
  <pre><code>&lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt; 
  </code></pre>
  
  <p>does its job, but <strong>how do I use jQuery.support properly do check if the IE version is &lt; 8 <em>or</em> the compatibility view is somehow still turned on</strong> (because then we use another theme for these users)?</p>
  
  <p>Update: Here's the code we use now (at the bottom of the html).</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          if ($.browser.msie &amp;&amp; $.browser.version &lt; 8) {
              Galleria.loadTheme('js/galleria/themes/classic/galleria.classic.min.js');
              $("#gallery").galleria({
              /* ... */
              });
          } else {
              Galleria.loadTheme('js/galleria/themes/fullscreen/galleria.fullscreen.min.js');
              $("#gallery").galleria({
              /* ... */
              });
          }
      });
  
  &lt;/script&gt;
  </code></pre>