

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; }
}

//显示进球窗口
var startani_C,startani_A,startani_B,pop_TC

function ShowCHWindow(str,matchnum)
{
imagewidth=520;
imageheight=28+34*matchnum ;
var st

st="<table width=520 border=0 cellpadding=1 cellspacing=0 bgcolor=#990000>"
st=st + "  <tr><td><table width=518 border=0 cellpadding=0 cellspacing=0>"
st=st + "      <tr><td colspan=5 align=center style='color:white' height=28><b>365比分 入球提示</b></td></tr>"

st=st + str
st=st + "    </table></td>"
st=st + "  </tr>"
st=st + "</table>"  

st=st + "<style type='text/css'>"
st=st + "td {font-family: 'Tahoma', '宋体';font-size: 13px;}"
st=st + ".line td { border-bottom:solid 1px #FFD8CA; line-height:32px;}"
st=st + "</style>"

oPopup = window.createPopup();
oPopupBody = oPopup.document.body;
oPopupBody.bgColor="white";

oPopupBody.innerHTML = st
x=280;
y=1;

oPopupBody.style.cursor="pointer";
oPopup.document.body.onmouseover=new Function("clearTimeout(startani_A)");
oPopup.document.body.onmouseout=pop;    
oPopup.document.body.onclick=dismisspopup;
oPopup.document.body.oncontextmenu=dismisspopup;
pop_TC=100;
pop();
}

function pop(){
  try{
	oPopup.show(x,y,imagewidth, imageheight);
	startani_A=setTimeout("pop()",100);  //显示15秒
	if(pop_TC<0){dismisspopup();};
	pop_TC=pop_TC-1;
  }catch(e){}
}
function dismisspopup()
{	clearTimeout(startani_A);
	oPopup.hide();
}


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 + "=" + escape(value) + expire; 
}
var zXml = {
    useActiveX: (typeof ActiveXObject != "undefined"),
    useXmlHttp: (typeof XMLHttpRequest != "undefined")
};

function showgoallist(ID)
{
        window.open("detail2.asp?id=" + ID , "","scrollbars=yes,resizable=yes,width=670, height=700");
}
function  analysis(ID)
{
          var theURL="analysis2.asp?id=" + ID ;
	window.open(theURL);
}
function AsianOdds(ID)
{
          var theURL="AsianOdds_n.asp?id="  +ID;
	window.open(theURL);
}

function EuropeOdds(ID)
{
          var theURL="oddslist2.asp?id=" + ID ;
	window.open(theURL);
}

function TeamPanlu_10(ID)
{
    var	theURL="panlu2.asp?id=" + ID ;
	window.open(theURL,"","width=640,height=596,top=10,left=100,resizable=yes,scrollbars=yes");
}
function advices(ID)
{
    var	theURL="LiveInformation.aspx?ID=" + ID;
	window.open(theURL);
}
function  news(ID){
//var theURL="http://wins.1386.com/exp" + ID + ".htm";
  var theURL="exp.asp?id=" + ID ;
	window.open(theURL)
}


function dxp(ID){
var theURL="OverDown_n2.asp?id="+ID;
window.open(theURL);
}

//定义隐藏的赛事ID变量
var Txlive_checkId ='';
writeCookie("Txlive_hiddenID", '_'); 
//

zXml.ARR_XMLHTTP_VERS = ["MSXML2.XmlHttp.6.0","MSXML2.XmlHttp.3.0"];

function zXmlHttp() {}

zXmlHttp.createRequest = function ()
{
    if (zXml.useXmlHttp)  return new XMLHttpRequest(); 

    if(zXml.useActiveX)  //IE < 7.0 = use ActiveX
    {  
        if (!zXml.XMLHTTP_VER) {
            for (var i=0; i < zXml.ARR_XMLHTTP_VERS.length; i++) {
                try {
                    new ActiveXObject(zXml.ARR_XMLHTTP_VERS[i]);
                    zXml.XMLHTTP_VER = zXml.ARR_XMLHTTP_VERS[i];
                    break;
                } catch (oError) {}
            }
        }        
        if (zXml.XMLHTTP_VER) return new ActiveXObject(zXml.XMLHTTP_VER);
    } 
    alert("对不起，您的电脑不支持 XML 插件，请安装好或升级浏览器。");
};
