var CongFlash = {
	classId : "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
	codebase : "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0",
	params : new Array(),
    setFlash : function(movieSrc, id, width, height, wmode, menuFlag) {
		try {
			var sb = new StringBuffer();

			sb.append("<object ");
			if (!id) {
				sb.append("id='");
				sb.append(id + "' ");
			}
			sb.append(" width=");
			sb.append(width);
			sb.append(" height=");
			sb.append(height);
			sb.append(" classid= '");
			sb.append(this.classId);
			sb.append("' codebase='");
			sb.append(this.codebase);
			sb.append("'>");

			sb.append("<param name='movie' value='" + movieSrc + "'>");
			if ((wmode != null) && (wmode.length != 0))
				sb.append("<param name='wmode' value='" + wmode + "'>");
				
			if (!menuFlag)
				sb.append("<param name='menu' value=" + menuFlag + ">");
			
			sb.append("<param name='quality' value='high'>");
	
			sb.append("<embed src='" + movieSrc + "' quality='high' width="+width+" height="+height+"></embed>");
			sb.append("</object>");

			document.writeln(sb.toString());
		} catch(err) {
			alert("setFlash : " + err.message);
		}
		document.close();
	}
};

function StringBuffer() {
	this.buff = '';
	
	this.append = function(str) {
		this.buff = this.buff + str;
	}
	
	this.toString = function() {
		return this.buff;
	}
};
