﻿self.onError=null;

function stoperror(){return true;};
window.onerror=stoperror;


selectbgColor=getCookie("selectbgColor");
selectAColor(selectbgColor);
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 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 selectAColor(changeToimg)
{
	switch(changeToimg)
	{
		case "0":document.body.background="/images/bg_0.gif";break;
		case "1":document.body.background="/images/bg_1.gif";break;
		case "2":document.body.background="/images/bg_2.gif";break;
		case "3":document.body.background="/images/bg_3.gif";break;
		case "4":document.body.background="/images/bg_4.gif";break;
		case "5":document.body.background="/images/bg_5.gif";break;
		default :document.body.background="/images/bg_0.gif";changeToimg=0;
	}
	window.setTimeout("setCookie(\"selectbgColor\","+Math.round(changeToimg)+","+1000*60*60*24*7+")",500);
}




function AddFavorites(){window.external.addFavorite('http://www.zQzz.com/','◎知足比分');}


function ChangePageLang(n)
{
	var OldDay="";
	var nUrl="";
	var mUrl=location.href;
	if(mUrl.indexOf("LANG=") != -1)
	{
		OldDay=mUrl.substring(mUrl.indexOf("LANG="),mUrl.indexOf("LANG=")+6);nUrl=mUrl.replace(OldDay,"LANG="+n);
	}else if(mUrl.indexOf("?") != -1){
		nUrl=mUrl+"&LANG="+n;
	}else{
		nUrl=mUrl+"?LANG="+n;
	}
	location.href=nUrl;
}

