﻿var submenu=new Array()
//(bgu)
submenu[0]='<a href="/html/news/bgdt">B股动态</a> | <a href="/html/news/bgfx">B股分析</a> | <a href="/html/news/bgsj">B股数据</a> | <a href="/html/news/bgggyj">B股个股研究</a> | <a href="/html/news/bgcs">B股常识</a>';
//(shichang)
submenu[1]='<a href="http://live.skyzq.com">足球比分</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://live.skyzq.com/match_data_xml/over.html">完场比分</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://live.skyzq.com/nba.html">篮球比分</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.zq12.com">急速比分</a>';
//(gegu)
submenu[2]='<a href="http://live.skyzq.com/odds/">欧洲赔率</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://live.skyzq.com/odds/">亚洲赔率</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://live.skyzq.com/odds/">澳门赔率</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://live.skyzq.com/odds/">让球</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://live.skyzq.com/odds/">走地</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://live.skyzq.com/odds/">大小</a>';
//(zhuli)
submenu[3]='<a href="/html/pgts">苹果贴士</a> | <a href="/html/dfrb">东方日报</a> | <a href="/html/tycj">太阳拆局</a> | <a href="/html/tgtj">大公推介</a> | <a href="/html/cbts">成报贴士</a> | <a href="/html/sbbj">商报波经</a> | <a href="/html/amrb">澳门日报</a> | <a href="/html/xdzh">星岛综合</a>';
//(gugai)
submenu[4]='<a href="http://live.skyzq.com/wq.htm">网球比分</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="/html/wqxw">网球新闻</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="/html/jctp/wq">网球图片</a>';
//(quanzheng)
submenu[5]='<a href="/html/zcxw">足彩新闻</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/html/zcxw/zjtj">专家推荐</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/html/zcxw/dczc">单场足彩</a>';
//(sanban)
submenu[6]='<a href="/html/news/sbgg">三板公告</a>|<a href="/html/news/sbpl">三板评论</a>|<a href="/html/news/hqzb">行情周报</a>|<a href="/html/news/sbxw">三板新闻</a>|<a href="/html/news/sbgg">三板个股</a>|<a href="/html/news/jysj">交易数据</a>|<a href="/html/news/zdth">总体指标</a>|<a href="/html/news/znjfg">指南及法规</a>';
//(xingu)
submenu[7]='<a href="http://live.skyzq.com/nba.html">篮球比分</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="/html/lqxw">篮球新闻</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="/html/jctp/lq">篮球图片</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="/html/lqxw/nba">NBA</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="/html/lqxw/cba">CBA</a>';
//(zhongxiaoban)
submenu[8]='<a href="/html/news/zxbdt">中小板动态</a> | <a href="/html/news/zxbfx">中小板分析</a> | <a href="/html/news/zxbggdt">中小板个股动态</a> | <a href="/html/news/zxbggyj">中小板个股研究</a>';
//(yjbaogao)
submenu[9]='<a href="/html/zqxw/yc">英超</a> | <a href="/html/zqxw/yj">意甲</a> | <a href="/html/zqxw/dj">德甲</a> | <a href="/html/zqxw/xj">西甲</a> | <a href="/html/zqxw/yg">英冠</a> | <a href="/html/zqxw/pc">葡超</a> | <a href="/html/zqxw/zc">中超</a> | <a href="/html/zqxw/gjd">国家队</a> | <a href="/html/zqxw/gjb">冠军杯</a> | <a href="/html/zqxw/lmb">联盟杯</a> | <a href="/html/zqxw/ojs">欧锦赛</a>';
//(mrbidu)
submenu[10]='<a href="http://live.skyzq.com/">即时比分</a> | <a href="/html/zqtj">原创免费足球推介</a> | <a href="http://live.skyzq.com/odds/">足球赔率</a> | <a href="http://live.skyzq.com/odds/">澳门指数</a> | <a href="http://live.skyzq.com/match_data_xml/over.html">完场比分</a> | <a href="http://live.skyzq.com/match_data_xml/match_next7.html">一周赛程</a> | <a href="http://www.skyzq.com/site">网址导航</a> | <a href="http://live.skyzq.com/free.html">比分调用</a>';
//(hqgushi)
submenu[11]='<a href="/html/news/hqgszx">环球股市资讯</a> | <a href="/html/news/zhgntdt">中华概念股动态</a> | <a href="/html/news/hwsczs">海外市场指数</a> | <a href="/html/news/ggxx">个股信息</a> | <a href="/html/news/mggs">美国股市</a>';
//(gpxueyuan)
submenu[12]='<a href="/html/jctp">精彩图片</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="/html/jctp/xg">性感体坛</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="/html/jctp/zq">足球图片</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="/html/jctp/lq">蓝球图片</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="/html/jctp/wq">网球图片</a>';
//(data)
submenu[13]='<a href="/html/zqqb">足球情报</a> | <a href="/html/zsck">指数参考</a> | <a href="/html/sqdt">赛前动态</a> | <a href="/html/zjjp">终极解盘</a> | <a href="/html/pkfx">盘口分析</a> | <a href="/html/mjtj">名家推介</a> | <a href="/html/mbtj">名报推介</a>';

submenu[999]='&nbsp;&nbsp;'
//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=500

/////No need to edit beyond here

var menuobj;
//还原ID号
var hy=""

function showit(which,which2){
    hy=which2;
    clear_delayhide();
    thecontent=(which==-1)? submenu[hy] : submenu[which];
    if (document.getElementById||document.all)
    menuobj.innerHTML=thecontent;
    else if (document.layers){
        menuobj.document.write(thecontent);
        menuobj.document.close();
    }
    document.getElementById('menu_stock_'+hy).style.color='red';
}
function resetit(e){
    if (document.all&&!menuobj.contains(e.toElement))
    delayhide=setTimeout("showit(-1,hy)",delay_hide)
    else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
    delayhide=setTimeout("showit(-1,hy)",delay_hide)
}

function clear_delayhide(){
    if (window.delayhide)
    clearTimeout(delayhide)
}

function contains_ns6(a, b) {
    while (b.parentNode)
    if ((b = b.parentNode) == a)
    return true;
    return false;
}

//大盘走势图js实现..//

var z=0;
var sn=0;
function changePic(n)
{
    sn=n;
    var picArr=["http://quote.stock.hexun.com/WebPic/SH/Min/000001.gif","http://quote.stock.hexun.com/WebPic/SZ/Min/399001.gif","http://quote.stock.hexun.com/WebPic/SH/Min/000300_www.gif","http://quote.stock.hexun.com/WebPic/SH/Min/000003.gif","http://quote.stock.hexun.com/WebPic/SZ/Min/399108.gif"];
    changeColor(sn);
    var img=document.getElementById('pic_image');
    var imgObj = new Image();
    imgObj.src=picArr[sn];
    img.src=imgObj.src;
    z++;
    if(2>=z){
        setTimeout("changePic(sn)",500);
    }else{
        z=0;
    }
}
function changeColor(n)
{
    var div_n;
    for(var i=0;i<5;i++)
    {
        if(i==n){
            div_n=document.getElementById('div_pic_'+i);
            div_n.style.backgroundColor='#FFFFFF';
        }else{
            div_n=document.getElementById('div_pic_'+i);
            div_n.style.backgroundColor='#E8E8E8';
        }
    }
}