﻿function gettop(a)
{
	var html="";
	html+='<table width="100%" border="0" cellspacing="0" cellpadding="0">';
	html+='<tr>';
	html+='<td width="260"><img src="/style/images/logo.jpg" width="240" height="107" /></td>';
	html+='<td>';
	html+='<div class="center_list_">';
	html+='<div id="center_list_tb_" class="center_list_tb_">';
	html+='<ul>';
	html+='<li id="center_list_tb_1" class="center_list_normaltab" onmouseover="center_list_HoverLi(1);" onclick="clickgo(\'/index.php\')">首页</li>';
	html+='<li id="center_list_tb_2" class="center_list_normaltab" onmouseover="center_list_HoverLi(2);" onclick="clickgo(\'/Live/\')">即时比分</li>';
	html+='<li id="center_list_tb_3" class="center_list_normaltab" onmouseover="center_list_HoverLi(3);" onclick="clickgo(\'/Odds/\')">即时赔率</li>';
	html+='<li id="center_list_tb_4" class="center_list_normaltab" onmouseover="center_list_HoverLi(4);" onclick="clickgo(\'/News\')">新闻资讯</li>';
	html+='<li id="center_list_tb_5" class="center_list_normaltab" onmouseover="center_list_HoverLi(5);" onclick="clickgo(\'/Tips\')"><font color=#FF7011>竞猜会馆</font></li>';
	html+='<li id="center_list_tb_6" class="center_list_normaltab" onmouseover="center_list_HoverLi(6);" onclick="clickgo(\'/Data\')">资料库</li>';
	html+='<li id="center_list_tb_7" class="center_list_normaltab" onmouseover="center_list_HoverLi(7);" onclick="clickgo(\'/video\')">赛事视频</li>';
	html+='<li id="center_list_tb_8" class="center_list_normaltab" onmouseover="center_list_HoverLi(8);" onclick="clickgo(\'/bbs88\')">球迷社区</li>';
	html+='</ul>';
	html+='</div>';
	html+='<div class="center_list_ctt">';
	html+='<div class="center_list_undis" id="center_list_tbc_01"></div>';
	html+='<div class="center_list_undis" id="center_list_tbc_02"></div>';
	html+='<div class="center_list_undis" id="center_list_tbc_03"></div>';
	html+='<div class="center_list_undis" id="center_list_tbc_04"></div>';
	html+='<div class="center_list_undis" id="center_list_tbc_05"></div>';
	html+='<div class="center_list_undis" id="center_list_tbc_06"></div>';
	html+='<div class="center_list_undis" id="center_list_tbc_07"></div>';
	html+='<div class="center_list_undis" id="center_list_tbc_08"></div>';
	html+='</div>';
	html+='</div>';
	html+='</td>';
	html+='</tr>';
	html+='</table>';
	html+='<div id="" class="web_dh"></div>';
    document.getElementById(a).innerHTML=html;
	
	//这里初始化下拉菜单
	
	var cur_url = document.URL;//http://www.100e.com/booklib/detail/
	var cur_url_arr = cur_url.split('/');
	var cur_path = cur_url_arr[3];//booklib
	var tar_id = null ;
	switch(cur_path.toLowerCase())
	{
		
		case "live" :
			tar_id = '2';
			break;
		case "odds" :
			tar_id = '3';
			break;
		case "odds1" :
			tar_id = '3';
			break;			
		case "news" :
			tar_id = '4';
			break;
		case "user" :
			tar_id = '5';
			break;
		case "tips" :
			tar_id = '5';
			break;
		case "data" :
			tar_id = '6';
		break;
		case "search" :
			tar_id = '7';
		break;
		default:
			tar_id='1';
			break;
	}
	document.getElementById('center_list_tb_'+tar_id+'').className='center_list_hovertab';
	document.getElementById('center_list_tbc_0'+tar_id+'').className='center_list_dis';
	document.getElementById('center_list_tbc_0'+tar_id+'').innerHTML=getnav("n"+tar_id+"");
	//创建用户的信息表
	
	
}

