var MINIMUM_FONT = "10";
var UNITS = "";

function elementFontSize(element)
{
    var fontSize = MINIMUM_FONT; 

    if (document.defaultView)
    {
        var computedStyle = document.defaultView.getComputedStyle(element, null);
        if (computedStyle)
        {
            fontSize = computedStyle.getPropertyValue("font-size");
        }
    }
    else if (element.currentStyle)
    {
        fontSize = element.currentStyle.fontSize;
    }

    if ((UNITS.length == 0) && (fontSize != MINIMUM_FONT))
    {
        UNITS = fontSize.substring(fontSize.length - 2, fontSize.length)
    }

    return parseFloat(fontSize);
}

function adjustFontSizeIfTooBig(idOfElement)
{
    var oTextBoxOuterDiv;
    var oTextBoxMiddleDiv;
    var oTextBoxInnerDiv;
    var oTextBoxOuterDiv = document.getElementById(idOfElement);
    
    if (oTextBoxOuterDiv)
    {
        oTextBoxMiddleDiv = getChildOfType(oTextBoxOuterDiv, "DIV", 0);
        if (oTextBoxMiddleDiv)
        {
            oTextBoxInnerDiv = getChildOfType(oTextBoxMiddleDiv, "DIV", 0);
            if (oTextBoxInnerDiv)
            {
                var offsetHeight = oTextBoxInnerDiv.offsetHeight;
                var specifiedHeight = offsetHeight;
                if (oTextBoxMiddleDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxMiddleDiv.style.height);
                }
                else if (oTextBoxOuterDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxOuterDiv.style.height);
                }
                if (offsetHeight > specifiedHeight)
                {
                    var smallestFontSize = 200;
                    
                    var aParaChildren = getParaDescendants(oTextBoxInnerDiv);
                    var oneLine = false;
                    for (i = 0; i < aParaChildren.length; i++)
                    {
                        var oParagraphDiv = aParaChildren[i];
                        var lineHeight = elementLineHeight(oParagraphDiv);
                        oneLine = oneLine || (lineHeight * 1.5 >= specifiedHeight);
                        if (oParagraphDiv.nodeName == "DIV")
                        {
                            var fontSize = elementFontSize(oParagraphDiv);
                            smallestFontSize = Math.min( smallestFontSize, fontSize );
                            for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                            {
                                var oSpan = oParagraphDiv.childNodes[j];
                                if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                {
                                    fontSize = elementFontSize(oSpan);
                                    smallestFontSize = Math.min( smallestFontSize, fontSize );
                                }
                            }
                        }
                    }
                    var minimum = parseFloat(MINIMUM_FONT);
                    
                    var count = 0
                    while ((smallestFontSize > minimum) && (offsetHeight > specifiedHeight) && (count < 10))
                    {
                        ++ count;
                        if (oneLine)
                        {
                            var oldWidth = parseInt(oTextBoxOuterDiv.style.width);
                            oTextBoxInnerDiv.style.width =
                                "" + oldWidth * Math.pow(1.05, count) + "px";
                        }
                        else
                        {
                            var scale = Math.max(0.95, minimum / smallestFontSize);
                            
                            for (i = 0; i < aParaChildren.length; i++)
                            {
                                var oParagraphDiv = aParaChildren[i];
                                if (oParagraphDiv.nodeName == "DIV")
                                {
                                    var paraFontSize = elementFontSize(oParagraphDiv) * scale;
                                    var paraLineHeight = elementLineHeight(oParagraphDiv) * scale;
                                    for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                                    {
                                        var oSpan = oParagraphDiv.childNodes[j];
                                        if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                        {
                                            var spanFontSize = elementFontSize(oSpan) * scale;
                                            var spanLineHeight = elementLineHeight(oSpan) * scale;
                                            oSpan.style.fontSize = spanFontSize + UNITS;
                                            oSpan.style.lineHeight = spanLineHeight + UNITS;
                                            smallestFontSize = Math.min( smallestFontSize, spanFontSize );
                                        }
                                    }
                                    oParagraphDiv.style.fontSize = paraFontSize + UNITS;
                                    oParagraphDiv.style.lineHeight = paraLineHeight + UNITS;
                                    smallestFontSize = Math.min( smallestFontSize, paraFontSize );
                                }
                            }
                        }
                        
                        offsetHeight = oTextBoxInnerDiv.offsetHeight;
                    }
                }
            }
        }
    }
}


