title: disable hashchange
body: <p>When you hover over a link on my site it displays the correct URL but once you click on it it adds a # which prevents the correct page from loading. How do I disable hashchange on my site:</p>
  
  <p><a href="http://www.ogormanconstruction.co.uk/" rel="nofollow">http://www.ogormanconstruction.co.uk/</a></p>
  
  <pre><code>&lt;script type='text/javascript' src="/wp-content/themes/child/scripts/jquery-1.6.2.min.js"&gt;&lt;/script&gt;
  &lt;script type='text/javascript' src="/wp-content/themes/child/scripts/jMaster.js"&gt;&lt;/script&gt;
  &lt;script type='text/javascript' src="/wp-content/themes/child/scripts/supersleight.plugin.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/wp-content/themes/child/scripts/hashchange.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/wp-content/themes/child/scripts/actions.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/wp-content/themes/child/scripts/tinyscroll.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  //&lt;![CDATA[
  var theForm = document.forms['aspnetForm'];
  if (!theForm) {
      theForm = document.aspnetForm;
  }
  function __doPostBack(eventTarget, eventArgument) {
      if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
          theForm.__EVENTTARGET.value = eventTarget;
          theForm.__EVENTARGUMENT.value = eventArgument;
          theForm.submit();
      }
  }
  //]]&gt;
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body &lt;?php body_class(); ?&gt;&gt;
  
  &lt;div id="header"&gt;
              &lt;ul id="nav"&gt;
                  &lt;li class="clearfix"&gt;
                      &lt;div class="clearfix"&gt;
                          &lt;div id="menuNav"&gt;&lt;a href="javascript: void(0)" class="openNav"&gt;Menu&lt;/a&gt;&lt;/div&gt;
                          &lt;ul class='clearfix'&gt;&lt;li&gt;&lt;strong&gt;O'Gorman Construction Ltd&lt;/strong&gt;&lt;ul class='clearfix'&gt;&lt;li&gt;&lt;a href='/about-us'&gt;About Us&lt;/a&gt;&lt;li&gt;&lt;a href='/contact'&gt;Contact&lt;/a&gt;&lt;/li&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/work'&gt;Work&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/recruitment'&gt;Recruitment&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Services&lt;/strong&gt;&lt;ul class='clearfix'&gt;&lt;li&gt;&lt;a href='/site-logistics'&gt;Labour Supply&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/waste-management'&gt;Drainage&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/security-services'&gt;Fencing&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/traffic-management'&gt;Demolition&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;ul&gt;&lt;li&gt;&lt;a href='/multi-service-gangs'&gt;Ground Works&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/facilities-accomodation'&gt;Multiservice Gangs&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/small-works-maintenance'&gt;Engineering&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='/catering-services'&gt;Water Treatment&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;
                      &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
              &lt;a href="/" id="logo"&gt;&lt;/a&gt;
          &lt;/div&gt;
  
  &lt;h2&gt;Work&lt;/h2&gt;
  &lt;div class="leftCol"&gt;
  &lt;div class="rightCol gallery"&gt;
      &lt;ul id="homeGallery"&gt;
  &lt;li id="prevControl"&gt;&lt;a href="#"&gt;Previous&lt;/a&gt;&lt;/li&gt;
          &lt;li id="galleryItems"&gt;
  
                      &lt;ul&gt;
  
                      &lt;li&gt;
                          &lt;div class="galleryImage"&gt;&lt;img src='/wp-content/themes/child/images/1.jpg' /&gt;&lt;/div&gt;
                          &lt;div class="galleryText"&gt;&lt;div class="leftCol noborder" style="text-align: left;"&gt;&lt;strong&gt;Project I&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;
                      &lt;/li&gt;
  
                      &lt;li&gt;
                          &lt;div class="galleryImage"&gt;&lt;img src='/wp-content/themes/child/images/2.jpg' /&gt;&lt;/div&gt;
                          &lt;div class="galleryText"&gt;&lt;div class="leftCol noborder" style="text-align: left;"&gt;&lt;strong&gt;Project II&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;
                      &lt;/li&gt;
  
                      &lt;li&gt;
                          &lt;div class="galleryImage"&gt;&lt;img src='/wp-content/themes/child/images/4.jpg' /&gt;&lt;/div&gt;
                          &lt;div class="galleryText"&gt;&lt;div class="leftCol noborder" style="text-align: left;"&gt;&lt;strong&gt;Project III&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;
                      &lt;/li&gt;
  
                      &lt;/ul&gt;
  
          &lt;/li&gt;
  
  &lt;li id="nextControl"&gt;&lt;a href="#"&gt;Next&lt;/a&gt;&lt;/li&gt;
          &lt;li id="copyright"&gt;&amp;copy; O'Gorman Construction Ltd&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  
  
      &lt;div id="main"&gt;
  </code></pre>
  
  <p>I think the bit I need to edit is within actions.js but I'm not sure what I need to change</p>
  
  <pre><code>    $(window).hashchange();
  });
  
  function runSetups() {
      interceptLinks();
      setupHomeGallery();
      setupProjects();
      setupProject();
      setupNews();
      setupBackToTop();
      setupStickies();
  }
  
  function setupWindowEvents() {
      $(window).scroll(checkScrolling);
  
      $(window).hashchange(function () {
          var hash = location.hash;
  
          loadContent(hash.substr(1));
      });
  
      $(document).mousemove(function (event) {
          var mx = event.pageX;
          var my = event.pageY;
  
          if ($('#menuNav.open').length &gt; 0) {
              if (my &gt; $('#header').outerHeight() + 70) {
                  $('#menuNav .closeNav').trigger('click');
                  $('#menuNav').removeClass('open');
              }
          }
      });
  </code></pre>