var Browser={ie:/msie/.test(window.navigator.userAgent.toLowerCase()),moz:/gecko/.test(window.navigator.userAgent.toLowerCase()),opera:/opera/.test(window.navigator.userAgent.toLowerCase()),safari:/safari/.test(window.navigator.userAgent.toLowerCase())};function createActiveXObject($){var A,_=null;try{if(window.ActiveXObject)_=new ActiveXObject($);else if(window.GeckoActiveXObject)_=new GeckoActiveXObject($)}catch(A){}return _}var myObject,nowType,ieplayer6=createActiveXObject("MediaPlayer.MediaPlayer.1")?true:false,ieplayer7=createActiveXObject("WMPlayer.OCX.7")?true:false;if(!Browser.ie)var nsplayer=(navigator.mimeTypes["application/x-mplayer2"].enabledPlugin)?true:false;function G($){return document.getElementById($)}function insertAfter($,_){var A=_.parentNode;if(A.lastChild==_)A.appendChild($);else A.insertBefore($,_.nextSibling)}function IEmPlay(_,$){if(nowType=="realPlay"){if(G("rpl"))G("rpl").SRC="";if(G("rpl"))G("rpl").removeNode(true);if(G("myObject"))G("myObject").removeNode(true)}if(G("myObject"))myObject=G("myObject");else if(ieplayer6){myObject=document.createElement("object");myObject.id="myObject";myObject.width="95%";myObject.height="49";myObject.classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95";myObject.AudioStream="0";myObject.standby="Loading Microsoft Windows Media Player components...";myObject.autoStart="1";myObject.showpositioncontrols="0";myObject.showcontrols="1";myObject.ShowStatusBar="1";myObject.ShowDisplay="0";myObject.InvokeURLs="-1"}else{myObject=document.createElement("object");myObject.id="myObject";myObject.width="95%";myObject.height="64";myObject.classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6";myObject.standby="Loading Microsoft Windows Media Player components...";myObject.autoStart="1";myObject.DisplayForeColor="16777215";myObject.showpositioncontrols="0";myObject.showcontrols="1";myObject.ShowAudioControls="1";myObject.ShowStatusBar="1";myObject.enabled="1";myObject.windowlessVideo="1";myObject.InvokeURLs="-1";myObject.Visualizations="1";myObject.ShowTracker="1"}insertAfter(myObject,$);if(ieplayer6)window.setTimeout('myObject.Filename = "'+_+'"',100);else window.setTimeout('myObject.url = "'+_+'"',100);nowType="mediaPlay"}function NSmPlay(_,$){if(nowType=="realPlay"){if(G("rpl"))G("rpl").SRC="";if(G("rpl"))G("rpl").removeNode(true);if(G("myObject"))G("myObject").removeNode(true)}if(G("myObject"))myObject=G("myObject");else{myObject=document.createElement("EMBED");myObject.id="myObject";myObject.width="95%";myObject.height="64";myObject.type="application/x-mplayer2";myObject.autostart="1";myObject.quality="high";myObject.showcontrols="1";myObject.showpositioncontrols="-1";myObject.InvokeURLs="-1"}insertAfter(myObject,$);window.setTimeout('myObject.src= "'+_+'"',300);nowType="mediaPlay";window.setTimeout(function(){G("myObject").style.display="block";G("myObject").style.margin="0 auto"},300)}function remove($){G($).parentNode.removeChild(G($))}function realplay(_,$){if(nowType=="mediaPlay"){if(ieplayer6){if(G("myObject"))G("myObject").Filename=""}else if(G("myObject"))G("myObject").src="";G("myObject").parentNode.removeChild(G("myObject"))}if(G("myObject"))myrealpObject=G("myObject");else{myrealpObject=document.createElement("div");myrealpObject.id="myObject";myrealpObject.innerHTML='<object id="rpl" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width=95% height=64><param name="AUTOSTART" value="-1"><param name="src" value="'+_+'"><param name="CONSOLE" value="Clip1"><param name="CENTER" value="0"><param name="BACKGROUNDCOLOR" value="#ffffff"></object>'}insertAfter(myrealpObject,$);G("rpl").SetSource(_);G("rpl").DoPlay();nowType="realPlay";window.setTimeout(function(){G("myObject").style.display="block";G("myObject").style.margin="0 auto"},300)}function noMPlay(){G("noMplay").style.display="block";window.location.href="#"}function noRPlay(){G("noRplay").style.display="block";window.location.href="#"}function stopDefault($){if($&&$.preventDefault)$.preventDefault();else window.event.returnValue=false;return false}function mediaRadio($){var _=$.href;if(tmpObj){tmpObj.parentNode.style.backgroundImage="";tmpObj.parentNode.style.height=""}while($.tagName.toLowerCase()!="table")$=$.parentNode;tmpObj=$;if((Browser.ie)&&(ieplayer6||ieplayer7)){IEmPlay(_,tmpObj);tmpObj.parentNode.style.backgroundImage="url(img/linkBg.gif)";tmpObj.parentNode.style.height="131px"}else if(!Browser.ie&&nsplayer){NSmPlay(_,tmpObj);tmpObj.parentNode.style.backgroundImage="url(img/linkBg.gif)";tmpObj.parentNode.style.height="131px"}else noMPlay()}function realRadio($){var _=$.href;if(tmpObj2){tmpObj2.parentNode.style.backgroundImage="";tmpObj2.parentNode.style.height=""}while($.tagName.toLowerCase()!="table")$=$.parentNode;tmpObj2=$;if(RealMode){realplay(_,$);tmpObj2.parentNode.style.backgroundImage="url(img/linkBg.gif)";tmpObj2.parentNode.style.height="131px"}else noRPlay()}var tmpObj2,tmpObj;function init(){var A=window.location.search;if(A){var B=A.lastIndexOf("?"),$=A.substring(B+1).toLowerCase(),C=G($).getElementsByTagName("a")[1],D=C.href,E=D.lastIndexOf("."),_=D.substring(0,4).toLowerCase();if((_=="mms:")||(D.substring(E).toLowerCase()==".asx"))mediaRadio(C);else if((_=="rtsp")||(D.substring(E).toLowerCase()==".rm")||(_=="rstp"))realRadio(C);if(Browser.ie)window.location.hash="#"+$}regEvent()}function regEvent(){var _=G("con").getElementsByTagName("a");for(i=0;i<_.length;i++){var A=_[i].href,B=A.lastIndexOf("."),$=A.substring(0,4).toLowerCase();if(($=="mms:")||(A.substring(B).toLowerCase()==".asx"))_[i].onclick=function($){stopDefault($);mediaRadio(this)};else if(($=="rtsp")||(A.substring(B).toLowerCase()==".rm")||($=="rstp"))_[i].onclick=function($){stopDefault($);realRadio(this)}}}if(document.all)window.attachEvent("onload",init);else window.addEventListener("load",init,false)