title: Check if cookie exists and hide content
body: <p><strong>EDIT:</strong>this works (gives me an alert):</p>
  
  <pre><code>if (document.cookie.indexOf("TR_LNG") &gt;= 0) { alert('cookie found'); }
  </code></pre>
  
  <p>So it's the hiding mechanism thats the problem.
  BUT in console: <code>$('.langselmain').hide('fast');</code> this works as well so i have no idea wtf is wrong. <strong>END EDIT</strong></p>
  
  <p>I'm trying to check for a language preference cookie, and if it exists to hide the language selection dialogue. this is what I'm using to check the cookie:</p>
  
  <pre><code>if (document.cookie.indexOf("TR_LNG") &gt;= 0) { $('.langselmain').hide('fast'); } 
  </code></pre>
  
  <p>and the content to hide:</p>
  
  <pre><code>&lt;div id="langselectsplash" class="langselectsplash langselmain"&gt;&lt;div id="select"&gt;&lt;img src="http://sarvatma.org/wp-content/uploads/2012/08/sarvalogo2.png" /&gt;&lt;p&gt; 
          &lt;style&gt;#tr_setdeflang{display:none;}&lt;/style&gt;&lt;div class="no_translate transposh_flags" &gt;&lt;a id="en" href="/about/" class="tr_active"&gt;English&lt;/a&gt;&lt;a id="fr" href="/fr/about/"&gt;Français&lt;/a&gt;&lt;a id="de" href="/de/about/"&gt;Deutsch&lt;/a&gt;&lt;a id="ja" href="/ja/about/"&gt;日本語&lt;/a&gt;&lt;a id="pl" href="/pl/about/"&gt;Polski&lt;/a&gt;&lt;a id="es" href="/es/about/"&gt;Español&lt;/a&gt;&lt;/div&gt;        &lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="langsplashfade" class="langselmain"&gt;&lt;/div&gt; 
  </code></pre>
  
  <p>and its just not working</p>