This one works perfectly for the following browser's GoogleChrome,Safari,Firefox with small problem on Firefox
Following is the problem
The window.outerheight and window.innerHeight returns different values ,
a)when the script is run locally on the same browser
b)when the script is run after publishing the page on the server and ran from the same browser.
This issues do not come for other browser except firefox.For other browser the outerheight and innerheight comes same, before and after the script is published on the server.
The firefox browser version used is : firfox 3.6.16
Os is Windows Xp