
// Font zooming
// To be able to make text larger and smaller
// Created Nichlas Brødegaard Larsson / Inlead Media ApS (www.inleadmedia.com)
//
//

// zoomStep - how much the size will change, each step
var zoomStep = 1;

// zoomFontType - if the font-size type is px, em, % or something else
var zoomFontType = 'px';

function zoomLarger()
{
	var currentSize = document.body.currentStyle.fontSize.replace(zoomFontType,'');
	document.body.style.fontSize = zoomStep+parseInt(currentSize);
}

function zoomSmaller()
{
	var currentSize = document.body.currentStyle.fontSize.replace(zoomFontType,'');
	document.body.style.fontSize = parseInt(currentSize)-zoomStep;
}