function swf(id, iWith, iHeight, strFileUrl, bId, fmode ,bgcolor) {
	var NaviType = navigator.appName;
	if (NaviType == "Netscape"){	
		document.write("<embed src=\""+strFileUrl+"?"+fmode+"\" quality=\"high\" wmode=\"transparent\" width=\""+iWith+"\" height=\""+iHeight+"\" name=\""+bId+"\" id=\""+id+"Emb\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	}else{
		var str = "";		
		str += "<object  classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\""+iWith+"\" height=\""+iHeight+"\" id=\""+id+"Obj\" name=\""+bId+"\">";
		if (fmode != ""){str += "<param name=\"flashvars\" value=\""+fmode+"\">";}
		str += "<param name=\"wmode\" value=\"transparent\">";
		str += "<param name=\"allowScriptAccess\" value=\"sameDomain\">";
		str += "<param name=\"movie\" value=\""+strFileUrl+"\">";
		str += "<param name=\"quality\" value=\"high\">";
		str += "<param name=\"bgcolor\" value=\""+bgcolor+"\">";
		str += "<embed src=\""+strFileUrl+"?"+fmode+"\" quality=\"high\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+iWith+"\" height=\""+iHeight+"\" id=\""+id+"Emb\"></embed>";
		str += "</object>";
		document.write(str);
	}
}


function activxFlashWmod(id, iWith, iHeight, strFileUrl, bId,fmode,bgcolor) {
	var NaviType = navigator.appName;
	if (NaviType == "Netscape"){	
		document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\""+iWith+"\" height=\""+iHeight+"\" align=\"middle\">");
		document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
		document.write("<param name=\"wmode\" value=\"transparent\">");
		document.write("<param name=\"movie\" value=\""+strFileUrl+"?"+fmode+"\" id=\""+bId+"\"/>");
		document.write("<param name=\"quality\" value=\"high\" />");
		document.write("<embed src=\""+strFileUrl+"?"+fmode+"\"  width=\""+iWith+"\" height=\""+iHeight+"\" name=\""+bId+"\" id=\""+id+"\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" wmode=\"transparent\" ></embed>");
		document.write("</object>");
	}else{
		var str = "";	
		
		str += "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\""+iWith+"\" height=\""+iHeight+"\" id=\""+id+"\" name=\""+bId+"\">";
		if (fmode != ""){
		str += "<param name=\"flashvars\" value=\""+fmode+"\">";
		}
		str += "<param name=\"wmode\" value=\"transparent\">";
		str += "<param name=\"allowScriptAccess\" value=\"sameDomain\">";
		str += "<param name=\"movie\" value=\""+strFileUrl+"\">";
		str += "<param name=\"quality\" value=\"high\">";
		str += "<embed src=\""+strFileUrl+"?"+fmode+"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+iWith+"\" height=\""+iHeight+"\" id=\""+id+"\" wmode=\"transparent\"></embed>";
		str += "</object>";
		document.write(str);
	}
}

function activxFlashWmodOpaque(id, iWith, iHeight, strFileUrl, bId,fmode,bgcolor, salign) {
	//alert(NaviType);
	var NaviType = navigator.appName;
	//alert(NaviType);
	if (NaviType == "Netscape"){	
		document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\""+iWith+"\" height=\""+iHeight+"\" align=\"middle\">");
		document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
		document.write("<param name=\"salign\" value=\""+salign+"\" />");
		document.write("<param name=\"movie\" value=\""+strFileUrl+"?"+fmode+"\" id=\""+id+"\"/>");
		document.write("<param name=\"quality\" value=\"high\" />");
		document.write("<embed src=\""+strFileUrl+"?"+fmode+"\" width=\""+iWith+"\" height=\""+iHeight+"\" name=\""+bId+"\" id=\""+id+"\" align=\"middle\" salign=\""+salign+"\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" wmode=\"opaque\" ></embed>");
		document.write("</object>");
	}else{
		var str = "";	
		
		str += "<object wmod='opaque' classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\""+iWith+"\" height=\""+iHeight+"\" id=\""+id+"\" name=\""+bId+"\" salign=\""+salign+"\">";
		if (fmode != ""){
		str += "<param name=\"flashvars\" value=\""+fmode+"\">";
		}
		if (id != "loveChatApp"){
			str += "<param name=\"wmode\" value=\"opaque\">";
		}
		if(salign) { str += "<param name=\"salign\" value=\""+salign+"\" />"; }
		str += "<param name=\"allowScriptAccess\" value=\"sameDomain\">";
		str += "<param name=\"movie\" value=\""+strFileUrl+"\">";
		str += "<param name=\"quality\" value=\"high\">";
		str += "<embed src=\""+strFileUrl+"?"+fmode+"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+iWith+"\" height=\""+iHeight+"\" id=\""+id+"\" wmode=\"opaque\" salign=\""+salign+"\"></embed>";
		str += "</object>";
		document.write(str);
	}
}

function activxFlashWmodOpaqueEmb(id, iWith, iHeight, strFileUrl, bId,fmode,bgcolor) {
	var flash_tag = "";

	flash_tag +='<embed id="'+id+'" name="'+bId+'" src="'+strFileUrl+'?'+fmode+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	flash_tag +='type="application/x-shockwave-flash"  WIDTH="'+iWith+'" HEIGHT="'+iHeight+'"></embed>'

	document.write(flash_tag);
}


