/* Resizes the font for the current page */
function fontResize(font_size){
	var body_element = document.getElementsByTagName('body');
	var tools_area = document.getElementById('tools-area');
	body_element = body_element[0];
	switch (font_size) {
		case 'small':
			body_element.style.fontSize = "60%";
			tools_area.style.width = "530px";
			break;
		case 'medium':
			body_element.style.fontSize = "70%";
			tools_area.style.width = "550px";
			break;
		case 'large':
			body_element.style.fontSize = "85%";
			tools_area.style.width = "610px";
			break;
	}

	storeFontSize(font_size);
	adjust_template_containers();
}

function storeFontSize(size) {
	createCookie('stryker_font_size', size, 7);
}

function loadFontSize() {
	fontResize(readCookie('stryker_font_size'));
}