Run script if address is x?
<p>I've built a site for my customer a few months ago, and when user clicks a link on navigation, the new content will slide visible and the old content will be hidden. I also made the customer a webstore and he would like a link to to his main site image gallery. However, because the site is actually only one page full of content and the new content is displayed with javascript, typing <a href="http://yoursite.com/#gallery" rel="nofollow">http://yoursite.com/#gallery</a> would actually load the first page. Is it possible to do something like </p>

<pre><code>$(document).ready(function(){
   $(page).load(function(){
      $('#page1').slideUp();
      $('#page2').slideUp();
   });
});
</code></pre>

<p>and display the wanted content based on the addresd that is typed?</p>
