var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } //format= div ID, motion, xposition, yposition, width, row height x no of rows, parent// new ypSlideOutMenu("menu1", "down", myWidth/2-388, 126, 120,20*9+10) new ypSlideOutMenu("menu2", "down", myWidth/2-279, 126, 120,20*4+10) new ypSlideOutMenu("menu3", "down", myWidth/2-150, 126, 120,20*5+10) new ypSlideOutMenu("menu4", "down", myWidth/2-68, 126, 120,20*3+10) new ypSlideOutMenu("menu5", "down", myWidth/2+29, 126, 120,20*5+10) new ypSlideOutMenu("menu6", "down", myWidth/2+102, 126, 120,20*3+10) ypSlideOutMenu.writeCSS();