IMpreload('Anciennes photos_files', 'shapeimage_2', '0');
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('../Anciennes photos_files/100_5988.jpg', '600', '800', '100_5988.JPG');
slides[1] = new Slide('../Anciennes photos_files/100_5985.jpg', '564', '800', '100_5985.JPG');
slides[2] = new Slide('../Anciennes photos_files/100_5970.jpg', '600', '800', '100_5970.JPG');
slides[3] = new Slide('../Anciennes photos_files/100_5967.jpg', '800', '600', '100_5967.JPG');
slides[4] = new Slide('../Anciennes photos_files/100_6004.jpg', '800', '522', '100_6004.JPG');
slides[5] = new Slide('../Anciennes photos_files/100_5968.jpg', '600', '800', '100_5968.JPG');
slides[6] = new Slide('../Anciennes photos_files/100_5983.jpg', '800', '600', '100_5983.JPG');
slides[7] = new Slide('../Anciennes photos_files/100_5965.jpg', '600', '800', '100_5965.JPG');
slides[8] = new Slide('../Anciennes photos_files/100_5966.jpg', '800', '600', '100_5966.JPG');
slides[9] = new Slide('../Anciennes photos_files/100_5969.jpg', '600', '800', '100_5969.JPG');
slides[10] = new Slide('../Anciennes photos_files/100_5970_2.jpg', '600', '800', '100_5970.JPG');
slides[11] = new Slide('../Anciennes photos_files/100_5971.jpg', '600', '800', '100_5971.JPG');
slides[12] = new Slide('../Anciennes photos_files/100_5972.jpg', '602', '800', '100_5972.JPG');
slides[13] = new Slide('../Anciennes photos_files/100_5973.jpg', '600', '800', '100_5973.JPG');
slides[14] = new Slide('../Anciennes photos_files/100_5974.jpg', '800', '600', '100_5974.JPG');
slides[15] = new Slide('../Anciennes photos_files/100_5975.jpg', '600', '800', '100_5975.JPG');
slides[16] = new Slide('../Anciennes photos_files/100_5976.jpg', '800', '600', '100_5976.JPG');
slides[17] = new Slide('../Anciennes photos_files/100_5977.jpg', '800', '600', '100_5977.JPG');
slides[18] = new Slide('../Anciennes photos_files/100_5978.jpg', '800', '600', '100_5978.JPG');
slides[19] = new Slide('../Anciennes photos_files/100_5979.jpg', '800', '600', '100_5979.JPG');
slides[20] = new Slide('../Anciennes photos_files/100_5980.jpg', '800', '600', '100_5980.JPG');
slides[21] = new Slide('../Anciennes photos_files/100_5981.jpg', '800', '600', '100_5981.JPG');
slides[22] = new Slide('../Anciennes photos_files/100_5982.jpg', '800', '600', '100_5982.JPG');
slides[23] = new Slide('../Anciennes photos_files/100_5983_2.jpg', '800', '569', '100_5983.JPG');
slides[24] = new Slide('../Anciennes photos_files/100_5984.jpg', '800', '600', '100_5984.JPG');
slides[25] = new Slide('../Anciennes photos_files/100_5985_2.jpg', '564', '800', '100_5985.JPG');
slides[26] = new Slide('../Anciennes photos_files/100_5986.jpg', '600', '800', '100_5986.JPG');
slides[27] = new Slide('../Anciennes photos_files/100_5988_2.jpg', '600', '800', '100_5988.JPG');
slides[28] = new Slide('../Anciennes photos_files/100_6001.jpg', '600', '800', '100_6001.JPG');
slides[29] = new Slide('../Anciennes photos_files/100_6002.jpg', '596', '800', '100_6002.JPG');
slides[30] = new Slide('../Anciennes photos_files/100_6003.jpg', '600', '800', '100_6003.JPG');
slides[31] = new Slide('../Anciennes photos_files/100_5648.jpg', '600', '800', '100_5648.JPG');
slides[32] = new Slide('../Anciennes photos_files/100_5656.jpg', '800', '600', '100_5656');
slides[33] = new Slide('../Anciennes photos_files/100_5657.jpg', '800', '600', '100_5657');
slides[34] = new Slide('../Anciennes photos_files/100_5658.jpg', '800', '600', '100_5658');
slides[35] = new Slide('../Anciennes photos_files/100_5659.jpg', '800', '600', '100_5659');
slides[36] = new Slide('../Anciennes photos_files/100_5660.jpg', '600', '800', '100_5660');
slides[37] = new Slide('../Anciennes photos_files/100_5661.jpg', '800', '600', '100_5661');
slides[38] = new Slide('../Anciennes photos_files/100_5662.jpg', '800', '600', '100_5662');
slides[39] = new Slide('../Anciennes photos_files/100_5986_2.jpg', '600', '800', '100_5986.JPG');
isPureISOLatin1 = true;
contentEncodingConstant = 4;
feedbackURL = "TODO";
showFeedbackButton = false;
feedbackEnabled = true;

