I have a div on page load has the css "Display:none; position:absolute"
There is a jQuery click event on a label that shows this div
Before I do .fadeIn() on I find the width and height of the window and set the offset of the div to try place to div in the centre of the screen.
This div also has a close image that has a jQuery click event that sets the div to fade out
The first time I open the div the div is positioned correctly on the screen, if I close the div and open it the div moves further right and down. It keeps on doing this until I do a full page refresh