If I understand you correctly, you want to center the element vertically and horizontally based on the window, not the document. This may be a little painful, but you can use javascript to determine the window size, scroll position, element size, etc., and then place the element in the center of the window (not the document, but the viewport).
If you want this element to remain in the window schedule when scrolling, you would need to fix the scroll event and adjust the position.
The code for this differs from one browser to another.
James Conigliaro Jun 11 '09 at 16:19 2009-06-11 16:19
source share