
var defaultFontSize = 81;
var minimumFontSize = 60;
var maximumFontSize = 100;

var currentFontSize = defaultFontSize;


function changeFontSize(diff) {
	currentFontSize = parseInt(currentFontSize) + parseInt(diff * 5);

	if(currentFontSize > maximumFontSize)
		currentFontSize = maximumFontSize;
	else if(currentFontSize < minimumFontSize)
		currentFontSize = minimumFontSize;

	setFontSize(currentFontSize);
}

function setFontSize(fontSize) {
	document.body.style.fontSize = fontSize + '%';
}
