this example worked in IE:
<div id="benluc" style="position:absolute;width:200px;height:200px;background-color:red"></div>
<script>
function centerElement(obj)
{
var ofsth = parseInt(obj.style.height)/2
var ofstw = parseInt(obj.style.width)/2
alert(ofsth)
obj.style.left = window.document.body.offsetWidth/2 - ofstw
obj.style.top = window.document.body.clientHeight/2 - ofsth
}
centerElement(benluc)
</script>
this works in IE, for a ns6 version, use document.getElementById and availHeight and availWidth jared@aauser.com