Development of jquery.scrollTo to align to center of DIV

Development of jquery.scrollTo to align to center of DIV

Hi all,
 
I have a quite convoluted question so please try and keep up with my thought process!
 
Using scrollTo, I have got it working well but there is one addition which I just can't figure out the code to do (morelike integrate). I would like to take centralise the window in the center of a given DIV rather than the corner.
 
I as thinking of measuring the width of the window minus the DIV width and divide but is this really the best way? Height isn't really an issue...
 
The code within the html is:
 
<a href="#home" onclick="$.scrollTo( {top:'1686px', left:'3072px'} , 800, {easing:'elasout'} );">home</a>
 
Maybe the left portion would be one way of achieveing this. Is there any other way from a more experienced scrollTo/ jquery user?
 
Many thanks,
 
Tom