var t_PageUrl=location.href;
if(t_PageUrl.indexOf("?") != -1){t_PageUrl=t_PageUrl.substring(0,t_PageUrl.indexOf("?"));}
document.write ('<scr'+'ipt language="JavaScript" src="/js/displaykey.js"></scr'+'ipt>');
document.write('<link rel="stylesheet" type="text/css" href="/www/now.css"/>');
document.write('<div id="topNv">');
document.write('<div id="topNv_1">');
document.write('<div style="float:left;height:68px; width:180px;">');
document.write('<a href="/"><img src="/images/logo1.gif" border="0" c /></a>');
document.write('</div>');
document.write('<div id="lunboggA" style="float:right;margin-left:5px;">');
document.write('</div>');
document.write('</div>');
document.write('</div>');
document.write('<div id="menuNVtwo" style="margin-top:1px;">');
document.write('<div id="menuNV">');
document.write('<div id="menuNV_1">');
document.write('<ul>');
document.write('<li class="nav_action"><a class="mtr"  href="http://www.zqzz.com">体育资讯</a></li>');
document.write('<li><a class="mtr"  href="/live.htm">足球比分</a></li>');
document.write('<li><a class="mtr"  href="/basket/live/">篮球比分</a></li>');
document.write('<li><a href="http://cp.zqzz.com/" target="_blank">彩票大厅</a></li>');
document.write('<li><a href="http://live.zqzz.com/fodds/" target="_blank">足球指数</a></li>');
document.write('<li><a href="http://live.zqzz.com/bodds/" target="_blank">篮球指数</a></li>');
document.write('</ul>');
document.write('</div>');
document.write('<div id="menuNV_2">');
document.write('<span><a href="">用户中心</a></span>');
document.write('<span><a target="_blank" href="http://www.betzc.com/cooperate/zqzz/index.htm">彩票合买</a></span>');
document.write('</div>');
document.write('</div>');
document.write('</div>');
document.write('<table border="0" width="860" bordercolor="#000000" cellspacing="0" cellpadding="1" style="border-collapse:collapse; margin-top:1px;" bgcolor="#FFFFFF">');
document.write('<td width="33%">');
document.write('<table width="100%" style="border-collapse:collapse;text-align:center;line-height:23px" cellspacing="1" cellpadding="0" border="1" borderColor=#666666 bgColor=#EEEEEE>');
document.write('<tr height=23><td colspan=4 style="background-color:#666666;color:#EEEE00" align=left>&nbsp;>>> 足球频道</td></tr>');
document.write('<tr>');
document.write('<td width="25%"><a  target=_blank class=info_b href="http://live.zqzz.com/www/now.htm">即时比分</a></td>');
document.write('<td width="25%"><a target="_blank" href="http://live.zqzz.com/fixture.htm">赛程安排</a></td>');
document.write('<td width="25%"><a target="_blank" href="http://live.zqzz.com/last.html">完场比分</a></td>');
document.write('<td width="25%"><a target="_blank" href="http://live.zqzz.com/database.htm">足球资料</a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><a target="_blank" href="http://www.zqzz.com/list.php?id=1">知足分析</a></td>');
document.write('<td><a target="_blank" href="http://www.zqzz.com/list.php?id=2">后庄出货</a></td>');
document.write('<td><a target="_blank" href="http://www.zqzz.com/list.php?id=4">赛事动态</a></td>');
document.write('<td><a target="_blank" href="http://www.zqzz.com/list.php?id=5">专家睇法</a></td>');
document.write('</tr>');
document.write('</table>');
document.write('</td>');
document.write('<td width="33%">');
document.write('<table width="100%" style="border-collapse:collapse;text-align:center;line-height:23px" cellspacing="1" cellpadding="0" border="1" borderColor=#666666 bgColor=#EEEEEE>');
document.write('<tr height=23><td colspan=4 style="background-color:#666666;color:#EEEE00" align=left>&nbsp;>>> 篮球频道</td></tr>');
document.write('<tr>');
document.write('<td width="25%"><a id="info_b" target="_blank" href="http://live.zqzz.com/basket/live/">即时比分</a></td>');
document.write('<td width="25%"><a target="_blank" href="http://live.zqzz.com/basket/last/fixture.htm">赛程安排</a></td>');
document.write('<td width="25%"><a target="_blank" href="http://live.zqzz.com/basket/last/index.htm">完场比分</a></td>');
document.write('<td width="25%"><a target="_blank" href="http://live.zqzz.com/basket/nbateam/team.html">篮球资料</a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><a target="_blank" href="list.php?id=25">NBA快迅</a></td>');
document.write('<td><a target="_blank" href="list.php?id=26">CBA快迅</a></td>');
document.write('<td><a target="_blank" href="list.php?id=31">赛前分析</a></td>');
document.write('<td><a target="_blank" href="list.php?id=32">篮球推介</a></td>');
document.write('</tr>');
document.write('</table>');
document.write('</td>');
document.write('<td width="33%">');
document.write('<table width="100%" style="border-collapse:collapse;text-align:center;line-height:23px" cellspacing="1" cellpadding="0" border="1" borderColor=#666666 bgColor=#EEEEEE>');
document.write('<tr height=23><td colspan=4 style="background-color:#666666;color:#EEEE00" align=left>&nbsp;>>> 彩票频道</td></tr>');
document.write('<tr>');
document.write('<td width="25%"><a id="info_b" target="_blank" href="http://cp.zqzz.com/Buy06/NewLotteryList.php">合买大厅</a></td>');
document.write('<td width="25%"> <a target="_blank" href="http://cp.zqzz.com/caipiaokaijiang/">彩票开奖</a></td>');
document.write('<td width="25%"> <a target="_blank" href="http://cp.zqzz.com/Lottery06/BJBetIndex.php?LotteryType=WDL">单场胜平负</a></td>');
document.write('<td width="25%"><a target="_blank" href="http://cp.zqzz.com/jingcai/">竞彩胜平负</a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><a target="_blank" href="http://cp.zqzz.com/Lottery06/SoccerIndex.php">胜 负 彩</a></td>');
document.write('<td> <a target="_blank" href="http://cp.zqzz.com/Lottery06/SoccerIndex.php?LotteryType=NineToTo">任 选 九</a></td>');
document.write('<td><a target="_blank" href="http://cp.zqzz.com/Lottery06/jingcailanqiu/?LotteryType=SportteryHWL">竞彩篮球</a></td>');
document.write('<td><a target="_blank" href="http://cp.zqzz.com/User/Register.php">注册购彩</a></td>');
document.write('</tr>');
document.write('</table>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');

