function getmusic(spath){
	var width=0;
	var height=0;
    var s;
    
    s="<OBJECT id='winMediaPlayerID' codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 ";
	s+="type=application/x-oleobject height=" + height + " ";
	s+="standby=\"Loading Microsoft Windows Media Player components...\" "; 
	s+="width=" + width + " classid=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6  name='winMediaPlayerID'>";
	s+="<PARAM NAME=\"URL\" VALUE=\""+spath+"\"> ";
	s+="<PARAM NAME=\"rate\" VALUE=\"1\">";
	s+="<PARAM NAME=\"balance\" VALUE=\"0\">";
	s+="<PARAM NAME=\"currentPosition\" VALUE=\"0\">";
	s+="<PARAM NAME=\"defaultFrame\" VALUE=\"0\">";
	s+="<PARAM NAME=\"playCount\" VALUE=\"999\">";
	s+="<PARAM NAME=\"CursorType\" VALUE=\"-1\">";
	s+="<PARAM NAME=\"autoStart\" VALUE=\"1\">";
	s+="<PARAM NAME=\"autoplay\" VALUE=\"1\">";
	s+="<PARAM NAME=\"currentMarker\" VALUE=\"0\">";
	s+="<PARAM NAME=\"invokeURLs\" VALUE=\"-1\">";
	s+="<PARAM NAME=\"volume\" VALUE=\"100\">";
	s+="<PARAM NAME=\"mute\" VALUE=\"0\">";
	s+="<PARAM NAME=\"stretchToFit\" VALUE=\"-1\">";
	s+="<PARAM NAME=\"windowlessVideo\" VALUE=\"0\">";
	s+="<PARAM NAME=\"enabled\" VALUE=\"1\">";
	s+="<PARAM NAME=\"fullScreen\" VALUE=\"0\">";
	s+="<PARAM NAME=\"enableContextMenu\" VALUE=\"1\">";
	s+="<PARAM NAME=\"enableErrorDialogs\" VALUE=\"0\"> \n";
        
    s+="<Embed id='winMediaPlayerIDE' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/windows/windowsmedia/download/' filename='"+spath+"' src='"+spath+"' Name='winMediaPlayerIDE' "; 
	s+="width='" + width + "' ";
	s+="height='" + height + "' ";
	s+="AutoSize='1' ";
	s+="AutoStart='1' AutoPlay='1' ClickToPlay='1' DisplaySize='1' ";
	s+="EnableContextMenu='0' EnableFullScreenControls='1' EnableTracker='1' Mute='0' ";
	s+="PlayCount='999' ShowControls='1' "; 
	s+="ShowAudioControls='1' ShowDisplay='0' ShowGotoBar='0' ";
	s+="ShowPositionControls='1' ShowStatusBar='1' ShowTracker='1'> </embed> ";
    s+="</OBJECT>";	
	document.getElementById("idMediaPlayer").innerHTML=s;
   /// document.write(s);
}
function music()
{
	var picSta= document.getElementById("son").src;
	  
	if(picSta.indexOf("on")==-1){
		document.getElementById("son").src = "images/on.gif";
		getmusic('');
	 }else{
		 document.getElementById("son").src = "images/off.gif";
		 getmusic(spath);
	 }
 
}

 getmusic(spath);