﻿// See http://code.google.com/p/slideshow/wiki/Slideshow#Options: See 1st note in 'Notes' section on using loader files.

function defineSlideshow() {
    //alert('defineSlideshow()');
    if (document.getElementById('divSlideShow')) {
        var data = {
        'A.jpg': { caption: '<img src="./Assets/spacer.gif" alt="" height="1" width="10" border="0" align="left" />Welcome to Connecticut\'s source for great motorcycle rides and safety information.' },
        'B.jpg': { caption: '<img src="./Assets/spacer.gif" alt="" height="1" width="10" border="0" align="left" />Safety information that you can\'t live without.' },
        'C.jpg': { caption: '' },
        'D.jpg': { caption: '' },
        'E.jpg': { caption: '<img src="./Assets/spacer.gif" alt="" height="1" width="10" border="0" align="left" />Find out what is going on in and around the state. ' },
        'F.jpg': { caption: '' },
        'G.jpg': { caption: '<img src="./Assets/spacer.gif" alt="" height="1" width="10" border="0" align="left" />Looking for a great ride? We have some suggestions...' },
        'H.jpg': { caption: '<img src="./Assets/spacer.gif" alt="" height="1" width="10" border="0" align="left" />Check out our map of great scenic routes around the state.' },
        'I.jpg': { caption: '<img src="./Assets/spacer.gif" alt="" height="1" width="10" border="0" align="left" />Think you know it all? Find out if your memory needs a tune up.' },
        'J.jpg': { caption: '' },
        'K.jpg': { caption: '<img src="./Assets/spacer.gif" alt="" height="1" width="10" border="0" align="left" />Get access to useful spots on the Internet.' },
        'L.jpg': { caption: '' },
        'M.jpg': { caption: '<img src="./Assets/spacer.gif" alt="" height="1" width="10" border="0" align="left" />Read what others have to say about riding and riding safety.' },
        'N.jpg': { caption: '' },
        'O.jpg': { caption: '<img src="./Assets/spacer.gif" alt="" height="1" width="10" border="0" align="left" />If you have questions, we have answers in our FAQ section.' },
        'P.jpg': { caption: '' },
        'Q.jpg': { caption: '<img src="./Assets/spacer.gif" alt="" height="1" width="10" border="0" align="left" />Find out about others who share a passion for motorcycling.' },
        'R.jpg': { caption: '' },
        'S.jpg': { caption: '' },
        'Z.jpg': { caption: '' }
        }
        var myShow = new Slideshow.KenBurns('divSlideShow', data, { captions: true, controller: true, delay: 5000, duration: 3000, height: 256, hu: './Slideshow/Images/', width: 615 });
    }
}

if (window.addEventListener) // W3C standard approach
{
    //alert('adding Event Listener');
    window.addEventListener('load', defineSlideshow, false); // Note that this event name is 'load' not 'onload'
}
else if (window.attachEvent) // Microsoft approach
{
    //alert('attaching Event Listener');
    window.attachEvent('onload', defineSlideshow);
}

