

registerPloneFunction( function() {

var data = { 
              'http://www.soberliving.com/facility-images/SLBTS%20Vict.Ext.jpg/image_large': { caption: 'The Victorian is a very unique and effective eating disorder treatment facility.' },
              'http://www.soberliving.com/facility-images/SLBTS-Vict.bed.jpg/image_large': { caption: 'All residential facilities are gender specific.' },
              'http://www.soberliving.com/facility-images/SLBTS-Vict.courtyard.jpg/image_large': { caption: 'Surrounding yourself with beautiful spaces is a nice way to start a new life clean and sober.' },
              'http://www.soberliving.com/facility-images/SLBTS-Vict.diningmod1.jpg/image_large': { caption: 'Primary Care programs (for initial sobriety) have meals prepared.  Extended Care programs allow clients to cook for themselves.' },
              'http://www.soberliving.com/facility-images/SLBTS-Vict.living.jpg/image_large': { caption: 'Women learn to change the way they see themselves in the Victorian House.' }
 };

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: 576,
                controller: true,
                duration: 500,
                captions: true,
                height: 569,
                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]';


});



