/***************************************************************************
background.js - handles centering of background image dependant on screen
                resolution. Also runs when window is resized.
***************************************************************************/

function centerBg()
{
	if (document.body.clientWidth > 1024)
	{
		offset = parseInt((document.body.clientWidth - 1050) / 2);
		document.body.style.backgroundPosition = (offset - 50) + "px 0px";
	}
	else
	{
		document.body.style.backgroundPosition = "0px 0px";
	}
}
