Cobalt.Core.FlashService = function()
{
    if (swfobject === undefined || !swfobject)
    {
        throw new Error("Cobalt.Core.FlashService => require swfobject 2.2");
    }

    this._swfObject = swfobject;
};

Cobalt.Core.FlashService.prototype.embedFlash = function(options)
{
    return this._swfObject.embedSWF(
                            options.swfUrl,
                            options.contentDomId,
                            options.width,
                            options.height,
                            options.videoFlashVersion,
                            options.expressInstallSwfUrl,
                            options.flashVars,
                            options.params,
                            options.attributes,
                            options.callback);
};
