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('../FLUXinstall_files/DSCN1686.jpg', '600', '800', 'All works © Joan Perlman');
slides[1] = new Slide('../FLUXinstall_files/DSCN1703.jpg', '600', '800', 'All works © Joan Perlman');
slides[2] = new Slide('../FLUXinstall_files/DSCN1687.jpg', '600', '800', 'All works © Joan Perlman');
slides[3] = new Slide('../FLUXinstall_files/DSCN0103.jpg', '600', '800', 'All works © Joan Perlman');
slides[4] = new Slide('../FLUXinstall_files/DSCN0101.jpg', '600', '800', 'All works © Joan Perlman');
slides[5] = new Slide('../FLUXinstall_files/DSCN1690.jpg', '600', '800', 'All works © Joan Perlman');
slides[6] = new Slide('../FLUXinstall_files/DSCN1697.jpg', '600', '800', 'All works © Joan Perlman');
slides[7] = new Slide('../FLUXinstall_files/DSCN1695.jpg', '600', '800', 'All works © Joan Perlman');
slides[8] = new Slide('../FLUXinstall_files/DSCN1688.jpg', '600', '800', 'All works © Joan Perlman');
slides[9] = new Slide('../FLUXinstall_files/DSCN1693.jpg', '600', '800', 'All works © Joan Perlman');
slides[10] = new Slide('../FLUXinstall_files/DSCN0007.jpg', '600', '800', 'All works © Joan Perlman');
slides[11] = new Slide('../FLUXinstall_files/DSCN1694.jpg', '600', '800', 'All works © Joan Perlman');
isPureISOLatin1 = true;
contentEncodingConstant = 4;
feedbackURL = "TODO";
showFeedbackButton = false;
feedbackEnabled = 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;
    }
}

function onPageLoad()
{
    detectBrowser();
    fixupIEPNG("id1", "FLUXinstall_files/transparent.gif");
    fixupIEPNG("id2", "FLUXinstall_files/transparent.gif");
    fixupIEPNG("id3", "FLUXinstall_files/transparent.gif");
    fixupIEPNG("id4", "FLUXinstall_files/transparent.gif");
    return 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;
    }
}

