function flowPlayerVideo(id, src, fpkey) {
    $f(id, {  
        src: "/Templates/Flemingsberg/Script/flowplayer/flowplayer.commercial-3.1.5.swf",  
        wmode: "opaque"  
    }, 
    {
        wmode: 'transparent',
        key: fpkey,
        contextMenu: ['Huddinge kommun'],
        clip: {
            url: src,
            autoPlay: false,
            autoBuffering: true,
            scaling: 'fit',
            onStart: function(clip)
            { 
                if (clip !== null && this !== null & jQuery) {
                    var h, parent, wrapper;
                    h = parseInt(clip.metaData.height, 10) + 24; 
                    parent = this.getParent();
                    if (parent !== null)
                    { 
                        wrapper = jQuery(parent);
                        wrapper.css({height: h});  
                    }
                }
            }           
        },
        plugins: {
            controls: {
                progressGradient: 'none',
                bufferGradient: 'none',
                sliderColor: '#000000',
                sliderGradient: 'none',
                volumeSliderColor: '#000000',
                progressColor: '#3da52c',
                bufferColor: '#1c710f',
                tooltipTextColor: '#ffffff',
                borderRadius: '0px',
                buttonColor: '#1c710f',
                timeBgColor: '#555555',
                timeColor: '#cccccc',
                backgroundColor: '#cccccc',
                backgroundGradient: 'none',
                buttonOverColor: '#3da52c',
                volumeSliderGradient: 'none',
                tooltipColor: '#3da52c',
                durationColor: '#000000',
                height: 24,
                opacity: 1.0
            }
        }
    });
}