function getAd(a)
{
   //开始拼凑XML文件
    var html="";
	html='<iframe align="middle" marginwidth=0 marginheight=0 src="/ad.php?type='+a+'" width="760" frameborder=0  scrolling=no height=60></iframe>';
	$("ad_"+a).innerHTML=html;	
}

function clickgoSearch()
{
  location.href="/tips/game.html?4";	
}

function getAd2(a)
{
     //开始拼凑XML文件
    var html="";
    Ajax("post","/data.php?type=getAd&thetype="+a+"",showMsg);
	function showMsg(xmlHttp){
		if(xmlHttp.readyState==4){		
			var root=xmlHttp.responseXML.documentElement;
			if(root.hasChildNodes)
			{
				var items=root.childNodes;
				for(var i=0;i<items.length;i++)
				{
					var pic=items[i].getAttribute("pic");
				    var url=items[i].getAttribute("link");
				    if(url=="") url="#";
					html+="<a href="+url+" target='_blank'><img src="+pic+" border=0></a><br>";
				}
				$("ad_"+a).innerHTML=html;	
			}
		}
	}	
}


function getAd_more(a)
{
     //开始拼凑XML文件
    var html="";
    Ajax("post","/data.php?type=getAd&thetype="+a+"",showMsg);
	function showMsg(xmlHttp){
		if(xmlHttp.readyState==4){		
			var root=xmlHttp.responseXML.documentElement;
			if(root.hasChildNodes)
			{
				var items=root.childNodes;
				html+="<div class=adclass><ul>";
				for(var i=0;i<items.length;i++)
				{
					var pic=items[i].getAttribute("pic");
				    var url=items[i].getAttribute("link");
				    if(url=="") url="#";
					html+="<li><a href="+url+" target='_blank'><img src="+pic+" border=0 width='82px'></a></li>";
				}
				html+="</ul></div>";
				$("ad_"+a).innerHTML=html;	
			}
		}
	}	
}

function getfoot(a)
{
	var html="";
	html+='<div style="background-image:url(/style/images/footbg.gif);"><div id="" class="foot">';
	html+='<table width="960" border="0" align="center" cellpadding="0" cellspacing="0"><tr>';
	html+='<td width="20%" rowspan="2"><div align="center"><img src="/style/images/police.gif" style="width:75px;height:75px"></div></td>';
	html+='<td height="44" colspan="2" style="color:#ffffff">-<a href="/config-str1">关于我们</a>  -<a href="/config-str2">法律声明</a>  -<a href="/config-str3">联系我们</a>  -<a href="/index.php">返回首页</a>-<A href="javascript:window.external.addFavorite(\'http://www.90oo.com\', \'90oo足球网\')" target=_self>加入收藏</a> &nbsp;服务热线：13706967392 QQ:733738 <A href="http://www.miibeian.gov.cn" target="_blank">闽ICP证：06013119号</A></td>';
	html+='</tr><tr><td colspan="2"  valign="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&copy;2005-2008 www.90oo.com All Rights Reserved&nbsp;</td>';
	html+='</tr><tr><td>&nbsp;</td><td width="32%">&nbsp;</td>';
	html+='<td width="53%"></td>';
	html+='</tr></table>';
	html+='</div></div>';
	document.getElementById(a).innerHTML=html;
}
//tap
function changeTab(parentObj,itemSum,selectNum,classShow,classNormal,itemPrefix)
{
	for(var i=0;i<itemSum;i++)
	{
		document.getElementById(itemPrefix+i).className=classNormal;
	}
	document.getElementById(itemPrefix+selectNum).className=classShow;
}
function changeTabTag(parentObj,selectId,classShow,classNormal,itemTagName)
{
	var itemStr="li";
	if(itemTagName) itemStr=itemTagName;
	var items=parentObj.getElementsByTagName(itemStr);
	for(var i=0;i<items.length;i++)
	{
		items[i].className=classNormal;
	}
	document.getElementById(selectId).className=classShow;
}

