$.fn.flvMovie = function(options) {
    var options = $.extend({
        player: '/wsf/media/flash/jw_flv_player/flvplayer.swf',
        playerName: 'player',
        width: 640, height: 480,
        overstretch: 'true',
        title: '',
        allowfullscreen: 'true',
        flashVersion: '7',
        background: '#ffffff',
        quality: 'high'
    }, options);
    var so = new SWFObject(options.player, options.playerName, 
                           options.width, options.height, options.flashVersion,
                           options.background, options.quality);
    so.addParam('allowfullscreen',  options.allowfullscreen);
    so.addVariable('file',          options.file);
    so.addVariable('overstretch',   options.overstretch);
    so.addVariable('width',         options.width);
    so.addVariable('height',        options.height);
    so.addVariable('title',         options.title);
    so.write($(this).attr('id'));
};

