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 3_files/BELLINI, Giovanni (detail) 1488.jpg', '800', '587', 'BELLINI, Giovanni (detail) 1488');
slides[1] = new Slide('../Page 3_files/BELLINI, Giovanni 1488.jpg', '450', '800', 'BELLINI, Giovanni 1488');
slides[2] = new Slide('../Page 3_files/BONIFACIO VERONESE-1450-60.jpg', '389', '800', 'BONIFACIO VERONESE-1450-60');
slides[3] = new Slide('../Page 3_files/BOSSE, Abraham-c.jpg', '575', '800', 'BOSSE, Abraham-c. 1635');
slides[4] = new Slide('../Page 3_files/BUYTEWECH, Willem 1620-23.jpg', '800', '729', 'BUYTEWECH, Willem 1620-23');
slides[5] = new Slide('../Page 3_files/CLAESZ, Pieter 1623.jpg', '449', '800', 'CLAESZ, Pieter 1623');
slides[6] = new Slide('../Page 3_files/CODDE, Pieter 1639.jpg', '500', '800', 'CODDE, Pieter 1639');
slides[7] = new Slide('../Page 3_files/DAVID, Gerard.jpg', '702', '548', 'DAVID, Gerard');
slides[8] = new Slide('../Page 3_files/DAVID, Gerard c.jpg', '800', '474', 'DAVID, Gerard c.1505');
slides[9] = new Slide('../Page 3_files/FABRITIUS, Carel 1652.jpg', '390', '800', 'FABRITIUS, Carel 1652');
slides[10] = new Slide('../Page 3_files/GARCIA, Pere 1460-70.jpg', '800', '547', 'GARCIA, Pere 1460-70');
slides[11] = new Slide('../Page 3_files/GIORGIONE 1508-09.jpg', '599', '800', 'GIORGIONE 1508-09');
slides[12] = new Slide('../Page 3_files/GIOTTO di Bondone 1304-06.jpg', '760', '794', 'GIOTTO di Bondone 1304-06');
slides[13] = new Slide('../Page 3_files/GIOTTO di Bondone (detail).jpg', '800', '653', 'GIOTTO di Bondone (detail)');
slides[14] = new Slide('../Page 3_files/HALS, Dirck-Musicians-1623.jpg', '636', '725', 'HALS, Dirck-Musicians-1623');
slides[15] = new Slide('../Page 3_files/HALS, Dirck 1627.jpg', '454', '801', 'HALS, Dirck 1627');
slides[16] = new Slide('../Page 3_files/HONTHORST, Gerrit van 1624.jpg', '714', '800', 'HONTHORST, Gerrit van 1624');
slides[17] = new Slide('../Page 3_files/HONTHORST, Gerrit van 1622.jpg', '800', '562', 'HONTHORST, Gerrit van 1622');
slides[18] = new Slide('../Page 3_files/HUILLIOT, Pierre Nicolas.jpg', '452', '800', 'HUILLIOT, Pierre Nicolas');
slides[19] = new Slide('../Page 3_files/LISS, Johann-The Ecstasy of St Paul.jpg', '800', '589', 'LISS, Johann-The Ecstasy of St Paul');
slides[20] = new Slide('../Page 3_files/MELOZZO DA FORLI 1480.jpg', '800', '535', 'MELOZZO DA FORLI 1480');
slides[21] = new Slide('../Page 3_files/MEMLING, Hans 1465-67.jpg', '800', '554', 'MEMLING, Hans 1465-67');
slides[22] = new Slide('../Page 3_files/MIERIS, Frans van, the Elder-Duet-1658.jpg', '800', '612', 'MIERIS, Frans van, the Elder-Duet-1658');
slides[23] = new Slide('../Page 3_files/MOLENAER, Jan Miense 1633.jpg', '800', '689', 'MOLENAER, Jan Miense 1633');
slides[24] = new Slide('../Page 3_files/MOLENAER, Jan Miense.jpg', '800', '599', 'MOLENAER, Jan Miense');
slides[25] = new Slide('../Page 3_files/MOLENAER, The Duet-c.jpg', '800', '617', 'MOLENAER, The Duet-c. 1630');
slides[26] = new Slide('../Page 3_files/MOLENAER, Jan Miense 1630s.jpg', '602', '800', 'MOLENAER, Jan Miense 1630s');
slides[27] = new Slide('../Page 3_files/MOLENAER, Jan Miense 1631.jpg', '560', '800', 'MOLENAER, Jan Miense 1631');
slides[28] = new Slide('../Page 3_files/MONTAGNA, Bartolomeo1498.jpg', '800', '502', 'MONTAGNA, Bartolomeo1498');
slides[29] = new Slide('../Page 3_files/MONTAGNA, Bartolomeo.jpg', '552', '800', 'MONTAGNA, Bartolomeo. 1498jpg');
slides[30] = new Slide('../Page 3_files/SERRA, Pedro 1390s.jpg', '800', '567', 'SERRA, Pedro 1390s');
slides[31] = new Slide('../Page 3_files/SERRA, Pedro c.jpg', '800', '531', 'SERRA, Pedro c.1390');
slides[32] = new Slide('../Page 3_files/STOSKOPFF, Sebastien 1633.jpg', '479', '801', 'STOSKOPFF, Sébastien 1633');
slides[33] = new Slide('../Page 3_files/TERBORCH, Gerard 1675.jpg', '800', '640', 'TERBORCH, Gerard 1675');
slides[34] = new Slide('../Page 3_files/TERBRUGGHEN, Hendrick 1629 .jpg', '705', '800', 'TERBRUGGHEN, Hendrick 1629 ');
slides[35] = new Slide('../Page 3_files/TIEPOLO, Giovanni Battista 1761-62.jpg', '592', '801', 'TIEPOLO, Giovanni Battista 1761-62');
slides[36] = new Slide('../Page 3_files/TIEPOLO, Giovanni Battista 1746-47.jpg', '592', '800', 'TIEPOLO, Giovanni Battista 1746-47');
slides[37] = new Slide('../Page 3_files/UNKNOWN MASTER, Spanish.jpg', '800', '499', 'UNKNOWN MASTER, Spanish');
slides[38] = new Slide('../Page 3_files/WATTEAU, Jean-Antoine c.jpg', '579', '800', 'WATTEAU, Jean-Antoine c.1718');
slides[39] = new Slide('../Page 3_files/Annibale Carracci 1560 - 1609.jpg', '677', '435', 'Annibale Carracci 1560 - 1609');
slides[40] = new Slide('../Page 3_files/Anonymous German (Detail).jpg', '497', '457', 'Anonymous German (Detail)');
slides[41] = new Slide('../Page 3_files/Giovanni Baglione 1571- 1644 .jpg', '551', '800', 'Giovanni Baglione 1571- 1644 ');
slides[42] = new Slide('../Page 3_files/Dure\u0027s Lute.jpg', '168', '495', 'Düre\u0027s Lute');
slides[43] = new Slide('../Page 3_files/Giovanni Francesco Grimaldi 1606-1680 .jpg', '428', '553', 'Giovanni Francesco Grimaldi 1606-1680 ');
slides[44] = new Slide('../Page 3_files/Daniel Hopfer -German circa 1470-1536.jpg', '686', '487', 'Daniel Hopfer -German circa 1470-1536');
slides[45] = new Slide('../Page 3_files/Daniel Hopfer detail II.jpg', '684', '750', 'Daniel Hopfer detail II');
slides[46] = new Slide('../Page 3_files/Daniel Hopfer detail I.jpg', '661', '463', 'Daniel Hopfer detail I');
slides[47] = new Slide('../Page 3_files/William Strang 1859-1921 .jpg', '560', '465', 'William Strang 1859-1921 ');
slides[48] = new Slide('../Page 3_files/Antonio da Trento 1508-1550.jpg', '551', '477', 'Antonio da Trento 1508-1550');
slides[49] = new Slide('../Page 3_files/Hamlet Winstanley (detail).jpg', '662', '436', 'Hamlet Winstanley (detail)');
slides[50] = new Slide('../Page 3_files/Hamlet Winstanley 1698 -1756.jpg', '599', '800', 'Hamlet Winstanley 1698 -1756');
slides[51] = new Slide('../Page 3_files/David Teniers the Younger 1610-1694.jpg', '685', '447', 'David Teniers the Younger 1610-1694');
slides[52] = new Slide('../Page 3_files/Hendrick Terbruggen.jpg', '585', '468', 'Hendrick Terbruggen');
slides[53] = new Slide('../Page 3_files/Giovanni Balducci (detail).jpg', '661', '576', 'Giovanni Balducci (detail)');
slides[54] = new Slide('../Page 3_files/Giovanni Balducci 1560-1603.jpg', '541', '492', 'Giovanni Balducci 1560-1603');
slides[55] = new Slide('../Page 3_files/Hendrik Goltzius Dutch 1558-1617 .jpg', '651', '453', 'Hendrik Goltzius Dutch 1558-1617 ');
slides[56] = new Slide('../Page 3_files/Hendrik Goltzius (detail).jpg', '570', '800', 'Hendrik Goltzius (detail)');
slides[57] = new Slide('../Page 3_files/Hendrik Goltzius (detail II).jpg', '649', '800', 'Hendrik Goltzius (detail II)');
slides[58] = new Slide('../Page 3_files/Monogramist B (engraver)-Italian active 16th-17th century.jpg', '688', '448', 'Monogramist B (engraver)-Italian active 16th-17th century');
slides[59] = new Slide('../Page 3_files/Christopher van Sichem (detail).jpg', '556', '800', 'Christopher van Sichem (detail)');
slides[60] = new Slide('../Page 3_files/Christopher van Sichem 16th-17th century Woodcut.jpg', '618', '450', 'Christopher van Sichem 16th-17th century Woodcut');
slides[61] = new Slide('../Page 3_files/Antonio Tempesta 1555-1630 (detail).jpg', '641', '771', 'Antonio Tempesta 1555-1630 (detail)');
slides[62] = new Slide('../Page 3_files/Theodor Matham-Vanitas 1622 (detail).jpg', '632', '761', 'Theodor Matham-Vanitas 1622 (detail)');
slides[63] = new Slide('../Page 3_files/Charles Simonneau (detail 1).jpg', '675', '583', 'Charles Simonneau (detail 1)');
slides[64] = new Slide('../Page 3_files/Charles Simonneau (detail 2).jpg', '592', '800', 'Charles Simonneau (detail 2)');
slides[65] = new Slide('../Page 3_files/Charles Simonneau 1645-1728.jpg', '430', '394', 'Charles Simonneau 1645-1728');
slides[66] = new Slide('../Page 3_files/Giuseppe Maria Mitelli 634-1718 (detail).jpg', '468', '480', 'Giuseppe Maria Mitelli 634-1718 (detail)');
slides[67] = new Slide('../Page 3_files/Bartolomeo Bettera 1639-1699.jpg', '545', '800', 'Bartolomeo Bettera 1639-1699');
slides[68] = new Slide('../Page 3_files/ Bartolomeo Passarotti 1576.jpg', '373', '301', 'Bartolomeo Passarotti 1576');
slides[69] = new Slide('../Page 3_files/Jean de Reyn about 1640 (detail).jpg', '368', '415', 'Jean de Reyn about 1640 (detail)');
slides[70] = new Slide('../Page 3_files/Jacopo de\u0027Barbari 1509-16 (detail).jpg', '365', '411', 'Jacopo de\u0027Barbari 1509-16 (detail)');
slides[71] = new Slide('../Page 3_files/Morazzone Italian about 1598.jpg', '476', '640', 'Morazzone Italian about 1598');
slides[72] = new Slide('../Page 3_files/Caravaggio The musicians c.jpg', '386', '500', 'Caravaggio The musicians c.1545 (detail)');
slides[73] = new Slide('../Page 3_files/Nicolas TOURNIER Montbeliard, 1590 - Toulouse, 1639Le Concert Vers 1630-1635 .jpg', '638', '768', 'Nicolas TOURNIER Montbéliard, 1590 - Toulouse, 1639Le Concert Vers 1630-1635 ');
slides[74] = new Slide('../Page 3_files/Pieter Jacosz.jpg', '641', '768', 'Pieter Jacosz. CODDE Amsterdam, 1599 - Amsterdam, 1678 La Leçon de danse  1627 ');
slides[75] = new Slide('../Page 3_files/D\u0027apres Theodoor ROMBOUTSAnvers, 1597 - Anvers, 1637 Homme accordant son luth .jpg', '640', '768', 'D\u0027après Theodoor ROMBOUTSAnvers, 1597 - Anvers, 1637 Homme accordant son luth ');
slides[76] = new Slide('../Page 3_files/Ecole de RUBENS Jan van den HOECKE  Anvers, 1611 - Anvers ou Bruxelles, 1651 Femme jouant du luth .jpg', '768', '678', 'Ecole de RUBENS Jan van den HOECKE ? Anvers, 1611 - Anvers ou Bruxelles, 1651 Femme jouant du luth ');
slides[77] = new Slide('../Page 3_files/Gerrit van HONTHORST Utrecht, 1590 - Utrecht, 1656 Le concert  1624 .jpg', '667', '768', 'Gerrit van HONTHORST Utrecht, 1590 - Utrecht, 1656 Le concert  1624 ');
slides[78] = new Slide('../Page 3_files/Valentin de BOULOGNE, dit LE VALENTIN Coulommiers (Seine-et-Marne), 1591 - Rome, 1632 Le Concert au bas-relief  Vers 1622 - 1625.jpg', '580', '700', 'Valentin de BOULOGNE, dit LE VALENTIN Coulommiers (Seine-et-Marne), 1591 - Rome, 1632 Le Concert au bas-relief  Vers 1622 - 1625');
slides[79] = new Slide('../Page 3_files/Leonello SPADABologne, 1576 - Parme, 1622 Concert  Vers 1615.jpg', '636', '768', 'Leonello SPADABologne, 1576 - Parme, 1622 Concert  Vers 1615');
slides[80] = new Slide('../Page 3_files/Bellini (1487) Retablo de San Job Galleria della Accademia Venice.jpg', '472', '394', 'Bellini (1487) Retablo de San Job Galleria della Accademia Venice');
slides[81] = new Slide('../Page 3_files/Carlo Crivelli. Virgin Mary with Child.jpg', '427', '800', 'Carlo Crivelli. Virgin Mary with Child. Museo del Castelvechio, Verona, circa 1460 (detail)');
slides[82] = new Slide('../Page 3_files/Giulio Cesare Barbetta(), woodcut from Barbettas Novae musicae testudinarie (1582).jpg', '800', '486', 'Giulio Cesare Barbetta(¿), woodcut from Barbetta’s Novae musicae testudinarie (1582)');
slides[83] = new Slide('../Page 3_files/Valentine Bakfark, woodcut from Intabulatura Valentini Bacfarc Transilvani Coronensis (1553).jpg', '514', '800', 'Valentine Bakfark, woodcut from Intabulatura Valentini Bacfarc Transilvani Coronensis (1553)');
slides[84] = new Slide('../Page 3_files/Peer Lisaert III (1626) Museo del Prado Madrid.jpg', '800', '571', 'Peer Lisaert III (1626) Museo del Prado Madrid');
slides[85] = new Slide('../Page 3_files/Donato Creti.jpg', '800', '582', 'Donato Creti');
slides[86] = new Slide('../Page 3_files/Giovanni Battista Fasolo (Il Concertino).jpg', '592', '565', 'Giovanni Battista Fasolo (Il Concertino)');
slides[87] = new Slide('../Page 3_files/Pieter Breugel-Triunph of death (Prado, Madrid).jpg', '800', '544', 'Pieter Breugel-Triunph of death (Prado, Madrid)');
slides[88] = new Slide('../Page 3_files/Newsidler.jpg', '800', '735', 'Newsidler');
slides[89] = new Slide('../Page 3_files/Annibale Carracci (1560-1609) Landscape (Detail) National Museum Berlin.jpg', '482', '404', 'Annibale Carracci (1560-1609) Landscape (Detail) National Museum Berlin');
slides[90] = new Slide('../Page 3_files/Giulio Campi (1502-1572), Lutenist  (F.jpg', '800', '607', 'Giulio Campi (1502-1572), Lutenist  (F. Da Milano?) Pinacoteca Civica, Como');
slides[91] = new Slide('../Page 3_files/Luca della Robbia (1438) Museo dellOpera del Duomo, Florence.jpg', '573', '800', 'Luca della Robbia (1438) Museo dell’Opera del Duomo, Florence');
slides[92] = new Slide('../Page 3_files/Melozzo de Forli (1439-1494) Angel Musician (Prado, Madrid).jpg', '760', '610', 'Melozzo de Forli (1439-1494) Angel Musician (Prado, Madrid)');
slides[93] = new Slide('../Page 3_files/Mantegna.jpg', '315', '800', 'Mantegna. San Zenon, Verona (1457-1459)');
slides[94] = new Slide('../Page 3_files/Rubens, The educatin of Maria de Medici (1621-1625) Louvre, Paris.jpg', '801', '617', 'Rubens, The educatin of Maria de Medici (1621-1625) Louvre, Paris');
slides[95] = new Slide('../Page 3_files/Adrian Le Roy (1571).jpg', '635', '470', 'Adrian Le Roy (1571)');
slides[96] = new Slide('../Page 3_files/Bartolomeo Nazari (Portrait of the famous soprano Faustina Bordoni).jpg', '800', '566', 'Bartolomeo Nazari (Portrait of the famous soprano Faustina Bordoni)');
slides[97] = new Slide('../Page 3_files/Johann Platzer.jpg', '800', '610', 'Johann Platzer');
slides[98] = new Slide('../Page 3_files/Carlo Crivelli. Virgin Mary with Child_1.jpg', '800', '554', 'Carlo Crivelli. Virgin Mary with Child. Museo del Castelvechio, Verona, circa 1460');
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 3_files/transparent.gif");
    fixupIEPNG("id3", "Page 3_files/transparent.gif");
    fixupIEPNG("id4", "Page 3_files/transparent.gif");
    fixupIEPNG("id5", "Page 3_files/transparent.gif");
    fixupIEPNG("id6", "Page 3_files/transparent.gif");
    fixupIEPNG("id7", "Page 3_files/transparent.gif");
    fixupIEPNG("id8", "Page 3_files/transparent.gif");
    fixupIEPNG("id9", "Page 3_files/transparent.gif");
    fixupIEPNG("id10", "Page 3_files/transparent.gif");
    fixupIEPNG("id11", "Page 3_files/transparent.gif");
    fixupIEPNG("id12", "Page 3_files/transparent.gif");
    fixupIEPNG("id13", "Page 3_files/transparent.gif");
    fixupIEPNG("id14", "Page 3_files/transparent.gif");
    fixupIEPNG("id15", "Page 3_files/transparent.gif");
    fixupIEPNG("id16", "Page 3_files/transparent.gif");
    fixupIEPNG("id17", "Page 3_files/transparent.gif");
    fixupIEPNG("id18", "Page 3_files/transparent.gif");
    fixupIEPNG("id19", "Page 3_files/transparent.gif");
    fixupIEPNG("id20", "Page 3_files/transparent.gif");
    fixupIEPNG("id21", "Page 3_files/transparent.gif");
    fixupIEPNG("id22", "Page 3_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;
    }
}