function center_list_HoverLi(n)
{ 
	var a=n;
	for(var i=1;i<=8;i++)
	{
	document.getElementById('center_list_tb_'+i).className='center_list_normaltab';
	document.getElementById('center_list_tbc_0'+i).className='center_list_undis';
	}
	document.getElementById('center_list_tb_'+n).className='center_list_hovertab'; 
	document.getElementById('center_list_tbc_0'+n).className='center_list_dis';
	document.getElementById("center_list_tbc_0"+n+"").innerHTML=getnav("n"+n+"");
} 

function lot_list_HoverLi(n,nn)
{ 
	var a=n;
	for(var i=1;i<=7;i++)
	{
	document.getElementById('lot_list_tb_'+i).className='lot_list_normaltab';
	document.getElementById('lot_list_tbc_0'+i).className='lot_list_undis';
	}
	document.getElementById('lot_list_tb_'+n).className='lot_list_hovertab'; 
	document.getElementById('lot_list_tbc_0'+n).className='lot_ist_dis';
	showNews($('lot_list_tbc_0'+n),nn);
	//document.getElementById("lot_list_tbc_0"+n+"").innerHTML=getnav("n"+n+"");
} 

function foot_list_HoverLi(n,nn)
{ 
	var a=n;
	for(var i=1;i<=7;i++)
	{
	document.getElementById('foot_list_tb_'+i).className='foot_list_normaltab';
	document.getElementById('foot_list_tbc_0'+i).className='foot_list_undis';
	}
	document.getElementById('foot_list_tb_'+n).className='foot_list_hovertab'; 
	document.getElementById('foot_list_tbc_0'+n).className='foot_ist_dis';
	showNews($('foot_list_tbc_0'+n),nn);
	//document.getElementById("foot_list_tbc_0"+n+"").innerHTML=getnav("n"+n+"");
} 

function star_list_HoverLi(n)
{ 
	var a=n;
	for(var i=1;i<=3;i++)
	{
	document.getElementById('star_list_tb_'+i).className='star_list_normaltab';
	document.getElementById('star_list_tbc_0'+i).className='star_list_undis';
	}
	document.getElementById('star_list_tb_'+n).className='star_list_hovertab'; 
	document.getElementById('star_list_tbc_0'+n).className='star_ist_dis';
	//document.getElementById("star_list_tbc_0"+n+"").innerHTML=getnav("n"+n+"");
} 

function pl50_list_HoverLi(n)
{ 
	var a=n;
	for(var i=1;i<=3;i++)
	{
	document.getElementById('pl50_list_tb_'+i).className='pl50_list_normaltab';
	document.getElementById('pl50_list_tbc_0'+i).className='pl50_list_undis';
	}
	document.getElementById('pl50_list_tb_'+n).className='pl50_list_hovertab'; 
	document.getElementById('pl50_list_tbc_0'+n).className='pl50_ist_dis';
	//document.getElementById("star_list_tbc_0"+n+"").innerHTML=getnav("n"+n+"");
} 
function pl15_list_HoverLi(n)
{ 
	var a=n;
	for(var i=1;i<=3;i++)
	{
	document.getElementById('pl15_list_tb_'+i).className='pl15_list_normaltab';
	document.getElementById('pl15_list_tbc_0'+i).className='pl15_list_undis';
	}
	document.getElementById('pl15_list_tb_'+n).className='pl15_list_hovertab'; 
	document.getElementById('pl15_list_tbc_0'+n).className='pl15_ist_dis';
	//document.getElementById("star_list_tbc_0"+n+"").innerHTML=getnav("n"+n+"");
} 
function tipspl15_list_HoverLi(n)
{ 
	var a=n;
	for(var i=1;i<=3;i++)
	{
	document.getElementById('tipspl15_list_tb_'+i).className='tipspl15_list_normaltab';
	document.getElementById('tipspl15_list_tbc_0'+i).className='tipspl15_list_undis';
	}
	document.getElementById('tipspl15_list_tb_'+n).className='tipspl15_list_hovertab'; 
	document.getElementById('tipspl15_list_tbc_0'+n).className='tipspl15_list_dis';
} 
function tipspl50_list_HoverLi(n)
{ 
	var a=n;
	for(var i=1;i<=3;i++)
	{
	document.getElementById('tipspl50_list_tb_'+i).className='tipspl50_list_normaltab';
	document.getElementById('tipspl50_list_tbc_0'+i).className='tipspl50_list_undis';
	}
	document.getElementById('tipspl50_list_tb_'+n).className='tipspl50_list_hovertab'; 
	document.getElementById('tipspl50_list_tbc_0'+n).className='pl15_list_dis';
} 

