﻿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.ball365.com.cn/' target=_blank><img src='http://img2.betad.cn/ad/inder.gif' width='470' height='48' /></a>  <a href='http://www.ra6899.com/' target=_blank><img src='http://bak.betad.cn/ad/ra6899.gif' width='470' height='48' /></a></div>");
//document.writeln("<div id='ad'><a href='http://www.ball365.com.cn/' target=_blank><img src='http://img2.betad.cn/ad/indexhl3223.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://odd.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.78877888.com/' target=_blank><img src='http://bak.betad.cn/ad/78877888.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=4;
var adinfo1=new Array();
var adinfo2=new Array();
//var adinfo3=new Array();

adinfo1[0]="http://www.zq336.com/";
adinfo2[0]="<font style='background-color:yellow' color=red>今日协议波胆111倍100%，协议单场，免费试料</font>";
adinfo1[1]="http://www.888ck.com/";
adinfo2[1]="<font style='background-color:yellow' color=red>迎接2010激情世界杯=葡京国际今日波胆2:4公开</font>";
adinfo1[2]="http://www.3651688.com/";
adinfo2[2]="<font style='background-color:yellow' color=red>赛前公开，现场操盘录象，终极验证，见证奇迹！</font>";
adinfo1[3]="http://www.zq398.com/";
adinfo2[3]="<font style='background-color:yellow' color=red>首先发999到13597003456即可获得高倍波胆一场</font>";


//中间的图片广告，比赛第三场下面
var imgad2=new Array();
//imgad2[0]="<a href='http://www.3beebet.com/Coop=1073&Lang=CHS' target=_blank><img //src='http://bak.betad.cn/ad/no3(690-40)(1).gif'></a>";
//imgad2[0]="<a href='http://glasses.class01.com.cn/brand/sunglass/' target=_blank><img src='http://img.bet007.com/ad/class01.gif' width=690></a>";


var topAd=new Array(); //两边固定
topAd[0]="<a href='http://www.31378.com/' target=_blank><img src='http://img2.betad.cn/ad/31378.gif' border='0' width=120 height=70></a>";
topAd[1]="<a href='http://www.852678.com/' target=_blank><img src='http://img2.betad.cn/ad/indexl2.gif' border='0' width=120 height=70></a>";
topAd[2]="<a href='http://www.zq0005.com/' target=_blank><img src='http://img2.betad.cn/ad/zq0005.gif' border='0' width=120 height=70></a>";
topAd[3]="<a href='http://www.cn559.com' target=_blank><img src='http://img2.betad.cn/ad/sdrwr.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.daxiaoqiu.com/' target='_blank'><img src='http://img2.betad.cn/ad/wergrrw.gif' border=0 width=120 height=70></a>";
left_layer[0]="<a href='http://www.888tyc.com/' target=_blank><img src='http://bak.betad.cn/ad/ri1111.gif' width=120 height=70></a>";
left_layer[1]="<a href='http://www.aobo999.com/user_a99/index.php?referral=709' target='_blank'><img src='http://bak.betad.cn/ad/aus888.gif' border=0 width=120 height=70></a>";
left_layer[2]="<a href='http://www.daxiaoqiu.com/' target='_blank'><img src='http://img2.betad.cn/ad/wergrrw.gif' border=0 width=120 height=70></a>";
left_layer[3]="<a href='http://www.zq8878.com/' target='_blank'><img src='http://bak.betad.cn/ad/zq8878.gif' border=0 width=120 height=70></a>";
left_layer[4]="<a href='http://www.zq101.cn/' target='_blank'><img src='http://img2.betad.cn/ad/zq03x.gif' border=0 width=120 height=70></a>"
left_layer[5]="<a href='http://www.bqvpd.net/' target='_blank'><img src='http://img2.betad.cn/ad/inas.gif' border=0 width=120 height=70></a>"

//右边浮动
right_layer[0]="<a href='http://www.zq9919.com/' target=_blank><img src='http://bak.betad.cn/ad/fg23.gif' border='0' width=120 height=70></a>";
right_layer[1]="<a href='http://www.zq938.com/' target=_blank><img src='http://img2.betad.cn/ad/zq938.gif' border='0' width=120 height=70></a>";
right_layer[2]="<a href='http://vip.836998.com/' target='_blank'><img src='http://bak.betad.cn/ad/vip836998.gif' border=0 width=120 height=70></a>";
right_layer[3]="<a href='http://www.yb8818.com/' target='_blank'><img src='http://bak.betad.cn/ad/gdfs.gif' border=0 width=120 height=70></a>";
right_layer[4]="<a href='http://www.zq679.com/' target='_blank'><img src='http://bak.betad.cn/ad/xdf6.gif' border=0 width=120 height=70></a>";
right_layer[5]="<a href='http://www.zq811.com/' target='_blank'><img src='http://bak.betad.cn/ad/tdma.gif' border=0 width=120 height=70></a>";

//中间 banner
function setMiddleBanner(){
    //document.getElementById("midAd1").innerHTML="<a href='http://www.ra6899.com/' target=_blank><img src='http://bak.betad.cn/ad/ra8686.gif' width=690 height=40 border=0 /></a>"
    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=3;
var left_layer_top=230+imgheight*left_ad_count;
var right_layer_top=230+imgheight*right_ad_count;
if(window.location.href.toLowerCase().indexOf("oldodds.aspx")>0 || window.location.href.toLowerCase().indexOf("company.aspx")>0){
    left_layer_top=120+imgheight*left_ad_count;
    right_layer_top=120+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:"+(right_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+80+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+80+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(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>";
    setMiddleBanner();
}
function SetOddsTopAd()
{
    document.getElementById("left_top_ad").innerHTML="<p class=ad_div>" + topAd[0] +"</p><p class=ad_div>" + topAd[1] +"</p>";
    document.getElementById("right_top_ad").innerHTML="<p class=ad_div>" + topAd[2] +"</p><p class=ad_div>" + topAd[3] +"</p>";
    setMiddleBanner();
}