t = getWindowHeight(); if (windowHeight > 0) { //var headHeight = document.getElementById('infoMenu').offsetHeight; var headHeight = "40"; var contentHeight = document.getElementById('infoContent_new').offsetHeight; var footerElement = document.getElementById('footer'); var footerHeight = footerElement.offsetHeight; if (windowHeight - (contentHeight + headHeight + footerHeight + 10) >= 0){ footerElement.style.position = 'absolute'; footerElement.style.bottom = '0px'; } else { footerElement.style.position = 'absolute'; footerElement.style.top = 300 + contentHeight + 'px'; } } } },1); } //Body OnLoad Listener if (window.addEventListener){ window.addEventListener('load', initOnLoad, false); window.addEventListener('load', resizeContent, false); window.addEventListener('load', positionFooter, false); } else if (window.attachEvent){ window.attachEvent('onload', resizeContent); window.attachEvent('onload', initOnLoad); window.attachEvent('onload', positionFooter); } //Body OnResize Listener if (window.addEventListener){ window.addEventListener('resize', initOnLoad, false); window.addEventListener('resize', resizeContent, false); window.addEventListener('resize', positionFooter, false); } else if (window.attachEvent){ window.attachEvent('onresize', initOnLoad); window.attachEvent('onresize', resizeContent); window.attachEvent('onresize', positionFooter); } //Body OnScroll Listener if (window.addEventListener){ window.addEventListener('scroll', scrollEvent, false); window.addEventListener('click', positionFooter, false); } else if (window.attachEvent){ window.attachEvent('onscroll', scrollEvent); window.attachEvent('onclick', positionFooter); }