﻿sfHover = function() {
	var sfEls = document.getElementById("web_nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className = (this.className ? this.className + " " : "") + "sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className = this.className.replace(/\s*?\bsfhover\b/, "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

if(window.location.href.toLowerCase().indexOf("am.")<0) 
document.writeln("<div id='ad'><a href='http://www.boti88.com/' target=_blank><img src='http://img2.betad.cn/ad/boti88.gif' width='470' height='48' /></a>  <a href='http://www.90a.cn/' target=_blank><img src='http://img.betad.cn/ad/470-481.gif' width='470' height='48' /></a></div>");

document.write('<div id="web_top">');
document.write('  <div id="web_bet"></div>');
document.write('  <ul id="web_nav">');
document.write('    <li><span><a href="http://www.bet007.com/" target="_blank">首页</a></span>');
document.write('        <UL style="WIDTH: 160px" class="nav2">');       
document.write('    <LI><A href="http://play.bet007.cn/serviceorder.aspx" target="_blank">擂台VIP</A></LI>');
document.write('    <LI><A href="http://www.bet007.com/member.htm" target="_blank">指数VIP</A></LI>');
document.write('    <LI><A href="http://sms.city007.net/" target="_blank">短信VIP</A></LI>');
document.write('	<LI><A href="http://wap.bet007.com/wap.htm" target="_blank">手机上网</A></LI>');
document.write('    <LI><A href="http://bf.bet007.com/free.aspx" target="_blank">比分调用 </A></LI>');
//document.write('    <LI><A href="http://bf.bet007.com/oddsfree.aspx" target="_blank">赔率调用</A></LI>');
document.write('    <LI><A href="http://ads.bet007.com/Market/Index.aspx" target="_blank">营销合作</A></LI>');
//document.write('    <LI><!--A href="http://ads.bet007.com/Market/MarketAdvertisingList.aspx" target="_blank"-->广告合作</A></LI>');
document.write('    </UL>');
document.write('    </li>');
document.write('    <li class="d_l"></li>');
document.write('    <li><span><a href="http://live.bet007.com/" target="_blank" >即时比分</a></span>');
document.write('     <UL style="WIDTH: 160px">');
document.write('    <LI><A href="http://live.bet007.com/" target="_blank">足球</A></LI>');
document.write('    <LI><A href="http://basket.bet007.com/nba.htm" target="_blank">篮球</A></LI>');
document.write('    <LI><A href="http://bf.bet007.com/tennis.htm" target="_blank">网球</A></LI>');
document.write('    <LI><A href="http://f1.bet007.com/f1_bf.aspx" target="_blank">赛车</A></LI>');
document.write('    <LI><A href="http://sports.bet007.com/vollyball.aspx" target="_blank">排球</A></LI> ');
document.write('    <LI><A href="http://sports.bet007.com/baseball.aspx" target="_blank">棒球</A></LI>');
document.write('    <LI><A href="http://sports.bet007.com/pingpong.aspx" target="_blank">乒乓球</A></LI>');
document.write('    <LI><A href="http://sports.bet007.com/shuttlecock.aspx" target="_blank">羽毛球</A></LI>');
document.write('    <LI><A href="http://sports.bet007.com/snooker.htm" target="_blank">斯诺克</A></LI>');
document.write('    <LI><A href="http://sports.bet007.com/football.aspx" target="_blank">橄榄球</A></LI>');
document.write('    <LI><A href="http://golf.bet007.com/golf_bf.aspx" target="_blank">高尔夫</A></LI>');
document.write('    <LI><A href="http://sports.bet007.com/hockey.aspx" target="_blank">曲棍球/冰球</A></LI>');
document.write('    <LI><A href="http://bf.bet007.com/TextLive.htm" target="_blank">文字直播</A></LI>');
document.write('    <LI><A href="http://zt.bet007.com/bf/kuize.html" target="_blank">竞赛规则</A></LI>');
document.write('    </UL>');
document.write('    </li>');
document.write('    <li class="d_l"></li>');
document.write('    <li><span><a href="http://odds.bak168.com/" target="_blank">指数</a></span>');
document.write('    <UL style="WIDTH: 160px">');
document.write('    <LI><A href="http://odd.bak168.com/" target="_blank">足球指数</A></LI>');
document.write('    <LI><A href="http://nba.bet007.com/odds.asp" target="_blank">篮球指数</A></LI>');
document.write('    <LI><A href="http://tennis.bet007.com/odds.htm" target="_blank">网球指数</A></LI>');
document.write('	<LI><A href="http://info.bet007.com/gj/index.aspx?type=1" target="_blank">冠军指数</A></LI>');
document.write('    <LI><A href="http://1x2.bet007.com/" target="_blank">百家欧赔</A></LI>');
document.write('    <LI><A href="http://am.bet007.com/" target="_blank">澳彩原版</A></LI>');
document.write('    <LI><A href="http://info.bet007.com/league_data/2009-2010/36.htm" target="_blank">让球盘路</A></LI>');
//document.write('    <LI><A href="http://info.bet007.com/print" target="_blank">盘纸打印</A></LI>');
document.write('    <LI><A href="http://www.bet007.com/member.htm" target="_blank">指数VIP</A></LI>');
document.write('    <LI><A href="http://sms.city007.net/" target="_blank">短信VIP</A></LI>');
document.write('    </UL>');
document.write('    </li>');
document.write('    <li class="d_l"></li>');
document.write('    <li><span><a href="http://info.bet007.com/" target="_blank">资料库</a></span>');
document.write('    <UL style="WIDTH: 160px">');           
document.write('    <LI><A href="http://info.bet007.com/info/index.htm" target="_blank">足球资料库</A></LI>');
document.write('    <LI><A href="http://nba.bet007.com/" target="_blank">篮球资料库</A></LI>');
document.write('    <LI><A href="http://golf.bet007.com/sclass/schedule2009_3.html" target="_blank">高尔夫</A></LI>');
document.write('    <LI><A href="http://f1.bet007.com/Result.aspx" target="_blank">F1赛车</A></LI>');
document.write('    <LI><A href="http://tennis.bet007.com/sclass/sclass.asp" target="_blank">网球</A></LI>');
document.write('    <LI><A href="http://sports.bet007.com/SnookerDB.aspx" target="_blank">斯诺克</A></LI>');
document.write('    <LI><A href="http://info.bet007.com/league_match/league_vs/2009-2010/36.htm" target="_blank">英超</A></LI>');
document.write('    <LI><A href="http://info.bet007.com/league_match/league_vs/2009-2010/34.htm" target="_blank">意甲</A></LI>');
document.write('    <LI><A href="http://info.bet007.com/league_match/league_vs/2009-2010/8.htm" target="_blank">德甲</A></LI>');
document.write('    <LI><A href="http://info.bet007.com/league_match/league_vs/2009-2010/31.htm" target="_blank">西甲</A></LI>');
document.write('    <LI><A href="http://info.bet007.com/league_match/league_vs/2009-2010/11.htm" target="_blank">法甲</A></LI>');
document.write('    <LI><A href="http://info.bet007.com/cup_match/2009-2010/cupmatch_vs/cupmatch_103.htm" target="_blank">欧冠杯</A></LI>');
document.write('    <LI><A href="http://nba.bet007.com/League/#http://nba.bet007.com/League/Schedule/1/" target="_blank">NBA</A></LI>');
document.write('    <LI><A href="http://info.bet007.com/score/2009-2010/36.htm" target="_blank">积分</A></LI>');
document.write('    <LI><A href="http://info.bet007.com/league_data/2009-2010/36.htm" target="_blank">盘路</A></LI>');
document.write('    <LI><A href="http://info.bet007.com/ZH/sclassZh.aspx" target="_blank">转会记录</A></LI>');
document.write('    <LI><A href="http://info.bet007.com/aspx/fifa.aspx" target="_blank">世界排名</A></LI>');
document.write('    <LI><A href="http://nba.bet007.com/tv.aspx" target="_blank">电视直播表</A></LI>');
document.write('    </UL>');
document.write('    </li>');
document.write('    <li class="d_l"></li>');
document.write('    <li><span><a href="http://article.bet007.com/news.html" target="_blank">新闻</a></span>');
document.write('    <UL style="WIDTH: 160px">');
document.write('    <LI><A href="http://article.bet007.com/football.html" target="_blank">足球新闻</A></LI>');
document.write('    <LI><A href="http://article.bet007.com/basketball.html" target="_blank">篮球新闻</A></LI>');
document.write('    <LI><A href="http://article.bet007.com/tennis.html" target="_blank">网球新闻</A></LI>');
document.write('    <LI><A href="http://article.bet007.com/f1.html" target="_blank">赛车新闻</A></LI>');
document.write('    <LI><A href="http://article.bet007.com/sports.html" target="_blank">综合新闻</A></LI>');
document.write('	<LI><A href="http://article.bet007.com/UserWeb/NewsTopic.aspx" target="_blank">专题报导</A></LI>');
document.write('    </UL>');
document.write('    </li>');
document.write('    <li class="d_l"></li>');
document.write('    <li><span><a href="http://www.buy007.com/" target="_blank">商城</a></span>');
document.write('    </li>');
document.write('    <li class="d_l"></li>');
document.write('    <li><span><a href="http://blog.bet007.com/" target="_blank">奥客</a></span>');
document.write('      <UL style="WIDTH: 160px">');   
document.write('    <LI><A href="http://blog.bet007.com/" target="_blank">奥客首页</A></LI>');
document.write('	<LI><A href="http://blog.bet007.com/UserWeb/QuanAlbumList.aspx" target="_blank">奥客相册</A></LI>');
document.write('    <LI><A href="http://blog.bet007.com/UserWeb/QuanSearch.aspx" target="_blank">圈子平台</A></LI>');
document.write('    <LI><A href="http://blog.bet007.com/UserWeb/QuanStar.aspx?StarType=1" target="_blank">圈主圈友</A></LI>');
document.write('    <LI><A href="http://blog.bet007.com/UserWeb/pointIndex.aspx" target="_blank">礼品兑换</A></LI>');
document.write('    </UL>');
document.write('    </li>');

document.write('    <li class="d_l"></li>');
document.write('    <li><span><a href="http://club.bet007.com/" target="_blank">约战</a></span>');
document.write('     <UL style="WIDTH: 160px">');
document.write('    <LI><A href="http://club.bet007.com/" target="_blank">约战首页</A></LI>');
document.write('	<LI><A href="http://zq.bet007.com/" target="_blank">足球约战</A></LI>');
document.write('    <LI><A href="http://lq.bet007.com/" target="_blank">篮球约战</A></LI>');
document.write('    <LI><A href="http://ymq.bet007.com/" target="_blank">羽毛球约战</A></LI>');
document.write('    <LI><A href="http://ppq.bet007.com/" target="_blank">乒乓球约战</A></LI>');
document.write('    <LI><A href="http://wq.bet007.com/" target="_blank">网球约战</A></LI>');
document.write('    <LI><A href="http://article.bet007.com/Users/CreateClub.aspx" target="_blank">创建球队</A></LI>');
document.write('    <LI><A href="http://ads.bet007.com/Market/MerchantRecruitment.aspx" target="_blank">球队招商</A></LI>');
document.write('    </UL>');
document.write('    </li>');
document.write('    <li class="d_l"></li>');
document.write('    <li><span><a href="http://class.bet007.com/" target="_blank">校园体育</a></span>');
document.write('    <UL style="WIDTH: 160px">');
document.write('    <LI><A href="http://class.bet007.com/ " target="_blank">校园首页</A></LI>');
document.write('	<LI><A href="http://class.bet007.com/CityWeb/School/SchoolMatchList.aspx" target="_blank">比赛战区</A></LI>');
document.write('    <LI><A href="http://class.bet007.com/CityWeb/School/SchoolActivitiesList.aspx" target="_blank">交流活动</A></LI>');
document.write('    <LI><A href="http://class.bet007.com/CityWeb/School/SchoolList.aspx" target="_blank">学校</A></LI>');
document.write('    <LI><A href="http://class.bet007.com/CityWeb/School/ClassList.aspx" target="_blank">班级</A></LI>');
document.write('    <LI><A href="http://class.bet007.com/CityWeb/School/ClassMemberList.aspx" target="_blank">校友录</A></LI>');
document.write('    <LI><A href="http://forum.bet007.com/?showforum-22.html" target="_blank">社区</A></LI>');
document.write('    <LI><A href="http://article.bet007.com/Help/CommonHelpList.aspx?kind=1&amp;type=5" target="_blank">帮助</A></LI>');
document.write('    </UL>');
document.write('    </li>');
document.write('    <li class="d_l"></li>'); 
document.write('    <li><span><a href="http://play.bet007.cn/" target="_blank">游戏</a></span>');
//document.write('     <UL style="WIDTH: 160px">');
//document.write('    <LI><A href="http://play.bet007.cn/index.aspx" target="_blank">游戏首页</A></LI>');
//document.write('    <LI><A href="http://guess.bet007.com/" target="_blank">竞猜达人</A></LI>');
//document.write('    <LI><A href="http://play.bet007.cn/winner.aspx" target="_blank">高手重点</A></LI>');
//document.write('    <LI><A href="http://play.bet007.cn/ExpertAnalyseShow.aspx" target="_blank">专家分析</A></LI>');
//document.write('    <LI><A href="http://www.xinshuiba.com/" target="_blank">心水吧</A></LI>');
//document.write('    </UL>');
document.write('    </li>');
//document.write('    <li class="d_l"></li>');
//document.write('    <li><span><a href="http://article.bet007.com/vod.aspx" target="_blank">宽频</a></span></li>');
document.write('    <li class="d_l"></li>');
document.write('    <li><span><a href="http://forum.bet007.com/" target="_blank">社区</a></span>');
/*document.write('     <UL  style="WIDTH: 160px;MARGIN-LEFT: -100px;">');
document.write('    <LI><A href="http://forum.bet007.com/" target="_blank">论坛首页</A></LI>');
document.write('    <LI><A href="http://forum.bet007.com/?showforum-2.html" target="_blank">足球心水</A></LI>');
document.write('    <LI><A href="http://forum.bet007.com/?showforum-4.html" target="_blank">篮球心水</A></LI>');
document.write('    <LI><A href="http://forum.bet007.com/?showforum-440.html" target="_blank">综合心水</A></LI>');
document.write('    <LI><A href="http://forum.bet007.com/?showforum-459.html" target="_blank">体育花边</A></LI>');
document.write('    <LI><A href="http://forum.bet007.com/?showforum-183.html" target="_blank">宽频影院</A></LI>');
document.write('    <LI><A href="http://forum.bet007.com/?showforum-59.html" target="_blank">赛事论坛</A></LI>');
document.write('    <LI><A href="http://forum.bet007.com/?showforum-22.html" target="_blank">校园社区</A></LI>');
document.write('    </UL>');*/
document.write('    </li>');
document.write('    </ul>');
document.write('  <div style="clear:both"></div></div>');
document.write('  <div style="clear:both"></div>');
document.write('</div>');

document.write('<div style="text-align:center;font-size:12px;line-height:20px;width:950px; background-color:white;">本频道资讯转载于各大门户网站、体育网、报刊，仅供购买中国足彩单场彩游戏作指数对比及回查分析之用</div>');


if(window.location.href.toLowerCase().indexOf("am.")<0) 
	document.writeln("<div id='ad' style='padding-bottom:3px;'><a href='http://www.38w.cc/' target=_blank><img src='http://bak.betad.cn/ad/38w.gif' width='948' height='35' /></a></div>");




function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function getCookie(name){
	var cname = name + "=";
	var dc = document.cookie;
	if (dc.length > 0){
		begin = dc.indexOf(cname);
		if (begin != -1){
			begin += cname.length;
			end = dc.indexOf(";", begin);
			if (end == -1) end = dc.length;
			return dc.substring(begin, end);
		}
	}
	return null;
}
function writeCookie(name, value) 
{ 
	var expire = ""; 
	var hours = 365;
	expire = new Date((new Date()).getTime() + hours * 3600000); 
	expire = ";path=/;expires=" + expire.toGMTString(); 
	document.cookie = name + "=" + value + expire; 
}

function EuropeOdds(ID) {
var theURL='http://1x2.bet007.com/oddslist/'+ID+'.htm';
window.open(theURL,'','');}

function AsianOdds(ID) {
var theURL='http://vip.bet007.com/AsianOdds_n.aspx?id='+ID;
window.open(theURL,'','');}

function analysis(ID){
var theURL='http://news.bet007.com/analysis/'+ID+'.htm';
window.open(theURL,'','');
}
function Panlu(ID){
var theURL='http://bf.bet007.com/panlu/'+ID+'.htm';
window.open(theURL,'','');
}


function dxq(ID,t1,t2){
var theURL='http://vip.bet007.com/OverDown_n.aspx?id='+ID+'&team1=' + t1 +' &team2='+ t2;
window.open(theURL,'','');}

function qb(ID){
window.open('http://article.bet007.com/UserWeb/LiveInformation.aspx?ID='+ID,'','');
}
function showgoallist(ID)
{
	window.open("http://bf.bet007.com/detail/" + ID +".htm", "","scrollbars=yes,resizable=yes,width=668, height=720");
}
function oddsDetail(ID,cId)
{
	window.open("http://vip.bet007.com/changeDetail/handicap.aspx?id=" + ID +"&companyID="+ cId, "","");
}










//文字广告
var Adcount=6;
var adinfo1=new Array();
var adinfo2=new Array();

adinfo1[0]="http://live.zqzz.com/www/now.htm";
adinfo2[0]="<font style='background-color:yellow' color=red>知足比分，大道至简，我们只专注于提供最快的比分</font>";
adinfo1[1]="http://www.zq1996.com/";
adinfo2[1]="<font style='background-color:yellow' color=red>免费试料 救命波胆，2:4大公开.8串1包准，请点击</font>";
adinfo1[2]="http://www.123538.com/AptRop_douful_opdex_QpiidsjhhgJhsQ_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_kiiDlop_douful_opdex_QpiidsjjhhgJhsQ_kiiDlop_douful_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_opdex_QpiidsjjhhgJhsiDlop_opdex_douful_opdex2_Qpiidsjjh/";
adinfo2[2]="<font style='background-color:yellow' color=red> 单场天天免费推介，今日波胆已公开，请点击查看</font>";
adinfo1[3]="http://www.zq79998.com/";
adinfo2[3]="<font style='background-color:yellow' color=red>今日高倍救命波胆3:3大公开，一注翻身，请点击查看</font>";
adinfo1[4]="http://bbs.goopm.com";
adinfo2[4]="<font style='background-color:yellow' color=red>正点娱乐门户网www.goopm.com论坛高手选拔进行中</font>";
adinfo1[5]="http://yb889.com/?lmzq888.com";
adinfo2[5]="<font style='background-color:yellow' color=red>每天单场免费公开100%内幕协议波胆4：4实力验证</font>";

//中间的图片广告，比赛第三场下面
var imgad2=new Array();
imgad2[0]="";
imgad2[1]="<a href='http://www.ccrrzx.com/' target=_blank><img src='http://img.betad.cn/ad/adsggrfe.gif' width=688></a>";
imgad2[2]="";
imgad2[3]="";
imgad2[4]="";
imgad2[5]="";
imgad2[6]="";
imgad2[7]="";
imgad2[8]="";
imgad2[9]="";
imgad2[10]="";


var topAd=new Array(); //两边固定
topAd[0]="<a href='http://www.zq1666.com' target=_blank><img src='http://img2.betad.cn/ad/zq1666.gif' border='0' width=120 height=70></a>";
topAd[1]="<a href='http://www.zq188.net/' target=_blank><img src='http://img2.betad.cn/ad/zq53.gif' border='0' width=120 height=70></a>";
topAd[2]="<a href='http://www.qiujingwang.cn/?tjzs' target=_blank><img src='http://img2.betad.cn/ad/webrt33.gif' border='0' width=120 height=70></a>";
topAd[3]="<a href='http://www.ball988.com/AptRop_douful_opdex_QpiidsjhhgJhsQ_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_kiiDlop_douful_opdex_QpiidsjjhhgJhsQ_kiiDlop_douful_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_opdex_QpiidsjjhhgJhsiDlop_opdex_douful_opdex2_Qpiidsjjh/' target=_blank><img src='http://img2.betad.cn/ad/zq8887.gif' border='0' width=120 height=70></a>";
topAd[4]="<a href='http://www.zq708.com/' target=_blank><img src='http://img2.betad.cn/ad/fgree.gif' border='0' width=120 height=70></a>";



//左边浮动
var right_layer=new Array();
var left_layer=new Array();
left_layer[0]="<a href='http://www.09872.com/AptRop_douful_opdex_QpiidsjhhgJhsQ_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_kiiDlop_douful_opdex_QpiidsjjhhgJhsQ_kiiDlop_douful_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_opdex_QpiidsjjhhgJhsiDlop_opdex_douful_opdex2_Qpiidsjjh/' target='_blank'><img src='http://bak.betad.cn/ad/asdfewf.gif' border=0 width=120 height=70></a>";
left_layer[1]="<a href='http://www.zq1800.com' target='_blank'><img src='http://bak.betad.cn/ad/zq5980.gif' border=0 width=120 height=70></a>";
left_layer[2]="<a href='http://61.143.225.132/' target='_blank'><img src='http://img2.betad.cn/ad/laaade.gif' border=0 width=120 height=70></a>"
left_layer[3]="<a href='http://www.gfzqiu.com/' target='_blank'><img src='http://img2.betad.cn/ad/gher34.gif' border=0 width=120 height=70></a>"
left_layer[4]="<a href='http://www.zq6699.com/' target='_blank'><img src='http://img2.betad.cn/ad/76456.gif' border=0 width=120 height=70></a>"
left_layer[5]="<a href='http://zq353.net/' target='_blank'><img src='http://img2.betad.cn/ad/zq353.gif' border=0 width=120 height=70></a>"
left_layer[6]="<a href='http://www.goopm.com/' target='_blank'><img src='http://bak.betad.cn/ad/goopm.gif' border=0 width=120 height=70></a>";


//右边浮动
right_layer[0]="<a href='http://www.ab2088.com/' target=_blank><img src='http://bak.betad.cn/ad/rhgere.gif' border='0' width=120 height=70></a>";
//right_layer[1]="<a href='http://www.lm82888.com/' target=_blank><img src='http://img2.betad.cn/ad/dfweff.gif' border='0' //width=120 height=70></a>";
//right_layer[1]="<a href='http://www.558111.com/' target='_blank'><img src='http://bak.betad.cn/ad/jibaiywee1_c.gif' border=0 width=120 height=70></a>";
right_layer[1]="<a href='http://www.q22188.com/?u=http://www.221188.net' target='_blank'><img src='http://bak.betad.cn/ad/quanwei.gif' border=0 width=120 height=70></a>";
right_layer[2]="<a href='http://www.zq246.com/AptRop_douful_opdex_QpiidsjhhgJhsQ_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_kiiDlop_douful_opdex_QpiidsjjhhgJhsQ_kiiDlop_douful_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_opdex_QpiidsjjhhgJhsiDlop_opdex_douful_opdex2_Qpiidsjjh/' target='_blank'><img src='http://bak.betad.cn/ad/asedfe8.gif' border=0 width=120 height=70></a>";
right_layer[3]="<a href='http://www.ball776.com/' target='_blank'><img src='http://bak.betad.cn/ad/rdfdfe.gif' target='_blank'border=0 width=120 height=70></a>";
right_layer[4]="<a href='http://zq3788.com/AptRop_douful_opdex_QpiidsjhhgJhsQ_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_kiiDlop_douful_opdex_QpiidsjjhhgJhsQ_kiiDlop_douful_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_opdex_QpiidsjjhhgJhsiDlop_opdex_douful_opdex2_Qpiidsjjh/' target='_blank'><img src='http://bak.betad.cn/ad/zq3788.gif' target='_blank'border=0 width=120 height=70></a>";
right_layer[5]="<a href='http://ZQ233.COM/AptRop_douful_opdex_QpiidsjhhgJhsQ_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_kiiDlop_douful_opdex_QpiidsjjhhgJhsQ_kiiDlop_douful_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_opdex_QpiidsjjhhgJhsiDlop_douful_opdex_opdex_QpiidsjjhhgJhsiDlop_opdex_douful_opdex2_Qpiidsjjh/' target='_blank'><img src='http://bak.betad.cn/ad/retbbr3.gif' target='_blank'border=0 width=120 height=70></a>";
right_layer[6]="<a href='http://www.558111.com/' target='_blank'><img src='http://bak.betad.cn/ad/558111.gif' target='_blank'border=0 width=120 height=70></a>";

//中间 banner
function setMiddleBanner(){
    //document.getElementById("midAd1").innerHTML="";
    document.getElementById("midAd2").innerHTML="<a href='http://www.nowscore.com/' target=_blank><img src='http://bak.betad.cn/ad/nowscore.gif' width=690 height=40 border=0></a>";  
}

//两边浮动广告
var imgheight=76;
var MyTop=-10;
var MyWidth=-10;

// 每次增加减少固定广告时需要改动其数量。
var left_ad_count=3;
var right_ad_count=4;
var left_layer_top=240+imgheight*left_ad_count;
var right_layer_top=240+imgheight*right_ad_count;
if(window.location.href.toLowerCase().indexOf("oldodds.aspx")>0 || window.location.href.toLowerCase().indexOf("company.aspx")>0){
    left_layer_top=210+imgheight*left_ad_count;
    right_layer_top=55+imgheight*right_ad_count;
}



function set_image_ad()
{
	var mx_html="";
	for (var p in right_layer)
	{
		mx_html+="<div id='right"+p+"' style='position: absolute;width:120;top:"+(right_layer_top+imgheight*p)+";visibility:visible;z-index:3;'>";
		mx_html+=right_layer[p];
		mx_html+="</div>";
	}

	id_right_layer.innerHTML=mx_html;
	mx_html="";
	for (var p in left_layer)
	{
		mx_html+="<div id='left"+p+"' style='position: absolute;width:120;top:"+(left_layer_top+imgheight*p)+";visibility:visible;z-index:3;'>";
		mx_html+=left_layer[p];
		mx_html+="</div>";
	}
	id_left_layer.innerHTML=mx_html;
	myload();
}
 
function myload()
{  
	if (document.documentElement.scrollTop==MyTop && document.body.clientWidth==MyWidth)
	{
		setTimeout("myload();",200);
		return false;
	}
	MyTop=document.body.scrollTop;
	if(MyTop==0) MyTop=document.documentElement.scrollTop; 
	MyWidth=document.body.clientWidth;
	
	for (var p in right_layer)
	{      
		var mlayer=eval("right"+p);
		var new_top=MyTop+20+imgheight*p ;	
		var pos_top=right_layer_top+imgheight*p ;
		if (new_top>pos_top)  mlayer.style.top= new_top; else mlayer.style.top=pos_top;  

		if(document.body.clientWidth>950) 
			mlayer.style.left= (MyWidth-950)/2+825;
		else
			mlayer.style.left=825;
	}

	for (var p in left_layer)
	{      
		var mlayer=eval("left"+p);
		var new_top=MyTop+20+imgheight*p ;	
		var pos_top=left_layer_top+imgheight*p ;
		if (new_top>pos_top)  mlayer.style.top= new_top; else mlayer.style.top=pos_top;  
		if(MyWidth>950) 
			mlayer.style.left= (MyWidth-950)/2+5;
		else
			mlayer.style.left=5;
	}
	setTimeout("myload();",200);		
}



function SetNewOddsTopAd()
{
    document.getElementById("left_top_ad").innerHTML="<p class=ad_div>" + topAd[0] +"</p><p class=ad_div>" + topAd[1] +"</p><p class=ad_div>" + topAd[2] +"</p>";
    document.getElementById("right_top_ad").innerHTML="<p class=ad_div>" + topAd[3] +"</p><p class=ad_div>" + topAd[4] +"</p>";
    setMiddleBanner();
}
function SetOddsTopAd()
{
    document.getElementById("left_top_ad").innerHTML="<p class=ad_div>" + topAd[0] +"</p><p class=ad_div>" + topAd[1] +"</p><p class=ad_div>" + topAd[2] +"</p>";
    document.getElementById("right_top_ad").innerHTML="<p class=ad_div>" + topAd[3] +"</p><p class=ad_div>" + topAd[4] +"</p>";
    setMiddleBanner();
}