

registerPloneFunction( function() {

var data = { 
              'http://www.cpdistrict.org/Members/MattG/pictures/IMGP0155%20-Medium.JPG/image_large': { caption: 'Our new puppy Ellie with the kids.' },
              'http://www.cpdistrict.org/Members/MattG/pictures/IMGP0168%20-Medium.JPG/image_large': { caption: 'Our two chocolate labs: Rocky and Ellie.' },
              'http://www.cpdistrict.org/Members/MattG/pictures/IMGP0235%20-Medium.JPG/image_large': { caption: 'Ethan and Ellie' },
              'http://www.cpdistrict.org/Members/MattG/pictures/IMGP0261%20-Medium.JPG/image_large': { caption: 'Leeza the Draft horse' },
              'http://www.cpdistrict.org/Members/MattG/pictures/IMGP0276%20-Medium.JPG/image_large': { caption: 'Our little dancer' },
              'http://www.cpdistrict.org/Members/MattG/pictures/IMGP0279%20-Medium.JPG/image_large': { caption: 'Ethan enjoying a good book' },
              'http://www.cpdistrict.org/Members/MattG/pictures/IMGP0282%20-Medium.JPG/image_large': { caption: 'Nate with his fencing gear' },
              'http://www.cpdistrict.org/Members/MattG/pictures/IMGP0290%20-Medium.JPG/image_large': { caption: 'Ethan shooting at tin cans' },
              'http://www.cpdistrict.org/Members/MattG/pictures/IMGP0301%20-Medium.JPG/image_large': { caption: 'The jellyfish exhibit' },
              'http://www.cpdistrict.org/Members/MattG/pictures/IMGP0337%20-Medium.JPG/image_large': { caption: 'Our sand creation' }
 };

new Slideshow('myShow', data, 
                {hu: '', classes: ['slideshowfolder'], loader: {'animate': ['loader-#.png', 12]}, 
                paused: false,
                thumbnails: true,
                random: false,
                fast: true,
                replace: [/image_large/, 'image_tile'],
                delay: 5000,
                width: 500,
                controller: true,
                duration: 500,
                captions: true,
                height: 450,
                linked: true,
                loop: true
                });


cssQuery('.slideshowfolder-controller li.pause a')[0].title = 'Play / Pause [P]';


cssQuery('.slideshowfolder-controller li.prev a')[0].title = 'Previous [Left arrow]';


cssQuery('.slideshowfolder-controller li.next a')[0].title = 'Next [Right arrow]';


cssQuery('.slideshowfolder-controller li.last a')[0].title = 'Last [Shift + Right arrow]';


cssQuery('.slideshowfolder-controller li.first a')[0].title = 'First [Shift + Left arrow]';


});


