if (parseInt(navigator.appVersion)>3) {
if (navigator.appName=="Netscape") {
winW = window.innerWidth-16;
winH = window.innerHeight-16;
}
if (navigator.appName.indexOf("Microsoft")!=-1) {
winW = document.documentElement.offsetWidth-20;
winH = document.documentElement.offsetHeight-20;
}
}
http://www.javascripter.net/faq/browserw.htm