/**
* @class FlashCode
*/
function FlashCode ( s,w,h )
{	
	this.src       = (s!=null) ? s : "";	// [String] path to the swf file
	this.width     = (w!=null) ? w : 745;	// [int] movie width
	this.height    = (h!=null) ? h : 1050;	// [int] movie height
	this.flashVars = "";			// [String] name value pairs to pass into the movie on load
	this.align     = "";			// [String] movie alignment
	this.name      = "";			// [String] movie name/id
	this.bgColor   = "#FFFFFF";		// [String] movie background color
	this.quality   = "high";		// [String] movie quality
	this.menu   	= "false";		// [String] right-click menu visibility
	this.wmode 		= "window";		// [String] window mode
	this.salign 	= "";			// [String] screen alignment; valid values are "", "lt", "l", "lb", "t", "b", "rt", "r", and "rb"
	this.scale 		= "";			// [String] scale mode; valid values are "", "exactfit", "noborder", and "noscale"
}

/**
* Writes the object/embed tags
*/
FlashCode.prototype.write = function ()
{
	document.write( this.getTags() );
};

FlashCode.prototype.getTags = function ()
{
	var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" ' 
		+ 'width="' + this.width +'" '
		+ 'height="' + this.height + '" '
		+ 'id="' + this.name + '" '
		+ 'align="' + this.align + '" >'
		+ '<param name=movie value="' + this.src + '">'
		+ '<param name=quality value="' + this.quality + '">'
		+ '<param name=bgcolor value="' + this.bgColor + '">'
		+ '<param name=FlashVars value="' + this.flashVars + '">'
		+ '<param name=menu value="' + this.menu + '">'
		+ '<param name=wmode value="' + this.wmode + '">'
		+ '<param name=salign value="' + this.salign + '">'
		+ '<param name=scale value="' + this.scale + '">'
		+ '<embed src="' + this.src + '" '
		+ 'FlashVars="' + this.flashVars + '" '
		+ 'scale="' + this.scale +'" '
		+ 'wmode="' + this.wmode + '" '
		+ 'salign="' + this.salign + '" '
		+ 'quality="' + this.quality +'" '
		+ 'bgcolor="' + this.bgColor + '" '
		+ 'width="' + this.width + '" '
		+ 'height="' + this.height + '" '
		+ 'name="' + this.name + '" '
		+ 'align="' + this.align + '" '
		+ 'menu="' + this.menu + '" '
		+ 'type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
	return oeTags;
};

