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;
                    }
                }
            }
        }
    }
}

function fixupIEPNGBG(oBlock) 
{
    if (oBlock)
    {
        var currentBGImage = oBlock.currentStyle.backgroundImage;
        var currentBGRepeat = oBlock.currentStyle.backgroundRepeat;
        var urlStart = currentBGImage.indexOf('url(');
        var urlEnd = currentBGImage.indexOf(')', urlStart);
        var imageURL = currentBGImage.substring(urlStart + 4, urlEnd);

        if (imageURL.charAt(0) == '"')
        {
            imageURL = imageURL.substring(1);
        }
        
        if (imageURL.charAt(imageURL.length - 1) == '"')
        {
            imageURL = imageURL.substring(0, imageURL.length - 1);
        }

        var overrideRepeat = false;

        var filterStyle =
            "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
            imageURL +
            "', sizingMethod='crop');";

        if (RegExp("/C[0-9A-F]{8}.png$").exec(imageURL) != null)
        {
            filterStyle =
                "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
                imageURL +
                "', sizingMethod='scale');";

            overrideRepeat = true;
        }

        var backgroundImage = new Image();
        backgroundImage.src = imageURL;
        var tileWidth = backgroundImage.width;
        var tileHeight = backgroundImage.height; 
        
        var blockWidth = 0;
        var blockHeight = 0;
        if (oBlock.style.width)
        {
            blockWidth = parseInt(oBlock.style.width);
        }
        else
        {
            blockWidth = oBlock.offsetWidth;
        }
        if (oBlock.style.height)
        {
            blockHeight = parseInt(oBlock.style.height);
        }
        else
        {
            blockHeight = oBlock.offsetHeight;
        }

        if ((blockWidth == 0) || (blockHeight == 0))
        {
            return;
        }
        
        var wholeRows = 1;
        var wholeCols = 1;
        var extraHeight = 0;
        var extraWidth = 0;
        
        if ((currentBGRepeat.indexOf("no-repeat") != -1) ||
              ((tileWidth == 0) && (tileHeight == 0)) ||
              overrideRepeat)
        {
            tileWidth = blockWidth;
            tileHeight = blockHeight;

        }
        else if ((currentBGRepeat.indexOf("repeat-x") != -1) ||
              (tileHeight == 0))
        {
            wholeCols = Math.floor(blockWidth / tileWidth);
            extraWidth = blockWidth - (tileWidth * wholeCols);
            tileHeight = blockHeight;

        }
        else if (currentBGRepeat.indexOf("repeat-y") != -1)
        {
            wholeRows = Math.floor(blockHeight / tileHeight);
            extraHeight = blockHeight - (tileHeight * wholeRows);
            tileWidth = blockWidth;

        }
        else
        {
            wholeCols = Math.floor(blockWidth / tileWidth);
            wholeRows = Math.floor(blockHeight / tileHeight);
            extraWidth = blockWidth - (tileWidth * wholeCols);
            extraHeight = blockHeight - (tileHeight * wholeRows);
        }
        
        var wrappedContent = document.createElement("div");
        wrappedContent.style.position = "relative";
        wrappedContent.style.zIndex = "1";
        wrappedContent.style.left = "0px";
        wrappedContent.style.top = "0px";
        if (!isNaN(parseInt(oBlock.style.width)))
        {
            wrappedContent.style.width = "" + blockWidth + "px";
        }
        if (!isNaN(parseInt(oBlock.style.height)))
        {
            wrappedContent.style.height = "" + blockHeight + "px";
        }
        var pngBGFixIsWrappedContentEmpty = true;
        while (oBlock.hasChildNodes())
        {
            if (oBlock.firstChild.nodeType == 3)
            {
                if (RegExp("^ *$").exec(oBlock.firstChild.data) == null)
                {
                    pngBGFixIsWrappedContentEmpty = false;
                }
            }
            else
            {
                pngBGFixIsWrappedContentEmpty = false;
            }
            wrappedContent.appendChild(oBlock.firstChild);
        }
        if (pngBGFixIsWrappedContentEmpty)
        {
            wrappedContent.style.lineHeight = "0px";
        }
        
        var newMarkup = "";
        for (var currentRow = 0; 
             currentRow < wholeRows; 
             currentRow++)
        {
            for (currentCol = 0; 
                 currentCol < wholeCols; 
                 currentCol++)
            {
                newMarkup += "<div style=" +
                        "\"position: absolute; line-height: 0px; " +
                        "width: " + tileWidth + "px; " +
                        "height: " + tileHeight + "px; " +
                        "left:" + currentCol *  tileWidth + "px; " +
                        "top:" + currentRow *  tileHeight + "px; " +
                        "filter:" + filterStyle + 
                        "\" > </div>";
            }
            
            if (extraWidth != 0)
            {
                newMarkup += "<div style=" +
                        "\"position: absolute; line-height: 0px; " +
                        "width: " + extraWidth + "px; " +
                        "height: " + tileHeight + "px; " +
                        "left:" + currentCol *  tileWidth + "px; " +
                        "top:" + currentRow *  tileHeight + "px; " +
                        "filter:" + filterStyle + 
                        "\" > </div>";
            }
        }
        
        if (extraHeight != 0)
        {
            for (currentCol = 0; 
                 currentCol < wholeCols; 
                 currentCol++)
            {
                newMarkup += "<div style=" +
                        "\"position: absolute; line-height: 0px; " +
                        "width: " + tileWidth + "px; " +
                        "height: " + extraHeight + "px; " +
                        "left:" + currentCol *  tileWidth + "px; " +
                        "top:" + currentRow *  tileHeight + "px; " +
                        "filter:" + filterStyle + 
                        "\" > </div>";
            }
            
            if (extraWidth != 0)
            {
                newMarkup += "<div style=" +
                        "\"position: absolute; line-height: 0px; " +
                        "width: " + extraWidth + "px; " +
                        "height: " + extraHeight + "px; " +
                        "left:" + currentCol *  tileWidth + "px; " +
                        "top:" + currentRow *  tileHeight + "px; " +
                        "filter:" + filterStyle + 
                        "\" > </div>";
            }
        }
        oBlock.innerHTML = newMarkup;

        oBlock.appendChild(wrappedContent);
        oBlock.style.background= "";
    }
}

