

registerPloneFunction( function() {

var data = { 
              'http://www.soberliving.com/facility-images/BeachHouse009.jpg/image_large': { caption: 'This is a typical bedroom in our Extended Care Program.' },
              'http://www.soberliving.com/facility-images/bch.jpg/image_large': { caption: 'The ocean is always within earshot at our residences... reminding people of the universal forces of nature and that they are part of a greater design.' },
              'http://www.soberliving.com/facility-images/slbts_photo2.jpg/image_large': { caption: 'This is the front of one of our women\'s residences.  Morning meditation followed by a walk on the beach is part of the daily schedule.' },
              'http://www.soberliving.com/facility-images/slbts_photo3.jpg/image_large': { caption: 'Depending on the program, our clients may prepare their own food or have a chef prepare it for them.' }
 };

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


});


