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('../Fun at the Fraziers_files/PICT1449.jpg', '600', '800', 'PICT1449.JPG');
slides[1] = new Slide('../Fun at the Fraziers_files/PICT1450.jpg', '600', '800', 'PICT1450.JPG');
slides[2] = new Slide('../Fun at the Fraziers_files/PICT1451.jpg', '600', '800', 'PICT1451.JPG');
slides[3] = new Slide('../Fun at the Fraziers_files/PICT1453.jpg', '600', '800', 'PICT1453.JPG');
slides[4] = new Slide('../Fun at the Fraziers_files/PICT1454.jpg', '600', '800', 'PICT1454.JPG');
slides[5] = new Slide('../Fun at the Fraziers_files/PICT1455.jpg', '600', '800', 'PICT1455.JPG');
slides[6] = new Slide('../Fun at the Fraziers_files/PICT1459.jpg', '600', '800', 'PICT1459.JPG');
slides[7] = new Slide('../Fun at the Fraziers_files/PICT1460.jpg', '600', '800', 'PICT1460.JPG');
slides[8] = new Slide('../Fun at the Fraziers_files/PICT1461.jpg', '600', '800', 'PICT1461.JPG');
slides[9] = new Slide('../Fun at the Fraziers_files/PICT1462.jpg', '600', '800', 'PICT1462.JPG');
slides[10] = new Slide('../Fun at the Fraziers_files/PICT1466.jpg', '600', '800', 'PICT1466.JPG');
slides[11] = new Slide('../Fun at the Fraziers_files/PICT1468.jpg', '600', '800', 'PICT1468.JPG');
slides[12] = new Slide('../Fun at the Fraziers_files/PICT1469.jpg', '600', '800', 'PICT1469.JPG');
slides[13] = new Slide('../Fun at the Fraziers_files/PICT1470.jpg', '600', '800', 'PICT1470.JPG');
slides[14] = new Slide('../Fun at the Fraziers_files/PICT1472.jpg', '600', '800', 'PICT1472.JPG');
slides[15] = new Slide('../Fun at the Fraziers_files/PICT1475.jpg', '600', '800', 'PICT1475.JPG');
slides[16] = new Slide('../Fun at the Fraziers_files/PICT1478.jpg', '600', '800', 'PICT1478.JPG');
slides[17] = new Slide('../Fun at the Fraziers_files/PICT1479.jpg', '600', '800', 'PICT1479.JPG');
slides[18] = new Slide('../Fun at the Fraziers_files/PICT1481.jpg', '600', '800', 'PICT1481.JPG');
slides[19] = new Slide('../Fun at the Fraziers_files/PICT1483.jpg', '600', '800', 'PICT1483.JPG');
slides[20] = new Slide('../Fun at the Fraziers_files/PICT1484.jpg', '600', '800', 'PICT1484.JPG');
slides[21] = new Slide('../Fun at the Fraziers_files/PICT1486.jpg', '600', '800', 'PICT1486.JPG');
slides[22] = new Slide('../Fun at the Fraziers_files/PICT1488.jpg', '600', '800', 'PICT1488.JPG');
slides[23] = new Slide('../Fun at the Fraziers_files/PICT1474.jpg', '600', '800', 'PICT1474.JPG');
slides[24] = new Slide('../Fun at the Fraziers_files/PICT1492.jpg', '600', '800', 'PICT1492.JPG');
slides[25] = new Slide('../Fun at the Fraziers_files/PICT1497.jpg', '600', '800', 'PICT1497.JPG');
slides[26] = new Slide('../Fun at the Fraziers_files/PICT1489.jpg', '600', '800', 'PICT1489.JPG');
slides[27] = new Slide('../Fun at the Fraziers_files/PICT1496.jpg', '600', '800', 'PICT1496.JPG');
slides[28] = new Slide('../Fun at the Fraziers_files/PICT1499.jpg', '600', '800', 'PICT1499.JPG');
slides[29] = new Slide('../Fun at the Fraziers_files/Photo 4.jpg', '480', '640', 'Photo 4');
slides[30] = new Slide('../Fun at the Fraziers_files/Photo 5.jpg', '480', '640', 'Photo 5');
slides[31] = new Slide('../Fun at the Fraziers_files/Photo 6.jpg', '480', '640', 'Photo 6');
slides[32] = new Slide('../Fun at the Fraziers_files/Photo 7.jpg', '480', '640', 'Photo 7');
slides[33] = new Slide('../Fun at the Fraziers_files/Photo 9.jpg', '480', '640', 'Photo 9');
slides[34] = new Slide('../Fun at the Fraziers_files/Photo 13.jpg', '480', '640', 'Photo 13');
slides[35] = new Slide('../Fun at the Fraziers_files/Photo 14.jpg', '480', '640', 'Photo 14');
slides[36] = new Slide('../Fun at the Fraziers_files/Photo 15.jpg', '480', '640', 'Photo 15');
slides[37] = new Slide('../Fun at the Fraziers_files/Photo 16.jpg', '480', '640', 'Photo 16');
slides[38] = new Slide('../Fun at the Fraziers_files/Photo 17.jpg', '480', '640', 'Photo 17');
slides[39] = new Slide('../Fun at the Fraziers_files/Photo 18.jpg', '480', '640', 'Photo 18');
slides[40] = new Slide('../Fun at the Fraziers_files/Photo 19.jpg', '480', '640', 'Photo 19');
slides[41] = new Slide('../Fun at the Fraziers_files/Photo 20.jpg', '480', '640', 'Photo 20');
slides[42] = new Slide('../Fun at the Fraziers_files/Photo 21.jpg', '480', '640', 'Photo 21');
slides[43] = new Slide('../Fun at the Fraziers_files/Photo 22.jpg', '480', '640', 'Photo 22');
slides[44] = new Slide('../Fun at the Fraziers_files/Photo 23.jpg', '480', '640', 'Photo 23');
slides[45] = new Slide('../Fun at the Fraziers_files/Photo 24.jpg', '480', '640', 'Photo 24');
slides[46] = new Slide('../Fun at the Fraziers_files/Photo 25.jpg', '480', '640', 'Photo 25');
slides[47] = new Slide('../Fun at the Fraziers_files/Photo 26.jpg', '480', '640', 'Photo 26');
slides[48] = new Slide('../Fun at the Fraziers_files/Photo 27.jpg', '480', '640', 'Photo 27');
slides[49] = new Slide('../Fun at the Fraziers_files/Photo 28.jpg', '480', '640', 'Photo 28');
slides[50] = new Slide('../Fun at the Fraziers_files/Photo 29.jpg', '480', '640', 'Photo 29');
slides[51] = new Slide('../Fun at the Fraziers_files/Photo 30.jpg', '480', '640', 'Photo 30');
slides[52] = new Slide('../Fun at the Fraziers_files/Photo 31.jpg', '480', '640', 'Photo 31');
slides[53] = new Slide('../Fun at the Fraziers_files/Photo 32.jpg', '480', '640', 'Photo 32');
slides[54] = new Slide('../Fun at the Fraziers_files/Photo 33.jpg', '480', '640', 'Photo 33');
slides[55] = new Slide('../Fun at the Fraziers_files/Photo 34.jpg', '480', '640', 'Photo 34');
slides[56] = new Slide('../Fun at the Fraziers_files/Photo 35.jpg', '480', '640', 'Photo 35');
slides[57] = new Slide('../Fun at the Fraziers_files/Photo 36.jpg', '480', '640', 'Photo 36');
slides[58] = new Slide('../Fun at the Fraziers_files/Photo 37.jpg', '480', '640', 'Photo 37');
slides[59] = new Slide('../Fun at the Fraziers_files/Photo 38.jpg', '480', '640', 'Photo 38');
slides[60] = new Slide('../Fun at the Fraziers_files/Photo 39.jpg', '480', '640', 'Photo 39');
slides[61] = new Slide('../Fun at the Fraziers_files/Photo 40.jpg', '480', '640', 'Photo 40');
slides[62] = new Slide('../Fun at the Fraziers_files/Photo 41.jpg', '480', '640', 'Photo 41');
slides[63] = new Slide('../Fun at the Fraziers_files/Photo 42.jpg', '480', '640', 'Photo 42');
slides[64] = new Slide('../Fun at the Fraziers_files/Photo 43.jpg', '480', '640', 'Photo 43');
slides[65] = new Slide('../Fun at the Fraziers_files/Photo 44.jpg', '480', '640', 'Photo 44');
slides[66] = new Slide('../Fun at the Fraziers_files/Photo 45.jpg', '480', '640', 'Photo 45');
slides[67] = new Slide('../Fun at the Fraziers_files/Photo 46.jpg', '480', '640', 'Photo 46');
slides[68] = new Slide('../Fun at the Fraziers_files/Photo 47.jpg', '480', '640', 'Photo 47');
slides[69] = new Slide('../Fun at the Fraziers_files/Photo 48.jpg', '480', '640', 'Photo 48');
isPureISOLatin1 = true;
contentEncodingConstant = 4;
feedbackURL = "TODO";
showFeedbackButton = false;
feedbackEnabled = 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 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);
        }
    }
}

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;
    }
}

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 onPageLoad()
{
    detectBrowser();
    fixupIEPNG("id1", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id2", "Fun at the Fraziers_files/transparent.gif");
    fixupAllIEPNGBGs();
    fixupIEPNG("id3", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id4", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id5", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id6", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id7", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id8", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id9", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id10", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id11", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id12", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id13", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id14", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id15", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id16", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id17", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id18", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id19", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id20", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id21", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id22", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id23", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id24", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id25", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id26", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id27", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id28", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id29", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id30", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id31", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id32", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id33", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id34", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id35", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id36", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id37", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id38", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id39", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id40", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id41", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id42", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id43", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id44", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id45", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id46", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id47", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id48", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id49", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id50", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id51", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id52", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id53", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id54", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id55", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id56", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id57", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id58", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id59", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id60", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id61", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id62", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id63", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id64", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id65", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id66", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id67", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id68", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id69", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id70", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id71", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id72", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id73", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id74", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id75", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id76", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id77", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id78", "Fun at the Fraziers_files/transparent.gif");
    fixupIEPNG("id79", "Fun at the Fraziers_files/transparent.gif");
    return true;
}