function tipspall_list_HoverLi(n,obj)
{ 
	var a=n;
	for(var i=1;i<=3;i++)
	{
	document.getElementById(obj+'_list_tb_'+i).className='tipspl50_list_normaltab';
	document.getElementById(obj+'_list_tbc_0'+i).className='tipspl50_list_undis';
	}
	document.getElementById(obj+'_list_tb_'+n).className='tipspl50_list_hovertab'; 
	document.getElementById(obj+'_list_tbc_0'+n).className='tipspl50_list_dis';
} 

function tips_list_HoverLi(n)
{ 
	var a=n;
	for(var i=1;i<=5;i++)
	{
	document.getElementById('tips_list_tb_'+i).className='tips_list_normaltab';
	}
	document.getElementById('tips_list_tb_'+n).className='tips_list_hovertab'; 
} 

function his_tips_list_HoverLi(n)
{ 
	var a=n;
	for(var i=1;i<=5;i++)
	{
	document.getElementById('his_tips_list_tb_'+i).className='tips_list_normaltab';
	}
	document.getElementById('his_tips_list_tb_'+n).className='tips_list_hovertab'; 
} 
/*心水之星滑动门*/
function hotp_list_HoverLi(n)
{ 
	var a=n;
	for(var i=1;i<=4;i++)
	{
	document.getElementById('hotp_list_tb_'+i).className='hotp_list_normaltab';
	}
	document.getElementById('hotp_list_tb_'+n).className='hotp_list_hovertab'; 
} 



function clickgo(url){ 
   window.top.location.href=url;
} 
function clickgo_blank(url){ 
   window.open(url);
} 

