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('../evamaegallery_files/4294_1163208920952_1249715853_434970_2361998_n.jpg', '604', '495', 'Eva Mae Le Fevre - August 17, 1917 - May 18, 2009. Gospel Music Royalty, my friend and hero. I\u0027ll miss her calls.');
slides[1] = new Slide('../evamaegallery_files/4515_1163491968028_1249715853_436058_4677831_n.jpg', '438', '604', 'The golden era of the Le Fevres with Eva Mae at the piano, Uncle Alf on accordion, Pierce, Urias, Rex Nelon and Jimmy Jones all playing instruments and singing hit after hit.');
slides[2] = new Slide('../evamaegallery_files/4515_1163490968003_1249715853_436034_6232959_n.jpg', '300', '195', '');
slides[3] = new Slide('../evamaegallery_files/4515_1163492288036_1249715853_436066_1935544_n.jpg', '604', '485', 'Eva Mae Le Fevre, the First Lady of Gospel Music\n');
slides[4] = new Slide('../evamaegallery_files/4515_1163492168033_1249715853_436063_2856655_n.jpg', '255', '219', 'The original Le Fevre Trio');
slides[5] = new Slide('../evamaegallery_files/4515_1163490888001_1249715853_436032_240537_n.jpg', '509', '351', 'The Le Fevres during the war and the changes to keep the group going while serving in the arm forces.\n\n');
slides[6] = new Slide('../evamaegallery_files/photo.jpg', '537', '348', 'Eva Mae with her dad who lived to be a 103 years of age with The Le Fevres.\n\n');
slides[7] = new Slide('../evamaegallery_files/4515_1163491208009_1249715853_436040_6530182_n.jpg', '359', '494', '');
slides[8] = new Slide('../evamaegallery_files/4515_1163492368038_1249715853_436068_254651_n.jpg', '604', '482', '');
slides[9] = new Slide('../evamaegallery_files/4515_1163491248010_1249715853_436041_4798689_n.jpg', '422', '463', '');
slides[10] = new Slide('../evamaegallery_files/4515_1163491928027_1249715853_436057_3975217_n.jpg', '376', '525', '');
slides[11] = new Slide('../evamaegallery_files/n1249715853_435075_6888224.jpg', '477', '604', 'The Le Fevres; Alphus Le Fevre, Jimmy Jones, Rex Nelon, Pierce Le Fevre, Urias Le Fevre and Eva Mae Le Fevre. Featuring Rex Nelon on "I Love To Call His Name."');
slides[12] = new Slide('../evamaegallery_files/n1249715853_436029_5139969.jpg', '497', '604', 'The Gospel Singing Caravan; Popular tour and television show; The Le Fevres, The Johnson Sisters, The Prophets, The Blue Ridge Quartet');
slides[13] = new Slide('../evamaegallery_files/4515_1163491768023_1249715853_436053_998677_n.jpg', '449', '604', 'Eva Mae Le Fevre fronting the group that was to become the Rex Nelon Singers when she retired. Janet Paschal began her career during this era pictured on front line.');
slides[14] = new Slide('../evamaegallery_files/4515_1163491128007_1249715853_436038_4896867_n.jpg', '604', '428', '');
slides[15] = new Slide('../evamaegallery_files/4515_1163490848000_1249715853_436031_3810587_n.jpg', '461', '604', 'Eva Mae Le Fevre was comfortable advertising Martha White flour for the successful television show.\n\n\n');
slides[16] = new Slide('../evamaegallery_files/4515_1163491048005_1249715853_436036_3302686_n.jpg', '258', '554', 'Eva Mae with more commercials for television made the show a big hit with her winning personality.');
slides[17] = new Slide('../evamaegallery_files/4515_1163490807999_1249715853_436030_1862245_n.jpg', '241', '348', '4515_1163490807999_1249715853_436030_1862245_n.jpg.jpeg');
slides[18] = new Slide('../evamaegallery_files/4515_1163491008004_1249715853_436035_8090627_n.jpg', '369', '560', '');
slides[19] = new Slide('../evamaegallery_files/n1249715853_436037_6960524.jpg', '471', '556', '');
slides[20] = new Slide('../evamaegallery_files/n1249715853_436043_4564169.jpg', '604', '492', '');
slides[21] = new Slide('../evamaegallery_files/n1249715853_436045_4566848.jpg', '604', '488', '');
slides[22] = new Slide('../evamaegallery_files/4515_1163492008029_1249715853_436059_3990131_n.jpg', '604', '498', '');
slides[23] = new Slide('../evamaegallery_files/cid-F09E1A96-4C13-4B0D-8DCB-90FD73D4EDD6@hsd1.tn.comcast.jpg', '457', '450', 'The Le Fevres with daughter Andrea\n');
slides[24] = new Slide('../evamaegallery_files/n1249715853_434986_3863387.jpg', '410', '604', 'Rex Nelon with the Le Fevre\u0027s on the Grand Ole Opry.\n\n');
slides[25] = new Slide('../evamaegallery_files/4515_1163492048030_1249715853_436060_5690136_n.jpg', '478', '604', 'Mylon Le Fevre\u0027s youth, talent and good looks contributed to the success of the Le Fevres and he wrote the gospel classic "Without Him," but eventually left the group for his own successful recording career.');
slides[26] = new Slide('../evamaegallery_files/4515_1163492088031_1249715853_436061_8354516_n.jpg', '604', '480', 'Mylon\u0027s influence and youth in the 60\u0027s contributed to this more modern look they wore for a short time.\n\n\n');
slides[27] = new Slide('../evamaegallery_files/n1249715853_436033_7664365.jpg', '433', '604', 'Jerry Reed invited the group to appear with him.');
slides[28] = new Slide('../evamaegallery_files/n1249715853_436067_6311665.jpg', '438', '604', 'Burt Reynolds a big fan of gospel music invited the group to be on the television show.');
slides[29] = new Slide('../evamaegallery_files/n1249715853_436064_4215039.jpg', '420', '604', 'Johnny Cash with the Le Fevres on his popular television show.\n\n');
slides[30] = new Slide('../evamaegallery_files/n1249715853_436044_4095857.jpg', '260', '387', 'Finally touring buses made the difference and they often wondered how they had been able to maintain the grueling travels by automobile for many years.');
slides[31] = new Slide('../evamaegallery_files/n1249715853_436056_5657223.jpg', '604', '483', 'The stunning Le Fevres known for a perfect look and sound.\n ');
slides[32] = new Slide('../evamaegallery_files/n1249715853_434991_7487400.jpg', '604', '600', 'The legendary Le Fevres; Eva Mae, Urias Le Fevre, Alphus Le Fevre, Pierce Le Fevre with Rex Nelon\n\n');
slides[33] = new Slide('../evamaegallery_files/4515_1163491528017_1249715853_436048_290635_n-1.jpg', '483', '604', 'The Le Fevres were adding youth to this already popular quartet with son\u0027s Mylon and Pierce gone on their own.');
slides[34] = new Slide('../evamaegallery_files/4515_1163491288011_1249715853_436042_2839567_n.jpg', '604', '489', 'The president of the GMA congratulates the group on their success as their friend Eldridge Fox from the Kingsmen joins in.');
slides[35] = new Slide('../evamaegallery_files/4515_1163491568018_1249715853_436049_8160079_n.jpg', '495', '604', '4515_1163491568018_1249715853_436049_8160079_n.jpg.jpeg');
slides[36] = new Slide('../evamaegallery_files/n1249715853_436062_19122.jpg', '488', '604', '');
slides[37] = new Slide('../evamaegallery_files/n1249715853_436047_5433844.jpg', '495', '604', '');
slides[38] = new Slide('../evamaegallery_files/4515_1163491608019_1249715853_436050_5542189_n.jpg', '477', '604', '');
slides[39] = new Slide('../evamaegallery_files/4515_1163491648020_1249715853_436051_3463436_n.jpg', '604', '454', '');
slides[40] = new Slide('../evamaegallery_files/n1249715853_436052_5182642.jpg', '604', '475', '');
slides[41] = new Slide('../evamaegallery_files/n1249715853_436054_220067.jpg', '604', '496', '');
slides[42] = new Slide('../evamaegallery_files/4515_1163491448015_1249715853_436046_7805522_n.jpg', '604', '486', 'The last group known as the Le Fevres with Rex Nelon\u0027s purchase of the group and publishing. Once Eva Mae retired from the quartet Rex retired the name, and Canaan launched the new Rex Nelon Singers with daughter Kelly joining the group. Kelly with her family continues the legacy today as the Nelons.');
slides[43] = new Slide('../evamaegallery_files/n1249715853_436055_4393205.jpg', '488', '604', 'The Le Fevres in that 60\u0027s look.');
slides[44] = new Slide('../evamaegallery_files/n1249715853_435862_2748848.jpg', '373', '604', 'GMA Gospel Music Hall of Fame induction for the Le Fevre\u0027s; Rex Nelon, Andrea Le Fevre, Summer Le Fevre Furler, Eva Mae with presenters Mark Lowry and Bill Gaither.');
slides[45] = new Slide('../evamaegallery_files/n1249715853_435859_2577226.jpg', '283', '604', 'Gaither Homecoming taping in Indiana; Eva Mae Le Fevre at piano with old friend Rex Nelon on bass, son Mylon Le Fevre and daughter Kelly Nelon joining in with their legendary parents on an old favorite.');
slides[46] = new Slide('../evamaegallery_files/pict2055.jpg', '300', '400', 'Eva Mae and Bill Gaither on the homecoming stage');
slides[47] = new Slide('../evamaegallery_files/n1249715853_435869_4077285.jpg', '453', '604', 'Eva Mae Le Fevre with Meurice & Peggy Le Fevre at Lee University.\n\n');
slides[48] = new Slide('../evamaegallery_files/4515_1163444806849_1249715853_435875_5675754_n.jpg', '453', '604', 'The Klaudt Indian Foundation honored Eva Mae Le Fevre with a Lee University scholarship fund in her name to honor their parents Mama and Dad Klaudt.\nChief Klaudt, Judy Nelon, Vernon Klaudt, Lee recipients, Raymond Klaudt');
slides[49] = new Slide('../evamaegallery_files/n1249715853_435871_4705879.jpg', '453', '604', 'Two fabulous gospel pianists; Stan Whitmire with Eva Mae.');
slides[50] = new Slide('../evamaegallery_files/n1249715853_435874_811686.jpg', '453', '604', 'Eva Mae with one of her special friends; Kevin Brooks, from Mount Paran Church of God, Lee University and now Tennessee State Representative, who she mentored and was always so proud of.\n\n');
slides[51] = new Slide('../evamaegallery_files/markandevamae.jpg', '383', '374', 'Eva Mae Le Fevre and Mark Fuller');
slides[52] = new Slide('../evamaegallery_files/Snapshot 2009-05-19 00-49-42.jpg', '550', '772', 'SGMA Hall of Fame James D. Vaughn Award');
slides[53] = new Slide('../evamaegallery_files/Snapshot 2009-05-19 00-50-05.jpg', '589', '563', '');
slides[54] = new Slide('../evamaegallery_files/Snapshot 2009-05-19 00-51-29.jpg', '534', '796', '');
slides[55] = new Slide('../evamaegallery_files/Snapshot 2009-05-19 00-48-40.jpg', '536', '800', 'Jane Cox, Charlie Waller, Eva Mae');
slides[56] = new Slide('../evamaegallery_files/Snapshot 2009-05-19 00-46-30.jpg', '528', '788', '');
slides[57] = new Slide('../evamaegallery_files/Snapshot 2009-05-19 00-47-11.jpg', '614', '487', 'Arthur Rice and Eva Mae');
slides[58] = new Slide('../evamaegallery_files/4515_1163445886876_1249715853_435881_255524_n.jpg', '604', '448', 'The Peck Sisters, life long friends. Eva Mae Le Fevre loved and encouraged so many including these young sisters who would come down to the live broadcast of the weekly Le Fevre television show in Columbus, GA. She would say, "sing girls sing." Judy Nelon, Sharon Elmore and Linda Harkins');
slides[59] = new Slide('../evamaegallery_files/4294_1163225281361_1249715853_435001_7982042_n.jpg', '604', '473', 'Rex Nelon spent over 40 years singing with Eva Mae, they were friends and encouraged each other. He felt he owed the Le Fevres so much since they had given him a great job in gospel music, the place he loved more than almost anything.');
slides[60] = new Slide('../evamaegallery_files/4515_1163492248035_1249715853_436065_480318_n.jpg', '391', '247', 'Eva Mae Le Fevre, always a grand lady.\n\n');
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");
    fixupAllIEPNGBGs();
    fixupIEPNG("id2", "evamaegallery_files/transparent.gif");
    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;
    }
}


