var gecko = (navigator.userAgent.indexOf("Gecko") != -1);

function adjustwidth() {
	var w = gecko ? document.body.offsetWidth : document.body.clientWidth;
	var c = document.getElementById("right-column");
	var c1 = document.getElementById("icons");
	var c2 = document.getElementById("copy");
	var u = document.getElementById("index-feat");
	if (!c) return;
	if (gecko) {
		c.style.width = w - 201 + "px";
		c1.style.width = w - 201 + "px";
		c2.style.width = w - 201 + "px";
		if (u) u.style.width = w - (192 + 201) + "px"
		if (c.className.indexOf("sect") != -1) {
			c.style.width = w - 210 + "px";
			if (u) u.style.width = w - (192 + 210) + "px"
		}
		if (c.className.indexOf("full") != -1) c.style.width = w - 210 + "px"
	} else {
		c.style.width = w - 186 + "px";
		c1.style.width = w - 186 + "px";
		c2.style.width = w - 186 + "px";
		if (u) u.style.width = w - (192 + 186) + "px";
		if (c.className.indexOf("sect") != -1) {
			c.style.width = w - 195 + "px";
			if (u) u.style.width = w - (192 + 195) + "px";
		}
		if (c.className.indexOf("full") != -1) c.style.width = w - 195 + "px"
	}
}

if (gecko) {
	window.addEventListener("load", adjustwidth, false);
	window.addEventListener("resize", adjustwidth, false);
} else {
	window.attachEvent("onload", adjustwidth);
	window.attachEvent("onresize", adjustwidth);
}