IMpreload('Anciennes photos_files', 'shapeimage_7', '0');
IMpreload('Anciennes photos_files', 'shapeimage_7', '1');
IMpreload('Anciennes photos_files', 'shapeimage_7', '2');
IMpreload('Anciennes photos_files', 'shapeimage_7', '3');
IMpreload('Anciennes photos_files', 'shapeimage_7', '4');
IMpreload('Anciennes photos_files', 'shapeimage_7', '5');
IMpreload('Anciennes photos_files', 'shapeimage_7', '6');
IMpreload('Anciennes photos_files', 'shapeimage_7', '7');
IMpreload('Anciennes photos_files', 'shapeimage_7', '8');
IMpreload('Anciennes photos_files', 'shapeimage_7', '9');
IMpreload('Anciennes photos_files', 'shapeimage_7', '10');
IMpreload('Anciennes photos_files', 'shapeimage_7', '11');
IMpreload('Anciennes photos_files', 'shapeimage_7', '12');
IMpreload('Anciennes photos_files', 'shapeimage_7', '13');
IMpreload('Anciennes photos_files', 'shapeimage_7', '14');
IMpreload('Anciennes photos_files', 'shapeimage_7', '15');
IMpreload('Anciennes photos_files', 'shapeimage_7', '16');
IMpreload('Anciennes photos_files', 'shapeimage_7', '17');
IMpreload('Anciennes photos_files', 'shapeimage_7', '18');
IMpreload('Anciennes photos_files', 'shapeimage_7', '19');
IMpreload('Anciennes photos_files', 'shapeimage_7', '20');
IMpreload('Anciennes photos_files', 'shapeimage_7', '21');
IMpreload('Anciennes photos_files', 'shapeimage_7', '22');
IMpreload('Anciennes photos_files', 'shapeimage_7', '23');
IMpreload('Anciennes photos_files', 'shapeimage_7', '24');
IMpreload('Anciennes photos_files', 'shapeimage_7', '25');
IMpreload('Anciennes photos_files', 'shapeimage_7', '26');
IMpreload('Anciennes photos_files', 'shapeimage_7', '27');
IMpreload('Anciennes photos_files', 'shapeimage_7', '28');
IMpreload('Anciennes photos_files', 'shapeimage_7', '29');
IMpreload('Anciennes photos_files', 'shapeimage_7', '30');
var MINIMUM_FONT = "10";
var UNITS = "";

function elementFontSize(element)
{
    var fontSize = MINIMUM_FONT; 

    if (document.defaultView)
    {
        var computedStyle = document.defaultView.getComputedStyle(element, null);
        if (computedStyle)
        {
            fontSize = computedStyle.getPropertyValue("font-size");
        }
    }
    else if (element.currentStyle)
    {
        fontSize = element.currentStyle.fontSize;
    }

    if ((UNITS.length == 0) && (fontSize != MINIMUM_FONT))
    {
        UNITS = fontSize.substring(fontSize.length - 2, fontSize.length)
    }

    return parseFloat(fontSize);
}

