var Flash = 
{
	GenerateMovieObj : function(_url, _width, _height, _bgcolor, _blnTransparency)
	{
	try{
		//declare object tag
		var obj = document.createElement("OBJECT");
		    obj.setAttribute("classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000");
		    obj.setAttribute("codebase", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,2,0");
		    obj.setAttribute("width", _width.toString());
		    obj.setAttribute("height", _height.toString());
		Flash.SetParam(obj, "movie", _url);
		Flash.SetParam(obj, "quality", "high");
		Flash.SetParam(obj, "BGCOLOR", _bgcolor);
		Flash.SetParam(obj, "SCALE", "showall");
		if(_blnTransparency)
			Flash.SetParam(obj, "WMODE", "transparent");
	
		
		var embed = document.createElement("EMBED");
		    embed.setAttribute("src",_url);
		    embed.setAttribute("quality","high");
		    embed.setAttribute("pluginspage","http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash");
		    embed.setAttribute("type","application/x-shockwave-flash");
		    embed.setAttribute("width",_width.toString());
		    embed.setAttribute("height",_height.toString());
		    embed.setAttribute("bgcolor",_bgcolor);
		    if(_blnTransparency)
		    	embed.setAttribute("wmode","transparent");
		    embed.setAttribute("scale","showall");
		
		//add to obj
		
		
		if(Smgr.IsIE)
		 return embed;
		else 
		{
			obj.appendChild(embed);
			return obj;
		}
		
		
	} catch(ex) { alert("Flash.GenerateMovieObj: "+ex.message); }
		    
	},
	SetParam : function(_targetDOM, _name, _value)
	{
		var param = document.createElement("PARAM");
		    param.setAttribute("name",_name);
		    param.setAttribute("value",_value);
		_targetDOM.appendChild(param);
		
	},
	AppendToDOM : function(_id, _flashDOM)
	{
		document.getElementById(_id).appendChild(_flashDOM);
	}
};