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

slides = new Array();
slides[0] = new Slide('../Page 1_files/fd06 011.jpg', '599', '800', 'fd06 011');
slides[1] = new Slide('../Page 1_files/fd06 001.jpg', '599', '800', 'fd06 001');
slides[2] = new Slide('../Page 1_files/fd06 002.jpg', '599', '800', 'fd06 002');
slides[3] = new Slide('../Page 1_files/fd06 003.jpg', '599', '800', 'fd06 003');
slides[4] = new Slide('../Page 1_files/fd06 004.jpg', '599', '800', 'fd06 004');
slides[5] = new Slide('../Page 1_files/fd06 005.jpg', '599', '800', 'fd06 005');
slides[6] = new Slide('../Page 1_files/fd06 006.jpg', '599', '800', 'fd06 006');
slides[7] = new Slide('../Page 1_files/fd06 007.jpg', '599', '800', 'fd06 007');
slides[8] = new Slide('../Page 1_files/fd06 009.jpg', '599', '800', 'fd06 009');
slides[9] = new Slide('../Page 1_files/fd06 010.jpg', '599', '800', 'fd06 010');
slides[10] = new Slide('../Page 1_files/fd06 012.jpg', '599', '800', 'fd06 012');
slides[11] = new Slide('../Page 1_files/fd06 013.jpg', '599', '800', 'fd06 013');
slides[12] = new Slide('../Page 1_files/fd06 008.jpg', '599', '800', 'fd06 008');
slides[13] = new Slide('../Page 1_files/fd06 014.jpg', '599', '800', 'fd06 014');
slides[14] = new Slide('../Page 1_files/fd06 015.jpg', '599', '800', 'fd06 015');
slides[15] = new Slide('../Page 1_files/fd06 016.jpg', '599', '800', 'fd06 016');
slides[16] = new Slide('../Page 1_files/fd06 017.jpg', '599', '800', 'fd06 017');
slides[17] = new Slide('../Page 1_files/fd06 018.jpg', '599', '800', 'fd06 018');
slides[18] = new Slide('../Page 1_files/fd06 019.jpg', '599', '800', 'fd06 019');
slides[19] = new Slide('../Page 1_files/fd06 020.jpg', '599', '800', 'fd06 020');
slides[20] = new Slide('../Page 1_files/fd06 021.jpg', '599', '800', 'fd06 021');
slides[21] = new Slide('../Page 1_files/fd06 022.jpg', '599', '800', 'fd06 022');
slides[22] = new Slide('../Page 1_files/fd06 023.jpg', '599', '800', 'fd06 023');
slides[23] = new Slide('../Page 1_files/fd06 024.jpg', '599', '800', 'fd06 024');
slides[24] = new Slide('../Page 1_files/fd06 025.jpg', '599', '800', 'fd06 025');
slides[25] = new Slide('../Page 1_files/fd06 026.jpg', '599', '800', 'fd06 026');
slides[26] = new Slide('../Page 1_files/fd06 027.jpg', '599', '800', 'fd06 027');
slides[27] = new Slide('../Page 1_files/fd06 028.jpg', '599', '800', 'fd06 028');
slides[28] = new Slide('../Page 1_files/fd06 029.jpg', '599', '800', 'fd06 029');
slides[29] = new Slide('../Page 1_files/fd06 030.jpg', '599', '800', 'fd06 030');
slides[30] = new Slide('../Page 1_files/fd06 031.jpg', '599', '800', 'fd06 031');
slides[31] = new Slide('../Page 1_files/fd06 034.jpg', '599', '800', 'fd06 034');
slides[32] = new Slide('../Page 1_files/fd06 035.jpg', '599', '800', 'fd06 035');
slides[33] = new Slide('../Page 1_files/fd06 044.jpg', '599', '800', 'fd06 044');
slides[34] = new Slide('../Page 1_files/fd06 045.jpg', '599', '800', 'fd06 045');
slides[35] = new Slide('../Page 1_files/fd06 046.jpg', '599', '800', 'fd06 046');
slides[36] = new Slide('../Page 1_files/fd06 047.jpg', '599', '800', 'fd06 047');
slides[37] = new Slide('../Page 1_files/fd06 048.jpg', '599', '800', 'fd06 048');
slides[38] = new Slide('../Page 1_files/fd06 049.jpg', '599', '800', 'fd06 049');
slides[39] = new Slide('../Page 1_files/fd06 050.jpg', '599', '800', 'fd06 050');
slides[40] = new Slide('../Page 1_files/fd06 051.jpg', '599', '800', 'fd06 051');
slides[41] = new Slide('../Page 1_files/fd06 052.jpg', '599', '800', 'fd06 052');
slides[42] = new Slide('../Page 1_files/fd06 053.jpg', '599', '800', 'fd06 053');
slides[43] = new Slide('../Page 1_files/fd06 054.jpg', '599', '800', 'fd06 054');
slides[44] = new Slide('../Page 1_files/fd06 055.jpg', '599', '800', 'fd06 055');
slides[45] = new Slide('../Page 1_files/fd06 056.jpg', '599', '800', 'fd06 056');
slides[46] = new Slide('../Page 1_files/fd06 057.jpg', '599', '800', 'fd06 057');
slides[47] = new Slide('../Page 1_files/fd06 058.jpg', '599', '800', 'fd06 058');
slides[48] = new Slide('../Page 1_files/fd06 059.jpg', '599', '800', 'fd06 059');
slides[49] = new Slide('../Page 1_files/fd06 060.jpg', '599', '800', 'fd06 060');
slides[50] = new Slide('../Page 1_files/fd06 061.jpg', '599', '800', 'fd06 061');
slides[51] = new Slide('../Page 1_files/fd06 076.jpg', '599', '800', 'fd06 076');
slides[52] = new Slide('../Page 1_files/fd06 077.jpg', '599', '800', 'fd06 077');
slides[53] = new Slide('../Page 1_files/fd06 078.jpg', '599', '800', 'fd06 078');
slides[54] = new Slide('../Page 1_files/fd06 079.jpg', '599', '800', 'fd06 079');
slides[55] = new Slide('../Page 1_files/fd06 080.jpg', '599', '800', 'fd06 080');
slides[56] = new Slide('../Page 1_files/fd06 081.jpg', '599', '800', 'fd06 081');
slides[57] = new Slide('../Page 1_files/fd06 082.jpg', '599', '800', 'fd06 082');
slides[58] = new Slide('../Page 1_files/fd06 083.jpg', '599', '800', 'fd06 083');
slides[59] = new Slide('../Page 1_files/fd06 084.jpg', '599', '800', 'fd06 084');
slides[60] = new Slide('../Page 1_files/fd06 085.jpg', '599', '800', 'fd06 085');
isPureISOLatin1 = true;
contentEncodingConstant = 4;
feedbackURL = "TODO";
showFeedbackButton = false;
feedbackEnabled = true;

