function setVariables()
{
	if (document.layers)
	{
		v=".top=";
		dS="document.";
		sD="";
		y="window.pageYOffset";
	}
	else if (document.all)
	{
		v=".pixelTop=";
		dS="";
		sD=".style";
		y="document.body.scrollTop";
	}
	else if (document.getElementById){
	y="window.pageYOffset";
	}
}

function checkLocation()
{
	object="spMainMenu";
	yy=eval(y);
	if (document.getElementById)
	{
		document.getElementById("spMainMenu").style.top=yy;
		if (Math.round((document.body.clientWidth - 777) / 2) > 0)
		{
		    document.getElementById("spMainMenu").style.left=Math.round((document.body.clientWidth - 777) / 2);
	    }
	    else
	    {
		    document.getElementById("spMainMenu").style.left=0;
	    }
	}
	else
	{
		eval(dS+object+sD+v+yy);
	}
	setTimeout("checkLocation()",10);	
}
