var fnfp = {
    fs: '',
    _fs: null,

    play: function(e, h, fs) {if (e != undefined) {$f().play(e);document.getElementById("fp_hd").innerHTML = h;if (this._fs != null) { this._fs = this.fs; }this.fs = fs;}else {$f().play()} },
    iniplayer: function() {

        $f("player", { src: "flowplayer-3.1.1.swf", wmode: 'opaque' }, {

            clip: {
                autoPlay: true,
                autoBuffering: true,
                onStart: function(clip) {
                    if (fnfp._fs != '') {
                        $f().getPlugin("content").css({ display: 'none' });
                        $f().getPlugin("play_btn").css({ display: 'none' });
                        if (this._fs == null) { this._fs = this.fs; }
                    }
                },
                onFinish: function(clip) { if (fnfp.fs != '') { var p = $f().getPlugin("content"); p.css({ backgroundImage: fnfp.fs }).fadeIn(1000, $f().getPlugin("play_btn").show()); this._fs = this.fs; } }
            },

            play: {
                label: null,
                replayLabel: null
            },
            plugins: {
                controls: {
                    url: 'flowplayer.controls-3.1.1.swf',
                    bottom: 0,
                    height: 24,
                    backgroundColor: '#000000',
                    backgroundGradient: 'low',
                    fontColor: '#ffffff',
                    timeFontColor: '#333333',
                    autoHide: 'always',
                    hideDelay: 1000,
                    play: true,
                    volume: true,
                    mute: true,
                    time: true,
                    stop: false,
                    playlist: false,
                    fullscreen: true,
                    scrubber: true
                },

                content: {
                    url: 'flowplayer.content-3.1.0.swf',
                    top: 0,
                    width: '100%',
                    height: '100%',
                    opacity: 1,
                    borderRadius: 0,
                    border: 'none',
                    display: 'none',
                    background: '#000 no-repeat',
                    stylesheet: 'css/fp.css',
                    onClick: function() { $f().play(); }
                },

                play_btn: {
                    url: 'flowplayer.content-3.1.0.swf',
                    top: '50%',
                    width: 45,
                    height: 45,
                    opacity: .5,
                    borderRadius: 52,
                    border: 'none',
                    display: 'none',
                    background: 'transparent url(resources/fpplay.png) no-repeat center center',
                    onClick: function() { $f().play(); }
                }
            }
        });

    }

}


