var originalTextSize = 70;
var actualTextSize = 70;
var offsetTextSize = 20;

function textSizeInit() 
{
	$('#fontBigger').click(textSizeInc);
	$('#fontSmaller').click(textSizeDec);
}

function textSizeInc() 
{
	if (actualTextSize - offsetTextSize < originalTextSize * 2) 
	{
		actualTextSize += offsetTextSize;
		$('body').css('font-size', actualTextSize + '%');
	}
}

function textSizeDec() 
{
	if (actualTextSize - offsetTextSize > originalTextSize / 2) 
	{
		actualTextSize -= offsetTextSize;
		$('body').css('font-size', actualTextSize + '%');
	}
}

$().ready(textSizeInit);
