function resize_text(amount) {
	var html_body = document.getElementById('content_right');
	if (html_body) {
		with (html_body) {
			if (!style.fontSize) {
				var int_size = 100;
			} else {
				var int_size = parseInt(style.fontSize);
			}
			int_size += amount;
			html_body.style.fontSize = int_size + "%";
		}
		
		// Store current value in a cookie
		document.cookie = "omc_body_font_size="+int_size+";path=/;";
	}
}

function font_size_override() {
	// Was font size previously changed?
	if(document.cookie.indexOf('omc_body_font_size') > -1) {
		var font_size_cookie =
document.cookie.match(/omc_body_font_size=[0-9]+/);
		var font_size =
parseInt(font_size_cookie.toString().split('=')[1]) - 76;
		if(!isNaN(font_size)) {
			resize_text(font_size);
		}
	} else {
		return false;
	}
}