origiLeft = new Array();

function alignCenter(state)
{
	if (ie)
	{
		oDiv = document.all.tags("div");
		iWidth = document.body.clientWidth;
	}
	else if (n47)
	{
		if (state == 1)
		{
			window.location = window.location;
		}
		oDiv = document.layers;
		iWidth = window.innerWidth;
	}
	else if (n60)
	{
		oDiv = document.getElementsByTagName("div");
		iWidth = window.innerWidth;
	}
	iLength = oDiv.length - 1;
	for (i=0; i<=(iLength); i++)
	{
		if (iWidth >= 727)
		{
			if (!n47)
			{
				if (state == 1)
				{
					currentLeft = origiLeft[i];
				}
				else
				{
					currentLeft = parseInt(oDiv[i].style.left);
					origiLeft[i] = currentLeft;
				}
			}
			else
			{
				if (state == 1)
				{
					currentLeft = origiLeft[i];
				}
				else
				{
					currentLeft = parseInt(oDiv[i].left);
					origiLeft[i] = currentLeft;
				}
			}
			newLeft = 363 - currentLeft;
			newLeft = (iWidth/2) - newLeft;
		}
		if (n47 == 0)
		{
			if (iWidth >= 727)
			{
				oDiv[i].style.left = newLeft;
			}
			else
			{
				if (state == 1)
				{
					oDiv[i].style.left = origiLeft[i] + 20;
				}
				else
				{
					oDiv[i].style.left = parseInt(oDiv[i].style.left) + 20;
				}
			}
			if (oDiv[i].style.visibility == "hidden")
			{
				oDiv[i].style.visibility = "visible"
			}
		}
		else
		{
			if (iWidth >= 727)
			{
				oDiv[i].left = newLeft;
			}
			else
			{
				if (state == 1)
				{
					oDiv[i].left = origiLeft[i] + 20;
				}
				else
				{
					oDiv[i].left = parseInt(oDiv[i].left) + 20;
				}
			}
			if (oDiv[i].visibility == "hide")
			{
				oDiv[i].visibility = "visible"
			}
		}
	}
}