网站实时行情

因FLASH关闭 原行情用不了

实际效果

网页代码

<head>
    <title>XXX有限公司</title>
    <meta name="keywords" content="XXXX有限公司" />
    <meta name="description" content="XXX有限公司创建于19XX年XX月1X日,20XX年1X月X9日在深圳交易所挂牌上市(股票代码XXXXX)。" />
  <link rel="Stylesheet" type="text/css" href="hq.css"/>
  <script type="text/javascript" src="swfobject2.2.js"></script>
  <script type="text/javascript" src="jquery.js"></script>
  <style type="text/css">
    .kke_menus_tab_edage {
      float: left;
    }
    .kke_cfg_ctn {
      display: none;
    }
  </style>
  <script type="text/javascript">
      var papercode = 'shXXXXX' //在此输入股票代码
  </script>
</head>
    
<body>
<div class="block_hq clearfix">
  <div class="hq_L">
    <!--行情概况头部 begin-->
    <div class="hq_details has_limit" id="hq" style="display:none;">
      <div class="price_time">
        <div class="price clearfix" id="trading">
          <div class="change">
            <div id="change" class="@UD_change@">@change@</div>
            <div id="changeP" class="@UD_change@">@changeP@</div>
          </div>
          <div id="arrow" class="arrow arrow_@UD_change@"></div>
          <div id="price" class="@UD_change@">@now@</div>
          <div class="ud_limit" id="ud_limie">
            <div>涨停:@up_limit@</div>
            <div>跌停:@down_limit@</div>
          </div>
        </div>
        <div class="price" id="closed">
          停牌
        </div>
        <div class="time" id="hqTime">
          @date@ @time@
        </div>
        <div class="time blue_l" id="hqPause">临时停牌</div>
      </div>
      <div class="other" id="hqDetails">
        <table border="0" cellpadding="0" cellspacing="0">
          <colgroup>
            <col width="60"/>
            <col width="50"/>
            <col width="60"/>
            <col width="70"/>
            <col width="70"/>
            <col width="40"/>
          </colgroup>
          <tbody>
          <tr>
            <th>今&nbsp;&nbsp;开:</th>
            <td class="@UD_open_color@">@open@</td>
            <th>成交量:</th>
            <td>@volume@</td>
            <th>振&nbsp;&nbsp;幅:</th>
            <td>@swing@</td>
          </tr>
          <tr>
            <th>最&nbsp;&nbsp;高:</th>
            <td class="@UD_high_color@">@high@</td>
            <th>成交额:</th>
            <td>@amount@</td>
            <th>换手率:</th>
            <td>@turnover@</td>
          </tr>
          <tr>
            <th>最&nbsp;&nbsp;低:</th>
            <td class="@UD_low_color@">@low@</td>
            <th>总市值:</th>
            <td>@totalShare@</td>
            <th>市净率:</th>
            <td>@pb@</td>
          </tr>
          <tr>
            <th>昨&nbsp;&nbsp;收:</th>
            <td>@preClose@</td>
            <th>流通市值:</th>
            <td>@cvs@</td>
            <th>市盈率<sup>TTM</sup>:</th>
            <td>@pe@</td>
          </tr>
          </tbody>
        </table>
      </div>
    </div>
    <!--行情概况头部 end-->
    <div id="flashOK">
      <div class="flash">
        <div id="flash"></div>
      </div>
      <div class="compare blue_d a_blue_d_all clearfix">
        <div class="title">走势对比:</div>
        <div class="cont">
          <div class="compare_msg" id="compareMSG"></div>
          <div class="index" id="compareIndex">
            大盘指数
            <div class="is">
              <div class="i"><a href="javascript:void(0)" symbol="sh000001">上证指数</a></div>
              <div class="i"><a href="javascript:void(0)" symbol="sz399001">深证指数</a></div>
              <div class="i"><a href="javascript:void(0)" symbol="sh000300">沪深300</a></div>
            </div>
          </div>
          <input type="text" class="txt" id="compareTxt" onfocus="this.style.color='#333';"
                 onblur="if(this.value == '')this.style.color='';"/><a href="javascript:void(0)" id="compareBtn">比较</a>
        </div>
      </div>
    </div>

    <div class="" id="picContainer">
      <div class="pic_tabs">
        <div class="tabs">
          <div class="tab">分时</div>
          <div class="tab">日K</div>
          <div class="tab">周K</div>
          <div class="tab">月K</div>
          <div class="tab">K线</div>
          <div class="tab">复权K线</div>
          <div class="tab">技术图</div>
        </div>
      </div>
      <div class="cont"><img url="https://image2.sinajs.cn/newchart/min/n/$symbol.gif"/></div>
      <div class="cont"><img url="https://image2.sinajs.cn/newchart/daily/n/$symbol.gif"/></div>
      <div class="cont"><img url="https://image2.sinajs.cn/newchart/weekly/n/$symbol.gif"/></div>
      <div class="cont"><img url="https://image2.sinajs.cn/newchart/monthly/n/$symbol.gif"/></div>
      <div class="cont">
        <select id="selectImgK">
          <option value="mink5">5分K线</option>
          <option value="mink15">15分K线</option>
          <option value="mink30">30分K线</option>
          <option value="daily_0">1月K线</option>
          <option value="daily_1">3月K线</option>
          <option value="daily">90天K线</option>
          <option value="daily_2">半年K线</option>
          <option value="daily_3">1年K线</option>
          <option value="daily_4">2年K线</option>
          <option value="daily_5">3年K线</option>
          <option value="weekly">周K线</option>
          <option value="monthly">月K线</option>
        </select>
        <img url="https://image2.sinajs.cn/newchart/mink5/n/$symbol.gif" id="imgK"/>
      </div>
      <div class="cont">
        <select id="selectImgFqK">
          <option value="fq_daily">日K线</option>
          <option value="fq_daily_0">1月K线</option>
          <option value="fq_daily_1">3月K线</option>
          <option value="fq_daily">90天K线</option>
          <option value="fq_daily_2">半年K线</option>
          <option value="fq_daily_3">1年K线</option>
          <option value="fq_daily_4">2年K线</option>
          <option value="fq_daily_5">3年K线</option>
        </select>
        <img url="https://image2.sinajs.cn/newchart/fq_daily/n/$symbol.gif" id="imgFqK"/>
      </div>
      <div class="cont">
        <select id="selectImgJS">
          <option value="macd">MACD</option>
          <option value="trix">TRIX</option>
          <option value="dmi">DMI</option>
          <option value="expma">EXPMA</option>
          <option value="brar">BRAR</option>
          <option value="cr">CR</option>
          <option value="vr">VR</option>
          <option value="psy">PSY</option>
          <option value="obv">OBV</option>
          <option value="asi">ASI</option>
          <option value="emv">EMV</option>
          <option value="wvad">WVAD</option>
          <option value="rsi">RSI</option>
          <option value="wr">W%R</option>
          <option value="kdj">KDJ</option>
          <option value="roc">ROC</option>
          <option value="mike">MIKE</option>
          <option value="dma">DMA</option>
          <option value="boll">BOLL</option>
          <option value="bias">BIAS</option>
          <option value="cci">CCI</option>
        </select>
        <img url="https://image2.sinajs.cn/newchart/macd/n/$symbol.gif" id="imgJS"/>
      </div>
      <div class="compare"></div>
    </div>
    <!--h5Container-->
    <div id='h5Container'>
      <div class="wrapflash">
        <div class='flash fs_full' style='position:relative;' id='h5Figure'>
          <div class='h5_lv1_added_con'>

          </div>
        </div>
      </div>
      <div id='h5CompareCon' class='h5-compare-list' style="display: none;"></div>
    </div>
  </div>
</div>
<script type="text/javascript" src="hq.js"></script>
</body>
</html>

JS

//涓氬姟绫�
function escapeRegExp(a) {
    return a.replace(/([.*+?^${}()|[\]\/\\])/g, "\\$1")
}
function random() {
    return (new Date).getTime()
}
function getScript(a, b, c) {
    var e, f, d = document.createElement("script");
    d.type = "text/javascript";
    c && (d.charset = c);
    d.src = a;
    e = document.getElementsByTagName("head")[0];
    f = !1;
    d.onload = d.onreadystatechange = function() {
        if (!(f || this.readyState && "loaded" !== this.readyState && "complete" !== this.readyState)) {
            f = !0;
            b && b();
            d.onload = d.onreadystatechange = null;
            setTimeout(function() {
                e.removeChild(d)
            }, 1)
        }
    }
    ;
    e.appendChild(d)
}
function checkUD(a, b) {
    var c = void 0 !== b ? b : a.change;
    return c > 0 ? window.UPCOLOR || "up" : 0 > c ? window.DOWNCOLOR || "down" : window.FLATCOLOR || "flat"
}
function merge(a, b) {
    for (var c in b)
        a[c] = "object" == typeof a[c] && "object" == typeof b[c] ? arguments.callee(b[c], a[c]) : b[c];
    return a
}
var hqParser, clock;
Function.prototype.fnBind || (Function.prototype.fnBind = function(a, b) {
    var c = this;
    return function() {
        var d, e;
        if (b && arguments.length) {
            d = Array.prototype.slice.call(b, 0);
            for (e = 0; e < arguments.length; e++)
                Array.prototype.push.call(d, arguments[e])
        }
        return c.apply(a || this, d || b || arguments)
    }
}
);
Function.prototype.bindArg || (Function.prototype.bindArg = function() {
    return this.fnBind(null, arguments)
}
);
Number.prototype.toFixed = function(a) {
    var d, b = Math.floor(this * Math.pow(10, a)) + .5, c = 0 > b ? "-" : "";
    b = Math.abs(b);
    Math.abs(this) * Math.pow(10, a) - b >= -.5 * Math.pow(10, -14 + a) ? b += .5 : b -= .5;
    b += "";
    if (0 == a)
        return c + b;
    b = b.split("");
    if (b.length <= a) {
        for (d = b.length; a > d; d++)
            b.unshift("0");
        b.unshift(".");
        b.unshift("0")
    } else
        b.splice(b.length - a, 0, ".");
    return c + b.join("")
}
;
String.prototype.toFixed = function(a) {
    return isNaN(1 * this) ? this.toString() : (1 * this).toFixed(a)
}
;
String.prototype.format = function(a) {
    var b, c, d, e, f;
    a = a || ",";
    b = this + "";
    if ("number" != typeof (1 * b))
        return b;
    c = "";
    d = "";
    if (b.indexOf("-") > -1) {
        d = "-";
        b = b.replace("-", "")
    }
    if (b.indexOf(".") > -1) {
        e = b.split(".");
        b = e[0];
        c = "." + e[1]
    }
    if (b.length > 3) {
        b = b.replace(/\d{3}$/, function(a) {
            f = "," + a;
            return ""
        });
        return d + arguments.callee.apply(b, arguments) + f + c
    }
    return d + b + c
}
;
Number.prototype.format = function() {
    return String.prototype.format.apply(this + "", arguments)
}
;
String.prototype.preFull = function(a, b) {
    var c = this.toString();
    a = a || 2;
    b = b || "0";
    for (; c.length < a; )
        c = b + c;
    return c
}
;
Number.prototype.preFull = function(a, b) {
    return (this + "").preFull(a, b)
}
;
if (!window.Cookie) {
    window.Cookie = {};
    Cookie.get = function(a) {
        var b = document.cookie.match("(?:^|;)\\s*" + escapeRegExp(a) + "=([^;]*)");
        return b ? b[1] || "" : ""
    }
    ;
    Cookie.set = function(a, b, c) {
        var d, e, f, g, h;
        c = c || {};
        if (null === b) {
            b = "";
            c.expires = -1
        }
        d = "";
        if (c.expires && (1 * c.expires || c.expires.toUTCString)) {
            if (1 * c.expires) {
                e = new Date;
                e.setTime(e.getTime() + 1e3 * 60 * 60 * 24 * c.expires)
            } else
                e = c.expires;
            d = "; expires=" + e.toUTCString()
        }
        f = c.path ? "; path=" + c.path : "";
        g = c.domain ? "; domain=" + c.domain : "";
        h = c.secure ? "; secure" : "";
        document.cookie = [a, "=", b, d, f, g, h].join("")
    }
}
hqParser = new function() {
    function a(a, b) {
        var c, d, e;
        if (!a) {
            c = {};
            c.enName = c.name = c.open = c.preClose = c.low = c.high = c.now = c.change = c.changeP = c.buy = c.sell = c.volume = c.amount = c.pe = c.income = c.high52 = c.low52 = c.low52 = c.date = c.time = c.swing = "--";
            return c
        }
        d = a.split(",");
        e = {};
        if (b)
            if (b.indexOf("hk") > -1) {
                e.symbol = b;
                e.sym = b.replace("hk", "")
            } else {
                e.symbol = "hk" + b;
                e.sym = b
            }
        e.enName = d[0];
        e.name = d[1];
        e.open = 1 * d[2];
        e.preClose = 1 * d[3];
        e.high = 1 * d[4];
        e.low = 1 * d[5];
        e.now = 1 * d[6];
        e.change = 1 * d[7];
        e.changeP = 1 * d[8];
        e.buy = 1 * d[9];
        e.sell = 1 * d[10];
        e.volume = 1 * d[12];
        e.amount = 1 * d[11];
        e.pe = 1 * d[13];
        e.pe = e.pe || "--";
        e.income = 1 * d[14];
        e.income = e.income || "--";
        e.high52 = 1 * d[15];
        e.low52 = 1 * d[16];
        e.date = d[17];
        e.time = d[18];
        if (!e.open) {
            e.open = "--";
            if (!e.now) {
                e.high = "--";
                e.low = "--"
            }
        }
        if (!e.now) {
            e.change = "--";
            e.changeP = "--"
        }
        if (e.preClose) {
            e.swing = 100 * ((e.high - e.low) / e.preClose);
            e.swing = isNaN(e.swing) ? "--" : e.swing
        } else {
            e.preClose = "--";
            e.swing = "--"
        }
        return e
    }
    function b(a, b) {
        var c, d, e, f;
        if (!a) {
            c = {};
            c.enName = c.name = c.open = c.preClose = c.low = c.high = c.now = c.change = c.changeP = c.buy = c.sell = c.volume = c.amount = c.pe = c.income = c.high52 = c.low52 = c.low52 = c.date = c.time = c.swing = "--";
            return c
        }
        d = a.split(",");
        e = {};
        b && (e.sym = b);
        e.name = d[0];
        e.now = 1 * d[1];
        e.changeP = 1 * d[2];
        e.updateTime = d[3];
        e.change = 1 * d[4];
        e.open = 1 * d[5];
        e.high = 1 * d[6];
        e.low = 1 * d[7];
        e.high52 = 1 * d[8];
        e.low52 = 1 * d[9];
        e.volume = 1 * d[10];
        e.averageVolume = 1 * d[11];
        e.totalShare = 1 * d[12];
        e.eps = 1 * d[13];
        e.pe = 1 * d[14];
        e.pe = e.pe || "--";
        e.beta = 1 * d[16];
        e.dividend = 1 * d[17];
        e.dividend = e.dividend || "--";
        e.income = 1 * d[18];
        e.income = e.income || "--";
        e.shares = 1 * d[19];
        e.hourTradingPrice = 1 * d[21];
        e.hourTradingChangeP = 1 * d[22];
        e.hourTradingChange = 1 * d[23];
        e.hourTradingDateTime = d[24];
        f = d[24].split(" ");
        e.hourTradingDate = f[0] + " " + f[1];
        e.hourTradingTime = f[2] || "";
        e.dateTime = d[25];
        f = d[25].split(" ");
        e.date = f[0] + " " + f[1];
        e.time = f[2];
        e.preClose = 1 * d[26];
        e.hourTradingVolume = 1 * d[27];
        if (!e.open) {
            e.open = "--";
            e.high = "--";
            e.low = "--"
        }
        if (!(e.now && "--" != e.open || e.change)) {
            e.change = "--";
            e.changeP = "--"
        }
        if (e.preClose) {
            e.swing = 100 * ((e.high - e.low) / e.preClose);
            e.swing = isNaN(e.swing) ? "--" : e.swing
        } else {
            e.preClose = "--";
            e.swing = "--"
        }
        return e
    }
    function c(a, b) {
        var c, d, e, f, g;
        if (!a) {
            c = {};
            c.enName = c.name = c.open = c.preClose = c.low = c.high = c.now = c.change = c.changeP = c.buy = c.sell = c.volume = c.amount = c.pe = c.income = c.high52 = c.low52 = c.low52 = c.date = c.time = c.swing = "--";
            return c
        }
        d = a.split(",");
        e = {};
        if (b)
            if (b.indexOf("s") > -1) {
                e.symbol = b;
                e.sym = b.replace(/s[hz]/, "")
            } else {
                e.sym = b;
                f = b.charAt(0);
                "69".indexOf(f) > -1 && (e.symbol = "sh" + b);
                "023".indexOf(f) > -1 && (e.symbol = "sz" + b)
            }
        e.name = d[0];
        e.open = 1 * d[1];
        e.preClose = 1 * d[2];
        e.now = 1 * d[3];
        e.high = 1 * d[4];
        e.low = 1 * d[5];
        e.buy = 1 * d[6];
        e.sell = 1 * d[7];
        e.volume = 1 * d[8];
        e.symbol && /^(sh000|sh580)\d*/.test(e.symbol) && (e.volume *= 100);
        e.amount = 1 * d[9];
        e.date = d[30];
        e.time = d[31];
        e.status = d[32];
        g = {
            "00": "",
            "01": "涓村仠1H",
            "02": "鍋滅墝",
            "03": "鍋滅墝",
            "04": "涓村仠",
            "05": "鍋�1/2",
            "07": "鏆傚仠",
            "-1": "鏃犺褰�",
            "-2": "鏈笂甯�",
            "-3": "閫€甯�"
        };
        e.statusWord = "00" == e.status || e.buy || e.sell ? "" : g[e.status];
        "02" != e.status && "03" != e.status || e.buy || e.sell || (e.stopDay = !0);
        e.change = e.now - e.preClose;
        e.changeP = 100 * (e.change / e.preClose);
        if (!e.open) {
            e.open = "--";
            e.high = "--";
            e.low = "--"
        }
        if (!e.now || "--" == e.open) {
            e.change = "--";
            e.changeP = "--"
        }
        if (e.preClose) {
            e.swing = 100 * ((e.high - e.low || 0) / e.preClose);
            e.swing = isNaN(e.swing) ? "--" : e.swing
        } else {
            e.preClose = "--";
            e.swing = "--"
        }
        e.now = e.now || e.preClose;
        return e
    }
    function d(a) {
        var c, d, e;
        if (!a) {
            c = {};
            c.enName = c.name = c.open = c.preClose = c.low = c.high = c.now = c.change = c.changeP = c.buy = c.sell = c.volume = c.amount = c.pe = c.income = c.high52 = c.low52 = c.low52 = c.date = c.time = c.swing = "--";
            return c
        }
        d = a.split(",");
        e = {};
        e.name = d[0];
        e.now = 1 * d[1];
        e.change = 1 * d[2];
        e.changeP = 1 * d[3];
        e.time = d[4];
        if (!e.now) {
            e.change = "--";
            e.changeP = "--"
        }
        return e
    }
    function e(a) {
        var c, d, e;
        if (!a) {
            c = {};
            c.enName = c.name = c.open = c.preClose = c.low = c.high = c.now = c.change = c.changeP = c.buy = c.sell = c.volume = c.amount = c.pe = c.income = c.high52 = c.low52 = c.low52 = c.date = c.time = c.swing = "--";
            return c
        }
        d = a.split(",");
        e = {};
        e.now = 1 * d[0];
        e.change = e.now - d[7];
        e.changeP = 1 * d[1];
        if (!e.now) {
            e.change = "--";
            e.changeP = "--"
        }
        return e
    }
    function f(a, b, c) {
        var d = arguments.callee[a];
        return d ? d(a, b, c) : {}
    }
    f.a = c;
    f.b = d;
    f.hk = a;
    f.us = b;
    f.hf = e;
    return f
}
;
clock = new function() {
    var c, a = "https://hq.sinajs.cn/?rn=$random&list=sys_time", b = [], d = /\d{2}:\d{2}:\d{2}/, e = !1;
    this.init = function(a) {
        var c, d;
        a = a || [];
        for (d = 0; d < a.length; d++) {
            c = {};
            c.el = document.getElementById(a[d].elID);
            c.diff = 1e3 * 60 * 60 * getGlobalTimezone(a[d].area);
            c.template = a[d].template;
            b.push(c)
        }
        if (e)
            this.draw();
        else {
            e = !0;
            (window.hq_str_sys_time || window.StandardBJTime) && this.setTime();
            this.getTime();
            setInterval(this.getTime.fnBind(this), 36e5);
            setInterval(this.draw.fnBind(this), 1e3)
        }
    }
    ;
    this.add = function() {}
    ;
    this.getTime = function() {
        getScript(a.replace("$random", random()), this.setTime.fnBind(this))
    }
    ;
    this.setTime = function() {
        c = 1e3 * (window.hq_str_sys_time || window.StandardBJTime);
        this.draw()
    }
    ;
    this.time = function() {
        return new Date(c)
    }
    ;
    this.draw = function() {
        var a, e;
        if (c) {
            for (e = 0; e < b.length; e++) {
                a = new Date(c + b[e].diff);
                b[e].el.innerHTML = b[e].template ? b[e].template.replace("YY", a.getFullYear()).replace("Y", (a.getFullYear() % 100).preFull()).replace("MM", (a.getMonth() + 1).preFull()).replace("DD", a.getDate().preFull()).replace("H", a.getHours().preFull()).replace("M", a.getMinutes().preFull()).replace("S", a.getSeconds().preFull()) : a.getMonth() + 1 + "鏈�" + a.getDate() + "鏃� " + a.toString().match(d)[0]
            }
            c += 1e3
        }
    }
}
;
sinaSSOController = {
    getSinaCookie:function(){

    }
}
!function() {
    function a(a) {
        return "string" == typeof a ? document.getElementById(a) : a
    }
    var c, b = function(b) {
        function c(a, b, c) {
            a.addEventListener ? a.addEventListener(b, c, !1) : a.attachEvent("on" + b, c)
        }
        function e(a) {
            a = a || event;
            13 == a.keyCode && d.checkSubmit()
        }
        merge(this, b);
        this.name = a(this.name);
        this.psw = a(this.psw);
        this.remember = a(this.remember);
        this.loginBtn = a(this.loginBtn);
        this.days = a(this.days);
        this.logoutBtn = a(this.logoutBtn);
        var d = this;
        this.loginBtn && c(this.loginBtn, "click", this.checkSubmit.fnBind(this));
        this.logoutBtn && c(this.logoutBtn, "click", this.logout.fnBind(this));
        this.name && this.nameEnter && c(this.name, "keyup", e);
        this.psw && this.pswEnter && c(this.psw, "keyup", e)
    };
    merge(b.prototype, {
        name: null,
        psw: null,
        nameEnter: !0,
        pswEnter: !0,
        remember: null,
        loginBtn: null,
        logoutBtn: null,
        days: 30,
        onLoginSuccess: function() {},
        onLoginFailed: function() {},
        onLogoutSuccess: function() {},
        onLogoutFailed: function() {},
        onUserChanged: function() {},
        onSubmit: function() {
            return !0
        },
        onCheckFailed: function() {},
        checkSubmit: function() {
            this.onSubmit(this.name.value, this.psw.value) ? this.login() : this.onCheckFailed();
            return !1
        },
        getDays: function() {
            if (!this.remember)
                return void 0;
            if ("number" == typeof this.remember)
                return this.remember;
            switch (this.remember.tagName) {
            case "INPUT":
                return this.remember.checked ? 1 * this.remember.value || "number" == typeof this.days ? this.days : this.days.value : void 0;
            case "SELECT":
                return this.remember.value;
            default:
                return void 0
            }
        },
        login: function(a, b, c) {
            if (!a && !this.name.value)
                return !1;
            var d = this;
            if(sinaSSOController){
                sinaSSOController.customLoginCallBack = function(a) {
                    a && a.result === !0 ? d.onLoginSuccess(sinaSSOController.getSinaCookie()) : a && a.result === !1 ? d.onLoginFailed(a) : d.onLoginFailed(a)
                }
                ;
                sinaSSOController.login(a || this.name.value, b || this.psw.value, c || this.getDays());
            }
            return !1
        },
        logout: function() {
            var a = this;
            if(sinaSSOController){
                sinaSSOController.customLogoutCallBack = function(b) {
                    b.result ? a.onLogoutSuccess(a) : a.onLogoutFailed("閫€鍑哄け璐�...")
                }
                ;
                sinaSSOController.logout();
            }
            return !1
        }
    });
    c = new function() {
        function j(a) {
            if (!h) {
                d = 1 * a || d || 1e3;
                h = setInterval(q, d);
                    sinaSSOController && sinaSSOController.getSinaCookie() && sinaSSOController.autoLogin(q)
            }
        }
        function k() {
            clearInterval(h);
            m()
        }
        function l(a) {
            a._onLoginSuccess = a.onLoginSuccess;
            a._onLogoutSuccess = a.onLogoutSuccess;
            a.onLoginSuccess = q;
            a.onLogoutSuccess = q
        }
        function m() {
            for (var a = 0; a < i.length; a++) {
                i[a].onLoginSuccess = i[a]._onLoginSuccess;
                i[a].onLogoutSuccess = i[a]._onLogoutSuccess
            }
        }
        function n() {
            for (var a = 0; a < i.length; a++)
                i[a]._onLoginSuccess(f)
        }
        function o() {
            for (var a = 0; a < i.length; a++)
                i[a]._onLogoutSuccess(f)
        }
        function p(a, b) {
            for (var c = 0; c < i.length; c++)
                i[c].onUserChanged(a, b)
        }
        function q() {
            var a = sinaSSOController.getSinaCookie();
            if (a)
                if (f) {
                    if (a.uid != f.uid) {
                        p(a, f);
                        f = a
                    }
                } else {
                    f = a;
                    n()
                }
            else if (f) {
                o();
                f = null
            }
        }
        var a = "finance"
          , c = "finance"
          , d = 1e3
          , f = null
          , g = !0
          , h = null
          , i = [];
        window.sinaSSOConfig = merge({
            entry: a,
            service: c,
            setDomain: g
        }, window.sinaSSOConfig || {});
        this.startMonitor = j;
        this.setFreq = function(a) {
            clearInterval(h);
            d = a || d;
            h = setInterval(q, d)
        }
        ;
        this.stopMonitor = k();
        this.checkImmediate = q;
        this.add = function(a) {
            var c = a;
            c.constructor != b && (c = new b(c));
            i.push(c);
            f && c.onLoginSuccess(f);
            l(c);
            1 == i.length && j();
            return this
        }
        ;
        this.get = function(a) {
            return i(a)
        }
        ;
        this.user = function() {
            return f
        }
    }
    ;
    window.LoginManager = c
}();
Object.toQueryString = function(a) {
    var b, c;
    if ("string" == typeof a)
        return encodeURIComponent(a);
    b = [];
    for (c in a)
        b.push(encodeURIComponent(c) + "=" + encodeURIComponent(a[c]));
    return b.join("&")
}
;

!function() {
    function t(e) {
        return typeof e == "string" ? document.getElementById(e) : e
    }
    function n(e, n, r) {
        this.template = [],
        this.html = "",
        this.container = t(e),
        this.fields = n || {},
        this.initTemplate(),
        this.css = i({
            up: "up",
            down: "down",
            flat: "flat"
        }, r)
    }
    function r(t, n, r) {
        var i = t
          , s = n;
        typeof s == "string" && (s = e[s]);
        var o = "";
        if (i === undefined || i === null)
            i = "--";
        return s ? (!isNaN(t * 1) && isFinite(t * 1) && (s.shift && (i *= Math.pow(10, s.shift)),
        s["涓�/浜�"] && (Math.abs(i) > 1e8 ? (i /= 1e8,
        o = "浜�") : Math.abs(i) > 1e4 && (i /= 1e4,
        o = "涓�")),
        s.digit !== undefined && s.digit >= 0 && (o ? i = i.toFixed(s.digit || 2) : i = i.toFixed(s.digit)),
        s.cfg & 8 && (i = i.format()),
        s.cfg & 4 && (i = t * 1 > 0 ? "+" + i : i),
        s.cfg & 2 && (i = Math.abs(i * 1)),
        i += o,
        s.cfg & 32 && this.lastData && (t > this.lastData[s.key] && (i = '<span style="color:red;">鈫�</span>' + i),
        t < this.lastData[s.key] && (i = '<span style="color:green;">鈫�</span>' + i)),
        s.p && (i = s.p.replace("$1", i))),
        i) : i
    }
    function i(e, t) {
        for (var n in t)
            typeof e[n] == "object" && typeof t[n] == "object" ? e[n] = arguments.callee(t[n], e[n]) : e[n] = t[n];
        return e
    }
    var e = {
        counts: {
            s: 1
        },
        symbol: {
            key: "symbol",
            title: "浠g爜"
        },
        sym: {
            key: "sym",
            title: "浠g爜"
        },
        name: {
            key: "name",
            title: "鍚嶇О"
        },
        now: {
            key: "now",
            title: "&nbsp;鏈€鏂颁环",
            digit: 2,
            cfg: 48
        },
        change: {
            key: "change",
            title: "娑ㄨ穼棰�",
            digit: 2,
            cfg: 28
        },
        changeP: {
            key: "changeP",
            title: "娑ㄨ穼骞�",
            digit: 2,
            cfg: 28,
            p: "$1%",
            color: !0
        },
        open: {
            key: "open",
            title: "寮€鐩樹环",
            digit: 2,
            cfg: 24
        },
        preClose: {
            key: "preClose",
            title: "鏄ㄦ敹",
            digit: 2,
            cfg: 24
        },
        volume: {
            key: "volume",
            title: "鎴愪氦閲�(鎵�)",
            digit: 0,
            cfg: 16,
            "涓�/浜�": !0,
            shift: -2
        },
        amount: {
            key: "amount",
            title: "鎴愪氦棰�(鍏�)",
            digit: 2,
            cfg: 16,
            "涓�/浜�": !0
        },
        turnover: {
            key: "turnover",
            title: "鎹㈡墜鐜�",
            digit: 2,
            cfg: 24,
            p: "$1%"
        },
        pe: {
            key: "pe",
            title: "甯傜泩鐜�",
            digit: 2,
            cfg: 24
        },
        pb: {
            key: "pb",
            title: "甯傚噣鐜�",
            digit: 2,
            cfg: 24
        },
        high: {
            key: "high",
            title: "鏈€楂樹环",
            digit: 2,
            cfg: 24
        },
        low: {
            key: "low",
            title: "鏈€浣庝环",
            digit: 2,
            cfg: 24
        },
        buy: {
            key: "buy",
            title: "涔板叆浠�",
            digit: 2,
            cfg: 24
        },
        sell: {
            key: "sell",
            title: "鍗栧嚭浠�",
            digit: 2,
            cfg: 24
        },
        date: {
            key: "date",
            title: "鏃ユ湡"
        },
        time: {
            key: "time",
            title: "鏃堕棿"
        },
        swing: {
            key: "swing",
            title: "鎸箙",
            digit: 2,
            cfg: 24,
            p: "$1%"
        },
        eps: {
            key: "eps",
            title: "姣忚偂鏀剁泭",
            digit: 2,
            cfg: 24,
            s: 1
        },
        profit4Season: {
            key: "profit4Season",
            title: "鏈€杩�4瀛e害姣忚偂鏀剁泭",
            digit: 2,
            cfg: 24,
            s: 1
        },
        profitYear: {
            key: "profitYear",
            title: "浠婂勾浠ユ潵姣忚偂鏀剁泭",
            digit: 2,
            cfg: 24,
            s: 1
        },
        netAsset: {
            key: "netAsset",
            title: "姣忚偂鍑€璧勪骇",
            digit: 2,
            cfg: 24,
            s: 1
        },
        averageVolume: {
            key: "averageVolume",
            title: "骞冲潎鎴愪氦閲�",
            digit: 2,
            cfg: 24,
            s: 1
        },
        shares: {
            key: "shares",
            title: "鎬昏偂鏈�",
            digit: 0,
            cfg: 16,
            "涓�/浜�": !0,
            s: 1
        },
        capital: {
            key: "capital",
            title: "娴侀€氳偂鏈�",
            digit: 0,
            cfg: 16,
            "涓�/浜�": !0,
            s: 1
        },
        cvs: {
            key: "cvs",
            title: "娴侀€氬競鍊�(鍏�)",
            digit: 2,
            cfg: 16,
            "涓�/浜�": !0
        },
        totalShare: {
            key: "totalShare",
            title: "鎬诲競鍊�(鍏�)",
            digit: 2,
            cfg: 16,
            "涓�/浜�": !0
        },
        capitalA: {
            key: "capitalA",
            title: "娴侀€欰鑲�",
            digit: 0,
            cfg: 16,
            "涓�/浜�": !0,
            s: 1
        },
        capitalB: {
            key: "capitalB",
            title: "娴侀€欱鑲�",
            digit: 0,
            cfg: 16,
            "涓�/浜�": !0,
            s: 1
        },
        netProfit: {
            key: "netProfit",
            title: "鏈€杩戝勾搴﹀噣鍒╂鼎(浜垮厓)",
            digit: 2,
            cfg: 16,
            "涓�/浜�": !0,
            s: 1
        },
        issuePrice: {
            key: "issuePrice",
            title: "鍙戣浠�",
            digit: 2,
            cfg: 24,
            s: 1
        },
        roe: {
            key: "roe",
            title: "鍑€璧勪骇鏀剁泭鐜�",
            digit: 2,
            cfg: 24,
            p: "$1%",
            s: 1
        },
        revenue: {
            key: "revenue",
            title: "涓昏惀涓氬姟鏀跺叆(浜垮厓)",
            digit: 2,
            cfg: 16,
            "涓�/浜�": !0,
            s: 1
        },
        changes_5: {
            key: "changes_5",
            title: "浜旀棩娑ㄨ穼",
            digit: 2,
            cfg: 24,
            p: "$1%",
            s: 1
        },
        changes_10: {
            key: "changes_10",
            title: "鍗佹棩娑ㄨ穼",
            digit: 2,
            cfg: 24,
            p: "$1%",
            s: 1
        },
        changes_20: {
            key: "changes_20",
            title: "浜屽崄鏃ユ定璺�",
            digit: 2,
            cfg: 24,
            p: "$1%",
            s: 1
        },
        changes_30: {
            key: "changes_30",
            title: "涓夊崄鏃ユ定璺�",
            digit: 2,
            cfg: 24,
            p: "$1%",
            s: 1
        },
        changes_60: {
            key: "changes_60",
            title: "鍏崄鏃ユ定璺�",
            digit: 2,
            cfg: 24,
            p: "$1%",
            s: 1
        },
        netamount: {
            key: "netamount",
            title: "鍑€娴佸叆(鍏�)",
            digit: 2,
            cfg: 16,
            "涓�/浜�": !0
        },
        netInflowRate: {
            key: "netInflowRate",
            title: "鍑€娴佸叆鐜�",
            digit: 2,
            cfg: 24,
            p: "$1%"
        },
        r0_in: {
            key: "r0_in",
            title: "涓诲姏鍑€娴佸叆(鍏�)",
            digit: 2,
            cfg: 16,
            "涓�/浜�": !0
        },
        r3_in: {
            key: "r3_in",
            title: "鏁f埛鍑€娴佸叆(鍏�)",
            digit: 2,
            cfg: 16,
            "涓�/浜�": !0
        },
        r0_net_3: {
            key: "r0_net_3",
            title: "3鏃ュ噣娴佸叆(鍏�)",
            digit: 2,
            cfg: 16,
            "涓�/浜�": !0,
            s: 1
        },
        r0_net_5: {
            key: "r0_net_5",
            title: "5鏃ュ噣娴佸叆(鍏�)",
            digit: 2,
            cfg: 16,
            "涓�/浜�": !0,
            s: 1
        }
    };
    window.allFields = e,
    i(n.prototype, {
        initTemplate: function() {
            var e = this
              , t = this.container && this.container.innerHTML;
            if(this.container){
                this.container.innerHTML = t && t.replace(/<!--[\s\S]*?-->/g, "").replace(/@.*?@/g, "--"),
                t = t.replace(/<!--tpl([\s\S]*?)-->/g, function(t, n) {
                    return e.template.push(n),
                    "@template@"
                }),
                this.html = t
            }
        },
        draw: function(t) {
            var n = this, i = this.html, s = this.template, o = [], u = [], a, f;
            a = t,
            a && (a.constructor !== Array || a[0] && a[0].constructor !== Array) && (a = [a]);
            for (var l = 0; l < a.length && l < s.length; l++) {
                f = a[l],
                f && f.constructor !== Array && (f = [f]),
                u = [];
                for (var c = 0, h = f.length; c < h; c++)
                    u.push(s[l].replace(/@UD_(.*?)@/g, function(e, t) {
                        if (f[c][t] !== undefined) {
                            var r = f[c][t] * 1;
                            return r > 0 ? n.css.up : r < 0 ? n.css.down : n.css.flat
                        }
                    }).replace(/@(.*?)@/g, function(t, i) {
                        return r(f[c][i], f[c].fieldsImportant && f[c].fieldsImportant[i] || n.fields[i] || e[i])
                    }));
                o.push(u.join(""))
            }
            var p = 0;
            i = i.replace(/@template@/g, function() {
                return p++,
                o[p - 1] || ""
            }),
            i = i.replace(/@UD_(.*?)@/g, function(e, r) {
                if (t[r] !== undefined) {
                    var i = t[r] * 1;
                    return i > 0 ? n.css.up : i < 0 ? n.css.down : n.css.flat
                }
            }).replace(/@(.*?)@/g, function(i, s) {
                return r(t[s], t.fieldsImportant && t.fieldsImportant[s] || n.fields[s] || e[s])
            });
            if(this.container){
                this.container.innerHTML = i
            }
        }
    }),
    window.DataDrawer = n,
    window.dataFormat = r
}()

