$(document).ready(function() {
        $("a.transition").hide();
    $("a.transition").click(function(event){
        event.preventDefault();
        linkLocation = this.href; // you should put here another link I think
        $("body").fadeOut(1000, redirectPage);            
    });            
    setTimeout("$('a.transition').fadeIn(1500, cb);", 1500);
});

function cb() {
    setTimeout("$('#secondLink').fadeIn(1000);", 1000); 
}

function redirectPage() {
      window.location = linkLocation;
}
