var fontSize = 13;

function setFaceSize()
{
    lineHeight = fontSize + Math.round(.3*fontSize);

    for (i = 0; i < 2; i++)
    {
        obj = document.getElementById("articleBody" + i);
        if (obj)
        {
            obj.style.fontSize = fontSize+"px";
            obj.style.lineHeight = lineHeight+"px";

            if (obj.childNodes.length > 0)
            {
                for (j=0;j<obj.childNodes.length;j++)
                {
                    if (obj.childNodes[j].style!=null)
                    {
                        obj.childNodes[j].style.fontSize = fontSize+"px";
                        obj.childNodes[j].style.lineHeight = lineHeight+"px";
                    }
                }
            }
        }
    }
}

function eventFaceLarger()
{
    fontSize = fontSize+2;

    if (fontSize > 18) {
        fontSize = 18;
    }

    setFaceSize()
}


function eventFaceSmaller()
{
    fontSize = fontSize-2
    if (fontSize < 10) fontSize = 10;

    setFaceSize();
}

function eventFaceNormal()
{
    fontSize = 13;

    setFaceSize();
}
