

registerPloneFunction( function() {

var data = { 
              'http://www.yesmagazine.org/multimedia/yes-photo-essays/bamboo-bikes/bikeinfrontofgraffitti.jpg/image_large': { caption: 'A bamboo bike in front of the Bamboo Bike Studio, where students build bikes in just two days.' },
              'http://www.yesmagazine.org/multimedia/yes-photo-essays/bamboo-bikes/bamboo-1.jpg/image_large': { caption: 'Bamboo Bike Studio co-founder Sean Murray (left) harvests bamboo.' },
              'http://www.yesmagazine.org/multimedia/yes-photo-essays/bamboo-bikes/bamboo3.jpg/image_large': { caption: 'The beginning of a bike. Bamboo is a renewable and fast-growing plant alternative to steel and aluminum.' },
              'http://www.yesmagazine.org/multimedia/yes-photo-essays/bamboo-bikes/bamboo4.jpg-1/image_large': { caption: 'On Saturday, participants determine frame size, select and cut bamboo, and tack and bind the frame. On Sunday, they install parts and review bike maintenance.' },
              'http://www.yesmagazine.org/multimedia/yes-photo-essays/bamboo-bikes/bamboo4.jpg/image_large': { caption: 'A bike frame is inspected. Bamboo Bike Studio is helping to fund a bamboo bike factory in Kumasi, Ghana.' },
              'http://www.yesmagazine.org/multimedia/yes-photo-essays/bamboo-bikes/bamboo9.jpg/image_large': { caption: 'Ghanaian school children test ride a bamboo bike with a cargo rack. ' },
              'http://www.yesmagazine.org/multimedia/yes-photo-essays/bamboo-bikes/bamboo6.jpg/image_large': { caption: 'London visitors at the Brooklyn studio show off their bikes after a July class.' },
              'http://www.yesmagazine.org/multimedia/yes-photo-essays/bamboo-bikes/bamboo10.jpg/image_large': { caption: 'Completed bike.' },
              'http://www.yesmagazine.org/multimedia/yes-photo-essays/bamboo-bikes/bamboo8.jpg/image_large': { caption: 'Test riding a bamboo bike with a cargo rack in Ghana.' }
 };

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]';


});


