function FlashEmbedder(src, width, height, quality)
	{ 
		
		//This is the src of the flash file. Please use quotes
		this.flash_src         = src;
		
		//This is the width of the flash file
		this.flash_width       = width;
		
		//This is the height of the flash file
		this.flash_height      = height;
		
		//This is the quality. Default is high. You can also set to medium or low
		this.flash_quality     = quality;
		
		//This is the value of the class_id attribute in the <object> tag
		this.object_classid    = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
		
		//This is the value of the codbebase attribute in the <object> tag
		this.object_codebase   = "https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0";
		
		//This is the pluginspace for people that do not have flash. They can get download info here.
		this.embed_pluginspace = "https://www.macromedia.com/go/getflashplayer";
		
		//This describes the mime type of the file
		this.embed_type        = "application/x-shockwave-flash";
		
		this.printRegularCode         = printFlashCode;
		
		this.printTransparentCode     = printTrans
	}


function printFlashCode()
	{
		var FlashCode;
		
		FlashCode =  '<object ';
		FlashCode += 'classid="'  + this.object_classid + '"';
		FlashCode += 'codebase="' + this.object_codebase + '"';
		FlashCode += 'width="'    + this.flash_width + '"';
		FlashCode += 'height="'   + this.flash_height + '"';
		FlashCode += '>';
		
		FlashCode += '<param name="movie" ' + 'value="' + this.flash_src + '" />';
		FlashCode += '<param name="quality" ' + 'value="' + this.flash_quality + '" />';
		
		FlashCode += '<embed ';
		FlashCode += 'src="' + this.flash_src + '"';
		FlashCode += 'quality="' + this.flash_quality + '"';
		FlashCode += 'pluginspace="' + this.embed_pluginspace + '"';
		FlashCode += 'type="' + this.embed_type + '"';
		FlashCode += 'width="' + this.flash_width + '"';
		FlashCode += 'height="' + this.flash_height + '" />';
		FlashCode += '</embed>';
		FlashCode += '</object>';
		
		document.write(FlashCode);
	}

function printTrans()
	{
		var FlashCode;
		
		FlashCode =  '<object ';
		FlashCode += 'classid="'  + this.object_classid + '"';
		FlashCode += 'codebase="' + this.object_codebase + '"';
		FlashCode += 'width="'    + this.flash_width + '"';
		FlashCode += 'height="'   + this.flash_height + '"';
		FlashCode += '>';
		
		FlashCode += '< param name="movie" ' + 'value="' + this.flash_src + '" />';
		FlashCode += '< param name="quality" ' + 'value="' + this.flash_quality + '" />';
		FlashCode += '< param name="wmode" ' + 'value="' + 'transparent' + '" />';
		
		FlashCode += '<embed ';
		FlashCode += ' src="' + this.flash_src + '"';
		FlashCode += ' quality="' + this.flash_quality + '"';
		FlashCode += ' pluginspace="' + this.embed_pluginspace + '"';
		FlashCode += ' type="' + this.embed_type + '"';
		FlashCode += ' width="' + this.flash_width + '"';
		FlashCode += ' height="' + this.flash_height + '"';
		FlashCode += ' wmode="' + "transparent" + '" />';
		FlashCode += ' </embed>';
		FlashCode += '</object>';
		
		document.write(FlashCode);
	} 
