﻿// See http://code.google.com/p/slideshow/wiki/Slideshow#Options: See 1st note in 'Notes' section on using loader files.

function defineSlideshow() {
    //alert('Start of defineSlideshow()');
    //if (document.getElementById('divSlideShow')) { alert('found') } else alert('not found');

    if (document.getElementById('divSlideShow')) 
    {
        var data = {
            'a.jpg': { caption: '' },
            'b.jpg': { caption: '' },
            'c.jpg': { caption: '' },
            'd.jpg': { caption: '' },
            'e.jpg': { caption: '' },
            'f.jpg': { caption: '' },
            'g.jpg': { caption: '' },
            'h.jpg': { caption: '' },
            'i.jpg': { caption: '' },
            'j.jpg': { caption: '' },
            'k.jpg': { caption: '' }
            
        };
            
        var myShow = new Slideshow.KenBurns('divSlideShow',
                                            data, 
                                            {
                                                captions: false,
                                                controller: false,
                                                delay: 5000, 
                                                duration: 3000, 
                                                height: 400,
                                                hu: './Documents/Slideshow/', width: 200
                                                }
                                            );
                                            
    }
    //alert('End of defineSlideshow()');
    return true;
}
/*
if (window.addEventListener) // W3C standard approach
{
    alert('W3C approach');
    window.addEventListener('load', defineSlideshow, false); // Note that this event name is 'load' not 'onload'
}
else if (window.attachEvent) // Microsoft approach
{
    alert('Microsoft approach');
    window.attachEvent('onload', defineSlideshow);
}

*/
