if (navigator.userAgent.indexOf("MSIE ")) {
	document.write('<EMBED src="');
	document.write(tlxSoundEmbedSrc);
	document.write('" type="audio/mpeg"');
	if (tlxSoundHidden) {
		document.write(' hidden="true"');
	}
	document.write(' autostart="true"');	
	if (tlxSoundLoop) {
	    document.write(' loop="true"></EMBED>');
	} else {
	    document.write(' loop="false"></EMBED>');
	}
}
else {
	var classId = "";
	var codeBase = "";
	var mimeType = "";
	document.write('<OBJECT width="145" height="70" ');
	if (tlxSoundEmbedSrc.indexOf("swf") > 0 ) {
		classId = 'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '; 
		codeBase = 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" ';
		mimeType = 'type="application/x-shockwave-flash" ';
	}
	else if (tlxSoundEmbedSrc.indexOf("dcr") > 0 ) {
		classId = 'classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" '; 
		codeBase = 'codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0" ';
		mimeType = 'type="application/x-director" ';
	}
	else if (tlxSoundEmbedSrc.indexOf("mov") > 0 ||
			tlxSoundEmbedSrc.indexOf("qt") > 0 || 
			tlxSoundEmbedSrc.indexOf("mpg") > 0 || 
			tlxSoundEmbedSrc.indexOf("mp3") > 0 || 
			tlxSoundEmbedSrc.indexOf("mp4") > 0 || 
			tlxSoundEmbedSrc.indexOf("mpeg") > 0 ) {
		classId = 'classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" '; 
		codeBase = 'codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0" ';
		mimeType = 'type="audio/quicktime" ';
	}
	else if (tlxSoundEmbedSrc.indexOf("avi") > 0 ||
			tlxSoundEmbedSrc.indexOf("wmv") > 0 || 
			tlxSoundEmbedSrc.indexOf("wm") > 0 || 
			tlxSoundEmbedSrc.indexOf("asf") > 0 || 
			tlxSoundEmbedSrc.indexOf("asx") > 0 || 
			tlxSoundEmbedSrc.indexOf("wmx") > 0 ||
			tlxSoundEmbedSrc.indexOf("wvx") > 0 ) {
		classId = 'classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" '; 
		codeBase = 'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" ';
		mimeType = 'type="application/x-mplayer2" ';
	}
	else if (tlxSoundEmbedSrc.indexOf("rm") > 0 ||
			tlxSoundEmbedSrc.indexOf("ra") > 0 || 
			tlxSoundEmbedSrc.indexOf("ram") > 0 ) {
		classId = 'classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" '; 
		codeBase = 'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" ';
		mimeType = 'type="audio/x-pn-realaudio-plugin" ';
	}
	document.write(classId);
	document.write(codeBase);
	document.write('>');
	document.write('<PARAM name="src" value="');
	document.write(tlxSoundEmbedSrc);
	document.write('" />');
	document.write('<PARAM NAME="autostart" VALUE="true" />');
	if (tlxSoundLoop) {
	  document.write('<PARAM NAME="loop" VALUE="true" />');
	} 
	else {
	  document.write('<PARAM NAME="loop" VALUE="false" />');
	}
	//document.write('<PARAM NAME="width" VALUE="145" />');
	//document.write('<PARAM NAME="height" VALUE="70" />');
	document.write('<EMBED width="145" height="70" src="');
	document.write(tlxSoundEmbedSrc);
	document.write('" ');
	if (tlxSoundHidden) {
		document.write(' hidden="true" ');
	}
	document.write(' autostart="true"');
	if (tlxSoundLoop) {
	    document.write(' loop="true"></EMBED>');
	} else {
	    document.write(' loop="false"></EMBED>');
	}
	document.write('</OBJECT>');
}	