title: Problems w/ window.location.hash
body: <p>I have this content box on my site, that has different tabs on the side and when you click on one of the tabs, it uses JS to hide/show the according divs inside the content box.</p>
  
  <p>I also have this in my head to give each div inside the content box it's own URL:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    function loadSmugInfo() {
      if(window.location.hash == '#smuginfo')
        document.getElementById('contentInfo').style.display = "block";
        document.getElementById('contentSlideshow').style.display = "none"
    }
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
    function loadFind() {
      if(window.location.hash == '#find')
        document.getElementById('contentMap').style.display = "block";
        document.getElementById('contentSlideshow').style.display = "none"
    }
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
    function loadSmugmug() {
      if(window.location.hash == '#smugmug')
        document.getElementById('contentSmugInfo').style.display = "block";
        document.getElementById('contentSlideshow').style.display = "none"
    }
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
    function loadMain() {
      if(window.location.hash == '#')
        document.getElementById('contentSlideshow').style.display = "block"
    }
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
    function loadSlideshow() {
      if(window.location.hash == '#slideshow')
        document.getElementById('contentSlideshow').style.display = "block"
    }
  &lt;/script&gt;
  </code></pre>
  
  <p>I also have it so when you a click a tab, it changes the hash.</p>
  
  <p>Here is my problem.
  When the page loads like normal (without a hash), the first and topmost div, is still not displaying (even though it's set to display: block in CSS).</p>
  
  <p>I'm loading the functions you see above, using onLoad on an image above the content box.</p>
  
  <p>Any help would be appreciated, I'm on a little bit of a tight schedule.
  Let me know if you need any more information.
  Thanks!</p>