function CBrowser(){this.rel="";this.y=0;this.ie4=(document.all)?true:false;this.ns4=(document.layers)?true:false;this.ns6=((document.getElementById)&&!this.ie4)?true:false;this.ie5=(this.ie4&&((navigator.userAgent.indexOf('MSIE 5')>0)||(navigator.userAgent.indexOf('MSIE 6')>0)))?true:false;this.mac=(navigator.userAgent.indexOf('Mac')>0)?true:false;this.ffx=(navigator.userAgent.indexOf('Firefox')>0)?true:false;return this}
CBrowser.prototype.init=function(rel,cur,langs){this.rel=rel;this.langs=langs?langs:'';if(this.ie4||this.ns4||this.ns6)document.onmousemove=mouseMove;if(cur)m.init(cur);if(this.ns4)document.captureEvents(Event.MOUSEMOVE);if(typeof c!='undefined'){if(txt=document.location.search){with(c){v['sr']=v['sf']=v['cr']=v['nr']=''}a=unescape(txt).substring(1).split("&");for(i=0;i<a.length;i++){aa=a[i].indexOf('=');eval("c.v['"+a[i].substring(0,aa)+"']=c.filter('"+a[i].substring(aa+1)+"')")}}c.init(cur)}}
CBrowser.prototype.w=function(txt){document.write(txt);}

function Pane(pName){this.name=pName;this.x=0;this.y=-1000;this.z=10;this.ww=0;this.hh=0;this.lay=null;return this}
Pane.prototype.init=function(){eval("this.lay=((b.ns4)?document."+this.name+":((b.ie4)?"+this.name+".style:((b.ns6)?document.getElementById('"+this.name+"'):null)));")}
Pane.prototype.w=function(txt){
  txt+="\n";
  if(b.ns4){
    eval("this.lay=document."+this.name+".document");
    this.lay.write(txt);
    this.lay.close()}
  if(b.ie4)document.all[this.name].innerHTML=txt;
  if(b.ns6){
    range=document.createRange();
    this.init();
    range.setStartBefore(this.lay);
    domfrag=range.createContextualFragment(txt);
    while(this.lay.hasChildNodes())
      this.lay.removeChild(this.lay.lastChild);
    this.lay.appendChild(domfrag)};
  this.init();
  eval("var nDiv=(b.ie4)?document.all['"+this.name+"']:this.lay");
  this.hh=(b.ns4)?nDiv.clip.height:nDiv.offsetHeight;
  return true}
Pane.prototype.s=function(){
  if(b.ns4)this.lay.visibility="show";
  if(b.ie4)this.lay.visibility="visible";
  if(b.ns6)this.lay.style.visibility="visible";
  return true
  }
Pane.prototype.h=function(){if(this.lay==null)this.init();if(b.ns4)this.lay.visibility="hide";if(b.ie4)this.lay.visibility="hidden";if(b.ns6)this.lay.style.visibility="hidden";return true}
Pane.prototype.a=function(xs,ys,zs){this.x=xs;this.y=ys;if(typeof zs=='undefined'){var zs=this.z}else{this.z=zs}this.init();if(b.ns4||b.ie4){this.lay.left=xs;this.lay.top=ys;this.lay.zIndex=zs}else if(b.ns6){this.lay.style.left=xs+"px";this.lay.style.top=ys+"px";this.lay.style.zIndex=zs};return true}

function SoundPlayer(){this.p=new Pane("xplayer");return this}
SoundPlayer.prototype.play=function(url){
//alert(url);
  //  try{showProgress();}catch(err){}
 	try
 	{
 		//alert(+url);
 		//document.getElementById('player').src='player.swf?'+url;
 		//document.getElementById('player1').value='player.swf?'+url;
 		document.getElementById('playerID').innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="40" height="15" id="player" align="middle"  onload="try{hideProgress();}catch(err){}" >			<param name="allowScriptAccess" value="sameDomain" />	<param name="movie" value="/sounds/soundPlayer.swf?playURL='+url+'&aj='+(Math.random()*110)+'" />	<param name="quality" value="high" /> <param name="bgcolor" value="#ffffce" /> <embed  onload="try{hideProgress();}catch(err){}"   src="/sounds/soundPlayer.swf?playURL='+url+'" quality="high" bgcolor="#ffffce" width="60" height="35" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>';
 	}catch(err)
 	{
 
        addPlayer();
        document.getElementById('playerID').innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="40" height="15" id="player" align="middle" onload="try{hideProgress();}catch(err){}" >			<param name="allowScriptAccess" value="sameDomain" />	<param name="movie" value="/sounds/soundPlayer.swf?playURL='+url+'" />	<param name="quality" value="high" /> <param name="bgcolor" value="#ffffce" /> <embed  onload="try{hideProgress();}catch(err){}"  src="/sounds/soundPlayer.swf?playURL='+url+'" quality="high" bgcolor="#ffffce" width="60" height="35" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>';
 	
 	}
    
 }
    /*function(pathName){
  this.p.init();
  if(typeof c!='undefined'){
    this.p.w("<embed src=\""+pathName+"\" height=\"0\" width=\"0\" cache=\"false\" autoplay=\"true\" >");
    if(c.use=='cc'){
      this.p.a(161,b.y,100)}
    else{this.p.a(90,b.y+16,100)}}
  else{
    this.p.w("<embed src=\""+pathName+"\" height=\"0\" width=\"0\" cache=\"false\" autoplay=\"true\" >");
    this.p.a(600,b.y,10)};
  this.p.s()}//n.hh+141+c.tll */
var s=new SoundPlayer();
var b=new CBrowser();
var plyr = document.createElement("div");
plyr.id="playerID";
with(plyr.style){
top="0px";
right="0px";
position="fixed";
zIndex="100";
backgroundColor="transparent";
border="0px";
padding="0px";
maxHeight="20px";
maxWidth="325px";
opacity="0.4";
filter="alpha(opacity=40)";
}
function addPlayer(){
try{
document.body.appendChild(plyr);
}catch(err){alert("Sorry can not add sound player");}
}
document.body.onload="addPlayer()";
