$(document).ready(function(){
   $('a[rel^=#]').live('click', function(e){
     e.preventDefault();
     target = $(this).attr('rel');
     $.ajax({
            type        : 'GET',
            url         : $(this).attr('href'),
            data        : 'ajax=1',
            cache       : false,
            dataType    : 'html',
            success     : function(html, textStatus, XMLHttpRequest){
               $(target).html(html);
            },
            error : function(XMLHttpRequest, textStatus, errorThrown){
               alert('Er is iets fout gegaan in de communicatie met de server:\n' + errorThrown);
            }
        });
    });
});
