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('../Page 4_files/A group of students fron Leipzig giving an outdoor Serenata.jpg', '800', '690', 'A group of students fron Leipzig giving an outdoor Serenata');
slides[1] = new Slide('../Page 4_files/S.jpg', '370', '604', 'S. Stoskopff (1597-1657) The Fuve Senses ');
slides[2] = new Slide('../Page 4_files/Jacob Jordaens (1593-1678) The painter and his Family .jpg', '387', '422', 'Jacob Jordaens (1593-1678) The painter and his Family ');
slides[3] = new Slide('../Page 4_files/D.jpg', '399', '533', 'D. Van Baburen (1595-1624) The Concert');
slides[4] = new Slide('../Page 4_files/Nicolas Tournier (1590 - after 1657) .jpg', '403', '606', 'Nicolas Tournier (1590 - after 1657) ');
slides[5] = new Slide('../Page 4_files/G.jpg', '548', '398', 'G. de Pitati');
slides[6] = new Slide('../Page 4_files/L.jpg', '403', '511', 'L. Le Nain (ca 1593-1648) The Concert ');
slides[7] = new Slide('../Page 4_files/G_1.jpg', '593', '407', 'G. Metsu (1629-1667)');
slides[8] = new Slide('../Page 4_files/E.jpg', '361', '474', 'E. Baschenis (1617-1677) ');
slides[9] = new Slide('../Page 4_files/Anonyme Rombouts.jpg', '480', '544', 'Anonyme Rombouts');
slides[10] = new Slide('../Page 4_files/A late 1630\u0027s portrait that might be Jacques Gaultier, by Jean de Reyn.jpg', '800', '547', 'A late 1630\u0027s portrait that might be Jacques Gaultier, by Jean de Reyn');
slides[11] = new Slide('../Page 4_files/Newe Deucsche Geistliche Gesenge 1544.jpg', '800', '608', 'Newe Deucsche Geistliche Gesenge 1544');
slides[12] = new Slide('../Page 4_files/J.jpg', '403', '580', 'J. Molenaer (Haarlem 1610 - 1668) Family Portrait');
slides[13] = new Slide('../Page 4_files/W.jpg', '403', '595', 'W. van Aelst (ca 1625-1683) The concert');
slides[14] = new Slide('../Page 4_files/Abraham Bosse 1602-1676.jpg', '625', '800', 'Abraham Bosse 1602-1676');
slides[15] = new Slide('../Page 4_files/A group of students fron Leipzig giving an outdoor Serenata_1_1.jpg', '800', '690', 'A group of students fron Leipzig giving an outdoor Serenata');
slides[16] = new Slide('../Page 4_files/CarianiA Concert, c.jpg', '390', '559', 'Cariani\u000dA Concert, c. 1518-1520');
slides[17] = new Slide('../Page 4_files/MRS ARABELLA HUNT.jpg', '752', '600', 'MRS ARABELLA HUNT');
slides[18] = new Slide('../Page 4_files/SC63431.jpg', '450', '636', 'SC63431.fpx&obj=iip,1');
slides[19] = new Slide('../Page 4_files/logo.jpg', '244', '259', 'logo');
slides[20] = new Slide('../Page 4_files/DSC01691.jpg', '600', '800', 'Anastasia Kapelle Benediktbeuern');
slides[21] = new Slide('../Page 4_files/DSC01779.jpg', '709', '800', 'Adam_Falkenhagen.jpg');
slides[22] = new Slide('../Page 4_files/DSC01782.jpg', '600', '800', 'J.G. Platzer 1740 Detail.JPG');
slides[23] = new Slide('../Page 4_files/DSC01783.jpg', '600', '800', 'Johann Georg Platzer 1740 1740.JPG');
slides[24] = new Slide('../Page 4_files/Peter de Jode.jpg', '734', '800', 'Peter de Jode');
slides[25] = new Slide('../Page 4_files/Besard_1617j.jpg', '495', '800', 'Besard_1617j');
slides[26] = new Slide('../Page 4_files/Praetorius-Plucked_1.jpg', '236', '189', 'Praetorius-Plucked_1');
slides[27] = new Slide('../Page 4_files/flute player.jpg', '672', '800', 'flute player');
slides[28] = new Slide('../Page 4_files/detail1.jpg', '425', '800', 'detail1');
slides[29] = new Slide('../Page 4_files/detail2.jpg', '534', '800', 'detail2');
slides[30] = new Slide('../Page 4_files/detail3.jpg', '575', '500', 'detail3');
slides[31] = new Slide('../Page 4_files/A.jpg', '800', '581', 'A.Dürer-Angel');
slides[32] = new Slide('../Page 4_files/Troy-Mouton.jpg', '745', '570', 'Troy-Mouton');
slides[33] = new Slide('../Page 4_files/A.Plisson.jpg', '480', '415', 'A.Plisson. un_joueur_de_luth');
slides[34] = new Slide('../Page 4_files/BOTERO LUTE.jpg', '377', '500', 'BOTERO LUTE');
slides[35] = new Slide('../Page 4_files/lute_sm.jpg', '282', '150', 'lute_sm');
slides[36] = new Slide('../Page 4_files/Pellegrini.jpg', '397', '295', 'Pellegrini');
slides[37] = new Slide('../Page 4_files/Pellegrini_s_hand.jpg', '467', '484', 'Pellegrini_s_hand');
slides[38] = new Slide('../Page 4_files/corb48.jpg', '800', '662', 'Corbetta');
slides[39] = new Slide('../Page 4_files/fosc.jpg', '313', '292', 'Foscarini');
slides[40] = new Slide('../Page 4_files/Lady with a Theorbo (c.jpg', '532', '520', 'Lady with a Theorbo (c.1670?) by John Michael Wright ');
slides[41] = new Slide('../Page 4_files/charolais2.jpg', '800', '794', 'charolais2');
slides[42] = new Slide('../Page 4_files/charolais.jpg', '712', '800', 'charolais');
slides[43] = new Slide('../Page 4_files/Praetorius_theorbo.jpg', '800', '249', 'Praetorius_theorbo');
slides[44] = new Slide('../Page 4_files/Confortini.jpg', '800', '759', 'Confortini');
slides[45] = new Slide('../Page 4_files/Jean de Reyn, Lute Player Around 1640.jpg', '800', '569', 'Jean de Reyn, Lute Player Around 1640');
slides[46] = new Slide('../Page 4_files/Antoon Claeissins Attributed to The Five Senses (1580 1590).jpg', '538', '640', 'Antoon Claeissins Attributed to The Five Senses (1580 1590)');
slides[47] = new Slide('../Page 4_files/Bartolomeo Passarotti, Portrait of a Man Playing a Lute 1576.jpg', '800', '630', 'Bartolomeo Passarotti, Portrait of a Man Playing a Lute 1576');
slides[48] = new Slide('../Page 4_files/Francesco Bacchiacca 1522.jpg', '475', '343', 'Francesco Bacchiacca 1522');
slides[49] = new Slide('../Page 4_files/Gerard ter Borch.jpg', '339', '300', 'Gerard ter Borch');
slides[50] = new Slide('../Page 4_files/Abraham Bosse, Belle Cloris de qoy me sert...jpg', '800', '552', 'Abraham Bosse, “Belle Cloris de qoy me sert...”  Seventeenth century');
slides[51] = new Slide('../Page 4_files/Thomas Wilmer.jpg', '416', '352', 'Thomas Wilmer');
slides[52] = new Slide('../Page 4_files/Laurent de La Hyre 1649.jpg', '366', '500', 'Laurent de La Hyre 1649');
slides[53] = new Slide('../Page 4_files/Pietro di Domenico da Montepulciano 1420.jpg', '699', '450', 'Pietro di Domenico da Montepulciano 1420');
slides[54] = new Slide('../Page 4_files/Jean Antoine Watteau (French, 16841721).jpg', '382', '300', 'Jean Antoine Watteau (French, 1684–1721)');
slides[55] = new Slide('../Page 4_files/Gerard ter Borch II 1658.jpg', '390', '520', 'Gerard ter Borch II 1658');
slides[56] = new Slide('../Page 4_files/Jan Steen The Family Concert, 1666.jpg', '556', '638', 'Jan Steen The Family Concert, 1666');
slides[57] = new Slide('../Page 4_files/Gerrit van Honthorst 1622.jpg', '481', '334', 'Gerrit van Honthorst 1622');
slides[58] = new Slide('../Page 4_files/Giovanni Battista Tiepolo 1755.jpg', '450', '362', 'Giovanni Battista Tiepolo 1755');
slides[59] = new Slide('../Page 4_files/Gerard ter Borch 1675.jpg', '480', '383', 'Gerard ter Borch 1675');
slides[60] = new Slide('../Page 4_files/Jacob Ochterveldt The Music Lesson 1671.jpg', '768', '646', 'Jacob Ochterveldt The Music Lesson 1671');
slides[61] = new Slide('../Page 4_files/Jacques Callot, Le Bancal Jouant de la Guitare.jpg', '449', '640', 'Jacques Callot, Le Bancal Jouant de la Guitare.  Around 1616');
slides[62] = new Slide('../Page 4_files/The Lute 1904 Thomas Wilmer Dewing.jpg', '500', '673', 'The Lute 1904 Thomas Wilmer Dewing');
slides[63] = new Slide('../Page 4_files/Baburen, Dirck van.jpg', '612', '650', 'Baburen, Dirck van');
slides[64] = new Slide('../Page 4_files/Parrasio Micheli Young Woman Playing a Lute c.jpg', '276', '244', 'Parrasio Micheli Young Woman Playing a Lute c. 1570');
slides[65] = new Slide('../Page 4_files/Master of the Saint Bartholomew Altar.jpg', '390', '520', 'Master of the Saint Bartholomew Altar');
slides[66] = new Slide('../Page 4_files/Venus and the Lute Player Titian 1565.jpg', '512', '650', 'Venus and the Lute Player Titian 1565');
slides[67] = new Slide('../Page 4_files/Giovanni Agostino da Lodi.jpg', '432', '375', 'Giovanni Agostino da Lodi');
slides[68] = new Slide('../Page 4_files/Michelangelo Caravaggio, The Musicians.jpg', '615', '801', 'Michelangelo Caravaggio, The Musicians.  1595-96');
slides[69] = new Slide('../Page 4_files/Jacques Callot, Le joueur de luth.jpg', '430', '640', 'Jacques Callot, Le joueur de luth.  Around 1616');
slides[70] = new Slide('../Page 4_files/Thomas Wilmer Dewing 1905.jpg', '800', '589', 'Thomas Wilmer Dewing 1905');
slides[71] = new Slide('../Page 4_files/Allegory of Marital Fidelity 1633 Jan Miense Molenaer.jpg', '252', '400', 'Allegory of Marital Fidelity 1633 Jan Miense Molenaer');
slides[72] = new Slide('../Page 4_files/P1010640.jpg', '600', '800', 'P1010640');
slides[73] = new Slide('../Page 4_files/Master of the Saint Lucy Legend.jpg', '390', '520', 'Master of the Saint Lucy Legend');
slides[74] = new Slide('../Page 4_files/Hans Schnatterpeck.jpg', '380', '250', 'Hans Schnatterpeck');
slides[75] = new Slide('../Page 4_files/Gabriel Metsu 1659.jpg', '344', '300', 'Gabriël Metsu 1659');
slides[76] = new Slide('../Page 4_files/Zacharias Dolendo (attrib.), A Couple Addressed by a Lute Player.jpg', '461', '333', 'Zacharias Dolendo (attrib.), A Couple Addressed by a Lute Player.  1595:9');
slides[77] = new Slide('../Page 4_files/Jaques Callot, Le Comedien Masque Jouant de la Guitare.jpg', '531', '640', 'Jaques Callot, Le Comédien Masqué Jouant de la Guitare.  Around 1616');
slides[78] = new Slide('../Page 4_files/Nicolas Lancret, Guitar Player.jpg', '640', '322', 'Nicolas Lancret, Guitar Player.  1725-1730');
slides[79] = new Slide('../Page 4_files/Albrecht Durer, Man Drawing a Lute 1525.jpg', '570', '800', 'Albrecht Dürer, Man Drawing a Lute 1525');
slides[80] = new Slide('../Page 4_files/attr. Jean Poyet, Virgin and Christ Child.jpg', '400', '253', 'attr. Jean Poyet, Virgin and Christ Child.  Around 1495');
slides[81] = new Slide('../Page 4_files/dcmay.jpg', '354', '253', 'dcmay');
slides[82] = new Slide('../Page 4_files/Israhel van Meckenem, Lute and Harp Duet.jpg', '800', '529', 'Israhel van Meckenem, Lute and Harp Duet.  Around 1490');
slides[83] = new Slide('../Page 4_files/Francesco di Giorgio Martini and Giuliano da Majano, Studiolo from the Ducal Palace in Gubbio.jpg', '357', '500', 'Francesco di Giorgio Martini and Giuliano da Majano, Studiolo from the Ducal Palace in Gubbio.  1479-82');
slides[84] = new Slide('../Page 4_files/Anonymous Italian, Berretino Jug with a Musical Theme.jpg', '480', '348', 'Anonymous Italian, Berretino Jug with a Musical Theme.  1536');
slides[85] = new Slide('../Page 4_files/Giovanni Battista Vanni, Angel Playing a Lute.jpg', '336', '512', 'Giovanni Battista Vanni, Angel Playing a Lute.  17th century');
slides[86] = new Slide('../Page 4_files/M.C.jpg', '600', '477', 'M.C. Escher 1931');
slides[87] = new Slide('../Page 4_files/Albrecht Durer, Man Drawing a Lute 1525a.jpg', '800', '554', 'Albrecht Dürer, Man Drawing a Lute 1525a');
slides[88] = new Slide('../Page 4_files/Morazzone Italian about 1598.jpg', '476', '640', 'Morazzone, Angel Musicians.  Around 1598');
slides[89] = new Slide('../Page 4_files/guitar-lute.jpg', '550', '513', 'guitar-lute');
slides[90] = new Slide('../Page 4_files/lute 6.jpg', '800', '600', 'lute 6');
slides[91] = new Slide('../Page 4_files/lute3.jpg', '800', '587', 'lute3');
slides[92] = new Slide('../Page 4_files/Still Life with Mandolin and Lute - Web.jpg', '500', '758', 'Still Life with Mandolin and Lute - Web');
slides[93] = new Slide('../Page 4_files/Frans Hals Lute PLayer with Wine Glass1626.jpg', '800', '651', 'Frans Hals Lute PLayer with Wine Glass1626');
slides[94] = new Slide('../Page 4_files/Lute player.jpg', '800', '600', 'Lute player');
slides[95] = new Slide('../Page 4_files/lute.jpg', '480', '720', 'lute');
slides[96] = new Slide('../Page 4_files/Hans Holbein the younger.jpg', '543', '529', 'Hans Holbein the younger');
slides[97] = new Slide('../Page 4_files/funky_lute.jpg', '499', '750', 'funky_lute');
slides[98] = new Slide('../Page 4_files/Willem Cornelisz Duyster 1599-1635.jpg', '475', '352', 'Willem Cornelisz Duyster 1599-1635');
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("id23");
    adjustFontSizeIfTooBig("id23");
    fixupAllIEPNGBGs();
    fixupIEPNG("id2", "Page 4_files/transparent.gif");
    fixupIEPNG("id3", "Page 4_files/transparent.gif");
    fixupIEPNG("id4", "Page 4_files/transparent.gif");
    fixupIEPNG("id5", "Page 4_files/transparent.gif");
    fixupIEPNG("id6", "Page 4_files/transparent.gif");
    fixupIEPNG("id7", "Page 4_files/transparent.gif");
    fixupIEPNG("id8", "Page 4_files/transparent.gif");
    fixupIEPNG("id9", "Page 4_files/transparent.gif");
    fixupIEPNG("id10", "Page 4_files/transparent.gif");
    fixupIEPNG("id11", "Page 4_files/transparent.gif");
    fixupIEPNG("id12", "Page 4_files/transparent.gif");
    fixupIEPNG("id13", "Page 4_files/transparent.gif");
    fixupIEPNG("id14", "Page 4_files/transparent.gif");
    fixupIEPNG("id15", "Page 4_files/transparent.gif");
    fixupIEPNG("id16", "Page 4_files/transparent.gif");
    fixupIEPNG("id17", "Page 4_files/transparent.gif");
    fixupIEPNG("id18", "Page 4_files/transparent.gif");
    fixupIEPNG("id19", "Page 4_files/transparent.gif");
    fixupIEPNG("id20", "Page 4_files/transparent.gif");
    fixupIEPNG("id21", "Page 4_files/transparent.gif");
    fixupIEPNG("id22", "Page 4_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;
    }
}

