function reposition() {
	XPos = Math.floor(document.body.clientWidth / 2) - 380;
	if (XPos <= 0) XPos = 0;
	document.getElementById('headerLayer').style.left = XPos;
	document.getElementById('sideNavLayer').style.left = XPos + 17;
}
function showLayers() {
	reposition();
	document.getElementById('headerLayer').style.visibility = 'visible';
	document.getElementById('sideNavLayer').style.visibility = 'visible';
}

window.onresize = reposition;
window.onload = showLayers;