var iViewPortHeight; // all except Explorer if (self.innerHeight) { iViewPortHeight = self.innerHeight; } // Explorer 6 Strict Mode else if (document.documentElement && document.documentElement.clientHeight) { iViewPortHeight = document.documentElement.clientHeight; } // other Explorers else if (document.body) { iViewPortHeight = document.body.clientHeight; } var bIsIE = (document.all) ? true : false ; window.onload = function() { if (bIsIE) { /* header: 210, footer: 50 */ var iNavHeight = iMainHeight = iViewPortHeight - 210 - 50; document.getElementById("navigation").style.height = iNavHeight + "px"; document.getElementById("main").style.height = iNavHeight + "px"; } }