function InsertFlash(url,trans,width,height,bgColor) {
	document.write(GetFlashHtml(url,trans,width,height,bgColor));
};
var Browser={
	Detect:function () {
		var agent=navigator.userAgent.toLowerCase();

		this.IE=agent.indexOf("msie")!=-1;
		this.Gecko=agent.indexOf("gecko")!=-1;
		this.Opera=agent.indexOf("opera")!=-1;
		this.Safari=agent.search(/(konqueror|safari|khtml)/i)>-1;
		this.Other=!this.IE && !this.Gecko && !this.Safari;
	}
}
Browser.Detect();
function GetFlashHtml(url,trans,width,height,bgColor) {
	var html=[];
	html.push('<object '+(Browser.IE ? ' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ' : '')+' type="application/x-shockwave-flash" data="'+url+'" '+(width ? ' width="'+width+'"' : '')+' '+(height ? ' height="'+height+'"' : '')+' '+(trans ? ' wmode="transparent"' : '')+' '+(bgColor ? ' bgColor="'+bgColor+'"' : '')+' menu="false">');
	if (trans) html.push('<param name="wmode" value="transparent" />');
	html.push('<param name="menu" value="false" />');
	if (width) html.push('<param name="width" value="'+width+'" />');
	if (height) html.push('<param name="height" value="'+height+'" />');
	if (bgColor) html.push('<param name="bgColor" value="'+bgColor+'" />');
	html.push('<param name="movie" value="'+url+'" />');
	html.push('<param name="allowScriptAccess" value="sameDomain" /><param name="quality" value="high" />');
	html.push('</object>');
	return html.join("");
};