function FlashObject(URL)
{ // This is the contructor (Default Values)
this._URL = URL;
this._Width = 1024;
this._Height = 768;
this._Bgcolor = "#ffffff";
this._Align = "middle";
this._Quality = "high";
this._Classid = "d27cdb6e-ae6d-11cf-96b8-444553540000";
this._ScriptAccess = "sameDomain";
}

FlashObject.prototype.changeURL = function (URL) {this._URL = URL;}
FlashObject.prototype.changeAlign = function (Align) {this._Align = Align;}
FlashObject.prototype.changeWidth = function (Width) {this._Width = parseInt(Width);}
FlashObject.prototype.changeHeight = function (Height) {this._Height = parseInt(Height);}
FlashObject.prototype.changeBgcolor = function (Bgcolor) {this._Bgcolor = Bgcolor;}
FlashObject.prototype.changeClassid = function (Classid) {this._Classid = Classid;}
FlashObject.prototype.changeQuality = function (Quality) {this._Quality = Quality;}
FlashObject.prototype.changeScriptAccess = function (ScriptAccess){this._ScriptAccess = ScriptAccess;}

FlashObject.prototype.show = function ()
{
document.writeln('<object classid="clsid:'+this._Classid+'" '+
'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" '+
'width="'+ this._Width +'" height="'+ this._Height +'" align="'+this._Align+'">');
document.writeln('<param name="allowScriptAccess" value="'+this._ScriptAccess+'" />');
document.writeln('<param name="movie" value="'+this._URL+'" />');
document.writeln('<param name="wmode" value="transparent" />');
document.writeln('<param name="quality" value="'+this._Quality+'" />');
document.writeln('<param name="bgcolor" value="'+this._Bgcolor+'" />');
document.writeln('<embed wmode="transparent" src="'+this._URL+'" quality="'+this._Quality+'" bgcolor="'+this._Bgcolor+'" ' +
'width="'+ this._Width +'" height="'+ this._Height +'" align="'+this._Align+'" '+
'allowScriptAccess="'+this._ScriptAccess+'" type="application/x-shockwave-flash" '+
'pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.writeln('</object>');
}