﻿(function($) {
    PARAMS_DEFAULTS = {
        scale: "noscale",
        salign: "tl",
        wmode: "transparent"
    };
    FlashComponent = function(swfRef, holderID, size, vars, params, attributes) {
        var v = $.extend({}, vars || {});
        var p = $.extend({}, PARAMS_DEFAULTS, params || {});
        var a = $.extend({}, attributes || {});
        swfobject.embedSWF(swfRef, holderID,
                           size.width.toString(), size.height.toString(),
                           "9.0.0", false, v, p, a);
    }
})(jQuery);
