jQuery replaceWith and restore the scrollposition

jQuery replaceWith and restore the scrollposition

Hi.
I have a DIV position absolute and on overflow scroll. Whenever status changes  whole DIV is replaced with a new.  The problem now is before the scroll animate event triggers . The DIV is set scroll position to 0 and starts from the top and not from where it was before. How to call replaceWith(newDiv,true) to keep the scroll position.

This issue is discussed here http://stackoverflow.com/questions/2009029/restoring-page-scroll-position-with-jquery

Thanks
B L Praveen