function createFlash(movie, wdth, hght, bgnd, wmode, qlty, idName, target, fVars, altImg)
{
	obj_setFlash = document.getElementById(target);
	objTag = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+wdth+"' height='"+hght+"' id='"+idName+"'>";
	objTag2 = "<object data='"+movie+"' type='application/x-shockwave-flash' width='"+wdth+"' height='"+hght+"' id='"+idName+"'>";
	paramTag = "<param name='movie' value='"+movie+"' />"
+"<param name='bgcolor' value='"+(bgnd ? bgnd : "#000000")+"' />"
+"<param name='wmode' value='"+(wmode ? wmode : "window")+"' />"
+"<param name='quality' value='"+(qlty ? qlty : "high")+"' />"
+"<param name='menu' value='false' />"
+(fVars ? "<param name='FlashVars' value='"+fVars+"' />" : "")
+(altImg ? "<img src='"+altImg+"' alt='"+idName+"' title='' />" : "")
+"</object>";
	if (typeof HTMLElement != "undefined")
	{
		obj = document.createElement("object");
		obj.setAttribute("data", movie);
		obj.setAttribute("type", "application/x-shockwave-flash");
		obj.setAttribute("width", wdth);
		obj.setAttribute("height", hght);
		obj.setAttribute("id", idName);
		par = document.createElement("param");
		par.setAttribute("name", "bgcolor");
		par.setAttribute("value", bgnd ? bgnd : "#000000");
		obj.appendChild(par);
		par = document.createElement("param");
		par.setAttribute("name", "wmode");
		par.setAttribute("value", wmode ? wmode : "window");
		obj.appendChild(par);
		par = document.createElement("param");
		par.setAttribute("name", "quality");
		par.setAttribute("value", qlty ? qlty : "best");
		obj.appendChild(par);
		par = document.createElement("param");
		par.setAttribute("name", "menu");
		par.setAttribute("value", "false");
		obj.appendChild(par);
		if (fVars)
		{
			par = document.createElement("param");
			par.setAttribute("name", "FlashVars");
			par.setAttribute("value", fVars);
			obj.appendChild(par);
		}
		if (altImg)
		{
			par = document.createElement("img");
			par.setAttribute("src", altImg);
			par.setAttribute("alt", idName);
			par.setAttribute("title", "");
			obj.appendChild(par);
		}
		obj_setFlash.appendChild(obj);
	}
	else if (document.all && !window.opera)
	{
			obj_setFlash.insertAdjacentHTML('beforeEnd',objTag+paramTag);
	}
	else
	{
		obj_setFlash.write(objTag+paramTag2);
	}
}
