// Finish defining and activating the slideshow

// Mozilla fade-in functionality
var fadein_opacity = 0.04;
var fadein_img = slideshow.image;
function fadein(opacity)
{
    if(typeof opacity != 'undefined')
        fadein_opacity = opacity;
    if(fadein_opacity < 0.99 && fadein_img && fadein_img.style && typeof fadein_img.style.MozOpacity != 'undefined')
    {
        fadein_opacity += .05;
        fadein_img.style.MozOpacity = fadein_opacity;
        setTimeout("fadein()", 50);
    }
}

// If you want some code to be called before or after the slide is updated, define the functions here
slideshow.pre_update_hook = function() {
    return;
}

slideshow.post_update_hook = function() {
    fadein(0.04);
    return;
}

if(document.images)
{
    // Tell the slideshow which image object to use
    slideshow.image = document.images.slideshow_img;
    
    // Update the image and the text for the slideshow
    slideshow.update();
    
    // Auto-play the slideshow
    slideshow.play();
}
