var c4p_flash = {
    checkVersion : function (v)
	{
		if(window.ActiveXObject)
		{
			try{new ActiveXObject(("ShockwaveFlash.ShockwaveFlash." + v));return true;}catch(e){}
		}
		else
		{
			if(navigator.mimeTypes.length > 0 && navigator.plugins && (navigator.plugins["Shockwave Flash"] && navigator.plugins["Shockwave Flash"].description.replace(/.*(\d+\.\d+).*/, "$1") >= v || navigator.plugins["Shockwave Flash"] && navigator.plugins["Shockwave Flash"].description.replace(/.*(\d\d\.\d+).*/, "$1") >= v))
			{
				return true;
			}
		}
		return false;
	},
	embed: function (id, src, w, h, v, params)
	{
		element = document.getElementById(id);
		if(element && this.checkVersion(v))
		{
			// Object
			var html = "<object" + ((window.ActiveXObject) ? " id=\"" + id + "_flash\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" data=\"" + src + "\"" : "") + " width=\"" + w + "\" height=\"" + h + "\">";
			// Params
			html += "<param name=\"movie\" value=\"" + src + "\">";
			for(key in params)
				html += "<param name=\"" + key + "\" value=\"" + params[key] + "\">";
			// Embed
			html += "<embed id=\"" + id + "_flash\" src=\"" + src + "\" type=\"application/x-shockwave-flash\" width=\"" + w + "\" height=\"" + h + "\"";
            for(key in params)
                html += " " + key + "=\"" + params[key] + "\"";
            html += "></embed></object>";
			element.innerHTML = html;
		}
	}
};