function FlashObject(pSrc, pName, pWidth, pHeight, blnTransparent, blnOptionalScale) {
  this.source = pSrc;
  this.name = pName;
  this.width = pWidth;
  this.height= pHeight;
  this.isTransparent = blnTransparent;
  if (!blnOptionalScale)
  	this.scale = "noborder";
  else
  	this.scale = blnOptionalScale;
}

FlashObject.prototype.draw = function() {
	//document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"  WIDTH="'+this.width+'" HEIGHT="'+this.height+'">');
	//document.write('  <PARAM NAME="movie" VALUE="'+this.source+'">');
	//document.write('  <PARAM NAME="quality" VALUE="high">');
	
	var transparentAttr = "";
	if (this.isTransparent) {
		//document.write('<PARAM NAME="wmode" VALUE="transparent">');
		transparentAttr = ' WMODE="transparent" ';
	}
	document.write('  <EMBED id="'+this.name+'" name="'+this.name+'" SRC="'+this.source+'" '+ transparentAttr + ' QUALITY="high" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" TYPE="application/x-shockwave-flash" WIDTH="'+this.width+'" SCALE="'+this.scale+'" HEIGHT="'+this.height+'"></EMBED>');
	//document.write('</OBJECT>');
}