/**
* DirectorMovie Class
* @author Alan Donnelly
* @version 1.0
*
* Javascript class to write out DirectorTags
*/
function DirectorMovie(){
	this.src       = "";         // [String] path to the swf file
	this.width     = 550;        // [int] movie width
	this.height    = 400;        // [int] movie height
	this.version   = "11,0,0,0";  // [String] exact flash player version
	this.bgColor   = "#0046B6";  // [String] movie background color
	this.sw1	   = "";		// param1
	this.sw2	   = "";		// param2
	this.sw3	   = "";		// param3
	this.sw4	   = "";		// param4
}

/**
* @method write
*/
DirectorMovie.prototype.write = function(){
	document.write( '<OBJECT classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=' + this.version + '" WIDTH="' + this.width + '" HEIGHT="' + this.height + '">' );
	document.write( '<PARAM NAME=src VALUE="' + this.src + '">' );
	document.write( '<PARAM NAME=swStretchStyle VALUE=none>' );
	document.write( '<PARAM NAME=bgColor VALUE=' + this.bgColor + '>' );
	document.write( '<PARAM NAME=logo VALUE=false>' );
	document.write( '<PARAM NAME=sw1 VALUE=' + this.sw1 + '>' );
	document.write( '<PARAM NAME=sw2 VALUE=' + this.sw2 + '>' );
	document.write( '<PARAM NAME=sw3 VALUE=' + this.sw3 + '>' );
	document.write( '<PARAM NAME=sw4 VALUE=' + this.sw4 + '>' );
	document.write( '<param name=PlayerVersion value=11>' );
	document.write( '<EMBED src="' + this.src + '" bgcolor=' + this.bgColor + ' logo=false WIDTH="' + this.width + '" HEIGHT="' + this.height + '" sw1=' + this.sw1 + ' sw2=' + this.sw2 + ' sw3=' + this.sw3 + ' sw4=' + this.sw4 + ' swStretchStyle=none TYPE="application/x-director" PlayerVersion=11 PLUGINSPAGE="http://www.macromedia.com/shockwave/download/"></EMBED>' );
	document.write( '</OBJECT>' );
	//alert( '<EMBED src="' + this.src + '" bgcolor=' + this.bgColor + ' logo=false WIDTH="' + this.width + '" HEIGHT="' + this.height + '" sw1=' + this.sw1 + ' sw2=' + this.sw2 + ' sw3=' + this.sw3 + ' sw4=' + this.sw4 + ' swStretchStyle=none TYPE="application/x-director" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/"></EMBED>' );
}