I have some calculations that rely on window.innerHeight. But as I have found out this is not available in any IE before IE9. All the other options I have look
window.innerHeight
Use following in your document.ready and define innerHeight explicitly.
document.ready
innerHeight
window.innerHeight = window.innerHeight || document.documentElement.clientHeight