function fixupAllIEPNGBGs()
{
    if (windowsInternetExplorer && (browserVersion < 7))
    {
        try
        {
            var oDivNodes = document.getElementsByTagName('DIV');
            for (var iIndex=0; iIndex<oDivNodes.length; iIndex++)
            {
                var oNode = oDivNodes.item(iIndex);
                if (oNode.currentStyle &&
                    oNode.currentStyle.backgroundImage &&
                    (oNode.currentStyle.backgroundImage.indexOf('url(') != -1) &&
                    (oNode.currentStyle.backgroundImage.indexOf('.png")') != -1))
                {
                    fixupIEPNGBG(oNode);
                }
            }
        }
        catch (e)
        {
        }
    }
}

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("id119");
    adjustFontSizeIfTooBig("id119");
    adjustLineHeightIfTooBig("id120");
    adjustFontSizeIfTooBig("id120");
    adjustLineHeightIfTooBig("id121");
    adjustFontSizeIfTooBig("id121");
    adjustLineHeightIfTooBig("id122");
    adjustFontSizeIfTooBig("id122");
    adjustLineHeightIfTooBig("id123");
    adjustFontSizeIfTooBig("id123");
    adjustLineHeightIfTooBig("id124");
    adjustFontSizeIfTooBig("id124");
    adjustLineHeightIfTooBig("id125");
    adjustFontSizeIfTooBig("id125");
    adjustLineHeightIfTooBig("id126");
    adjustFontSizeIfTooBig("id126");
    adjustLineHeightIfTooBig("id127");
    adjustFontSizeIfTooBig("id127");
    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");
    adjustLineHeightIfTooBig("id278");
    adjustFontSizeIfTooBig("id278");
    adjustLineHeightIfTooBig("id279");
    adjustFontSizeIfTooBig("id279");
    adjustLineHeightIfTooBig("id280");
    adjustFontSizeIfTooBig("id280");
    adjustLineHeightIfTooBig("id281");
    adjustFontSizeIfTooBig("id281");
    adjustLineHeightIfTooBig("id282");
    adjustFontSizeIfTooBig("id282");
    adjustLineHeightIfTooBig("id283");
    adjustFontSizeIfTooBig("id283");
    adjustLineHeightIfTooBig("id284");
    adjustFontSizeIfTooBig("id284");
    adjustLineHeightIfTooBig("id285");
    adjustFontSizeIfTooBig("id285");
    adjustLineHeightIfTooBig("id286");
    adjustFontSizeIfTooBig("id286");
    adjustLineHeightIfTooBig("id287");
    adjustFontSizeIfTooBig("id287");
    adjustLineHeightIfTooBig("id288");
    adjustFontSizeIfTooBig("id288");
    adjustLineHeightIfTooBig("id289");
    adjustFontSizeIfTooBig("id289");
    adjustLineHeightIfTooBig("id290");
    adjustFontSizeIfTooBig("id290");
    adjustLineHeightIfTooBig("id291");
    adjustFontSizeIfTooBig("id291");
    adjustLineHeightIfTooBig("id292");
    adjustFontSizeIfTooBig("id292");
    adjustLineHeightIfTooBig("id293");
    adjustFontSizeIfTooBig("id293");
    adjustLineHeightIfTooBig("id294");
    adjustFontSizeIfTooBig("id294");
    adjustLineHeightIfTooBig("id295");
    adjustFontSizeIfTooBig("id295");
    adjustLineHeightIfTooBig("id296");
    adjustFontSizeIfTooBig("id296");
    adjustLineHeightIfTooBig("id297");
    adjustFontSizeIfTooBig("id297");
    adjustLineHeightIfTooBig("id298");
    adjustFontSizeIfTooBig("id298");
    adjustLineHeightIfTooBig("id299");
    adjustFontSizeIfTooBig("id299");
    adjustLineHeightIfTooBig("id300");
    adjustFontSizeIfTooBig("id300");
    adjustLineHeightIfTooBig("id301");
    adjustFontSizeIfTooBig("id301");
    adjustLineHeightIfTooBig("id302");
    adjustFontSizeIfTooBig("id302");
    adjustLineHeightIfTooBig("id303");
    adjustFontSizeIfTooBig("id303");
    adjustLineHeightIfTooBig("id304");
    adjustFontSizeIfTooBig("id304");
    adjustLineHeightIfTooBig("id305");
    adjustFontSizeIfTooBig("id305");
    adjustLineHeightIfTooBig("id306");
    adjustFontSizeIfTooBig("id306");
    adjustLineHeightIfTooBig("id307");
    adjustFontSizeIfTooBig("id307");
    adjustLineHeightIfTooBig("id308");
    adjustFontSizeIfTooBig("id308");
    adjustLineHeightIfTooBig("id309");
    adjustFontSizeIfTooBig("id309");
    adjustLineHeightIfTooBig("id310");
    adjustFontSizeIfTooBig("id310");
    adjustLineHeightIfTooBig("id311");
    adjustFontSizeIfTooBig("id311");
    adjustLineHeightIfTooBig("id312");
    adjustFontSizeIfTooBig("id312");
    adjustLineHeightIfTooBig("id313");
    adjustFontSizeIfTooBig("id313");
    adjustLineHeightIfTooBig("id314");
    adjustFontSizeIfTooBig("id314");
    adjustLineHeightIfTooBig("id315");
    adjustFontSizeIfTooBig("id315");
    adjustLineHeightIfTooBig("id316");
    adjustFontSizeIfTooBig("id316");
    adjustLineHeightIfTooBig("id317");
    adjustFontSizeIfTooBig("id317");
    adjustLineHeightIfTooBig("id318");
    adjustFontSizeIfTooBig("id318");
    adjustLineHeightIfTooBig("id319");
    adjustFontSizeIfTooBig("id319");
    adjustLineHeightIfTooBig("id320");
    adjustFontSizeIfTooBig("id320");
    adjustLineHeightIfTooBig("id321");
    adjustFontSizeIfTooBig("id321");
    adjustLineHeightIfTooBig("id322");
    adjustFontSizeIfTooBig("id322");
    adjustLineHeightIfTooBig("id323");
    adjustFontSizeIfTooBig("id323");
    adjustLineHeightIfTooBig("id324");
    adjustFontSizeIfTooBig("id324");
    adjustLineHeightIfTooBig("id325");
    adjustFontSizeIfTooBig("id325");
    adjustLineHeightIfTooBig("id326");
    adjustFontSizeIfTooBig("id326");
    adjustLineHeightIfTooBig("id327");
    adjustFontSizeIfTooBig("id327");
    adjustLineHeightIfTooBig("id328");
    adjustFontSizeIfTooBig("id328");
    adjustLineHeightIfTooBig("id329");
    adjustFontSizeIfTooBig("id329");
    adjustLineHeightIfTooBig("id330");
    adjustFontSizeIfTooBig("id330");
    adjustLineHeightIfTooBig("id331");
    adjustFontSizeIfTooBig("id331");
    adjustLineHeightIfTooBig("id332");
    adjustFontSizeIfTooBig("id332");
    adjustLineHeightIfTooBig("id333");
    adjustFontSizeIfTooBig("id333");
    adjustLineHeightIfTooBig("id334");
    adjustFontSizeIfTooBig("id334");
    adjustLineHeightIfTooBig("id335");
    adjustFontSizeIfTooBig("id335");
    adjustLineHeightIfTooBig("id336");
    adjustFontSizeIfTooBig("id336");
    adjustLineHeightIfTooBig("id337");
    adjustFontSizeIfTooBig("id337");
    adjustLineHeightIfTooBig("id338");
    adjustFontSizeIfTooBig("id338");
    adjustLineHeightIfTooBig("id339");
    adjustFontSizeIfTooBig("id339");
    adjustLineHeightIfTooBig("id340");
    adjustFontSizeIfTooBig("id340");
    adjustLineHeightIfTooBig("id341");
    adjustFontSizeIfTooBig("id341");
    adjustLineHeightIfTooBig("id342");
    adjustFontSizeIfTooBig("id342");
    adjustLineHeightIfTooBig("id343");
    adjustFontSizeIfTooBig("id343");
    adjustLineHeightIfTooBig("id344");
    adjustFontSizeIfTooBig("id344");
    adjustLineHeightIfTooBig("id345");
    adjustFontSizeIfTooBig("id345");
    adjustLineHeightIfTooBig("id346");
    adjustFontSizeIfTooBig("id346");
    adjustLineHeightIfTooBig("id347");
    adjustFontSizeIfTooBig("id347");
    adjustLineHeightIfTooBig("id348");
    adjustFontSizeIfTooBig("id348");
    adjustLineHeightIfTooBig("id349");
    adjustFontSizeIfTooBig("id349");
    adjustLineHeightIfTooBig("id350");
    adjustFontSizeIfTooBig("id350");
    adjustLineHeightIfTooBig("id351");
    adjustFontSizeIfTooBig("id351");
    adjustLineHeightIfTooBig("id352");
    adjustFontSizeIfTooBig("id352");
    adjustLineHeightIfTooBig("id353");
    adjustFontSizeIfTooBig("id353");
    adjustLineHeightIfTooBig("id354");
    adjustFontSizeIfTooBig("id354");
    adjustLineHeightIfTooBig("id355");
    adjustFontSizeIfTooBig("id355");
    adjustLineHeightIfTooBig("id356");
    adjustFontSizeIfTooBig("id356");
    adjustLineHeightIfTooBig("id357");
    adjustFontSizeIfTooBig("id357");
    adjustLineHeightIfTooBig("id358");
    adjustFontSizeIfTooBig("id358");
    adjustLineHeightIfTooBig("id359");
    adjustFontSizeIfTooBig("id359");
    adjustLineHeightIfTooBig("id360");
    adjustFontSizeIfTooBig("id360");
    adjustLineHeightIfTooBig("id361");
    adjustFontSizeIfTooBig("id361");
    adjustLineHeightIfTooBig("id362");
    adjustFontSizeIfTooBig("id362");
    adjustLineHeightIfTooBig("id363");
    adjustFontSizeIfTooBig("id363");
    adjustLineHeightIfTooBig("id364");
    adjustFontSizeIfTooBig("id364");
    adjustLineHeightIfTooBig("id365");
    adjustFontSizeIfTooBig("id365");
    adjustLineHeightIfTooBig("id366");
    adjustFontSizeIfTooBig("id366");
    adjustLineHeightIfTooBig("id367");
    adjustFontSizeIfTooBig("id367");
    adjustLineHeightIfTooBig("id368");
    adjustFontSizeIfTooBig("id368");
    adjustLineHeightIfTooBig("id369");
    adjustFontSizeIfTooBig("id369");
    adjustLineHeightIfTooBig("id370");
    adjustFontSizeIfTooBig("id370");
    adjustLineHeightIfTooBig("id371");
    adjustFontSizeIfTooBig("id371");
    adjustLineHeightIfTooBig("id372");
    adjustFontSizeIfTooBig("id372");
    adjustLineHeightIfTooBig("id373");
    adjustFontSizeIfTooBig("id373");
    adjustLineHeightIfTooBig("id374");
    adjustFontSizeIfTooBig("id374");
    adjustLineHeightIfTooBig("id375");
    adjustFontSizeIfTooBig("id375");
    adjustLineHeightIfTooBig("id376");
    adjustFontSizeIfTooBig("id376");
    adjustLineHeightIfTooBig("id377");
    adjustFontSizeIfTooBig("id377");
    adjustLineHeightIfTooBig("id378");
    adjustFontSizeIfTooBig("id378");
    adjustLineHeightIfTooBig("id379");
    adjustFontSizeIfTooBig("id379");
    adjustLineHeightIfTooBig("id380");
    adjustFontSizeIfTooBig("id380");
    adjustLineHeightIfTooBig("id381");
    adjustFontSizeIfTooBig("id381");
    adjustLineHeightIfTooBig("id382");
    adjustFontSizeIfTooBig("id382");
    adjustLineHeightIfTooBig("id383");
    adjustFontSizeIfTooBig("id383");
    adjustLineHeightIfTooBig("id384");
    adjustFontSizeIfTooBig("id384");
    adjustLineHeightIfTooBig("id385");
    adjustFontSizeIfTooBig("id385");
    adjustLineHeightIfTooBig("id386");
    adjustFontSizeIfTooBig("id386");
    adjustLineHeightIfTooBig("id387");
    adjustFontSizeIfTooBig("id387");
    adjustLineHeightIfTooBig("id388");
    adjustFontSizeIfTooBig("id388");
    adjustLineHeightIfTooBig("id389");
    adjustFontSizeIfTooBig("id389");
    adjustLineHeightIfTooBig("id390");
    adjustFontSizeIfTooBig("id390");
    adjustLineHeightIfTooBig("id391");
    adjustFontSizeIfTooBig("id391");
    adjustLineHeightIfTooBig("id392");
    adjustFontSizeIfTooBig("id392");
    adjustLineHeightIfTooBig("id393");
    adjustFontSizeIfTooBig("id393");
    adjustLineHeightIfTooBig("id394");
    adjustFontSizeIfTooBig("id394");
    adjustLineHeightIfTooBig("id395");
    adjustFontSizeIfTooBig("id395");
    adjustLineHeightIfTooBig("id396");
    adjustFontSizeIfTooBig("id396");
    adjustLineHeightIfTooBig("id397");
    adjustFontSizeIfTooBig("id397");
    adjustLineHeightIfTooBig("id398");
    adjustFontSizeIfTooBig("id398");
    adjustLineHeightIfTooBig("id399");
    adjustFontSizeIfTooBig("id399");
    adjustLineHeightIfTooBig("id400");
    adjustFontSizeIfTooBig("id400");
    adjustLineHeightIfTooBig("id401");
    adjustFontSizeIfTooBig("id401");
    adjustLineHeightIfTooBig("id402");
    adjustFontSizeIfTooBig("id402");
    adjustLineHeightIfTooBig("id403");
    adjustFontSizeIfTooBig("id403");
    adjustLineHeightIfTooBig("id404");
    adjustFontSizeIfTooBig("id404");
    adjustLineHeightIfTooBig("id405");
    adjustFontSizeIfTooBig("id405");
    adjustLineHeightIfTooBig("id406");
    adjustFontSizeIfTooBig("id406");
    adjustLineHeightIfTooBig("id407");
    adjustFontSizeIfTooBig("id407");
    adjustLineHeightIfTooBig("id408");
    adjustFontSizeIfTooBig("id408");
    adjustLineHeightIfTooBig("id409");
    adjustFontSizeIfTooBig("id409");
    adjustLineHeightIfTooBig("id410");
    adjustFontSizeIfTooBig("id410");
    adjustLineHeightIfTooBig("id411");
    adjustFontSizeIfTooBig("id411");
    adjustLineHeightIfTooBig("id412");
    adjustFontSizeIfTooBig("id412");
    adjustLineHeightIfTooBig("id413");
    adjustFontSizeIfTooBig("id413");
    adjustLineHeightIfTooBig("id414");
    adjustFontSizeIfTooBig("id414");
    adjustLineHeightIfTooBig("id415");
    adjustFontSizeIfTooBig("id415");
    adjustLineHeightIfTooBig("id416");
    adjustFontSizeIfTooBig("id416");
    adjustLineHeightIfTooBig("id417");
    adjustFontSizeIfTooBig("id417");
    adjustLineHeightIfTooBig("id418");
    adjustFontSizeIfTooBig("id418");
    adjustLineHeightIfTooBig("id419");
    adjustFontSizeIfTooBig("id419");
    adjustLineHeightIfTooBig("id420");
    adjustFontSizeIfTooBig("id420");
    adjustLineHeightIfTooBig("id421");
    adjustFontSizeIfTooBig("id421");
    adjustLineHeightIfTooBig("id422");
    adjustFontSizeIfTooBig("id422");
    adjustLineHeightIfTooBig("id423");
    adjustFontSizeIfTooBig("id423");
    adjustLineHeightIfTooBig("id424");
    adjustFontSizeIfTooBig("id424");
    adjustLineHeightIfTooBig("id425");
    adjustFontSizeIfTooBig("id425");
    adjustLineHeightIfTooBig("id426");
    adjustFontSizeIfTooBig("id426");
    adjustLineHeightIfTooBig("id427");
    adjustFontSizeIfTooBig("id427");
    adjustLineHeightIfTooBig("id428");
    adjustFontSizeIfTooBig("id428");
    adjustLineHeightIfTooBig("id429");
    adjustFontSizeIfTooBig("id429");
    adjustLineHeightIfTooBig("id430");
    adjustFontSizeIfTooBig("id430");
    adjustLineHeightIfTooBig("id431");
    adjustFontSizeIfTooBig("id431");
    adjustLineHeightIfTooBig("id432");
    adjustFontSizeIfTooBig("id432");
    adjustLineHeightIfTooBig("id433");
    adjustFontSizeIfTooBig("id433");
    adjustLineHeightIfTooBig("id434");
    adjustFontSizeIfTooBig("id434");
    adjustLineHeightIfTooBig("id435");
    adjustFontSizeIfTooBig("id435");
    adjustLineHeightIfTooBig("id436");
    adjustFontSizeIfTooBig("id436");
    adjustLineHeightIfTooBig("id437");
    adjustFontSizeIfTooBig("id437");
    adjustLineHeightIfTooBig("id438");
    adjustFontSizeIfTooBig("id438");
    adjustLineHeightIfTooBig("id439");
    adjustFontSizeIfTooBig("id439");
    adjustLineHeightIfTooBig("id440");
    adjustFontSizeIfTooBig("id440");
    adjustLineHeightIfTooBig("id441");
    adjustFontSizeIfTooBig("id441");
    adjustLineHeightIfTooBig("id442");
    adjustFontSizeIfTooBig("id442");
    adjustLineHeightIfTooBig("id443");
    adjustFontSizeIfTooBig("id443");
    adjustLineHeightIfTooBig("id444");
    adjustFontSizeIfTooBig("id444");
    adjustLineHeightIfTooBig("id445");
    adjustFontSizeIfTooBig("id445");
    adjustLineHeightIfTooBig("id446");
    adjustFontSizeIfTooBig("id446");
    adjustLineHeightIfTooBig("id447");
    adjustFontSizeIfTooBig("id447");
    adjustLineHeightIfTooBig("id448");
    adjustFontSizeIfTooBig("id448");
    adjustLineHeightIfTooBig("id449");
    adjustFontSizeIfTooBig("id449");
    adjustLineHeightIfTooBig("id450");
    adjustFontSizeIfTooBig("id450");
    adjustLineHeightIfTooBig("id451");
    adjustFontSizeIfTooBig("id451");
    adjustLineHeightIfTooBig("id452");
    adjustFontSizeIfTooBig("id452");
    adjustLineHeightIfTooBig("id453");
    adjustFontSizeIfTooBig("id453");
    adjustLineHeightIfTooBig("id454");
    adjustFontSizeIfTooBig("id454");
    adjustLineHeightIfTooBig("id455");
    adjustFontSizeIfTooBig("id455");
    adjustLineHeightIfTooBig("id456");
    adjustFontSizeIfTooBig("id456");
    adjustLineHeightIfTooBig("id457");
    adjustFontSizeIfTooBig("id457");
    adjustLineHeightIfTooBig("id458");
    adjustFontSizeIfTooBig("id458");
    adjustLineHeightIfTooBig("id459");
    adjustFontSizeIfTooBig("id459");
    adjustLineHeightIfTooBig("id460");
    adjustFontSizeIfTooBig("id460");
    adjustLineHeightIfTooBig("id461");
    adjustFontSizeIfTooBig("id461");
    adjustLineHeightIfTooBig("id462");
    adjustFontSizeIfTooBig("id462");
    adjustLineHeightIfTooBig("id463");
    adjustFontSizeIfTooBig("id463");
    adjustLineHeightIfTooBig("id464");
    adjustFontSizeIfTooBig("id464");
    adjustLineHeightIfTooBig("id465");
    adjustFontSizeIfTooBig("id465");
    adjustLineHeightIfTooBig("id466");
    adjustFontSizeIfTooBig("id466");
    adjustLineHeightIfTooBig("id467");
    adjustFontSizeIfTooBig("id467");
    adjustLineHeightIfTooBig("id468");
    adjustFontSizeIfTooBig("id468");
    adjustLineHeightIfTooBig("id469");
    adjustFontSizeIfTooBig("id469");
    adjustLineHeightIfTooBig("id470");
    adjustFontSizeIfTooBig("id470");
    adjustLineHeightIfTooBig("id471");
    adjustFontSizeIfTooBig("id471");
    adjustLineHeightIfTooBig("id472");
    adjustFontSizeIfTooBig("id472");
    adjustLineHeightIfTooBig("id473");
    adjustFontSizeIfTooBig("id473");
    adjustLineHeightIfTooBig("id474");
    adjustFontSizeIfTooBig("id474");
    adjustLineHeightIfTooBig("id475");
    adjustFontSizeIfTooBig("id475");
    adjustLineHeightIfTooBig("id476");
    adjustFontSizeIfTooBig("id476");
    adjustLineHeightIfTooBig("id477");
    adjustFontSizeIfTooBig("id477");
    adjustLineHeightIfTooBig("id478");
    adjustFontSizeIfTooBig("id478");
    adjustLineHeightIfTooBig("id479");
    adjustFontSizeIfTooBig("id479");
    adjustLineHeightIfTooBig("id480");
    adjustFontSizeIfTooBig("id480");
    adjustLineHeightIfTooBig("id481");
    adjustFontSizeIfTooBig("id481");
    adjustLineHeightIfTooBig("id482");
    adjustFontSizeIfTooBig("id482");
    adjustLineHeightIfTooBig("id483");
    adjustFontSizeIfTooBig("id483");
    adjustLineHeightIfTooBig("id484");
    adjustFontSizeIfTooBig("id484");
    adjustLineHeightIfTooBig("id485");
    adjustFontSizeIfTooBig("id485");
    adjustLineHeightIfTooBig("id486");
    adjustFontSizeIfTooBig("id486");
    adjustLineHeightIfTooBig("id487");
    adjustFontSizeIfTooBig("id487");
    adjustLineHeightIfTooBig("id488");
    adjustFontSizeIfTooBig("id488");
    adjustLineHeightIfTooBig("id489");
    adjustFontSizeIfTooBig("id489");
    adjustLineHeightIfTooBig("id490");
    adjustFontSizeIfTooBig("id490");
    adjustLineHeightIfTooBig("id491");
    adjustFontSizeIfTooBig("id491");
    adjustLineHeightIfTooBig("id492");
    adjustFontSizeIfTooBig("id492");
    adjustLineHeightIfTooBig("id493");
    adjustFontSizeIfTooBig("id493");
    adjustLineHeightIfTooBig("id494");
    adjustFontSizeIfTooBig("id494");
    adjustLineHeightIfTooBig("id495");
    adjustFontSizeIfTooBig("id495");
    adjustLineHeightIfTooBig("id496");
    adjustFontSizeIfTooBig("id496");
    adjustLineHeightIfTooBig("id497");
    adjustFontSizeIfTooBig("id497");
    adjustLineHeightIfTooBig("id498");
    adjustFontSizeIfTooBig("id498");
    adjustLineHeightIfTooBig("id499");
    adjustFontSizeIfTooBig("id499");
    adjustLineHeightIfTooBig("id500");
    adjustFontSizeIfTooBig("id500");
    adjustLineHeightIfTooBig("id501");
    adjustFontSizeIfTooBig("id501");
    adjustLineHeightIfTooBig("id502");
    adjustFontSizeIfTooBig("id502");
    adjustLineHeightIfTooBig("id503");
    adjustFontSizeIfTooBig("id503");
    adjustLineHeightIfTooBig("id504");
    adjustFontSizeIfTooBig("id504");
    adjustLineHeightIfTooBig("id505");
    adjustFontSizeIfTooBig("id505");
    fixupAllIEPNGBGs();
    return true;
}

function NBmouseover(index)
{
    var normal = document.getElementById("navbar_"+index+"_normal");
    var rollover = document.getElementById("navbar_"+index+"_rollover");
    if (normal && rollover)
    {
        normal.style.visibility = "hidden";
        rollover.style.visibility = "visible";
    }
    return true;
}

function NBmouseout(index)
{
    var normal = document.getElementById("navbar_"+index+"_normal");
    var rollover = document.getElementById("navbar_"+index+"_rollover");
    if (normal && rollover)
    {
        normal.style.visibility = "visible";
        rollover.style.visibility = "hidden";
    }
    return true;
}

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;
    }
}