/*document.write('<table width="768" height="63" cellpadding=0 cellspacing=0 border=0 borderColor=black style="border-left-style:solid; border-left-width:1px; border-right-style:solid; border-right-width:1px;" borderColor="#C0C0C0" background="/images/topbg.gif">');
document.write('<tr>');
document.write('<td width=230><img src="/images/logo.gif" border=0></td>');
document.write('<td>');
document.write('<table cellpadding=0 cellspacing=0 border=0 style="border-collapse:collapse;font-size:12px" width="100%" class=drop2>');
document.write('<tr><td><img height=8 width=0 border=0></td></tr>');
document.write('<tr><td>');
document.write('<a href="/" class=info_b target=_blank>站点首页</a> | ');
document.write('<a href="http://sport.zqzz.com" class=info_b target=_blank>资讯首页</a> | ');
document.write('<a href="http://sport.zqzz.com/?ClassID=1" class=info_b target=_blank>足球热讯</a> | ');
document.write('<a href="http://sport.zqzz.com/?ClassID=6" class=info_b target=_blank>篮球热讯</a> | ')
document.write('<a href="http://sport.zqzz.com/?ClassID=10" class=info_b target=_blank>网球热讯</a> | ');
document.write('<a href="http://sport.zqzz.com/?ClassID=4" class=info_b target=_blank>花絮热讯</a> | ');
document.write('<a href="http://sport.zqzz.com/?ClassID=3" class=info_b target=_blank>赛事前瞻</a> | ');
//document.write('<a href="http://sport.zqzz.com/?ClassID=5" class=info_b target=_blank>波友解盘</a>');
document.write('</td></tr>');
document.write('<tr><td><hr noshade style="border: 1px dotted #888888" size="1" align="left" width="98%"></td></tr>');
document.write('<tr><td>');
document.write('<a href="http://sport.zqzz.com/?ClassID=13" class=info_b target=_blank>彩票知识</a> | ');
document.write('<a href="http://sport.zqzz.com/?ClassID=15" class=info_b target=_blank>政策法规</a> | ');
document.write('<a href="http://sport.zqzz.com/?ClassID=16" class=info_b target=_blank>玩法介绍</a> | ');
document.write('<a href="http://sport.zqzz.com/?ClassID=9" class=info_b target=_blank>各地彩票</a> | ');
document.write('<a href="http://sport.zqzz.com/?ClassID=7" class=info_b target=_blank>足彩资讯</a> | ');
document.write('<a href="http://sport.zqzz.com/?ClassID=11" class=info_b target=_blank>足彩分析</a> | ');
document.write('<a href="http://sport.zqzz.com/?ClassID=9" class=info_b target=_blank>篮彩资讯</a> | ');
//document.write('<a href="http://sport.zqzz.com/?ClassID=2" class=info_b target=_blank>指数资讯</a>');
document.write('</td></tr>');
document.write('</table>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');

document.write('<table border="0" cellspacing="0" cellpadding="0"><tr><td><img border="0" src="/images/tow.gif" usemap="#Map0"></td></tr></table>');

document.write('<map name="Map0">');
document.write('<area href="http://sport.zqzz.com" shape="rect" coords="2,1,58,25" title="体育资讯">');
document.write('<area href="/live.htm" shape="rect" coords="66,1,122,25" title="足球比分">');
document.write('<area href="/basket/live/" shape="rect" coords="128,1,184,25" title="篮球比分">');
document.write('<area href="/tennis/" shape="rect" coords="191,1,247,25" title="网球比分">');
//document.write('<area href="/sms.htm" shape="rect" coords="254,1,310,25" title="短信频道">');
document.write('<area href="http://www.ballvod.com/" shape="rect" coords="316,1,372,25" target="_blank" title="宽频直播">');
//document.write('<area href="/odds/om/" shape="rect" coords="379,1,435,25" target="_blank" title="指数参考">');
document.write('<area href="http://buy.betzc.com/cooperate/zqzz/index.htm" shape="rect" coords="442,1,498,25" target="_blank" title="彩票合买">');
//document.write('<area href="http://xs.zqzz.com/" shape="rect" coords="504,1,560,25" target="_blank" title="*心水吧*">');
document.write('</map>');
*/
function LanguageList(){
	var Lag=new Array();
	Lag[0]='<div style="float:right; width:85px;">'
	Lag[1]='<span><a id="laId2" class="intl" onClick="javascript:ChangePageLang(2)" href="#">En</a></span>'
	Lag[2]='<span><a id="laId1" class="intl" onClick="javascript:ChangePageLang(1)" href="#">简</a></span>'
	Lag[3]='<span><a id="laId0" class="intl" onClick="javascript:ChangePageLang(0)" href="#">繁</a></span>'
	Lag[4]='</div>'
	 var Tp=""
	 for(var i=0;i<Lag.length;i++){Tp+=''+Lag[i]+'';}
	 Tp=''+Tp+'';
	 return Tp;
}
function MenuTowLine()
{
	var Me=new Array();
	Me[0]='';
	Me[1]='';
	Me[2]='';
	Me[3]='';
	
	var Tp="";
	for(var i=0;i<Me.length;i++){Tp+=''+Me[i]+'';}
	Tp=''+Tp+'';
	return Tp;
}
//document.write("<table width=768 height=60 cellpadding=0 cellspacing=0 border=0 borderColor=black style='border-left-style:solid; border-left-width:1px; border-right-style:solid; border-right-width:1px;' borderColor=#C0C0C0 background='/images/topbg.gif'><tr><td style='padding:1px' align=center><img src='/swf/2008year.gif' border=0></table>");

