/* Queueing event handlers for the "load" event */ if ( window.addEventListener ) window.addEventListener( "load", init, true ); // firefox else window.attachEvent( "onload", init, true ); // ie function init(e) { // review var windowInnerHeight = document.documentElement.clientHeight; //alert( windowInnerHeight ); var contentDiv = document.getElementById( "content" ); var contentPosY = contentDiv.offsetTop + contentDiv.offsetHeight; if ( contentPosY < windowInnerHeight ) { var availableSpace = windowInnerHeight - contentPosY; contentDiv.style.height = contentDiv.offsetHeight - 20 + availableSpace + "px"; } // set document title (for orphean page ...) var defaultDocumentTitle = "IstoInferno"; if ( !/(defaultDocumentTitle)/.test( document.title ) ) document.title = ( document.title.length > 0 )? defaultDocumentTitle + " > " + document.title : defaultDocumentTitle; }