
function fontSizer(incr) {
	var newSize = fontSizeIndex;
	newSize += incr;
	if (newSize < 0 ) {
		fontTries += 1;
		newSize = 0;
		if (fontTries > 1) {
			alert("You cannot make the text any smaller!\n\nTry changing the display settings on your browser\nif this isn\'t small enough...");
		}
		return;
	}
	if (newSize > 7 ) {
		fontTries += 1;
		newSize = 7;
		if (fontTries > 1) {
			alert("You cannot make the text any larger!\n\nTry changing the display settings on your browser\nif this isn\'t big enough...");
		}
		return;
	}
	fontTries = 0;
	fontSizeIndex = newSize;
	fontSizeContinue();
}

function fontSizeReset() {
	fontSizeIndex = 2;
	fontTries = 0;
	fontSizeContinue();
}

function fontSizeContinue() {
	winScrollY = xScrollTop();
	saveLayout();
	refresh();
}

function fontSizerStyles() {
	if (document.getElementById) {
		btn1 = document.getElementById('fontMinus');
		btn2 = document.getElementById('fontReset');
		btn3 = document.getElementById('fontPlus');
		if (btn1 && btn2 && btn3) {
			btn1.className = 'fontMinus'
			btn2.className = 'fontReset'
			btn3.className = 'fontPlus'
			if (fontSizeIndex == 0) {
				btn1.className = 'fontMinusInactive'
			}
			if (fontSizeIndex == 2) {
				btn2.className = 'fontResetInactive'
			}
			if (fontSizeIndex == 7) {
				btn3.className = 'fontPlusInactive'
			}
		}
	}
}


