/*
	$Id: $
*/

function swfObject() {
	this.loc = "";
	this.width = "";
	this.height = "";
	this.bg = "#000000";
	this.alt = "";
	this.flashvars = "";
	this.playerVersion = "";

	this.setObjectLocation = setObjectLocation;
	this.setObjectWidth = setObjectWidth;
	this.setObjectHeight = setObjectHeight;
	this.setObjectBgcolor = setObjectBgcolor;
	this.setObjectFlashvars = setObjectFlashvars;
	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 setObjectFlashvars() {
		if (!!arguments[0]) this.flashvars = arguments[0];
	}

	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="http://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="flashvars" value="'+ this.flashvars +'" /><param name="quality" value="high" /><param name="play" value="true" /><param name="menu" value="false" />');
			}
			document.write('<embed src="'+ this.loc +'" quality="high" devicefont="true" bgcolor="'+ this.bg +'"  width="'+ this.width +'" height="'+ this.height +'" flashvars="'+ this.flashvars +'" type="application/x-shockwave-flash" pluginspage="http://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);
	}

}