I repalce one thing,
// Begin fading...
prev.fadeOut( speed );
$( hash ).fadeIn( speed, function() {
// Restart the timer
startTimer();
});
// Begin fading...
prev.fadeOut( speed, function() {
$( hash ).fadeIn( speed, function() {
// Restart the timer
startTimer();
});
});