function embedVideoPlayer(containerId, previewId, link) {
	jQuery('#'+previewId).hide();
	var container = jQuery('#'+containerId);
	jQuery(container).show();
	container = document.getElementById(containerId);
    var swf = flashembed.isSupported([8,0]) ? 'flowplayer/flowplayer.commercial-3.1.2.swf' : 'flowplayer/expressInstall.swf';
    var url = flashembed.isSupported([9,115]) ? link : link.replace("m4v", "flv");
    flowplayer(container, swf, {
	buffering: false,

        canvas: {
            backgroundColor: "#000000",
            backgroundGradient: "none"
        },

        clip: {
	        url: url,
            scaling: "fit",
	        accelerated: true
        },

        plugins: {
            controls: {
                backgroundColor: "0f0f0f",
                backgroundGradient: "none",

                progressColor: "#0f0f0f",
                progressGradient: "medium",
                bufferColor: "#0f0f0f",
                bufferGradient: "medium",

                timeColor: "#FFFFFF",
                durationColor: "#FF0000",
                buttonColor: "#505050",
                timeBgColor: "#000000",

                volumeLevelColor: "#0f0f0f",
                volumeLevelGradient: "medium",

                autoHide: "always"
            }
        }
    });
    return false;
}