var SuggestServer = function() {
    this._stringOriginalUrl = "https://suggest3.sinajs.cn/suggest/type=@TYPE@&key=@KEY@&name=@NAME@";
    this._stringUrl = "";
    this._elementScriptLoader = null;
    this._elementContainer = null;
    this._stringOriginalValue = "";
    this._stringLastValue = "";
    this._functionCallback = null;
    this._elementLineCurrent = null;
    this._objectHtml = {};
    this._objectData = {};
    this._booleanHideDelay = !1;
    this._stringBrowserType = "";
    this._objectType = {
        11: "A 鑲�",
        12: "B 鑲�",
        13: "鏉冭瘉",
        14: "鏈熻揣",
        15: "鍊哄埜",
        21: "寮€鍩�",
        22: "ETF",
        23: "LOF",
        24: "璐у熀",
        25: "QDII",
        26: "灏佸熀",
        31: "娓偂",
        32: "绐濊疆",
        33: "娓寚鏁�",
        41: "缇庤偂",
        42: "澶栨湡",
        81: "鍊哄埜",
        82: "鍊哄埜"
    };
    this._objectConfig = {
        input: null,
        loader: null,
        value: null,
        "default": null,
        type: 0,
        max: 10,
        width: 220,
        link: null,
        target: "_blank",
        head: ["閫夐」", "浠g爜", "鍚嶇О"],
        body: [-1, 2, 4],
        fix: {
            firefox: [1, 1]
        },
        onshow: function() {},
        onhide: function() {},
        hideSelectForIE6: !1,
        callback: null
    };
    this._getElement = function(a) {
        return document.getElementById(a)
    }
    ;
    this._getRandom = function() {
        return (new Date).getTime()
    }
    ;
    this._bind = function(a, b) {
        var c = this;
        return function() {
            var e, d = null;
            if ("undefined" != typeof b) {
                for (e = 0; e < arguments.length; e++)
                    b.push(arguments[e]);
                d = b
            } else
                d = arguments;
            return a.apply(c, d)
        }
    }
    ;
    this._aevent = function(a, b, c) {
        window.addEventListener ? a.addEventListener(b, c, !1) : window.attachEvent && a.attachEvent("on" + b, c)
    }
    ;
    this._position = function() {
        var d, e, f, g, a = 0, b = 0, c = this._elementInput;
        do {
            a += c.offsetTop || 0;
            b += c.offsetLeft || 0;
            if ("relative" != c.style.position)
                break;
            c = c.offsetParent
        } while (c);d = [1 * this._elementInput.parentNode.style.borderTopWidth.replace("px", ""), 1 * this._elementInput.parentNode.style.borderLeftWidth.replace("px", "")];
        __arrayPositionFix = [0, 0];
        this._elementContainer.style.top != a + "px" && (this._elementContainer.style.top = a - d[0] + __arrayPositionFix[0] + "px");
        this._elementContainer.style.left != b + "px" && (this._elementContainer.style.left = b - d[1] + __arrayPositionFix[1] + "px");
        e = this._elementInput.style.borderTopWidth;
        f = this._elementInput.style.borderBottomWidth;
        g = this._elementInput.clientHeight;
        g += "" != e ? 1 * e.replace("px", "") : 2;
        g += "" != f ? 1 * f.replace("px", "") : 2;
        this._elementContainer.style.marginTop != g + "px" && (this._elementContainer.style.marginTop = g + "px")
    }
    ;
    this._getType = function(a) {
        return {
            1: "stock",
            2: "fund",
            3: "hk",
            4: "us"
        }[a.substr(0, 1)]
    }
    ;
    this._fill = function() {
        var b, c, d, e, f, g, h, i, j, a = this._elementInput.value;
        if ("key_" + a in this._objectData && "" != this._objectData["key_" + a]) {
            if (null == this._elementContainer) {
                this._elementContainer = document.createElement("div");
                this._elementContainer.style.cssText += "display:none; filter:alpha(opacity=95); opacity:0.95; position:absolute; width:" + this._objectConfig.width + "px; z-index:999;";
                this._elementInput.parentNode.insertBefore(this._elementContainer, this._elementInput);
                this._elementContainer.suggest = this
            }
            this._position();
            b = "";
            b += '<table style="border-collapse:collapse; line-height:18px; border:2px solid #EEE; background-color:#FFF; font-size:12px; text-align:center; color:#999; width:' + (this._objectConfig.width - 2) + 'px;">';
            if (null != this._objectConfig.head) {
                b += '<tr style="background-color:#F3F3F3;">';
                for (c in this._objectConfig.head)
                    this._objectConfig.head.hasOwnProperty(c) && (b += "<td>" + this._objectConfig.head[c] + "</td>");
                b += "</tr>"
            }
            d = (this._objectData["key_" + a] || "").replace(/&amp;/g, "&").replace(/;$/, "").split(";");
            e = d.length > this._objectConfig.max ? this._objectConfig.max : d.length;
            f = "parentNode.parentNode.parentNode['suggest']";
            for (c = 0; e > c; c++) {
                g = d[c].split(",");
                g[-1] = g[0].replace(new RegExp(a.toLowerCase().replace(/(^\s*)|(\s*$)/g, "").replace(/\./g, function(a) {
                    return "\\" + a
                }),"gi"), function(a) {
                    return '<span style="color:#F00;">' + a + "</span>"
                });
                g[-2] = g[1]in this._objectType ? this._objectType[g[1]] : "鈥曗€�";
                if (null == this._objectConfig.link || "" == this._objectConfig.link)
                    h = ['<td style="padding:0px;"><span style="display:block; padding:1px;">', "</span></td>"];
                else {
                    i = this._objectConfig.link.replace(/@type@/g, this._getType(g[1]) || g[1]).replace(/@code@/g, this._getFullCode(g));
                    for (j in g)
                        g.hasOwnProperty(j) && (i = i.replace(new RegExp("@" + j + "@","g"), g[j]));
                    h = ['<td style="padding:0px;"><a href="' + i + '" hidefocus="true" onmousedown="return this.parentNode.parentNode.' + f + "['hidepause'](this);\" onclick=\"return this.parentNode.parentNode." + f + '[\'hideresume\'](this);" style="color:#999; display:block; outline:none; padding:1px; text-decoration:none; width:100%;" target="' + this._objectConfig.target + '">', "</a></td>"]
                }
                b += '<tr id="' + d[c] + '" style="cursor:pointer;" onmouseover="this.' + f + "['mouseoverLine'](this);\" onmouseout=\"this." + f + "['mouseoutLine'](this);\" onmousedown=\"this." + f + "['setLineMouse'](this);\">";
                for (j in this._objectConfig.body)
                    this._objectConfig.body.hasOwnProperty(j) && (b += h[0] + g[this._objectConfig.body[j]] + h[1]);
                b += "</tr>"
            }
            b += "</table>";
            this._objectHtml["key_" + a] = b;
            this._elementLineCurrent = null;
            document.createElement("div");
            this._elementContainer.innerHTML = this._objectHtml["key_" + a];
            this._show()
        } else
            this._hide()
    }
    ;
    this._color = function(a) {
        var b = "";
        a._booleanArrow && a._booleanMouse ? b = "#F8FBDF" : a._booleanArrow ? b = "#F1F5FC" : a._booleanMouse && (b = "#FCFEDF");
        a.style.backgroundColor != b && (a.style.backgroundColor = b)
    }
    ;
    this.mouseoverLine = function(a) {
        a._booleanMouse = !0;
        this._color(a)
    }
    ;
    this.mouseoutLine = function(a) {
        a._booleanMouse = !1;
        this._color(a)
    }
    ;
    this.setLineMouse = function(a) {
        this.setLine(a);
        null != this._functionCallback && this._functionCallback(this._elementInput.value, a.id.split(","))
    }
    ;
    this._getFullCode = function(a) {
        switch (a[1]) {
        case "11":
            return a[3];
        case "12":
            return a[3];
        case "13":
            return a[3];
        case "14":
            return a[3];
        case "15":
            return a[3];
        case "21":
            return a[3];
        case "22":
            return a[3];
        case "23":
            return a[3];
        case "24":
            return a[3];
        case "25":
            return a[3];
        case "26":
            return a[3];
        default:
            return a[2]
        }
    }
    ;
    this.setLine = function(a) {
        var d, e, f, b = a.id.split(","), c = this._objectConfig.value;
        if (null != c && "" != c) {
            for (d = 0; d < b.length; d++)
                c = c.replace(new RegExp("@" + d + "@","g"), b[d]);
            e = c
        } else
            e = this._getFullCode(b);
        f = a.id;
        for (d = 2; 5 > d; d++)
            this._objectData["key_" + b[d]] = f + ";";
        this._stringLastValue = e;
        this._elementInput.value = e;
        if (null != this._elementLineCurrent) {
            this._elementLineCurrent._booleanArrow = !1;
            this._color(this._elementLineCurrent)
        }
        a._booleanArrow = !0;
        this._color(a);
        this._elementLineCurrent = a
    }
    ;
    this._show = function() {
        var a, b;
        if (null != this._elementContainer) {
            this._elementContainer.style.display = "";
            this._objectConfig.onshow();
            if (this._objectConfig.hideSelectForIE6 && "ie6" == this._stringBrowserType) {
                a = document.getElementsByTagName("select");
                for (b = 0; b < a.length; b++)
                    a[b].style.visibility = "hidden"
            }
        }
    }
    ;
    this.hidepause = function() {
        this._booleanHideDelay = !0
    }
    ;
    this.hideresume = function() {
        this._booleanHideDelay = !1;
        this._hideNow()
    }
    ;
    this._hide = function() {
        0 == this._booleanHideDelay && this._hideNow()
    }
    ;
    this._hideNow = function() {
        var a, b;
        if (null != this._elementContainer) {
            this._elementContainer.style.display = "none";
            this._objectConfig.onhide();
            if (this._objectConfig.hideSelectForIE6 && "ie6" == this._stringBrowserType) {
                a = document.getElementsByTagName("select");
                for (b = 0; b < a.length; b++)
                    a[b].style.visibility = "visible"
            }
        }
    }
    ;
    this._load = function(a, b, c) {
        var d, e;
        if (null == this._elementScriptLoader) {
            this._elementScriptLoader = document.createElement("div");
            this._elementScriptLoader.style.display = "none";
            this._elementInput.parentNode.insertBefore(this._elementScriptLoader, this._elementInput)
        }
        d = "suggestdata_" + this._getRandom();
        e = document.createElement("script");
        e.type = "text/javascript";
        e.charset = "gb2312";
        e.src = this._stringUrl.replace("@NAME@", d).replace("@KEY@", encodeURIComponent(a.toLowerCase()));
        e._object = this;
        b && (e._functionCallbackTrue = b);
        c && (e._functionCallbackFalse = c);
        e._stringValue = a;
        e._stringName = d;
        e[document.all ? "onreadystatechange" : "onload"] = function() {
            if (!document.all || "loaded" == this.readyState || "complete" == this.readyState) {
                var a = window[this._stringName];
                if ("undefined" != typeof a) {
                    this._object._objectData["key_" + this._stringValue] = a;
                    this._functionCallbackTrue(a);
                    window[this._stringName] = null
                } else
                    this._functionCallbackFasle && this._functionCallbackFasle("");
                this._object = null;
                this._stringValue = null;
                this._stringName = null;
                this[document.all ? "onreadystatechange" : "onload"] = null;
                this.parentNode.removeChild(this)
            }
        }
        ;
        this._elementScriptLoader.appendChild(e)
    }
    ;
    this._check = function() {
        var a = this._elementInput.value;
        if (this._stringLastValue != a) {
            this._stringLastValue = a;
            if ("" != a)
                "key_" + a in this._objectData ? this._fill() : this._load(a, this._bind(this._fill), this._bind(this._hide));
            else {
                if (null != this._elementContainer) {
                    this._elementLineCurrent = null;
                    this._elementContainer.innerHTML = ""
                }
                this._hide()
            }
        } else
            this._show()
    }
    ;
    this._eventFocus = function() {
        this._elementInput.value == this._stringOriginalValue && (this._elementInput.value = "");
        this._stringLastValue = "";
        this._check()
    }
    ;
    this._eventBlur = function() {
        "" == this._elementInput.value && (this._elementInput.value = this._stringOriginalValue);
        this._stringLastValue = "";
        this._hide()
    }
    ;
    this._eventButtonUp = function() {
        var a = arguments[0] || window.event
          , b = null == this._objectConfig.head ? 0 : 1;
        switch (a.keyCode) {
        case 38:
            null != this._elementContainer && null != this._elementContainer.firstChild && this.setLine(this._elementContainer.firstChild.rows[this._elementLineCurrent && this._elementLineCurrent.rowIndex != b ? this._elementLineCurrent.rowIndex - 1 : this._elementContainer.firstChild.rows.length - 1]);
            break;
        case 40:
            null != this._elementContainer && null != this._elementContainer.firstChild && this.setLine(this._elementContainer.firstChild.rows[this._elementLineCurrent && this._elementLineCurrent.rowIndex != this._elementContainer.firstChild.rows.length - 1 ? this._elementLineCurrent.rowIndex + 1 : b]);
            break;
        case 13:
            if (null != this._elementContainer) {
                null != this._elementLineCurrent && this.setLine(this._elementLineCurrent);
                null != this._functionCallback && this._functionCallback(this._elementInput.value, this._elementLineCurrent ? this._elementLineCurrent.id.split(",") : [])
            }
            this._hide();
            break;
        default:
            this._check()
        }
    }
    ;
    this.getCodeFromCache = function(a) {
        return "key_" + a in this._objectData ? this._objectData["key_" + a] : void 0
    }
    ;
    this.getCode = function(a, b) {
        "key_" + a in this._objectData ? b(this._objectData["key_" + a]) : this._load(a, b, b)
    }
    ;
    this.changeType = function(a) {
        this._objectHtml = {};
        this._objectData = {};
        this._elementInput.value = this._stringOriginalValue;
        if ("undefined" != typeof a) {
            var b = "";
            switch (a.toLowerCase()) {
            case "stock":
                b = "11,12,13,14,15";
                break;
            case "fund":
                b = "21,22,23,24,25,26";
                break;
            case "hkstock":
                b = "31";
                break;
            case "hk":
                b = "31,33,32";
                break;
            case "usstock":
                b = "41";
                break;
            case "us":
                b = "41,42";
                break;
            default:
                b = a
            }
            this._stringUrl = this._stringOriginalUrl.replace("@TYPE@", b)
        } else
            this._stringUrl = this._stringOriginalUrl.replace("type=@TYPE@&", "");
        this._objectConfig.type = a
    }
    ;
    this.changeLink = function(a) {
        this._objectConfig.link = a;
        this._fill();
        this._hide()
    }
    ;
    this.clear = function() {
        this._stringLastValue = null;
        this._elementInput.value = "";
        this._check();
        this._elementInput.value = this._stringOriginalValue
    }
    ;
    this.bind = function(a) {
        if ("undefined" != typeof a)
            for (var b in a)
                this._objectConfig[b] = a[b];
        this._elementInput = "string" == typeof this._objectConfig.input ? document.getElementById(this._objectConfig.input) : this._objectConfig.input;
        null != this._objectConfig.loader && (this._elementScriptLoader = "string" == typeof this._objectConfig.loader ? document.getElementById(this._objectConfig.loader) : this._objectConfig.loader);
        if (this._elementInput) {
            this._stringOriginalValue = null == this._objectConfig["default"] || "" == this._objectConfig["default"] ? this._elementInput.value : this._objectConfig["default"];
            this.changeType(this._objectConfig.type);
            this._elementInput.value = this._stringOriginalValue;
            this._elementInput.setAttribute("autocomplete", "off");
            this._elementInput.autoComplete = "off";
            this._aevent(this._elementInput, "focus", this._bind(this._eventFocus));
            this._aevent(this._elementInput, "blur", this._bind(this._eventBlur));
            this._aevent(this._elementInput, "keyup", this._bind(this._eventButtonUp));
            this._aevent(this._elementInput, "mouseup", this._bind(this._eventButtonUp));
            this._functionCallback = this._objectConfig.callback
        }
    }
};

!function() {
    function b(d) {
        if (typeof d == "string") {
            return document.getElementById(d)
        } else {
            return d
        }
    }
    function a(f, e, d) {
        if (f.attachEvent) {
            f.attachEvent("on" + e, d)
        } else {
            f.addEventListener(e, d, false)
        }
    }
    var c = new function() {
        var i = "loginBG";
        var f = "loginLayer";
        var k = [];
        this.init = function() {
            a(b("loginClose"), "click", e);
            LoginManager.add({
                name: "loginName",
                psw: "loginPSW",
                remember: "loginRemember",
                loginBtn: "loginBtn",
                onLoginSuccess: function(l) {
                    e(true);
                    b("loginPSW").value = ""
                },
                onLoginFailed: function(l) {
                    if (l.errno == "4049") {
                        alert("\u60a8\u7684\u8d26\u6237\u5b58\u5728\u5b89\u5168\u95ee\u9898\uff0c\u5c06\u4f1a\u4e3a\u60a8\u8f6c\u5230\u5b89\u5168\u767b\u9646\u9875\u9762\u3002");
                        location.href = "https://login.sina.com.cn/signup/signin.php?entry=finance&retcode=4049&r=" + location.href + "&savestate=" + (b("loginRemember").checked ? 30 : 0);
                        return
                    }
                    b("loginError").innerHTML = l.reason
                },
                onSubmit: function(l, m) {
                    b("loginError").innerHTML = "";
                    if (!l) {
                        g(b("loginName"));
                        return false
                    }
                    if (!m) {
                        g(b("loginPSW"));
                        return false
                    }
                    return true
                }
            })
        }
        ;
        function h(m, l) {
            this.id = m;
            this.onClose = l
        }
        function d() {
            b(i).style.display = "block";
            b(f).style.display = "block";
            return false
        }
        this.open = d;
        function e(l) {
            b(i).style.display = "none";
            b(f).style.display = "none";
            if (l !== true) {
                for (var m = 0; m < k.length; m++) {
                    k[m].onClose && k[m].onClose()
                }
            }
            return false
        }
        this.close = e;
        function j(n, l) {
            var m = b(n);
            if (!m) {
                window.console && console.error && console.error({
                    msg: "\u6ca1\u6709\u4f20\u5165\u6309\u94ae\u6216\u8005\u6309\u94ae\u4e0d\u5b58\u5728\uff1a" + n
                });
                return
            }
            a(m, "click", d);
            k.push(new h(n,l))
        }
        this.addOpener = j;
        function g(n) {
            n.focus();
            var l = 8;
            var m = setInterval(function() {
                n.style.backgroundColor = l % 2 ? "" : "#ccc";
                l--;
                if (!l) {
                    clearInterval(m)
                }
            }, 100)
        }
    }
    ();
    window.loginLayer = c
}();

