/**
* 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     = 550;        // [int] movie width
	this.height    = 400;        // [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
}

/**
* @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( '<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>' );
	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>' );
}