http://www.thecomputeracademy.com

view the source on the left frame, you will see the javascript info how to do this.

there are 2 different methods to calculate teh height,
1) for IE...
1) for Netscape

but basically the code is :
     if (ScrollTo>height){
     scrollBy(0,ScrollTo-(height/2));
     }