I have been following this tutorial, but visiting a link only reloads the frontpage. It's the excellent fade-in animation, but following the frontpage is reloaded no links are clickable.

Can anybody let me know what I am doing wrong?

The website is www.madsrosendahl.dk

edit: Jakub -> Sure :-D

I have added the code below to functions.php

if (!is_admin()) {
wp_enqueue_script('hash-change', get_stylesheet_directory_uri() . '/js/jquery.ba-hashchange.min.js', array('jquery'), false, true);
wp_enqueue_script('ajax-theme', get_stylesheet_directory_uri() . '/js/ajax.js', array('jquery', 'hash-change'), false, true);}

And also the code for that ajax.js

jQuery(document).ready(function($) {
var $mainContent = $("#container"),
    siteUrl = "http://" + top.location.host.toString(),
    url = ''; 

$(document).delegate("a[href^='"+siteUrl+"']:not([href*=/wp-admin/]):not([href*=/wp-login.php]):not([href$=/feed/])", "click", function() {
    location.hash = this.pathname;
    return false;
}); 

$("#searchform").submit(function(e) {
    location.hash = '?s=' + $("#s").val();
    e.preventDefault();
}); 

$(window).bind('hashchange', function(){
    url = window.location.hash.substring(1); 

    if (!url) {
        return;
    } 

    url = url + " #content"; 

    $mainContent.animate({opacity: "0.1"}).html('<p>Please wait...</>').load(url, function() {
        $mainContent.animate({opacity: "1"});
    });
});

$(window).trigger('hashchange'); } ) ;