function getnav(n)
{
	   var navtitle="";
       switch(n)
       {
	    case "n1" :
		    navtitle+='<div class="tipsclass">';
			navtitle+='<ul>';
			navtitle+='<li><a href="/news/other.html?1&头条">头条</a></li>';
			navtitle+='<li><a href="/news/other.html?2&滚动公告">滚动公告</a></li>';
			navtitle+='<li><a href="/news/other.html?3&辣评">辣评</a></li>';
			navtitle+='<li><a href="/news/other.html?4&预测">预测</a></li>';
			navtitle+='<li><a href="/news/other.html?5&图片">图片</a></li>';
			navtitle+='<li><a href="/news/other.html?6&要闻">要闻</a></li>';		
			navtitle+='</ul>';
			navtitle+='</div>';
		break;
		case "n2" :
        	navtitle+='<div class="tipsclass">';
			navtitle+='<ul>';
			navtitle+='<li><a href="/live/index.html">足球比分</a></li>';
			navtitle+='<li><a href="/live_other/indexb.htm">篮球比分</a></li>';
			navtitle+='<li><a href="/live_other/indexwq.htm">网球比分</a></li>';
			navtitle+='<li><a href="/live/over.html">完场比分</a></li>';
			navtitle+='<li><a href="/live/match_next7.html">明日赛事</a></li>';
			navtitle+='</ul>';
			navtitle+='</div>';
		break;
		case "n3" :
		    navtitle+='<div class="oddsclass">';
			navtitle+='<ul>';
			navtitle+='<li><a href="/odds/odds.html?1">澳彩</a></li>';
			navtitle+='<li><a href="/odds/odds.html?99">亚指比较</a></li>';
			navtitle+='<li><a href="/odds/odds.html?98">欧赔比较</a></li>';
			navtitle+='<li><a href="/odds/odds.html?97">大小比较</a></li>';
			navtitle+='<li><a href="/odds1/cn/index.htm">极速澳盘</a></li>';
			navtitle+='</ul>';
			navtitle+='</div>';
		break;
		case "n4" :
			navtitle+='<div class="newsclass">';
			navtitle+='<ul>';
			navtitle+='<li><a href="/tips/index.html">花花</a></li>';
			navtitle+='<li><a href="/news/list.html?49&英超">英超</a></li>';
			navtitle+='<li><a href="/news/list.html?50&意甲">意甲</a></li>';
			navtitle+='<li><a href="/news/list.html?51&西甲" >西甲</a></li>';
			navtitle+='<li><a href="/news/list.html?52&德甲">德甲</a></li>';
			navtitle+='<li><a href="/news/list.html?47&国际">国际</a></li>';
			navtitle+='<li><a href="/news/list.html?48&国内">国内</a></li>';
			navtitle+='<li><a href="/news/list.html?5&网站贴士">贴士</a></li>';
			navtitle+='<li><a href="/news/list.html?11&指数分析">分析</a></li>';
			navtitle+='<li><a href="/news/list.html?45&篮球新闻">篮球</a></li>';
			navtitle+='<li><a href="/news/list.html?46&足彩新闻">足彩</a></li>';
			navtitle+='<li><a href="/news/pic.html" target="_blank">图片</a></li>';
			navtitle+='</ul>';
			navtitle+='</div>';
		break;
		case "n5" :
			navtitle+='<div class="tipsclass">';
			navtitle+='<ul>';
			navtitle+='<li><a href="/tips/index.html">竞猜首页</a></li>';
			navtitle+='<li><a href="/config-str5">游戏规则</a></li>';
			navtitle+='<li><a href="/user/">我的帐户</a></li>';
			navtitle+='<li><a href="/pay.html" target="_blank">帐户充值</a></li>';
			navtitle+='<li><a href="/tips/game.html?1">竞猜重点</a></li>';
			navtitle+='<li><a href="/tips/event.html"><font color="red">重点周榜</font></a></li>';
			navtitle+='<li><a href="/tips/list.html">排行榜</a></li>';
			navtitle+='<li><a href="/live/index.htm">即时比分</a></li>';
			navtitle+='<li><a href="/live/finished.asp">完场比分</a></li>';
			navtitle+='<li onclick=clickgoSearch();>搜索</li>';
			navtitle+='</ul>';
			navtitle+='</div>';
		break;
		case "n6" ://心水页面
			 navtitle+='<div class="dataNav">';
			navtitle+='<ul>';
			navtitle+='<li><a href="/live/dataL.asp?year=2008-2009/36.htm">联赛球路</a></li>';
			navtitle+='<li><a href="/live/dataS.asp?year=2008-2009/36.htm">积分榜</a></li>';
			navtitle+='</ul>';
			navtitle+='</div>';
		
		break;
		case "n7" ://心水页面
		    navtitle+='<div class="videoNav">';
			navtitle+='<ul>';
			navtitle+='<li><a href="/video/index.html">精彩视频</a></li>';
			navtitle+='<li><a href="/video/download.html">下载区</a></li>';
			//navtitle+='<li><a href="/zhibo/">视频直播</a></li>';
			navtitle+='</ul>';
			navtitle+='</div>';
		break;
		case "n8" ://心水页面
		    navtitle+='<div class="sNav">';
			navtitle+='<ul>';
			navtitle+='<li></li>';
			navtitle+='<li><a href="/bbs88/">访问社区</a></li>';
			navtitle+='</ul>';
			navtitle+='</div>';
		break;		
	    default:
		break;
       }
	   return navtitle;
}
