function swfObject() {
	this.loc = "";
	this.width = "";
	this.height = "";
	this.bg = "#ffffff";
	this.alt = "";
	this.protocol = "https";
	this.playerVersion = "";

	this.setObjectLocation = setObjectLocation;
	this.setObjectWidth = setObjectWidth;
	this.setObjectHeight = setObjectHeight;
	this.setObjectBgcolor = setObjectBgcolor;
	this.setAltObject = setAltObject;
	this.setElements = setElements;
	this.setAltElements = setAltElements;
	this.setPlayerVersion = setPlayerVersion;

	function setObjectLocation() {
		if (!!arguments[0]) this.loc = arguments[0];
	}

	function setObjectWidth() {
		if (!!arguments[0]) this.width = arguments[0];
	}

	function setObjectHeight() {
		if (!!arguments[0]) this.height = arguments[0];
	}

	function setObjectBgcolor() {
		if (!!arguments[0]) this.bg = arguments[0];
	}

	function setAltObject() {
		if (!!arguments[0]) this.alt = arguments[0];
	}

	function setProtocol() {
		this.protocol = ( arguments[0].indexOf(0,"https") != -1 )? "https" : "http" ;
	}

	function setPlayerVersion() {
		if (!!arguments[0]) this.playerVersion = arguments[0];
	}

	function setElements() {
		if (!!this.loc && !!this.width && !!this.height) {
			if (document.getElementById || document.layers || (navigator.userAgent.indexOf("Win") != -1) ) {
				document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+ this.protocol +'://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+ this.playerVersion + ',0,0,0" width="'+ this.width +'" height="'+ this.height +'">');
				document.write('<param name="movie" value="'+ this.loc +'" /><param name="base" value="." /><param name="quality" value="high" /><param name="play" value="true" /><param name="menu" value="false" />');
			}
			document.write('<embed base="." src="'+ this.loc +'" quality="high" devicefont="true" bgcolor="'+ this.bg +'"  width="'+ this.width +'" height="'+ this.height +'" type="application/x-shockwave-flash" pluginspage="'+ this.protocol +'://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>');
			if (document.getElementById || document.layers || (navigator.userAgent.indexOf("Win") != -1) ) {
				document.write('</object>');
			}
		}
	}

	function setAltElements() {
		if (!!this.alt) document.write(this.alt);
	}

}
