function preventShake()
{
//	var a = document.getElementsByTagName
	var documentHeight = document.getElementsByTagName('html')[0].scrollHeight;
	var windowHeight = window.innerHeight;
	if (!windowHeight) return;		//ie does fail this, but doesn't shake because it fails to hide the scroll at all.
	
	var windowWidth = window.innerWidth;
	
	var extraNudge = -(windowWidth%2);
	
	if (documentHeight && windowHeight)
	{
		if (documentHeight<=windowHeight)
		{
			var bg = document.getElementById('background');
			bg.style.marginLeft='-'+(8+extraNudge)+'px';
			var pg = document.getElementById('page');
			pg.style.marginLeft='-'+(8+extraNudge)+'px';
			var ft = document.getElementById('footer');
			if (ft)
				ft.style.marginRight='-'+(486)+'px';
		}
	}

/*	if (document.height && window.innerHeight)
	{
		if (document.height <= window.innerHeight)
		{
			var d = document.getElementById('background');
			d.style.marginLeft='-508px';
			d = document.getElementById('page');
			d.style.left='-8px';
			d = document.getElementById('footer');
			d.style.marginRight='-487px';
		}
	}
	*/
}
