On this page, where the the style of the little red square is declared as a #style, the alert that pops up is empty. However, when the style is declared as the style attribute of the DIV the alert correctly displays the "top" attribute of the DIV's DOM object. What am I doing wrong? contact me
<HTML><HEAD><TITLE></TITLE>
<SCRIPT LANGUAGE="JavaScript">
function init() {
	alert(document.all['menuFrameDiv'].style.top)
	}
</SCRIPT>

<STYLE TYPE="text/css">
#menuFrameDiv {position:absolute; left:50px; top:45px; width:30px; height:30px; clip:rect(0px 30px 30px 0px); background-color:red; layer-background-color:red;}
</STYLE>

</HEAD><BODY onLoad="init()">

<DIV ID="menuFrameDiv">
</DIV>

</BODY></HTML>