// Font configuration
var fontMinimumSize = 0.8;
var fontMaximumSize = 2;
var fontSizeStep = 0.1;
var currentFontSize = 1;
// End font configuration




function MakeFontBigger () {
	currentFontSize += fontSizeStep;
	if (currentFontSize > fontMaximumSize) {
		currentFontSize = fontMaximumSize;
	}
	SetFontSize(currentFontSize);
}

function MakeFontSmaller () {
	currentFontSize -= fontSizeStep;
	if (currentFontSize < fontMinimumSize) {
		currentFontSize = fontMinimumSize;
	}
	SetFontSize(currentFontSize);
}

function SetFontSize(s) {
	$(document.body).setStyle({
	  fontSize: s+'em'
	});
}
