
function objFlash(Src, Width, Height)
{
	this.src = Src;
	this.width = Width;
	this.height = Height;
	this.quality = "";
	this.bgcolor = "";
	this.wmode = "";
	this.scale = "";
	this.menu = "";
	this.flashvars = "";
	
	this.Loading = LoadingFlash;
	
	function LoadingFlash()
	{
		this.src = this.src.toLowerCase();
		
		if(this.src.indexOf(".swf") < 0)
		{
			this.src = this.src + ".swf";	
		}
		document.write("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'   codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' WIDTH=" + this.width + " HEIGHT=" + this.height+ " id=OBJECT2>");
		document.write("<PARAM NAME=movie VALUE='" + this.src + "'>");
		if(this.quality != "")
			document.write("<PARAM NAME=quality VALUE='" + this.quality + "'>");
		if(this.bgcolor != "")
			document.write("<PARAM NAME=bgcolor VALUE='" + this.bgcolor + "'>");
		if(this.wmode != "")
			document.write("<PARAM NAME='wmode' VALUE='" + this.wmode + "'>");
		if(this.scale != "")
			document.write("<PARAM NAME='scale' VALUE='" + this.scale + "'>");
		if(this.menu != "")
			document.write("<PARAM NAME='menu' VALUE='" + this.menu + "'>");
		if(this.flashvars != "")
			document.write("<PARAM NAME='flashvars' VALUE='" + this.flashvars + "'>");
		document.write("<EMBED src='" + this.src  + "' quality=high bgcolor=#FFFFFF WIDTH=" +  this.width + " HEIGHT=" + this.height + " TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></EMBED> " );
		document.write("</OBJECT> ");
	}
}

