

registerPloneFunction( function() {

var data = { 
              'http://www.soberliving.com/aboutus/tour/facilities-tour/slbts_photo2.jpg/image_large': { caption: 'The beach and outdoor activities have a positive effect on our clients\' psyche and physical recovery.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/slbts_photo6.jpg/image_large': { caption: 'This is the Landing for Men, our highly monitored primary program for the first 30 to 90 days of sobriety when men benefit from a very highly structured and highly monitored environment.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/BeachHouse007.jpg/image_large': { caption: 'Here is a women\'s residence living room.  The women are up very early participating in esteem building therapeutic activities.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/slbts_photo3.jpg/image_large': { caption: 'Residents will be responsible for keeping common areas tidy which we find is a positive influence on their recovery to be spend time together in a neat and esteem building environments.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Girls%20Talk%20aT%20Rose.jpg/image_large': { caption: 'Some women in a process group with a therapist.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/slbts_photo4.jpg/image_large': { caption: 'Almost all groups, workshops, and therapy sessions happen on our Newport Beach campus. Clients will frequently spend time between groups talking with each other on the patios of our offices and lecture rooms.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Women%20on%20Bed%20of%20Vic.jpg/image_large': { caption: 'Women discuss life in the bedroom between activities.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/slbts_photo5.jpg/image_large': { caption: 'This is the inside of The Landing for Men.  Since it is a highly monitored program for early sobriety, a lot of the lectures, workshops and activities will take place right here in the living room below the bedrooms (or out front on the sand).' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/slbts_photo7.jpg/image_large': { caption: 'This is the upstairs bedroom of The Landing, it looks out on the sand and ocean of newport beach.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/slbts_photo9.jpg/image_large': { caption: 'Therapeutic process are frequent and facilitated by the best counselors and doctors available for addiction and eating disorder treatment.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/slbts_photo10.jpg/image_large': { caption: 'The ocean\'s natural beauty and spending time outdoors under the sky is a critical component of our treatment regimens.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/slbts_photo11.jpg/image_large': { caption: 'After twenty five years of success, we\'re well aware of the positive influence our location has on people\'s ability to change their lives permanently for the better.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/slbts_photo12.jpg/image_large': { caption: 'This is the upstairs "living room" of the Victorian house for Eating Disorders.  Women at the Victorian will frequently meet here to process the many therapeutic activities they are participating in.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/slbts_photo13.jpg/image_large': { caption: 'This is a bedroom at one of our women\'s facilities.  ALL housing is gender specific.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/slbts_photo14.jpg/image_large': { caption: 'This is where all clients can use the computers at times but the men and women attending college in our T.E.A.C.H. program have times when it available only to them.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/slbts_photo21.jpg/image_large': { caption: 'Throughout the last 25 years, thousands of men and women have changed their lives with us in this beautiful place.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/4711bedroom.jpg/image_large': { caption: 'Upstairs bedroom at the Landing treatment center for men' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/residence_2.jpg/image_large': { caption: 'This is a typical extended care program living room.  Clients who are in treatment work together to keep common areas tidy.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/BeachHouse001.jpg/image_large': { caption: 'This is our women\'s only program The Rose\'s house.  Women who are progressing well in their treatment will end up sleeping in the upstairs bedroom looking out at the Pacific Ocean.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/bdrm.jpg/image_large': { caption: 'This is the type of accommodation for clients in our Long Term Residential program, Reflections Program (mature adults), and T.E.A.C.H. program.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/BeachHouse002.jpg/image_large': { caption: 'Keeping our clients together in well maintained surroundings builds their self esteem and creates fellowship in their recovery.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/BeachHouse003.jpg/image_large': { caption: 'The warm sun on your face, the salt air filling your lungs, and the everpresent sound of waves crashing create an environment that facilitates change.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/BeachHouse004.jpg/image_large': { caption: 'The kitchen areas are used by clients in some programs to prepare their own food.  In other programs (primary care programs like The Rose, the Landing, and Sunrise Ranch) all food is prepared by professional chefs.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/BeachHouse006.jpg/image_large': { caption: 'This is an interior shot of The Rose, a primary program (first 30-90 days of sobriety) for women.  Addiction and trauma is treated with loving care and structure.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/sunrise3.jpg/image_large': { caption: 'A Dining area at Sunrise Recovery.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/BeachHouse009.jpg/image_large': { caption: 'This is a typical bedroom for programs such as our Long Term Residential Program, the Reflections Program, and the T.E.A.C.H. College Program.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Women%20Vic%20Wide%20shot.jpg/image_large': { caption: 'Women in the living room are building momentum in recovery through fellowship.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/CR.jpg/image_large': { caption: 'This is a room that is used frequently by the Celebrate Recovery Christian Program but you can also frequently find T.E.A.C.H. College Program students working on assignments or receiving tutoring at this table.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/grp%20rm.jpg/image_large': { caption: 'Martindale Hall is outfitted with large televisions for clients to have a safe place to connect with each other and watch football on the weekends.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/iStock_000003001180Small.jpg/image_large': { caption: 'Clients in most programs will have daily access to our local 24 Hour Fitness gym facility (during weekdays including transportation and monitoring).' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/kitch.jpg/image_large': { caption: 'Common areas like the kitchen are kept clean by clients in the houses which builds responsibility and self esteem.  ' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/ParkBench.jpg/image_large': { caption: 'One of our clients in our Reflections Program for mature adults takes advantage of the scenery to reflect on his recovery.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/patio.jpg/image_large': { caption: 'The infamous patio outside the main center... a frequent congregating place for clients in a variety of our treatment programs.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/pic_LibraryWarm06.jpg/image_large': { caption: 'It is not until you set foot in the Victorian that you will understand what a cozy and welcoming environment it is... and top notch clinical care for Eating Disorders as well...' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Women%20Talking%20at%20Rose.jpg/image_large': { caption: 'Program Manager Tanya discusses life in recovery on The Rose balcony.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/residence_1.jpg/image_large': { caption: 'Here is a living room for a typical "non primary care" program like Celebrate Recovery, Long Term Residential Treatment, Reflections, or T.E.A.C.H. College Program' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/residence_3.jpg/image_large': { caption: 'Another look at a typical living room in one of our apartments.  All living quarters are monitored throughout the day and night.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/residence_5.jpg/image_large': { caption: 'Here is a dining area and kitchen of a typical residential apartment for one of our programs.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/residence_6.jpg/image_large': { caption: 'Clients will feel good about themselves living in accommodations that are well maintained (and steps from the ocean).' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/rose_photo2.jpg/image_large': { caption: ' Here is the interior of the Rose for Women' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/VICt_pic_BedroomPeople38.jpg/image_large': { caption: 'We have learned through the years the value of surrounding our clients with comfortable and high quality accommodations.  ' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/rose_photo3.jpg/image_large': { caption: 'Another Look at the interior or The Rose for Women' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/rose_photo5.jpg/image_large': { caption: 'This is a bedroom at The Rose for Women' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/SLBTS-Vict.living.mod.gif/image_large': { caption: 'Women in our Victorian Eating Disorder Program take some time to lounge in the library.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/SLBTS-Vict_courtyard-sm.jpg/image_large': { caption: 'The Victorian House has many rooms and areas.  This is a Courtyard.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Girl%20on%20Rose%20Bed.jpg/image_large': { caption: 'A woman at The Rose will have some down time to complete assignments and read.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Girls%20butcher%20block%20vic.jpg/image_large': { caption: 'Girls discuss life around the butcher block.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/SRR%20bdrm.jpg/image_large': { caption: 'This is a bedroom at Sunrise Recovery. The Ranch is our one facility that is located outside of Newport Beach (in Riverside) and is a highly structured primary program for men to get their first 30-60 days of sobriety.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/staff_2.jpg/image_large': { caption: 'Every client will eventually meet Jeff Hamilton who is in charge of day to day operations and keeps everyone getting to their appointments on time (and is an alumnus of our facility).' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Girls%20on%20Towel%20Beach.jpg/image_large': { caption: 'Women spending time on the beach. ' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Yoga%20Roof%201.jpg/image_large': { caption: 'The Girls at the Victorian do Yoga on the Roof' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/staff_3.jpg/image_large': { caption: 'David Hickman is beloved by our clients.  David is our Program Manager and cares greatly about the progress of our clients.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Daves%20Surf%20Picture.JPG/image_large': { caption: 'Clients have the option of participating in a weekly surf lesson (and will have the opportunity to practice throughout the week depending on their treatment regimen)' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/iStock_000001963347Small.jpg/image_large': { caption: 'Clients often find themselves developing a love for yoga during our program.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Girls%20Rose%20Butcher%20Block.jpg/image_large': { caption: 'All housing is gender specific.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Girl%20Checking%20into%20Rose.jpg/image_large': { caption: 'Here a courageous young women checks into treatment.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/eric.JPG/image_large': { caption: 'Eric takes our clients fishing once a week and then there are more frequent trips during the warm weather months.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Girls%20rose%20patio.jpg/image_large': { caption: 'Women spend time on The Rose front patio.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/pierwpelican.jpg/image_large': { caption: 'We have to get a shout out to the everpresent pier, so many life changes occur right in it\'s shadow.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/iStock_000000455812Small_high_school_classroom.jpg/image_large': { caption: 'Clients in our TEACH program literally take classes on campus and are transported home to their residential treatment house where they continue treatment.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Newport%20beach%20boardwalk.jpg/image_large': { caption: 'Clients ride their bikes up and down the boardwalk in between appointments.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/by%20the%20pier%20girls.jpg/image_large': { caption: 'Newport Beach is a vibrant recovery community with lots of great restaurants and shopping.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/iStock_000004358771Medium.jpg/image_large': { caption: 'Family Week happens 1X a month and there is also something special for local families every Thursday.  Families are restored here.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/surfer%20-%20good.jpg/image_large': { caption: 'People who can\'t go for more than a few minutes without a drink or their drug of choice come to our campus and this really does become what their life is like.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Girls%20at%20Beach%20lined%20up.jpg/image_large': { caption: 'Meditation on the beach and walks in the sand are a part of every day life here. ' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/The%20Victorian%20house.jpg/image_large': { caption: 'The Victorian House is the site of life changing processes. ' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Women%20at%20Vic%20Table.jpg/image_large': { caption: 'Women gather around the table for an informal discussion at The Victorian.' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Women%20in%20Group%20Therapy%20Vic.jpg/image_large': { caption: 'Women in a Group Therapy Session. ' },
              'http://www.soberliving.com/aboutus/tour/facilities-tour/Girls%20on%20rose%20Bed.jpg/image_large': { caption: 'The girls spend time in between activities in the bedroom.' }
 };

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


});



