jQuery disable link if already on page
<p>I have this jquery code that dynamically loads an html page into a div when a user clicks on a link in a list.</p>

<p>Is there a way to disable one of the links if the user is already viewing the page it links to? Right now the loading animation is triggered every time the link is clicked even if the requested link is already showing.</p>

<p>I need the event to not trigger if the page it calls and loads is already displayed.</p>

<pre><code>$('#navigation a').click(function(){

    var toLoad = $(this).attr('href')+' #content';
    $('#content').hide("slide",{direction:"up"},1000,loadContent);
    window.location.hash = $(this).attr('href').substr(0,$(this).attr('href').length-5);
    function loadContent() {
        $('#content').load(toLoad,'',showNewContent())
    }
    function showNewContent() {
        $('#content').show("slide",{direction:"down"},1000);
    }
    return false;

});
</code></pre>
