
var vLeft;
var vTop;
function posicionaLayer()
{
with(document.getElementById('minhaLayer').style)
{
vLeft = ((document.body.clientWidth - parseInt(width)) / 2);
vTop = ((document.body.clientHeight - parseInt(height)) / 2);
position = 'absolute';
left = vLeft;
top = vTop;
//display = 'block';
}
}
function fixar()
{
{
document.all['minhaLayer'].style.position = 'relative';
document.all['minhaLayer'].style.posLeft = document.body.scrollLeft + vLeft;
document.all['minhaLayer'].style.posTop = document.body.scrollTop + vTop;
}
setTimeout('fixar()',100);
}


