(function(){function t(n){if(n=="-"||n=="")return"-";var t=parseInt(n);return t>=1e10?parseInt(t/1e8)+"亿":t>1e9?(t/1e8).toString().match(/^\d+(?:\.\d{0,1})?/)+"亿":t>1e8?(t/1e8).toString().match(/^\d+(?:\.\d{0,2})?/)+"亿":t>=1e6?parseInt(t/1e4)+"万":t>1e5?(t/1e4).toString().match(/^\d+(?:\.\d{0,1})?/)+"万":t>1e4?(t/1e4).toString().match(/^\d+(?:\.\d{0,2})?/)+"万":t}function f(n){var t=n;t!=null&&t!=undefined&&t!=""&&jQuery.ajax({type:"GET",url:"http://nufm.dfcfw.com/EM_Finance2014NumericApplication/JS.aspx?type=CT&cmd=E."+t+"&sty=WCBKRL&st=c&sr=-1&p=1&ps=4&js=var%20results%3d{rank:[(x)],pages:(pc)}&token=44c9d251add88e27b65ed86506f6e5da",dataType:"script",data:{},success:function(){var i,r,u,t,n,e,f;if(jQuery(".chart-footer-con").hasClass("chart-concept"))return!1;for(i='<div class="chart-footer-title">相关板块<\/div><div class="chart-footer-con chart-concept"><ul>',r=4,r>results.rank.length&&(r=results.rank.length),u=0;u<r;u++){if(t=results.rank[u],t==null||t==""||t==undefined||t.status==!1)return!1;n=[];n=t.split(",");n!=null&&n!=undefined&&n.length>1&&(e=n[0].substring(3),f="color:#3f3f3f",parseFloat(n[4])<0&&(f="color:#090"),parseFloat(n[4])>0&&(f="color:#f00"),i+='<li><a href="http://quote.eastmoney.com/center/list.html#'+n[5].substring(0,n[5].length-1)+'_0_2" target="_blank">'+n[2]+'<\/a>(<span class="fs12" style="'+f+'">'+n[4]+"<\/span>)<\/li>")}i+="<\/ul><\/div>";jQuery(".chart-footer-con").after(i)},error:function(){return!1}})}function e(n,i){var u=i;u!=null&&u!=undefined&&u!=""&&jQuery.ajax({type:"GET",url:"http://nufm.dfcfw.com/EM_Finance2014NumericApplication/JS.aspx?type=CT&cmd="+u+"&sty=PEAVTA&st=z&sr=&p=&ps=&cb=&js=emsyl=([(x)])&token=3a965a43f705cf1d9ad7e1a3e429d622",dataType:"script",data:{},success:function(){var i=emsyl[0].split(","),u=i[7]=="-"?"-":t(i[7]),f="<p>市盈率："+i[5]+"<span><\/span><\/p><p>总市值："+u+"<span><\/span><\/p>";jQuery("#chart"+n+r).append(f);r++},error:function(){return!1}})}var i,n,u,r;if(typeof $!="function"){function $(n){return typeof n=="string"?document.getElementById(n):n}}if(typeof $C!="function"){function $C(n){return document.createElement(n)}}typeof Class=="undefined"&&(Class={});Class.AsPrototype={};Class.create=function(){return function(n){n!=Class.AsPrototype&&this.initialize.apply(this,arguments)}};i=Class.create();n=1;i.prototype={ioCache:{},getElementsByClassName:function(n,t){for(var r=[],u=$(n).getElementsByTagName("*"),i=0;i<u.length;i++)u[i].className==t&&(r[r.length]=u[i]);return r},initialize:function(i){var u,g,l,c,nt,o,p,k,w,r,rt,d;if(i!=""||i!="undefined"){this.SourceUrl="http://hqdigi2.eastmoney.com/EM_Quote2010NumericApplication/CompatiblePage.aspx?Type=F1&jsName={#Variable#}&stk={#STOCK#}";for(var s=this.getElementsByClassName("ContentBody",i),v=[],y=[],ft=0,r=0,et=$("ContentBody"),h=et.nextSibling;h.nodeType!=1;)h=h.nextSibling;if(u=this,g=function(i){var ct=i.stockCode,p=i.tipElement,it=i.data,w,rt,o,b,c,l,et,ot,k,y,d,g,nt,yt,tt,a,st,ht,pt;if(it){var s=p.parentNode,r=it.skif.split(","),v=r[2].replace(/ /ig,""),at=ct.substring(0,6),vt=ct.substring(6,7);if(s.className="b-chart clearp",jQuery(p).children().attr("style",""),w=u.getMarket(vt,at).Type,rt=p.childNodes[0].src,rt.indexOf("http://hqpicr.eastmoney.com/r")>=0)jQuery(p).css("width","100%");else{o="";r[4]>0?o="#FF0000":r[4]<0&&(o="#009900");var lt=r[17]=="-"?"-":t(r[17])+"手",ut=0;w!="zs"&&(ut=r[19]=="-"?"-":t(r[19]),b=$C("div"),b.className="chart-left2",b.id="chartleft2"+r[1]+n,c='<div style="border-left: 2px solid #395491;line-height:14px;font-size:12px;padding:13px 0;"><a style="color:#363636;" href="http://quote.eastmoney.com/concept/'+u.getMarket(r[0],r[1]).Code+'.html?from=classic&eventcode=Web_quote_entrance1#" tracker-eventcode="gppd_zxzwy_hqtgmk_djkxt" tracker-extinfo="source:newschannel;">K<br>线图<\/a><\/div>',c+='<div style="border: 1px solid #aaa;border-bottom:0;background:#f2f2f2;line-height:14px;font-size:12px;padding:13px 0;"><a style="color:#363636;" href="http://data.eastmoney.com/stockdata/'+r[1]+'.html" tracker-eventcode="gppd_zxzwy_hqtgmk_djtssj" tracker-extinfo="source:newschannel;">特色数据<\/a><\/div>',c+='<div style="border: 1px solid #aaa;border-bottom:0;background:#f2f2f2;line-height:14px;font-size:12px;padding:13px 0;"><a style="color:#363636;" href="http://data.eastmoney.com/zjlx/'+r[1]+'.html" tracker-eventcode="gppd_zxzwy_hqtgmk_djzjlx" tracker-extinfo="source:newschannel;">资金流向<\/a><\/div>',c+='<div style="border: 1px solid #aaa;border-bottom:0;background:#f2f2f2;line-height:14px;font-size:12px;padding:20px 0;"><a style="color:#363636;" href="http://data.eastmoney.com/notices/stock/'+r[1]+'.html" tracker-eventcode="gppd_zxzwy_hqtgmk_djgg" tracker-extinfo="source:newschannel;">公告<\/a><\/div>',c+='<div style="border: 1px solid #aaa;border-bottom:0;background:#f2f2f2;line-height:14px;font-size:12px;padding:13px 0;"><a style="color:#363636;" href="http://data.eastmoney.com/stockcalendar/'+r[1]+'.html" tracker-eventcode="gppd_zxzwy_hqtgmk_djggrl" tracker-extinfo="source:newschannel;">个股日历<\/a><\/div>',c+='<div style="border: 1px solid #aaa;background:#f2f2f2;line-height:14px;font-size:12px;padding:13px 0 12px 0;clear: right;"><a style="color:#363636;" href="http://emweb.securities.eastmoney.com/f10_v2/CoreConception.aspx?type=web&code='+u.getMarket(r[0],r[1]).Code+'" tracker-eventcode="gppd_zxzwy_hqtgmk_djhxtc" tracker-extinfo="source:newschannel;">核心题材<\/a><\/div>',b.innerHTML=c,s.insertBefore(b,p),jQuery(".chart-left2").attr("style","float:left;width:32px;"));l=$C("div");l.className="chart-right";l.id="chart"+r[1]+n;n++;et='<span style="color:'+o+'">'+r[5]+"<\/span>";ot=r[12]=="-"?"-":r[12]+"%";w!="zs"?(l.innerHTML='<div style="text-align: right;padding: 15px 15px 5px 0;"><a href="http://quote.eastmoney.com/concept/'+u.getMarket(r[0],r[1]).Code+'.html?from=classic&eventcode=Web_quote_entrance1#fschart-r" tracker-eventcode="gppd_zxzwy_hqtgmk_qhqp" tracker-extinfo="source:newschannel;"><img src="http://g1.dfcfw.com/g3/201808/20180822112154.png" /><\/a><\/div><p>最新价：<span style="color:'+o+'">'+r[3]+'<\/span><\/p><p>涨跌额：<span style="color:'+o+'">'+r[4]+"<\/span><\/p><p>涨跌幅："+et+"<\/p><p>成交量："+lt+"<\/p><p>成交额："+ut+"<\/p><p>换手率："+ot+"<\/p>",s.appendChild(l),jQuery(".chart-right").attr("style","width:103px;margin-top:0px;")):(l.innerHTML='<p>最新价：<span style="color:'+o+'">'+r[3]+'<\/span><\/p><p>涨跌额：<span style="color:'+o+'">'+r[4]+"<\/span><\/p><p>涨跌幅："+et+"<\/p><p>成交量："+lt+"<\/p><p>成交额："+ut+"<\/p><p>换手率："+ot+"<\/p>",s.appendChild(l),jQuery(".chart-right").attr("style","width:103px;margin-top:20px;"),jQuery(".chart-left").attr("style","padding-left:20px;"))}if(k=$C("div"),k.className="chart-nav clear",w!="zs"?(k.innerHTML='<a class="ipl_t1" href="http://quote.eastmoney.com/'+u.getMarket(r[0],r[1]).Code+'.html" target="_blank" tracker-eventcode="Web_zwhqlj_cxgghq" tracker-extinfo="articleID:'+_NewsId+';">查询该股行情<\/a>&nbsp;&nbsp;<a class="ipl_t4" href="http://data.eastmoney.com/zjlx/'+r[1]+'.html" target="_blank" tracker-eventcode="Web_zwhqlj_sszjlx" tracker-extinfo="articleID:'+_NewsId+';">实时资金流向<\/a>&nbsp;&nbsp;<a class="ipl_t3" href="http://f9.eastmoney.com/'+u.getMarket(r[0],r[1]).Code+'.html" target="_blank" tracker-eventcode="Web_zwhqlj_sdsjjm" tracker-extinfo="articleID:'+_NewsId+';">深度数据揭秘<\/a>&nbsp;&nbsp;<a class="ipl_t2" href="http://guba.eastmoney.com/list,'+r[1]+'.html" target="_blank" tracker-eventcode="Web_zwhqlj_jrgb" tracker-extinfo="articleID:'+_NewsId+';">进入'+v+'吧<\/a>&nbsp;&nbsp;<a class="ipl_t5" href="http://js1.eastmoney.com/tg.aspx?ID=448" target="_blank" tracker-eventcode="Web_zwhqlj_zjl" tracker-extinfo="articleID:'+_NewsId+';">'+v+"资金流<\/a>",u.ioOverall("http://gubagonggao.eastmoney.com/report/"+r[1]+".js","","dataReportvalue_"+r[1],function(n){var e,o,f,i,t,s;if(n&&n!=null&&!1){for(e=$C("div"),o=$C("div"),o.className="con-discuss",o.innerHTML='<span class="icon-elem icon-discuss"><\/span><a target="_blank" href="http://guba.eastmoney.com/list,'+r[1]+'.html">点击进入['+v+"]参与讨论<\/a>",e.className="con-report",f='<a href="http://data.eastmoney.com/report/'+r[1]+'.html" target="_blank"><div class="rep-left"><div class="title"><span class="icon-elem icon-report"><\/span><p>'+v+"研究报告<\/p><\/div><\/div><\/a>",f+='<div class="rep-right"><ul>',i=0;i<n.length;i++)f+='<li><span class="icon-elem icon-point"><\/span><a href="'+n[i].jgurl+'" target="_blank" class="rep-con-l">['+n[i].jg+']<\/a><a href="'+n[i].url+'" target="_blank" class="rep-con-r">'+n[i].title+"<\/a><\/li>";for(f+='<\/ul><\/div><div class="clear"><\/div>',f+='<div class="rep-view"><ul><li class="first">查看该股数据<\/li><li><a href="http://data.eastmoney.com/stock/lhb/'+r[1]+'.html" target="_blank">龙虎榜单<\/a><\/li><li><a href="http://data.eastmoney.com/zjlx/'+r[1]+'.html" target="_blank">资金流向<\/a><\/li><li><a href="http://f9.eastmoney.com/'+u.getMarket(r[0],r[1]).Code+'.html" target="_blank">深度数据<\/a><\/li><li><a href="http://data.eastmoney.com/dzjy/detail/'+r[1]+'.html" target="_blank">大宗交易<\/a><\/li><li><a href="http://data.eastmoney.com/rzrq/detail/'+r[1]+'.html" target="_blank">融资融券<\/a><\/li><li><a href="http://data.eastmoney.com/bbsj/'+r[1]+'.html" target="_blank">最新业绩<\/a><\/li><li><a href="http://data.eastmoney.com/zlsj/detail/'+r[1]+'.html" target="_blank">机构持仓<\/a><\/li><li><a href="http://data.eastmoney.com/notice/NoticeStock.aspx?stockcode='+r[1]+'&type=7&pn=1" target="_blank">重大事项<\/a><\/li><\/ul><\/div>',e.innerHTML+=f,t=h,s=!1;;)if(t=t.nextSibling,t.className&&t.className.indexOf("tgLinkEnd")>=0){s=!0;break}s?(h.parentNode.insertBefore(o,t),h.parentNode.insertBefore(e,t)):(h.parentNode.insertBefore(ggTitle,t),h.parentNode.appendChild(e))}}),ft++):k.innerHTML='<a class="ipl_t1" href="http://quote.eastmoney.com/'+u.getMarket(r[0],r[1]).Code+'.html" target="_blank">'+v+'行情<\/a>&nbsp;&nbsp;<a class="ipl_t6" href="http://quote.eastmoney.com/center/paihang.html#paihang_0_0" target="_blank">领涨个股<\/a>&nbsp;&nbsp;<a class="ipl_t4" href="http://data.eastmoney.com/zjlx/" target="_blank">大盘资金流向<\/a>&nbsp;&nbsp;<a class="ipl_t3" href="http://kuaixun.eastmoney.com/" target="_blank">7*24小时快讯<\/a>&nbsp;&nbsp;<a class="ipl_t2" href="http://guba.eastmoney.com/guba_url.aspx?code='+(r[0]=="1"?"sh":"sz")+r[1]+'" target="_blank">进入'+v+"吧<\/a>",s.appendChild(k),y=$C("div"),y.className="chart-footer",w!="zs"){if(d=it.idsif,d.length>1){for(g='<div class="chart-footer-title">相关股票<\/div><div class="chart-footer-con"><ul>',nt=4,nt>d.length&&(nt=d.length),yt=3,tt=0;tt<nt;tt++)a=d[tt].split(","),o="",st=parseFloat(a[4].replace("%","")),st>0?o="#FF0000":st<0&&(o="#009900"),g+='<li><a href="http://quote.eastmoney.com/'+u.getMarket(a[0],a[1]).Code+'.html" target="_blank">'+a[2].replace(/ /ig,"")+'<\/a>(<font color="'+o+'">'+a[3]+" "+a[4]+"<\/font>)<\/li>";g+="<\/ul><\/div><\/div>";y.innerHTML=g;s.appendChild(y)}ht=r[1]+r[0];pt=r[1];f(ht);rt.indexOf("http://hqpicr.eastmoney.com/r")<0&&e(r[1],ht)}else jQuery.ajax({type:"GET",url:"http://nufm.dfcfw.com/EM_Finance2014NumericApplication/JS.aspx?type=CT&cmd=C._BKHY&sty=ICCS&st=c&sr=-1&p=&ps=2&cb=&js=emlzhy=([(x)])&token=d3cdbd23b2f6c53c52e184e90a66531d",dataType:"script",data:{},success:function(){var u,n,r,t,h,i,f,o,e;if(emlzhy!=null){for(u=2,u>emlzhy.length&&(u=emlzhy.length),n='<div class="chart-footer-title">领涨行业<\/div><div class="chart-footer-lzhy">',r=0;r<u;r++)t=emlzhy[r].split(","),h=t[1].substring(3),n+="<ul>",n+="<li>"+(r+1)+'、<a href="http://quote.eastmoney.com/center/list.html#28002'+h+'_0_2" target="_blank">'+t[2]+"<\/a><\/li>",i="",f=parseFloat(t[3].replace("%","")),f>0?i="#FF0000":f<0&&(i="#009900"),n+='<li>涨幅：<span style="color:'+i+';">'+f+"%<\/span><\/li>",o=t[5].split("|"),n+='<li class="lzhy-sz">上涨：<span style="color:#FF0000;">'+o[0]+"<\/span>家<\/li>",n+='<li class="lzhy-xd">下跌：<span style="color:#009900;">'+o[2]+"<\/span>家<\/li>",n+='<li class="lzhy-lzg">领涨股：<a href="http://quote.eastmoney.com/'+t[6]+'.html" target="_blank">'+t[8]+"<\/a><\/li>",e=parseFloat(t[9].replace("%","")),e>0?i="#FF0000":e<0&&(i="#009900"),n+='<li>涨幅：<span style="color:'+i+';">'+e+"%<\/span><\/li>",n+="<\/ul>";n+="<\/div>";y.innerHTML=n;s.appendChild(y)}}})}},s!=undefined&&s!=null&&s!="")for(r=0;r<s.length;r++)if((l=s[r],!(l.className.indexOf("DisableOther")>=0))&&(c=l.getElementsByTagName("img"),c.length>0)){if(nt=s[r].getAttribute("data-code"),nt!=null)o=nt.split("|"),v[r]="http://quote.eastmoney.com/web/r/"+o[0]+o[2],l.href=v[r],p=c[0].getAttribute("data-code").toLowerCase().substring(0,1),y[r]="https://pifm.eastmoney.com/EM_Finance2014PictureInterface/Index.aspx?id="+o[0]+o[2]+"&imageType="+p+"news&token=65e339ba36773878639f360ec823415f",c[0].src=y[r],(o[2]=="1"||o[2]=="2")&&this.ioScript(o[0]+o[2],!1,s[r],g);else{var tt=c[0],a=tt.src.replace(/(.*\/){0,}([^\.]+).*/ig,"$2"),it=a.substring(0,a.length-1),b=a.substring(a.length-1,a.length);b=="1"||b=="2"?(v[r]="http://quote.eastmoney.com/web/r/"+it+b,l.href=v[r],p=c[0].getAttribute("alt").toLowerCase().substring(0,1),y[r]="https://pifm.eastmoney.com/EM_Finance2014PictureInterface/Index.aspx?id="+it+b+"&imageType="+p+"news&token=65e339ba36773878639f360ec823415f",c[0].src=y[r]):(v[r]=l.href,y[r]=tt.src);this.ioScript(a,!1,s[r],g)}c[0].width="530"}}for(k=this.getElementsByClassName("ContentBody","Em_NewsBk"),r=0;r<k.length;r++){k[r].innerHTML='<div class="bkLinkList"><div class="haLink"><b class="bk_ico ha"><\/b><div class="lmc">沪A：<\/div><a href="http://quote.eastmoney.com/center/list.html#10_0_0_u?sortType=C&sortRule=-1" target="_blank">涨幅榜<\/a><span class="l">｜<\/span><a href="http://quote.eastmoney.com/center/list.html#10_0_0_d?sortType=C&sortRule=1" target="_blank">跌幅榜<\/a><span class="l">｜<\/span><a href="http://quote.eastmoney.com/center/list.html#10_0_0_u?sortType=F&sortRule=-1" target="_blank">成交量<\/a><span class="l">｜<\/span><a href="http://quote.eastmoney.com/center/list.html#10_0_0_u?sortType=G&sortRule=-1" target="_blank">五分钟涨跌榜<\/a><\/div><div class="hbLink"><b class="bk_ico hb"><\/b><div class="lmc">深A：<\/div><a href="http://quote.eastmoney.com/center/list.html#20_0_0_u?sortType=C&sortRule=-1" target="_blank">涨幅榜<\/a><span class="l">｜<\/span><a href="http://quote.eastmoney.com/center/list.html#20_0_0_d?sortType=C&sortRule=1" target="_blank">跌幅榜<\/a><span class="l">｜<\/span><a href="http://quote.eastmoney.com/center/list.html#20_0_0_u?sortType=F&sortRule=-1" target="_blank">成交量<\/a><span class="l">｜<\/span><a href="http://quote.eastmoney.com/center/list.html#20_0_0_u?sortType=G&sortRule=-1" target="_blank">五分钟涨跌榜<\/a><\/div><div class="lzLink"><b class="bk_ico lz"><\/b><div class="lmc">领涨板块：<\/div><div id="bkList_lzbk"><\/div><\/div><\/div>';this.ioOverall("http://hq2data.eastmoney.com/bk/data/bkant.js","","BKCache",function(n){var f;if(n&&n.Top&&n.Top.length>0){var i=n.Top[0],r="",t="",u="";for(f in i)t=i[f].split(","),u=parseFloat(t[1])==0?"":parseFloat(t[1])>0?"red":"green",r+='<a href="http://quote.eastmoney.com/center/list.html#2800'+t[10]+t[9]+'_0_2" target="_blank">'+t[0]+'<\/a><span class="zf">(<span class="'+u+'">'+t[1]+"<\/span>)<\/span>";$("bkList_lzbk").innerHTML=r}});k[r].style.display="";break}for(w=this.getElementsByClassName("ContentBody","Em_NewsPlate"),r=0;r<w.length;r++)if(rt=w[r].firstChild,rt.style.display="none",d=w[r].firstChild.id.split("_"),d.length==3){var ot=d[1],st=d[2],ut="plate_"+Math.round(Math.random()*1e3);this.ioOverall("http://hqdigi2.eastmoney.com/EM_Quote2010NumericApplication/index.aspx?type=s&sortType=C&sortRule=-1&pageSize=6&page=1&jsName="+ut+"&style=2800"+ot+""+st+"&reference=jxf","",ut,function(n,t){var s=t.firstChild.id.split("_"),c=s[1],l=s[2],e='<div class="L_tit"><div>'+t.firstChild.innerHTML+'<\/div><\/div><div class="L_List"><ul>',i,f,r;if(n&&n.rank&&n.rank.length>0)for(i="",f="",r=0;r<n.rank.length;r++)if(n.rank[r]&&n.rank[r]!=""){i=n.rank[r].split(",");var h=i[0],a=h.substring(0,6),v=h.substring(6,7),o=parseFloat(i[11].replace("%",""));o>0?f="#FF0000":o<0&&(f="#009900");e+='<li><a href="http://quote.eastmoney.com/'+u.getMarket(v,a).Code+'.html" target="_blank">'+i[2]+'<\/a>(<font color="'+f+'">'+i[3]+" "+o+"%<\/font>)<\/li>"}e+='<span><a href="http://quote.eastmoney.com/center/list.html#2800'+c+""+l+'_0_2" target="_blank">更多<\/a><\/span><ul><\/div><div class="LinkBox"><b class="bk_ico"><\/b><a href="" target="">行业板块涨幅榜<\/a><span class="l">｜<\/span><a href="http://quote.eastmoney.com/center/list.html#10_0_0_d?sortType=C&amp;sortRule=1" target="_blank">跌幅榜<\/a><b class="bk_ico"><\/b><a href="" target="">概念板块涨幅榜<\/a><span class="l">｜<\/span><a href="http://quote.eastmoney.com/center/list.html#10_0_0_d?sortType=C&amp;sortRule=1" target="_blank">跌幅榜<\/a><b class="bk_ico"><\/b><a href="" target="">行业板块涨幅榜<\/a><span class="l">｜<\/span><a href="http://quote.eastmoney.com/center/list.html#10_0_0_d?sortType=C&amp;sortRule=1" target="_blank">跌幅榜<\/a><\/div>';t.innerHTML=e},w[r])}},getMarket:function(n,t){var i="sh";switch(n){case"1":i="sh";t.substring(0,3)=="000"&&(i="zs");break;case"2":i="sz";t.substring(0,2)=="39"&&(i="zs")}return{Type:i,Code:i+t}},ioScript:function(n,t,i,r){var f="_RelatedStock_"+n,o=this.SourceUrl.replace("{#STOCK#}",n).replace("{#Variable#}",f),e,u;t&&(f="BKCache",o="http://hq2data.eastmoney.com/bk/data/TradeArticle.js");e={stockCode:n,tipElement:i,data:null};this.ioCache[f]?r&&(e.data=ioCache[f],r(e)):(u=$C("script"),u.src=o,u.type="text/javascript",u.charset="utf-8",u._obj=this,u[document.all?"onreadystatechange":"onload"]=function(){document.all&&this.readyState!="loaded"&&this.readyState!="complete"||(this[document.all?"onreadystatechange":"onload"]=null,r&&(this._obj.ioCache[f]=e.data=eval(f),r(e)),this.parentNode.removeChild(this))},document.getElementsByTagName("head").item(0).appendChild(u))},ioOverall:function(n,t,i,r,u){var f=$C("script");f.type="text/javascript";f.charset=t==""?"GB2312":t;f.src=n;f._0j=this;f[document.all?"onreadystatechange":"onload"]=function(){document.all&&this.readyState!="loaded"&&this.readyState!="complete"||(this[document.all?"onreadystatechange":"onload"]=null,r&&(u?r(eval(i),u):r(eval(i))),this.parentNode.removeChild(this))};document.getElementsByTagName("head").item(0).appendChild(f)}};u=new i("EmImageRemark");r=1})(),function(){function c(t){return typeof t=="string"&&(t=n.getElementById(t)),t}function t(n,t,r){if(i.addEventListener)n.addEventListener(t,r,!1);else if(i.attachEvent){var u=function(){r.call(n,i.event)};n.attachEvent("on"+t,u)}}function l(n,t){return n.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function a(n,t){l(n,t)||(n.className+=" "+t)}function f(n,t){var i=new RegExp("(\\s|^)"+t+"(\\s|$)");n.className=n.className.replace(i," ")}function v(n){var t,u,i,f,e=r(n);return t=e.left,i=e.top,u=t+n.offsetWidth,f=i+n.offsetHeight,{left:t,right:u,top:i,bottom:f}}function y(t){var i,r,u;return!t.pageX&&t.clientX?(i=1,r=document.body,r.getBoundingClientRect&&(u=r.getBoundingClientRect(),i=(u.right-u.left)/r.clientWidth),{x:t.clientX/i+n.body.scrollLeft+n.documentElement.scrollLeft,y:t.clientY/i+n.body.scrollTop+n.documentElement.scrollTop}):{x:t.pageX,y:t.pageY}}function o(n){return n.replace(/.*(\/|\\)/,"")}function s(n){return/[.]/.exec(n)?/[^.]+$/.exec(n.toLowerCase()):""}var n=document,i=window,u=function(){var t=n.createElement("div");return function(n){t.innerHTML=n;var i=t.childNodes[0];return t.removeChild(i),i}}(),r,e,h;r=document.documentElement.getBoundingClientRect?function(n){var f=n.getBoundingClientRect(),e=n.ownerDocument,i=e.body,r=e.documentElement,o=r.clientTop||i.clientTop||0,s=r.clientLeft||i.clientLeft||0,t=1,u,h,c;return i.getBoundingClientRect&&(u=i.getBoundingClientRect(),t=(u.right-u.left)/i.clientWidth),t>1&&(o=0,s=0),h=f.top/t+(window.pageYOffset||r&&r.scrollTop/t||i.scrollTop/t)-o,c=f.left/t+(window.pageXOffset||r&&r.scrollLeft/t||i.scrollLeft/t)-s,{top:h,left:c}}:function(n){if(i.jQuery)return jQuery(n).offset();var t=0,r=0;do t+=n.offsetTop||0,r+=n.offsetLeft||0;while(n=n.offsetParent);return{left:r,top:t}};e=function(){var n=0;return function(){return"ValumsAjaxUpload"+n++}}();h=function(){var n;return function(){var i,t;if(n)return n;if(typeof XMLHttpRequest!="undefined")n=new XMLHttpRequest;else for(i=["Microsoft.XmlHttp","MSXML2.XmlHttp.5.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.2.0"],t=0;t<i.length;t++)try{n=new ActiveXObject(i[t]);break}catch(r){}return n}}();Ajax_upload=AjaxUpload=function(t,i){var r,u;t.jquery?t=t[0]:typeof t=="string"&&/^#.*/.test(t)&&(t=t.slice(1));t=c(t);this._input=null;this._button=t;this._disabled=!1;this._submitting=!1;this._justClicked=!1;this._parentDialog=n.body;window.jQuery&&jQuery.ui&&jQuery.ui.dialog&&(r=jQuery(this._button).parents(".ui-dialog"),r.length&&(this._parentDialog=r[0]));this._settings={action:"upload.php",name:"userfile",data:{},autoSubmit:!0,responseType:!1,closeConnection:"",hoverClass:"hover",onChange:function(){},onSubmit:function(){},onComplete:function(){}};for(u in i)this._settings[u]=i[u];this._createInput();this._rerouteClicks()};AjaxUpload.prototype={setData:function(n){this._settings.data=n},disable:function(){this._disabled=!0},enable:function(){this._disabled=!1},destroy:function(){this._input&&(this._input.parentNode&&this._input.parentNode.removeChild(this._input),this._input=null)},_createInput:function(){var r=this,i=n.createElement("input"),u,f;i.setAttribute("type","file");i.setAttribute("id","absFileInput");i.setAttribute("name",this._settings.name);u={position:"absolute",margin:"-5px 0 0 -175px",padding:0,width:"220px",height:"30px",fontSize:"14px",opacity:0,cursor:"pointer",display:"none",zIndex:2147483583};for(f in u)i.style[f]=u[f];i.style.opacity==="0"||(i.style.filter="alpha(opacity=0)");this._parentDialog.appendChild(i);t(i,"change",function(){var n=o(this.value);r._settings.onChange.call(r,n,s(n))!=!1&&r._settings.autoSubmit&&r.submit()});t(i,"click",function(){r.justClicked=!0;setTimeout(function(){r.justClicked=!1},2500)});this._input=i},_rerouteClicks:function(){var i=this,u,o={top:0,left:0},e=!1;t(i._button,"mouseover",function(){i._input&&!e&&(e=!0,u=v(i._button),i._parentDialog!=n.body&&(o=r(i._parentDialog)))});t(document,"mousemove",function(n){var r=i._input,t,s;if(r&&e){if(i._disabled){f(i._button,i._settings.hoverClass);r.style.display="none";return}t=y(n);t.x>=u.left&&t.x<=u.right&&t.y>=u.top&&t.y<=u.bottom?(r.style.top=t.y-o.top+"px",r.style.left=t.x-o.left+"px",r.style.display="block",a(i._button,i._settings.hoverClass)):(e=!1,s=setInterval(function(){i.justClicked||(e||(r.style.display="none"),clearInterval(s))},25),f(i._button,i._settings.hoverClass))}})},_createIframe:function(){var i=e(),t=u('<iframe src="javascript:false;" name="'+i+'" />');return t.id=i,t.style.display="none",n.body.appendChild(t),t},submit:function(){var l=this,r=this._settings,f,i,u,e,c;this._input.value!==""&&(f=o(this._input.value),r.onSubmit.call(this,f,s(f))==!1?(n.body.removeChild(this._input),this._input=null,this._createInput()):(i=this._createIframe(),u=this._createForm(i),u.appendChild(this._input),r.closeConnection&&/AppleWebKit|MSIE/.test(navigator.userAgent)&&(e=h(),e.open("GET",r.closeConnection,!1),e.send("")),u.submit(),n.body.removeChild(u),u=null,this._input=null,this._createInput(),c=!1,t(i,"load",function(e){var doc,response;if(i.src=="javascript:'%3Chtml%3E%3C/html%3E';"||i.src=="javascript:'<html><\/html>';"){c&&setTimeout(function(){n.body.removeChild(i)},0);return}(doc=i.contentDocument?i.contentDocument:frames[i.id].document,doc.readyState&&doc.readyState!="complete")||doc.body&&doc.body.innerHTML=="false"||(doc.XMLDocument?response=doc.XMLDocument:doc.body?(response=doc.body.innerHTML,r.responseType&&r.responseType.toLowerCase()=="json"&&(doc.body.firstChild&&doc.body.firstChild.nodeName.toUpperCase()=="PRE"&&(response=doc.body.firstChild.firstChild.nodeValue),response=response?window.eval("("+response+")"):{})):response=doc,r.onComplete.call(l,f,response),c=!0)})))},_createForm:function(t){var f=this._settings,i=u('<form method="post" enctype="multipart/form-data"><\/form>'),e,r;i.style.display="none";i.action=f.action;i.target=t.name;n.body.appendChild(i);for(e in f.data)r=n.createElement("input"),r.type="hidden",r.name=e,r.value=f.data[e],i.appendChild(r);return i}}}();var guba_modal=function(){function n(n){var t={title:"",content:"",showmask:!0,showclose:!0,titlecolor:1,titletype:"text",titlelist:[],titlelinkhtml:"",onclose:function(){}};this.options=jQuery.extend(t,n)}return n.prototype.show=function(){var i=this,f=jQuery('<div class="gbmask"><\/div>'),r="",n,t,u;i.options.titlecolor>1&&(r="c"+i.options.titlecolor);n=jQuery('<div class="gbpopbox"><a href="javascript:;" target="_self" class="gbpopboxclose '+r+'" title="关闭"><\/a><div class="gbpopboxtitle '+r+'"><\/div><div class="gbpopboxttab"><\/div><div class="gbpopboxbody"><\/div><\/div>');t=jQuery('<div class="gubamodal"><\/div>');t.append(n);this.alldiv=t;this.options.showmask&&(t.append(f),f.height(jQuery(document).height()));u=jQuery(".gbpopbox").length;jQuery(".gbpopbox",t).css({"z-index":80001+u});jQuery(".gbmask",t).css({"z-index":8e4+u});jQuery("body").append(t);this.options.titletype=="text"?(jQuery(".gbpopboxtitle",n).html(this.options.title+this.options.titlelinkhtml),jQuery(".gbpopboxttab",n).hide()):this.options.titletype=="list"&&(jQuery(".gbpopboxtitle",n).hide(),jQuery(".gbpopboxttab",n).html('<ul><li class="on">'+this.options.titlelist.join("<\/li><li>")+"<\/li><\/ul>"));jQuery(".gbpopboxbody",n).append(this.options.content);n.css({left:jQuery(document).width()/2-n.width()/2,top:jQuery(window).height()/2-n.height()/2+jQuery(window).scrollTop()});jQuery(".gbpopboxclose",n).click(function(){i.options.onclose();t.remove()})},n.prototype.getSelf=function(){return this.alldiv},n.prototype.close=function(){this.alldiv.remove()},n.prototype.closeAllModal=function(){jQuery(".gubamodal").remove()},n}(),EmDiaLogin={show:function(){if(document.all&&!window.XMLHttpRequest)window.open("http://exaccount.eastmoney.com/BroswerUpgrade.html");else{var t={autoResize:!1,agentPageUrl:"http://"+self.location.host+"/login_agent.html",callBack:"loginok",data:{domainName:"www.eastmoney.com",deviceType:"web",productType:"dongcai",version:"16.0.0"}},i="https://exaccount.eastmoney.com/Home/WebLogin?request="+encodeURIComponent(JSON3.stringify(t)),r='<iframe id="loginframe" frameborder="0" width="380" height="334" src='+i+"><\/iframe>",n=new modalDialog({content:r});n.show();window.loginok=function(){var t=new Date,i=t.getHours()+""+t.getMinutes()+""+t.getSeconds(),r;n.close();self.location.href.indexOf("#newsComment")>0?(r=self.location.href.indexOf("?")>0?self.location.href.split("?")[0]:self.location.href.split("#")[0],location.replace(r+"?v="+i+"#newsComment")):location.replace(self.location.href+"?v="+i+"#newsComment")}}}}