[jQuery] Using ScrollTo to Scroll to DIV and center it in thw window

[jQuery] Using ScrollTo to Scroll to DIV and center it in thw window


I would like to have a navigation in my DIV's that allows me to jump
around to other DIV's placed around the screen. Right now here is what
I have using ScrollTo:
http://www.keithmuth.net/jquery/
I would like to keep the DIV's centered in the screens at all times,
whether you jump to it through the navigation or resize the browser
window (similar what I was trying to do in mootools here:
http://www.keithmuth.net/zooming/). I thought I would try this out in
JQuery because everyone tells me how great these forums are for help.
I assume I need to somehow get the height and width of the window and
then apply that to an offset? Not sure the best what the best way is
to do that in JQuery but if you all could help I would appreciate it.
Thanks!