﻿function getCookie(Name){var search=Name+"=";if(document.cookie.length > 0){offset=document.cookie.indexOf(search);if(offset != -1){offset+=search.length;end=document.cookie.indexOf(";", offset);if(end == -1)end=document.cookie.length;return unescape(document.cookie.substring(offset, end));}else  return "";}else return "";}
function setCookie(name, value, expire){var expDate=new Date();if(expire){expDate.setTime(expDate.getTime()+expire);document.cookie = name + "=" + escape(value)+ "; expires=" + expDate.toGMTString();}else{document.cookie = name + "=" + escape(value);}}

function MenuTowLine()
{
	var Me=new Array();
	Me[0]='<table><tr><td class="drmtr"><a class="mtr" target="_blank" href="http://sport.zqzz.com">体育资讯</a></table>';
	Me[1]='<table><tr><td class="drmtr"><a class="mtr" target="_blank" href="http://www.betzc.com/cooperate/zqzz/index.htm">彩票合買</a></table>';
	Me[2]='<table><tr><td class="drmtr"><a class="mtr" target="_blank" href="http://www.ballvod.com/">寬頻直播</a></table>';
	Me[3]='<table><tr><td class="drmtr"><a class="mtr" target="_blank" href="/live.htm">足球比分</a></table>';
	Me[4]='<table><tr><td class="drmtr"><a class="mtr" target="_blank" href="/tennis/index.htm">网球比分</a></table>';
	Me[5]='<table><tr><td class="drmtr"><a class="mtr" target="_blank" href="/basket/live/">籃球比分</a></table>';
	Me[6]='<table><tr><td class="drmtr"><a class="mtr" target="_blank" href="/basket/last/index.htm">篮球赛果</a></table>';
	Me[7]='<table><tr><td class="drmtr"><a class="mtr" target="_blank" href="/basket/last/fixture.htm">篮球賽程</a></table>';
	Me[8]='<table><tr><td class="drmtr"><a class="mtr" target="_blank" href="/basket/nbateam/team.html">NBA球队</a></table>';
	Me[9]='<table><tr><td class="drmtr"><a class="mtr" target="_blank" href="/basket/nbaplayer/A.html">NBA球员</a></table>';

	var Tp="";
	for(var i=0;i<Me.length;i++){Tp+='<td width="65" align=center background="/basket/images/ana.gif">'+Me[i]+'</td>';}
	Tp='<td width="10" background="/images/ana_a.gif">&nbsp;</td>'+Tp+'<td width="10" background="/images/ana_b.gif">&nbsp;</td><td>&nbsp;</td>';
	return Tp;
}

selectAColor(getCookie("selectbgColor"));

function selectAColor(changeToimg)
{
	switch(changeToimg)
	{
		case "0":document.body.background="/basket/images/bg_0.gif";break;
		case "1":document.body.background="/basket/images/bg_1.gif";break;
		case "2":document.body.background="/basket/images/bg_2.gif";break;
		case "3":document.body.background="/basket/images/bg_3.gif";break;
		case "4":document.body.background="/basket/images/bg_4.gif";break;
		case "5":document.body.background="/basket/images/bg_5.gif";break;
		default :document.body.background="/basket/images/bg_0.gif";changeToimg=0;
	}
	window.setTimeout("setCookie(\"selectbgColor\","+Math.round(changeToimg)+","+1000*60*60*24*30+")",500);
}

function AddFavorites(){window.external.addFavorite(location.href,'即时比分[知足网]');}
var ThisUrl=location.href;
if(ThisUrl.indexOf("?") != -1){ThisUrl=ThisUrl.substring(0,ThisUrl.indexOf("?"));}
document.write('<table border="0" width="768" cellspacing="0" cellpadding="0" style="border-collapse:collapse">');
document.write('<tr><td width="299" background="/basket/images/live/logo_nba.gif" rowspan="2" align="center" height="95"><div style="border: 1px solid #A9A9A9;overflow-y:scroll;height:86;width:292;font-size:9pt;line-height:12pt;padding-top:0;padding-bottom:3;background-color:white;display:none;filter:alpha(opacity=90);text-align:left" id="updateText"></div></td>');
document.write('<td width="469" align="center" valign="top" colspan="2">');
document.write('<table border="0" width="100%" cellspacing="0" cellpadding="0" style="border-collapse:collapse">');
document.write('<tr><td width=58" background="/basket/images/live/toptr.gif" align="right" valign="top" style="padding-left:2px">');
document.write('<input type="image" src="/basket/images/live/m_sy.gif" alt="本站首页" onClick="location.href=\'/\'" border="0"></a></td>');
document.write('<td background="/basket/images/live/toptr.gif" align="center" valign="top">');
document.write('<a href="'+ThisUrl+'" target="_self"><img src="/basket/images/live/l_0.gif" alt="繁体版" border=0></a>');
document.write('<a href="'+ThisUrl+'?LANG=1" target="_self"><img src="/basket/images/live/l_1.gif" alt="简体版" border=0></a>');
document.write('<a href="'+ThisUrl+'?LANG=2" target="_self"><img src="/basket/images/live/l_2.gif" alt="English" border=0></a>');
document.write('</td>');
document.write('<td width="58" background="/basket/images/live/toptr.gif" align="right" valign="top" style="padding-right:2px">');
document.write('<input type="image" src="/basket/images/live/m_sc.gif" alt="加入收藏" border="0" onClick="AddFavorites()"></a></td>');
document.write('<td width="8"><img src="/basket/images/live/topend.gif" border="0"></td></tr></table>');
document.write('</td></tr><tr><td height="70" width="468" align="center" bgColor="#FCF6E3"><img src="/basket/images/ad_strip.jpg" border=0 width=468 height=60></td><td width="1" bgColor="#000000"><img height=0 width=1 border=0></td></tr>');
//document.write('</td></tr><tr><td height="70" width="468" align="center" bgColor="#FCF6E3"><a href="http://www.ra6899.com/" target="_blank"><img src="/logolink/480/ra6899.gif" border="0" width="470" height="48"/></a></td><td width="1" bgColor="#000000"><img height=0 width=1 border=0></td></tr>');
//document.write('</td></tr><tr><td height="70" width="468" align="center" bgColor="#FCF6E3"><a href="https://2yun268.net/user_bwyun268/?referral=21" target=_blank><img src="/logolink/480/2yun268_b.gif" border=0 width=450 HEIGHT="50"></a></td><td width="1" bgColor="#000000"><img height=0 width=1 border=0></td></tr>');
document.write('</table>');
document.write('<table border="0" width="768" cellspacing="1" cellpadding="0" style="border-collapse:collapse;border-left-style:solid; border-left-width:1px; border-right-style:solid; border-right-width:1px" borderColor="black" background="/basket/images/live/menutrbg.gif">');
document.write('<tr><td><table border="0" width="100%" cellspacing="0" cellpadding="0" height="24" style="text-align:center;font-size:9pt;color:white"><tr>');
document.write('<td width="1"></td>'+MenuTowLine()+'</tr></table></td></tr></table>');
