function loadSwf()
{
	this.bgcolor = '#FFFFFF';
	this.ssl = 0;
	this.quality = 'high';
	this.allow = 'sameDomain';
	this.align = 'middle';
	this.version = '9,0,28,0';
	this.flashvars = "";
	this.debug = false;
	this.run = function(src,width,height)
	{
		var classid = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';
		var codebase = (this.ssl)?'https':'http';
		codebase +=  '://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + this.version;
		var type = 'application/x-shockwave-flash';
		var pluginspage = 'http://www.adobe.com/go/getflashplayer';
		var str ='<object classid="' + classid + '" codebase="' + codebase + '" width="' + width + '" height="' + height +'" align="' + this.align + '">';
		str += '<param name="movie" value="' + src + '" />';
		str += '<param name="quality" value="' + this.quality + '" />';
		str += '<param name="bgcolor" value="' + this.bgcolor + '" />';
		str += '<param name="allowScriptAccess"' + this.allow + '" />';
		if(this.flashvars)
		{
			str += '<param name="FlashVars" value="' + this.flashvars + '" />';
		}
		str += '<embed src="' + src + '"';
		if(this.flashvars)
		{
			str += ' FlashVars="' + this.flashvars +'"';
		}
		str += ' quality="' + this.quality + '" bgcolor="' + this.bgcolor + '" width="' + width + '" height="' + height + '" align="' + this.align + '" type="' + type + '" pluginspage="' + pluginspage +'" allowScriptAccess="' + this.allow + '"></embed></object>';
		
		if(this.debug)
		{
			str = str.replace(/</g,'&lt;');
			str = str.replace(/>/g,'&gt;<br />\n');
		}
		document.write(str);
	}
}
