

registerPloneFunction( function() {

var data = { 
              'http://northern.org/media-library/photos/events/2009-run-for-the-refuge-race/Sarah%20James%20Song.JPG/image_large': { caption: 'Sarah James performs before the race' },
              'http://northern.org/media-library/photos/events/2009-run-for-the-refuge-race/DSCN8338.JPG/image_large': { caption: 'Stacey Carkhuff and Jenna Hertz distribute raffle prizes' },
              'http://northern.org/media-library/photos/events/2009-run-for-the-refuge-race/20090816_115436.JPG/image_large': { caption: 'Pam Miller, NAEC Arctic Programs Director prepares for the race' },
              'http://northern.org/media-library/photos/events/2009-run-for-the-refuge-race/20090816_115449.JPG/image_large': { caption: 'Jenna Hertz, the Run for the Refuge coordinator' },
              'http://northern.org/media-library/photos/events/2009-run-for-the-refuge-race/20090816_115555.JPG/image_large': { caption: 'Heidi Supkis and a volunteer help out during the Run for the Refuge race' },
              'http://northern.org/media-library/photos/events/2009-run-for-the-refuge-race/20090816_120643.JPG/image_large': { caption: 'Brenna McConnell works on the timing for the race' },
              'http://northern.org/media-library/photos/events/2009-run-for-the-refuge-race/20090816_120850.JPG/image_large': { caption: 'Karen Max Kelly, NAEC Executive Director posing as a "Tree Hugger"' },
              'http://northern.org/media-library/photos/events/2009-run-for-the-refuge-race/20090816_121107.JPG/image_large': { caption: 'Pete Peter, of "Indian Pete and the Cruisers" performs' },
              'http://northern.org/media-library/photos/events/2009-run-for-the-refuge-race/20090816_121614.JPG/image_large': { caption: 'The Save the Refuge sign' },
              'http://northern.org/media-library/photos/events/2009-run-for-the-refuge-race/20090816_123501.JPG/image_large': { caption: 'Stacey Carkhuff and Heidi Supkis working the race' },
              'http://northern.org/media-library/photos/events/2009-run-for-the-refuge-race/20090816_131944.JPG/image_large': { caption: 'Adele Wiejaczka and Quita of the Northern Center run the race' }
 };

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


});



