Smoothscroller in relative layouts

I have already shown you how to do this:

It makes no difference where you jump, you just need to change the target using the example in the other topic, even with a downloadable example.

  	var target = $('#topLink');
  	$('html,body').animate({
      scrollTop: target.offset().top  
      // this value sets the speed (1000 is 1 second)  
    }, 1000);	

I added an ID to the <a> which is the target, and I added the code above to the arrow.