if (document.getElementById("overlay")) { var hw = getSize(); var v = document.getElementsByTagName("html")[0].scrollHeight; // alert(v); document.getElementById("overlay").style.height = v+"px"; } /****************************************************/ function getSize() { var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { myWidth = window.innerWidth; //Non-IE myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { myWidth = document.documentElement.clientWidth; //IE 6+ in 'standards compliant mode' myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { myWidth = document.body.clientWidth; //IE 4 compatible myHeight = document.body.clientHeight; } // return [ myWidth, myHeight ]; } /****************************************************/ function getScrollXY() { var scrOfX = 0, scrOfY = 0; if( typeof( window.pageYOffset ) == 'number' ) { scrOfY = window.pageYOffset; //Netscape compliant scrOfX = window.pageXOffset; } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { scrOfY = document.body.scrollTop; //DOM compliant scrOfX = document.body.scrollLeft; } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) { scrOfY = document.documentElement.scrollTop; //IE6 standards compliant mode scrOfX = document.documentElement.scrollLeft; } return [ scrOfX, scrOfY ]; } /****************************************************/ function bild_show(name) { document.getElementById("overlay").style.display="inline"; document.getElementById("innerlay").innerHTML = ''; } /****************************************************/ function bild_hide() { document.getElementById("overlay").style.display="none"; document.getElementById("innerlay").innerHTML = ""; }