function centerLayers()
{
	curLeft = 0;
	chgLeft = 0;
	totWidth = 0;
	setLeft = false;
	
	for (i = 0; i < document.body.childNodes.length; i++)
	{
		cNode = document.body.childNodes[i];
		if (cNode != null && cNode.nodeType == 1 && cNode.tagName.toLowerCase() == "div")
		{
			if (!setLeft)
			{
				curLeft = cNode.offsetLeft;
				setLeft = true;
			}
			
			totWidth += cNode.offsetWidth;
		}
	}
	
	//alert("totWidth="+totWidth);
	//alert("document.body.clientWidth="+document.body.clientWidth);
	
	if ((document.body.clientWidth - totWidth)/2 >= 5)
	{
		chgLeft = (document.body.clientWidth - totWidth)/2 - curLeft;
	}
	else
	{
		chgLeft = -curLeft + 5;
	}
	
	//alert("chgLeft="+chgLeft);
	//alert("curLeft="+curLeft);
	
	for (i = 0; i < document.body.childNodes.length; i++)
	{
		cNode = document.body.childNodes[i];
		if (cNode != null && cNode.nodeType == 1 && cNode.tagName.toLowerCase() == "div")
		{
			cNode.style.left = cNode.offsetLeft + chgLeft + "px";
			//alert("cNode["+i+"].style.left="+cNode.style.left);
		}
		
	}
}