function objFlash(width, height, path, objParams) {
	this.quality = (typeof objParams.quality == 'string') ? objParams.quality : 'best';
	this.flashvars = (typeof objParams.flashvars == 'string') ? objParams.flashvars : '';
	this.wmode = (typeof objParams.wmode == 'string') ? objParams.wmode : 'transparent';
	this.bgcolor = (typeof objParams.bgcolor == 'string') ? objParams.bgcolor : 'transparent';
	this.menu = (typeof objParams.menu == 'string') ? objParams.menu : 'false';
	this.scale = (typeof objParams.scale == 'string') ? objParams.scale : 'exactfit';
	
	this.code = '<object type="application/x-shockwave-flash" data="' + path + '.swf" width="' + width + '" height="' + height + '">\n'
	+ '  <param name="movie" value="' + path + '.swf" />\n'
	+ '  <param name="quality" value="' + this.quality + '" />\n'
	+ '  <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />\n'
	+ '  <param name="flashvars" value="' + this.flashvars + '" />\n'
	+ '  <param name="scale" value="' + this.scale + '" />\n'
	+ '  <param name="menu" value="' + this.menu + '" />\n'
	+ '  <param name="wmode" value="' + this.wmode + '" />\n'
	+ '  <param name="bgcolor" value="' + this.bgcolor + '" />\n'
	+ '</object>\n';
	
	this.goArea = function(id) {
		try {
			document.getElementById(id).innerHTML = this.code;
		}
		catch(e) {}
	};
	
	this.writeIt = function() {
		document.write(this.code);
	};
	
	this.tellParam = function(variable) {
		if(typeof this[variable] != 'undefined') {
			return this[variable];
		}
	};
	
	return this;
}
