function init_flowplayer() {
    var plyrId = "player";
    if (document.getElementById(plyrId)) {
        $f(plyrId, { src: "/flash/flowplayer/flowplayer.commercial-3.0.5.swf", version: [9, 115] }, {
            key: '$a8f8df59d383db8e973',
            clip: {
                autoPlay: true,
                autoBuffering: true,
                scaling: 'fit'
            },
            logo: {
                url: '/flash/ifc_logo.swf',
                fullscreenOnly: true,
                top: '20',
                right: '30',
                opacity: 0.9,
                width: '440', /*'500'*/
                height: '248', /*'500'*/
                displayTime: 0,
                fadeSpeed: 0
                //		linkUrl: 'http://www.resource-alliance.org/ifc'
            },
            play: {
                //		url: '/flash/flowplayer/play_button2.swf',  
                opacity: 0.9,
                label: null,
                replayLabel: null,
                fadeSpeed: 3000,
                rotateSpeed: 50
            },
            plugins: {
                controls: {
                    url: '/flash/flowplayer/flowplayer.controls-3.0.3.swf',

                    // controlbar-specific configuration  
                    durationColor: '#ffffff',
                    backgroundColor: '#353b35',
                    backgroundGradient: 'none',
                    bufferGradient: 'none',
                    buttonOverColor: '#ec8000',
                    borderRadius: '0',
                    progressColor: '#727771',
                    sliderGradient: 'none',
                    timeColor: '#ffffff',
                    progressGradient: 'medium',
                    bufferColor: '#4e544d',
                    sliderColor: '#000000',
                    buttonColor: '#7b807a',
                    opacity: 1.0,
                    //			autoHide: 'always',

                    // control buttons display
                    play: true,
                    volume: true,
                    mute: true,
                    time: true,
                    stop: false,
                    playlist: false,
                    fullscreen: true
                }
            },
            contextMenu: [
		        { 'About Resource Alliance ...': function() {
		            location.href = "http://www.resource-alliance.org/about_us";
		        }
		        },
		        { 'About IFC ...': function() {
		            location.href = "http://www.resource-alliance.org/ifc/about_the_ifc";
		        }
		        },
            // menu separator.  
            //'-', 			 
            // version information. 
            //'Resource Alliance VideoPlayer 3.0.5'  
	        ]
        });
    }
}
addEvent(window, "load", init_flowplayer);