jqModal creating a weird bug in my scrollTo script
<p>At the top of my page I have 4 links and each take you to a different part of the page. I have used the scrollTo plugin which works great, however there is a weird bug with my script which I have noticed only occurs after I have called my jqModal popup window.</p>

<p>When I click on one of the links the page doesn't scroll as expected. Instead, it skips to that section without scrolling and then it scrolls to the top of it. It's very annoying and I don't know how to fix it. I thought that maybe I could include a start position in my script by getting the current position of the top of the page using: <code>$(document).scrollTop()</code> but it does not work :(</p>

<pre><code>$('.home, #header ul li').click(function(e){
   e.preventDefault();
   var id = $(this).attr('data-rel');
   window.location.hash = id.replace(/_/g,"-");
    $.scrollTo('#'+id+'_anchor', 500, {
       easing : 'easeInCubic',
       onAfter:function(){              
          $('.home, #header ul li').removeClass('selected');
          $(this).addClass('selected');
      }
   });
});
</code></pre>
