function Flash () {
	this._swf = '';
	this._id = '';
	this._flashvars = '';
	this._width = 0;
	this._height = 0;
	this._params = new Array();
}

Flash.prototype.setId = function(_id) {
	this._id = _id;
}

Flash.prototype.setSWF = function (_swf, _width, _height, _message) {
	this._swf 		= _swf;
	this._width 	= _width;
	this._height 	= _height;
	this._message 	= _message;
}

Flash.prototype.setParam = function (paramName, paramValue) {
	this._params[this._params.length] = paramName+'|||'+paramValue;
}

Flash.prototype.display = function () {
	document.write (this.getDisplay());
}

Flash.prototype.getDisplay = function () {
	var _txt 	= '';
	var _stxt	= '';
	var params = '';
	_stxt0 = (this._id != '') ? ' id="' + this._id + '" ' : '';
	_stxt1 = (this._id != '') ? ' name="' + this._id + '" ' : '';
	_txt += '<object' + _stxt0 + '>\n';
	_txt += '<param width="' + this._width + '" height="' + this._height + '" name="movie" value="' + this._swf + '" />'
	_txt += '<param name="quality" value="high" />';
	for ( i=0;i<this._params.length; i++) {
		_param = this._params[i].split ('|||');
		_txt += '\t<param name="'+_param[0]+'" value="'+_param[1]+'" />';
		params += _param[0]+'="'+_param[1]+'" ';
	}
	_txt += '<embed ' + _stxt1 + ' width="'+this._width+'" height="'+this._height+'" src="'+this._swf+'" '+params+' quality="high" type="application/x-shockwave-flash"></embed>';
	_txt += '</object>';
	return _txt;
}


function helloWorld() {
	document.write('hello world!');
}