scrolltop function not focusing the element correctly
<p>I am using a function to focus on the content of the div, i used this function, but onclick the content not focusing properly. while i click on the third link it focus on the second, as well the fourth focusing 3rd content... it works buggy.. any idea?</p>

<p>my code is :</p>

<pre><code>$(function(){
        $('#navi a').click(function(e){
            e.preventDefault(); 
            move($(this).attr("href")); 
        })

        function move(id){
            $('#content').animate({scrollTop:$(id).offset().top},'slow');
        }
    })
</code></pre>

<p>while i alert and get the offset().top, it show the wrong values on each time..
i am taking the id's from 'a''s href. thanks</p>