function adjustFontSizeIfTooBig(idOfElement)
{
    var oTextBoxOuterDiv;
    var oTextBoxMiddleDiv;
    var oTextBoxInnerDiv;
    var oTextBoxOuterDiv = document.getElementById(idOfElement);
    
    if (oTextBoxOuterDiv)
    {
        oTextBoxMiddleDiv = getChildOfType(oTextBoxOuterDiv, "DIV", 0);
        if (oTextBoxMiddleDiv)
        {
            oTextBoxInnerDiv = getChildOfType(oTextBoxMiddleDiv, "DIV", 0);
            if (oTextBoxInnerDiv)
            {
                var offsetHeight = oTextBoxInnerDiv.offsetHeight;
                var specifiedHeight = offsetHeight;
                if (oTextBoxMiddleDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxMiddleDiv.style.height);
                }
                else if (oTextBoxOuterDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxOuterDiv.style.height);
                }
                if (offsetHeight > specifiedHeight)
                {
                    var smallestFontSize = 200;
                    
                    var aParaChildren = getParaDescendants(oTextBoxInnerDiv);
                    var oneLine = false;
                    for (i = 0; i < aParaChildren.length; i++)
                    {
                        var oParagraphDiv = aParaChildren[i];
                        var lineHeight = elementLineHeight(oParagraphDiv);
                        oneLine = oneLine || (lineHeight * 1.5 >= specifiedHeight);
                        if (oParagraphDiv.nodeName == "DIV")
                        {
                            var fontSize = elementFontSize(oParagraphDiv);
                            smallestFontSize = Math.min( smallestFontSize, fontSize );
                            for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                            {
                                var oSpan = oParagraphDiv.childNodes[j];
                                if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                {
                                    fontSize = elementFontSize(oSpan);
                                    smallestFontSize = Math.min( smallestFontSize, fontSize );
                                }
                            }
                        }
                    }
                    var minimum = parseFloat(MINIMUM_FONT);
                    
                    var count = 0
                    while ((smallestFontSize > minimum) && (offsetHeight > specifiedHeight) && (count < 10))
                    {
                        ++ count;
                        if (oneLine)
                        {
                            var oldWidth = parseInt(oTextBoxOuterDiv.style.width);
                            oTextBoxInnerDiv.style.width =
                                "" + oldWidth * Math.pow(1.05, count) + "px";
                        }
                        else
                        {
                            var scale = Math.max(0.95, minimum / smallestFontSize);
                            
                            for (i = 0; i < aParaChildren.length; i++)
                            {
                                var oParagraphDiv = aParaChildren[i];
                                if (oParagraphDiv.nodeName == "DIV")
                                {
                                    var paraFontSize = elementFontSize(oParagraphDiv) * scale;
                                    var paraLineHeight = elementLineHeight(oParagraphDiv) * scale;
                                    for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                                    {
                                        var oSpan = oParagraphDiv.childNodes[j];
                                        if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                        {
                                            var spanFontSize = elementFontSize(oSpan) * scale;
                                            var spanLineHeight = elementLineHeight(oSpan) * scale;
                                            oSpan.style.fontSize = spanFontSize + UNITS;
                                            oSpan.style.lineHeight = spanLineHeight + UNITS;
                                            smallestFontSize = Math.min( smallestFontSize, spanFontSize );
                                        }
                                    }
                                    oParagraphDiv.style.fontSize = paraFontSize + UNITS;
                                    oParagraphDiv.style.lineHeight = paraLineHeight + UNITS;
                                    smallestFontSize = Math.min( smallestFontSize, paraFontSize );
                                }
                            }
                        }
                        
                        offsetHeight = oTextBoxInnerDiv.offsetHeight;
                    }
                }
            }
        }
    }
}


function elementLineHeight(element)
{
    var lineHeight = MINIMUM_FONT; 
    
    if (document.defaultView)
    {
        var computedStyle = document.defaultView.getComputedStyle(element, null);
        if (computedStyle)
        {
            lineHeight = computedStyle.getPropertyValue("line-height");
        }
    }
    else if (element.currentStyle)
    {
        lineHeight = element.currentStyle.lineHeight;
    }
    
    if ((UNITS.length == 0) && (lineHeight != MINIMUM_FONT))
    {
        UNITS = lineHeight.substring(lineHeight.length - 2, lineHeight.length)
    }
    
    return parseFloat(lineHeight);
}

function adjustLineHeightIfTooBig(idOfElement)
{
    var oTextBoxOuterDiv;
    var oTextBoxMiddleDiv;
    var oTextBoxInnerDiv;
    var oTextBoxOuterDiv = document.getElementById(idOfElement);
    
    if (oTextBoxOuterDiv)
    {
        oTextBoxMiddleDiv = getChildOfType(oTextBoxOuterDiv, "DIV", 0);
        if (oTextBoxMiddleDiv)
        {
            oTextBoxInnerDiv = getChildOfType(oTextBoxMiddleDiv, "DIV", 0);
            if (oTextBoxInnerDiv)
            {
                var offsetHeight = oTextBoxInnerDiv.offsetHeight;
                var specifiedHeight = offsetHeight;
                if (oTextBoxMiddleDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxMiddleDiv.style.height);
                }
                else if (oTextBoxOuterDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxOuterDiv.style.height);
                }
                if (offsetHeight > specifiedHeight)
                {
                    var adjusted = true;
                    var count = 0;
                    while ((adjusted) && (offsetHeight > specifiedHeight) && (count < 10))
                    {
                        adjusted = false;
                        ++ count;
                        
                        var aParaChildren = getParaDescendants(oTextBoxInnerDiv);
                        for (i = 0; i < aParaChildren.length; i++)
                        {
                            var oParagraphDiv = aParaChildren[i];
                            if (oParagraphDiv.nodeName == "DIV")
                            {
                                var fontSize = elementFontSize(oParagraphDiv);
                                var lineHeight = elementLineHeight(oParagraphDiv) * 0.95;
                                if (lineHeight >= (fontSize * 1.1))
                                {
                                    oParagraphDiv.style.lineHeight = lineHeight + UNITS;
                                    adjusted = true;
                                }
                                
                                
                                
                                for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                                {
                                    var oSpan = oParagraphDiv.childNodes[j];
                                    if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                    {
                                        var fontSize = elementFontSize(oSpan);
                                        var lineHeight = elementLineHeight(oSpan) * 0.95;
                                        if (lineHeight >= (fontSize * 1.1))
                                        {
                                            oSpan.style.lineHeight = lineHeight + UNITS;
                                            var adjusted = true;
                                        }
                                    }
                                }
                            }
                        }
                        
                        offsetHeight = oTextBoxInnerDiv.offsetHeight;
                    }
                }
            }
        }
    }
}

