function id(x) {
	return document.getElementById(x);
}
var contentWrapper = id("contentWrapper");
var bar = id("bar");
var barWidth = 80;
var body = document.body;
var bodyHeight = body.offsetHeight - 1;
var bodyWidth = body.offsetWidth - 1;

bar.style.position = "absolute";
bar.style.left = 0;
bar.style.top = 0;

contentWrapper.style.left = barWidth + "px";
contentWrapper.style.margin = 0;
contentWrapper.style.paddingRight = 0;
contentWrapper.style.position = "absolute";
contentWrapper.style.top = 0;

id("content").style.marginRight = 80 + "px";

function resize() {
	if (bodyHeight !== body.offsetHeight) {
		bodyHeight = body.offsetHeight;
		bar.style.height = bodyHeight + 2000 + "px";
		contentWrapper.style.height = bodyHeight + "px";
	}
	if (bodyWidth !== body.offsetWidth) {
		bodyWidth = body.offsetWidth;
		contentWrapper.style.width = (bodyWidth - barWidth) + "px";
	}
}
resize();
window.onresize = function () {
	resize();
};
