function resize() {
	cont = document.getElementById("ContentContainer");
	if (cont != null) {
		if (typeof(window.innerWidth) == 'number') {
			window.onresize = resizeWindow;
			resizeWindow();
		} else if (document.documentElement && document.documentElement.clientWidth) {
			window.onresize = resizeDocumentElement;
			resizeDocumentElement();
		} else if (document.body && document.body.clientWidth) {
			window.onresize = resizeBody;
			resizeBody();
		}
	}
}

function resizeWindow() {
	cont = document.getElementById("ContentContainer");
	if (cont != null) {
		if (window.innerWidth < 850)
			cont.width = "100%";
		else
			cont.width = "800";
	}
}

function resizeDocumentElement() {
	cont = document.getElementById("ContentContainer");
	if (cont != null) {
		if (document.documentElement.clientWidth < 850)
			cont.width = "100%";
		else
			cont.width = "800";
	}
}

function resizeBody() {
	cont = document.getElementById("ContentContainer");
	if (cont != null) {
		if (document.body.clientWidth < 850)
			cont.width = "100%";
		else
			cont.width = "800";
	}
}