/*
//贺年--start--
document.write('<table border="0" width="768" cellspacing="0" cellpadding="0" style="border-collapse:collapse;" bordercolor=#000000><tr><td id="NEWYEAR2006">');

document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" odebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH=768 HEIGHT=300><PARAM NAME=movie VALUE="/swf/newsyear.swf"><param name="Menu" value="false"><param name="quality" value="High"><param name="scale" value="ExactFit"><EMBED src="/swf/newsyear.swf" quality=High TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" width=768 height=300 menu="false" wmode="transparent" scale="ExactFit"></EMBED></OBJECT></td>');

document.write('</td></tr></table>');



function CloseNewYearShow(){document.getElementById("NEWYEAR2006").style.display="none";}
window.setTimeout("CloseNewYearShow()",23000);
//贺年--end--
*/
function Menulist(){
	
}

if(location.href.indexOf("last.htm") != -1 || location.href.indexOf("fixture.htm") != -1 || location.href.indexOf("/match_info/") != -1 || location.href.indexOf("database.htm") != -1)
{
	document.write('<table border="0" width="768" cellspacing="0" cellpadding="0" borderColor="black" bgColor="#EEECCC" style="border-collapse:collapse;border-style:solid;border-width:0px 1px 0px 1px;">');
	document.write('<tr><td align=center>');
	//document.write("<object classid='clsid:D27CDB6E-AE6D-11CF-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0' border='0' width='768' height='60'><param name='movie' value='http://live.zqzz.com/logolink/480/kk2828.swf'><param name='quality' value='High'><embed src='http://live.zqzz.com/logolink/480/kk2828.swf' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'  width='768' height='60'></object>");
	//document.write('<a href="http://www.78lt.com/" target=_blank><img src="/logolink/138/78lt300.gif" border=0>');
	document.write('</td></tr></table>');
}else{
	//document.write('<table border="0" width="768" cellspacing="0" cellpadding="0" borderColor="black" bgColor="#EEECCC" style="border-collapse:collapse;border-style:solid;border-width:0px 1px 0px 1px;">');
	//document.write('<tr><td align=center>');
	//document.write('<a href="http://www.78lt.com/" target=_blank><img src="/logolink/480/78lt760.gif" border=0>');
	//document.write('</td></tr></table>');

}

