function recenterFrontpage() {
	if (document.documentElement.clientWidth > 1000 && document.documentElement.clientHeight > 543) {
		document.getElementById('pane_wrapper').style.position = "absolute";
		centerVerticleSplashLogo("splashlogo", 1006, 550);
	} else {
		document.getElementById('pane_wrapper').style.position = "relative";
		defaultPos('pane_wrapper', 0, 0);
	}
}

function centerVerticleSplashLogo(id, w, h)
{
	// Determine the width & height of the browser window
	var bWidth = document.documentElement.clientWidth;
	var bHeight = document.documentElement.clientHeight;
	
	// Subtract the height of the object, to
	// get the top coordinate of the object
	var leftCoord = (bWidth / 2) - (w / 2);
	var topCoord = (bHeight / 2) - (h / 2);
	
	// Reposition the object
	document.getElementById(id).style.left = leftCoord + 'px';
	document.getElementById(id).style.top = topCoord + 'px';
	document.getElementById(id).style.position = "absolute";
}

function relocateNavbar(id, w, h)
{
	// Determine the width & height of the browser window
	var bWidth = (document.width !== undefined) ? document.width : document.body.offsetWidth;
	var bHeight = (document.height !== undefined) ? document.height : document.body.offsetHeight;
	var clientHeight = document.documentElement.clientHeight;
	
	// Subtract the height of the object, to
	// get the top coordinate of the object
	var leftCoord = (bWidth / 2) - (w / 2);
	var topCoord = (bHeight - (bHeight - clientHeight)) - h;
	
	// Reposition the object
	document.getElementById(id).style.left = leftCoord + 'px';
	document.getElementById(id).style.top = topCoord + 'px';
}

function defaultPos(id, x, y)
{
	// Reposition the object
	document.getElementById(id).style.left = x + 'px';
	document.getElementById(id).style.top = y + 'px';
	//document.getElementById(id).style.position = "relative";
}

function recenterBar() {
	if (document.documentElement.clientWidth > 1000 && document.documentElement.clientHeight > 480) {
		relocateNavbar("navigation", 1000, 48);
	} else {
		defaultPos('navigation', 10, 525);
	}
}