function adjustPositioningIfWrongSize(idOfElement, shrinkPadding, shrink)
{
    var oTextBoxOuterDiv;
    var oTextBoxMiddleDiv;
    var oTextBoxInnerDiv;
    var oTextBoxAlternateImage;
    var oImg;
    var adjustPositioning = false;
    var adjustmentPixels = 0;
    var oTextBoxOuterDiv = document.getElementById(idOfElement);
    if (oTextBoxOuterDiv)
    {
        oTextBoxMiddleDiv = getChildOfType(oTextBoxOuterDiv, "DIV", 0);
        if (oTextBoxMiddleDiv)
        {
            oTextBoxInnerDiv = getChildOfType(oTextBoxMiddleDiv, "DIV", 0);
            if (oTextBoxInnerDiv)
            {
                var oCachedHeight;
                if (windowsInternetExplorer)
                {
                    oCachedHeight = oTextBoxInnerDiv.style.height;
                    oTextBoxInnerDiv.style.height = "100px";
                }
                var clientHeight = oTextBoxInnerDiv.clientHeight;
                var specifiedHeight = clientHeight;
                if (oTextBoxMiddleDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxMiddleDiv.style.height);
                }
                else if (oTextBoxOuterDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxOuterDiv.style.height);
                }
                if ((windowsInternetExplorer) && (clientHeight == 100))
                {
                    clientHeight = specifiedHeight;
                }
                if (clientHeight > specifiedHeight || 
                    specifiedHeight > clientHeight + shrinkPadding )
                {
                    adjustPositioning = true;
                    adjustmentPixels = clientHeight - specifiedHeight;
                    if (specifiedHeight > clientHeight)
                    {
                      if (! shrink)
                      {
                          adjustPositioning = false;
                      }
                      else
                      {
                          adjustmentPixels += shrinkPadding;
                      }
                      
                    }
                }
                if (windowsInternetExplorer)
                {
                    oTextBoxInnerDiv.style.height = oCachedHeight;
                }
            }
        }
    }
    
    if (adjustPositioning)
    {
        var currentOuterHeight = parseInt(oTextBoxOuterDiv.style.height);
        var newOuterHeight = currentOuterHeight + adjustmentPixels;
        if( newOuterHeight <= 0 )        {            newOuterHeight = 1;        }        oTextBoxOuterDiv.style.height = "" + newOuterHeight + "px";

        oFooterLayer = document.getElementById("footer_layer");
        if (oFooterLayer)
        {
            var currentYPos = parseInt(oFooterLayer.style.top);
            var newYPos = currentYPos + adjustmentPixels;
            oFooterLayer.style.top = "" + newYPos + "px";
        }

        oBodyLayer = document.getElementById("body_layer");
        if (oBodyLayer)
        {
            var currentBodyLayerHeight = parseInt(oBodyLayer.style.height);
            var newBodyLayerHeight = currentBodyLayerHeight + adjustmentPixels;
            oBodyLayer.style.height = "" + newBodyLayerHeight + "px";
        }

        oBodyContentDiv = document.getElementById("bodyContent");
        if (oBodyContentDiv)
        {
            var currentBodyContentHeight = parseInt(oBodyContentDiv.style.height);
            var newBodyContentHeight = currentBodyContentHeight + adjustmentPixels;
            oBodyContentDiv.style.height = "" + newBodyContentHeight + "px";
        }

        oNavLayer = document.getElementById("nav_layer");
        if(oNavLayer)
        {
            var currentNavLayerHeight = parseInt(oNavLayer.style.height);
            var diff = currentNavLayerHeight - currentBodyContentHeight;
            if ((diff > -10) && (diff < 10))
            {
                var newNavLayerHeight = currentNavLayerHeight + adjustmentPixels;
                oNavLayer.style.height = "" + newNavLayerHeight + "px";

                oNavBG = getChildOfType(oNavLayer, "DIV", 0);
                if (oNavBG)
                {
                    var currentNavBGHeight = parseInt(oNavBG.style.height);
                    var newNavBGHeight = currentNavBGHeight + adjustmentPixels;
                    oNavBG.style.height = "" + newNavBGHeight + "px";
                }
            }
        }

    }
}
var smallTransparentGif = "";
function fixupIEPNG(strImageID, transparentGif) 
{
    smallTransparentGif = transparentGif;
    if (windowsInternetExplorer)
    {
        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(strImageID) 
{
    if (windowsInternetExplorer)
    {
        var oBlock = document.getElementById(strImageID);
        if (oBlock)
        {
            var currentBGStyle = oBlock.style.background;
            var urlStart = currentBGStyle.indexOf("url(");
            var urlEnd = currentBGStyle.indexOf(")", urlStart);
            var imageURL = currentBGStyle.substring(urlStart + 4, urlEnd);
            var filterStyle =
                "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
                imageURL +
                "', sizingMethod='crop');";

            oBlock.style.filter = filterStyle;
            oBlock.style.background = "";
        }
    }
}

function getChildOfType(oParent, sNodeName, requestedIndex)
{
    var index = 0;
    for (i = 0; i < oParent.childNodes.length; i++)
    {
        if (oParent.childNodes[i].nodeName == sNodeName)
        {
            if (index == requestedIndex)
            {
                return oParent.childNodes[i];
            }
            else
            {
                index++;
            }
        }
    }
    return null;
}

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;
function detectBrowser()
{
    windowsInternetExplorer = false;
    var appVersion = navigator.appVersion;
    if ((appVersion.indexOf("MSIE") != -1) &&
        (appVersion.indexOf("Macintosh") == -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;
    }
}

function onPageLoad()
{
    detectBrowser();
    fixupIEPNGBG("id1");
    fixupIEPNGBG("id2");
    fixupIEPNGBG("navbar_0_normal");
    fixupIEPNGBG("navbar_0_rollover");
    fixupIEPNG("id3", "Page 1_files/transparent.gif");
    adjustPositioningIfWrongSize("id4", 50, 1);
    fixupIEPNG("id5", "Page 1_files/transparent.gif");
    fixupIEPNG("id6", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id7");
    fixupIEPNG("id8", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id9");
    fixupIEPNG("id10", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id11");
    fixupIEPNG("id12", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id13");
    fixupIEPNG("id14", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id15");
    fixupIEPNG("id16", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id17");
    fixupIEPNG("id18", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id19");
    fixupIEPNG("id20", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id21");
    fixupIEPNG("id22", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id23");
    fixupIEPNG("id24", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id25");
    fixupIEPNG("id26", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id27");
    fixupIEPNG("id28", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id29");
    fixupIEPNG("id30", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id31");
    fixupIEPNG("id32", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id33");
    fixupIEPNG("id34", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id35");
    fixupIEPNG("id36", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id37");
    fixupIEPNG("id38", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id39");
    fixupIEPNG("id40", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id41");
    fixupIEPNG("id42", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id43");
    fixupIEPNG("id44", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id45");
    fixupIEPNG("id46", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id47");
    fixupIEPNG("id48", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id49");
    fixupIEPNG("id50", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id51");
    fixupIEPNG("id52", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id53");
    fixupIEPNG("id54", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id55");
    fixupIEPNG("id56", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id57");
    fixupIEPNG("id58", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id59");
    fixupIEPNG("id60", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id61");
    fixupIEPNG("id62", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id63");
    fixupIEPNG("id64", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id65");
    fixupIEPNG("id66", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id67");
    fixupIEPNG("id68", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id69");
    fixupIEPNG("id70", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id71");
    fixupIEPNG("id72", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id73");
    fixupIEPNG("id74", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id75");
    fixupIEPNG("id76", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id77");
    fixupIEPNG("id78", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id79");
    fixupIEPNG("id80", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id81");
    fixupIEPNG("id82", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id83");
    fixupIEPNG("id84", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id85");
    fixupIEPNG("id86", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id87");
    fixupIEPNG("id88", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id89");
    fixupIEPNG("id90", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id91");
    fixupIEPNG("id92", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id93");
    fixupIEPNG("id94", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id95");
    fixupIEPNG("id96", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id97");
    fixupIEPNG("id98", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id99");
    fixupIEPNG("id100", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id101");
    fixupIEPNG("id102", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id103");
    fixupIEPNG("id104", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id105");
    fixupIEPNG("id106", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id107");
    fixupIEPNG("id108", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id109");
    fixupIEPNG("id110", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id111");
    fixupIEPNG("id112", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id113");
    fixupIEPNG("id114", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id115");
    fixupIEPNG("id116", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id117");
    fixupIEPNG("id118", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id119");
    fixupIEPNG("id120", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id121");
    fixupIEPNG("id122", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id123");
    fixupIEPNG("id124", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id125");
    fixupIEPNG("id126", "Page 1_files/transparent.gif");
    fixupIEPNGBG("id127");
    fixupIEPNG("id128", "Page 1_files/transparent.gif");
    fixupIEPNG("id129", "Page 1_files/transparent.gif");
    return true;
}


