function swf(src, w, h, vars, bg, mode, cssclass, id)
{
	var html;
	
	html = '';
	
	html += '<OBJECT class='+ cssclass +' codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 \n';
	html +='height='+ h +' width='+ w +' align=middle \n';
	html +='classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000> \n';
	html +='<PARAM NAME="_cx" VALUE="18627"> \n';
	html +='<PARAM NAME="_cy" VALUE="1640"> \n';
	html +='<PARAM NAME="FlashVars" VALUE="' + vars + '"> \n'
	
	html +='<PARAM NAME="Movie" VALUE="' + src +  '"> \n';
	html +='<PARAM NAME="Src" VALUE="' + src +  '"> \n';
	
	html +='<PARAM NAME="WMode" VALUE="'+ mode +'"> \n';
	html +='<PARAM NAME="Play" VALUE="-1"> \n';
	html +='<PARAM NAME="Loop" VALUE="-1"> \n';
	html +='<PARAM NAME="Quality" VALUE="High"> \n';
	html +='<PARAM NAME="SAlign" VALUE=""> \n';
	html +='<PARAM NAME="Menu" VALUE="-1"> \n';
	html +='<PARAM NAME="Base" VALUE=""> \n';
	html +='<PARAM NAME="AllowScriptAccess" VALUE="sameDomain"> \n';
	html +='<PARAM NAME="Scale" VALUE="ShowAll"> \n';
	html +='<PARAM NAME="DeviceFont" VALUE="0"> \n';
	html +='<PARAM NAME="EmbedMovie" VALUE="0"> \n';
	html +='<PARAM NAME="BGColor" VALUE="'+ bg +'"> \n';
	html +='<PARAM NAME="SWRemote" VALUE=""> \n';
	html +='<PARAM NAME="MovieData" VALUE=""> \n';
	html +='<PARAM NAME="SeamlessTabbing" VALUE="false"> \n';
	
	html +=' <embed \n';
	html +=' src="' + src  + '"\n';
	html +=' FlashVars="' + vars + '"  \n';
	html +=' quality="high" bgcolor="#'+ bg +'" width="'+ w +'" height="'+ h +'" \n';
	html +=' name="'+ id +'" align="middle" allowScriptAccess="sameDomain" SeamlessTabbing="false" \n';
	html +=' wmode="'+ mode +'" type="application/x-shockwave-flash" \n';
	html +=' pluginspage="http://www.macromedia.com/go/getflashplayer" /> \n';
	html +='</OBJECT> \n';
	
	a = new String();
	a = " " + id;
	a = a.replace(" ", "");
	
	if (a.length > 3) {
		document.getElementById(a).innerHTML = html;
	} else {
		document.write(html);	
	}
}
