slideShowURL = 'SlideShow_assets/SlideShow.html';       // parameter from openSlideShowWindow.js
slideShowNS4URL = 'SlideShow_assets/SlideShowNS4.html'; // parameter from openSlideShowWindow.js

slides = new Array();
slides[0] = new Slide('../Fraternal_orders_files/65themeD8.jpg', '694', '800', 'Beautiful unused box for cigars by Powell & Goldstein, Oneida, NY, for an unknown customer. Fact. 370, 21st District NY. 1888-1892.\nLabel by Schumacher & Ettlinger.\n[6508]');
slides[1] = new Slide('../Fraternal_orders_files/65themeD7.jpg', '652', '800', 'Washington depicted as Grand Master of the Masons on this mid 1880’s box for cigars by \nJoel Garrison, Dagget’s Mills, PA\nFactory 163, 12th District PA/\n[6507]');
slides[2] = new Slide('../Fraternal_orders_files/65themeD12.jpg', '637', '800', 'An unidentified Masonic Grand Commander is depicted on the box of cigars by Barnes, Smith & Co., Binghamton, NY for Joseph Simon & Son, Grand Rapids, MI, distributors c1905. \nFact 1239, 21st Dist. NY\n[6512]');
slides[3] = new Slide('../Fraternal_orders_files/10472.jpg', '547', '600', 'SHRINER Invincibles makes a nice combination brand name and frontmark on this c1929 box used by Erickson & Hanigan Cigar Co., Pierre, SD,\nFact. 108, Dist. N&S Dakota.\n[10472]');
slides[4] = new Slide('../Fraternal_orders_files/10473.jpg', '608', '600', '\n[Box of 10 made by L.N. Schulner, Factory 15. Watertown, SD, District of N&S Dakota, c1920.\n[10473]');
slides[5] = new Slide('../Fraternal_orders_files/65themeD15.jpg', '678', '800', 'The women’s auxiliary of the Masons is honored on this distinctive box used by George Sessler, 442 1st Avenue in NYC in the late 1890’s. \nFactory 27, 3rd Dist. NYC.\n[6515]');
slides[6] = new Slide('../Fraternal_orders_files/65themeD6.jpg', '639', '800', 'Good looking Canadian box used for 10 cigars by\nMiller & Lockwell, who owned Fact. 4, IRD 8 between 1907 and 1911.  1897 stamp.\n \n[6506]');
slides[7] = new Slide('../Fraternal_orders_files/KofC.jpg', '216', '324', 'Stock label with name and K of C pin added. c1910.\nGood example of how local clubs could have short run boxes of “custom” cigars, perhaps made by a member. Not in the NCM collection.');
slides[8] = new Slide('../Fraternal_orders_files/65themeD16.jpg', '536', '800', 'Stock label printed by A.C. Henschel starting in 1901. Used by Elks Clubs all over the country.\nCigars by Harry Beckoff, Fact. 616, Philadelphia.\n[6516]');
slides[9] = new Slide('../Fraternal_orders_files/65themeD17.jpg', '526', '800', 'Cigars by P.F. Auler, Oshkosh, Fact. 360, Wisc.\nin the late 1920’s. Is that where the club was? \n[6517]');
slides[10] = new Slide('../Fraternal_orders_files/65themeD23.jpg', '801', '553', 'Created in 1911 to celebrate the 2nd anniversary of the founding of Moose Lodge 148 in York, PA,  with cigars by S.L. Etter, York. Fact. 1700, 9th PA.\nSalesman’s sample size box of 12.\n[6523]');
slides[11] = new Slide('../Fraternal_orders_files/65themeD22.jpg', '562', '801', 'In 1938 and 1943 Moose Lodge 148 was still celebrating their existence with custom cigars, these by Diehl Cigar Co., Pleasureville, Fact 22. 1st Dist.\n[6522]');
slides[12] = new Slide('../Fraternal_orders_files/65themeD19.jpg', '477', '800', 'Stock top brand, perfectly suited for the \nV.F.W. cigar.\n[6519]');
slides[13] = new Slide('../Fraternal_orders_files/65themeD20.jpg', '546', '800', 'Rare box of 13/13 created in the late 1930’s,, used by the Brazil Cigar Co., in Brazil, Indiana. Note “Manufactured with permission of the VFW” rather than made specifically for them. Fact. 82, Indiana.\n[6520]');
slides[14] = new Slide('../Fraternal_orders_files/9174.jpg', '484', '507', 'The Grand Army of the Republic was a very popular veteran’s group following the Civil War. Veterans wore their service medals (shown) proudly, and displayed it in ads and on business cards.\nFactory 504, 1st Mich. this box issued on the 23rd anniversary of the start of the Civil War.  [9174]');
slides[15] = new Slide('../Fraternal_orders_files/events2.jpg', '390', '600', 'The twentieth national reunion of veterans was held in 1886 in California, resulting in this stunning box. Label created by Emil Steffens, NYC. Cigars made by one of the 500 rollers in Fact. 401, 3rd NYC\nrun by Levy Bros, \n[2202]');
slides[16] = new Slide('../Fraternal_orders_files/events52.jpg', '484', '599', 'Silver ink is appropriate for the 25th anniversary of the South Brooklyn Sharp Shooters in 1893.\nCigars made by club member, Ernst Guenther\nFactory 548, 1st Brooklyn, NY.\nA curator’s favorite. [2252]');
slides[17] = new Slide('../Fraternal_orders_files/events53.jpg', '292', '600', 'Sharpshooter member Ernst Guenther created a label that included a formal proclamation from the club authorizing him to use the club’s name.\nLate 1800’s. Factory crossed out.\n[2253]');
slides[18] = new Slide('../Fraternal_orders_files/65themeD2.jpg', '688', '800', 'After the Masons, more boxes are found for the Knights of Pythias than for any other organization. This 1886 beauty was printed by Schumacher & Ettlinger and used by Hummel & Co. of Schenevus, NY, for an unknown customer. Fact. 788, 21st Dist.\n[6502]');
slides[19] = new Slide('../Fraternal_orders_files/65themeD4.jpg', '536', '800', 'Stock O.L. Schwencke, NY, label, depicting a wounded warrior knight in silver armor.\n[6504]');
slides[20] = new Slide('../Fraternal_orders_files/65themeD5.jpg', '563', '800', 'A stock gold frame label was made into a custom for the Knights of Pythias. Brinted by Dittgen & Co., Cincinnati, for F.H. Berning & Sons, cigar makers located at 331 Main in Cincinnati. Fact. 12, 1st OH.\n[6505]');
slides[21] = new Slide('../Fraternal_orders_files/65themeD18.jpg', '551', '800', 'John Schnell, Factory 26 in Madison, 2nd Dist. of Wisconsin sold these around 1900.\n[6518]');
slides[22] = new Slide('../Fraternal_orders_files/65themeD24.jpg', '800', '735', 'KNIGHTS OF THE SKUNK SKIN. Yes, that’s really the organization’s name. Cigars by George Schmidt & Son, Factory 136, 1st District, Neenah, Wisconsin c1905. Box of 12 packed horizontally.\n[6524]');
slides[23] = new Slide('../Fraternal_orders_files/65themeD21.jpg', '677', '800', 'The Allies frontmark goes along with its near WWI origin. Box of 10/5 made by William Glaccum & Sons, 302 E. 45th St., NYC, for W.W. Pegan, Grand Forks, ND. Who’s the man in the insert? \nWhat is KEM? Part of the Shriners is best bet? \n[6521]');
slides[24] = new Slide('../Fraternal_orders_files/65themeD29.jpg', '746', '800', 'Knights of The Maccabees box from 1901-1904. Local chapters were called ‘tents’ hence the image.\nCigars by the Watkins Cigar Co, Watkins Glen, NY.  Fact. 469, 21st NY.  Label by F.M. Howell. \n[6529]');
slides[25] = new Slide('../Fraternal_orders_files/60words89.jpg', '484', '527', 'Here’s a group you didn’t expect on a cigar!\nGetman Cigar Co., Oshkosh Fact. 83, Wisconsin.\nDistributed by the N.A.A.C.P. Cigar Co.\n[6089]');
slides[26] = new Slide('../Fraternal_orders_files/65themeD51.jpg', '800', '786', 'A labor union, more than a fraternal or service group. Wonderful Heppenheimer & Maurer label used by Kerbs & Spiess, one of NYC’s largest cigar makers. The CMIU stamp is the very rare issue of 1886, almost never seen on a box. Fact. 13, 3rd NY\n[6551]');
slides[27] = new Slide('../Fraternal_orders_files/62themeCj35.jpg', '714', '800', 'Brotherhood of Railroad Trainmen, also a labor union rather than a fraternal or service group, but certainly men bound by common interest. Ciggars by Frey & Conway, Newark, NY, Fact. 842, 21st NY\nin 1919. Label by Moehle Litho, Brooklyn.\n[6235]');
slides[28] = new Slide('../Fraternal_orders_files/65themeD70.jpg', '380', '600', 'Another union is featured in this exceptionally rare box created especially for the Journeymen Barbers’ Union No. 50 in 1927.\n[6570]');
isPureISOLatin1 = true;
contentEncodingConstant = 4;
feedbackURL = "TODO";
showFeedbackButton = false;
feedbackEnabled = true;

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

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");
    fixupAllIEPNGBGs();
    fixupIEPNG("id3", "Fraternal_orders_files/transparent.gif");
    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;
    }
}

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

