﻿// JScript File

 // Create a function to ramp up the image opacity in Mozilla
 
 SLIDES.image = document.images.SLIDESIMG;
 
        var fadein_opacity = 0.5;
        var fadein_img = SLIDES.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 += .02;
                fadein_img.style.MozOpacity = fadein_opacity;
                setTimeout("fadein()", 10);
            }
        }

function runSlideshow(SLIDES,timeout,shuffle,enableTransitions)
{
    if (document.images)
    {          
        

       
        // Tell the slideshow to call our function whenever the slide is changed
        
        SLIDES.post_update_hook = function() { fadein(0.5); }
              
        SLIDES.timeout = timeout;
        if(shuffle)
        {
            SLIDES.shuffle();
        }        
        SLIDES.update();
        SLIDES.play();
    }
}


