/**
* FlashMovie Class
* @author Scott Jeppesen
* @version 1.0
*
* Javascript class to write out FlashTags
*/
function FlashMovie(){
	this.src       = "";         // [String] path to the swf file
	this.width     = 10;        // [int] movie width
	this.height    = 20;        // [int] movie height
	this.version   = "6,0,0,0";  // [String] exact flash player version
	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"
}

/**
* @method write
*/
FlashMovie.prototype.write = function(){
	document.write( '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + this.version + '" WIDTH="' + this.width + '" HEIGHT="' + this.height + '" id="' + this.name + '" ALIGN="' + this.align + '">' );
	document.write( '<PARAM NAME=movie VALUE="' + this.src + '">' );
	document.write( '<PARAM NAME=quality VALUE=' + this.quality + '>' );
	document.write( '<PARAM NAME=bgcolor VALUE=' + this.bgColor + '>' );
	document.write( '<PARAM NAME=FlashVars VALUE="' + this.flashVars + '">' );
	document.write( '<PARAM NAME=menu VALUE="' + this.menu + '">' );
	document.write( '<PARAM NAME=wmode VALUE="' + this.wmode + '">' );
	document.write( '<PARAM NAME=salign VALUE="' + this.salign + '">' );
	document.write( '<PARAM NAME=scale VALUE="' + this.scale + '">' );
	document.write( '<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"></EMBED>' );
	document.write( '</OBJECT>' );
	//alert( '<EMBED src="' + this.src + '" FlashVars="' + this.flashVars + '" quality=' + this.quality + ' bgcolor=' + this.bgColor + '  WIDTH="' + this.width + '" HEIGHT="' + this.height + '" NAME="' + this.name + '" ALIGN="' + this.align + '" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>' );
}