function elementLineHeight(element)
{
    var lineHeight = MINIMUM_FONT; 
    
    if (document.defaultView)
    {
        var computedStyle = document.defaultView.getComputedStyle(element, null);
        if (computedStyle)
        {
            lineHeight = computedStyle.getPropertyValue("line-height");
        }
    }
    else if (element.currentStyle)
    {
        lineHeight = element.currentStyle.lineHeight;
    }
    
    if ((UNITS.length == 0) && (lineHeight != MINIMUM_FONT))
    {
        UNITS = lineHeight.substring(lineHeight.length - 2, lineHeight.length)
    }
    
    return parseFloat(lineHeight);
}

function adjustLineHeightIfTooBig(idOfElement)
{
    var oTextBoxOuterDiv;
    var oTextBoxMiddleDiv;
    var oTextBoxInnerDiv;
    var oTextBoxOuterDiv = document.getElementById(idOfElement);
    
    if (oTextBoxOuterDiv)
    {
        oTextBoxMiddleDiv = getChildOfType(oTextBoxOuterDiv, "DIV", 0);
        if (oTextBoxMiddleDiv)
        {
            oTextBoxInnerDiv = getChildOfType(oTextBoxMiddleDiv, "DIV", 0);
            if (oTextBoxInnerDiv)
            {
                var offsetHeight = oTextBoxInnerDiv.offsetHeight;
                var specifiedHeight = offsetHeight;
                if (oTextBoxMiddleDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxMiddleDiv.style.height);
                }
                else if (oTextBoxOuterDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxOuterDiv.style.height);
                }
                if (offsetHeight > specifiedHeight)
                {
                    var adjusted = true;
                    var count = 0;
                    while ((adjusted) && (offsetHeight > specifiedHeight) && (count < 10))
                    {
                        adjusted = false;
                        ++ count;
                        
                        var aParaChildren = getParaDescendants(oTextBoxInnerDiv);
                        for (i = 0; i < aParaChildren.length; i++)
                        {
                            var oParagraphDiv = aParaChildren[i];
                            if (oParagraphDiv.nodeName == "DIV")
                            {
                                var fontSize = elementFontSize(oParagraphDiv);
                                var lineHeight = elementLineHeight(oParagraphDiv) * 0.95;
                                if (lineHeight >= (fontSize * 1.1))
                                {
                                    oParagraphDiv.style.lineHeight = lineHeight + UNITS;
                                    adjusted = true;
                                }
                                
                                
                                
                                for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                                {
                                    var oSpan = oParagraphDiv.childNodes[j];
                                    if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                    {
                                        var fontSize = elementFontSize(oSpan);
                                        var lineHeight = elementLineHeight(oSpan) * 0.95;
                                        if (lineHeight >= (fontSize * 1.1))
                                        {
                                            oSpan.style.lineHeight = lineHeight + UNITS;
                                            var adjusted = true;
                                        }
                                    }
                                }
                            }
                        }
                        
                        offsetHeight = oTextBoxInnerDiv.offsetHeight;
                    }
                }
            }
        }
    }
}

var windowsInternetExplorer = false;
var browserVersion = 0;
function detectBrowser()
{
    windowsInternetExplorer = false;
    var appVersion = navigator.appVersion;
    if ((appVersion.indexOf("MSIE") != -1) &&
        (appVersion.indexOf("Macintosh") == -1))
    {
        var temp = appVersion.split("MSIE");
        browserVersion = parseFloat(temp[1]);
        windowsInternetExplorer = true;
    }
}

var smallTransparentGif = "";
function fixupIEPNG(strImageID, transparentGif) 
{
    smallTransparentGif = transparentGif;
    if (windowsInternetExplorer && (browserVersion < 7))
    {
        var img = document.getElementById(strImageID);
        if (img)
        {
            var src = img.src;
            img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')";
            img.src = transparentGif;
            img.attachEvent("onpropertychange", imgPropertyChanged);
        }
    }
}

var inImgPropertyChanged = false;
function imgPropertyChanged()
{
    if ((window.event.propertyName == "src") && (! inImgPropertyChanged))
    {
        inImgPropertyChanged = true;
        var el = window.event.srcElement;
        if (el.src != smallTransparentGif)
        {
            el.filters.item(0).src = el.src;
            el.src = smallTransparentGif;
        }
        inImgPropertyChanged = false;
    }
}

function getChildOfType(oParent, sNodeName, requestedIndex)
{
    var childrenOfType = oParent.getElementsByTagName(sNodeName);
    return (requestedIndex < childrenOfType.length) ?
           childrenOfType.item(requestedIndex) : null;
}

function getParaDescendants(oAncestor)
{
    var oParaDescendants = new Array();
    var oPotentialParagraphs = oAncestor.getElementsByTagName('DIV');
    for (var iIndex=0; iIndex<oPotentialParagraphs.length; iIndex++)
    {
        var oNode = oPotentialParagraphs.item(iIndex);
        if (oNode.className.lastIndexOf('paragraph') != -1)
        {
            oParaDescendants.push(oNode);
        }
    }
    return oParaDescendants;
}

