function makeFlash(strID, strUrl, intWidth, intHeight, strWmode, strBGcolor, strFlashVars) {
	var strFlashID = (strID == "") ? "objFlash" : strID;
	var arrList = [];
	arrList.push("<object id='" + strFlashID + "' name='" + strFlashID + "' width='" + intWidth + "' height='" + intHeight + "'	");
	arrList.push("		type='application/x-shockwave-flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'		");
	arrList.push("		codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'>	");
	arrList.push("	<param name='movie'				value='" + strUrl + "'/>											");
	arrList.push("	<param name='wmode'				value='" + strWmode + "' />											");
	arrList.push("	<param name='bgcolor'			value='" + strBGcolor + "' />										");
	arrList.push("	<param name='FlashVars'			value='" + strFlashVars + "' />										");
	arrList.push("	<param name='quality'			value='high' />														");
	arrList.push("	<param name='allowScriptAccess'	value='always' />													");
	arrList.push("	<param name='allowFullScreen'	value='false' />													");
	arrList.push("	<embed id='" + strFlashID + "' name='" + strFlashID + "'											");
	arrList.push("		src='" + strUrl + "' wmode='" + strWmode + "' bgcolor='" + strBGcolor + "' quality='high'		");
	arrList.push("		FlashVars='" + strFlashVars + "' width='" + intWidth + "' height='" + intHeight + "'			");
	arrList.push("		allowScriptAccess='always' allowFullScreen='false' type='application/x-shockwave-flash'			");
	arrList.push("		pluginspage='http://www.macromedia.com/go/getflashplayer'/>										");
	arrList.push("</object>																								");
	return arrList.join("");
}
function writeFlash(strID, strUrl, intWidth, intHeight, strWmode, strBGcolor, strFlashVars) {
	//alert(makeFlash(strID, strUrl, intWidth, intHeight, strWmode, strBGcolor, strFlashVars));
	document.write(makeFlash(strID, strUrl, intWidth, intHeight, strWmode, strBGcolor, strFlashVars));
}	

