window.onload = function()
{
	new Ajax.Updater('footer', '/include/footer.html', { method:'get' });
	new Ajax.Updater('header', '/include/header.html', { method:'get' });
	
	PositionNavPic();
	Element.show('navpic');
	
	$('body').style.visibility = 'visible';
}

window.onresize = function()
{
	PositionNavPic();
}

function PositionNavPic()
{
	var scr = {width:document.body.clientWidth, height:document.body.clientHeight};
	var obj = Element.getDimensions('header');
	var space = Math.round((scr.width - obj.width)/2);
	
	$('navpic').style.right = space + 15;
}
