<!--   //added by Freewind  -->
function DownMedia()
{
  try
  {
    var DownObj=new ActiveXObject("NUSPORTS.NuSportsCtrl.2");
    //location.href=url;
  }
  catch(e)
  {
    //if (confirm("本资源需要安装NBA-NuLive Player才能下载，您是否需要下载安装？")) {
      location.href="http://www.nusports.cn/down.html";
    //}
    return false;
  }
  return true;
  //return false;
}

function change_p2p_address(nu_addr){
  alert("亲爱的新传宽频体育用户：切换服务器需要花费几秒钟。");
  document.NSPlay.URL = nu_addr;
}

function change_file(_url){
  if (NSPlay.FileName != undefined && NSPlay.FileName != null) {
    NSPlay.FileName = _url;
  }
  else {
    NSPlay.URL = _url;
  }
}

function change_file1(url)
{
  NSPlay.FileName=url;
  NSPlay.ClickToPlay=0;
  NSPlay.AutoStart=-1;
}

function open_live_chat_room(room_no){
  var _url = 'http://live.nubb.com/nu_live.php?room_no=' + room_no;  
  var _width = screen.availWidth - 10;
  var _height = screen.availHeight - 50;
  var _parameters = 'top=0,left=0,toolbar=0,status=0,location=0,menubar=0,scrollbars=1,resizable=0,width=' + _width + ',height=' + _height;
  window.open(_url, '', _parameters);
}

function ignoreError() {
   document.NSPlay.controls.play();
   document.NSPlay.fullScreen=-1;
   return true;
}

function full(){
  window.onerror =ignoreError;
  document.NSPlay.fullScreen=-1;
  NSPlay.fullScreen=-1;
}

function stops(){
  NSPlay.controls.stop();
}

function bb_cap(id){
  var btn = new Array();
  btn[0] = document.getElementById("bb_btn1");
  btn[1] = document.getElementById("bb_btn2");
  btn[2] = document.getElementById("bb_btn3");
  btn[3] = document.getElementById("bb_btn4");
  btn[4] = document.getElementById("bb_btn5");
  btn[5] = document.getElementById("bb_btn6");
  btn[6] = document.getElementById("bb_btn7");
  
  for (var i = 0; i < 7; i++) {
     btn[i].bgcolor="#0062AD";
  }
  
  var bb_list = new Array();
  bb_list[0] = document.getElementById("bb_list1"); 
  bb_list[1] = document.getElementById("bb_list2"); 
  bb_list[2] = document.getElementById("bb_list3"); 
  bb_list[3] = document.getElementById("bb_list4"); 
  bb_list[4] = document.getElementById("bb_list5");     
  bb_list[5] = document.getElementById("bb_list6"); 
  bb_list[6] = document.getElementById("bb_list7"); 

  for (var i = 0; i < 7; i++) {
     bb_list[i].style.display = "none";
  }
  bb_list[id-1].style.display = "";
  
  var bb_str = new Array();
  bb_str[0] = document.getElementById("bb_str1");
  bb_str[1] = document.getElementById("bb_str2");
  bb_str[2] = document.getElementById("bb_str3");
  bb_str[3] = document.getElementById("bb_str4");
  bb_str[4] = document.getElementById("bb_str5");
  bb_str[5] = document.getElementById("bb_str6");
  bb_str[6] = document.getElementById("bb_str7");
  
  for (var i = 0; i < 7; i++) {
     bb_str[i].style.color = "#FFFFFF";
  }
  bb_str[id-1].style.color = "#FFDE00";
}
function zhongchao(id){
	if (id==1){
		document.getElementById("a1").background="http://zhuanti.nubb.com/images/zhongchao_01_03.gif";
		document.getElementById("a2").background="http://zhuanti.nubb.com/images/zhongchao_01_04.gif";
		document.getElementById("a3").background="http://zhuanti.nubb.com/images/zhongchao_01_04.gif";
		document.getElementById("d01").style.display="";
		document.getElementById("d02").style.display="none";
		document.getElementById("d03").style.display="none";
		f01.style.color="#000000";
		f02.style.color="#666666";
		f03.style.color="#666666";
	}
	if (id==2){
		document.getElementById("a1").background="http://zhuanti.nubb.com/images/zhongchao_01_04.gif";
		document.getElementById("a2").background="http://zhuanti.nubb.com/images/zhongchao_01_03.gif";
		document.getElementById("a3").background="http://zhuanti.nubb.com/images/zhongchao_01_04.gif";
		document.getElementById("d01").style.display="none";
		document.getElementById("d02").style.display="";
		document.getElementById("d03").style.display="none";
		f01.style.color="#666666";
		f02.style.color="#000000";
		f03.style.color="#666666";
	}
	if (id==3){
		document.getElementById("a1").background="http://zhuanti.nubb.com/images/zhongchao_01_04.gif";
		document.getElementById("a2").background="http://zhuanti.nubb.com/images/zhongchao_01_04.gif";
		document.getElementById("a3").background="http://zhuanti.nubb.com/images/zhongchao_01_03.gif";
		document.getElementById("d01").style.display="none";
		document.getElementById("d02").style.display="none";
		document.getElementById("d03").style.display="";
		f01.style.color="#666666";
		f02.style.color="#666666";
		f03.style.color="#000000";
	}	
}
<!--  //added by Freewind end  -->
