window.onresize = positionAll;

function initialize()
{
	positionAll();
}

function positionAll()
{
	positionDiv("siteframe");
}

function positionDiv(id)
{
	var element = document.getElementById(id);
	var windowWidth = document.body.clientWidth;
	var elementWidth = element.clientWidth;
	element.style.left = ((windowWidth - elementWidth) / 2);
	
	var windowHeight = document.body.clientHeight;
	var elementHeight = element.clientHeight;
	element.style.top = ((windowHeight - elementHeight) / 2);
}