function SoundPlayer()
{
	this.nver=navigator.appVersion;
	this.ver=navigator.appVersion;
	this.agent=navigator.userAgent;
	this.dom=document.getElementById?1:0;
	this.opera=window.opera?1:0;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1&&this.dom&&!this.opera)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1&&this.dom&&!this.opera)?1:0;
	this.ie4=(document.all&&!this.dom&&!this.opera)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6;
	this.mac=this.agent.indexOf("Mac")>-1;
	this.ns6=(this.dom&&parseInt(this.ver)>=5)?1:0;
	this.ie3=(this.ver.indexOf("MSIE")&&(navigator.appVersion<4));
	this.hotjava=(this.agent.toLowerCase().indexOf('hotjava')!=-1)?1:0;
	this.ns4=(document.layers&&!this.dom&&!this.hotjava)?1:0;
	this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera);
	this.ver3=(this.hotjava||this.ie3);
	this.opera7=((this.agent.toLowerCase().indexOf('opera 7')>-1) || (this.agent.toLowerCase().indexOf('opera/7')>-1));
	this.operaOld=this.opera&&!this.opera7;
	
	function fn_playFile(sUrl) 
	{
	  if (this.ie) 
		document.all['BGSOUND_ID'].src=sUrl;
	}

	function fn_stopFile() 
	{
	  if (this.ie) 
		document.all['BGSOUND_ID'].src='jsilence.mid';
	}
	
	function fn_writeControl()
	{
		if (this.ie)
			document.write('<BGSOUND id="BGSOUND_ID" LOOP=1 SRC="jsilence.mid">');
	}
	
	this.PlayFile=fn_playFile;
	this.StopFile=fn_stopFile;
	this.EmbedControl=fn_writeControl;
	
	
	
}