function FixBkg (id) {
	var bkgExt = document.getElementById (id);
	var layout = document.getElementById ("Layout");
	var layout2 = document.getElementById ("MainLayout");
	
	var contentSpace = document.getElementById ("ContentSpace");
	
	if (!layout.originalHeight) {
		layout.originalHeight = layout.offsetHeight;
		layout2.originalHeight = layout2.offsetHeight;
	}
	
	layout2.style.height = layout2.originalHeight + "px";
	
	if (window.innerWidth) {
		var height = window.innerHeight;
	} else if (document.documentElement && document.documentElement.clientWidth) {
		var height = document.documentElement.clientHeight;
	} else {
		var height = document.body.clientHeight;
	}
	
	if (layout.originalHeight > height) {
		height = layout.originalHeight;
	}
	
	layout.style.height = height + "px";
	
	bkgExt.style.top = (height - 48) + "px";
	bkgExt.style.width = document.body.offsetWidth + "px";
	bkgExt.style.display = "block";
	
	layout2.style.height = contentSpace.offsetHeight + "px";
}

