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('../May2008_files/DSCN0102.jpg', '800', '600', 'Hi, I’m an alcoholic.. buy me a drink!');
slides[1] = new Slide('../May2008_files/DSCN0105.jpg', '800', '600', 'DSCN0105');
slides[2] = new Slide('../May2008_files/DSCN0106.jpg', '800', '600', 'DSCN0106');
slides[3] = new Slide('../May2008_files/DSCN0107.jpg', '800', '600', 'DSCN0107');
slides[4] = new Slide('../May2008_files/DSCN0108.jpg', '800', '600', 'DSCN0108');
slides[5] = new Slide('../May2008_files/DSCN0110.jpg', '800', '600', 'Good Morning Baltimore...');
slides[6] = new Slide('../May2008_files/DSCN0115.jpg', '800', '600', 'DSCN0115');
slides[7] = new Slide('../May2008_files/DSCN0118.jpg', '800', '600', 'DSCN0118');
slides[8] = new Slide('../May2008_files/DSCN0119.jpg', '600', '800', 'DSCN0119');
slides[9] = new Slide('../May2008_files/DSCN0120.jpg', '800', '600', 'DSCN0120');
slides[10] = new Slide('../May2008_files/DSCN0122.jpg', '600', '800', 'Announcements by Kelly Dear!  :)');
slides[11] = new Slide('../May2008_files/DSCN0123.jpg', '600', '800', 'I love you!');
slides[12] = new Slide('../May2008_files/DSCN0124.jpg', '800', '600', 'Let me borrow that top!');
slides[13] = new Slide('../May2008_files/DSCN0125.jpg', '800', '600', 'BETCH!');
slides[14] = new Slide('../May2008_files/DSCN0126.jpg', '800', '600', 'DSCN0126');
slides[15] = new Slide('../May2008_files/DSCN0127.jpg', '800', '600', 'DSCN0127');
slides[16] = new Slide('../May2008_files/DSCN0129.jpg', '800', '600', 'DSCN0129');
slides[17] = new Slide('../May2008_files/DSCN0130.jpg', '800', '600', 'DSCN0130');
slides[18] = new Slide('../May2008_files/DSCN0132.jpg', '600', '800', 'DSCN0132');
slides[19] = new Slide('../May2008_files/DSCN0133.jpg', '600', '800', 'LOOK! A sadistic teacher from my childhood!');
slides[20] = new Slide('../May2008_files/DSCN0134.jpg', '600', '800', 'DSCN0134');
slides[21] = new Slide('../May2008_files/DSCN0135.jpg', '600', '800', 'Sarah and Mikey :)');
slides[22] = new Slide('../May2008_files/DSCN0136.jpg', '800', '600', 'Joel :)');
slides[23] = new Slide('../May2008_files/DSCN0137.jpg', '800', '600', 'We both can’t look good in one photo?  WHY!?');
slides[24] = new Slide('../May2008_files/DSCN0139.jpg', '600', '800', 'Some random abs... Marvin? :)');
slides[25] = new Slide('../May2008_files/DSCN0140.jpg', '600', '800', 'Eddie!!!');
slides[26] = new Slide('../May2008_files/DSCN0141.jpg', '600', '800', 'DSCN0141');
slides[27] = new Slide('../May2008_files/DSCN0142.jpg', '600', '800', 'Why did I keep taking these photos?');
slides[28] = new Slide('../May2008_files/DSCN0143.jpg', '600', '800', 'Trevs! ');
slides[29] = new Slide('../May2008_files/DSCN0144.jpg', '800', '600', 'Justins!');
slides[30] = new Slide('../May2008_files/DSCN0145.jpg', '600', '800', 'Aussi Justins!');
slides[31] = new Slide('../May2008_files/DSCN0146.jpg', '600', '800', 'Reid Martin!  A fellow star :)');
slides[32] = new Slide('../May2008_files/DSCN0148.jpg', '600', '800', 'I can’t believe I took this photo from so far.');
slides[33] = new Slide('../May2008_files/DSCN0149.jpg', '600', '800', 'ASS!');
slides[34] = new Slide('../May2008_files/DSCN0150.jpg', '800', '600', 'DSCN0150');
slides[35] = new Slide('../May2008_files/DSCN0151.jpg', '800', '600', 'I think I’m some weird voyeur now... ');
slides[36] = new Slide('../May2008_files/DSCN0152.jpg', '800', '600', 'Mr. Paul :)  I love you!');
slides[37] = new Slide('../May2008_files/DSCN0153.jpg', '800', '600', 'Ahh... so cute!');
slides[38] = new Slide('../May2008_files/DSCN0154.jpg', '600', '800', 'Thanks for the drinks, Paul!');
slides[39] = new Slide('../May2008_files/DSCN0155.jpg', '600', '800', 'Justin and Nicky :)  I’m calling him Nicky!');
slides[40] = new Slide('../May2008_files/DSCN0156.jpg', '600', '800', 'The Partay!');
slides[41] = new Slide('../May2008_files/DSCN0157.jpg', '600', '800', 'Aussi!');
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", "May2008_files/transparent.gif");
    fixupIEPNG("id2", "May2008_files/transparent.gif");
    fixupIEPNG("id3", "May2008_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;
    }
}