function onPageLoad()
{
    detectBrowser();
    adjustLineHeightIfTooBig("id1");
    adjustFontSizeIfTooBig("id1");
    adjustLineHeightIfTooBig("id2");
    adjustFontSizeIfTooBig("id2");
    adjustLineHeightIfTooBig("id3");
    adjustFontSizeIfTooBig("id3");
    adjustLineHeightIfTooBig("id4");
    adjustFontSizeIfTooBig("id4");
    adjustLineHeightIfTooBig("id5");
    adjustFontSizeIfTooBig("id5");
    adjustLineHeightIfTooBig("id6");
    adjustFontSizeIfTooBig("id6");
    adjustLineHeightIfTooBig("id7");
    adjustFontSizeIfTooBig("id7");
    adjustLineHeightIfTooBig("id8");
    adjustFontSizeIfTooBig("id8");
    adjustLineHeightIfTooBig("id9");
    adjustFontSizeIfTooBig("id9");
    adjustLineHeightIfTooBig("id10");
    adjustFontSizeIfTooBig("id10");
    adjustLineHeightIfTooBig("id11");
    adjustFontSizeIfTooBig("id11");
    adjustLineHeightIfTooBig("id12");
    adjustFontSizeIfTooBig("id12");
    adjustLineHeightIfTooBig("id13");
    adjustFontSizeIfTooBig("id13");
    adjustLineHeightIfTooBig("id14");
    adjustFontSizeIfTooBig("id14");
    adjustLineHeightIfTooBig("id15");
    adjustFontSizeIfTooBig("id15");
    adjustLineHeightIfTooBig("id16");
    adjustFontSizeIfTooBig("id16");
    adjustLineHeightIfTooBig("id17");
    adjustFontSizeIfTooBig("id17");
    adjustLineHeightIfTooBig("id18");
    adjustFontSizeIfTooBig("id18");
    adjustLineHeightIfTooBig("id19");
    adjustFontSizeIfTooBig("id19");
    adjustLineHeightIfTooBig("id20");
    adjustFontSizeIfTooBig("id20");
    adjustLineHeightIfTooBig("id21");
    adjustFontSizeIfTooBig("id21");
    adjustLineHeightIfTooBig("id22");
    adjustFontSizeIfTooBig("id22");
    adjustLineHeightIfTooBig("id23");
    adjustFontSizeIfTooBig("id23");
    adjustLineHeightIfTooBig("id24");
    adjustFontSizeIfTooBig("id24");
    adjustLineHeightIfTooBig("id25");
    adjustFontSizeIfTooBig("id25");
    adjustLineHeightIfTooBig("id26");
    adjustFontSizeIfTooBig("id26");
    adjustLineHeightIfTooBig("id27");
    adjustFontSizeIfTooBig("id27");
    adjustLineHeightIfTooBig("id28");
    adjustFontSizeIfTooBig("id28");
    adjustLineHeightIfTooBig("id29");
    adjustFontSizeIfTooBig("id29");
    adjustLineHeightIfTooBig("id30");
    adjustFontSizeIfTooBig("id30");
    adjustLineHeightIfTooBig("id31");
    adjustFontSizeIfTooBig("id31");
    adjustLineHeightIfTooBig("id32");
    adjustFontSizeIfTooBig("id32");
    adjustLineHeightIfTooBig("id33");
    adjustFontSizeIfTooBig("id33");
    adjustLineHeightIfTooBig("id34");
    adjustFontSizeIfTooBig("id34");
    adjustLineHeightIfTooBig("id35");
    adjustFontSizeIfTooBig("id35");
    adjustLineHeightIfTooBig("id36");
    adjustFontSizeIfTooBig("id36");
    adjustLineHeightIfTooBig("id37");
    adjustFontSizeIfTooBig("id37");
    adjustLineHeightIfTooBig("id38");
    adjustFontSizeIfTooBig("id38");
    adjustLineHeightIfTooBig("id39");
    adjustFontSizeIfTooBig("id39");
    adjustLineHeightIfTooBig("id40");
    adjustFontSizeIfTooBig("id40");
    adjustLineHeightIfTooBig("id41");
    adjustFontSizeIfTooBig("id41");
    adjustLineHeightIfTooBig("id42");
    adjustFontSizeIfTooBig("id42");
    adjustLineHeightIfTooBig("id43");
    adjustFontSizeIfTooBig("id43");
    adjustLineHeightIfTooBig("id44");
    adjustFontSizeIfTooBig("id44");
    adjustLineHeightIfTooBig("id45");
    adjustFontSizeIfTooBig("id45");
    adjustLineHeightIfTooBig("id46");
    adjustFontSizeIfTooBig("id46");
    adjustLineHeightIfTooBig("id47");
    adjustFontSizeIfTooBig("id47");
    adjustLineHeightIfTooBig("id48");
    adjustFontSizeIfTooBig("id48");
    adjustLineHeightIfTooBig("id49");
    adjustFontSizeIfTooBig("id49");
    adjustLineHeightIfTooBig("id50");
    adjustFontSizeIfTooBig("id50");
    adjustLineHeightIfTooBig("id51");
    adjustFontSizeIfTooBig("id51");
    adjustLineHeightIfTooBig("id52");
    adjustFontSizeIfTooBig("id52");
    adjustLineHeightIfTooBig("id53");
    adjustFontSizeIfTooBig("id53");
    adjustLineHeightIfTooBig("id54");
    adjustFontSizeIfTooBig("id54");
    adjustLineHeightIfTooBig("id55");
    adjustFontSizeIfTooBig("id55");
    adjustLineHeightIfTooBig("id56");
    adjustFontSizeIfTooBig("id56");
    adjustLineHeightIfTooBig("id57");
    adjustFontSizeIfTooBig("id57");
    adjustLineHeightIfTooBig("id58");
    adjustFontSizeIfTooBig("id58");
    adjustLineHeightIfTooBig("id59");
    adjustFontSizeIfTooBig("id59");
    adjustLineHeightIfTooBig("id60");
    adjustFontSizeIfTooBig("id60");
    adjustLineHeightIfTooBig("id61");
    adjustFontSizeIfTooBig("id61");
    adjustLineHeightIfTooBig("id62");
    adjustFontSizeIfTooBig("id62");
    adjustLineHeightIfTooBig("id63");
    adjustFontSizeIfTooBig("id63");
    adjustLineHeightIfTooBig("id64");
    adjustFontSizeIfTooBig("id64");
    adjustLineHeightIfTooBig("id65");
    adjustFontSizeIfTooBig("id65");
    adjustLineHeightIfTooBig("id66");
    adjustFontSizeIfTooBig("id66");
    adjustLineHeightIfTooBig("id67");
    adjustFontSizeIfTooBig("id67");
    adjustLineHeightIfTooBig("id68");
    adjustFontSizeIfTooBig("id68");
    adjustLineHeightIfTooBig("id69");
    adjustFontSizeIfTooBig("id69");
    adjustLineHeightIfTooBig("id70");
    adjustFontSizeIfTooBig("id70");
    adjustLineHeightIfTooBig("id71");
    adjustFontSizeIfTooBig("id71");
    adjustLineHeightIfTooBig("id72");
    adjustFontSizeIfTooBig("id72");
    adjustLineHeightIfTooBig("id73");
    adjustFontSizeIfTooBig("id73");
    adjustLineHeightIfTooBig("id74");
    adjustFontSizeIfTooBig("id74");
    adjustLineHeightIfTooBig("id75");
    adjustFontSizeIfTooBig("id75");
    adjustLineHeightIfTooBig("id76");
    adjustFontSizeIfTooBig("id76");
    adjustLineHeightIfTooBig("id77");
    adjustFontSizeIfTooBig("id77");
    adjustLineHeightIfTooBig("id78");
    adjustFontSizeIfTooBig("id78");
    adjustLineHeightIfTooBig("id79");
    adjustFontSizeIfTooBig("id79");
    adjustLineHeightIfTooBig("id80");
    adjustFontSizeIfTooBig("id80");
    adjustLineHeightIfTooBig("id81");
    adjustFontSizeIfTooBig("id81");
    adjustLineHeightIfTooBig("id82");
    adjustFontSizeIfTooBig("id82");
    adjustLineHeightIfTooBig("id83");
    adjustFontSizeIfTooBig("id83");
    adjustLineHeightIfTooBig("id84");
    adjustFontSizeIfTooBig("id84");
    adjustLineHeightIfTooBig("id85");
    adjustFontSizeIfTooBig("id85");
    adjustLineHeightIfTooBig("id86");
    adjustFontSizeIfTooBig("id86");
    adjustLineHeightIfTooBig("id87");
    adjustFontSizeIfTooBig("id87");
    adjustLineHeightIfTooBig("id88");
    adjustFontSizeIfTooBig("id88");
    adjustLineHeightIfTooBig("id89");
    adjustFontSizeIfTooBig("id89");
    adjustLineHeightIfTooBig("id90");
    adjustFontSizeIfTooBig("id90");
    adjustLineHeightIfTooBig("id91");
    adjustFontSizeIfTooBig("id91");
    adjustLineHeightIfTooBig("id92");
    adjustFontSizeIfTooBig("id92");
    adjustLineHeightIfTooBig("id93");
    adjustFontSizeIfTooBig("id93");
    adjustLineHeightIfTooBig("id94");
    adjustFontSizeIfTooBig("id94");
    adjustLineHeightIfTooBig("id95");
    adjustFontSizeIfTooBig("id95");
    adjustLineHeightIfTooBig("id96");
    adjustFontSizeIfTooBig("id96");
    adjustLineHeightIfTooBig("id97");
    adjustFontSizeIfTooBig("id97");
    adjustLineHeightIfTooBig("id98");
    adjustFontSizeIfTooBig("id98");
    adjustLineHeightIfTooBig("id99");
    adjustFontSizeIfTooBig("id99");
    adjustLineHeightIfTooBig("id100");
    adjustFontSizeIfTooBig("id100");
    adjustLineHeightIfTooBig("id101");
    adjustFontSizeIfTooBig("id101");
    adjustLineHeightIfTooBig("id102");
    adjustFontSizeIfTooBig("id102");
    adjustLineHeightIfTooBig("id103");
    adjustFontSizeIfTooBig("id103");
    adjustLineHeightIfTooBig("id104");
    adjustFontSizeIfTooBig("id104");
    adjustLineHeightIfTooBig("id105");
    adjustFontSizeIfTooBig("id105");
    adjustLineHeightIfTooBig("id106");
    adjustFontSizeIfTooBig("id106");
    adjustLineHeightIfTooBig("id107");
    adjustFontSizeIfTooBig("id107");
    adjustLineHeightIfTooBig("id108");
    adjustFontSizeIfTooBig("id108");
    adjustLineHeightIfTooBig("id109");
    adjustFontSizeIfTooBig("id109");
    adjustLineHeightIfTooBig("id110");
    adjustFontSizeIfTooBig("id110");
    adjustLineHeightIfTooBig("id111");
    adjustFontSizeIfTooBig("id111");
    adjustLineHeightIfTooBig("id112");
    adjustFontSizeIfTooBig("id112");
    adjustLineHeightIfTooBig("id113");
    adjustFontSizeIfTooBig("id113");
    adjustLineHeightIfTooBig("id114");
    adjustFontSizeIfTooBig("id114");
    adjustLineHeightIfTooBig("id115");
    adjustFontSizeIfTooBig("id115");
    adjustLineHeightIfTooBig("id116");
    adjustFontSizeIfTooBig("id116");
    adjustLineHeightIfTooBig("id117");
    adjustFontSizeIfTooBig("id117");
    adjustLineHeightIfTooBig("id118");
    adjustFontSizeIfTooBig("id118");
    adjustLineHeightIfTooBig("id128");
    adjustFontSizeIfTooBig("id128");
    adjustLineHeightIfTooBig("id129");
    adjustFontSizeIfTooBig("id129");
    adjustLineHeightIfTooBig("id130");
    adjustFontSizeIfTooBig("id130");
    adjustLineHeightIfTooBig("id131");
    adjustFontSizeIfTooBig("id131");
    adjustLineHeightIfTooBig("id132");
    adjustFontSizeIfTooBig("id132");
    adjustLineHeightIfTooBig("id133");
    adjustFontSizeIfTooBig("id133");
    adjustLineHeightIfTooBig("id134");
    adjustFontSizeIfTooBig("id134");
    adjustLineHeightIfTooBig("id135");
    adjustFontSizeIfTooBig("id135");
    adjustLineHeightIfTooBig("id136");
    adjustFontSizeIfTooBig("id136");
    adjustLineHeightIfTooBig("id137");
    adjustFontSizeIfTooBig("id137");
    adjustLineHeightIfTooBig("id138");
    adjustFontSizeIfTooBig("id138");
    adjustLineHeightIfTooBig("id139");
    adjustFontSizeIfTooBig("id139");
    adjustLineHeightIfTooBig("id140");
    adjustFontSizeIfTooBig("id140");
    adjustLineHeightIfTooBig("id141");
    adjustFontSizeIfTooBig("id141");
    adjustLineHeightIfTooBig("id142");
    adjustFontSizeIfTooBig("id142");
    adjustLineHeightIfTooBig("id143");
    adjustFontSizeIfTooBig("id143");
    adjustLineHeightIfTooBig("id144");
    adjustFontSizeIfTooBig("id144");
    adjustLineHeightIfTooBig("id145");
    adjustFontSizeIfTooBig("id145");
    adjustLineHeightIfTooBig("id146");
    adjustFontSizeIfTooBig("id146");
    adjustLineHeightIfTooBig("id147");
    adjustFontSizeIfTooBig("id147");
    adjustLineHeightIfTooBig("id148");
    adjustFontSizeIfTooBig("id148");
    adjustLineHeightIfTooBig("id149");
    adjustFontSizeIfTooBig("id149");
    adjustLineHeightIfTooBig("id150");
    adjustFontSizeIfTooBig("id150");
    adjustLineHeightIfTooBig("id151");
    adjustFontSizeIfTooBig("id151");
    adjustLineHeightIfTooBig("id152");
    adjustFontSizeIfTooBig("id152");
    adjustLineHeightIfTooBig("id153");
    adjustFontSizeIfTooBig("id153");
    adjustLineHeightIfTooBig("id154");
    adjustFontSizeIfTooBig("id154");
    adjustLineHeightIfTooBig("id155");
    adjustFontSizeIfTooBig("id155");
    adjustLineHeightIfTooBig("id156");
    adjustFontSizeIfTooBig("id156");
    adjustLineHeightIfTooBig("id157");
    adjustFontSizeIfTooBig("id157");
    adjustLineHeightIfTooBig("id158");
    adjustFontSizeIfTooBig("id158");
    adjustLineHeightIfTooBig("id159");
    adjustFontSizeIfTooBig("id159");
    adjustLineHeightIfTooBig("id160");
    adjustFontSizeIfTooBig("id160");
    adjustLineHeightIfTooBig("id161");
    adjustFontSizeIfTooBig("id161");
    adjustLineHeightIfTooBig("id162");
    adjustFontSizeIfTooBig("id162");
    adjustLineHeightIfTooBig("id163");
    adjustFontSizeIfTooBig("id163");
    adjustLineHeightIfTooBig("id164");
    adjustFontSizeIfTooBig("id164");
    adjustLineHeightIfTooBig("id165");
    adjustFontSizeIfTooBig("id165");
    adjustLineHeightIfTooBig("id166");
    adjustFontSizeIfTooBig("id166");
    adjustLineHeightIfTooBig("id167");
    adjustFontSizeIfTooBig("id167");
    adjustLineHeightIfTooBig("id168");
    adjustFontSizeIfTooBig("id168");
    adjustLineHeightIfTooBig("id169");
    adjustFontSizeIfTooBig("id169");
    adjustLineHeightIfTooBig("id170");
    adjustFontSizeIfTooBig("id170");
    adjustLineHeightIfTooBig("id171");
    adjustFontSizeIfTooBig("id171");
    adjustLineHeightIfTooBig("id172");
    adjustFontSizeIfTooBig("id172");
    adjustLineHeightIfTooBig("id173");
    adjustFontSizeIfTooBig("id173");
    adjustLineHeightIfTooBig("id174");
    adjustFontSizeIfTooBig("id174");
    adjustLineHeightIfTooBig("id175");
    adjustFontSizeIfTooBig("id175");
    adjustLineHeightIfTooBig("id176");
    adjustFontSizeIfTooBig("id176");
    adjustLineHeightIfTooBig("id177");
    adjustFontSizeIfTooBig("id177");
    adjustLineHeightIfTooBig("id178");
    adjustFontSizeIfTooBig("id178");
    adjustLineHeightIfTooBig("id179");
    adjustFontSizeIfTooBig("id179");
    adjustLineHeightIfTooBig("id180");
    adjustFontSizeIfTooBig("id180");
    adjustLineHeightIfTooBig("id181");
    adjustFontSizeIfTooBig("id181");
    adjustLineHeightIfTooBig("id182");
    adjustFontSizeIfTooBig("id182");
    adjustLineHeightIfTooBig("id183");
    adjustFontSizeIfTooBig("id183");
    adjustLineHeightIfTooBig("id184");
    adjustFontSizeIfTooBig("id184");
    adjustLineHeightIfTooBig("id185");
    adjustFontSizeIfTooBig("id185");
    adjustLineHeightIfTooBig("id186");
    adjustFontSizeIfTooBig("id186");
    adjustLineHeightIfTooBig("id187");
    adjustFontSizeIfTooBig("id187");
    adjustLineHeightIfTooBig("id188");
    adjustFontSizeIfTooBig("id188");
    adjustLineHeightIfTooBig("id189");
    adjustFontSizeIfTooBig("id189");
    adjustLineHeightIfTooBig("id190");
    adjustFontSizeIfTooBig("id190");
    adjustLineHeightIfTooBig("id191");
    adjustFontSizeIfTooBig("id191");
    adjustLineHeightIfTooBig("id192");
    adjustFontSizeIfTooBig("id192");
    adjustLineHeightIfTooBig("id193");
    adjustFontSizeIfTooBig("id193");
    adjustLineHeightIfTooBig("id194");
    adjustFontSizeIfTooBig("id194");
    adjustLineHeightIfTooBig("id195");
    adjustFontSizeIfTooBig("id195");
    adjustLineHeightIfTooBig("id196");
    adjustFontSizeIfTooBig("id196");
    adjustLineHeightIfTooBig("id197");
    adjustFontSizeIfTooBig("id197");
    adjustLineHeightIfTooBig("id198");
    adjustFontSizeIfTooBig("id198");
    adjustLineHeightIfTooBig("id199");
    adjustFontSizeIfTooBig("id199");
    adjustLineHeightIfTooBig("id200");
    adjustFontSizeIfTooBig("id200");
    adjustLineHeightIfTooBig("id201");
    adjustFontSizeIfTooBig("id201");
    adjustLineHeightIfTooBig("id202");
    adjustFontSizeIfTooBig("id202");
    adjustLineHeightIfTooBig("id203");
    adjustFontSizeIfTooBig("id203");
    adjustLineHeightIfTooBig("id204");
    adjustFontSizeIfTooBig("id204");
    adjustLineHeightIfTooBig("id205");
    adjustFontSizeIfTooBig("id205");
    adjustLineHeightIfTooBig("id206");
    adjustFontSizeIfTooBig("id206");
    adjustLineHeightIfTooBig("id207");
    adjustFontSizeIfTooBig("id207");
    adjustLineHeightIfTooBig("id208");
    adjustFontSizeIfTooBig("id208");
    adjustLineHeightIfTooBig("id209");
    adjustFontSizeIfTooBig("id209");
    adjustLineHeightIfTooBig("id210");
    adjustFontSizeIfTooBig("id210");
    adjustLineHeightIfTooBig("id211");
    adjustFontSizeIfTooBig("id211");
    adjustLineHeightIfTooBig("id212");
    adjustFontSizeIfTooBig("id212");
    adjustLineHeightIfTooBig("id213");
    adjustFontSizeIfTooBig("id213");
    adjustLineHeightIfTooBig("id214");
    adjustFontSizeIfTooBig("id214");
    adjustLineHeightIfTooBig("id215");
    adjustFontSizeIfTooBig("id215");
    adjustLineHeightIfTooBig("id216");
    adjustFontSizeIfTooBig("id216");
    adjustLineHeightIfTooBig("id217");
    adjustFontSizeIfTooBig("id217");
    adjustLineHeightIfTooBig("id218");
    adjustFontSizeIfTooBig("id218");
    adjustLineHeightIfTooBig("id219");
    adjustFontSizeIfTooBig("id219");
    adjustLineHeightIfTooBig("id220");
    adjustFontSizeIfTooBig("id220");
    adjustLineHeightIfTooBig("id221");
    adjustFontSizeIfTooBig("id221");
    adjustLineHeightIfTooBig("id222");
    adjustFontSizeIfTooBig("id222");
    adjustLineHeightIfTooBig("id223");
    adjustFontSizeIfTooBig("id223");
    adjustLineHeightIfTooBig("id224");
    adjustFontSizeIfTooBig("id224");
    adjustLineHeightIfTooBig("id225");
    adjustFontSizeIfTooBig("id225");
    adjustLineHeightIfTooBig("id226");
    adjustFontSizeIfTooBig("id226");
    adjustLineHeightIfTooBig("id227");
    adjustFontSizeIfTooBig("id227");
    adjustLineHeightIfTooBig("id228");
    adjustFontSizeIfTooBig("id228");
    adjustLineHeightIfTooBig("id229");
    adjustFontSizeIfTooBig("id229");
    adjustLineHeightIfTooBig("id230");
    adjustFontSizeIfTooBig("id230");
    adjustLineHeightIfTooBig("id231");
    adjustFontSizeIfTooBig("id231");
    adjustLineHeightIfTooBig("id232");
    adjustFontSizeIfTooBig("id232");
    adjustLineHeightIfTooBig("id233");
    adjustFontSizeIfTooBig("id233");
    adjustLineHeightIfTooBig("id234");
    adjustFontSizeIfTooBig("id234");
    adjustLineHeightIfTooBig("id235");
    adjustFontSizeIfTooBig("id235");
    adjustLineHeightIfTooBig("id236");
    adjustFontSizeIfTooBig("id236");
    adjustLineHeightIfTooBig("id237");
    adjustFontSizeIfTooBig("id237");
    adjustLineHeightIfTooBig("id238");
    adjustFontSizeIfTooBig("id238");
    adjustLineHeightIfTooBig("id239");
    adjustFontSizeIfTooBig("id239");
    adjustLineHeightIfTooBig("id240");
    adjustFontSizeIfTooBig("id240");
    adjustLineHeightIfTooBig("id241");
    adjustFontSizeIfTooBig("id241");
    adjustLineHeightIfTooBig("id242");
    adjustFontSizeIfTooBig("id242");
    adjustLineHeightIfTooBig("id243");
    adjustFontSizeIfTooBig("id243");
    adjustLineHeightIfTooBig("id244");
    adjustFontSizeIfTooBig("id244");
    adjustLineHeightIfTooBig("id245");
    adjustFontSizeIfTooBig("id245");
    adjustLineHeightIfTooBig("id246");
    adjustFontSizeIfTooBig("id246");
    adjustLineHeightIfTooBig("id247");
    adjustFontSizeIfTooBig("id247");
    adjustLineHeightIfTooBig("id248");
    adjustFontSizeIfTooBig("id248");
    adjustLineHeightIfTooBig("id249");
    adjustFontSizeIfTooBig("id249");
    adjustLineHeightIfTooBig("id250");
    adjustFontSizeIfTooBig("id250");
    adjustLineHeightIfTooBig("id251");
    adjustFontSizeIfTooBig("id251");
    adjustLineHeightIfTooBig("id252");
    adjustFontSizeIfTooBig("id252");
    adjustLineHeightIfTooBig("id253");
    adjustFontSizeIfTooBig("id253");
    adjustLineHeightIfTooBig("id254");
    adjustFontSizeIfTooBig("id254");
    adjustLineHeightIfTooBig("id255");
    adjustFontSizeIfTooBig("id255");
    adjustLineHeightIfTooBig("id256");
    adjustFontSizeIfTooBig("id256");
    adjustLineHeightIfTooBig("id257");
    adjustFontSizeIfTooBig("id257");
    adjustLineHeightIfTooBig("id258");
    adjustFontSizeIfTooBig("id258");
    adjustLineHeightIfTooBig("id259");
    adjustFontSizeIfTooBig("id259");
    adjustLineHeightIfTooBig("id260");
    adjustFontSizeIfTooBig("id260");
    adjustLineHeightIfTooBig("id261");
    adjustFontSizeIfTooBig("id261");
    adjustLineHeightIfTooBig("id262");
    adjustFontSizeIfTooBig("id262");
    adjustLineHeightIfTooBig("id263");
    adjustFontSizeIfTooBig("id263");
    adjustLineHeightIfTooBig("id264");
    adjustFontSizeIfTooBig("id264");
    adjustLineHeightIfTooBig("id265");
    adjustFontSizeIfTooBig("id265");
    adjustLineHeightIfTooBig("id266");
    adjustFontSizeIfTooBig("id266");
    adjustLineHeightIfTooBig("id267");
    adjustFontSizeIfTooBig("id267");
    adjustLineHeightIfTooBig("id268");
    adjustFontSizeIfTooBig("id268");
    adjustLineHeightIfTooBig("id269");
    adjustFontSizeIfTooBig("id269");
    adjustLineHeightIfTooBig("id270");
    adjustFontSizeIfTooBig("id270");
    adjustLineHeightIfTooBig("id271");
    adjustFontSizeIfTooBig("id271");
    adjustLineHeightIfTooBig("id272");
    adjustFontSizeIfTooBig("id272");
    adjustLineHeightIfTooBig("id273");
    adjustFontSizeIfTooBig("id273");
    adjustLineHeightIfTooBig("id274");
    adjustFontSizeIfTooBig("id274");
    adjustLineHeightIfTooBig("id275");
    adjustFontSizeIfTooBig("id275");
    adjustLineHeightIfTooBig("id276");
    adjustFontSizeIfTooBig("id276");
    adjustLineHeightIfTooBig("id277");
    adjustFontSizeIfTooBig("id277");
    fixupIEPNG("id119", "agenda_files/transparent.gif");
    fixupIEPNG("id120", "agenda_files/transparent.gif");
    fixupIEPNG("id121", "agenda_files/transparent.gif");
    fixupIEPNG("id122", "agenda_files/transparent.gif");
    fixupIEPNG("id123", "agenda_files/transparent.gif");
    fixupIEPNG("id124", "agenda_files/transparent.gif");
    fixupIEPNG("id125", "agenda_files/transparent.gif");
    fixupIEPNG("id126", "agenda_files/transparent.gif");
    fixupIEPNG("id127", "agenda_files/transparent.gif");
    return true;
}