function adjustStrokeHeight(idOfElement, leftDelta, rightDelta, bottomDelta)
{
    var oTextBoxOuterDiv = document.getElementById(idOfElement);

    if (oTextBoxOuterDiv)
    {
        var offsetHeight = oTextBoxOuterDiv.offsetHeight;

        var leftImage = getChildOfType(oTextBoxOuterDiv, "IMG", 0);
        if (leftImage)
        {
            leftImage.style.height = (offsetHeight - leftDelta) + "px";
        }
        var rightImage = getChildOfType(oTextBoxOuterDiv, "IMG", 1);
        if (rightImage)
        {
            rightImage.style.height = (offsetHeight - rightDelta) + "px";
        }
        var bottomImage = getChildOfType(oTextBoxOuterDiv, "IMG", 3);
        if (bottomImage)
        {
            bottomImage.style.top = (offsetHeight - bottomDelta) + "px";
        }
    }
}

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 onPageLoad()
{
    detectBrowser();
    adjustLineHeightIfTooBig("id5");
    adjustFontSizeIfTooBig("id5");
    adjustLineHeightIfTooBig("id14");
    adjustFontSizeIfTooBig("id14");
    adjustLineHeightIfTooBig("id16");
    adjustFontSizeIfTooBig("id16");
    adjustLineHeightIfTooBig("id17");
    adjustFontSizeIfTooBig("id17");
    adjustLineHeightIfTooBig("id18");
    adjustFontSizeIfTooBig("id18");
    adjustLineHeightIfTooBig("id19");
    adjustFontSizeIfTooBig("id19");
    adjustLineHeightIfTooBig("id22");
    adjustFontSizeIfTooBig("id22");
    adjustLineHeightIfTooBig("id25");
    adjustFontSizeIfTooBig("id25");
    fixupIEPNG("id1", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("id2", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("id3", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("id4", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_2_link_0", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_2", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("id6", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("id7", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("id8", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("id9", "Anciennes photos_files/transparent.gif");
    adjustStrokeHeight("id10", 6, 6, 4);
    fixupIEPNG("id11", "Anciennes photos_files/transparent.gif");
    fixupAllIEPNGBGs();
    fixupIEPNG("id12", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("id13", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("id15", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("id20", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("id21", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_0", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_1", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_2", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_3", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_4", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_5", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_6", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_7", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_8", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_9", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_10", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_11", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_12", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_13", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_14", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_15", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_16", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_17", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_18", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_19", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_20", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_21", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_22", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_23", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_24", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_25", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_26", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_27", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_28", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_29", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7_link_30", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("shapeimage_7", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("id23", "Anciennes photos_files/transparent.gif");
    fixupIEPNG("id24", "Anciennes photos_files/transparent.gif");
    return true;
}

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 IMpreload(path, name, areaIndex)
{
    var rolloverName = name+'_rollover_'+areaIndex;
    var rolloverPath = path+'/'+rolloverName+'.png';
    self[rolloverName] = new Image();
    self[rolloverName].src = rolloverPath;

    var linkName = name+'_link_'+areaIndex;
    var linkPath = path+'/'+linkName+'.png';
    self[linkName] = new Image();
    self[linkName].src = linkPath;
    return true;
}

function IMmouseover(name, areaIndex)
{
    var rolloverName = name+'_rollover_'+areaIndex;
    var linkName = name+'_link_'+areaIndex;
    var img  = document.getElementById(linkName);
    if (img)
    {
        img.src = self[rolloverName].src;
    }
    return true;
}

function IMmouseout(name, areaIndex)
{
    var linkName = name+'_link_'+areaIndex;
    var img  = document.getElementById(linkName);
    if (img)
    {
        img.src = self[linkName].src;
    }
    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;
    }
}


