jQuery(document).ready(function(){
  //jQuery("a[@href$=.flv]").html("");
    jQuery("a[@href$=.flv]").addClass("flowplayer");
    jQuery("a[@href$=.jpg], a[@href$=.bmp], a[@href$=.gif], a[@href$=.png]").addClass("lightview");

    jQuery("a[@href$=.flv]").flowplayer({
        src:"/common/flowplayer/flowplayer.swf",
        quality:"best"
        /*
        width:500,
        height:306
        */
        } , {
        clip:  {
            scaling: "scale",
            autoPlay: true,
            autoBuffering: true
        } ,
        plugins: {
            controls: {
                // url: '/common/flowplayer/flowplayer.controls.swf',

                // display properties
                backgroundGradient: 'low',
                backgroundColor: '#333333',
                sliderGradient: 'none',
                sliderColor: '#000000',
                progressGradient: 'none',
                progressColor: '#333333',
                bufferGradient: 'none',
                bufferColor: '#999999',
                buttonOverColor: '#999999',
                buttonColor: '#666666',
                durationColor: '#ffffff',
                timeColor: '#999999',
                timeFontColor: '#333333',
                fontColor: '#000000',
                borderRadius: '0px',
                opacity:0.5,

                // controlbar-specific configuration
                // autoHide: 'always',

                // which buttons are visible and which are not?
                play:true,
                volume:true,
                mute:true,
                time:true,
                stop:false,
                playlist:false,
                fullscreen:true,

                // scrubber is a well-known nickname for the timeline/playhead combination
                scrubber: true
            }

        }
    });
});
