// JavaScript Document
function playerHtml(mms_addr){
        var html = '<object id="MediaPlayer1" width="0" height="0" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" align="baseline" border="0" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">  <param name="FileName" value="'+mms_addr+'" /> <param name="ShowControls" value="1"><param name="ShowPositionControls" value="0"><param name="ShowAudioControls" value="0"><param name="ShowTracker" value="1"><param name="ShowDisplay" value="0"><param name="ShowStatusBar" value="1"><param name="AutoSize" value="0"><param name="ShowGotoBar" value="0"><param name="ShowCaptioning" value="0"><param name="AutoStart" value="1"><param name="PlayCount" value="0"><param name="AnimationAtStart" value="0"><param name="TransparentAtStart" value="0"><param name="AllowScan" value="0"><param name="EnableContextMenu" value="1"><param name="ClickToPlay" value="0"><param name="InvokeURLs" value="1"><param name="DefaultFrame" value="datawindow"><embed align="baseline" border="0" width="0" height="0" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&amp;sbp=mediaplayer&amp;ar=media&amp;sba=plugin&amp;" name="MediaPlayer" showcontrols="0" showpositioncontrols="0" showaudiocontrols="0" showtracker="1" showdisplay="0" showstatusbar="1" autosize="0" showgotobar="0" showcaptioning="0" autostart="1" autorewind="0" animationatstart="0" transparentatstart="0" allowscan="0" enablecontextmenu="-1" clicktoplay="0" invokeurls="1" defaultframe="" uiMode="none" src="'+mms_addr+'"> </object>';
        return html;
    }
function chageState(flag){
	if(flag == 0){//暂停
      document.getElementById("topPalyerBox").innerHTML="";
		document.getElementById("audiopause").style.display = "none";
		document.getElementById("audiostart").style.display = "block";
	}
	if(flag == 1){//播放
        send_str=playerHtml("mms://alive.rbc.cn/am774");
       document.getElementById("topPalyerBox").innerHTML=send_str;
		document.getElementById("audiopause").style.display = "block";
		document.getElementById("audiostart").style.display = "none";
	}
}
document.write('<link rel="stylesheet" type="text/css" href="http://www.am774.com/netfm/interactive/audioAPI/css/audio.css"/>');
document.write('<div style="height:68px;overflow:hidden;">');
document.write('<table border="0" cellspacing="2" cellpadding="0" id="am774_topMPBox" >');
document.write('  <tr>');
document.write('    <td width="101" height="22">&nbsp;</td>');
document.write('    <td width="138" height="22">');
document.write('    <div id="plyBtn">');
document.write('<div id="audiostart" onClick=chageState(1);  style="CURSOR:hand;"></div>');
document.write('<div id="audiopause" onClick=chageState(0); style="display:none;CURSOR: hand;"></div>');
document.write('</div>');
document.write('<div id="tips"><a href="http://am774.rbc.cn/netfm/interactive/live/" target="_blank">Go to Am774</a></div>');
document.write('    </td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td height="22" colspan="2" align="center" valign="top"><iframe id="liveMenu" name="liveMenu" src="http://www.am774.com/netfm/interactive/audioAPI/link" allowTransparency="true" width="92%" height="20"');
document.write('marginwidth="2" marginheight="4" hspace="2" vspace="2" frameborder="0" scrolling="no"></iframe></td>');
document.write('  </tr>');
document.write('</table>');
document.write('<div id="topPalyerBox"></div>');
 send_str=playerHtml("mms://alive.rbc.cn/am774");
 document.getElementById("topPalyerBox").innerHTML="";
 document.write('</div>');