$(function() { 
     
    // setup player normally 
    $f("player", "img/flowplayer-3.1.5.swf", { 
     
        // clip properties common to all playlist entries 
        clip: { 
            baseUrl: 'http://www.athenalaserspa.com/img/video', 
            subTitle: 'Video Library'
        }, 
         
        // our playlist 
        playlist: [ 
            { 
                url: 'laserhairexplanation.flv', 
                title: 'Laser Hair Removal: How it works' 
            },     
            { 
                url: 'laserhairprocedure.flv', 
                title: 'Laser Hair Removal: The procedure' 
            },
            { 
                url: 'microderm-introduction.flv', 
                title: 'Microdermabrasion: Introduction' 
            },
            { 
                url: 'microderm-wands.flv', 
                title: 'Microdermabrasion: The resurfacing wands' 
            },
            { 
                url: 'microderm-mechanics.flv', 
                title: 'Microdermabrasion: System mechanics' 
            },
            { 
                url: 'microderm-treatment.flv', 
                title: 'Microdermabrasion: Treatment procedure' 
            },
            { 
                url: 'microderm-options.flv', 
                title: 'Microdermabrasion: Treatment options' 
            },
            { 
                url: 'jetpeel.flv', 
                title: 'Jet Peel' 
            },
            { 
                url: 'chemicalpeels.flv', 
                title: 'Chemical Peel' 
            },
            { 
                url: 'pixel.flv', 
                title: 'Pixel Facial Resurfacing' 
            }
        ], 
         
        // show playlist buttons in controlbar 
        plugins: { 
            controls: { 
                playlist: true 
            } 
        } 
    }); 
     
    /* 
        here comes the magic plugin. It uses first div.clips element as the  
        root for as playlist entries. loop parameter makes clips play 
        from the beginning to the end. 
    */ 
    $f("player").playlist("div.clips:first", {loop:true}); 
     
});

