﻿var _fontSizeValue      = 12
var _fontSizeAdd	    = 1;	
var _fontSizeLimitMais	= 26;
var _fontSizeLimitMenos	= 10;

function fontSize(container, tipo) {
    if (tipo == "mais") {
        _fontSizeValue = Math.min(_fontSizeLimitMais, _fontSizeValue + _fontSizeAdd);
    } else {
        _fontSizeValue = Math.max(_fontSizeLimitMenos, _fontSizeValue - _fontSizeAdd);
    }
    updateFontSize(container);
}

function updateFontSize(container) {
    var pObjs = document.getElementById(container).getElementsByTagName("p");
	for (var i=0; i < pObjs.length; i++)
	    pObjs[i].style.fontSize = _fontSizeValue + 'px';

    if (ddequalcolumns != null)
        ddequalcolumns.resetHeights()
}