// JavaScript Document
var browserName= navigator.appName;function writeLayer(layerID,txt){ if(document.getElementById){ document.getElementById(layerID).innerHTML=txt; }else if(document.all){ document.all[layerID].innerHTML=txt; }else if(document.layers){ with(document.layers[layerID].document){ open(); write(txt); close(); } } }
	function MPPlay(sPath) {	
		document.getElementById('offline').style.display = 'none';document.getElementById('online').style.display = '';if (browserName=="Microsoft Internet Explorer"){document.getElementById('CT').style.display='';document.getElementById('WMP').controls.stop();document.getElementById('WMP').URL = sPath;document .getElementById('WMP').controls.play();}else{writeLayer('media',"<embed id=\"Player\" autostart=1 type=\"application/x-mplayer2\" src="+sPath+" width=480 height=378 showcontrols=1>");}}
	function MPAction(sAction) {if (sAction=='stop') {CT.style.display='none';document.getElementById('WMP').controls.stop();
		        document.getElementById('BP').innerHTML = " ";online.style.display = 'none';offline.style.display = '';
		    } else if (sAction=='pause') {document.getElementById('WMP').controls.pause();} 
		else {offline.style.display = 'none';online.style.display = '';CT.style.display='';document.getElementById('WMP').controls.play();}
}
<!--Ket thuc ->

