function PositionWaitIcon() {
	var WaitIcon = document.getElementById('waiticoncontainer');

	if (!WaitIcon) return false;

// dimensões interiores
var width, height;
if (self.innerHeight) {// all except Explorer
	width = self.innerWidth;
	height = self.innerHeight;
} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
	width = document.documentElement.clientWidth;
	height = document.documentElement.clientHeight;
} else if (document.body) { // other Explorers
	width = document.body.clientWidth;
	height = document.body.clientHeight;
}

// offset
var xPos, yPos;
if (self.pageYOffset) { // all except Explorer
	xPos = self.pageXOffset;
	yPos = self.pageYOffset;
} else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict
	xPos = document.documentElement.scrollLeft;
	yPos = document.documentElement.scrollTop;
} else if (document.body) { // all other Explorers
	xPos = document.body.scrollLeft;
	yPos = document.body.scrollTop;
}

// WaitIcon.style.width WaitIcon.style.height
	x = xPos + width/2 - (100 / 2);
	y = yPos + height/2 - (100 / 2);
	WaitIcon.style.left = x + 'px';
	WaitIcon.style.top = y + 'px';

	setTimeout('PositionWaitIcon()', 200);
}
PositionWaitIcon();
