
function FlashObject() {
	var swf = "";
	var alt = "";
	var width = "";
	var height = "";
	var align = "";
	var id = "";
	
	this.setSWF = function(obj) {
		swf = obj;
	}
	
	this.setAlt = function(obj) {
		alt = obj;
	}
	
	this.setWidth = function(obj) {
		width = obj;
	}
	
	this.setHeight = function(obj) {
		height = obj;
	} 
	
	this.setAlign = function(obj) {
		align = obj;
	}
	
	this.setId = function(obj) {
		id = obj;
	}	
	
	var ShockMode = 0;
	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
		if (navigator.plugins && navigator.plugins["Shockwave Flash"]) {
			ShockMode = 1;
		}
	}

        this.html = function() {
                html = ('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
		html = html + ('codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
		html = html + ('WIDTH="' + width + '" HEIGHT="' + height + '" id="' + id + '" ALIGN="' + align + '"> ');
		html = html + ('<PARAM NAME="movie" VALUE="' + swf + '"> ');
		html = html + ('<PARAM NAME="quality" VALUE="high"> ');
		html = html + ('<PARAM NAME="bgcolor" VALUE="#FFFFFF"> ');
		html = html + ('<PARAM NAME="wmode" VALUE="transparent"> ');
		
		if ( ShockMode ) {
			html = html + ('<EMBED src="' + swf + '" quality="high" wmode="transparent" bgcolor="#FFFFFF"  WIDTH="' + width + '" HEIGHT="' + height + '" NAME="" ALIGN="' + align + '" TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer"></EMBED> ');
		} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
			html = html + ('<IMG SRC="' + alt + '" WIDTH="' + width + '" HEIGHT="' + height + '" BORDER="0">');
		}
		
		html = html + ('</OBJECT>');
                return html;

        }
        
	this.write = function() {
	        document.write(this.html());

	}
}