!function(b) {
    var d = "https://hq.sinajs.cn/rn=$rn&list=";
    function a(e) {
        this.ID = this.ID;
        this.indexCfgs = e;
        this.initDom();
        this.getData();
        setInterval(this.getData.fnBind(this), 5 * 1000);
        this.scrollTimer = setInterval(this.scrollUp.fnBind(this), 5 * 1000)
    }
    merge(a.prototype, {
        ID: 0,
        scrollTimer: undefined,
        indexs: [],
        initDom: function() {
            if (!document.getElementById("globalIndexScrollerCss")) {
                document.write('<link rel="stylesheet" href="https://finance.sina.com.cn/basejs/globalIndexScroller.css" type="text/css" id="globalIndexScrollerCss" />')
            }
            document.write('<div class="global_index_scroller" id="globalIndexScroller' + this.ID + '" style="visibility:hidden;"><div class="global_index_scroller_body"></div><div class="scroller_oper"><a href="javascript:void(0)" class="scroller_down"></a><a href="javascript:void(0)" class="scroller_up"></a><a href="https://finance.sina.com.cn/money/globalindex/" target="_blank">\u73af\u7403\u5e02\u573a</a></div></div>');
            var h = b("#globalIndexScroller" + this.ID);
            setTimeout(function() {
                h.css("visibility", "")
            }, 500);
            var f = h.find(".global_index_scroller_body");
            var g, n;
            var e, k;
            var o;
            for (var m = 0; m < this.indexCfgs.length; m++) {
                e = this.indexCfgs[m];
                g = b("<ul>").appendTo(f);
                for (var l = 0; l < e.length; l++) {
                    k = e[l];
                    if (k[2] == "IF") {
                        if (k[0] == "IF") {
                            k[0] = hq_str_CFF_LIST.split(",")[0]
                        }
                        k[1] = k[1].replace("$IF", k[0]);
                        k[4] = (k[4] || "").replace("$IF", k[0])
                    }
                    n = b("<li>").addClass(k[5] || "").appendTo(g);
                    n.html('<span class="#rg#_@UD_changeP@"><a class="#rg#_arrow_@UD_changeP@ #hasLink#" #href#>#name#</a><i>\uff1a</i>#fields#</span>'.replace(/#rg#/g, k[3]).replace("#name#", k[1]).replace("#href#", k[4] ? 'href="' + k[4] + '" target="_blank"' : "").replace("#hasLink#", k[4] ? "" : "no_link").replace("#fields#", "@" + (k[6] || "now,changeP").split(",").join("@ @") + "@"));
                    this.indexs.push(new c(k,new DataDrawer(n[0],{
                        amount: {
                            key: "amount",
                            shift: -4,
                            digit: 2,
                            p: "$1\u4ebf\u5143"
                        }
                    })))
                }
            }
            h.find(".scroller_down").click(this.scrollDown.fnBind(this));
            h.find(".scroller_up").click(this.scrollUp.fnBind(this))
        },
        getData: function() {
            var f = [];
            for (var e = 0; e < this.indexs.length; e++) {
                f.push(this.indexs[e].makeHqKey())
            }
            (window.loadScript || getScript)(d.replace("$rn", random()) + f.join(","), this.gotData.fnBind(this))
        },
        gotData: function() {
            var f;
            for (var e = 0; e < this.indexs.length; e++) {
                this.indexs[e].draw()
            }
        },
        scrolling: false,
        scrollUp: function() {
            if (this.scrolling) {
                return
            }
            this.scrolling = true;
            var e = b("#globalIndexScroller" + this.ID + " .global_index_scroller_body ul:first");
            var f = this;
            e.animate({
                marginTop: "-" + e.height() + "px"
            }, {
                complete: function() {
                    f.scrolling = false;
                    e.css("marginTop", "0").appendTo(b("#globalIndexScroller" + f.ID + " .global_index_scroller_body"))
                }
            });
            if (this.scrollTimer) {
                clearInterval(this.scrollTimer);
                this.scrollTimer = setInterval(this.scrollUp.fnBind(this), 5 * 1000)
            }
            return false
        },
        scrollDown: function() {
            if (this.scrolling) {
                return
            }
            this.scrolling = true;
            var e = b("#globalIndexScroller" + this.ID + " .global_index_scroller_body ul:last");
            e.css("marginTop", "-" + e.height() + "px");
            e.prependTo(b("#globalIndexScroller" + this.ID + " .global_index_scroller_body"));
            var f = this;
            e.animate({
                marginTop: "0"
            }, {
                complete: function() {
                    f.scrolling = false
                }
            });
            if (this.scrollTimer) {
                clearInterval(this.scrollTimer);
                this.scrollTimer = setInterval(this.scrollUp.fnBind(this), 5 * 1000)
            }
            return false
        },
        stop: function() {
            clearInterval(this.scrollTimer);
            this.scrollTimer = 0
        }
    });
    function c(e, f) {
        this.cfg = e;
        this.drawer = f
    }
    merge(c.prototype, {
        makeHqKey: function() {
            switch (this.cfg[2]) {
            case "cn":
                return "s_" + this.cfg[0];
                break;
            case "hk":
                return "rt_hk" + this.cfg[0];
                break;
            case "us":
                return "gb_" + this.cfg[0].replace(/\./g, "$");
                break;
            case "hf":
                return "hf_" + this.cfg[0];
                break;
            case "forex":
                return this.cfg[0];
                break;
            case "IF":
                return "CFF_RE_" + this.cfg[0];
                break;
            case "b":
                return "b_" + this.cfg[0];
                break;
            default:
                alert("\u65b0\u7684\u7c7b\u578b\uff0c\u9700\u6dfb\u52a0\u4ee3\u7801");
                break
            }
        },
        draw: function() {
            var e = this.processData();
            this.drawer.draw(e)
        },
        processData: function() {
            var g = window["hq_str_" + this.makeHqKey()];
            var f = {};
            var e = g.split(",");
            switch (this.cfg[2]) {
            case "cn":
                f.name = e[0];
                f.now = e[1];
                f.change = e[2];
                f.changeP = e[3];
                f.volume = e[4];
                f.amount = e[5];
                break;
            case "hk":
                f.now = e[6];
                f.change = e[6] - e[3];
                f.changeP = (e[6] - e[3]) / e[3] * 100;
                break;
            case "us":
                f.name = e[0];
                f.now = e[1];
                f.change = e[4];
                f.changeP = e[2];
                f.volume = e[10];
                break;
            case "hf":
                f.now = e[0];
                f.change = e[0] - e[7];
                f.changeP = f.change / e[7] * 100;
                break;
            case "forex":
                f.now = e[8];
                f.change = e[8] - e[3];
                f.changeP = f.change / e[3] * 100;
                break;
            case "IF":
                f.now = e[3];
                f.change = e[3] - e[14];
                f.changeP = f.change / e[14] * 100;
                break;
            case "b":
                f.now = e[1];
                f.change = e[2];
                f.changeP = e[3];
                break
            }
            return f
        }
    });
    if (!window.GlobalIndexScroller) {
        window.GlobalIndexScroller = a
    }
}(jQuery);
/*璁﹊e6缂撳瓨鑳屾櫙鍥�*/
if (/ie 6/i.test(navigator.userAgent)) {
    document.execCommand("BackgroundImageCache", false, true);
}
var Conn = {};
var digit = 2;

!function($) {
    var UPCOLOR = 'up'
      , DOWNCOLOR = 'down'
      , FLATCOLOR = 'flat';
    window.UPCOLOR = UPCOLOR;
    window.DOWNCOLOR = DOWNCOLOR;
    window.FLATCOLOR = FLATCOLOR;
    var hqURL = 'https://hq.sinajs.cn/rn=$rn&list=';
    var hqURL_txt = hqURL.replace('$rn', '$rn&format=text');
    var pageURL = 'https://finance.sina.com.cn/realstock/company/$symbol/nc.shtml';
    var pageURL2 = 'https://finance.sina.com.cn/fund/quotes/$symbol/bc.shtml';

    var h5Test = document.createElement('canvas');
    window.h5Status = 0;
    var flStatus = 0;

    //鍒ゆ柇鏀寔FL銆丠5
    if ((h5Test.getContext && h5Test.getContext('2d'))) {
        h5Status = 1;
    } else {
        h5Status = 0;
    }
    var fpVer = swfobject.getFlashPlayerVersion();
    flStatus = fpVer['major'] > 0 ? 1 : 0;

    clock.init();
    $(function() {
        //        clock.init([{ elID: 'time',area: 'CN',template: 'H:M:S'}]);
        holdStatus.init();
        adnotice.init();
        notice.init();
        hydb.init();
        //        breakingNewsCtrl.init();
        stockNews.init();
        stockTip.init();
        new DataTable('#tt6_01','position_as_type_c1','https://vip.stock.finance.sina.com.cn/quotes_service/view/CN_BillList.php?sort=ticktime&symbol=' + papercode + '&num=11','bill_detail_list',{
            time: 0,
            now: 2,
            volume: 1,
            BS: 3
        },{
            now: {
                digit: digit
            }
        },function(data) {
            var _d = hqParser.a(window['hq_str_' + papercode]);
            /*鎴愪氦閲忓悜涓嬪彇鏁�*/
            data.volume = Math.floor(data.volume / 100) * 100;
            data.BS = data.BS.toLowerCase();
            data['涔板崠'] = {
                'up': '涔板叆',
                'down': '鍗栧嚭'
            }[data.BS] || '涓€х洏';
            data.change = data.now - _d.preClose;
        }
        );

        new DataTable('#tt6_02','position_as_type_c2','https://vip.stock.finance.sina.com.cn/quotes_service/view/cn_price_list.php?&symbol=' + papercode + '&num=11','price_statist_list',{
            now: 0,
            volume: 1,
            ZB: 2
        },{
            now: {
                digit: digit
            },
            volume: {
                digit: 0,
                '涓�/浜�': true
            }
        },function(data) {
            var _d = hqParser.a(window['hq_str_' + papercode]);
            data.change = data.now - _d.preClose;
        }
        );

        new DataTable('#tt6_03','position_as_type_c3','https://vip.stock.finance.sina.com.cn/quotes_service/view/vML_DataList.php?asc=j&symbol=' + papercode + '&num=11','minute_data_list',{
            time: 0,
            now: 1,
            volume: 2
        },{
            now: {
                digit: digit
            },
            volume: {
                digit: 0,
                '涓�/浜�': true
            }
        },function(data) {
            var _d = hqParser.a(window['hq_str_' + papercode]);
            data.change = data.now - _d.preClose;
        }
        );

        new TabCont('ltgd');
        //        new TabCont('finance_overview');
        hoverShow.init();
        new TabCont('trade_buy','mouseover').show(0);
        new TabCont('trade_info','mouseover').show(0);
        technology.init();
        louver.init();
        if (stockType != 'B') {
            moneyFlow.init();
        }

        initWeiboJS();
        //        stockAsk.init();

        mgzb.init();
        cwbl.init();

        setTimeout(function() {
            swfobject.embedSWF("https://finance.sina.com.cn/stock/message/gxq/Flash/OpenFlashChart.swf", "gxq_radar", "257", "163", "9.0.0", "/expressInstall.swf", {
                "data-file": "https://finance.sina.com.cn/stock/message/gxq/" + papercode + "/radar.txt"
            }, {
                wmode: 'transparent'
            });
        }, (/ie 6/i.test(navigator.userAgent) ? 1 : 0.01) * 1000);
    });

    /*涓昏鎯�*/
    var hq = window.hq = new function() {
        var _drawer;
        var _pause = false;
        var _cookieCfg = {
            path: '/',
            domain: 'finance.sina.com.cn',
            expires: '7'
        };
        var _cookieKey = 'FINA_V5_HQ';

        this.webSocketInterval = 3;
        if (!this.webSocketObj) {
            this.webSocketObj = null
        }
        if (!this.hqoldInterval) {
            this.hqoldInterval = null
        }
        this.init = function() {
            var that = this;
            if (this.webSocketObj)
                this.webSocketObj.close();
            if (/^sh900/.test(papercode)) {
                digit = 3;
            }
            var _f_cfg_now = {
                key: 'now',
                digit: digit
            };
            var _f_cfg_up_limit = {
                key: 'up_limit',
                digit: digit
            };
            var _f_cfg_down_limit = {
                key: 'down_limit',
                digit: digit
            };
            var _f_cfg_open = {
                key: 'open',
                digit: digit
            };
            var _f_cfg_preClose = {
                key: 'preClose',
                digit: digit
            };
            var _f_cfg_high = {
                key: 'high',
                digit: digit
            };
            var _f_cfg_low = {
                key: 'low',
                digit: digit
            };
            var _f_cfg_change = {
                key: 'low',
                digit: digit
            };
            var _f_cfg_volume = {
                key: 'volume',
                digit: 0,
                '涓�/浜�': true,
                shift: -2,
                p: '$1鎵�'
            };
            var _f_cfg_amount = {
                key: 'amount',
                digit: 0,
                '涓�/浜�': true,
                p: '$1鍏�'
            };
            _drawer = new DataDrawer('hq',{
                now: _f_cfg_now,
                change: _f_cfg_change,
                up_limit: _f_cfg_up_limit,
                down_limit: _f_cfg_down_limit,
                open: _f_cfg_open,
                preClose: _f_cfg_preClose,
                high: _f_cfg_high,
                low: _f_cfg_low,
                volume: _f_cfg_volume,
                amount: _f_cfg_amount
            });
            loadScript(hqURL.replace('$rn', random()) + papercode, function() {
                _gotData(false, true);
            }, true);
            //Cookie.set(_cookieKey,0, _cookieCfg);
            //0514 zyc
            if (window['hq_str_' + papercode] && window['hq_str_' + papercode + '_i']) {
                _gotData(true);
            }
            //_getData();
            /*涓昏鎯呮姤浠蜂笉鍋氶檺鍒讹紝涓€鐩村埛*/
            //setInterval(_getData, 5 * 1000);
            setInterval(_abhbk_getData, 5 * 1000);
            //websocket
            if (this.webSocketObj) {
                this.webSocketObj.close();
                this.webSocketObj = null
            }
            _getData.call(this);
            //hqFlash.init();
            if (location.search.indexOf('showimg') > -1) {
                $('#flashOK').hide();
                hqImg.init();
            } else if (location.search.indexOf('showh5') > -1) {
                $('#flashOK').hide();
                if (h5Status == 1) {
                    initH5.init();
                    $('#h5Container').show();
                } else {
                    hqImg.init();
                }
            } else {
                if (h5Status == 1) {
                    $('#flashOK').hide();
                    initH5.init();
                    $('#h5Container').show();
                } else {
                    $('#h5Container').hide();
                    if (flStatus == 1) {
                        $('#flashOK').show();
                        hqFlash.init();
                    } else {
                        $('#flashOK').hide();
                        hqImg.init();
                    }
                }
            }
            that.switchfive = function clickSz() {
                var _cookieCfg = {
                    path: '/',
                    domain: 'finance.sina.com.cn',
                    expires: '7'
                };
                var _cookieKey = 'FINA_V5_HQ';
                $('.js-five-hq').bind('click', function() {
                    var self = $(this);
                    if (self.hasClass('five-hq')) {
                        Cookie.set(_cookieKey, 0, _cookieCfg);
                        //that.init();
                        window.location.href = "https://finance.sina.com.cn/realstock/company/" + papercode + "/nc.shtml";
                    } else {
                        Cookie.set(_cookieKey, 1, _cookieCfg);
                        //that.init();
                        window.location.href = 'https://finance.sina.com.cn/realstock/company/' + papercode + '/5g.shtml';
                    }
                });
            }
            ;
            that.switchfive();
        }
        ;
        function _appendScript(src) {
            var o = document.createElement('script');
            o.src = src;
            document.getElementsByTagName('head')[0].appendChild(o);
        }
        ;function _waitfor(exp, cb, time) {
            var e, r;
            if (!time) {
                time = 100;
            }
            try {
                r = eval(exp);
            } catch (e) {}
            if (r) {
                return cb();
            }
            //var _t = this;
            setTimeout(function() {
                return _waitfor(exp, cb, time);
            }, time * 1.2);
        }
        ;function _getData() {
            /*闇€瑕佽繛姣斾环鐨勮偂绁ㄦ暟鎹竴璧峰姞杞�*/
            var self = this;
            var _list = [papercode];
            _list.push(papercode + '_i');
            a_code && _list.push(a_code);
            b_code && _list.push(b_code);
            b_code && _list.push({
                sh: 'RMBUSD',
                sz: 'RMBHKD'
            }[b_code.replace(/\d/g, '')]);
            corr_hkstock && _list.push('rt_hk' + corr_hkstock) && _list.push('RMBHKD');
            corr_bdc && _list.push(corr_bdc);
            !corr_bdc && corr_bde && _list.push(corr_bde);
            RS.corr_future && RS.corr_future.length && _list.push(/\d/.test(RS.corr_future[0]) ? RS.corr_future[0] : 'hf_' + RS.corr_future[0]);
            _list.push('bk_' + bkSymbol);
            //璇锋眰琛屾儏涓叉帴鍙�

            loadScript(hqURL.replace('$rn', random()) + _list.join(','), _gotData, true);
            //cookie
            if (1 || Cookie.get('FINA_V5_HQ') * 1) {
                var self = this;
                if (!window.IO || !window.IO.WebPush4) {
                    _appendScript('https://woocall.sina.com.cn/lib/IO.WebPush4.js');
                    var request_hqstr = hqURL.replace('$rn', random()).replace('https:\/\/', '') + papercode;
                    _waitfor('IO.WebPush4', function() {
                        //websocket
                        self.webSocketObj = new IO.WebPush4('hq.sinajs.cn',[papercode, papercode + '_i'],function(m) {
                            _gotData.call(self, false, m);
                        }
                        ,{
                            interval: self.webSocketInterval
                        });
                    }, 30);
                } else {
                    //websocket
                    self.webSocketObj = new IO.WebPush4('hq.sinajs.cn',[papercode, papercode + '_i'],function(m) {
                        _gotData.call(self, false, m);
                    }
                    ,{
                        interval: self.webSocketInterval
                    });
                }
            } else {
                clearInterval(self.hqoldInterval);
                loadScript(hqURL.replace('$rn', random()) + _list.join(','), function() {
                    _gotData(false, true);
                }, true);
                self.hqoldInterval = setInterval(function() {
                    loadScript(hqURL.replace('$rn', random()) + _list.join(','), function() {
                        _gotData(false, true);
                    }, true);
                }, 3000);
            }

        }
        function _abhbk_getData() {
            /*闇€瑕佽繛姣斾环鐨勮偂绁ㄦ暟鎹竴璧峰姞杞�*/
            var self = this;
            var _list = [papercode];
            _list.push(papercode + '_i');
            a_code && _list.push(a_code);
            b_code && _list.push(b_code);
            b_code && _list.push({
                sh: 'RMBUSD',
                sz: 'RMBHKD'
            }[b_code.replace(/\d/g, '')]);
            corr_hkstock && _list.push('rt_hk' + corr_hkstock) && _list.push('RMBHKD');
            corr_bdc && _list.push(corr_bdc);
            !corr_bdc && corr_bde && _list.push(corr_bde);
            RS.corr_future && RS.corr_future.length && _list.push(/\d/.test(RS.corr_future[0]) ? RS.corr_future[0] : 'hf_' + RS.corr_future[0]);
            _list.push('bk_' + bkSymbol);
            //璇锋眰琛屾儏涓叉帴鍙�
            loadScript(hqURL.replace('$rn', random()) + _list.join(','), function() {
                abhBk.draw();
            }, true);
        }
        function _gotData(onlyPaperCode, m) {
            //鏀规垚websocket鏂瑰紡
            var that = this;
            if (!m)
                return;
            var hqstr;
            if (that.webSocketObj) {
                hqstr = m[papercode];
                //window[papercode]
            } else {
                hqstr = window['hq_str_' + papercode];
            }
            /* if (!onlyPaperCode) {
                abhBk.draw(m);
            }*/
            /*涓嶆槸姝e父浜ゆ槗鑲$エ鎻愮ず*/
            if (stock_state != 1) {
                _notTrading();
                return;
            }
            /*娌℃湁琛屾儏涓插叏閮ㄨ緭鍑�--锛屾寜鍋滅墝缁欎簣鎻愮ず*/
            if (!hqstr) {
                _drawer.draw({});
                $('#trading').hide();
                $('#closed').html('--').show();
                $('#hq').removeClass('has_limit');
                return;
            }
            var _data = hqParser.a(hqstr, papercode);
            //鏍煎紡鍖�
            //var _data = hqParser.a(window['hq_str_' + papercode], papercode);
            /*if(window['hq_str_' + papercode +'_i']){//0514 zyc
                var _data_i = window['hq_str_' + papercode+'_i'].split(',');
                var totalcapital =  _data_i[7];
            }*/
            var once_hq_i = m[papercode + '_i'] || window['hq_str_' + papercode + '_i'];
            if (once_hq_i) {
                //0514 zyc
                var _data_i = once_hq_i.split(',');
                window.totalcapital = _data_i[7];
                //鎬昏偂鏈�
            }
            if (_data.name && _data.name != '--') {
                var stockname = _data.name;
                var _stockName = $id('stockName');
                _stockName.innerHTML = _stockName.innerHTML.replace(/^[^<]*/, _data.name);
            }
            var _price = ((_data.now * 1) || _data.preClose);
            _data.open_color = _data.open - _data.preClose;
            _data.high_color = _data.high - _data.preClose;
            _data.low_color = _data.low - _data.preClose;
            //鍒ゆ柇娴侀€氳偂鏈�
            if (flag == 1)
                //var currcapital = window.currcapital;
                currcapital = _data_i ? _data_i[8] : window.currcapital;
            if (flag == 2)
                var currcapital = curracapital;
            if (flag == 3)
                var currcapital = currbcapital;
            if (currcapital * 1) {
                _data.turnover = _data.volume / currcapital / 10000 * 100;
            }
            _data.totalShare = _price * totalcapital * 10000;
            _data.cvs = _price * currcapital * 10000;
            if (profit_four > 0) {
                _data.pe = _data.totalShare / profit_four / 100000000;
            } else {
                _data.pe = '--';
            }
            if (mrq_mgsy > 0) {
                _data.pe_mrq = (_price / mrq_mgsy).toFixed(2);
            } else {
                _data.pe_mrq = '--';
            }
            if (mgjzc > 0) {
                _data.pb = _price / mgjzc;
            } else {
                _data.pb = '--';
            }
            /*闇€瑕佹敞鎰忔暟鎹绠椼€乨raw銆佷慨鏀规樉绀虹殑椤哄簭锛屽繀椤绘寜杩欎釜鍏堝悗鏉�*/
            if (_data.stopDay && !_data.buy && !_data.sell) {
                _data.volume = _data.amount = _data.swing = _data.turnover = '--';
                document.title = stockname + '(鍋滅墝)_鑲$エ琛屾儏_鏂版氮璐㈢粡_鏂版氮缃�';
                $('#hq').removeClass('has_limit');
            } else {
                document.title = stockname + ' ' + _data.now.toFixed(isSHB(papercode) ? 3 : 2) + '(' + _data.changeP.toFixed(2) + '%)_鑲$エ琛屾儏_鏂版氮璐㈢粡_鏂版氮缃�';
                var _limit_rate = 1 / 10;
                if (/S/.test(stockname)) {
                    _limit_rate = 1 / 20;
                }
                /*鍏堢畻涓€涓定璺屽仠闄愬埗锛屽叿浣撹涓嶈鏄剧ず鏈€鍚庡啀鍒ゆ柇*/
                if (!window.trans_flag || /^N/.test(stockname)) {
                    _limit_rate = false;
                }
                if (_limit_rate === false) {
                    $('#hq').removeClass('has_limit');
                } else {
                    $('#hq').addClass('has_limit');
                    _data.up_limit = _data.preClose * (1 + _limit_rate);
                    _data.down_limit = _data.preClose * (1 - _limit_rate);
                }
            }
            //鏁版嵁娓叉煋
            _drawer.draw(_data);

            /*鍏ㄥぉ鍋滅墝鐨勮瘽鏄剧ず鎻愮ず*/
            if (_data.stopDay && !_data.buy && !_data.sell) {
                $('#trading').hide();
                $('#closed').html('鍋滅墝').show();
                return;
            } else {
                /*鏈変拱鍏ヤ环鎴栧崠鍑轰环鐨勮瘽灏辫涓烘仮澶嶄氦鏄撲簡*/
                if (_data.status == '00' || _data.buy || _data.sell) {
                    _pause = false;
                } else {
                    $('#hqTime').hide();
                    $('#hqPause').show();
                    if (!_pause) {
                        /*璇锋眰鍋滅墝鏃堕棿*/
                        getScript('https://vip.stock.finance.sina.com.cn/quotes_service/api/jsonp.php/var%20continueTime=/CN_StockForGDTXService.getStockStatus04Info?code=' + papercode, function() {
                            $('#hqPause').html('涓存椂鍋滅墝鑷�' + (continueTime.endtime || ' ').split(' ')[1]);
                        });
                    } else if (window.continueTime) {
                        $('#hqPause').html('涓存椂鍋滅墝鑷�' + (continueTime.endtime || ' ').split(' ')[1]);
                    }
                    _pause = true;
                }
            }
            barBets.drawBets(hqstr);
            everyDeal.updateDeal(hqstr);
        }

        function _notTrading() {
            $('#trading').hide();
            $('#closed').html({
                '0': '鏃犺褰�',
                '2': '鏈笂甯�',
                '3': '宸查€€甯�'
            }[stock_state]).show();
            if (stock_state == '2') {
                /*璇锋眰涓婂競鏃堕棿*/
                if (!window.ListingDate) {
                    getScript('https://vip.stock.finance.sina.com.cn/api/jsonp.php/var%20ListingDate=/BasicStockSrv.getStockInfo?PaperCode=' + papercode, function() {
                        if (ListingDate.LISTDATE) {
                            $('#hqTime').html('涓婂競鏃ワ細' + ListingDate.LISTDATE.split(' ')[0]);
                        }
                    });
                } else {
                    if (ListingDate.LISTDATE) {
                        $('#hqTime').html('涓婂競鏃ワ細' + ListingDate.LISTDATE.split(' ')[0]);
                    }
                }
            }
        }

    }
    ();

    var abhBk = new function(m) {
        var _inited = false;
        var _drawer;
        var _otherSymbol;
        var _bondData;
        var _type;
        this.AH = '';
        var hqObj = m;

        this.draw = function() {
            /*娌″垵濮嬪寲鐨勮瘽鍏堝垵濮嬪寲*/
            if (!_inited) {
                this.init();
            }
            var _data = {};
            var _myData = hqParser.a(window['hq_str_' + papercode], papercode);
            //var _myData = hqParser.a(hqObj[papercode], papercode);
            /*鏈夊搴攁/b鐨勮瘽绠椾釜鏁板嚭鏉�*/
            if (_otherSymbol) {
                var _otherData = hqParser.a(window['hq_str_' + _otherSymbol], _otherSymbol);
                _data.name = _otherData.name || _otherSymbol;
                _data.now = _otherData.now;
                _data.changeP = _otherData.changeP;
                // _data['a%b'] = a_code == papercode ? _myData.now / _otherData.now * 100 : _otherData.now / _myData.now * 100;
                // _data['a%b'] /= window['hq_str_' + { sh: 'RMBUSD',sz: 'RMBHKD'}[b_code.replace(/\d/g,'')]].split(',')[3] / 100;
            }
            /*鏈夊搴旀腐鑲$殑璇濓紝璁$畻*/
            if (corr_hkstock) //corr_hkstock涓篈鑲″搴旀腐鑲′唬鐮�
            {
                var _hkData = hqParser.hk(window['hq_str_rt_hk' + corr_hkstock], 'hk' + corr_hkstock);
                _data.hkSymbol = _hkData.symbol;
                _data.hkName = _hkData.name || _hkData.symbol;
                _data.hkNow = _hkData.now;
                //褰撳墠浠�
                _data.hkchangeP = _hkData.changeP;
                //
                /*鍙畻AH姣斾环锛孊H涓嶇畻*/
                _data.AH = (_hkData.now / hqParser.a(window['hq_str_' + a_code]).now * window.hq_str_RMBHKD && window.hq_str_RMBHKD.split(",")[3]).toFixed(2) + '%';
                _data['hk%a'] = _hkData.now / hqParser.a(window['hq_str_' + a_code]).now * window.hq_str_RMBHKD && window.hq_str_RMBHKD.split(",")[3];
                //console.log(_data['hk%a'],corr_hkstock,a_code,window.hq_str_RMBHKD.split(",")[3],_data.hkNow,_data.hkchangeP);//锛坈orr_hkstock--娓偂浠g爜,a_code==papercode--A鑲′唬鐮�,100娓厓瀵瑰簲澶氬皯浜烘皯甯侊級
            }
            if (corr_bdc) {
                _bondData = hqParser.a(window['hq_str_' + corr_bdc], corr_bdc);
                _data.bondSymbol = _bondData.symbol;
                _data.bondName = _bondData.name || _bondData.symbol;
                _data.bondNow = _bondData.now;
                _data.bondchangeP = _bondData.changeP;
            } else {
                if (corr_bde) {
                    _bondData = hqParser.a(window['hq_str_' + corr_bde], corr_bde);
                    _data.bondSymbol = _bondData.symbol;
                    _data.bondName = _bondData.name || _bondData.symbol;
                    _data.bondNow = _bondData.now;
                    _data.bondchangeP = _bondData.changeP;
                }
            }
            var _bkData = window['hq_str_bk_' + bkSymbol] && window['hq_str_bk_' + bkSymbol].split(',');
            if(_bkData){
                _data.bkName = _bkData[1];
                _data.bkchangeP = _bkData[5];
                _data.lzName = _bkData[12];
                _data.lzSymbol = _bkData[8];
                _data.lzNow = _bkData[10];
            }

            if (isSHB(_data.lzSymbol)) {
                _data.fieldsImportant = {
                    lzNow: {
                        digit: 3
                    }
                };
            }
            _data.lzchangeP = _bkData && _bkData[9];

            if (RS.corr_future && RS.corr_future.length) {
                if (/\d/.test(RS.corr_future[0])) {
                    if (window['hq_str_' + RS.corr_future[0]]) {
                        var _qhData = window['hq_str_' + RS.corr_future[0]].split(',');
                        _data.qhNow = _qhData[8];
                        _data.qhchangeP = (_qhData[8] - _qhData[10]) / _qhData[10] * 100;
                    }
                } else {
                    if (window['hq_str_hf_' + RS.corr_future[0]]) {
                        var _qhData = window['hq_str_hf_' + RS.corr_future[0]].split(',');
                        _data.qhNow = _qhData[0];
                        _data.qhchangeP = (_qhData[0] - _qhData[7]) / _qhData[7] * 100;
                    }
                }
            }

            _drawer.draw(_data);
        }
        ;
        this.init = function() {
            _inited = true;

            var _html = [];
            _otherSymbol = (a_code + b_code).replace(papercode, '');
            if (_otherSymbol) {
                _html.push('<a href="' + pageURL.replace('$symbol', _otherSymbol) + '">@name@</a> @now@ <span class="@UD_changeP@">@changeP@</span>');
                //@AH@浠h〃_data.AH
            }
            var _hkSymbol = corr_hkstock;
            this.AH = this.AH ? this.AH + '%' : "0.00%";
            /*蹇呴』褰撳墠椤垫槸A鑲℃椂鎵嶅嚭瀵瑰簲娓偂淇℃伅*/
            if (_hkSymbol /* && a_code == papercode*/
            ) {
                _html.push('<a href="https://biz.finance.sina.com.cn/suggest/lookup_n.php?strict=1&country=hk&q=' + _hkSymbol + '" target="_blank">@hkName@.HK</a> @hkNow@ <span class="hk_@UD_hkchangeP@"> @hkchangeP@ </span> H/A<span> @AH@</span>');
            }
            if (RS.corr_future && RS.corr_future.length) {
                if (/\d/.test(RS.corr_future[0])) {
                    _html.push('<a href="https://finance.sina.com.cn/money/future/quote.html?' + RS.corr_future[0] + '" target="_blank" title="鐩稿叧鏈熻揣">' + RS.corr_future[1] + '</a> @qhNow@ <span class="@UD_qhchangeP@">@qhchangeP@</span>');
                } else {
                    _html.push('<a href="https://finance.sina.com.cn/money/future/quote_hf.html?' + RS.corr_future[0] + '" target="_blank" title="鐩稿叧鏈熻揣">' + RS.corr_future[1] + '</a> @qhNow@ <span class="us_@UD_qhchangeP@">@qhchangeP@</span>');
                }
            }
            var _bondSymbol = corr_bdc || corr_bde;
            /*鍊哄埜閮ㄥ垎*/
            if (_bondSymbol) {
                if (_html.length < 2)
                    _html.push('<a href="https://biz.finance.sina.com.cn/suggest/lookup_n.php?country=bond&q=' + _bondSymbol + '" target="_blank">@bondName@</a> @bondNow@ <span class="@UD_changeP@">@bondchangeP@</span>');
                if (_hkSymbol && _otherSymbol)
                    _html.push('<a href="https://biz.finance.sina.com.cn/suggest/lookup_n.php?country=bond&q=' + _bondSymbol + '" target="_blank">@bondName@</a> @bondNow@ <span class="@UD_changeP@">@bondchangeP@</span>');
            }
            if (_html.length < 3) {
                if (_html.length == 2) {
                    _html.push('<span class=""><a href="https://vip.stock.finance.sina.com.cn/mkt/#' + bkSymbol + '" target="_balnk" title="鎵€灞炴澘鍧�">@bkName@</a></span> <span class="@UD_bkchangeP@">@bkchangeP@</span>');
                } else {
                    _html.push('<span class=""><a href="https://vip.stock.finance.sina.com.cn/mkt/#' + bkSymbol + '" target="_balnk" title="鎵€灞炴澘鍧�">@bkName@</a></span> <span class="@UD_bkchangeP@">@bkchangeP@</span> <span class="blue_d">棰嗘定鑲★細</span><a href="' + pageURL.replace('$symbol', '@lzSymbol@') + '">@lzName@</a> @lzNow@ <span class="@UD_lzchangeP@">@lzchangeP@</span>');
                }
            }

            $('#abhbk').html(_html.join('&nbsp;&nbsp;'));

            var _cfgNum = {
                digit: 2,
                cfg: 8
            };
            var _cfgP = {
                digit: 2,
                cfg: 4 + 8,
                p: '$1%'
            };
            var _cfgHkNum = {
                digit: 3,
                cfg: 8
            };
            var _cfgHkP = {
                digit: 2,
                cfg: 4 + 8,
                p: '$1%'
            };
            var _cfgP2 = {
                digit: 2,
                cfg: 8,
                p: '$1%'
            };
            var _cfg = {};
            _cfg.now = _cfg.lzNow = _cfg.qhNow = _cfg.bondNow = _cfgNum;
            /*濡傛灉褰撳墠椤垫槸A鑲★紝涓擝鑲℃槸涓婃捣鐨勶紝B鑲″皬鏁颁綅鏀�3浣�*/
            if (b_code != papercode && /sh900/.test(b_code)) {
                _cfg.now = {
                    digit: 3,
                    cfg: 8
                };
            }
            _cfg.chaneP = _cfg.bkchangeP = _cfg.lzchangeP = _cfg.qhchangeP = _cfg.bondchangeP = _cfgP;
            _cfg['a%b'] = _cfg['hk%a'] = _cfgP2;
            _cfg.hkNow = _cfgHkNum;
            _cfg.hkchangeP = _cfgHkP;
            //瀵煎叆鏁版嵁骞舵覆鏌�
            _drawer = new DataDrawer('abhbk',_cfg);
        }
        ;
    }
    ();

    function f2(condition, amt, decimal, unit) {
        amt = parseFloat(amt);
        return (condition == 0 || isNaN(amt)) ? "--" : ((decimal === undefined ? amt : amt.toFixed(decimal)) + (unit || ""));
    }

    function getDiffCls(amt) {
        amt = parseFloat(amt);
        return amt > comparePrice ? "red" : (amt == comparePrice ? "" : "green");
    }

    function setDomCls(dom) {
        if(dom){
            dom.className = dom.className.replace(/\s(red|green|)$/, '');
            dom.className += ' ' + getDiffCls(dom.innerHTML);
        }
    }

    function setCss(dom, css) {
        if(dom){
            dom.className = dom.className.replace(/\s(up|down|)$/, '');
            dom.className += ' ' + css;
        }
    }
    var barBets = new function() {
        var _trs = "#tabfive tr";
        var _fiveRate = '#fiveRate';
        var _fiveAmt = '#fiveAmt';

        function _drawBets(hqStr) {
            if (!hqStr) {
                return;
            }
            var trs = $(_trs);
            var fiveRate = $(_fiveRate);
            var fiveAmt = $(_fiveAmt);
            var buy = sell = 0;
            var data = hqStr.split(',');
            var _data = hqParser.a(hqStr);
            var now = _data.now;
            var preClose = _data.preClose;
            if($(trs[6]).find("td")[0]){
                $(trs[6]).find("td")[0].innerHTML = now.toFixed(digit);
            }
            //浠锋牸

            for (var i = 0; i < 5; i++) {
                //鏇存柊涔�
                var tds = $(trs[7 + i]).find("td");
                if(tds[1]){
                    tds[1].innerHTML = f2(data[3] + data[10 + i * 2], parseInt(data[10 + i * 2]) / 100 || '--', 0);
                }
                //鏁伴噺
                if(tds[0]){
                    tds[0].innerHTML = f2(data[3] + data[10 + i * 2 + 1], data[10 + i * 2 + 1] * 1 || '--', digit);
                }
                //浠锋牸
                setCss(tds[0], checkUD(null, data[10 + i * 2 + 1] - preClose));
                buy += (data[10 + i * 2] * 1) || 0;

                //鏇存柊鍗�
                tds = $(trs[5 - i]).find("td");
                if(tds[1]){
                    tds[1].innerHTML = f2(data[3] + data[20 + i * 2], parseInt(data[20 + i * 2]) / 100 || '--', 0);
                }
                //鏁伴噺
                if(tds[0]){                
                    tds[0].innerHTML = f2(data[3] + data[20 + i * 2 + 1], data[20 + i * 2 + 1] * 1 || '--', digit);
                }
                //浠锋牸
                setCss(tds[0], checkUD(null, data[20 + i * 2 + 1] - preClose));
                sell += (data[20 + i * 2] * 1) || 0;

            }
            //if (tickettime >= 92500) {
            if (isNaN(sell))
                sell = 0;
            var tmp = 100 * (buy - sell) / (buy + sell);
            fiveRate.html(isNaN(tmp) ? "--" : f2(data[3], tmp, 2, "%"));
            //濮旀瘮
            var diff = ((buy - sell) / 100).toFixed(2);
            fiveAmt.html(f2(data[3], diff, 0));
            //濮斿樊
            var cls = checkUD({}, diff);
            if(fiveAmt[0]){
                fiveAmt[0].className = cls;
            }
            if(fiveRate[0]){
                fiveRate[0].className = cls;
            }
        }
        this.drawBets = _drawBets;
    }
    ();

    var everyDeal = new function() {
        var _hasInited = false;
        var _lastVolume;
        var _lastPrice, _lastBuy, _lastSell;

        function _initDeal() {
            if (_hasInited) {
                return;
            }
            _hasInited = true;
            getScript('https://vip.stock.finance.sina.com.cn/quotes_service/view/CN_TransListV2.php?num=11&symbol=' + papercode + '&rn=' + Math.round(Date.now() / 60000), function() {
                var body = $("#position_as_type_c0 tbody").empty();
                for (var i = 0; i < trade_item_list.length; i++) {
                    var data = trade_item_list[i];
                    var tr = $("<tr>").addClass('row_' + (i + 1) % 2);
                    $("<th>").html(data[0]).appendTo(tr);
                    var td = $("<td>").html(parseFloat(data[2]).toFixed(digit)).appendTo(tr);
                    setCss(td[0], checkUD(null, data[2] - window['hq_str_' + papercode] && window['hq_str_' + papercode].split(',')[2]));
                    $("<td>").html(parseInt(parseFloat(data[1]) / 100)).appendTo(tr);
                    $("<td>").html(data[3] == "UP" ? "涔板叆" : (data[3] == "EQUAL" ? "涓€х洏" : "鍗栧嚭")).addClass(data[3] == "UP" ? "up" : (data[3] == "EQUAL" ? "equal" : "down")).appendTo(tr);
                    body.append(tr);
                }

                $("#outamt").html(f2(parseInt(trade_INVOL_OUTVOL[0] / 100), trade_INVOL_OUTVOL[0] / 100, 0, "鎵�"));
                //澶栫洏
                $("#inamt").html(f2(parseInt(trade_INVOL_OUTVOL[1] / 100), trade_INVOL_OUTVOL[1] / 100, 0, "鎵�"));
                //鍐呯洏
                _lastVolume = (trade_INVOL_OUTVOL[0] + trade_INVOL_OUTVOL[1]) || 0;
                _lastPrice = trade_item_list[0] ? trade_item_list[0][2] : undefined;
            });
        }
        this.init = _initDeal;

        function _updateDeal(hqStr) {
            if (!_hasInited) {
                _initDeal();
                setTimeout(arguments.callee.bindArg(hqStr), 200);
                return;
            }
            var _data = hqParser.a(hqStr);
            try {
                if (_lastVolume < _data.volume) {
                    var _change = _data.volume - _lastVolume;
                    var _direct = 'equal';
                    if (_lastBuy || _lastSell) {
                        if (_data.now >= _lastSell && _lastSell) {
                            _direct = 'up';
                        }
                        if (_data.now <= _lastBuy && _lastBuy) {
                            _direct = 'down';
                        }
                    } else {
                        if (_data.now > _lastPrice) {
                            _direct = 'up';
                        }
                        if (_data.now < _lastPrice) {
                            _direct = 'down';
                        }
                    }
                    /*鍙湪绗竴娆℃椂鐢ㄤ簬寮ヨˉ鎺ュ彛鍜岃鎯呬覆宸紓锛屼箣鍚庡畬鍏ㄤ緷闈犱拱鍗栫洏鍙�*/
                    _lastPrice = undefined;

                    var body = $("#position_as_type_c0 tbody");
                    var tr = $("<tr>");
                    $("<th>").html(_data.time).appendTo(tr);
                    //鏃堕棿
                    $("<td>").html(_data.now.toFixed(digit)).addClass(checkUD(_data)).appendTo(tr);
                    //鎴愪氦浠�
                    $("<td>").html(parseInt(_change / 100)).appendTo(tr);
                    //鎴愪氦閲�
                    $('<td>').html({
                        up: '涔板叆',
                        down: '鍗栧嚭',
                        'equal': '涓€х洏'
                    }[_direct]).addClass(_direct).appendTo(tr);

                    //淇濊瘉娣诲姞鏃跺彧鏈�8鏉�
                    while (body.find("tr").length > 10) {
                        $(body.find("tr")[10]).remove();
                    }
                    body.prepend(tr);
                    var trs = body.find('tr');
                    for (var i = 0; i < trs.length; i++) {
                        trs[i].className = 'row_' + (i + 1) % 2;
                    }

                    trade_INVOL_OUTVOL[0] += _direct == "up" ? _change : (_direct == " " ? _change / 2 : 0);
                    //澶栫洏
                    trade_INVOL_OUTVOL[1] += _direct == "down" ? _change : (_direct == " " ? _change / 2 : 0);
                    //鍐呯洏

                    $("#outamt").html(parseInt(trade_INVOL_OUTVOL[0] / 100) == 0 ? "--" : f2(_data.now, parseInt(trade_INVOL_OUTVOL[0] / 100), undefined, "鎵�"));
                    //澶栫洏
                    $("#inamt").html(parseInt(trade_INVOL_OUTVOL[1] / 100) == 0 ? "--" : f2(_data.now, parseInt(trade_INVOL_OUTVOL[1] / 100), undefined, "鎵�"));
                    //鍐呯洏
                }
            } catch (e) {}
            _lastVolume = _data.volume;
            _lastBuy = hqStr.split(',')[11] * 1;
            _lastSell = hqStr.split(',')[21] * 1;
        }
        this.updateDeal = _updateDeal;
    }
    ();

    function DataTable(label, cont, interface, dataName, fields, fieldCfg, dataProcess) {
        this.drawer = new DataDrawer(cont,fieldCfg);
        this.interface = interface;
        this.dataName = dataName;
        this.fields = fields;
        this.dataProcess = dataProcess;
        $(label).mouseover(this.getData.fnBind(this));
    }
    merge(DataTable.prototype, {
        lastTime: undefined,
        freq: 120,
        getData: function() {
            if (new Date().getTime() - this.lastTime < this.freq * 1000) {
                return;
            }
            var _this = this;
            getScript(this.interface, function() {
                var _data = window[_this.dataName];
                var _dd = [];
                for (var i = 0; i < _data.length; i++) {
                    _dd.push({});
                    for (var f in _this.fields) {
                        _dd[i][f] = _data[i][_this.fields[f]];
                    }
                    if (_this.dataProcess) {
                        _this.dataProcess(_dd[i]);
                    }
                    _dd[i].rowIndex = (i + 1) % 2;
                }
                _this.drawer.draw(_dd);
            });
            this.lastTime = new Date().getTime();
        }
    });

    /*鍥剧墖鐗堣鎯�*/
    var hqImg = new function() {
        var _showingIndex = 0;
        this.init = function() {
            $('#picContainer').show();
            new TabCont('picContainer','click',_show).show(0);
            setInterval(_show, 30 * 1000);

            function _changeURL(img) {
                img.attr('url', img.attr('url').replace(/newchart\/.*?\/n/, 'newchart/' + this.value + '/n'));
                _show();
            }
            $('#selectImgK').change(_changeURL.bindArg($('#imgK')));
            new VSelect('selectImgK');
            $('#selectImgFqK').change(_changeURL.bindArg($('#imgFqK')));
            new VSelect('selectImgFqK');
            $('#selectImgJS').change(_changeURL.bindArg($('#imgJS')));
            new VSelect('selectImgJS');

            attention.init('img');
        }
        ;

        function _show(argIndex) {
            if (typeof argIndex == 'number') {
                _showingIndex = argIndex;
            }
            var _cont = $('#picContainer .cont').eq(_showingIndex);
            var _img = _cont.find('img');
            _img.attr('src', _img.attr('url').replace('$symbol', papercode) + '?' + random());

        }
    }
    ();
    /*琛屾儏flash*/
    var hqFlash = new function() {
        var _flashOK = false;
        /*flash鍑嗗濂藉悗涓诲姩璋冪敤*/
        Conn.flashOK = function() {
            _flashOK = true;
            compare.init('flash');
            technology.flashOK();
        }
        ;
        /*鎺у埗flash鍒锋柊銆傜洰鍓嶄负鑷埛鏂帮紝涓嶉渶瑕佷娇鐢�*/

        function _refresh() {
            if (_flashOK) {
                swfobject.getObjectById("hqFlash").updateData();
            }
        }
        this.refresh = _refresh;
        this.init = function() {
            if (location.search.indexOf('testimg') > -1 || /\((iPhone|iPad|iPod)/i.test(navigator.userAgent)) {
                $('#flashOK').hide();
                if (h5Status == 1) {
                    $('#h5Container').show();
                    initH5.init();
                } else {
                    hqImg.init();
                }

                return;
            }
            $('#flashOK').show();
            var parObj = {
                allowFullScreen: "true",
                allowScriptAccess: 'always',
                wmode: 'transparent'
            };
            var attObj = {};
            var flashvarsObj = {
                symbol: papercode,
                code: 'iddg64geja6fea4eafh9jbj7c5j4ie5d',
                s: '3'
            };
            var _search = {};
            location.search.replace(/view=([^&]+)/, function($1, $2) {
                flashvarsObj.view = $2;
            });
            //            _search.symbol = papercode;
            /*閬ㄦ父浼氭湁flash涓嶈繍琛宐ug锛岄渶鍔犻殢鏈烘暟鍔犺浇銆傝吘璁疶T鐨別xternal瀹炵幇鏈塨ug锛岀洿鎺�.max_version鎶ラ敊鈥︹€�*/
            try {
                if (window.external && window.external.max_version) {
                    _search.rn = random();
                }
            } catch (e) {}
            swfobject.embedSWF(flashURL + '?' + Object.toQueryString(_search), "flash", "560", "490", "10", "/expressInstall.swf", flashvarsObj, parObj, attObj, function(arg) {
                if (arg.success) {//                    _flashOK = true;compare.init();
                } else {
                    /*濡傛灉鏄痜lash鍔犺浇澶辫触锛屽姞杞藉浘鐗囩増锛屾渶杩戣闂偂楂樺害瑕佺缉灏忥紝瀵规瘮妯″潡鍔犲鐞�*/
                    $('#flashOK').hide();
                    if (h5Status == 1) {
                        $('#h5Container').show();
                        initH5.init();
                    } else {
                        hqImg.init();
                    }
                    /*鍋滄鍚屾椂琚叧娉ㄧ殑鍒锋柊*/
                    attention.stop();
                }

            });
        }
        ;
    }
    ();

    //init of h5:
    var _compareColor = ['#f69931', '#f2c700', '#3e4de1', '#bf58ef'];
    var _cnChart;
    var initH5 = new function() {

        this.init = function() {
            if (!window.KKE) {
                getScript('https://finance.sina.com.cn/sinafinancesdk/js/sf_sdk.js', function() {
                    getH5img();
                });
            } else {
                getH5img();
            }
            function getH5img() {
                KKE.api('plugins.sinaTKChart.get', {
                    compare: {
                        color: _compareColor
                    },
                    symbol: papercode,
                    //璇佸埜浠g爜
                    mt: 'cnlv1',
                    dom_id: 'h5Figure'//鏀剧疆鍥惧舰鐨刣om瀹瑰櫒id
                }, function(chart_) {
                    _cnChart = chart_;
                    //澶氱┖
                    if (window.location.search.indexOf('showBBI') != -1) {
                        _cnChart.showView({
                            view: 'kdd',
                            active: 3
                        });
                        $(document.body).scrollTop(480);
                    }
                    compareH5.init();
                });
            }
        }
    }
    ;

    /*瀵规瘮鍔熻兘*/
    var compareH5 = new function() {
        var _indexs = '#compareIndexH5 a';
        var _comList = [];
        var _max = 4;
        var _msg = '#compareMSGH5';
        var _suggest;
        var mkt;
        var idxSymbol;

        var _status = false;
        function _setmkt() {
            var idx = {};
            switch (mkt) {
            case 'sh':
                idx.symbol = 'sh000001';
                idx.name = '涓婅瘉鎸囨暟';
                $($id('h5Lv1added')).text('瀵规瘮娌寚');
                break;
            case 'sz':
                idx.symbol = 'sz399001';
                idx.name = '娣辫瘉鎸囨暟';
                $($id('h5Lv1added')).text('瀵规瘮娣辨寚');
                break;
            }
            return idx;
        }

        function _addCompare(argSym) {
            /*绌哄唴瀹逛笉鍝嶅簲*/
            argSym = replace$(argSym);
            if (!argSym || argSym == '鎷奸煶/浠g爜/鍚嶇О') {
                _noCompare();
                return;
            }

            var __arrayData = (_suggest._objectData["key_" + argSym] || "").replace(/&amp;/g, "&").replace(/;$/, "").split(";");
            //鏈夌殑璇濆彇绗竴涓�
            if (__arrayData.length) {

                var xm = __arrayData[0].split(',');
                //23,11,12,41,31
                switch (xm[1]) {
                case '11':
                case '12':
                case '23':
                case '81':
                    argSym = xm[3];
                    break;
                case '41':
                    argSym = 'gb_' + xm[2];
                    break;
                case '31':
                    argSym = 'rt_hk' + xm[2];
                    break;
                case '73':
                    argSym = 'sb' + xm[2];
                    break;
                case '71':
                    if (xm[2] === 'diniw' || xm[2] === 'usdcny') {
                        argSym = xm[2];
                        argSym = argSym.toUpperCase();
                    } else
                        argSym = 'fx_s' + xm[2];
                    break;
                }
            }//娌℃湁鎶ラ敊
            else {
                _error('璇疯緭鍏ユ纭殑鑲$エ浠g爜');
            }

            if (_comList.length >= _max) {
                _compareTooMore();
                return;
            }
            for (var i = 0; i < _comList.length; i++) {
                if (_comList[i].symbol == argSym) {
                    _addedCompare();
                    return;
                }
            }

            KKE && KKE.api('datas.hq.get', {
                symbol: argSym
            }, function(obj_) {

                if (!obj_.data[0].name) {
                    _error('姝よ瘉鍒稿凡閫€甯�');
                    return;
                }
                // var obj={symbol:argSym,name:obj_.data[0].name};
                var name = obj_.data[0].name.length > 4 ? obj_.data[0].name.substring(0, 4) + '..' : obj_.data[0].name;
                var obj = {
                    symbol: argSym,
                    name: name
                };
                _comList.push(obj);
                _cnChart.compare({
                    symbol: argSym,
                    linecolor: {
                        K_N: _compareColor[_comList.length - 1]
                    }
                });
                $('#h5CompareCon').show();
                cSymbol(obj, _compareColor[_comList.length - 1]);

                if (argSym == idxSymbol.symbol) {
                    if (argSym == 'sh000001')
                        $($id('h5Lv1added')).text('鍙栨秷瀵规瘮');
                    else
                        $($id('h5Lv1added')).text('鍙栨秷瀵规瘮');
                    _status = true;
                }
            })

            return false;
        }

        function cSymbol(obj_, color_) {
            var d = $C('div')
              , s1 = $C('span')
              , s2 = $C('span');
            d.appendChild(s1);
            d.appendChild(s2);
            $id('h5CompareCon').appendChild(d);

            s1.className = 'item-span-del';
            s2.className = 'item-span-name1';

            s2.style.color = color_;
            s2.innerHTML = obj_.name;
            d.setAttribute('data-symbol', obj_.symbol);

            $(d).click(function() {

                var delSymbol = this.getAttribute('data-symbol');

                if (delSymbol == idxSymbol.symbol) {
                    if (delSymbol == 'sh000001')
                        $($id('h5Lv1added')).text('瀵规瘮娌寚');
                    else
                        $($id('h5Lv1added')).text('瀵规瘮娣辨寚');
                    ;_status = false;
                }

                _cnChart.compare({
                    symbol: delSymbol
                }, true);

                for (var i = _comList.length - 1; i >= 0; i--) {
                    if (_comList[i].symbol == delSymbol) {
                        _comList.splice(i, 1);

                        _compareColor.push(_compareColor[i]);
                        _compareColor.splice(i, 1);
                    }
                }

                $id('h5CompareCon').removeChild(this);

                if (_comList.length <= 0)
                    $('#h5CompareCon').hide();
            });

            return d;
        }

        this.addCompare = _addCompare;

        function _noCompare() {
            _msg.html('璇烽€夋嫨瑕佸姣旂殑鑲$エ').show();
            setTimeout(function() {
                _msg.hide();
            }, 3 * 1000);
        }

        function _compareTooMore() {
            _error('鏈€澶氬彲瀵规瘮5鍙偂绁�');
        }

        function _addedCompare() {
            _error('宸茬粡娣诲姞浜嗚鑲$エ');
        }

        function _error(msg) {
            _msg.html(msg).show();
            setTimeout(function() {
                _msg.fadeOut();
            }, 2 * 1000);
        }
        /*渚沠lash璋冪敤锛屽垹闄ゅ姣�*/

        function _delCompare(argSym, argWrong) {
            for (var i = _comList.length - 1; i >= 0; i--) {
                if (_comList[i] == argSym) {
                    _comList.splice(i, 1);
                }
            }
            /*濡傛灉鏈夐敊璇彁绀烘樉绀�*/
            if (argWrong) {
                _error(argWrong);
            }
        }
        window.Conn.delSymbol = _delCompare;
        this.init = function() {
            mkt = papercode.substring(0, 2);
            idxSymbol = _setmkt();
            /*鎸囨暟娴眰*/
            $('#compareIndexH5').mouseover(function() {
                $(this).find('.is').show();
            }).mouseleave(function() {
                $(this).find('.is').hide();
            });
            _indexs = $(_indexs);
            _indexs.click(function() {
                var _sym = $(this).attr('symbol');
                _addCompare(_sym);
            });

            $($id('h5Lv1added')).click(function() {

                if (!_status) {
                    for (var i = 0; i < _comList.length; i++) {
                        if (_comList[i].symbol == idxSymbol.symbol) {
                            _addedCompare();
                            return;
                        }
                    }
                }

                switch (mkt) {
                case 'sh':
                    if (_status) {
                        $($id('h5Lv1added')).text('瀵规瘮娌寚');
                        ;
                    } else {
                        $($id('h5Lv1added')).text('鍙栨秷瀵规瘮');
                    }
                    break;
                case 'sz':
                    if (_status) {
                        $($id('h5Lv1added')).text('瀵规瘮娣辨寚');
                    } else {
                        $($id('h5Lv1added')).text('鍙栨秷瀵规瘮');
                    }
                    break;
                }

                if (_status) {

                    _cnChart.compare({
                        symbol: idxSymbol.symbol
                    }, _status);

                    for (var i = _comList.length - 1; i >= 0; i--) {
                        if (_comList[i].symbol == idxSymbol.symbol) {
                            _comList.splice(i, 1);

                            _compareColor.push(_compareColor[i]);
                            _compareColor.splice(i, 1);
                        }
                    }

                    var child = $id('h5CompareCon').childNodes;
                    var len = child.length;
                    for (i = 0; i < len; i++) {
                        if (child[i].getAttribute('data-symbol') == idxSymbol.symbol) {
                            $id('h5CompareCon').removeChild(child[i]);
                            break;
                        }
                    }

                    if (_comList.length <= 0)
                        $('#h5CompareCon').hide();
                } else {

                    _comList.push(idxSymbol);

                    _cnChart.compare({
                        symbol: idxSymbol.symbol,
                        linecolor: {
                            K_N: _compareColor[_comList.length - 1]
                        }
                    });

                    $('#h5CompareCon').show();

                    cSymbol(idxSymbol, _compareColor[_comList.length - 1]);
                }

                _status = !_status;
            });

            _msg = $(_msg);
            if (window.SuggestHtml5) {
                suggestH5();
            } else {
                getScript('https://n.sinaimg.cn/finance/hqimg20160510/suggestHtml5_20160510.js', function() {
                    suggestH5();
                });
            }
            function suggestH5() {
                _suggest = new SuggestHtml5();
                //SuggestServer();
                _suggest.bind({
                    // 闄�"input"蹇呴』璁剧疆澶� 鍏朵粬鍧囦负鍙€�
                    "input": "compareTxtH5",
                    //*(蹇呴€�) 鎸囧畾suggest缁戝畾鐨勫璞� [string|HTMLElement.input]
                    "default": "鎷奸煶/浠g爜/鍚嶇О",
                    // 鍙寚瀹歩nput榛樿鍊� [string] 榛樿绌�
                    "type": "23,11,12,41,31,71,73,81",
                    // 绫诲瀷 [string] 渚嬪"stock"銆�"23"銆�"11,12"
                    "callback": _addCompare // 閫夊畾鎻愮ず琛屾椂鐨勫洖璋冩柟娉曪紝鍥炶皟璇ユ柟娉曟椂浼犲叆褰撳墠input鍐卾alue [function|null]
                });
            }
            $('#compareBtnH5').click(function() {
                _addCompare($('#compareTxtH5').val());
            });

            attention.init('html5');
        }
        ;
    }
    ();
    //end of h5
    var technology = new function() {
        var _flashList = [];
        this.flashOK = function() {
            _flashList = ['forward', "MACD", "KDJ", "BOLL", "PSY", "OBV", "RSI", "WVAD", "CCI"];
        }
        ;

        function _show() {
            var _this = $(this);
            var _param = _this.attr('param');
            if (_flashList.join(',').indexOf(_param) > -1) {
                swfobject.getObjectById("flash").callIndicator(_param);
                if (document.documentElement.scrollTop) {
                    document.documentElement.scrollTop = $('#flash').offset().top;
                } else {
                    document.body.scrollTop = $('#flash').offset().top;
                }
            } else {
                var _img = $C('img');
                _img.src = 'https://image2.sinajs.cn/newchart/$type/n/$symbol.gif'.replace('$type', _param).replace('$symbol', papercode);
                var _offset = $('#technology').offset();
                _img.style.position = 'absolute';
                _img.style.zIndex = 90;
                _img.style.left = _offset.left + 185 + 'px';
                _img.style.top = Math.min(_offset.top - 100, (document.body.scrollTop || document.documentElement.scrollTop) + $(window).height() - 320) + 'px';
                _img.style.backgroundColor = '#fff';
                _img.style.padding = '5px';
                _img.style.border = '1px solid #ccc';
                document.body.appendChild(_img);
                _img.style.display = 'none';
                $(_img).fadeIn();

                function _click(ev) {
                    ev = ev || window.event;
                    var _target = ev.srcElement || ev.target;
                    if (_target != _img) {
                        $(_img).remove();
                        $(document.documentElement).unbind('click', _click);
                    }
                }
                setTimeout(function() {
                    $(document.documentElement).click(_click);
                }, 10);
            }
        }
        this.init = function() {
            $('#technology a').click(_show);
        }
    }
    ();

    /*瀵规瘮鍔熻兘*/
    var compare = new function() {
        var _indexs = '#compareIndex a';
        var _comList = [];
        var _max = 4;
        var _msg = '#compareMSG';
        var _suggest;

        function _addCompare(argSym) {
            /*绌哄唴瀹逛笉鍝嶅簲*/
            if (!argSym || argSym == '鎷奸煶/浠g爜/鍚嶇О') {
                _noCompare();
                return;
            }
            /*濡傛灉浠g爜涓嶆槸瑙勬暣鐨�*/
            if (!/s[hz]\d{6}/.test(argSym)) {
                /*鍙杝uggest鐨勬暟鎹�*/
                var __arrayData = (_suggest._objectData["key_" + argSym] || "").replace(/&amp;/g, "&").replace(/;$/, "").split(";");
                /*鏈夌殑璇濆彇绗竴涓�*/
                if (__arrayData.length) {
                    argSym = __arrayData[0].split(',')[3];
                }/*娌℃湁鎶ラ敊*/
                else {
                    _error('璇疯緭鍏ユ纭殑鑲$エ浠g爜');
                }
            }
            /*閲嶅楠岃瘉绛変氦缁檉lash鐙珛鎿嶄綔*/
            //            /*褰撳墠鑲$エ涓嶉噸澶嶆坊鍔�*/
            //            if(argSym == papercode)
            //            {
            //                _addedCompare();
            //                return;
            //            }
            //            /*涓嶈兘瓒呰繃鏁扮洰*/
            //            if(_comList.length >= _max)
            //            {
            //                _compareToMore();
            //                return;
            //            }
            //            /*鐪嬫湁娌℃湁娣诲姞杩�*/
            //            for(var i = 0;i < _comList.length;i++)
            //            {
            //                if(_comList[i] == argSym)
            //                {
            //                    _addedCompare();
            //                    return;
            //                }
            //            }
            /*鍏堣涓烘坊鍔犳垚鍔燂紝濡傛灉flash鏃犳硶澶勭悊鍐嶈皟鐢–onn.delSymbol鍒犳帀*/
            //            _comList.push(argSym);
            swfobject.getObjectById("flash").addCompareData(argSym);
            return false;
        }
        this.addCompare = _addCompare;

        function _noCompare() {
            _msg.html('璇烽€夋嫨瑕佸姣旂殑鑲$エ').show();
            setTimeout(function() {
                _msg.hide();
            }, 3 * 1000);
        }

        function _compareToMore() {
            _error('鏈€澶氬彲瀵规瘮5鍙偂绁�');
        }

        function _addedCompare() {
            _error('宸茬粡娣诲姞浜嗚鑲$エ');
        }

        function _error(msg) {
            _msg.html(msg).show();
            setTimeout(function() {
                _msg.fadeOut();
            }, 2 * 1000);
        }
        /*渚沠lash璋冪敤锛屽垹闄ゅ姣�*/

        function _delCompare(argSym, argWrong) {
            for (var i = _comList.length - 1; i >= 0; i--) {
                if (_comList[i] == argSym) {
                    _comList.splice(i, 1);
                }
            }
            /*濡傛灉鏈夐敊璇彁绀烘樉绀�*/
            if (argWrong) {
                _error(argWrong);
            }
        }
        window.Conn.delSymbol = _delCompare;
        this.init = function() {
            /*鎸囨暟娴眰*/
            $('#compareIndex').mouseover(function() {
                $(this).find('.is').show();
            }).mouseleave(function() {
                $(this).find('.is').hide();
            });
            _indexs = $(_indexs);
            _indexs.click(function() {
                var _sym = $(this).attr('symbol');
                _addCompare(_sym);
            });

            _msg = $(_msg);

            _suggest = new SuggestServer();
            _suggest.bind({
                // 闄�"input"蹇呴』璁剧疆澶� 鍏朵粬鍧囦负鍙€�
                "input": "compareTxt",
                //*(蹇呴€�) 鎸囧畾suggest缁戝畾鐨勫璞� [string|HTMLElement.input]
                "default": "鎷奸煶/浠g爜/鍚嶇О",
                // 鍙寚瀹歩nput榛樿鍊� [string] 榛樿绌�
                "type": "stock",
                // 绫诲瀷 [string] 渚嬪"stock"銆�"23"銆�"11,12"
                "callback": _addCompare // 閫夊畾鎻愮ず琛屾椂鐨勫洖璋冩柟娉曪紝鍥炶皟璇ユ柟娉曟椂浼犲叆褰撳墠input鍐卾alue [function|null]
            });
            $('#compareBtn').click(function() {
                _addCompare($('#compareTxt').val());
            });

            attention.init('flash');
        }
        ;
    }
    ();

    /*鍚屾椂琚叧娉�*/
    var attention = new function() {
        /*鑲$エ鍒楄〃锛屾瘡娆″垏鎹㈠垹闄ゆ崲鏂扮殑锛屾暟鎹姞杞藉悗鎺掑簭骞舵樉绀恒€傛坊鍔犱竴涓猻orted灞炴€т綔涓烘爣璇�*/
        var _stockList = [];
        var _showingIndex = 0;
        /*鑷姩鍒锋柊瀹氭椂鍣紝姣忔鍒囨崲閲嶇疆锛屽苟椹笂鍔犺浇涓€娆℃暟鎹�*/
        var _timer;
        var _maxNum = 9;
        var _type;
        var _requestIndex = 0;
        this.init = function(type) {
            _type = type;
            if (_type == 'img') {
                _maxNum = 30;
                $('#attention .cont').height('205px');
            }
            _show();
        }
        ;
        this.stop = function() {
            clearInterval(_timer);
        }
        ;

        function _show(argIndex) {
            /*纭繚鏄垏鎹㈢殑*/
            if (typeof argIndex == 'number') {
                _showingIndex = argIndex;
            }
            /*璁剧疆濂藉悇绉嶇姸鎬�*/
            clearInterval(_timer);
            _stockList.sorted = false;
            /*娓呯┖鑲$エ*/
            while (_stockList.length) {
                _stockList.pop().release();
            }
            /*鍒涘缓鏂扮殑鑲$エ鍒楄〃*/
            var _list = (window.attentionList || [])[_showingIndex] || [];
            var _stock;
            for (var i = 0; i < _list.length && i < _maxNum; i++) {
                _stock = new _Stock(_list[i]);
                _stockList.push(_stock);
            }
            if (_stockList.length) {
                _getData();
                _timer = setInterval(function() {
                    if (checkDayTime()) {
                        _getData();
                    }
                }, 5 * 1000);
            } else {
                $('#attention .cont ul').eq(_showingIndex).html('<li>娌℃湁鐩稿叧鑲$エ</li>');
            }
        }

        function _getData() {
            var _list = [];
            for (var i = 0; i < _stockList.length; i++) {
                _list.push(_stockList[i].symbol);
            }
            if (_list.length) {
                _requestIndex++;
                loadScript(hqURL.replace('$rn', random()) + 's_' + _list.join(',s_'), _gotData.bindArg(_requestIndex));
            }
        }

        function _gotData(argRequestIndex) {
            if (_requestIndex != argRequestIndex) {
                return;
            }
            var _datas = {};
            var _d, _ds, _symbol;
            /*杈撳嚭鏁版嵁*/
            for (var i = 0; i < _stockList.length; i++) {
                _symbol = _stockList[i].symbol;
                _ds = window['hq_str_s_' + _symbol] || '';
                _d = {};
                _datas[_symbol] = _d;
                _ds = _ds.split(',');
                _d.name = _ds[0] || _symbol;
                _d.now = _ds[1] * 1 ? _ds[1].toFixed(isSHB(_symbol) ? 3 : 2) : '--';
                _d.changeP = _ds[1] * 1 ? _ds[3] + '%' : '--';
                _stockList[i].draw(_d);
            }
            /*濡傛灉娌℃帓杩囧簭鐨勮瘽璇存槑鏄垵濮嬪寲锛屾帓搴忓苟鍔犲叆椤甸潰*/
            if (!_stockList.sorted) {
                _stockList.sorted = true;
                //                _stockList.sort(function ($1,$2)
                //                {
                //                    var _d1 = _datas[$1.symbol].changeP;
                //                    var _d2 = _datas[$2.symbol].changeP;
                //                    if(_d1 == '--')
                //                    {
                //                        return '1';
                //                    }
                //                    if(_d2 == '--')
                //                    {
                //                        return '-1';
                //                    }
                //                    return parseFloat(_d2) - parseFloat(_d1);
                //                });
                var _container = $('#attention .cont ul').eq(_showingIndex);
                for (var i = 0; i < _stockList.length; i++) {
                    _container.append(_stockList[i].obj);
                }
            }
        }

        function _Stock(symbol) {
            this.symbol = symbol;
            this.obj;
            this.nameLink;
            this.dataSpan;
            this.compareBtn;
            this.createDom();
            if (_type == 'flash') {
                this.addEvent();
            } else if (_type == 'html5') {
                this.addEvent();
            }
        }
        merge(_Stock.prototype, {
            createDom: function() {
                this.obj = $C('li');

                this.nameLink = $C('a');
                this.nameLink.href = pageURL.replace('$symbol', this.symbol);
                this.nameLink.innerHTML = this.symbol;
                this.obj.appendChild(this.nameLink);

                this.obj.appendChild(document.createTextNode('('));

                this.dataSpan = $C('span');
                this.dataSpan.innerHTML = '--.-- --.--';
                this.obj.appendChild(this.dataSpan);

                this.compareBtn = $C('a');
                this.compareBtn.innerHTML = '鍔犲叆璧板娍瀵规瘮';
                this.compareBtn.href = 'javascript:void(0)';
                this.compareBtn.className = 'add_compare';
                this.obj.appendChild(this.compareBtn);

                this.obj.appendChild(document.createTextNode(')'));
            },
            addEvent: function() {
                var _this = this;
                $(this.nameLink).mouseenter(function() {
                    _this.dataSpan.style.display = 'none';
                    _this.compareBtn.style.display = 'inline';
                });
                $(this.obj).mouseleave(function() {
                    _this.dataSpan.style.display = '';
                    _this.compareBtn.style.display = '';
                });

                if (_type == 'flash') {
                    $(this.compareBtn).click(compare.addCompare.fnBind(compare, [this.symbol]));
                } else if (_type == 'html5') {
                    $(this.compareBtn).click(compareH5.addCompare.fnBind(compareH5, [this.symbol]));
                }

            },
            draw: function(argData) {
                this.nameLink.innerHTML = argData.name || this.symbol;
                this.dataSpan.innerHTML = argData.now + ' ' + argData.changeP;
                this.dataSpan.className = checkUD(undefined, parseFloat(argData.changeP));
            },
            release: function() {
                this.obj.parentNode && this.obj.parentNode.removeChild(this.obj);
                this.obj = null;
                this.dataSpan = null;
                this.compareBtn = null;
            }
        });
    }
    ();

    /*琛屼笟瀵规瘮*/
    var hydb = new function() {
        var _timer;
        var _cfg = {
            changepercent_up: {
                dTitle: '娑ㄥ箙(%)',
                url: hqURL_txt + '$bkSymbol_changepercent_up',
                varName: '$bkSymbol_changepercent_up',
                fields: {
                    symbol: {
                        key: 0
                    },
                    name: {
                        key: 1
                    },
                    now: {
                        key: 2
                    },
                    data: {
                        key: 3
                    }
                },
                delay: 5,
                color: true
            },

            changepercent_down: {
                dTitle: '璺屽箙(%)',
                url: hqURL_txt + '$bkSymbol_changepercent_down',
                varName: '$bkSymbol_changepercent_down',
                fields: {
                    symbol: {
                        key: 0
                    },
                    name: {
                        key: 1
                    },
                    now: {
                        key: 2
                    },
                    data: {
                        key: 3
                    }
                },
                delay: 5,
                color: true
            },

            swingpercent: {
                dTitle: '鎸箙(%)',
                url: hqURL_txt + '$bkSymbol_swingpercent',
                varName: '$bkSymbol_swingpercent',
                fields: {
                    symbol: {
                        key: 0
                    },
                    name: {
                        key: 1
                    },
                    now: {
                        key: 2
                    },
                    data: {
                        key: 3
                    }
                },
                delay: 5
            },

            volumerate: {
                dTitle: '閲忔瘮',
                url: hqURL_txt + '$bkSymbol_volumerate',
                varName: '$bkSymbol_volumerate',
                fields: {
                    symbol: {
                        key: 0
                    },
                    name: {
                        key: 1
                    },
                    now: {
                        key: 2
                    },
                    data: {
                        key: 3
                    }
                },
                delay: 5
            },

            commissionrate: {
                dTitle: '濮旀瘮(%)',
                url: hqURL_txt + '$bkSymbol_commissionrate',
                varName: '$bkSymbol_commissionrate',
                fields: {
                    symbol: {
                        key: 0
                    },
                    name: {
                        key: 1
                    },
                    now: {
                        key: 2
                    },
                    data: {
                        key: 3
                    }
                },
                delay: 5
            },

            volume: {
                dTitle: '鎴愪氦閲�(鎵�)',
                url: hqURL_txt + '$bkSymbol_volume',
                varName: '$bkSymbol_volume',
                fields: {
                    symbol: {
                        key: 0
                    },
                    name: {
                        key: 1
                    },
                    now: {
                        key: 2
                    },
                    data: {
                        key: 3
                    }
                },
                delay: 5
            },

            turnoverrate: {
                dTitle: '鎹㈡墜鐜�(%)',
                url: hqURL_txt + '$bkSymbol_turnoverrate',
                varName: '$bkSymbol_turnoverrate',
                fields: {
                    symbol: {
                        key: 0
                    },
                    name: {
                        key: 1
                    },
                    now: {
                        key: 2
                    },
                    data: {
                        key: 3
                    }
                },
                delay: 5
            },

            peratio: {
                dTitle: '甯傜泩鐜�',
                url: hqURL_txt + '$bkSymbol_peratio',
                varName: '$bkSymbol_peratio',
                fields: {
                    symbol: {
                        key: 0
                    },
                    name: {
                        key: 1
                    },
                    now: {
                        key: 2
                    },
                    data: {
                        key: 3
                    }
                },
                delay: 5
            },

            pbratio: {
                dTitle: '甯傚噣鐜�',
                url: hqURL_txt + '$bkSymbol_pbratio',
                varName: '$bkSymbol_pbratio',
                fields: {
                    symbol: {
                        key: 0
                    },
                    name: {
                        key: 1
                    },
                    now: {
                        key: 2
                    },
                    data: {
                        key: 3
                    }
                },
                delay: 5
            },

            bkrank_netamount: {
                dTitle: '鍑€娴佸叆(涓囧厓)',
                url: 'https://vip.stock.finance.sina.com.cn/quotes_service/api/jsonp_v2.php/var bkrank_netamount=/MoneyFlow.ssl_bkzj_ssggzj?page=1&num=10&sort=netamount&asc=0&bankuai=$bkSymbol&shichang=',
                varName: 'bkrank_netamount',
                fields: {
                    symbol: {
                        key: 'symbol'
                    },
                    name: {
                        key: 'name'
                    },
                    now: {
                        key: 'trade',
                        digit: 2
                    },
                    data: {
                        key: 'netamount',
                        digit: 2,
                        shift: -4
                    }
                },
                delay: 60 * 2
            },

            bkrank_ratioamount: {
                dTitle: '鍑€娴佸叆鐜�(%)',
                url: 'https://vip.stock.finance.sina.com.cn/quotes_service/api/jsonp_v2.php/var bkrank_ratioamount=/MoneyFlow.ssl_bkzj_ssggzj?page=1&num=10&sort=ratioamount&asc=0&bankuai=$bkSymbol&shichang=',
                varName: 'bkrank_ratioamount',
                fields: {
                    symbol: {
                        key: 'symbol'
                    },
                    name: {
                        key: 'name'
                    },
                    now: {
                        key: 'trade',
                        digit: 2
                    },
                    data: {
                        key: 'ratioamount',
                        digit: 2,
                        shift: 2
                    }
                },
                delay: 60 * 2
            }
        };
        var _currentCfg;
        this.init = function() {
            if (bkSymbol == 'hs_b') {
                $('#hydb_container').hide();
                return;
            }
            new VSelect('select_hydb');
            $('#select_hydb').change(_start);
            _start();
        }
        ;

        function _start() {
            clearInterval(_timer);
            _currentCfg = _cfg[$id('select_hydb') && $id('select_hydb').value];
            if(_currentCfg){
                $('#hydb_key').html(_currentCfg.dTitle);
                _getData();
                if (_currentCfg.delay) {
                    _timer = setInterval(_getData, _currentCfg.delay * 1000);
                }
            }
        }

        function _getData() {
            getScript(_currentCfg.url.replace('$bkSymbol', bkSymbol), _draw);
        }

        function _draw() {
            var _data = window[_currentCfg.varName.replace('$bkSymbol', bkSymbol)];
            var _tbody = $('#table_hydb').empty();
            var _tr, _th, _td;
            var _d;
            for (var i = 0; i < _data.length; i++) {
                _tr = $('<tr>').addClass('row_' + i % 2).appendTo(_tbody);
                _th = $('<th>').appendTo(_tr);
                $('<a>').attr('href', pageURL.replace('$symbol', _data[i][_currentCfg.fields.symbol.key])).html(_data[i][_currentCfg.fields.name.key]).appendTo(_th);

                _d = _data[i][_currentCfg.fields.now.key];
                if (_currentCfg.fields.now.digit) {
                    _d = _d.toFixed(_currentCfg.fields.now.digit);
                }
                _td = $('<td>').html(_d).appendTo(_tr);

                _d = _data[i][_currentCfg.fields.data.key];
                if (_currentCfg.fields.data.shift) {
                    _d = _d * Math.pow(10, _currentCfg.fields.data.shift);
                }
                if (_currentCfg.fields.data.digit) {
                    _d = _d.toFixed(_currentCfg.fields.data.digit);
                }
                _td = $('<td>').html(_d).appendTo(_tr);
                if (_currentCfg.color) {
                    _td.addClass(checkUD(undefined, _data[i][_currentCfg.fields.data.key]));
                }
            }
        }
    }
    ();

    /*鍏虫敞鐘舵€�*/
    var holdStatus = new function() {
        var _statusHolder = [];
        var _hasLogin = false;
        var _loginOKCall = [];

        function _loginChecker(loginOKCall) {
            if (_hasLogin) {
                return true;
            } else {
                loginLayer.open();
                _loginOKCall.push(loginOKCall);
                return false;
            }
        }
        this.init = function() {
            LoginManager.add({
                onLoginSuccess: function() {
                    _hasLogin = true;
                    for (var i = 0; i < _statusHolder.length; i++) {
                        _statusHolder[i].getStatus();
                    }
                    while (_loginOKCall.length) {
                        _loginOKCall.shift()();
                    }
                },
                onUserChanged: function() {
                    for (var i = 0; i < _statusHolder.length; i++) {
                        _statusHolder[i].getStatus();
                    }
                },
                /*閫€鍑哄垏鎹㈢姸鎬侊紝骞跺垹闄ゆ墍鏈夎嚜閫夎偂DOM*/
                onLogoutSuccess: function() {
                    _hasLogin = false;
                    for (var i = 0; i < _statusHolder.length; i++) {
                        _statusHolder[i].hasNotHold();
                    }
                }
            });

        }
        ;
    }
    ();

    var moneyFlow = new function() {
        var _mrDrawer;
        var _flDrawer;
        var pie2D;

        function _getData() {
            getScript('https://vip.stock.finance.sina.com.cn/quotes_service/api/jsonp.php/var moneyFlowData=/MoneyFlow.ssi_ssfx_flzjtj?daima=' + papercode + '&gettime=1', _gotData);
        }

        function _gotData() {
            _drawMR();
            _drawFL();
        }

        function _drawMR() {
            var data = moneyFlowData;
            var cvs = data.curr_capital * data.trade * 10000;
            var total = data.r0 - -data.r1 - -data.r2 - -data.r3;
            var _data = {};
            _data.mainIn = doNaN(data.r0_in - -data.r1_in);
            _data.mainInP = doNaN(_data.mainIn / total * 100);
            _data.mainOut = doNaN(data.r0_out - -data.r1_out);
            _data.mainOutP = doNaN(_data.mainOut / total * 100);
            _data.retailIn = doNaN(data.r3_in - -data.r2_in);
            _data.retailInP = doNaN(_data.retailIn / total * 100);
            _data.retailOut = doNaN(data.r3_out - -data.r2_out);
            _data.retailOutP = doNaN(_data.retailOut / total * 100);

            _mrDrawer.draw(_data);

            var distance = h5Status == 1 ? 5 : 15;
            var xmldata = '<chart smartLabelClearance="' + distance + '" slicingDistance="' + distance + '" showAboutMenuItem="0" showValues="0" chartLeftMargin="-10"  baseFontSize="13" paletteColors="BD1C00,638E00,FF8600,A5DB00" bgColor="FFFFFF" showShadow="0" showBorder="0" radius3D="100" pieRadius="70"><set label="涓诲姏涔板叆" value="@mainIn@" toolText="涓诲姏涔板叆锛欯mainInS@(@mainInP@)" /><set label="涓诲姏鍗栧嚭" value="@mainOut@" toolText="涓诲姏鍗栧嚭锛欯mainOutS@(@mainOutP@)" /><set label="鏁f埛涔板叆" value="@retailIn@" toolText="鏁f埛涔板叆锛欯retailInS@(@retailInP@)" /><set label="鏁f埛鍗栧嚭" value="@retailOut@" toolText="鏁f埛鍗栧嚭锛欯retailOutS@(@retailOutP@)" /></chart>';
            xmldata = xmldata.replace('@mainIn@', (data.r0_in - -data.r1_in) || 0).replace('@mainInS@', dataFormat(_data.mainIn, {
                digit: 2,
                shift: -4,
                p: '$1涓囧厓'
            })).replace('@mainInP@', dataFormat(_data.mainInP, {
                digit: 2,
                p: '$1%'
            })).replace('@mainOut@', (data.r0_out - -data.r1_out) || 0).replace('@mainOutS@', dataFormat(_data.mainOut, {
                digit: 2,
                shift: -4,
                p: '$1涓囧厓'
            })).replace('@mainOutP@', dataFormat(_data.mainOutP, {
                digit: 2,
                p: '$1%'
            })).replace('@retailIn@', (data.r3_in - -data.r2_in) || 0).replace('@retailInS@', dataFormat(_data.retailIn, {
                digit: 2,
                shift: -4,
                p: '$1涓囧厓'
            })).replace('@retailInP@', dataFormat(_data.retailInP, {
                digit: 2,
                p: '$1%'
            })).replace('@retailOut@', (data.r3_out - -data.r2_out) || 0).replace('@retailOutS@', dataFormat(_data.retailOut, {
                digit: 2,
                shift: -4,
                p: '$1涓囧厓'
            })).replace('@retailOutP@', dataFormat(_data.retailOutP, {
                digit: 2,
                p: '$1%'
            }));

            if (!pie2D){
                if(FusionCharts){
                    if(h5Status == 1){
                        pie2D = new FusionCharts('Pie2D','chartid01','390','218','0','1');
                    }else{
                        pie2D = new FusionCharts("https://i0.sinaimg.cn/dy/fusioncharts/v3_2_2/o_swf/Pie2D.swf","chartid01","390","218","0","1");
                    }
                }

            pie2D.setTransparent(true);
            pie2D.setXMLData(xmldata);
            setTimeout(function() {
                //pie2D.render('chartdiv');
            }, 2 * 1000);
            }
        }

        function _drawFL() {
            var data = moneyFlowData;
            var cvs = data.curr_capital * data.trade * 10000;
            var total = data.r0 - -data.r1 - -data.r2 - -data.r3;
            var _data = {};
            _data.r3_r_in = doNaN(data.r3_in - data.r3_out);
            _data.r2_r_in = doNaN(data.r2_in - data.r2_out);
            _data.r1_r_in = doNaN(data.r1_in - data.r1_out);
            _data.r0_r_in = doNaN(data.r0_in - data.r0_out);

            _data.r3_p_svs = doNaN(data.r3 / cvs * 100);
            _data.r2_p_svs = doNaN(data.r2 / cvs * 100);
            _data.r1_p_svs = doNaN(data.r1 / cvs * 100);
            _data.r0_p_svs = doNaN(data.r0 / cvs * 100);

            _data.r3_p_turnover = doNaN(data.r3 / total * 100);
            _data.r2_p_turnover = doNaN(data.r2 / total * 100);
            _data.r1_p_turnover = doNaN(data.r1 / total * 100);
            _data.r0_p_turnover = doNaN(data.r0 / total * 100);

            _flDrawer.draw(_data);

            var _max = Math.max(Math.abs(_data.r3_r_in), Math.abs(_data.r2_r_in), Math.abs(_data.r1_r_in), Math.abs(_data.r0_r_in), 1);
            var _flowMap = $('#flowMap');
            var _bar;
            for (var i = 0; i <= 3; i++) {
                _bar = _flowMap.find('.flow_R_map_bar_' + i)[0];
                if(_bar){
                    _bar.className = 'flow_R_map_bar_' + i + ' ' + checkUD(undefined, _data['r' + (3 - i) + '_r_in']);
                    _bar.style.height = (85 * Math.abs(_data['r' + (3 - i) + '_r_in']) / _max || 0) + 'px';
                }
            }
        }
        this.init = function() {
            var _cfgNum = {
                digit: 2,
                shift: -4
            };
            var _cfgP = {
                digit: 2,
                p: '$1%'
            };
            var _cfgMR = {};
            _cfgMR.mainIn = _cfgMR.mainOut = _cfgMR.retailIn = _cfgMR.retailOut = _cfgNum;
            _cfgMR.mainInP = _cfgMR.mainOutP = _cfgMR.retailInP = _cfgMR.retailOutP = _cfgP;

            var _cfgFL = {};
            _cfgFL.r3_r_in = _cfgFL.r2_r_in = _cfgFL.r1_r_in = _cfgFL.r0_r_in = _cfgNum;
            _cfgFL.r3_p_svs = _cfgFL.r2_p_svs = _cfgFL.r1_p_svs = _cfgFL.r0_p_svs = _cfgP;
            _cfgFL.r3_p_turnover = _cfgFL.r2_p_turnover = _cfgFL.r1_p_turnover = _cfgFL.r0_p_turnover = _cfgP;

            _mrDrawer = new DataDrawer('MRFlow',_cfgMR);
            _flDrawer = new DataDrawer('FLFlow',_cfgFL);
            _getData();
            setInterval(_getData, 60 * 2 * 1000);
        }
        ;
    }
    ();

    var mgzb = new function() {
        this.init = function() {
            new VSelect('select_mgzb');
            $('#select_mgzb').change(drawAjaxCont.bindArg('select_mgzb', 'cont_mgzb')).change(new drawFusion('select_mgzb','rank_chart_l','tabs_rank_chart_l','rankSummary_l','6A6DA9','A3CF62')).change();
        }
        ;
    }
    ();

    var cwbl = new function() {
        this.init = function() {
            new VSelect('select_cwbl');
            $('#select_cwbl').change(drawAjaxCont.bindArg('select_cwbl', 'cont_cwbl')).change(new drawFusion('select_cwbl','rank_chart_r','tabs_rank_chart_r','rankSummary_r','AA2116','2A5CAA')).change();
        }
        ;
    }
    ();

    function drawAjaxCont(selectID, contID) {
        var _value = $('#' + selectID).val();
        new Ajax('https://finance.sina.com.cn/realstock/company/' + papercode + '/iframe/' + _value + '.html',{
            onComplete: function(html) {
                $('#' + contID).html(html);
            }
        }).request();
    }

    function drawFusion(selectID, contID, tabsID, summaryID, color1, color2) {
        var _value, _contID = contID, _summaryID = summaryID;
        var _color1 = color1
          , _color2 = color2;
        var _type = 'xl';

        function _getData() {
            var _select = $id(selectID);
            var _value = $(_select).val();
            var _txt = $(_select).find('option')[_select.selectedIndex].innerHTML;
            getScript('https://stock.finance.sina.com.cn/stock/api/jsonp.php/var rankData_' + contID + '=/StockService.getRankBySymbol?symbol=' + papercode + '&sort=' + _value + '&type=' + _type, function() {
                var _data = window['rankData_' + contID];
                if (!_data || !_data.data)
                    return;
                var _id = ('fusion' + Math.random()).replace('.', '');
                var _color = []
                  , _sets = [];
                var _max = 0;
                for (var i = 0; i < _data.data.length; i++) {
                    if (_data.data[i].full_symbol != papercode) {
                        _color.push(_color1);
                    } else {
                        _color.push(_color2);
                    }
                    if (_data.data[i].value > _max) {
                        _max = _data.data[i].value * 1;
                    }
                    _sets.push('<set label="' + _data.data[i].name + '" value="' + _data.data[i].value + '" link="n-' + pageURL.replace('$symbol', _data.data[i].full_symbol) + '"/>');
                }
                _max = _max * 1.1;
                var myChart = h5Status == 1 ? new FusionCharts("Column2D",_id,"380","240","0","1") : new FusionCharts("https://i3.sinaimg.cn/dy/fusioncharts/v3_2_2/o_swf/Column2D.swf",_id,"380","240","0","1");
                var xmldata = '<chart showBorder="0" baseFontSize="12" canvasLeftMargin="50" showAboutMenuItem="0" showValues="0" outCnvBaseFontColor="000000" baseFontColor="FF0000" canvasBorderColor="CCCCCC" canvasBorderThickness="1" labelDisplay="ROTATE" slantLabels="1" paletteColors="' + _color.join(',' + _color1 + ',') + '" bgColor="FFFFFF">' + _sets.join('<set label="" value=""/>') + '</chart>';
                myChart.setXMLData(xmldata);
                myChart.render(_contID);

                $('#' + summaryID).html('<span style="float:right;" class="blue_l">' + _data.base.date + '</span>' + stockname + ' <span class="up">' + _txt + '</span> 琛屼笟鎺掑悕涓� <span class="up">绗�' + _data.base.pos + '(' + _data.base.total + '瀹�)</span>');
            });
        }

        $('#' + tabsID).find('.tab').click(function() {
            _type = $(this).attr('type');
            $(this).parent().find('.tab').removeClass('on');
            $(this).addClass('on');
            _getData();
        });
        return _getData;
    }

    var breakingNewsCtrl = new function() {
        var _timer;
        var _hovering = false;

        function _get() {
            getScript('https://finance.sina.com.cn/js/stock/breakingnews.js?rn' + random(), _got);
        }

        function _got() {
            if (_hovering) {
                setTimeout(arguments.callee, 1000);
                return;
            }
            var _container = $('#breakingNews');
            _container.fadeOut(function() {
                clearInterval(_timer);
                _container.empty();
                var _a, _span;
                for (var i = 0; i < breaking_news.length; i++) {
                    _a = $('<a>').attr('target', '_blank').attr('href', breaking_news[i].url).html(breaking_news[i].title).appendTo(_container);
                    _span = $('<span>').html('(' + breaking_news[i].date.replace(/^\d{4}\-/, '') + ' ' + breaking_news[i].time + ')').appendTo(_container);
                }
                _container.show();
                _start();
            });
        }

        function _start() {
            var _container = document.getElementById('breakingNews');
            var _width = $('#breakingNews *:first').width();
            var _left = 430;
            _container.style.left = _left + 'px';
            _timer = setInterval(function() {
                if (_hovering) {
                    return;
                }
                _left -= 2;
                if (_left + _width < 0) {
                    _container.style.left = '0px';
                    $('#breakingNews *:first').appendTo('#breakingNews');
                    _left += _width;
                    _width = $('#breakingNews *:first').width();
                }
                _container.style.left = _left + 'px';
            }, 30);
        }
        this.init = function() {
            _get();
            setInterval(_get, 60 * 2 * 1000);
            $('#breakingNews').mouseenter(function() {
                _hovering = true;
            }).mouseleave(function() {
                _hovering = false;
            });
        }
        ;
    }
    ();

    var stockNews = new function() {
        var papercode;

        function _getData() {
            getScript('https://news.sinajs.cn/rn=$rn&maxcnt=20&scnt=20&list=$papercode,gg_$papercode,ntc_$papercode,blog_$papercode,tg_$papercode,lcs_$papercode'.replace('$rn', random()).replace(/\$papercode/g, papercode), _gotData);
        }
        /*鎴彇鏃堕棿*/

        function _sub_time() {

            $('#stockNews ul li span').each(function(index) {
                var str = $(this).html();
                str = str.substr(0, 6) + ')';
                $(this).html(str);

            });

        }

        function _gotData() {
            if (!finance_news.length) {
                return;
            }
            var _container = $('#stockNews').empty();
            var _ul, _li, _a, _pdf, _span;
            var _single;
            var _max;
            for (var i = 0; i < finance_news.length && i < 12; i++) {
                _single = finance_news[i];
                if (i % 6 == 0) {
                    _ul = $('<ul>').appendTo(_container);
                }
                _li = $('<li>').appendTo(_ul);
                _span = $('<span>').html('(' + _single[0].replace(/(^\d*?\-)|(\:\d*?$)/g, '') + ')').appendTo(_li);
                if (/^ntc_/.test(_single[4])) {
                    _li.append('[<a class="a_blue_d_all" target="_blank" href="https://vip.stock.finance.sina.com.cn/corp/view/vCB_AllMemordDetail.php?stockid=' + papercode.replace(/[^0-9]/g, '') + '">鍦伴浄</a>] ');
                } else if (/^gg_/.test(_single[4])) {
                    _li.append('[<a class="a_blue_d_all" target="_blank" href="https://vip.stock.finance.sina.com.cn/corp/go.php/vCB_AllBulletin/stockid/' + papercode.replace(/[^0-9]/g, '') + '.phtml">鍏憡</a>] ');
                } else if (/^blog_/.test(_single[4])) {
                    _li.append('[<a class="a_blue_d_all" target="_blank" href="https://blog.sina.com.cn/lm/stock/">鍗氬</a>] ');
                } else if (/^tg_/.test(_single[4])) {
                    _li.append('[<a class="a_blue_d_all" target="_blank" href="https://finance.sina.com.cn/stock/2013tougu/">鎶曢【澶ц禌</a>] ');
                } else if (/^lcs_/.test(_single[4])) {
                    _li.append('[<a class="a_blue_d_all" target="_blank" href="https://licaishi.sina.com.cn/">鐞嗚储甯�</a>] ');
                } else {
                    _li.append('[<a class="a_blue_d_all" target="_blank" href="https://vip.stock.finance.sina.com.cn/corp/go.php/vCB_AllNewsStock/symbol/' + papercode + '.phtml">璧勮</a>] ');
                }

                if (_single[5] != 'NOPDF') {
                    _max = 27;
                } else if (/^lcs_/.test(_single[4])) {
                    _max = 26;
                } else {
                    _max = 28;
                }
                _a = $('<a>').attr('target', '_blank').attr('href', _single[3] + (/blog/.test(_single[4]) ? '?tj=1' : '') + (/licaishi/.test(_single[3]) ? '&fr=f_stock_cn' : '')).attr('title', _single[2]).html(_single[2].length > _max ? _single[2].substring(0, _max - 1) + '..' : _single[2]).appendTo(_li);

                if (/^lcs_/.test(_single[4])) {
                    $('<a>').addClass('lcs_logo').attr('target', '_blank').attr('href', 'https://licaishi.sina.com.cn/web/searchList?s=' + stockname + '&fr=f_stock_cn').appendTo(_li);
                } else if (_single[5] != 'NOPDF') {
                    _pdf = $('<a>').addClass('pdf').attr('target', '_blank').attr('href', _single[5]).appendTo(_li);
                }
                if (i == 5) {
                    _container.append('<div class="dotted_line"></div>');
                }
            }
            _sub_time();

        }
        this.init = function() {
            papercode = window.papercode;
            if (window.papercode == b_code && a_code) {
                papercode = a_code;
            }
            _getData();
            setInterval(_getData, 60 * 2 * 1000);
        }
        ;
    }
    ();

    var stockTip = new function() {
        var stockname, fullsymbol;

        function _getPrefer() {
            getScript('https://finance.sina.com.cn/js/286/20140416/qs/161.js', _gotPrefer);
        }

        function _gotPrefer() {
            var _container = $('#stockTip').empty();

            /*if(president.indexOf(fullsymbol) != -1)
             {
             $('<a>').attr('target','_blank').css('color','#ff0000').attr('href','https://finance.sina.com.cn/focus/ssgsdmpx/').html('涓�'+stockname+'璇勯€�2013鏈€浣充笂甯傚叕鍙歌懀绉�').appendTo(_container);
             }
             else*/
            if (company.indexOf(fullsymbol) != -1) {
                $('<a>').attr('target', '_blank').css('color', '#ff0000').attr('href', 'https://finance.sina.com.cn/focus/2014ssgspx.html').html('娴烽€変綘蹇冧腑鏈€浣充笂甯傚叕鍙革細鎴戣涓�' + stockname + '鎶曠エ').appendTo(_container);
            } else {
                _getData();
            }
        }

        function _getData() {
            getScript('https://finance.sina.com.cn/api/437/2013/1018/json/breaknews_152.js', _gotData);
        }

        function _gotData() {
            var _container = $('#stockTip').empty();
            var _single;
            _single = stock_tip;
            $('<a>').attr('target', '_blank').attr('href', _single.url).html(_single.title.replace('###', stockname)).appendTo(_container);
        }

        function _getSpecial() {
            var _container = $('#stockTip').empty();
            $('<a>').attr('target', '_blank').attr('href', 'https://finance.sina.com.cn/focus/15qgcgcgds/rank.html?f=gszx').html('<span style="color:#ff0000;padding-left:28px;display:inline-block;background:url(https://n.sinaimg.cn/finance/zt/15qgcgcgds/images/hot.png) no-repeat 0 5px;">楂樻墜閲嶄粨閾剁Η绉戞妧鍗宠幏鎷夊崌锛屾敹鐩婄炕鐣潐鑱旀棣�</span>').appendTo(_container);
        }
        this.init = function() {
            stockname = window.stockname;
            fullsymbol = window.papercode;
            //_getData();
            try {//_getSpecial();
            } catch (e) {}
        }
        ;
    }
    ();
    var hoverShow = new function() {
        function _show() {
            if (this.className.indexOf('finance_overview_on') > -1) {
                return;
            }
            var _this = $(this);
            var _tds = _this.find('tr').eq(0).find('td');
            _this.addClass('finance_overview_on');
            _this.stop().animate({
                width: 120 + 66 * _tds.length
            }).css('overflow', '').find('.close').show();
        }

        function _hide() {
            var _this = $(this);
            _this.stop().animate({
                width: 185
            }, {
                complete: function() {
                    _this.removeClass('finance_overview_on').find('.close').hide();
                }
            }).css('overflow', '');
        }

        function _ltgd_show() {
            if (this.className.indexOf('ltgd_on') > -1) {
                return;
            }
            var _this = $(this);
            _this.addClass('ltgd_on');
            _this.stop().animate({
                width: 485
            }).css('overflow', '').find('.close').show();
        }

        function _ltgd_hide() {
            var _this = $(this);
            _this.stop().animate({
                width: 185
            }, {
                complete: function() {
                    _this.removeClass('ltgd_on').find('.close').hide();
                }
            }).css('overflow', '');
        }
        this.init = function() {
            var _finance_overview = $id('finance_overview');
            $(_finance_overview).mouseenter(_show).find('.close').click(function() {
                $(this).hide().parent().css('width', '').removeClass('finance_overview_on');
            });
            $(_finance_overview).find('.open').click(_show.fnBind(_finance_overview));

            var _ltgd = $id('ltgd');
            $(_ltgd).mouseenter(_ltgd_show).find('.close').click(function() {
                $(this).hide().parent().css('width', '').removeClass('ltgd_on');
            });
            $(_ltgd).find('.open').click(_ltgd_show.fnBind(_ltgd));
        }
        ;
    }
    ();

    var weibo = new function() {
        var _weiboSubmit, _submitNew, _weibo_new_txt, _weiboNewTxtrem, _weiboMore;
        var _pageIndex = 1;
        var _getting = false;
        /*姝e湪缂栬緫杞彂璇勮鐨勫井鍗歩d锛屽悓鏃朵篃鐢ㄦ潵鍒ゆ柇鏄惁鍦ㄦ樉绀虹紪杈戞*/
        var _rc_mid;
        /*楠岃瘉鍐呭闀垮害*/

        function _keypress(argID) {
            var _value = this.value;
            var _length = _value.replace(/[^\x00-\xff]/g, '**').length;
            var _less = 280 - _length;
            _less = _less / 2;
            if (_less >= 0) {
                $('#' + argID).html('杩樺彲浠ヨ緭鍏�<span>' + Math.floor(_less) + '</span>瀛�').removeClass('weibo_new_over');
            } else {
                $('#' + argID).html('宸茬粡瓒呰繃<span>' + Math.ceil(-_less) + '</span>瀛�').addClass('weibo_new_over');
            }
            /*鍔ㄨ繃杈撳叆鍐呭鐨勮瘽灏变笉鑷姩鍙戝竷浜�*/
            _loginOKCall = null;
        }
        /*杈撳叆鏈夐棶棰樼殑鎻愮ず*/

        function _error(g, f) {
            g = document.getElementById(g || 'pub_editor');
            if (!f) {
                f = {}
            }
            var d = f.orbit || ["#fee", "#fdd", "#fcc", "#fdd", "#fee", "#fff"];
            var i = f.times || 2;
            var c = f.delay || 15;
            var b = 0;
            var h = setInterval(function() {
                if (b / c >= d.length) {
                    i -= 1;
                    if (i > 0) {
                        b = 0
                    } else {
                        clearInterval(h);
                        return false
                    }
                }
                g.style.backgroundColor = d[b / c];
                b += 1;
            }, 1);
            return false;
        }
        /*鏄剧ず杞彂妗�*/

        function _repost(mid) {
            /*鍏堟妸涔嬪墠鐨勬鍒犳帀锛屽鏋滃綋鍓嶆槸鏄剧ず鐘舵€侊紝鎸囧畾涔熸槸鍒狅紝涓嶆樉绀轰簡锛屾垨鑰呬細鎹釜鏂板井鍗氫笅闈㈠幓*/
            var _commentDiv = $('#commentDiv');
            var _showingComment = _commentDiv.length;
            $('#commentDiv').remove();
            $('#repostDiv').remove();
            /*涓嶆槸褰撳墠鐨勫井鍗氱殑璇濆姞涓柊鐨�*/
            if (_rc_mid !== mid || _showingComment) {
                _rc_mid = mid;
                $(this).parents('.weibo_s').append('<div id="repostDiv" class="feedback fwrd"><div class="arrcon"><div class="arr"></div><div class="arrin"></div></div> <div class="feedbackcon"> <div class="txtarea"><textarea id="fc_editor" style="color: rgb(153, 153, 153); "></textarea> <div class="tips" id="fc_tips" style="display: none; "></div> </div> <div class="fdbckspe"> <a id="fc_submit" class="btn_s" href="javascript:void(0)">杞彂</a> <p id="fc_limit" class="txtrem">140</p> <div class="fdbckspein"> <input type="checkbox" id="fc_issync"> <label for="fc_issync">鍚屾椂璇勮</label> </div> </div> </div></div>');
                var _editor = $('#fc_editor').keyup(_keypress.bindArg('fc_limit')).keydown(_keypress.bindArg('fc_limit')).keyup()[0];
                _editor.onfocus = function() {
                    this.style.color = '';
                }
                ;
                _editor.onblur = function() {
                    this.style.color = '#9E9E9E';
                }
                ;
                $('#fc_submit').click(_repostSubmit);
            }/*鏄殑璇濅负闅愯棌鎿嶄綔锛屾竻鎺塵id*/
            else {
                _rc_mid = '';
            }
        }

        function _repostSubmit() {
            /*鍏堟洿鏂颁笅鍓╀綑瀛楁暟*/
            _keypress.call(document.getElementById('fc_editor'), 'fc_limit');
            /*娌$櫥闄嗙殑璇濈櫥褰�*/
            if (!weiboLoginManager.userInfo()) {
                _loginOKCall = arguments.callee;
                weiboLoginManager.login();
                return false;
            }
            var _words = $('#fc_editor').val();
            if (_words.replace(/[^\x00-\xff]/g, '**').length > 280) {
                _error('fc_editor');
                return;
            }
            if (!_words) {
                _error('fc_editor');
                return;
            }
            WB2.anyWhere(function(W) {
                W.parseCMD("/statuses/repost.json", function(sResult, bStatus) {
                    if (bStatus == true) {
                        $('#fc_tips').html('<div class="tips" id="pub_error"><em class="icon_ok"></em>杞彂鎴愬姛锛�</div>').show();
                        setTimeout(function() {
                            $('#repostDiv').slideUp(function() {
                                $('#repostDiv').remove();
                                _rc_mid = '';
                            });
                        }, 2000);
                    } else {
                        $('#fc_tips').html('<div class="tips" id="pub_error"><em class="icon_warning"></em>杞彂澶辫触锛岃绋嶅悗鍐嶈瘯锛�</div>').show();
                        setTimeout(function() {
                            $('#fc_tips').empty().hide();
                        }, 2000);
                    }
                }, {
                    source: wbAppKey,
                    id: _rc_mid,
                    status: encodeURIComponent(_words),
                    is_comment: document.getElementById('fc_issync').checked ? '1' : '0'
                }, {
                    method: 'post'
                });
            });
            return false;
        }

        function _comment(mid) {
            /*鍏堟妸涔嬪墠鐨勬鍒犳帀锛屽鏋滃綋鍓嶆槸鏄剧ず鐘舵€侊紝鎸囧畾涔熸槸鍒狅紝涓嶆樉绀轰簡锛屾垨鑰呬細鎹釜鏂板井鍗氫笅闈㈠幓*/
            $('#commentDiv').remove();
            var _repostDiv = $('#repostDiv');
            var _showingRepost = _repostDiv.length;
            _repostDiv.remove();
            /*涓嶆槸褰撳墠鐨勫井鍗氱殑璇濆姞涓柊鐨�*/
            if (_rc_mid !== mid || _showingRepost) {
                _rc_mid = mid;
                $(this).parents('.weibo_s').append('<div id="commentDiv" class="feedback comm"><div class="arrcon"><div class="arr"></div><div class="arrin"></div></div> <div class="feedbackcon"> <div class="txtarea"><textarea id="fc_editor" style="color: rgb(153, 153, 153); "></textarea> <div class="tips" id="fc_tips" style="display: none; "></div> </div> <div class="fdbckspe"> <a id="fc_submit" class="btn_s" href="javascript:void(0)">璇勮</a> <p id="fc_limit" class="txtrem">140</p> <div class="fdbckspein"> <input type="checkbox" id="fc_issync"> <label for="fc_issync">鍚屾椂杞彂</label> </div> </div> </div></div>');
                var _editor = $('#fc_editor').keyup(_keypress.bindArg('fc_limit')).keydown(_keypress.bindArg('fc_limit')).keyup()[0];
                _editor.onfocus = function() {
                    this.style.color = '';
                }
                ;
                _editor.onblur = function() {
                    this.style.color = '#9E9E9E';
                }
                ;
                $('#fc_submit').click(_commentSubmit);
            }/*鏄殑璇濅负闅愯棌鎿嶄綔锛屾竻鎺塵id*/
            else {
                _rc_mid = '';
            }

        }

        function _commentSubmit() {
            /*鍏堟洿鏂颁笅鍓╀綑瀛楁暟*/
            _keypress.call(document.getElementById('fc_editor'), 'fc_limit');
            /*娌$櫥闄嗙殑璇濈櫥褰�*/
            if (!weiboLoginManager.userInfo()) {
                _loginOKCall = arguments.callee;
                weiboLoginManager.login();
                return false;
            }
            var _words = $('#fc_editor').val();
            if (_words.replace(/[^\x00-\xff]/g, '**').length > 280) {
                _error('fc_editor');
                return;
            }
            if (!_words) {
                _error('fc_editor');
                return;
            }
            WB2.anyWhere(function(W) {
                var _method, _data = {};
                if (document.getElementById('fc_issync').checked) {
                    _method = '/statuses/repost.json';
                    _data = {
                        source: wbAppKey,
                        id: _rc_mid,
                        status: encodeURIComponent(_words),
                        is_comment: '1'
                    };
                } else {
                    _method = '/comments/create.json';
                    _data = {
                        source: wbAppKey,
                        id: _rc_mid,
                        comment: encodeURIComponent(_words)
                    };
                }
                W.parseCMD(_method, function(sResult, bStatus) {
                    if (bStatus == true) {
                        $('#fc_tips').html('<div class="tips" id="pub_error"><em class="icon_ok"></em>璇勮鎴愬姛锛�</div>').show();
                        setTimeout(function() {
                            $('#commentDiv').slideUp(function() {
                                $('#commentDiv').remove();
                                _rc_mid = '';
                            });
                        }, 2000);
                    } else {
                        $('#fc_tips').html('<div class="tips" id="pub_error"><em class="icon_warning"></em>璇勮澶辫触锛岃绋嶅悗鍐嶈瘯锛�</div>').show();
                        setTimeout(function() {
                            $('#fc_tips').empty().hide();
                        }, 2000);
                    }
                }, _data, {
                    method: 'post'
                });
            });
            return false;
        }

        function _initWHT() {
            _getData = _getWHT;
            _getData();
        }

        function _getWHT() {
            if (_getting) {
                return false;
            }
            getScript('https://stock.finance.sina.com.cn/weibo/api/2/search/statuses.php?callback=gotWeiboData&page=' + _pageIndex + '&count=25&q=' + encodeURIComponent(stockname), _gotWHT);
            _pageIndex++;
            _getting = true;
            _weiboMore.html('鍔犺浇涓�...');
            return false;
        }

        function _getData() {
        }

        function _gotWHT() {
            var _container = $('#weiboList');
            var _datas = window['weiboData'].statuses || [];
            for (var i = 0; i < _datas.length; i++) {
                _container.append(_createSingle(_datas[i], 'WHT'));
            }

            $('#weiboList').append(_weiboMore);
            _weiboMore.html('鏇村..');
            _getting = false;
        }

        function _regTime(argT) {
            var _postTime = new Date(argT);
            var _now = clock.time();
            var _differ = Math.round((_now - _postTime) / 1000);
            var _showTime;
            if (_differ <= 0) {
                _differ = 1;
            }
            if (_differ < 60) {
                _showTime = _differ + '绉掑墠';
            } else if (_differ < 3600) {
                _showTime = Math.floor(_differ / 60) + '鍒嗛挓鍓�';
            } else if (_now.getDate() == _postTime.getDate()) {
                _showTime = '浠婂ぉ ' + _postTime.getHours().preFull() + ':' + _postTime.getMinutes().preFull();
            } else {
                _showTime = (_postTime.getMonth() + 1).preFull() + '鏈�' + _postTime.getDate().preFull() + '鏃� ' + _postTime.getHours().preFull() + ':' + _postTime.getMinutes().preFull();
            }
            return _showTime;
        }

        function _createSingle(argData, type) {
            if (type == 'JP') {
                argData.created_at = argData.created_at * 1000;
                argData.base62_id = argData.mid;
                argData.mid = argData.v_id;
            } else {
                argData.created_at = argData.created_at.replace('+', /ie/i.test(navigator.userAgent) ? 'UTC +' : '+');
            }
            var _weibo_s = $C('div');
            _weibo_s.className = 'weibo_s';

            var _weibo_head = $C('div');
            _weibo_head.className = 'weibo_head';
            _weibo_s.appendChild(_weibo_head);

            var _a1 = $C('a');
            _a1.href = 'https://weibo.com/' + argData.user.profile_url;
            _a1.target = '_blank';
            _a1.title = argData.user.screen_name;
            _weibo_head.appendChild(_a1);
            var _headPic = $C('img');
            _headPic.height = '30';
            _headPic.width = '30';
            _headPic.src = argData.user.profile_image_url.replace('/50/', '/30/');
            _a1.appendChild(_headPic);

            var _weibo_cont = $C('div');
            _weibo_cont.className = 'weibo_cont';
            _weibo_s.appendChild(_weibo_cont);
            var _p1 = $C('p');
            _weibo_cont.appendChild(_p1);
            var _a2 = $C('a');
            _a2.href = 'https://weibo.com/' + argData.user.profile_url;
            _a2.target = '_blank';
            _a2.title = argData.user.screen_name;
            _a2.innerHTML = argData.user.screen_name;
            _p1.appendChild(_a2);
            if (argData.user.verified) {
                var _vip = $C('img');
                _vip.title = argData.user.verified_reason;
                _vip.src = 'https://www.sinaimg.cn/cj/realstock/2012/images/transparent.gif';
                if (argData.user.verified_type != '0') {
                    _vip.className = 'vip_c';
                } else {
                    _vip.className = 'vip';
                }
                _a2.appendChild(_vip);
            }
            var _tt = argData.text;
            _tt = _tt.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
            _tt = _tt.replace(/@([0-9a-zA-Z\u4e00-\u9fa5_-]+)/g, function($1, $2) {
                return '<a target="_blank" href="https://weibo.com/n/' + $2 + '">@' + $2 + '</a>';
            }).replace(/#(.*?)#/g, function($1, $2) {
                return '<a target="_blank" href="https://s.weibo.com/weibo/' + $2 + '">#' + $2 + '#</a>';
            }).replace(/http\:\/\/t.cn\/[a-zA-Z0-9]+/g, function($1) {
                return '<a target="_blank" href="' + $1 + '">' + $1 + '</a>';
            });
            var _txt = $C('span');
            _txt.innerHTML = '锛�' + _tt;
            _p1.appendChild(_txt);

            if (argData.thumbnail_pic) {
                var _pic = $C('div');
                _pic.className = 'weibo_img';
                _p1.appendChild(_pic);
                if (argData.original_pic) {
                    var _a3 = $C('a');
                    _a3.href = argData.original_pic;
                    _a3.target = '_blank';
                    _pic.appendChild(_a3);
                }
                var _thumb = $C('img');
                _thumb.src = argData.thumbnail_pic;
                if (argData.original_pic) {
                    _a3.appendChild(_thumb);
                } else {
                    _pic.appendChild(_thumb);
                }
            }

            var _weibo_info = $C('div');
            _weibo_info.className = 'weibo_info';
            _weibo_cont.appendChild(_weibo_info);
            var _time = $C('a');
            _time.className = 'weibo_time';
            _time.target = '_blank';
            _time.href = 'https://weibo.com/' + argData.user.id + '/' + argData.base62_id;
            _time.innerHTML = _regTime(argData.created_at);
            _weibo_info.appendChild(_time);
            var _span = $C('span');
            _weibo_info.appendChild(_span);
            var _rp = $C('a');
            _rp.href = 'javascript:void(0)';
            _rp.innerHTML = '杞彂';
            _rp.onclick = _repost.bindArg(argData.mid);
            _span.appendChild(_rp);
            var _t1 = document.createTextNode(' ');
            _span.appendChild(_t1);
            var _i = $C('i');
            _i.innerHTML = '|';
            _span.appendChild(_i);
            var _t2 = document.createTextNode(' ');
            _span.appendChild(_t2);
            var _cmt = $C('a');
            _cmt.href = 'javascript:void(0)';
            _cmt.innerHTML = '璇勮';
            _cmt.onclick = _comment.bindArg(argData.mid);
            _span.appendChild(_cmt);

            return _weibo_s;
        }

        function _showSubmit() {
            var _txt = _weibo_new_txt.val('#' + stockname + '#').keyup();
            _weiboSubmit.show();
        }

        function _publish() {
            /*娌$櫥褰曠殑璇濈櫥褰�*/
            if (!weiboLoginManager.userInfo()) {
                _loginOKCall = arguments.callee;
                weiboLoginManager.login();
                return false;
            }
            /*楠岃瘉鍐呭锛屾病闂鍙戝竷*/
            var _words = _weibo_new_txt.val();
            if (_words.replace(/[^\x00-\xff]/g, '**').length > 280) {
                _error('weibo_new_txt');
                return false;
            }
            if (!_words) {
                _error('weibo_new_txt');
                return false;
            }
            WB2.anyWhere(function(W) {
                W.parseCMD('/statuses/update.json', function(sResult, bStatus) {
                    if (bStatus) {
                        $('#weiboNewEdit').hide();
                        _weibo_new_txt.val('#' + stockname + '#').keyup();
                        $('#weiboNewSuccess').show();
                        $('#weiboNewLink').attr('href', 'https://weibo.com/' + weiboLoginManager.userInfo().id + '/profile');
                        setTimeout(function() {
                            $('#weiboNewSuccess').fadeOut(function() {
                                $('#weiboNewEdit').show();
                            });
                        }, 3 * 1000);
                    } else {
                        var _errorMsg = {
                            '20016': '鍙戝竷澶辫触锛屽彂甯冨唴瀹硅繃浜庨绻�',
                            '20017': '鍙戝竷澶辫触锛屽垰鍒氬彂甯冧簡鐩镐技鐨勪俊鎭�',
                            '20018': '鍙戝竷澶辫触锛屽寘鍚潪娉曠綉鍧€',
                            '20019': '鍙戝竷澶辫触锛屽垰鍒氬彂甯冧簡鐩稿悓鐨勪俊鎭�',
                            '20021': '鍙戝竷澶辫触锛屽寘鍚潪娉曞唴瀹�',
                            '20111': '鍙戝竷澶辫触锛屼笉鑳藉彂甯冪浉鍚岀殑寰崥'
                        };
                        alert(_errorMsg[sResult.error_code] || '鍙戝竷澶辫触');
                    }
                }, {
                    source: wbAppKey,
                    status: encodeURIComponent(_words)
                }, {
                    method: 'post'
                });
            });
        }
        var _loginOKCall;
        this.init = function() {
            window.gotWeiboData = function(argData) {
                window.weiboData = argData;
            }
            ;
            _weiboSubmit = $('#weiboSubmit');
            _submitNew = $('#weiboNew');
            _weibo_new_txt = $('#weibo_new_txt');
            _weiboNewTxtrem = $('#weiboNewTxtrem');
            _weiboMore = $('#weiboMore');
            _initWHT();
            _weiboMore.click(_getData);
            /*鍙戝竷妗嗛敭鐩樹簨浠�*/
            _weibo_new_txt.keyup(_keypress.bindArg('weiboNewTxtrem')).keydown(_keypress.bindArg('weiboNewTxtrem')).keyup(function(ev) {
                ev = ev || window.event;
                if (ev.ctrlKey && ev.keyCode == 13) {
                    _publish();
                }
            });
            $('#weiboNewPublish').click(_publish);
            /*鍒囨崲鍙戝竷妗嗘樉绀�*/
            $('#weiboNew,#weiboLoginOpener').click(function() {
                if (_weiboSubmit.css('display') != 'none') {
                    if (this.id == 'weiboLoginOpener') {
                        weiboLoginManager.login();
                        return false;
                    }
                    _submitNew.html('鎴戣鍙戣█..');
                    _weiboSubmit.hide();
                    return false;
                }
                if (weiboLoginManager.userInfo()) {
                    _showSubmit();
                    _submitNew.html('鏀惰捣');
                } else {
                    weiboLoginManager.login();
                    _loginOKCall = arguments.callee;
                }
                return false;
            });
            $('#weiboLogoutBtn').click(function() {
                weiboLoginManager.logout();
            });
            //            LoginManager.add(
            //            {
            //                logoutBtn: 'weiboLogoutBtn'
            //            });

            weiboLoginManager.add({
                onLoginSuccess: function() {
                    var _userInfo = weiboLoginManager.userInfo();
                    $('#weiboLogined').show();
                    $('#weiboNotLogin').hide();
                    $('#weiboNick,#weiboNick2').html(_userInfo.screen_name);
                    if (_loginOKCall) {
                        _loginOKCall();
                        _loginOKCall = null;
                    }
                },
                onLogoutSuccess: function() {
                    $('#weiboLogined').hide();
                    $('#weiboNotLogin').show();
                    $('#weiboNick2').html('鎮ㄥ皻鏈櫥褰曪紝鍙戣█鎻愪氦鍚庡皢杩涘叆鐧诲綍鐣岄潰');
                }
            });

        }
        ;
    }
    ();
    /*鍔犺浇寰崥鐨刯s SDK绛�*/

    function initWeiboJS() {
        var _jsNum = 2;

        function _scriptLoaded() {
            _jsNum--;
            if (!_jsNum) {
                weiboLoginManager.init();
                //                weibo.init();
            }
        }
        getScript('https://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=' + wbAppKey + '&rn=' + random(), _scriptLoaded, 'utf-8');
        getScript('https://finance.sina.com.cn/basejs/wbfollower.js', _scriptLoaded);

    }
    /*寰崥鐧婚檰鐘舵€佹帶鍒剁粍浠�*/
    var weiboLoginManager = new function() {
        var _logined = false;
        var _userInfo;
        var _components = [];
        this.userInfo = function() {
            return _userInfo;
        }
        ;
        this.add = function(com) {
            _components.push(com);
            if (_userInfo) {
                com.onLoginSuccess(_userInfo);
            }
        }
        ;
        this.login = function() {
            WB2.login(_checkStatus);
        }
        ;
        this.logout = function() {
            WB2.logout(function() {
                _checkStatus();
            });
        }
        ;

        function _checkStatus() {
            var _status = WB2.checkLogin();
            /*鐧诲綍浜嗭紝鍙栧井鍗氫俊鎭紝閫氱煡鍚勬ā鍧楃櫥闄嗘垚鍔�*/
            if (!_logined && _status) {
                _logined = true;
                WB2.anyWhere(function(W) {
                    W.parseCMD('/account/get_uid.json', function(uid) {
                        W.parseCMD('/users/show.json', function(info) {
                            _userInfo = info;
                            for (var i = 0; i < _components.length; i++) {
                                _components[i].onLoginSuccess(info);
                            }
                        }, {
                            source: wbAppKey,
                            uid: uid.uid
                        }, {
                            method: 'get'
                        });
                    }, {
                        source: wbAppKey
                    }, {
                        method: 'get'
                    });
                });
                return;
            }
            if (_logined && !_status) {
                _logined = false;
                _userInfo = null;
                for (var i = 0; i < _components.length; i++) {
                    _components[i].onLogoutSuccess();
                }
                return;
            }
        }
        this.init = function() {
            WB2.checkLogin();
            //            _checkStatus();
            //            LoginManager.add(
            //            {
            //                onLogoutSuccess: this.logout.fnBind(this)
            //            });
            setInterval(_checkStatus, 100);
        }
        ;
    }
    ();

    function _regTime(argT) {
        var _postTime = new Date(argT);
        var _now = clock.time();
        var _differ = Math.round((_now - _postTime) / 1000);
        var _showTime;
        if (_differ <= 0) {
            _differ = 1;
        }
        if (_differ < 60) {
            _showTime = _differ + '绉掑墠';
        } else if (_differ < 3600) {
            _showTime = Math.floor(_differ / 60) + '鍒嗛挓鍓�';
        } else if (_now.getDate() == _postTime.getDate()) {
            _showTime = '浠婂ぉ ' + _postTime.getHours().preFull() + ':' + _postTime.getMinutes().preFull();
        } else {
            _showTime = (_postTime.getMonth() + 1).preFull() + '鏈�' + _postTime.getDate().preFull() + '鏃� ' + _postTime.getHours().preFull() + ':' + _postTime.getMinutes().preFull();
        }
        return _showTime;
    }
    var stockAsk = new function() {

        function _getData() {
            getScript('https://talk.finance.sina.com.cn/api/ajax/get_answer?page=1&order=0&num=20&sid=2&channel=finance&callback=stockAskCallback&json=1', function() {}, 'utf-8');
        }

        function _gotData(data) {
            function _addAsk(argData) {
                var _intanswers = $C('div');
                _intanswers.className = 'intanswers';
                var _MIB_mbloglist = $C('div');
                _MIB_mbloglist.className = 'MIB_mbloglist';
                _intanswers.appendChild(_MIB_mbloglist);

                _MIB_mbloglist.appendChild(_createWB(argData));

                var _intaskpos = $C('div');
                _intaskpos.className = 'intaskpos';
                _intanswers.appendChild(_intaskpos);

                _container.append(_intanswers);
            }

            function _addAnswer(argData) {
                var _intanswers = $C('div');
                _intanswers.className = 'intanswers';
                var _MIB_mbloglist = $C('div');
                _MIB_mbloglist.className = 'MIB_mbloglist';
                _intanswers.appendChild(_MIB_mbloglist);

                for (var i = 0; i < argData.length; i++) {
                    _MIB_mbloglist.appendChild(_createWB(argData[i]));
                }

                var _intanswerpos = $C('div');
                _intanswerpos.className = 'intanswerpos';
                _intanswers.appendChild(_intanswerpos);

                _container.append(_intanswers);
            }

            function _addComment(argData) {
                var _intreview = $C('div');
                _intreview.className = 'intreview';
                var _MIB_mbloglist = $C('div');
                _MIB_mbloglist.className = 'MIB_mbloglist';
                _intreview.appendChild(_MIB_mbloglist);

                _MIB_mbloglist.appendChild(_createWB(argData));

                var _intreviewpos = $C('div');
                _intreviewpos.className = 'intreviewpos';
                _intreview.appendChild(_intreviewpos);

                _container.append(_intreview);
            }

            function _createWB(argData) {
                var _MIB_feed_c = $C('div');
                _MIB_feed_c.className = 'MIB_feed_c';

                var _sms = $C('p');
                _sms.className = 'sms';
                _MIB_feed_c.appendChild(_sms);

                var _name = $C('a');
                _name.target = '_blank';
                _name.title = argData.wb_data.user.screen_name;
                _name.innerHTML = argData.wb_data.user.screen_name;
                _name.href = 'https://weibo.com/' + argData.wb_data.user.profile_url;
                if (argData.wb_data.user.verified_type != '-1') {
                    var _vip = $C('img');
                    _vip.src = 'https://www.sinaimg.cn/cj/realstock/2012/images/transparent.gif';
                    _vip.className = argData.wb_data.user.verified_type == 0 ? 'vip' : 'vip_c';
                    _vip.title = argData.wb_data.user.verified_reason;
                    _name.appendChild(_vip);
                }
                _sms.appendChild(_name);

                var _tt = argData.text;
                _tt = _tt.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
                _tt = _tt.replace(/@([0-9a-zA-Z\u4e00-\u9fa5_-]+)/g, function($1, $2) {
                    return '<a target="_blank" href="https://weibo.com/n/' + $2 + '">@' + $2 + '</a>';
                }).replace(/#(.*?)#/g, function($1, $2) {
                    return '<a target="_blank" href="https://s.weibo.com/weibo/' + $2 + '">#' + $2 + '#</a>';
                }).replace(/http\:\/\/t.cn\/[a-zA-Z0-9]+/g, function($1) {
                    return '<a target="_blank" href="' + $1 + '">' + $1 + '</a>';
                });
                var _txt = $C('span');
                _txt.innerHTML = '锛�' + _tt;
                _sms.appendChild(_txt);

                var _feed_att = $C('div');
                _feed_att.className = 'feed_att';
                _MIB_feed_c.appendChild(_feed_att);

                if (argData.is_reply == '1') {
                    var _time = $C('span');
                } else {
                    var _time = $C('a');
                    _time.target = '_blank';
                    _time.href = 'https://weibo.com/' + argData.wb_data.user.id + '/' + argData.wb_mid;
                }
                _time.innerHTML = _regTime(argData.create_time * 1000);
                _feed_att.appendChild(_time);

                var _lz = document.createTextNode(' 鏉ヨ嚜');
                _feed_att.appendChild(_lz);

                var _lz_a = $C('a');
                _lz_a.target = '_blank';
                _lz_a.innerHTML = '鑲″競涓撳鍧愬爞';
                _lz_a.href = 'https://talk.finance.sina.com.cn/finance/zhuanjia/index.shtml';
                _feed_att.appendChild(_lz_a);

                return _MIB_feed_c;
            }
            var _container = $('#makeSweet').empty();
            data = data.result.data.list;
            for (var i = 0; i < data.length; i++) {
                data[i].question && _addAsk(data[i].question);
                data[i].answer && _addAnswer(data[i].answer);
                data[i].comment && _addComment(data[i].comment);
                _container.append('<div class="interviewsline"></div>');
            }

            //            _container.hide().html(data.result.data.html);
            //            _container.find('.rt,.head_pic,.intreviewT,.intreviewB').remove();
            //            _container.show();
        }
        this.init = function() {
            window.stockAskCallback = _gotData;
            _getData();
        }
        ;
    }
    ();

    var visitedAndPort = window.visitedAndPort = new function() {
        var _cookieKey = 'FINA_V_S_2';
        var _cookieCfg = {
            path: '/',
            domain: 'finance.sina.com.cn',
            expires: '365'
        };
        var _maxVisited = 20;
        var _max = 12;
        var _showHot = true;
        var _portInited = false;
        var _showingPort = false;
        var _visitedList = [];
        var _hotList = [];
        var _portList = [];
        /*1涓哄€掓帓锛�-1姝f帓锛�0涓嶆帓*/
        var _asc = 0;
        var _hasLogin = false;
        this.init = function() {
            _buildVisited();
            _getData();
            setInterval(function() {
                /*鍛ㄤ竴鍒板懆浜�8鐐瑰埌16鐐瑰埛鏂�*/
                if (checkDayTime()) {
                    _getData();
                }
            }, 5 * 1000);

            //            $('#portLogoutBtn').click(weiboLoginManager.logout.fnBind(weiboLoginManager));
            LoginManager.add({
                logoutBtn: 'portLogoutBtn',
                /*鐧诲綍鍒囨崲鑷€夎偂鐘舵€�*/
                onLoginSuccess: function(user) {
                    _hasLogin = true;
                    $('#portLoginFalse').hide();
                    $('#portLoginTrue').show();
                    /*濡傛灉姝e湪鑷€夎偂椤电涓紝鐩存帴鍒濆鍖�*/
                    if (_showingPort) {
                        _buildPort();
                        _showingPort = true;
                    }
                    $('#portNick').html(user.nick).attr('title', user.nick);
                },
                onUserChanged: function(user) {
                    if (_portInited) {
                        _buildPort();
                        $('#portNick').html(user.nick).attr('title', user.nick);
                    }
                },
                /*閫€鍑哄垏鎹㈢姸鎬侊紝骞跺垹闄ゆ墍鏈夎嚜閫夎偂DOM*/
                onLogoutSuccess: function() {
                    _hasLogin = false;
                    _portInited = false;
                    $('#portLoginFalse').show();
                    $('#portLoginTrue').hide();
                    while (_portList.length) {
                        _portList.pop().release();
                    }
                }
            });

            loginLayer.addOpener('port_show_login');

            $('#sortBtnV').click(_doSort);
            $('#sortBtnP').click(_doSort);
            var _tabCont = new TabCont('tcVP','mouseenter',function(argIndex) {
                /*濡傛灉涔嬪墠灏辨槸杩欎釜绛撅紝涓嶆搷浣�*/
                if (!_showingPort ^ argIndex) {
                    return;
                }
                /*濡傛灉閫夌殑鏄嚜閫夎偂锛屽苟涓旇嚜閫夎偂娌℃湁鍒濆鍖栵紝涔熺櫥闄嗕簡锛屽氨鍒濆鍖栬嚜閫夎偂*/
                /*鑷€夎偂鍒濆鍖栨爣蹇楃珛鍗充慨鏀癸紝涓嶅仛鍒濆鍖栧け璐ュ噯澶�*/
                if (argIndex == 1 && !_portInited && _hasLogin) {
                    _buildPort();
                    _portInited = true;
                }
                /*鎶婂綋鍓嶆樉绀虹姸鎬佸垏鎹�*/
                _showingPort = !!argIndex;
                /*鍔犺浇鏁版嵁銆傝嚜閫夋病鍒濆鍖栨椂portList涓虹┖锛屼笉浼氬彂璇锋眰*/
                _getData(true);
                return false;
            }
            );

        }

        function _getData(immediately) {
            var _list = [];
            /*鏄剧ず鐨勬槸鑷€夌殑璇濆彇鑷€夊垪琛�*/
            if (_showingPort) {
                for (var i = 0, il = _portList.length; i < il; i++) {
                    _list.push(_portList[i].symbol);
                }
            }/*鍚﹀垯鎶婃渶杩戣闂偂鍜岀儹鑲″彇浜�*/
            else {
                for (var i = 0, il = _visitedList.length; i < il; i++) {
                    _list.push(_visitedList[i].symbol);
                }

                for (var i = 0, il = _hotList.length; i < il; i++) {
                    _list.push(_hotList[i].symbol);
                }
            }
            /*娌℃湁鍒楄〃鐨勮瘽涓嶈姹傛暟鎹�*/
            if (_list.length) {
                loadScript(hqURL.replace('$rn', random()) + 's_' + _list.join(',s_'), _gotData, immediately);
            }
            return false;
        }

        function _gotData() {
            var _stockList = [];
            if (_showingPort) {
                _stockList = _portList.slice(0);
            } else {
                _stockList = _visitedList.slice(0).concat(_hotList.slice(0));
            }
            /*涓嶉渶瑕佸尯鍒嗗綋鍓嶈偂绁ㄥ垪琛ㄦ槸鍚﹁繕鏄繖涓姹傜殑锛屾湁琛屾儏灏辨樉绀猴紝娌℃湁灏辫烦杩�*/
            for (var i = 0, il = _stockList.length; i < il; i++) {
                var _hq_str = window['hq_str_s_' + _stockList[i].symbol];
                if (!_hq_str) {
                    continue;
                }
                _hq_str = _hq_str.split(',');
                var _data = {};
                _data.name = _hq_str[0] || _stockList[i].symbol;
                _data.now = _hq_str[1] * 1 ? _hq_str[1].toFixed(isSHB(_stockList[i].symbol) ? 3 : 2) : '--';
                _data.changeP = _hq_str[1] * 1 ? _hq_str[3] + '%' : '--';
                _stockList[i].draw(_data);
            }
            _doSort();
        }
        /*鎺掑簭銆備娇鐢ㄥ叡鍚岀殑鎺掑簭鏂瑰紡銆備紶鍏ュ弬鏁版墠鏀瑰彉鎺掑簭鐘舵€併€傜偣鍑绘椂this鍜屽弬鏁扮洿鎺ヤ細鑷姩浼犲叆*/

        function _doSort(argDo) {
            var _sortList = [];
            if (argDo) {
                _asc++;
                if (_asc > 1) {
                    _asc = -1;
                }
            }
            if (_showingPort) {
                _sortList = _portList.slice(0);
                $id('sortBtnP').className = {
                    '1': 'sort_down',
                    '0': '',
                    '-1': 'sort_up'
                }[_asc];
            } else {
                _sortList = _visitedList.slice(0);
                $id('sortBtnV').className = {
                    '1': 'sort_down',
                    '0': '',
                    '-1': 'sort_up'
                }[_asc];
            }
            if (_asc) {
                _sortList.sort(function($1, $2) {
                    var _data1 = window['hq_str_s_' + $1.symbol];
                    /*娌¤鎯呮垨鑰呭綋鍓嶄环浣�0閮芥帓鍒版渶鍚庡幓*/
                    if (_data1) {
                        if (!(_data1.split(',')[1] * 1)) {
                            return 1;
                        }
                        _data1 = parseFloat(_data1.split(',')[3]);
                    } else {
                        return 1;
                    }
                    var _data2 = window['hq_str_s_' + $2.symbol];
                    if (_data2) {
                        if (!(_data2.split(',')[1] * 1)) {
                            return -1;
                        }
                        _data2 = parseFloat(_data2.split(',')[3]);
                    } else {
                        return -1;
                    }
                    return (_data2 - _data1) * _asc;
                });
            }
            for (var i = 0, il = _sortList.length; i < il; i++) {
                _sortList[i].tr.parentNode.appendChild(_sortList[i].tr);
                _sortList[i].tr.className = 'row_' + i % 2;
            }
        }
        /*鍒涘缓鏈€杩戣闂偂銆佺儹鑲OM*/

        function _buildVisited() {
            /*鍏堝皾璇曟竻绌�*/
            while (_visitedList.length) {
                _visitedList.pop().release();
            }
            while (_hotList.length) {
                _hotList.pop().release();
            }
            /*鍒涘缓鏈€杩戣闂偂*/
            var _tbody = $id('tbodyVisited');
            var _visited = Cookie.get(_cookieKey);
            /*璇诲彇骞惰缃竴涓媍ookie锛屽墧闄ゅ綋鍓嶉〉鑲$エ*/
            _visited = _visited + ',';
            _visited = _visited.replace(papercode + ',', '');
            _visited = _visited.replace(/,$/, '');
            _visited = _visited.split(',');
            var _stock;
            var _v = [];
            for (var i = 0; i < _visited.length; i++) {
                if (/^s[hz]\d{6}$/.test(_visited[i])) {
                    _stock = new _Stock(_visited[i],_delVisited);
                    _stock.tr.className = 'row_' + _visitedList.length % 2;
                    _tbody.appendChild(_stock.tr);
                    _visitedList.push(_stock);
                    _v.push(_visited[i]);
                    if (_v.length >= _maxVisited - 1) {
                        break;
                    }
                }
            }
            _v.unshift(papercode);
            _v = _v.join(',');
            Cookie.set(_cookieKey, _v, _cookieCfg);
            /*楠岃瘉涓€娆℃槸鍚︽樉绀虹儹鑲�*/
            _checkShowHot();
            /*鍒涘缓鐑偂*/
            var _tbody = $id('tbodyHot');
            var _stock;
            for (var i = 0, il = hotstock_daily_a.length; _hotList.length <= _max && i < il; i++) {
                if (/^s[hz]\d{6}$/.test(hotstock_daily_a[i][0]) && _v.indexOf(hotstock_daily_a[i][0]) == -1) {
                    _stock = new _Stock(hotstock_daily_a[i][0],null,true);
                    _stock.tr.className = 'row_' + _hotList.length % 2;
                    _tbody.appendChild(_stock.tr);
                    _hotList.push(_stock);
                }
            }
        }

        function _checkShowHot() {
            if (_visitedList.length >= _max - 1) {
                $('#tbodyHot').hide();
                _showHot = false;
            } else {
                $('#tbodyHot').show();
                _showHot = true;
            }
        }

        function _buildPort() {
            //            getScript('https://vip.stock.finance.sina.com.cn/portfolio/web/api/jsonp.php/var _myPort=/FinanceUserService.getZXByNC?type=stock&rn=' + random(),function ()
            getScript('https://stock.finance.sina.com.cn/portfolio/api/openapi.php/PortfolioInterfaceService.getPyListFace?type=cn&one=first&format=json&callback=var _myPort=&rn=' + random(), function() {
                while (_portList.length) {
                    _portList.pop().release();
                }
                $('#tbodyPort').empty();
                var _stock;
                var _tbody = $id('tbodyPort');
                _myPort = _myPort.result.data[0].symbols;
                for (var i = 0; i < _myPort.length; i++) {
                    if (/s[hz]\d{6}/.test(_myPort[i])) {
                        _stock = new _Stock(_myPort[i],null,true);
                        _stock.tr.className = 'row_' + _portList.length % 2;
                        _tbody.appendChild(_stock.tr);
                        _portList.push(_stock);
                    }
                }
                if (!_myPort.length) {
                    _tr = $C('tr');
                    _th = $C('th');
                    _th.style.lineHeight = '140px';
                    _th.style.textAlign = 'center';
                    $(_th).attr('colspan', '3');
                    _th.innerHTML = '<a href="https://vip.stock.finance.sina.com.cn/portfolio/main.php" target="_blank" class="a_blue_d_all">灏氭湭娣诲姞鑷€夛紝鐐瑰嚮杩涘叆..</a>';
                    _tr.appendChild(_th);
                    _tbody.appendChild(_tr);
                }
                _getData(true);
            });
        }
        /*鍒犻櫎鏈€杩戣闂偂*/

        function _delVisited(argSymbol) {
            var _visited = Cookie.get(_cookieKey) + ',';
            _visited = _visited.replace(argSymbol + ',', '');
            _visited = _visited.replace(/,$/, '');
            Cookie.set(_cookieKey, _visited, _cookieCfg);
            for (var i = _visitedList.length - 1; i >= 0; i--) {
                if (_visitedList[i].symbol == argSymbol) {
                    _visitedList.splice(i, 1);
                }
            }
            _checkShowHot();
            _doSort();
        }

        /*鑲$エ绫�*/

        function _Stock(symbol, onDelete, noDel) {
            this.symbol = symbol;
            this.dataObj = {};
            this.tr;
            this.onDelete = onDelete;
            this.noDel = noDel || false;
            this._type = (symbol.slice(0, 3).toUpperCase() == 'SZ1' || symbol.slice(0, 3).toUpperCase() == 'SH5') ? 1 : 0;
            this.createDom();
        }
        merge(_Stock.prototype, {
            /*鍒涘缓鍏冪礌*/
            createDom: function() {
                this.tr = $C('tr');
                var _th = $C('th');
                this.tr.appendChild(_th);
                var _a = $C('a');
                _a.href = pageURL.replace('$symbol', this.symbol);
                if (this._type) {
                    _a.href = pageURL2.replace('$symbol', this.symbol.slice(2));
                }
                _a.innerHTML = this.symbol;
                _th.appendChild(_a);
                this.dataObj.nameLink = _a;

                var _td = $C('td');
                _td.innerHTML = '--';
                this.tr.appendChild(_td);
                this.dataObj.now = _td;

                _td = $C('td');
                this.dataObj.changePTd = _td;
                this.tr.appendChild(_td);
                var _span = $C('span');
                _span.innerHTML = '--';
                this.dataObj.changeP = _span;
                _td.appendChild(_span);
                if (!this.noDel) {
                    var _em = $C('em');
                    _td.appendChild(_em);
                    this.dataObj.del = _em;
                }

                this.addEvent();
            },
            addEvent: function() {
                if (!this.noDel) {
                    var _tr = $(this.tr);
                    _tr.mouseenter(this.showDel.fnBind(this)).mouseleave(this.hideDel.fnBind(this));
                    $(this.dataObj.del).click(this.deleteMe.fnBind(this));
                }
            },
            showDel: function() {
                this.dataObj.del.style.display = 'inline-block';
            },
            hideDel: function() {
                this.dataObj.del.style.display = '';
            },
            deleteMe: function() {
                this.release();
                if (this.onDelete) {
                    this.onDelete(this.symbol);
                }
                return false;
            },
            release: function() {
                $(this.tr).remove();
                this.dataObj = {};
                this.tr = undefined;
            },
            draw: function(argData) {
                this.dataObj.nameLink.innerHTML = argData.name;
                this.dataObj.now.innerHTML = argData.now;
                this.dataObj.changeP.innerHTML = argData.changeP;
                this.dataObj.changeP.className = checkUD(undefined, parseFloat(argData.changeP));
            }
        });
    }
    ();

    var notice = new function() {
        var _scrolling = false;
        var _hovering = false;

        function _getData() {
            getScript('https://vip.stock.finance.sina.com.cn/api/jsonp.php/var noticeData=/CB_AllService.getMemordlistbysymbol?num=8&PaperCode=' + papercode.replace(/[^0-9]/g, ''), _gotData);
        }

        function _gotData() {
            if (_scrolling) {
                setTimeout(arguments.callee, 500);
                return;
            }
            var _ul = $('#notice ul').empty();
            var _li, _a;
            if(noticeData){
                for (var i = 0; i < noticeData.length; i++) {
                    _li = $('<li>').appendTo(_ul);
                    _a = $('<a>').attr('target', '_blank').attr('href', 'https://vip.stock.finance.sina.com.cn/corp/view/vCB_AllMemordDetail.php?stockid=' + papercode.replace(/[^0-9]/g, '') + '#_' + noticeData[i].id).attr('title', noticeData[i].title).html(noticeData[i].date + ' ' + noticeData[i].title).appendTo(_li);
                }
            }
        }

        function _scrollUp() {
            if (_scrolling) {
                return;
            }
            _scrolling = true;
            var _notice = $('#notice li:first');
            _notice.animate({
                marginTop: -1 * _notice.height() + 'px'
            }, {
                complete: function() {
                    _notice.css('marginTop', '0px').appendTo(_notice.parent());
                    _scrolling = false;
                }
            });
        }

        function _scrollDown() {
            if (_scrolling) {
                return;
            }
            _scrolling = true;
            var _notice = $('#notice li:last');
            _notice.prependTo(_notice.parent());
            _notice.css('marginTop', -1 * _notice.height() + 'px');
            _notice.animate({
                marginTop: '0px'
            }, {
                complete: function() {
                    _scrolling = false;
                }
            });
        }
        this.init = function() {
            _getData();
            setInterval(_getData, 60 * 2 * 1000);

            $('#hqNoticeUp').click(_scrollDown);
            $('#hqNoticeDown').click(_scrollUp);

            setInterval(function() {
                if (!_hovering) {
                    _scrollUp();
                }
            }, 5 * 1000);

            $('#notice').mouseenter(function() {
                _hovering = true;
            }).mouseleave(function() {
                _hovering = false;
            });
        }
        ;
    }
    ();

    var adnotice = new function() {
        var _scrolling = false;
        var _hovering = false;

        function _scrollUp() {
            if (_scrolling) {
                return;
            }
            _scrolling = true;
            var _notice = $('#adnotice li:first');
            _notice.animate({
                marginTop: -1 * _notice.height() + 'px'
            }, {
                complete: function() {
                    _notice.css('marginTop', '0px').appendTo(_notice.parent());
                    _scrolling = false;
                }
            });
        }

        function _scrollDown() {
            if (_scrolling) {
                return;
            }
            _scrolling = true;
            var _notice = $('#adnotice li:last');
            _notice.prependTo(_notice.parent());
            _notice.css('marginTop', -1 * _notice.height() + 'px');
            _notice.animate({
                marginTop: '0px'
            }, {
                complete: function() {
                    _scrolling = false;
                }
            });
        }
        this.init = function() {

            setInterval(function() {
                if (!_hovering) {
                    _scrollUp();
                }
            }, 5 * 1000);

            $('#adnotice').mouseenter(function() {
                _hovering = true;
            }).mouseleave(function() {
                _hovering = false;
            });
        }
        ;
    }
    ();

    var louver = new function() {
        function _click() {
            var _className = this.className;
            var _this = $(this);
            if (!_this.find('a').length) {
                return;
            }
            var _sec_cont = _this.parent().find('.sec_cont');
            if (_className.indexOf('on') == -1) {
                _sec_cont.animate({
                    height: _sec_cont[0].scrollHeight + 'px'
                });
                _this.addClass('on');
            } else {
                var _className = _sec_cont[0].className;
                _className = _className.replace(/[^0-9]/g, '') || 2;
                _sec_cont.animate({
                    height: _className * 24 + 'px'
                });
                _this.removeClass('on');
            }
        }
        this.init = function() {
            $('#louver .sec_btn').click(_click);
            $('#louverAllUnfold').click(function() {
                var _btns = $('#louver .sec_btn');
                for (var i = 0; i < _btns.length; i++) {
                    if (_btns[i].className.indexOf('on') == -1) {
                        _btns.eq(i).click();
                    }
                }
            });
            $('#louverAllFold').click(function() {
                var _btns = $('#louver .on');
                _btns.click();
            });
        }
    }
    ();

    /*椤电鍒囨崲*/
    /*repeatCall濡傛灉浼爐rue鍒欐瘡娆″垝杩囬兘璋冪敤鍑芥暟锛屽彲浣滀负鏃堕棿鍝嶅簲*/

    function TabCont(container, evType, callback, repeatCall) {
        this.tabs = $('#' + container + ' .tab');
        this.conts = $('#' + container + ' .cont');
        this.evType = evType || 'mouseenter';
        this.callback = callback;
        this.repeatCall = repeatCall;
        if (this.tabs.length != this.conts.length) {
            error(container + '鏍囩涓庡唴瀹规暟鐩笉瀵瑰簲');
        }
        this.addEvent();
    }
    merge(TabCont.prototype, {
        addEvent: function() {
            for (var i = 0; i < this.tabs.length; i++) {
                this.tabs.eq(i)[this.evType](this.show.fnBind(this, [i]));
            }
        },
        /*鏄剧ず绗嚑涓〉绛撅紝澶栭湶锛屽彲鐩存帴璋冪敤*/
        show: function(argIndex) {
            if (!/(\s|^)on(\s|$)?/.test(this.tabs[argIndex] && this.tabs[argIndex].className)) {
                this.tabs.removeClass('on');
                this.tabs.eq(argIndex).addClass('on');
                this.conts.hide();
                this.conts.eq(argIndex).show();

                this.callback && this.callback(argIndex);
            } else if (this.repeatCall) {
                this.callback && this.callback(argIndex);
            }
        }
    });
    /*铏氭嫙涓嬫媺鍒楄〃*/

    function VSelect(selectID) {
        this.selectID = selectID;
        this.vselect;
        this.showout;
        this.createDom();
        this.addEvent();
    }
    merge(VSelect.prototype, {
        createDom: function() {
            var _select = $('#' + this.selectID);
            /*闅愭帀鍘熺敓select*/
            _select.hide();
            this.vselect = $C('div');
            this.vselect.className = 'vselect';
            this.showout = $C('span');
            this.vselect.appendChild(this.showout);
            _select.after(this.vselect);
            this.setWord();
        },
        addEvent: function() {
            $(this.vselect).click(this.show.fnBind(this));
        },
        show: function(ev) {
            ev = ev || window.event;
            /*濡傛灉宸叉槸鏄剧ず鐘舵€佷簡灏变笉鍋氭搷浣滐紝涓婃娣诲姞鐨刪ide鍑芥暟浼氳嚜鍔ㄨ繘琛岄殣钘忔搷浣�*/
            /*鎵€鏈夊凡鏄剧ず鐘舵€佷笅鐨勭偣鍑婚兘搴旇鏄殣钘忔搷浣�*/
            if ($(this.vselect).find('voptions').length) {
                return;
            }
            /*灞曞紑鏃剁殑鐐瑰嚮闇€瑕佹妸浜嬩欢鍐掓场鍋滄帀锛屽惁鍒檇ocumentElement鐨勭偣鍑讳簨浠朵細椹笂闅愯棌灞�*/
            /*澶氫釜vselect鑱斿姩锛屾墍浠ヤ笉鑳藉啀鍋滄鍐掓场浜嗭紝寤跺悗缁戝畾浜嬩欢鏉ラ伩鍏嶈繖涓棶棰�*/
            //            else
            //            {
            //                ev.stopPropagation && ev.stopPropagation();
            //                ev.cancelBubble = true;
            //            }

            function _hide() {
                $(_voptions).remove();
                $(document.documentElement).unbind('click', _hide);
            }
            setTimeout(function() {
                $(document.documentElement).click(_hide);
            }, 10);

            var _voptions = $C('voptions');
            _voptions.className = 'voptions';
            var _select = $id(this.selectID);
            var _options = $(_select).find('option');
            var _selectedIndex = _select.selectedIndex;
            var _a;
            for (var i = 0; i < _options.length; i++) {
                _a = $C('a');
                _a.href = 'javascript:void(0)';
                _a.innerHTML = _options[i].innerHTML;
                if (i == _selectedIndex) {
                    _a.className = 'on';
                }
                _a.onclick = this.select.fnBind(this, [i]);
                _voptions.appendChild(_a);
            }
            this.vselect.appendChild(_voptions);
            _voptions.style.display = 'block';
        },
        /*閫夋嫨鏌愪竴涓€夐」锛岀浜屼釜鍙傛暟true鍒欎笉浼氳Е鍙憃nchange浜嬩欢銆備篃鍙互鐩存帴璋冪敤鏉ユ敼鍙橀€夋嫨*/
        select: function(argIndex, argNocall) {
            var _select = $id(this.selectID);
            var _selectedIndex = _select.selectedIndex;
            if (_selectedIndex !== argIndex) {
                _select.selectedIndex = argIndex;
                this.setWord();
                if (argNocall !== true) {
                    $(_select).change();
                }
            }
            return false;
        },
        setWord: function() {
            this.showout.innerHTML = $('#' + this.selectID).find('option:selected').html();
        }
    });
    /*鍒ゆ柇鏄惁鏄氦鏄撴椂闂�*/

    function checkDayTime() {
        var _hour = clock.time().getHours();
        var _day = clock.time().getDay();
        if (_hour >= 8 && _hour < 16 && _day != 0 && _day != 6) {
            return true;
        }
        return false;
    }

    /*鍚堝苟hq璇锋眰鍙戦€�*/
    var loadScript = new function() {
        var _list = [];
        var _call = [];
        var _list_txt = [];
        var _call_txt = [];
        var _timer, _timerTxt;
        /*鍙戣姹傦紝鎶婂垪琛ㄦ竻绌猴紝浠ュ悗鐨勯噸鏂扮疮绉�*/

        function _get() {
            if (!_list.length || !_list.join(',')) {
                return;
            }
            getScript(hqURL.replace('$rn', random()) + _list.join(','), _got.bindArg(_call));
            _call = [];
            _list = [];
        }

        function _getTxt() {
            if (!_list_txt.length || !_list_txt.join(',')) {
                return;
            }
            getScript(hqURL_txt.replace('$rn', random()) + _list_txt.join(','), _got.bindArg(_call_txt));
            _call_txt = [];
            _list_txt = [];
        }

        function _got(argCall) {
            for (var i = 0; i < argCall.length; i++) {
                argCall[i]();
            }
        }
        /*绗笁涓弬鏁颁紶鍏rue鍒欑珛鍗冲彂閫佽姹�*/
        return function(arr, callback, immediately) {
            var _isTxt;
            var _listTmp, _callTmp, _getTmp;
            if (typeof arr == 'string' && arr.indexOf('format=text') > -1) {
                _listTmp = _list_txt;
                _callTmp = _call_txt;
                _getTmp = _getTxt;
                _isTxt = true;
            } else {
                _listTmp = _list;
                _callTmp = _call;
                _getTmp = _get;
                _isTxt = false;
            }
            var _arr = arr;
            if (typeof _arr == 'string') {
                _arr = _arr.replace(/^[\s\S]*list=/, '').split(',');
            }
            /*濡傛灉鍔犱竴璧蜂細瓒呭嚭url闀垮害鍒欓┈涓婃妸涔嬪墠鐨勮姹傚彂鍑哄幓*/
            if ((_listTmp.join(',') + _arr.join(',')).length > 750) {
                _getTmp();
            }
            var _sList = ',' + _listTmp.join(',') + ',';
            for (var i = 0; i < _arr.length; i++) {
                if (_sList.indexOf(',' + _arr[i] + ',') == -1) {
                    _listTmp.push(_arr[i]);
                    _sList += _arr[i] + ',';
                }
            }
            _callTmp.push(callback);
            /*寤跺悗鍙戦€佽姹傦紝濡傛灉鏈夊叾浠杊q璇锋眰鍒欎細绱Н鍒颁竴璧�*/

            clearTimeout(_isTxt ? _timerTxt : _timer);
            if (immediately) {
                _getTmp();
            } else {
                if (_isTxt) {
                    _timerTxt = setTimeout(_getTmp, 50);
                } else {
                    _timer = setTimeout(_getTmp, 50);
                }
            }
        }
        ;
    }
    ();

    function doNaN(data, argChange) {
        if (isNaN(data) || !isFinite(data)) {
            data = argChange || '--';
        }
        return data;
    }

    function replace$(symbol) {
        if (typeof symbol == 'string') {
            return symbol.replace(/\./g, '$');
        } else {
            return replace$(symbol + '').split(',');
        }
    }

    function $id(id) {
        return document.getElementById(id);
    }

    function $C(tag) {
        return document.createElement(tag);
    }

    function random() {
        return new Date().getTime();
    }

    function error(msg) {
        window.console && console.error && console.error(msg);
    }

    function isSHB(symbol) {
        return /^(sh900|sz1|sh5)/.test(symbol);
    }

    if (!window.XMLHttpRequest) {
        for (var i = 5; i; i--) {
            try {
                if (i == 2) {
                    new ActiveXObject("Microsoft.XMLHTTP");
                    XMLHttpRequest = function() {
                        return new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    break;
                } else {
                    new ActiveXObject("Msxml2.XMLHTTP." + i + ".0");
                    XMLHttpRequest = function(argI) {
                        return new ActiveXObject("Msxml2.XMLHTTP." + argI + ".0");
                    }
                    .fnBind(this, [i]);
                    break;
                }
            } catch (e) {
            }
        }
    }
    String.prototype.contains = function(string, s) {
        return (s) ? (s + this + s).indexOf(s + string + s) > -1 : this.indexOf(string) > -1;
    }
    ;
    Object.toQueryString = function(source) {
        if (typeof source == 'string') {
            return encodeURIComponent(source);
        }
        var queryString = [];
        for (var property in source) {
            queryString.push(encodeURIComponent(property) + '=' + encodeURIComponent(source[property]));
        }
        return queryString.join('&');
    }
    ;
    var Ajax = function(url, options) {
        this.url = url;
        this.running = false;
        this.timer = null;
        this.options = {
            method: 'GET',
            data: null,
            time: 30,
            async: true,
            onComplete: false,
            onFailure: false,
            onTimeOut: false,
            onRequest: false,
            charset: 'utf-8'
        };
        this.setOptions(options);
        this.transport = new XMLHttpRequest();
    };
    Ajax.prototype.setOptions = function(options) {
        this.options.onComplete = false;
        this.options.onFailure = false;
        this.options.onTimeOut = false;
        this.options.onRequest = false;
        for (var option in options) {
            this.options[option] = options[option];
        }
    }
    ;
    Ajax.prototype.request = function() {
        if (this.running) {
            return this;
        }
        this.running = true;
        var data = this.options.data && Object.toQueryString(this.options.data);
        if (data && (this.options.method == 'GET')) {
            this.url = this.url + (this.url.contains('?') ? '&' : '?') + data;
            data = null;
        }
        this.transport.open(this.options.method, this.url, this.options.async);
        this.transport.setRequestHeader("charset", this.options.charset);
        if (this.options.method == 'POST') {
            this.transport.setRequestHeader('Content-type', 'application/x-www-form-urlencoded; charset=' + this.options.charset);
        }
        this.transport.onreadystatechange = this.onStateChange.fnBind(this);
        this.transport.send(data);
        if (this.options.onTimeOut) {
            var cancel = this.cancel.fnBind(this);
            var timeOut = this.options.onTimeOut.fnBind(this);
            this.timer = setTimeout(function() {
                cancel();
                timeOut();
            }, this.options.time * 1000);
        }
        if (this.options.onRequest) {
            this.options.onRequest();
        }
        return this;
    }
    ;
    Ajax.prototype.cancel = function() {
        if (!this.running) {
            return this;
        }
        this.running = false;
        if (this.timer) {
            clearTimeout(this.timer);
        }
        this.transport.abort();
        return this;
    }
    ;
    Ajax.prototype.onStateChange = function() {
        if (this.transport.readyState != 4 || !this.running)
            return;
        this.running = false;
        var status = this.transport.status;
        if (this.timer) {
            clearTimeout(this.timer);
        }
        if ((status >= 200) && (status < 300)) {
            this.options.onComplete(this.transport.responseText);
        } else {
            if (this.options.onFailure) {
                this.options.onFailure();
            }
        }
    }
    ;
}(jQuery);

var lta = 1;
//娴侀€欰鑲�,鑰佹暟鎹繚鐣�
var lastfive = 1;
//杩囧幓5涓氦鏄撴棩骞冲潎姣忓垎閽熸垚浜ら噺
var flag = 1;
//鍒ゆ柇鏍囧織
var totalcapital = 1;
//鎬昏偂鏈�
var currcapital = 1;
//娴侀€氳偂鏈�
var curracapital = 0;
//娴侀€欰鑲�
var currbcapital = 0;
//娴侀€欱鑲�
var a_code = '1';
//娴侀€欰鑲′唬鐮�
var b_code = '';
//娴侀€欱鑲′唬鐮�
var exchangerate = 0;
//姹囩巼
var fourQ_mgsy = 1;
//鏈€杩戝洓涓搴︽瘡鑲℃敹鐩婂拰
var lastyear_mgsy = 1;
//鍓嶄竴骞存瘡鑲℃敹鐩婂拰
var price_5_ago = 1;
//5鏃ュ墠鏀剁洏浠锋牸
var price_10_ago = 1;
//10鏃ュ墠鏀剁洏浠锋牸
var price_20_ago = 1;
//20鏃ュ墠鏀剁洏浠锋牸
var price_60_ago = 1;
//60鏃ュ墠鏀剁洏浠锋牸
var price_120_ago = 1;
//120鏃ュ墠鏀剁洏浠锋牸
var price_250_ago = 1;
//250鏃ュ墠鏀剁洏浠锋牸
var mgjzc = 1;
//鏈€杩戞姤鍛婄殑姣忚偂鍑€璧勪骇
var stock_state = 1;
//涓偂鐘舵€侊紙0:鏃犺璁板綍; 1:涓婂競姝e父浜ゆ槗; 2:鏈笂甯�; 3:閫€甯傦級
var trans_flag = 1;
//鏄惁鏄剧ず娑ㄨ穼鍋滀环锛�1:鏄剧ず 0:涓嶆樉绀猴級
var profit = 1;
//鏈€杩戝勾搴﹀噣鍒╂鼎
var profit_four = 1;
//鏈€杩戝洓涓搴﹀噣鍒╂鼎
var stockType = 'A';
//鑲$エ绫诲瀷  A-A鑲� B-B鑲�  I-鎸囨暟
var stockname = '1';
//鑲$エ鍚嶇О
var corr_hkstock = '1';
//鐩稿叧娓偂浠g爜
var corr_bdc = '';
//鐩稿叧鍊哄埜鍙浆鎹㈠€�
var corr_bde = '1';
//鐩稿叧鍊哄埜鏅€氫紒涓氬€�
var bkSymbol = '1';
var wbAppKey = '1';
var mrq_mgsy = 1;
var flashURL = 'https://finance.sina.com.cn/flash/cn.swf';
//鐩稿叧鏈熻揣
var RS = {};
RS.corr_future = [];
hq.init();

window.onload = function(){
    $('.kke_cfg_ctn').next().next().hide();
    $('#KKE_chart_1514572314835').next().hide();
}

CSS

@charset "gb2312";
/* ================== css reset ================== */
html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img,blockquote { margin:0; padding:0; }
h1, h2, h3, h4, h5, h6{ font-weight:normal; }
fieldset, img { border:none; }
address, caption, cite, code, dfn, th, var,em { font-style:normal; font-weight:normal; }
ul, ol, li { list-style:none; }
select, input { vertical-align:middle; }
select, input, textarea { font-size:12px; margin:0; }
table { border-collapse:collapse; }
body { background:#fff; color:#333; padding:5px 0; font:12px/20px "瀹嬩綋"; }
.clearfix:after { content:"."; display:block; height:0; visibility:hidden; clear:both; }
.clearfix { zoom:1; }
.clearit { clear:both; height:10px; font-size:0; overflow:hidden;zoom:1; }
a { color:#09237a; text-decoration:none; }
a:visited { color:#800080; }
a:hover, a:active, a:focus { color:#f00; text-decoration:underline;}
.blue_d,a.a_blue_d_all,.a_blue_d_all a{color:#08237a;}
a.a_blue_d_all:visited,.a_blue_d_all a:visited{color:#08237a;}
a.a_blue_d_all:hover,.a_blue_d_all a:hover{color:#f00;}
.blue_l,a.a_blue_l_all,.a_blue_l_all a{color:#3d6cb0;}
a.a_blue_l_all:visited,.a_blue_l_all a:visited{color:#3d6cb0;}
a.a_blue_l_all:hover,.a_blue_l_all a:hover{color:#f00;}
a.a_blue_d_s,a_blue_d_s a{color:#08237a;}
a.a_blue_d_s:visited,a_blue_d_s a:visited{color:#08237a;}
a.a_blue_d_s:hover,a_blue_d_s a:hover{color:#08237a; text-decoration:none;}
a.a_blue_d_s:active,a_blue_d_s a:active{color:#08237a; text-decoration:none;}
a.a_blue_d_s:focus,a_blue_d_s a:focus{color:#08237a; text-decoration:none;}
a.a_blue_l_s,a_blue_l_s a{color:#3d6cb0;}
a.a_blue_l_s:visited,a_blue_l_s a:visited{color:#3d6cb0;}
a.a_blue_l_s:hover,a_blue_l_s a:hover{color:#3d6cb0; text-decoration:none;}
a.a_blue_l_s:active,a_blue_l_s a:active{color:#3d6cb0; text-decoration:none;}
a.a_blue_l_s:focus,a_blue_l_s a:focus{color:#3d6cb0; text-decoration:none;}
.wrap { width:980px; margin:0 auto; }
.hideword{line-height:100px;overflow:hidden;zoom:1;}
.up,.rup_up,.gup_down,.us_down,.hk_down{color:Red;}
.down,.rup_down,.gup_up,.us_up,.hk_up{color:Green;}
.spliter_5{height:5px;overflow:hidden;clear:both;}
.spliter_10{height:10px;overflow:hidden;clear:both;}
.spliter_15{height:15px;overflow:hidden;clear:both;}
.spliter_20{height:20px;overflow:hidden;clear:both;}
.button_blue{display:inline-block;width:63px;height:20px;line-height:20px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -380px -72px;color:White;border:none;cursor:pointer;text-align:center;}
.button_blue:visited{color:White;}
.button_blue:hover{text-decoration:none;color:White;}
img.vip{width:14px;height:11px;background:url(http://i2.sinaimg.cn/cj/realstock/2012/images/icon_right.2.png) right -280px;}
img.vip_c{width:14px;height:11px;background:url(http://i2.sinaimg.cn/cj/realstock/2012/images/icon_right.2.png) right -312px;}
.dotted_line{height:1px;overflow:hidden;background:url(http://i1.sinaimg.cn/cj/realstock/2012/images/dotted.png) repeat-x;}
/* 椤跺 */
.secondaryHeader{height:33px;padding-bottom:5px;overflow:hidden;background:url(http://www.sinaimg.cn/dy/images/header/2008/standardl2nav_bg.gif) repeat-x #fff;color:#000;font-size:12px;font-weight:100;}
.secondaryHeader a,.secondaryHeader a:visited{color:#000;text-decoration:none;}
.secondaryHeader a:hover,.secondaryHeader a:active{color:#c00;text-decoration:underline;}
.sHBorder{border:1px #e3e3e3 solid;padding:0 10px 0 12px;overflow:hidden;zoom:1;}
.sHLogo{float:left;height:31px;line-height:31px;overflow:hidden;}
.sHLogo span,.sHLogo span a,.sHLogo span a:link,.sHLogo span a:visited,.sHLogo span a:hover{display:block;*float:left;display:table-cell;vertical-align:middle;*display:block;*font-size:27px;*font-family:Arial;height:31px;}
.sHLogo span,.sHLogo span a img,.sHLogo span a:link img,.sHLogo span a:visited img,.sHLogo span a:hover img{vertical-align:middle;}
.sHLinks{float:right;line-height:31px;}
.sHBorder img{border:0}
.global_index_scroller .scroller_oper{padding-right:0;}
/*瀵艰埅*/
.nav{height:40px;line-height:40px;background:url(http://i0.sinaimg.cn/cj/realstock/2012/images/back_r_h.2.png) 0 0 repeat-x;}
.nav .wrap{background:url(http://i0.sinaimg.cn/cj/realstock/2012/images/back_r_h.2.png) 0 0 repeat-x;}
.nav .index{display:inline-block;width:116px;height:40px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -184px -216px;margin:0;margin-right:10px;}
.nav a,.nav span{margin:0 7px; vertical-align:middle;}
.nav a{color:White;}
.nav a:visited{color:White;}
.nav .spliter{display:inline-block;width:2px;height:40px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -472px -162px;}
.nav .a_right{float:right;line-height:40px;height:40px;margin-right:0px;}
.nav .a_right a,.nav .a_right a:visited{color:#90a9ce;margin-right:0px;}
.nav .a_right a:hover,.nav .a_right a:active,.nav .a_right a:focus{color:#f00;}
.nav .jxDown{float:right;margin:7px 0px 0 0;width:75px;height:27px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -424px 0;cursor:pointer;}
.nav .jx_on{height:33px;background-position:-512px 0px;}
/*鑲″競闆疯揪*/
.radar{height:30px;line-height:30px;margin-bottom:1px;background-color:#d4e4ff;}
#STOCKRADAR_SHOW_DIV{background:url(http://www.sinaimg.cn/cj/financewidget/image/stockradarlogo2.gif) transparent 7px 2px no-repeat;}
#STOCKRADAR_SHOW_DIV a span{color:#08237a;}
#STOCKRADAR_SHOW_DIV a:hover span{color:#f00;}
/*椤秚ui*/
.tui{line-height:28px;background-color:#f5faff;border-bottom:1px solid #c1dcf9;margin-bottom:1px;}
.tui .title{display:inline-block;padding-right:8px;background:url(http://i2.sinaimg.cn/cj/realstock/2012/images/icon_right.2.png) right -447px no-repeat;}
.tui .list a{margin:0 1px;}
/*闈㈠寘灞戙€佹悳绱�*/
.topbar{background:url(http://i0.sinaimg.cn/cj/realstock/2012/images/back_r_h.2.png) 0 -176px repeat-x; height :32px;}
.topbar .wrap{}
.topbar .crumbs{float:left;color:#8f8f8f;line-height:32px;}
.topbar .crumbs span{color:#062784;}
.topbar .search{float:right;position:relative;margin-top:5px;*margin-top:4px;}
.topbar .search input{float:left;vertical-align:middle;}
.topbar .search .txt{width:214px;height:18px;padding:1px 3px;line-height:18px;color:#8c8c8c;border:1px solid #c2c2c2;border-right:none;}
.topbar .search .btn{width:59px;height:22px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -216px 0;border:none;padding:0;cursor:pointer;}
.topbar .promot{position:relative;float:right;height:32px;line-height:32px;padding-right:10px;width:430px;margin-right:10px;overflow:hidden;}
#breakingNews{position:absolute; white-space:nowrap;}
#breakingNews a{zoom:1;}
#breakingNews span{display:inline-block;width:100px;color:#8f8f8f;zoom:1;}
/*鏍囩鍒囨崲??閫氱敤*/
.tabs{height:30px;overflow:hidden;font-size:16px;color:#08237a;text-align:center;font-family:寰蒋闆呴粦,瀹嬩綋;}
.tabs .tab{float:left;height:28px;background-color:#f7faff;border:1px solid #cce2f0;border-left:none;line-height:28px;cursor:pointer;}
.tabs .tab a,.tabs .tab a:visited{color:#08237a;}
.tabs .tab a:hover{color:#f00;}
.tabs .last{margin-right:-1px;}
.tabs .on{border-top:2px solid #062784;border-bottom:none;line-height:26px;background-color:White;cursor:default;}
/*鏈€杩戣闂偂銆佽嚜閫�??閫氱敤*/
.v_p{}
.v_p .tabs{}
.v_p .tabs .tab{width:92px;}
.v_p .cont{display:none;height:344px;overflow:hidden;border-bottom:1px solid #d9e2e7;}
.data_table table{line-height:26px;width:100%;}
.data_table thead{color:#035dbe; text-align:center;}
.data_table thead th,.data_table thead td{padding:4px 0 1px;}
.data_table thead a,.data_table thead a:visited{color:#035dbe;cursor:pointer;}
.data_table thead a:hover,.data_table thead a:active,.data_table thead a:focus{text-decoration:none;color:Silver;outline:none;}
.data_table thead .sort_up{padding-right:7px;margin-right:3px;background:url(http://i2.sinaimg.cn/cj/realstock/2012/images/icon_right.2.png) right -248px no-repeat;}
.data_table thead .sort_down{padding-right:7px;margin-right:3px;background:url(http://i2.sinaimg.cn/cj/realstock/2012/images/icon_right.2.png) right -224px no-repeat;}
.data_table .row_0{}
.data_table .row_1{background-color:#f9fafc;}
.data_table .hot_title{border-top:1px solid #dce5f5;background-color:#f9fafc;color:#035dbe;text-align:center;}
.data_table .boder-bottom td,.data_table .boder-bottom th{border-bottom:1px solid #dce5f5;background-color:#fcfcfe;}
.data_table tbody th{text-align:left;padding-left:10px;}
.data_table tbody td{text-align:right;padding-right:16px;}
.data_table tbody td *{vertical-align:middle;}
.data_table tbody td em{display:none;margin-left:1px;margin-right:-15px;cursor:pointer;width:14px;height:14px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -184px 0;}

.v_p tbody th{text-align:left;padding-left:2px;width:35%;}
.v_p tbody td{text-align:right;padding-right:14px;}
.v_p tbody td:first-of-type{text-align:right;padding-right:4px;}

#portLoginFalse{padding-top:95px;padding-left:35px;line-height:26px;}
#portLoginTrue{display:none;}
.v_p .port_hq{height:292px;overflow:hidden;}
.v_p .port_m_link{text-align:center;line-height:26px;}
.v_p .port_nick{background-color:#f9fafc;line-height:26px;}
.v_p #portNick{float:left;width:125px;white-space:nowrap;height:26px;margin-right:10px;overflow:hidden;text-align:center;}
/*钃濅笅杈广€佹涓嬭竟鏍囬??閫氱敤*/
.title_blue{height:24px;line-height:24px;border-bottom:2px solid #08237a;}
.title_blue h2{font-size:18px;font-family:寰蒋闆呴粦,榛戜綋;color:#012793;}
.title_blue h2 a,.title_blue h2 a:visited,.title_blue h2 a:hover,.title_blue h2 a:active,.title_blue h2 a:focus{color:#08237a; text-decoration:none;}
.title_brown{height:26px;line-height:26px;border-bottom:1px solid #a20c17;}
.title_brown h2{display:inline;font-size:18px;font-family:寰蒋闆呴粦,榛戜綋;color:#012793;padding-right:16px;background:url(http://i2.sinaimg.cn/cj/realstock/2012/images/icon_right.2.png) right -193px no-repeat;}
.title_brown h2 a,.title_brown h2 a:visited,.title_brown h2 a:hover,.title_brown h2 a:active,.title_brown h2 a:focus{color:#08237a; text-decoration:none;}
.more{float:right;display:inline;padding-right:8px;background:url(http://i2.sinaimg.cn/cj/realstock/2012/images/icon_right.2.png) right -90px no-repeat;*background-position:right -91px;color:#7e7e7e;line-height:24px;}
.title_brown .more{margin-top:1px;}
.more:visited{color:#7e7e7e;}
.more:hover{color:#045ebe;background-position:right -66px;*background-position:right -67px;text-decoration:none;}
/*钃濈偣li??閫氱敤*/
.li_point li{padding-left:10px;background:url(http://i0.sinaimg.cn/cj/realstock/2012/images/icon_left.png) left -78px no-repeat;line-height:24px;}
/*鐑偣鏍忕洰*/
.hot_column{padding-top:5px;}
.hot_column li{float:left;width:49%;margin-right:-10px;}
/*涓偂娑ㄥ箙姒�*/
.stock_rank_changeP_title .more{margin-right:7px;}
.stock_rank_changeP{border-bottom:1px solid #d9e2e7;}
/*琛屾儏鍧�*/
.hq_title{height:26px;line-height:26px;padding-bottom:11px;background:url(http://i0.sinaimg.cn/cj/realstock/2012/images/back_r_h.2.png) 0 -43px repeat-x;overflow:hidden;}
.hq_title h1{float:left;padding-left:10px;background:url(http://i0.sinaimg.cn/cj/realstock/2012/images/icon_left.png) 0 -109px no-repeat;font-size:18px;font-family:寰蒋闆呴粦,榛戜綋;color:#012793;}
.hq_title h1 span{margin-left:6px;font-size:12px;font-family:瀹嬩綋;}
.hq_title .add_port{float:right;display:inline;margin-right:5px;margin-top:5px;padding-left:15px;background:url(http://i0.sinaimg.cn/cj/realstock/2012/images/icon_left.png) 0 -56px no-repeat;*background-position:0 -57px;}
.hq_title .stock_tip{float:left;margin-left:4px;}
.hq_title .stock_tip .stock_h2a{ float: left; display: inline; width: 29px; height: 29px;}
.hq_title .stock_tip a{float:left;margin-right:4px;height:29px;background:url(http://www.sinaimg.cn/cj/deco/2015/0817/back.9.png);}
.hq_title .stock_tip .t_l2{width:30px;background-position:-734px -216px;}
.hq_title .stock_tip .t_l2pjb{width:30px;background-position:-687px -216px;}
.hq_title .stock_tip .t_l2buy{width:29px;background-position:-780px -216px;}
.hq_title .stock_tip .t_300{width:29px;background-position:-488px -216px;}
.hq_title .stock_tip .t_rong{width:29px;background-position:-448px -216px;}
.hq_title .stock_tip .t_jing{width:29px;background-position:-528px -216px;}
.hq_title .stock_tip .t_buy{width:29px;background-position:-999em -216px;}
.hq_title .stock_tip .t_buy img{ margin:-3px 0 0 -4px}
.hq_title .stock_tip .ws_no { float:left;width:81px;height:23px;margin-left:5px;background:url(http://www.sinaimg.cn/cj/usstock/images/change_btn.3.png) 0px 0px;text-indent:-9999px;overflow:hidden;}
.hq_title .stock_tip .ws_no:hover { background-position:-83px 0px;}
.hq_title .stock_tip .ws_no_on { background-position:-166px 0px;}
.hq_title .stock_tip .ws_yes { float:left;width:68px;height:23px;margin-left:5px;background:url(http://www.sinaimg.cn/cj/usstock/images/change_btn.3.png) -12px -34px;text-indent:-9999px;overflow:hidden;}
.hq_title .stock_tip .ws_yes:hover { background-position:-85px -34px;}
.hq_title .stock_tip .ws_yes_on { background-position:-158px -34px;}
.stock_tip .ws_no,.stock_tip .ws_yes{position: relative;top:4px;}


.hq_details{height:102px;}
.hq_details .price_time{float:left;width:180px;margin-top:12px;padding:0 26px 0px 9px;border-right:1px solid #e1e8f5;}
.hq_details .price{height:43px;}
.hq_details #price{float:right;padding-right:6px;text-align:right;font-size:24px;/*涓轰簡缇庤璁惧ぇ浜嗗瓧浣擄紝濡傛灉鍑虹幇鍗冨厓鑲¢渶瑕佹敼锛�*/line-height:43px;font-family:Arial;}
.hq_details #arrow{float:right;width:21px;height:22px;margin-top:9px;}
.hq_details .arrow{background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -576px -160px;}
.hq_details .arrow_up{background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -544px -160px;}
.hq_details .arrow_down{background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -512px -160px;}
.hq_details .arrow_flat{background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -576px -160px;}
.hq_details .change{float:right;padding-left:5px;margin-top:5px;text-align:right;line-height:16px;}
.hq_details #change{}
.hq_details #changeP{}
.hq_details #closed{display:none;text-align:center;font-family:寰蒋闆呴粦,榛戜綋;font-size:24px;line-height:36px;color:Red;text-align:center;}
.hq_details .time{border-top:1px solid #e1e8f5;text-align:center;}
#hqPause{display:none;color:#A0A0A0;}
.hq_details .other{float:right;width:320px;margin-top:5px;color:#3d6cb0;line-height:22px;}
.hq_details .other table{width:100%;}
.hq_details .other table th{text-align:right;color:#062784; white-space: nowrap;}
.hq_details .other table td{}
/*鐩稿叧琛屾儏鏉�*/
.hq_related{height:29px;line-height:29px;padding:0 10px;background-color:#eef5ff;overflow:hidden;}
.hq_related sub{font-size:10px;}
.hq_related .hq_r_bj_name{color:#999999;}
.hq_related .hq_r_bk_name sub{color:#999999;}
/*淇℃伅鍦伴浄*/
.hq_notice{height:29px;line-height:29px;padding:0 10px;background-color:#fdfeff;border:1px solid #dce5f4;}
.hq_notice .hq_notice_title{float:left;width:60px;}
.hq_notice .hq_notice_cont{float:left;width:460px;height:29px;overflow:hidden;}
.hq_notice .hq_notice_cont li{height:29px;overflow:hidden;}
.hq_notice .hq_notice_btn{float:right;width:10px;}
.hq_notice .hq_notice_btn a{float:right;width:9px;height:5px;overflow:hidden;cursor:pointer;background:url(http://i2.sinaimg.cn/cj/realstock/2012/images/icon_right.2.png);}
.hq_notice .hq_notice_btn .hq_notice_up{background-position:right -344px;margin-top:6px;}
.hq_notice .hq_notice_btn .hq_notice_down{background-position:right -360px;margin-top:8px;}

.hq_lcs_t { height:29px;line-height:29px;padding:0 10px;background-color:#eef5ff;overflow:hidden;}
.ellipsis { display: block; overflow: hidden; white-space: nowrap; word-break: keep-all; text-overflow: ellipsis; }
.hq_lcs_t.nothing h3 {width:94%;}
.hq_lcs_t.nothing .lcs_more {display:none;}
.hq_lcs_t .lcs_left {width:305px; float:left;}
.hq_lcs_t .lcs_right {padding-left: 315px;}
.hq_lcs_t .lcs_right a {color:red;}
.hq_lcs_t h3 {width:235px;float:left;margin-left:-10px; font-size:12px;color: #08237A;font-weight: bold;padding-left:30px;background:url(http://i0.sinaimg.cn/cj/realstock/2012/images/lcs_nv.gif) 0 0 no-repeat;}
.hq_lcs_t .lcs_more,.hq_lcs_t .lcs_more:visited { float:right;color:#3D6CB0;}
.hq_lcs_t .lcs_more:hover, .hq_lcs_t .lcs_more:active { color:#abb4d3;text-decoration:underline;}
.hq_lcs_c { margin-bottom:10px;}
.hq_lcs_s { overflow:hidden;height:29px;}
.hq_lcs_author { float:left;}
.hq_lcs_img {float:left;margin-top:4px; width:20px;height:20px;margin-right:7px;}

/*flash*/
.flash{height:490px;width:100%;overflow:hidden;}
/*鍥剧墖鐗堟牱寮�*/
#picContainer{display:none;}
#picContainer img{margin-top:18px;}
.pic_tabs{border:1px solid #dde4f4;padding-top:1px;}
.pic_tabs .tabs{height:25px;padding:2px 7px 0;background:#eef5ff url(http://i2.sinaimg.cn/cj/realstock/2012/images/icon_right.2.png) right -384px no-repeat;overflow:visible;}
.pic_tabs .tabs .tab{width:57px;height:23px;line-height:23px;border:none;border-top:2px solid #eef5ff;font-family:瀹嬩綋;font-size:12px;}
.pic_tabs .tabs .on{position:relative;z-index:1;width:55px;height:24px;_height:25px;_margin-bottom:-1px;border-left:1px solid #dde4f4;border-right:1px solid #dde4f4;border-top-color:#062784;background-color:White;}
#picContainer .cont{display:none;height:330px;padding:10px 0;text-align:center;}
#picContainer .vselect{float:left;margin-bottom:-20px;margin-top:-5px;}
#picContainer .compare{height:0px;overflow:hidden;}
/*璧板娍瀵规瘮*/
.compare{height:30px;line-height:30px;padding-top:14px;margin-top:5px;border-top:1px solid #dce5f5;}
.compare .title{float:left;width:86px;height:30px;border-right:1px solid #e0e8f5;text-indent:5px;font-weight:bold;color:#014ea5;}
.compare .cont{position:relative;float:left;margin-left:12px;}
.compare .cont .compare_msg{display:none;position:absolute;left:0px;top:-30px;width:160px;padding-left:40px;height:28px;line-height:28px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -970px 4px no-repeat;background-color:#FEFFA2;color:#585858;}
.compare .cont .index{position:relative;display:inline-block;*display:inline;zoom:1;width:65px;height:30px;background:url(http://i2.sinaimg.cn/cj/realstock/2012/images/icon_right.2.png) right -116px no-repeat;cursor:pointer;vertical-align:middle;}
.compare .cont .is{display:none;position:absolute;left:-1px;top:25px;width:65px;border:1px solid #cde3f0;border-bottom:none;background-color:#eef5ff;line-height:25px;}
.compare .cont .is a{display:block;border-bottom:1px solid #cde3f0;text-indent:5px;}
.compare .cont .is a:visited{color:#08237c;}
.compare .cont .is a:hover{background-color:White;color:#005dbf;text-decoration:none;}
.compare .cont .txt{width:227px;height:18px;padding:1px 3px;margin:0;margin-left:10px;border:1px solid #c2c2c2;border-right:0px;line-height:18px;vertical-align:middle;color:#8C8C8C;}
#compareBtn{display:inline-block;width:58px;height:22px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -184px -72px;color:white;text-align:center;line-height:22px;vertical-align:middle;}
#compareBtn:visited{color:White;}
#compareBtn:hover,#compareBtn:active,#compareBtn:focus{background-position:-184px -94px;text-decoration:none;}
/*鍚屾椂琚叧娉�*/
.attention{}
.attention .title{float:left;width:86px;height:63px;padding-top:5px;/*border-right:1px solid #e0e8f5;*/text-indent:5px;font-weight:bold;color:#014ea5;}
.attention .cont{float:left;width:455px;padding-left:12px;padding-top:3px;border-left:1px solid #E0E8F5;line-height:23px;height:65px;overflow:hidden;zoom:1;}
.attention .cont li{float:left;width:33%;}
.attention .cont .add_compare{display:none;color:#26539b;}
.attention .cont .add_compare:visited{color:#26539b;}
.attention .cont .add_compare:hover{color:#f00;text-decoration:none;}
.attention .attention_types{float:left;width:86px;height:68px;text-indent:16px;}
.attention .attention_type{height:22px;line-height:22px;/*border-right:1px solid #e0e8f5;*/cursor:pointer;}
.attention .on{height:24px;line-height:24px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -528px -72px;border-right:none;font-weight:bold;overflow:hidden;cursor:default;}
/*娌繁鑲″競姒傚喌*/
.hs_ud{height:137px;padding-top:6px;}
.hs_ud div{height:14px;line-height:14px;padding:6px 0;overflow:hidden;}
.hs_ud .ud_name{float:left;}
.hs_ud .total{float:right;width:170px;background-color:#008000;color:White;text-align:center;}
.hs_ud .total a,.hs_ud .total a:visited{color:White; text-decoration:none;}
.hs_ud .total a:hover,.hs_ud .total a:active{color:White;text-decoration:none;}
.hs_ud .hs_up{float:left;background-color:#ff0103;width:33%;}
.hs_ud .hs_flat{float:left;background-color:#707070;width:33%;}
.hs_ud .legend{height:36px;padding:0;line-height:36px;text-align:center;}
.hs_ud .legend span{}
.hs_ud .legend span *{vertical-align:baseline;*vertical-align:middle;}
.hs_ud .legend em{display:inline-block;width:8px;height:8px;overflow:hidden;margin-right:5px;}
.hs_ud .legend .l_up{background-color:#ff0103;}
.hs_ud .legend .l_flat{background-color:#707070;}
.hs_ud .legend .l_down{background-color:#008000;}
/*浜旀。鐩樺彛*/
.trade_buy .tab{width:96px;}
.bar_bets{}
.bar_bets .bar_bets_in{float:left;width:49%;}
.bar_bets .bar_bets_out{float:left;width:49%;}
/*浜ゆ槗缁熻*/
.trade_info{}
.trade_info .tabs{}
.trade_info .tab{width:48px;}
.trade_info_cont{display:none;height:304px;}
.trade_info_cont tbody td{padding-right:5px;}
.trade_info .trade_info_link{padding-top:15px;text-align:center;line-height:20px;}
.trade_info .equal{color:#7f7f7f;}

.AD_R{height:130px;overflow:hidden;}
.AD_hqbottom{}

.block{}
.block_border{padding-bottom:15px;border-bottom:7px solid #f7f9fc;}
.block .block_t{height:37px;border-top:4px solid #08237a;background:url(http://i0.sinaimg.cn/cj/realstock/2012/images/back_r_h.2.png) 0 -96px repeat-x;}
.block .block_t h1{float:left;height:37px;text-indent:-999px;overflow:hidden;background-image:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png);}
.block .block_t h1 a{display:block;height:37px;text-indent:-999px;overflow:hidden;}
/*璧勮*/
.t_info h1{width:94px;background-position:-184px -264px;}
.block_c{padding-top:15px;}
.block_blog{float:left;width:184px;margin-right:20px;margin-bottom:-10px;}
.block_news{float:left;width:538px;margin-bottom:-10px;}
.block_news li{height:24px;overflow:hidden;}
.block_news li a{font-size:14px;}
.block_news .pdf{display:inline-block;height:21px;width:21px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -640px -160px;overflow:hidden;vertical-align:-6px;*vertical-align:-4px;}
.block_news .lcs_logo { display:inline-block;height:22px;width:42px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/lcs_logo.png);overflow:hidden;vertical-align:-6px;*vertical-align:-4px;}
.block_comment{float:right;width:215px;margin-bottom:-10px;}
.block_c_li ul{padding:10px 0;}
.block_c_li_time li{}
.block_c_li_time li span{float:right;color:#a0a0a0;}
.block_comment .comment_t{margin:12px 0 -8px;background:url(http://i1.sinaimg.cn/cj/realstock/2012/images/dotted.png) left center repeat-x;}
.block_comment .comment_t span{padding-right:10px;background-color:White;font-size:14px;color:#005cbf;}
/*浜掑姩*/
.t_interact h1{width:88px;background-position:-400px -264px;}
.block .survey_border_bottom{border-bottom:7px solid #dce5f5;}
.block_survey{float:left;width:184px;margin-right:20px;}
.block_survey .survey p{padding:10px 0 5px;}
.block_survey .survey li{line-height:26px;zoom:1;}
.block_survey .survey li *{vertical-align:baseline;}
.block_survey .survey .li_0{background-color:#f9fafc;}
.block_survey .survey li span{display:inline;float:right;margin-right:25px;}
.block_survey .survey_submit{padding-top:15px;text-align:center;}
.block_survey .result{text-align:center;padding:5px 0;}
/*寰崥*/
.block_weibo{float:left;width:538px;}
.block_weibo .weibo_c{position:relative;height:410px;margin-top:10px;padding-right:5px;overflow:auto;}
.weibo_c .weibo_s{padding:10px 0;background:url(http://i1.sinaimg.cn/cj/realstock/2012/images/dotted.png) bottom repeat-x;zoom:1;}
.weibo_c .weibo_head{float:left;width:30px;padding-top:5px;}
.weibo_c .weibo_cont{padding-left:45px;}
.weibo_c .weibo_cont p{min-height:40px;word-wrap:break-word;word-break:break-all;}
.weibo_c .weibo_cont .weibo_img img{padding:3px;border:1px solid #CCC;background-color:White;}
.weibo_c .weibo_s .arrcon{display:block;height:14px;position:relative;margin-bottom:-1px;clear:both;_margin-top:-20px;}
.weibo_c .weibo_s .arrcon .arr{border:7px dashed transparent;width:0;height:0;float:right;margin-right:20px;_margin-right:10px;}
.weibo_c .weibo_s .arrcon .arrin {display:block;border:7px dashed transparent;border-bottom:7px solid #F7F7F7;width:0;height:0;margin-right:-14px;margin-top:2px;margin-bottom:-2px;overflow:hidden;float:right;_margin-top:17px;}
.weibo_c .weibo_s .feedbackcon{border:1px solid #E5E6E7;clear:both;padding:6px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;background-color:#F7F7F7;}
.weibo_c .weibo_s .txtarea {background-color:White;border-top:1px solid #C4C7BD;border-left:1px solid #D3D6CB;border-bottom:1px solid #F2F2F2;border-right:1px solid #F2F2F2;padding:1px;position:relative;height:28px;}
.weibo_c .weibo_s textarea{height:28px;width:100%;overflow:hidden;overflow-y:auto;display:block;word-break:break-all;break-word:break-wrap;border:none;border:0;outline:none;resize:none;padding:0;}
.weibo_c .weibo_s .tips{padding-top:2px;top:1px;position:absolute;left:0px;width:100%;height:25px;text-align:center;background-color:White;}
.weibo_c .weibo_s .icon_ok,.weibo_c .weibo_s .icon_warning{background:url(http://timg.sjs.sinajs.cn/t35/style/images/thridpart/widget/icon_tips.png) no-repeat;display:inline-block;width:14px;height:14px;margin-right:4px;vertical-align:text-bottom;}
.weibo_c .weibo_s .icon_warning{background-position:-14px 0;}
.weibo_c .weibo_s .fdbckspe{margin-top:4px;height:23px;}
.weibo_c .weibo_s .feedbackcon .btn_s{float:right;width:44px;height:23px;line-height:23px;text-align:center;color:#333;background-image:url(http://timg.sjs.sinajs.cn/t35/style/images/thridpart/widget/skin_01/btn_fwd.gif);}
.weibo_c .weibo_s .txtrem {float:right;margin-top:-5px;margin-right:8px;font:12px Constantia,Georgia;}
.weibo_c .weibo_s .txtrem span{font-family:Constantia,Georgia;font-size:22px;font-weight:700;}
.weibo_c .weibo_s .fdbckspein{float:left;margin-top:4px;}
.weibo_c .weibo_s .fdbckspein input{float:left;width:14px;margin:3px 3px 0 0;_margin:0;*margin-top:-1px;vertical-align:middle;}
.weibo_c .weibo_s .fdbckspein label{white-space:nowrap;display:inline-block;}

#weiboMore{display:block;width:100px;margin:0 auto;text-align:center;}
.weibo_c .hasPic{display:inline-block;width:13px;height:12px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -608px -160px;vertical-align:middle;}
.weibo_c .weibo_info{overflow:hidden;}
.weibo_c .weibo_info .weibo_time{float:left;}
.weibo_c .weibo_info span{float:right;}
.weibo_c .weibo_info span i{color:#ddccdd;font-style:normal;}
.weibo_o{position:relative;height:25px;line-height:25px;padding:6px 0 0;background-color:#dce5f5;}
.weibo_o .weibo_new{float:left;display:inline;margin-left:22px;}
.weibo_o .weibo_o_r{float:right;width:175px;padding-right:16px;text-align:right;border-left:1px solid #fff;}
.weibo_o .weibo_write{display:none;position:absolute;left:0px;bottom:32px;width:500px;height:161px;padding:5px 25px;background:white url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -184px -416px;}
.weibo_o .weibo_new_txtrem{position:absolute;right:25px;top:10px;}
.weibo_o .weibo_new_txtrem span{font-family:Constantia,Georgia;font-size:22px;font-weight:700;}
.weibo_c .weibo_new_over span,.weibo_o .weibo_new_over span{color:#DA0000;}
#weiboNotLogin{text-align:center;}
#weiboNotLogin p{line-height:40px;}
#weiboLogined{display:none;}
.weibo_write p{line-height:35px;}
.weibo_write textarea{color:#9e9e9e;width:490px;height:60px;padding:1px 4px;margin:0;border:1px solid #dddddd;line-height:20px;resize:none;}
.weibo_write .weibo_new_submit{text-align:right;padding-top:10px;line-height:20px;}
#weiboNewSuccess{display:none;text-align:center;}
#weiboNewSuccess .weiboNewStatus{width:125px;height:20px;margin:10px auto;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -184px -160px;}

/*寰崥鎺ㄨ崘*/
.block_weibo_recommend{float:right;width:215px;}
.wr_c{background-color:#f9fafc;}
.wr_c .go_up{display:block;height:17px;background:url(http://i2.sinaimg.cn/cj/realstock/2012/images/icon_right.2.png) 67px -148px no-repeat; visibility:hidden;}
.wr_c .go_down{display:block;height:18px;background:url(http://i2.sinaimg.cn/cj/realstock/2012/images/icon_right.2.png) 67px -170px no-repeat;}
.wr_c .wb_review{position:absolute;right:50%;width:213px;border:1px solid #acc9e9;margin-right:-490px;}
.wr_c .wb_review .top_arr{position:relative;height:14px;margin-top:-6px;line-height:1px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -528px -104px;}
.wr_c .wb_review .cont{background-color:#fbfdff;padding:5px 9px;line-height:18px;color:#737373;}

.wrs{height:426px;overflow:hidden;}
.wrs .wr{height:70px;border-bottom:1px dashed #cfdef5;zoom:1;}
.wrs .wr .wr_head{float:left;width:56px;padding-top:3px;}
.wrs .wr .wr_head img{padding:2px;border:1px solid #ccccce;}
.wrs .wr .wr_details{padding-left:63px;_padding-top:3px;}
.wrs .wr .wr_details p{height:20px;overflow:hidden;}
a.add_follow{display:inline-block;width:42px;height:18px;padding-left:16px;color:White;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -456px -96px;line-height:18px;_line-height:20px;}
a.add_follow:visited{color:White;}
a.add_follow:hover,a.add_follow:active,a.add_follow:focus{text-decoration:none;color:silver;}
a.added_follow{display:inline-block;width:42px;height:18px;padding-left:16px;color:White;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -456px -72px;line-height:18px;_line-height:20px;color:#a0a0a0;cursor:default;}
a.added_follow:visited{color:#a0a0a0;cursor:default;}
a.added_follow:hover,a.added_follow:active,a.added_follow:focus{text-decoration:none;color:#a0a0a0;cursor:default;}
/*杩戞湡鐑棬璐�*/
.block_hotBBS{float:left;width:184px;margin-right:20px;}
.block_hotBBS p{height:38px;line-height:38px;}
/*鑲″惂鏈€鏂拌创*/
.block_newBBS{float:left;width:538px;margin-bottom:-15px;}
.block_newBBS .newBBS_title{height:31px;line-height:31px;background-color:#f9fafc;text-align:center;}
.block_newBBS .write,.block_newBBS .write:visited{float:right;width:99px;height:21px;margin-right:20px;margin-top:2px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -304px 0; line-height:21px;color:#26539b;text-decoration:none;text-align:center;}
.block_newBBS .write:hover,.block_newBBS .write:active{color:#0091dc;text-decoration:none;}
.block_newBBS .NBT_0{float:left;width:355px;}
.block_newBBS .NBT_1{float:left;width:50px;}
.block_newBBS .NBT_2{float:left;width:50px;}
.block_newBBS .NBT_3{float:left;width:80px;}
.block_newBBS li{zoom:1;height:24px;overflow:hidden;*margin-bottom:-4px;}
.block_newBBS ul{margin-top:15px;zoom:1;}
.block_newBBS .dotted_line{margin-top:15px;}
.block_newBBS li a{float:left;width:335px;font-size:14px;}
.block_newBBS li span{float:left;color:#a0a0a0;text-align:right;}
.block_newBBS .NBN_0{width:50px;}
.block_newBBS .NBN_1{width:45px;padding-right:5px;}
.block_newBBS .NBN_2{width:80px;}
/*涓撳鍋氱硸*/
.block_make_sweet{float:right;width:215px;}
.block_c_sweet{zoom:1;}
.sweet_cont{position:relative; height:410px;padding-right:5px;overflow:auto;margin:15px 0;}
.sweet_cont .sweet_ask{position:relative;margin-bottom:10px;border-bottom:1px solid #e3f1fd;zoom:1;}
.sweet_cont .sweet_ask p{padding:20px 0 5px 18px; }
.sweet_cont .sweet_ask .mark{position:absolute;left:0px;top:0px;width:38px;height:37px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -336px -160px;}
.sweet_cont .sweet_info{text-align:right;}
.sweet_cont .sweet_answer{position:relative;border-bottom:1px solid #e3f1fd;margin-top:-11px;margin-bottom:10px;background-color:White;zoom:1;}
.sweet_cont .sweet_answer p{padding:20px 0 5px 18px;}
.sweet_cont .sweet_answer .mark{position:absolute;left:0px;top:0px;width:38px;height:37px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -400px -160px;}
.make_sweet_ask{text-align:center;zoom:1;}
.make_sweet_ask a{padding:2px 0 2px 18px;background:url(http://i0.sinaimg.cn/cj/realstock/2012/images/icon_left.png) 0 -152px no-repeat;}

.sweet_cont strong{font-weight:normal;}
.intreview,.intanswers{position:relative;zoom:1;}
.interviewsline{height:0px;overflow:hidden;margin-bottom:10px;border-bottom:1px solid #e3f1fd;}
.intreviewpos{position:absolute;left:0px;top:0px;z-index:-1;width:43px;height:20px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -336px -216px;}
.intaskpos{position:absolute;left:0px;top:0px;z-index:-1;width:38px;height:37px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -336px -160px;}
.intanswerpos{position:absolute;left:0px;top:0px;z-index:-1;width:38px;height:37px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -400px -160px;}
.MIB_mbloglist{padding:20px 0 5px 18px; }
/*.intreview .MIB_mbloglist{padding-top:15px;}*/
/*琛屾儏鎽樿*/
.t_hq_summary h1{width:204px;background-position:-616px -264px;}

.block_hq_summary{float:left;width:227px;margin-right:24px;}
.block_hq_summary .title_brown{border-bottom:none;margin-bottom:8px;}
.hq_c{}
.hq_tab_cont{height:319px;border:1px solid #dce5f5;}
.hq_tab_cont .hq_tab{float:left;width:82px;}
.hq_tab_cont .hq_tab li{height:22px;line-height:22px;background:url(http://i0.sinaimg.cn/cj/realstock/2012/images/back_r_h.2.png) 0 -144px repeat-x;cursor:pointer;border:1px solid #dce5f5;border-style:none solid solid none;text-align:center;color:#08237a;zoom:1;}
.hq_tab_cont .hq_tab li.on{background:white;border-right:none;color:#066ee7;cursor:default;}
.hq_tab_cont .hq_cont{float:right;width:134px;padding:4px;}
.hq_tab_cont .hq_cont .cont{display:none;}
.hq_tab_cont .hq_cont .select{height:24px;_overflow:hidden;}
.hq_tab_cont .hq_cont thead th{background-color:#f3f3f3;padding-top:0;}
.hq_tab_cont .hq_cont .vselect{margin-bottom:1px;}
.hq_summary_suggest{position:relative;text-align:center;zoom:1; }
.hq_summary_suggest .vselect{vertical-align:middle;*display:inline;*margin-right:5px;}
.hq_summary_suggest .vselect,.hq_summary_suggest .vselect .voptions{width:100px;}
.hq_summary_suggest .txt{padding:1px 3px;width:217px;height:16px;line-height:16px;border:1px solid #dce5f5;color:#a0a0a0;text-align:left;vertical-align:middle;}
/*铏氭嫙涓嬫媺??閫氱敤*/
.vselect{display:inline-block;_display:inline;position:relative;width:132px;height:21px;line-height:21px;background-color:#f3f3f3;border:1px solid #dce5f5;text-align:left;zoom:1;}
.vselect span{display:block;padding:0 21px 0 10px;margin-right:2px;background:url(http://i2.sinaimg.cn/cj/realstock/2012/images/icon_right.2.png) right 2px no-repeat;color:#066ee7;cursor:pointer;}
.vselect .voptions{display:none;position:absolute;left:-1px;top:23px;width:132px;border:1px solid #dce5f5;background-color:White;}
.vselect .voptions a,.vselect .voptions a:visited{display:block;background-color:White;color:#08237a;padding-left:15px;line-height:25px;_zoom:1;}
.vselect .voptions a:hover,.vselect .voptions a:active,.vselect .voptions a:focus{color:#066ee7;background-color:#f3f3f3;text-decoration:none;}
.vselect .voptions .on,.vselect .voptions .on:visited{background-color:#e3e3e3;}
.vselect .voptions .on:hover,.vselect .voptions .on:active,.vselect .voptions .on:focus{background-color:#f3f3f3;}
/*鐜悆甯傚満琛屾儏*/
.t_globalhq h1{width:273px;background-position:-184px -312px;}
.ghq_cont{padding:10px 0;border:1px solid #dce5f5;height:182px;color:#08237a;}

.footer{margin-top:20px;text-align:center;line-height:24px;}
.footer .mianze{line-height:13px;color:#aaa;}

/*鏍戠姸瀵艰埅*/
.louver{background-color:#f9fafc;}
.louver .top_oper{height:31px;border-bottom:2px solid #08237a;width:100%;overflow:hidden;}
.louver .top_oper a{float:left;width:78px;margin-right:14px;text-indent:3px;background:url(http://i2.sinaimg.cn/cj/realstock/2012/images/icon_right.2.png) no-repeat; line-height:31px;font-size:14px;font-family:寰蒋闆呴粦,榛戜綋;}
.louver .top_oper a:hover,.louver .top_oper a:active,.louver .top_oper a:focus{text-decoration:none;}
#louverAllUnfold{background-position:right -17px;}
#louverAllFold{background-position:right -39px;}
.louver_sec{}
.louver_sec .sec_title{padding-top:10px;line-height:28px;text-align:center;font-size:16px;font-family:寰蒋闆呴粦,榛戜綋;color:#012593;}
.louver_sec .sec_cont{height:48px;line-height:24px;overflow:hidden;padding:0 8px;}
.louver_sec .row_num_1{height:24px;}
.louver_sec .row_num_3{height:72px;}
.louver_sec .row_num_4{height:96px;}
.louver_sec .row_num_5{height:120px;}
.louver_sec .sec_cont ul{margin:0 -8px;}
.louver_sec .sec_cont li{float:left;width:49%;text-indent:16px;}
.louver_sec .sec_cont li a{margin:0;}
.louver_sec .sec_cont a{ white-space:nowrap;margin:0 8px;}
.louver_sec .sec_btn{height:12px;margin-top:10px;border-bottom:1px solid #8da0ca;text-align:center;overflow:hidden;}
.louver_sec .sec_btn a{display:inline-block;width:109px;height:12px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -648px -72px;overflow:hidden;cursor:pointer;}
.louver_sec .on a{background-position:-648px -87px;}
/*鍏徃姒傚喌*/
.com_overview{padding:15px 5px 0px 0;line-height:24px; word-wrap:break-word;}
.com_overview b{font-weight:normal;color:#055dbf;margin-right:5px;white-space:nowrap;}
/*璐㈠姟鎽樿*/
#finance_overview{position:relative;width:185px;margin-right:-999px;}
.finance_overview{border-top:2px solid #08237A;background-color:#fff;overflow:hidden;}
.finance_overview .tabs{margin-right:-999px;height:28px;font-size:12px;font-weight:normal;font-family:瀹嬩綋;border-bottom:1px solid #DCE5F5}
.finance_overview .cont{margin-right:-999px;}
.finance_overview .on{color:#082478;}
.finance_overview table{width:auto;}
.finance_overview tbody th{width:119px;}
.finance_overview tbody td{width:60px;border-right:1px solid #DCE5F5;}
.finance_overview .tab{background-color:transparent;border:none;border-right:1px solid #DCE5F5;cursor:default;width:60px;padding-right:5px;text-align:right;color:#055dbf;}
.finance_overview .first{display:inline;margin-left:55px;border-right:none;}
.finance_overview .open{float:left;width:60px;height:21px;margin-top:3px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -616px 0px;}
.finance_overview .open:hover,.finance_overview .open:hover:active{background-position:-616px -21px;}
#finance_overview .close{display:none;position:absolute;top:-13px;right:-13px;width:27px;height:28px;cursor:pointer;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -688px 0px;}
.finance_overview_on .first{margin-left:120px;border-right:1px solid #DCE5F5;}
.finance_overview_on .open{display:none;}
.finance_overview_on .cont{border-bottom:1px solid #DCE5F5;}
.finance_overview_on{border-bottom:3px solid #e0e7eb;border-right:3px solid #e0e7eb;margin-bottom:-4px;}
.L_data_table thead th{padding-left:5px;text-align:left;}
.L_data_table thead td{padding-right:5px;text-align:right;}
.L_data_table tbody th{color:#08237a;padding-left:1px;}
.L_data_table tbody td{color:#055dbf;padding-right:5px;}
/*鍒嗙孩閫侀厤*/
.fhsp tbody th{width:60px;}
/*娴侀€氳偂涓�*/
#ltgd{position:relative;width:185px;margin-right:-999px;}
.ltgd{position:relative;border-bottom:1px solid #dce5f4;border-top:2px solid #08237A;background-color:#fff;overflow:hidden;}
.ltgd .tabs{font-size:12px;font-weight:normal;font-family:瀹嬩綋;border-bottom:1px solid #DCE5F5;height:28px;}
.ltgd .tab{display:none;width:61px;border-top:none;color:#055dbf;background-color:White;}
.ltgd .first{display:block;border-right:none;}
.ltgd .open{float:left;margin-left:59px;width:60px;height:21px;margin-top:3px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -616px 0px;}
.ltgd .open:hover,.finance_overview .open:hover:active{background-position:-616px -21px;}
.ltgd .cont{float:left;width:185px;border-right:1px solid #DCE5F5;margin-right:-1px;}
.ltgd .on{color:#082478;}
.ltgd .up{color:Red;}
.ltgd .down{color:Green;}
.ltgd .flat{color:#7f7f7f;}
.ltgd .img{position:absolute;left:186px;top:0px;text-align:center;}
.ltgd .img h3{font-size:16px;font-family:寰蒋闆呴粦,榛戜綋;color:#012793;margin-top:30px;}
#ltgd .close{display:none;position:absolute;top:-13px;right:-13px;width:27px;height:28px;cursor:pointer;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -688px 0px;}
.ltgd_on{border-bottom:3px solid #e0e7eb;border-right:3px solid #e0e7eb;margin-bottom:-3px;}
.ltgd_on .first{border-right:1px solid #CCE2F0;}
.ltgd_on .tabs{border-bottom:none;height:29px;}
.ltgd_on .tab{display:block; background-color:#F7FAFF;}
.ltgd_on .on{background-color:White;}
.ltgd_on .open{display:none;}
/*璧勯噾娴佸悜鍧�*/
.t_flow h1{width:204px;background-position:-184px -368px;}
.block_t .links{float:right;line-height:36px;padding-right:10px;}
.block_t .links a{margin-left:20px;}
.t_links{float:right;font-size:12px;}
.t_flow .links{float:right;font-size:12px;}
.t_flow i{float:left;width:38px;height:22px;margin:3px 0 0 2px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -334px -375px;}
.c_flow{margin:0 -15px;}
.block_flow_L{float:left;width:383px;border-right:1px solid #dce5f4;overflow:hidden;}
.block_flow_L .flow_L_map{height:225px;}
.flow_table{}
.block_flow_L table{width:373px;border:1px solid #dce5f4;}
.block_flow_R table{width:360px;border:1px solid #dce5f4;}
.flow_table table th,.flow_table table td{border:1px solid #dce5f4;}
.flow_table thead{background-color:#dce5f4;color:#052379;font-size:16px;line-height:30px;font-family:寰蒋闆呴粦,榛戜綋;text-align:center;}
.flow_table tbody{line-height:24px;}
.flow_table tbody th{text-align:center;color:#052379;}
.flow_table tbody td{text-align:right;padding-right:10px;color:#005cbf;}
.block_flow_R{float:right;width:360px;}
.flow_R_map{position:relative;height:205px;}
.flow_R_map .flow_R_map_balance{position:absolute;right:0px;top:99px;width:291px;height:3px;background-color:#000000;overflow:hidden;}
.flow_R_map .flow_R_map_bar_0,.flow_R_map .flow_R_map_bar_1,.flow_R_map .flow_R_map_bar_2,.flow_R_map .flow_R_map_bar_3{position:absolute;width:27px;height:0px;background:url(http://i1.sinaimg.cn/cj/realstock/2012/images/back_r_v.png) repeat-y;border:1px solid #000;}
.flow_R_map .flow_R_map_bar_0{right:225px;}
.flow_R_map .flow_R_map_bar_1{right:170px;}
.flow_R_map .flow_R_map_bar_2{right:105px;}
.flow_R_map .flow_R_map_bar_3{right:45px;}
.flow_R_map .up{bottom:105px;background-position:0 0;}
.flow_R_map .up span{position:absolute;top:-22px;left:-10px;width:50px;text-align:center;font-size:16px;line-height:16px;font-family:寰蒋闆呴粦;color:#000;}
.flow_R_map .down{top:101px;background-position:-32px 0;}
.flow_R_map .down span{position:absolute;bottom:-20px;left:-10px;width:50px;text-align:center;font-size:16px;line-height:16px;font-family:寰蒋闆呴粦;color:#000;}
.flow_R_map .flat{bottom:105px;background-position:0 0;}
.flow_R_map .flat span{position:absolute;top:-22px;left:-10px;width:50px;text-align:center;font-size:16px;line-height:16px;font-family:寰蒋闆呴粦;color:#000;}
/*鏈烘瀯鐐硅瘎*/
.block_jgdp{background-color:#f7f9fe;padding:10px 25px;border:1px solid #dce5f4;}
.jgdp_t{line-height:28px;border-bottom:2px solid #dce5f4;font-size:20px;}
.jgdp_t h2{_position:relative;float:left;font-size:20px;font-family:寰蒋闆呴粦,榛戜綋;color:#052379;border-bottom:2px solid #08237a;margin-bottom:-2px;}
.jgdp_t em{float:left;display:inline;_position:relative;width:7px;height:24px;margin-left:-19px;margin-top:2px;background:url(http://i0.sinaimg.cn/cj/realstock/2012/images/icon_left.png) left -184px;}
.jgdp_c{line-height:24px;padding-top:10px;border-top:1px solid #dce5f4;}
.jgdp_maps{margin:0 -25px;padding:10px 0 5px;}
.jgdp_map{float:left;width:257px;}
.jgdp_map img{margin-bottom:3px;}
.jgdp_map p{padding:0 25px;line-height:20px;}
.jgdp_map .jgdp_zhpc{text-align:left;}
.jgdp_map .jgdp_word{text-align:center;}

.block_com_research{background-color:transparent;}
.com_research{margin:0 -25px;padding-top:10px;}
.com_r{position:relative;float:left;width:386px;}
.com_r .corner{position:absolute;width:7px;height:7px;border:1px solid #dce5f4;overflow:hidden;zoom:1;line-height:1px;}
.com_r_0,.com_r_1{border-bottom:1px solid #dce5f4;zoom:1;}
.com_r_0{border-right:1px solid #dce5f4;}
.com_r_0 .corner{right:0px;bottom:-1px;border-top:none;border-left:none;}
.com_r_1 .corner{left:-1px;bottom:-1px;border-top:none;border-right:none;}
.com_r_2,.com_r_3{height:208px;}
.com_r_2{border-right:1px solid #dce5f4;overflow:hidden;}
.com_r_3{overflow:hidden;}
.com_r_2 .corner{right:0px;top:0px;border-bottom:none;border-left:none;}
.com_r_3 .corner{left:-1px;top:0px;border-bottom:none;border-right:none;}
.com_r .title{padding-top:8px;margin:0 10px;height:26px;line-height:26px;background:url(http://i1.sinaimg.cn/cj/realstock/2012/images/dotted.png) left bottom repeat-x;zoom:1;}
.com_r .title h3{float:left;font-size:14px;color:#0c217a;}
.com_r .vselect{float:right;width:145px;/*margin-right:10px;*/background-color:transparent;}
.com_r .vselect .voptions{width:145px;}
.com_r .cont{width:360px;padding:0 13px;height:240px;overflow:hidden;}
.com_r .cont object{margin-left:-15px;}
.com_r .cont p{color:#0C217A;padding:5px 0;}
.com_r .com_r_rank{}
.com_r .rank_summary{padding:4px 10px 0px 10px;}
.com_r .com_r_rank .tabs{padding-right:10px;border-bottom:1px solid #dce5f4;font-size:12px;font-family:瀹嬩綋; height:29px;overflow:visible;}
.com_r .com_r_rank .tab{border-bottom:none;padding:0 10px;}
.com_r .com_r_rank .on{position:relative;border-top:1px solid #dce5f4;height:29px;margin-bottom:-1px;}
.pj_bar{position:relative;width:288px;margin:0 auto;margin-top:20px;}
.pj_pointer{position:absolute;top:-10px;width:15px;height:27px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/pj_pointer.png) 0px 0px;_background:none;FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.sinaimg.cn/cj/realstock/2012/images/pj_pointer.png');}
.com_r_3 p{text-align:center;}
.fk_dc{position:fixed;right:50%;top:260px;_position:absolute;_top:expression((_top=document.documentElement.scrollTop) + 260 + 'px');margin-right:-500px;width:25px;height:182px;background:url(http://i2.sinaimg.cn/cj/realstock/2012/images/yjfk.png);}
.fk_dc .fk{display:block;height:90px;}
.fk_dc .fk:hover,.fk_dc .fk:active,.fk_dc .fk:focus{background:url(http://i2.sinaimg.cn/cj/realstock/2012/images/yjfk.png) -25px 0px;}
.fk_dc .dc{display:block;height:90px;margin-top:2px;}
.fk_dc .dc:hover,.fk_dc .dc:active,.fk_dc .dc:focus{background:url(http://i2.sinaimg.cn/cj/realstock/2012/images/yjfk.png) -25px -92px;}
.main_wrap{margin-top:20px;}
.L{float:left;width:185px;border-right:1px solid #d9e2e7; }
.L_0{margin-top:33px;}
.L .more{margin-right:7px;}
.L .title_first{_position:relative; margin-top:-26px;}
.R{float:right;width:775px;}
.block_hq{}
.block_hq .hq_L{float:left;width:100%;padding-bottom:10px;border-bottom:8px solid #f0f3fa;}
.block_hq .hq_R{float:right;width:195px;}
.hq_details{height:95px;}
.hq_details .price_time{width:155px;padding-right:18px;}
.has_limit .price{height:55px;}
.has_limit .change{margin-top:0px;}
.has_limit #arrow{margin-top:3px;}
.has_limit #price{line-height:31px;}
.ud_limit{display:none;}
.has_limit .ud_limit{display:block;clear:both;height:23px;border-top:1px solid #E1E8F5;line-height:23px;color:#08237a;}
.has_limit .ud_limit div{float:left;width:49.9%;}

.hq_details .other{width:375px;line-height:21px;}
.block_hq .hq_R .data_table table{line-height:24px;}
.trade_info .trade_info_cont tbody{line-height:25px;}
/*.attention .cont{display:none;}*/

.AD_R{height:130px;}
.AD_hqbottom{float:right;width:775px;height:90px;overflow:hidden;}

.hydb_title h2{float:left;}
.hydb_title .vselect{float:right;width:100px;margin-right:1px;background-color:transparent;}
.hydb_title .vselect .voptions{width:100%;}
.hydb_column tbody td{padding-right:7px;}
.attention .on{background-image:none;}

#h5Container .flash{overflow:visible;}
        .rup_up,.gup_down{color:red;}
.rup_down,.gup_up{color:Green;}
.rup_arrow_up,.rup_arrow_down,.gup_arrow_up,.gup_arrow_down{padding-left:9px;}
.rup_arrow_up{background:url(http://i1.sinaimg.cn/cj/basejs/gloabal_index_scroller/rup_arrow_up.png) left center no-repeat;}
.rup_arrow_down{background:url(http://i0.sinaimg.cn/cj/basejs/gloabal_index_scroller/rup_arrow_down.png) left center no-repeat;}
.gup_arrow_up{background:url(http://i2.sinaimg.cn/cj/basejs/gloabal_index_scroller/gup_arrow_up.png) left center no-repeat;}
.gup_arrow_down{background:url(http://i1.sinaimg.cn/cj/basejs/gloabal_index_scroller/gup_arrow_down.png) left center no-repeat;}
.global_index_scroller{height:30px;line-height:30px;overflow:hidden;}
.global_index_scroller .global_index_scroller_body{float:left;width:100%;margin-right:-110px;height:30px;overflow:hidden;}
.global_index_scroller .global_index_scroller_body ul{width:100%;overflow:hidden;}
.global_index_scroller .global_index_scroller_body ul li{float:left;margin-right:15px;}
.global_index_scroller .global_index_scroller_body ul li i{font-style:normal;color:#4b4b4b;font-size:12px;}
.global_index_scroller a{color:#4b4b4b}
.global_index_scroller a:visited{color:#4b4b4b}
.global_index_scroller a:hover,.global_index_scroller a:active,.global_index_scroller a:focus{color:#f00;}
.global_index_scroller .no_link{text-decoration:none;cursor:default;}
.global_index_scroller .no_link:hover{color:#4b4b4b}

.global_index_scroller .scroller_oper{float:left;width:100px;padding-right:7px;_padding-top:8px;text-align:right;}
.global_index_scroller .scroller_oper *{vertical-align:middle;margin:0 3px;}
.global_index_scroller .scroller_oper .scroller_down,.global_index_scroller .scroller_oper .scroller_up{display:inline-block;width:13px;height:13px;background:url(http://i2.sinaimg.cn/cj/basejs/gloabal_index_scroller/oper_ud.png);_blr:expression(this.onFocus=this.blur());}
.global_index_scroller .scroller_oper .scroller_down{background-position:left center;}
.global_index_scroller .scroller_oper .scroller_up{background-position:right center;}

        .login_btn_s{display:inline-block;width:111px;height:37px;background:url(http://i1.sinaimg.cn/cj/basejs/loginLayer/login_back.png) 0 -88px;line-height:200px;overflow:hidden;}
.login_btn_s:hover{display:inline-block;background-position:0 -125px;}
.login_btn_m{display:inline-block;width:151px;height:37px;background:url(http://i1.sinaimg.cn/cj/basejs/loginLayer/login_back.png) -120px -88px;line-height:200px;overflow:hidden;}
.login_btn_m:hover{display:inline-block;background-position:-120px -125px;}
.loginBG{display:none;position:fixed;_position:absolute; z-index:90001;left:0px;top:0px;_top:expression((_top=document.documentElement.scrollTop) + 'px');width:100%;height:100%;_height:expression(document.documentElement.offsetHeight + 'px');background-color:#08237a;opacity:0.2;filter:alpha(opacity=20);}
.loginLayer{display:none;position:fixed;_position:absolute;z-index:90010;left:50%;top:150px;_top:expression((_top=document.documentElement.scrollTop) + 150 + 'px');width:493px;height:418px;margin-left:-248px;background-color:#eff5ff;border:1px solid #cce2f0;color:#08237a;}
.loginLayer .login_close{position:absolute;right:10px;top:8px;width:16px;height:16px;background:url(http://i1.sinaimg.cn/cj/basejs/loginLayer/login_back.png) -160px -168px;}
.loginLayer .login_title{height:82px;background:url(http://i1.sinaimg.cn/cj/basejs/loginLayer/login_back.png) 0 0;}
.loginLayer .login_cont{padding-top:25px;}
.loginLayer th{text-align:right;}
.loginLayer .txt{width:238px;height:21px;line-height:21px;padding:1px 3px;border:1px solid #c5cad0;color:#333;}
.loginLayer .login_loginBtn_bg{width:151px;height:12px;background:url(http://i1.sinaimg.cn/cj/basejs/loginLayer/login_back.png) 0 -167px;overflow:hidden;}
.loginLayer .login_link0{padding-bottom:10px;border-bottom:1px solid #d2e1f6;}
.loginLayer .login_link0 a{color:#0961c0;margin-right:30px;}
.loginLayer .login_link0 a:visited{color:#0961c0;}
.loginLayer .login_link0 a:hover{color:#f00;}
.loginLayer .login_link1 p{line-height:40px;color:#035dbe;}
.reg_btn{display:inline-block;width:151px;height:37px;background:url(http://i1.sinaimg.cn/cj/basejs/loginLayer/login_back.png) -280px -88px;line-height:200px;overflow:hidden;}
.reg_btn:hover{background-position:-280px -125px;}
#loginRemember{vertical-align:-2px;_vertical-align:-1px;}
#loginError{float:right;width:135px;margin-top:21px;color:Red;text-align:left;}

        .global_index_scroller .scroller_oper{float:left;}
        .global_index_scroller .global_index_scroller_body{float:right;margin-right:-120px;}
        .global_index_scroller .scroller_oper *{float:left;margin:0px;_margin-top:-7px;}
        .global_index_scroller .scroller_oper .scroller_down, .global_index_scroller .scroller_oper .scroller_up{float:right;margin:0px 3px;margin-top:8px;_margin-top:0px;}

        /*HTML5鐗堟牱寮�*/
        #h5Container{display:none;}
        #h5Container img{margin-top:18px;}
        #h5Container .wrapflash{width:99.7%;height:500px;border:1px solid #dde4f4;}
        #h5Container .flash{overflow:visible;height:100%;}
        /*闅愯棌鍙充笂瑙掗厤缃�*/
        .kke_cfg_share {display:none;}

        .flash{overflow: visible;}
        .fs_full{height:100%!important;}
        .h5_tabs{border:1px solid #dde4f4;padding-top:1px;}
        .h5_tabs .tabs{height:25px;padding:2px 7px 0;background:#eef5ff url(http://i2.sinaimg.cn/cj/realstock/2012/images/icon_right.2.png) right -384px no-repeat;overflow:visible;}
        .h5_tabs .tabs .tab{width: 50px;height:23px;line-height:23px;border:none;border-top:2px solid #eef5ff;font-family:瀹嬩綋;font-size:12px;}
        .h5_tabs .tabs .on{position:relative;z-index:1;width:50px;height:24px;_height:25px;_margin-bottom:-1px;border-left:1px solid #dde4f4;border-right:1px solid #dde4f4;border-top-color:#062784;background-color:White;}
        #h5Container .cont{ position: relative;float: left;margin-left: 12px;}
        #compareBtnH5{display:inline-block;width:58px;height:22px;background:url(http://www.sinaimg.cn/cj/realstock/2012/images/back.8.png) -184px -72px;color:white;text-align:center;line-height:22px;vertical-align:middle;}
        #compareBtnH5:visited{color:White;}
        .h5-compare-list{ height:25px; background:#FFFFFF; line-height:24px; text-align:center;margin-left:55px;}
        .h5-compare-list .item-span-del{
            background-size:100%;
            width:14px;height:14px;
            background:url(http://www.sinaimg.cn/cj/yw/img/bg_compare.png) #fff no-repeat 0px -22px; float:left; cursor:pointer; margin:4px 5px 2px 0;border:1px solid #c4cbcf;}
        .h5-compare-list .item-span-name1{ float:left;margin-right:30px;margin-bottom:3px;font-size:14px;line-height:24px;text-align:center;color:#f69931;cursor:pointer}
        .h5-compare-list .item-span-name2{ float:left;margin-right:30px;margin-bottom:3px;font-size:14px;line-height:24px;text-align:center;color:#f2c700;cursor:pointer}
        .h5-compare-list .item-span-name3{ float:left;margin-right:30px;margin-bottom:3px;font-size:14px;line-height:24px;text-align:center;color:#3e4de1;cursor:pointer}
        .h5-compare-list .item-span-name4{ float:left;margin-right:30px;margin-bottom:3px;font-size:14px;line-height:24px;text-align:center;color:#bf58ef;cursor:pointer}
        #h5Container .vselect{float:left;margin-bottom:-20px;margin-top:-5px;}
        /*#h5Container .compare{height:0px;overflow:hidden;}*/
        .lv2_notice{margin-top:10px;text-align:center}
        .lv2_notice_link, .lv2_notice a, .lv2_notice a:visited, .lv2_notice_link:visited{height: 22px;color: #fff;font-size: 12px;line-height: 24px;text-align: center;padding: 0 5px;display: inline-block;background: #fc5b3c;webkit-border-radius: 3px;border-radius: 3px;cursor: pointer;text-decoration: none;}
        .lv2_notice_link:hover, .lv2_notice a:hover{background:#ea5a3d; color:#fff !important;text-decoration:none !important;}
        /** h5_lv1 鍙犲姞瀵规瘮 start */
        .h5_lv1_added_con{position:absolute;right:0;top:39px;z-index:301;}
        .h5_lv1_added_img {display: block; cursor: pointer; float: left; width: 16px; background: #274fa6; color: #fff; line-height: 1.5; text-align: center; padding-left: 2px; position: relative; left: 19px;}
        .h5_lv1_added_img:hover{opacity:0.8;filter:Alpha(Opacity=80);color:#fff;}
.kke_cfg_ctn {
	display: none;
}

js

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

gavin_gxh

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值