var xmlHttp;var IE=document.all?true:false;checkIE6=function(){var a=navigator.userAgent;if(/MSIE [78]/.test(a)){return false}if(/MSIE [56]/.test(a)){return true}return false};var isIE6=checkIE6();createXMLHttpRequest=function(){if(window.ActiveXObject){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}else{if(window.XMLHttpRequest){xmlHttp=new XMLHttpRequest()}}if(!xmlHttp){window.alert("不能创建XMLHttpRequest对象实例.");return false}};createXMLHttpRequestByObject=function(a){if(window.ActiveXObject){a=new ActiveXObject("Microsoft.XMLHTTP")}else{if(window.XMLHttpRequest){a=new XMLHttpRequest()}}if(!a){window.alert("不能创建XMLHttpRequest对象实例.");return false}return a};String.prototype.Trim=function(){return this.replace(/^\s*|\s*$/g,"")};KillSpace=function(h){var f=0,d=0,g=0,e=0,c=0;while(f==0){g=h.length;h=h.replace(/(^\s*)|(\s*$)/g,"");d=h.length;if(g==d){e=0}else{e=1}g=h.length;h=h.replace(/(^\u3000*)|(\u3000*$)/g,"");h=h.replace(/(^\ue4c6*)|(\ue4c6*$)/g,"");d=h.length;if(g==d){c=0}else{c=1}if(e==0&&c==0){f=1}else{f=0}}return h};showsec=function(d,b){var c=document.getElementById("seccode");c.value="";var a=document.getElementById(d);str="/Captcha.jpg?random="+Math.random();if(b&&b!=""){str+="&type="+b}a.src=str};showsecNew=function(c,b){var a=document.getElementById(c);str="/Captcha.jpg?random="+Math.random();if(b&&b!=""){str+="&type="+b}a.src=str};setCookie=function(a,c){var b=1;var d=new Date();d.setTime(d.getTime()+b*24*60*60*1000);document.cookie=a+"="+escape(c)+";expire="+d.toGMTString()};checkDocTitle=function(c){if(c==""){return"error0"}var a="(<.*/>)|(<.*>.*</.*>)";if(c.match(a)){return"error2"}var b="[［］【】＞<>〈〉`~!@#＃$%％^&*＊|;；$+]";if(c.match(b)||c.indexOf("\\")!=-1){return"error1"}return"success"};checkAmbigDocTitle=function(c){if(c==""){return"error0"}var a="(<.*/>)|(<.*>.*</.*>)";if(c.match(a)){return"error2"}var b="[［］【】[＞<>\\]〈〉`~!@#＃$%％^&*＊|;；$+]";if(c.match(b)||c.indexOf("\\")!=-1){return"error1"}return"success"};setIframeHeight=function(a){var b=document.getElementById(a);if(b!=null){setTimeout(function(){if(document.all||navigator.userAgent.indexOf("Chrome")>-1){b.style.height=b.contentWindow.document.body==null?"0px":(b.contentWindow.document.body.scrollHeight+"px")}else{b.style.height=b.contentDocument.documentElement.scrollHeight+"px"}},200)}};HD_getLength=function(c){var a;var b;a=0;for(b=0;b<c.length;b++){if(c.charCodeAt(b)>255){a+=2}else{a++}}return a};HD_subString=function(h,a){var g=0;var c="";var f=/[^\x00-\xff]/g;var b="";var e=h.replace(f,"**").length;for(var d=0;d<e;d++){b=h.charAt(d).toString();if(b.match(f)!=null){g+=2}else{g++}if(g>a){break}c+=b}return c};editpower=function(){var c=createXMLHttpRequestByObject("editXMLhttp");var a=document.getElementById("doc_title").value;var b="/editDocAuth.do?submit_type=1&doc_title="+encodeURI(a);c.open("GET",b,true);c.onreadystatechange=function(){if(c.readyState==4){if(c.status==200){var f=c.responseXML.getElementsByTagName("Flag")[0].firstChild;var e=document.getElementById("doc_title").value;var d="http://www.hudong.com/editdocauth/"+encodeURI(e);if(f!=null&&f.data=="true"){window.location=d}else{if(f!=null&&f.data=="false"){var i=c.responseXML.getElementsByTagName("Reason")[0].firstChild;var h=getCookie("hduser");var g='<div class="various_mobile">';g=g+'<p class="">'+i.data+"</p>";g=g+'<p class="pad_10">请写下您的建议，我们将尽快处理。</p>';g=g+'<textarea name="correct_content" id="correct_content" cols="45" rows="10" class="mar-bottom-10 block"></textarea>';if(h==null){g=g+'<p class="pad_10">如果方便，请您留下联系方式，我们会尽快向你反馈处理结果，你还可能收到我们送出的纪念品。</p>';g=g+'<textarea name="contact_content" id="contact_content" cols="45" rows="5" class="mar-bottom-10 block"></textarea>'}g=g+'<p class="a-c pad_10"><input class="v_middle input" type="button" value="提 交"  onclick="javascript:newsubmitCorrection(\'3\');" />或<a class="pad10" href="javascript:closeFloatWindow();">放弃</a></p></div>';setFloatWindow("为本词条建议：",g,350,false,false)}else{if(f!=null&&f.data=="editing"){window.location=d}else{if(f!=null&&f.data=="locking"){window.location=d}}}}}}};c.send(null)};function getCookie(c){var d=document.cookie.indexOf(c+"=");var a=d+c.length+1;if((!d)&&(c!=document.cookie.substring(0,c.length))){return null}if(d==-1){return null}var b=document.cookie.indexOf(";",a);if(b==-1){b=document.cookie.length}return unescape(document.cookie.substring(a,b))}function xiaoneisendFeed(){var f=getCookie("9e55c6b25c7f4a69b71f3ddf422c5380_user");if(f==null){on_xnlogin();return}var a=document.getElementById("doc_first_image").value;var b="http://www.hudong.com/xiaoNeiConnectSuccess.do?action=show&type=1&url="+document.getElementById("doctitle_utf8").value;var g='<a href="'+b+'">'+document.getElementById("doctitle").value+"</a>";var e=document.getElementById("xiaoneiallcontent").value;var c='<a href="http://www.hudong.com/xiaoNeiConnectSuccess.do?action=show">互动百科</a>';var d={template_bundle_id:5,template_data:{images:[{src:""+a+"",href:""+b+""}],feedtype:""+g+"",webname:""+c+""},body_general:""+e+""};XN.Connect.showFeedDialog(d)}function on_xnlogin(){XN.Connect.requireSession(function(){var a=document.getElementById("doctitle_utf8").value;window.location="http://www.hudong.com/xiaoNeiConnectSuccess.do?action=show&type=1&url="+a})}linkredwin=function(b){var a=document.createElement("form");a.target="_blank";a.method="post";document.body.appendChild(a);a.action="http://www.hudong.com/wiki/"+encodeURI(b);a.submit();a.parentNode.removeChild(a)};replaceSectionSpace=function(){var a=document.getElementById("doc_title").value;$(document).ready(function(){var g=$(".content_h2");var d=0;if(g!=null){d=g.length}var k,b,f;for(var e=0;e<d;e++){var h=g[e].children;if(h){for(var c=0;c<h.length;c++){if(h[c].tagName.toLowerCase()=="h2"){k=h[c].innerHTML;b=a.length;f=k.substring(b+1);h[c].innerHTML=a+"-"+f}}}}})};_setEnlargeImg=function(c){enlargeimg=document.createElement("img");enlargeimg.src="/images/enlarge.gif";enlargeimg.setAttribute("name","enlargegif");enlargeimg.setAttribute("id","enlargegif");var b=0;var a=0;var d=c;while(d!=null&&d.tagName.toLowerCase()!="body"){b+=d.offsetTop;a+=d.offsetLeft;d=d.offsetParent}b+=5;a+=c.offsetWidth-21;if(true||a<$("#text_right").offset().left){c.parentNode.appendChild(enlargeimg);enlargeimg.style.position="absolute";enlargeimg.style.top=b+"px";enlargeimg.style.left=a+"px"}};setEnlarge=function(){delEnlarge();var e=document.body.getElementsByTagName("img");var b=e.length;if(b>0){for(var a=0;a<((b+1)/2);a++){if(e[a].src.indexOf("att.hudong.com")>0){var d=e[a].parentNode;while(d.parentNode.tagName.toLowerCase()!="li"&&d.tagName.toLowerCase()!="div"){if(d.tagName.toLowerCase()=="a"&&(d.href.indexOf("tupian.hudong.com")>0)){_setEnlargeImg(e[a]);break}else{d=d.parentNode}}}}for(var c=b;c>=((b+1)/2);c--){if(e[c]&&e[c].src&&e[c].src.indexOf("att.hudong.com")>0){var d=e[c].parentNode;while(d.parentNode.tagName.toLowerCase()!="li"&&d.tagName.toLowerCase()!="div"){if(d.tagName.toLowerCase()=="a"&&(d.href.indexOf("tupian.hudong.com")>0)){_setEnlargeImg(e[c]);break}else{d=d.parentNode}}}}}delEnlargeByObject(document.getElementById("docinfotemplettable"))};delEnlarge=function(){var a=document.getElementsByName("enlargegif");while(a.length>0){a[0].parentNode.removeChild(a[0]);delEnlarge()}};delEnlargeByObject=function(b){if(b!=null){var c=b.getElementsByTagName("img");if(c!=null){for(var a=0;a<c.length;a++){if(c[a].getAttribute("name")=="enlargegif"){c[a].parentNode.removeChild(c[a])}}}}};gotoFigure=function(){var b=window.location.href;var c=b.indexOf("#");if(c!=-1){var a=new Array();a=b.split("#");if(a.length==2&&a[1]=="_figurea"){window.location.hash="#_figurea"}}};body_resize=function(){var a=document.documentElement.clientWidth||document.body.clientWidth;var b=document.getElementsByTagName("BODY")[0];if(a>1440){b.style.width=""}else{if(a<=1024){b.style.marginLeft="10px";b.style.marginRight="10px";if(isIE6){b.style.width="950px"}}else{b.style.width=""}}};if(isIE6){setInterval(function(){body_resize()},2000)}newaddthesaurus=function(){if(loaddocThesaurusjsflag){thesaurusIfLock()}else{jQuery.getScript("/js/docThesaurus.js",function(){thesaurusIfLock();loaddocThesaurusjsflag=true})}};newshowCorrectionDiv=function(a){if(loadallcerrectionjsflag){showCorrectionDiv(a)}else{jQuery.getScript("/js/allcerrection.js",function(){showCorrectionDiv(a);loadallcerrectionjsflag=true})}};newsubmitCorrection=function(a){if(loadallcerrectionjsflag){submitCorrection(a)}else{jQuery.getScript("/js/allcerrection.js",function(){submitCorrection(a);loadallcerrectionjsflag=true})}};perfectinfotempletdata=function(a){if(getCookie("hduser")==null){var d="您还没有登录，二级（10个信用）以上用户可以编辑信息模块的内容";var b='<div class="docpagepopwindow"><dl><dt class="a-c"><span class="add_fl">'+d+'</span></dt><dd class="a-c"><input name="Button2" type="button" value="确 定" onclick="closeFloatWindow()" class="inp-btn btn_black" /></dd></dl></div>';setFloatWindow("为词条添加信息",b,470,false,false);return}var c='<div id="information_module"><p class="tishi"><strong>数据读取中，请等待</strong></p><div id="templetInfoContent"></div></div>';setFloatWindow("编辑信息",c,500,false,false);$("#float_window").css("top",$("#float_window").offset().top-30);if(loaddocinfotempletjsflag){editdocinfotemplet(a)}else{jQuery.getScript("/js/docinfotemplet.js",function(){editdocinfotemplet(a);loaddocinfotempletjsflag=true})}return false};getdocinfo=function(){if($("#thslinkwz").find("a").length>0){$("#thslinkwz").show()}var b=$("#doc_title").val();var c=$("#docid").val();var a=$("#dociden").val();var g=$("#xgct dl");var f="";for(var e=0;e<g.length;e++){f=f+$(g[e]).find("dd a").html();f=f+";"}var d="/getdocinfo.do?docid="+c+"&dociden="+a+"&corDocNewTitle="+encodeURI(f)+"&doctitle="+encodeURI(b);$.ajax({dataType:"xml",type:"GET",url:d,success:function(E){var Q=$(E).find("loginstate");if(Q.length>0){var O=Q.find("expertstate").text();var J=Q.find("networkerstate").text();var w=Q.find("adminstate").text();var R=Q.find("thesureEditor").text();var F=Q.find("editthesure").text();var I=Q.find("editambigahth").text();if(J=="1"||R=="1"||F=="1"){$("#show_thesaurus_dt").append('<a id="addthesaurus" href="javascript:newaddthesaurus();" class="r">我来补充</a>').parent().show()}if($("#pagetype").val()=="doc"){if(w=="1"){$("#operate").append('<li><a href="javascript:void(0)" id="renamehref">多义词</a></li>');$("#renamehref").click(function(){if(loadviewdocfunctionjsflag){ShowDocRename();return false}else{jQuery.getScript("/js/viewdocfunction.js",function(){ShowDocRename();loadviewdocfunctionjsflag=true;return false})}})}}if($("#_loginstate").length>0){$("#_loginstate").val(1)}}else{$("_doc_flag").val("/wiki/"+$("#doctitle_utf8").val());if($("#topic_email_li").length>0){$("#topic_email_li").show()}if($("#topic_pwd_li").length>0){$("#topic_pwd_li").show()}}$("#viewnum").html("阅读("+$(E).find("viewnum").text()+")");if($("#editlock").length>0&&$("#editlockdl").length>0){var L=$(E).find("editlock");if(L.length>0){var s="<li>此词条正在被";var r=L.find("state").text();var K=L.find("userid").text();if(K=="0"){var C=L.find("userip").text().split(".");var H=C[0]+"."+C[1]+"."+C[2]+".*";s+="匿名用户("+H+")锁定编辑中!"}else{s+="<a href='http://wiki.hudong.com/u/"+L.find("useriden").text()+"/index'>"+L.find("usernick").text()+"</a>锁定编辑中!</li>"}$("#editlockdl").append(s);$("#editlock").show()}else{if($(E).find("overTwoLocks").length>0){$("#editlockdl").append("<li>您已经锁定了两个以上的词条，所以您不能够继续编辑该词条</li>");$("#editlock").show()}}if($("#editlockdl").length>0){if($("#editlockdl").html().Trim()==""){$("#editlock").remove()}else{$("#editlock").show()}}}var N=0;var t=$(E).find("cordocimg");if(t.length>0){var M=$("img[name='corimg']");N=M.length;for(var T=0;T<N;T++){if(t.find("img:eq("+T+")").text().Trim()!=""){M.eq(T).attr("src",t.find("img:eq("+T+")").text())}}}var q=$(E).find("TotalTopicNum");if(q.length>0){if($("#totalTopicNum").length>0){if(q.text()!="0"){$("#totalTopicNum").append("("+q.text()+")")}}if($("#topichref").length>0){$("#topichref").text("讨论("+q.text()+")")}}if($(E).find("TopicNum").length>0&&$(E).find("TopicNum").text()!="0"){if($("#topictable").length>0){$("#topictable").show()}var v=$(E).find("Record_TopicList");if(v.length>0){var B=v.find("TopicList");if(B.length>0){var z,y,A,S;var P,u,G,D,h,h;var n,U;var x,p,o,m,l,k;var V=document.getElementById("topiclisttbody");if(V!=null){for(T=0,j=0;T<B.length;T++,j++){z=B.eq(T).find("TOPIC_TITLE").text();y=B.eq(T).find("USER_NICK").text();A=B.eq(T).find("LAST_POST_TIME").text();S=B.eq(T).find("LAST_POST_USER_NICK").text();P=B.eq(T).find("LAST_POST_USER_IP").text();u=B.eq(T).find("USER_IP").text();G=B.eq(T).find("USER_ID").text();D=B.eq(T).find("USER_ID_ENCRYPT").text();h=B.eq(T).find("DOC_TOPICS_ID_ENCRYPT").text();n=B.eq(T).find("LAST_POST_USER_ID_ENCRYPT").text();U=B.eq(T).find("LAST_POST_USER_ID").text();x=V.insertRow(j);p=x.insertCell(0);p.innerHTML="<a href='http://wikibar.hudong.com/posts/"+h+"' target='_blank'>"+z+"</a>";o=x.insertCell(1);if(G!=null&&G!="0"){o.innerHTML="<a href='http://wiki.hudong.com/u/"+D+"/index' target='_blank'>"+y+"</a>"}else{o.innerHTML=u}m=x.insertCell(2);m.innerHTML=A;l=x.insertCell(3);if(U!=null&&U!="0"){l.innerHTML="<a href='http://wiki.hudong.com/u/"+n+"/index' target='_blank'>"+S+"</a>"}else{l.innerHTML=P}}}}}}if($("#recommend").length>0&&$("#recommendnum").length>0){$("#recommendnum").html($(E).find("RecommendNum").text())}setEnlarge();if($("#text_right").height()>$("#text_left").height()){setTimeout(function(){$("#text_left").height($("#text_right").height()+N*15+60)},1000)}else{}},error:function(){$("#viewnum").html("阅读");if($("#text_right").height()>$("#text_left").height()){setTimeout(function(){$("#text_left").height($("#text_right").height()+60)},1000)}}})};getAmbiguityInfo=function(){var a=$("#doctitle").val();var b="/ambiguityDeal.do?Action=getPopedomInfo&doctitle="+encodeURI(a);$.ajax({dataType:"xml",type:"get",url:b,timeout:4000,success:function(c){$("#viewnum").html("阅读("+$(c).find("viewnum").text()+")");var d=$(c).find("STATEINFO").text();var e="";if(d=="1"){e='<li><a href="javascript:void(0);" id="ambiguityaddhref" >添加多义词</a></li><li><a href="javascript:void(0);" id="ambiguityedithref">编辑多义词</a></li>'}if(d=="2"){e='<li><a href="javascript:void(0);" id="ambiguityaddhref">添加多义词</a></li>'}var f=$(c).find("TopicNum");if(f.length>0){if($("#topichref").length>0){$("#topichref").text("讨论("+f.text()+")")}}$("#operate").append(e);$("#ambiguityaddhref").click(function(){if(loadambiguity0909flag){addAmbigDiv(1);return false}else{jQuery.getScript("/js/ambiguity0909.js",function(){addAmbigDiv(1);loadambiguity0909flag=true;return false})}});$("#ambiguityedithref").click(function(){if(loadambiguity0909flag){addAmbigDiv(2);return false}else{jQuery.getScript("/js/ambiguity0909.js",function(){addAmbigDiv(2);loadambiguity0909flag=true;return false})}})},error:function(){$("#viewnum").html("阅读")}})};var scrolltotop={setting:{startline:100,scrollto:0,scrollduration:1000,fadeduration:[500,100]},controlHTML:'<img src="/images/up.png" style="width:23px; height:66px" />',controlattrs:{offsetx:30,offsety:80},anchorkeyword:"#top",state:{isvisible:false,shouldvisible:false},scrollup:function(){if(!this.cssfixedsupport){this.$control.css({opacity:0})}var a=isNaN(this.setting.scrollto)?this.setting.scrollto:parseInt(this.setting.scrollto);if(typeof a=="string"&&jQuery("#"+a).length==1){a=jQuery("#"+a).offset().top}else{a=0}this.$body.animate({scrollTop:a},this.setting.scrollduration)},keepfixed:function(){var c=jQuery(window);var b=c.scrollLeft()+c.width()-this.$control.width()-this.controlattrs.offsetx;var a=c.scrollTop()+c.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:b+"px",top:a+"px"})},togglecontrol:function(){var a=jQuery(window).scrollTop();if(!this.cssfixedsupport){this.keepfixed()}this.state.shouldvisible=(a>=this.setting.startline)?true:false;if(this.state.shouldvisible&&!this.state.isvisible){this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]);this.state.isvisible=true}else{if(this.state.shouldvisible==false&&this.state.isvisible){this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]);this.state.isvisible=false}}},init:function(){jQuery(document).ready(function(c){var a=scrolltotop;var b=document.all;a.cssfixedsupport=!b||b&&document.compatMode=="CSS1Compat"&&window.XMLHttpRequest;a.$body=(window.opera)?(document.compatMode=="CSS1Compat"?c("html"):c("body")):c("html,body");a.$control=c('<div id="topcontrol" style="z-index:11;">'+a.controlHTML+"</div>").css({position:a.cssfixedsupport?"fixed":"absolute",bottom:a.controlattrs.offsety,right:a.controlattrs.offsetx,opacity:0,cursor:"pointer"}).attr({title:"回顶部"}).click(function(){a.scrollup();return false}).appendTo("body");if(document.all&&!window.XMLHttpRequest&&a.$control.text()!=""){a.$control.css({width:a.$control.width()})}a.togglecontrol();c('a[href="'+a.anchorkeyword+'"]').click(function(){a.scrollup();return false});c(window).bind("scroll resize",function(d){a.togglecontrol()})})}};var Momo={is_active:1,cache_list:[],test_url:"",url:"/validateDocSummary.do",a_mouseover:null,defer_show:0,defer_hide:0,timeout:500,id:"#popup",movable:true,draging:false,is_draged:false,is_show:false,loading:"http://www.hudong.com/images/loading.gif",onloading:false,win:null,dom:null,div:null,scroll_hide:false,getPos:function(n){var r=this;var e,q,v=$(n),p=r.div,t=r.dom,f=r.win;var d=p.width(),m=p.height();var g=v.offset(),l=v.height(),b=v.width();var u=f.width(),c=f.height(),o=t.scrollLeft(),h=t.scrollTop();var k=$(document.body).offset();var i=g.left+d<u*0.8+o;var s=g.top+m<c*0.9+h;e=i?g.left:g.left-d+b;q=s?g.top+l+2:g.top-m-l;e=e-k.left;return{left:e,top:q}},getData:function(d){var b=this;var e=$(d).text();var a=(e.length>10)?(e.substring(0,10)+"..."):e;$("#headp a").html(a).attr("href","http://www.hudong.com/wiki/"+encodeURI(e));if(b.cache_list[e]){b.setData(b.cache_list[e]);b.show(b.getPos(d))}else{var c=b.url+"?doc_title="+encodeURI(e);if(b.test_url){c=b.test_url}$("#summaryDataBody").html('<div style="height:90px;"><img src="'+b.loading+'" border="0" /> 正在加载词条摘要...</div>');b.show(b.getPos(d));b.onloading=true;$.get(c,function(g,f){if(b.a_mouseover!=d||!b.is_show){return}if(f!="success"){return alert(f)}b.cache_list[e]=g;b.setData(g);if(!b.is_draged){b.show(b.getPos(d))}b.onloading=false})}},setData:function(e){var b=e.getElementsByTagName("flag")[0].firstChild.data;var a=e.getElementsByTagName("doctitle")[0].firstChild.data;var c=e.getElementsByTagName("docid")[0].firstChild.data;var d=e.getElementsByTagName("summary")[0].firstChild.data;var g=e.getElementsByTagName("firstimg")[0].firstChild==null?"null":e.getElementsByTagName("firstimg")[0].firstChild.data;var f="";if(b=="false"){f='<p style="padding:5px; margin:0;"><a href="/createDocAuth.do?doc_title='+encodeURI(a)+"\"><font size='2' color='red' >词条不存在,请点击创建!</font></a></p>"}else{if(g&&g!="null"){f='<a href="http://www.hudong.com/wiki/'+encodeURI(a)+'" target="_blank"><img onload="Momo.imgload(this)" src="'+g+'" style="border: 1px solid rgb(204, 204, 204); margin: 5px 10px 0pt 5px; padding: 1px; float: left;"></a>'}f+='<p style="margin: 0pt; padding: 5px;">'+d+'<a style="padding-left: 5px;" href="http://www.hudong.com/wiki/'+encodeURI(a)+'" target="_blank">查看详情&gt;&gt;</a></p>'}$("#summaryDataBody").html(f)},imgload:function(b){var a=this;var c=a.getPos(a.a_mouseover);a.div.css({top:c.top,left:c.left})},show:function(b){var a=this;a.is_show=true;a.is_draged=false;a.div.css({top:b.top,left:b.left}).show();if(a.scroll_hide){a.win.bind("scroll",function(){a.hide()})}},hide:function(){var a=this;a.is_show=false;a.div.hide();if(a.scroll_hide){a.win.unbind("scroll",function(){a.hide()})}},init:function(){if($("#popup").size()==0){$("body").append('<div style="width:290px;overflow:hidden;z-index:10;background-color:#d1e7fc;position:absolute;padding:5px; font-size:12px; ine-height:20px;top:-1000px;left:0;" id="popup"><p style="padding:0 0 5px 0;width:290px;margin:0;float:left;" id="headp"></p><div style="float:left;padding:5px;width:280px;background-color:#fff;line-height:18px" id="summaryDataBody"></div></div>')}else{if($("#headp").size()==0||$("#summaryDataBody").size()==0){return alert("Momo is black out.")}}var a=this;a.div=$(a.id);a.dom=$(document);a.win=$(window);$("a.innerlink").mouseover(function(){if(!a.is_active||a.draging){return}$(this).attr("target","_blank");a.hide();var b=this;a.a_mouseover=b;clearTimeout(a.defer_hide);clearTimeout(a.defer_show);a.defer_show=setTimeout(function(){a.getData(b)},a.timeout)}).mouseleave(function(){if(!a.is_active||a.draging){return}clearTimeout(a.defer_show);a.defer_hide=setTimeout(function(){a.hide()},1500)});a.div.mouseover(function(){clearTimeout(a.defer_hide)}).dblclick(function(){a.hide()}).mouseleave(function(){clearTimeout(a.defer_hide);a.defer_hide=setTimeout(function(){a.hide()},1500)}).css({visibility:"visible"}).hide();$("#headp").html('<span style="float: left; font-size: 12px; margin-left: 5px;"><img src="/images/momo/momo_3.gif" align="absmiddle"> <a target="_blank" style="color: rgb(255, 0, 0); text-decoration: none;" href="">title</a></span><span style="float: right; margin-right: 5px;cursor: pointer;"><img name="close" src="/images/momo/guanbi_normal.gif" width="14" border="0" height="14"></span>');$("#headp").find("img[name=close]").click(function(){a.hide()});$("#headp").mousedown(function(c){c=c||event;if(!a.movable){return}a.draging=1;var d=a.div.offset();var b=$(document.body).offset();a.offsetClick={width:c.pageX-d.left+b.left,height:c.pageY-d.top,startX:d.left,startY:d.top};a.div.unbind("mouseleave");$(document).mousemove(function(f){a.move(f)}).bind("selectstart",function(){return false});$(document).mouseup(function(g){var f=a.offsetClick;var h={left:f.startX,top:f.startY};a.draging=0;if(g.clientY<0||g.clientX<2||g.clientX>$(document).width()||g.clientY>$(window).height()){a.div.css(h)}$(document).unbind("mousemove").unbind("selectstart").unbind("mouseup");a.div.mouseleave(function(){clearTimeout(a.defer_hide);a.defer_hide=setTimeout(function(){a.hide()},1500)});return false})})},move:function(f){f=f||event;var d,c,b=this;d=f.pageX||(f.clientX+$(document).scrollLeft());c=f.pageY||(f.clientY+$(document).scrollTop());var a=b.offsetClick;b.div.css({left:d-a.width,top:c-a.height});b.is_draged=true},setOn:function(){this.is_active=1},setOff:function(){this.is_active=0;this.hide()}};var loadviewDocTopicjsflag=false;var loadperfectcordocjsflag=false;var loaddoccontestjsflag=false;var loadviewdocfunctionjsflag=false;var loaddocTagjsflag=false;var loaddocThesaurusjsflag=false;var loadallcerrectionjsflag=false;var loaddoccatalogjsflag=false;var loaddocinfotempletjsflag=false;var loadLockjsflag=false;var loadjqueryformjsflag=false;var loadambiguity0909flag=false;var loadDocQuoteflag=false;var loadKaixin001flag=false;var loadPersonRelFlag=false;var load_person_rel_templet_js_flag=false;var loadjqueryformjsflag_personRel=false;$(document).ready(function(){refreshuserloginnav("top_usernav");if($("#pagetype").val()=="ambiguity"){if($("#text_right").height()>$("#text_left").height()){$("#text_left").height($("#text_right").height()+60)}getAmbiguityInfo();if($(".ambiguityCorrection").length>0){$(".ambiguityCorrection").click(function(){if(loadambiguity0909flag){showCorrectionDiv();return false}else{jQuery.getScript("/js/ambiguity0909.js",function(){showCorrectionDiv();loadambiguity0909flag=true;return false})}})}}else{getdocinfo();if($("#pagetype").val()=="doc"){gotoFigure();try{XN_RequireFeatures(["Connect"],function(){XN.Main.init("9e55c6b25c7f4a69b71f3ddf422c5380","/xiaonei/xd_receiver.html")})}catch(a){}replaceSectionSpace();Momo.init()}}scrolltotop.init();setChannel();auto_complete_doc("#sousuokuang",24);jQuery.getScript("/js/alertwin.js");$("#topic_title").focus(function(){if(loadviewDocTopicjsflag){TopicfocusTwo()}else{jQuery.getScript("/js/viewDocTopic.js",function(){TopicfocusTwo();loadviewDocTopicjsflag=true})}});$(".anonymityloginhref").click(function(){if(loadviewDocTopicjsflag){docvalidateTwo("1")}else{jQuery.getScript("/js/viewDocTopic.js",function(){docvalidateTwo("1");loadviewDocTopicjsflag=true})}});$(".anonymityregisthref").click(function(){if(loadviewDocTopicjsflag){docvalidateTwo("2")}else{jQuery.getScript("/js/viewDocTopic.js",function(){docvalidateTwo("2");loadviewDocTopicjsflag=true})}});$(".submitTopicBtn").click(function(){if(loadviewDocTopicjsflag){SubmitNewTwo()}else{jQuery.getScript("/js/viewDocTopic.js",function(){SubmitNewTwo();loadviewDocTopicjsflag=true})}});$(".perfectcordochref").click(function(){if(loadperfectcordocjsflag){perFectCorDoc($("#doctitle").val(),false)}else{jQuery.getScript("/js/perfectcordoc.js",function(){perFectCorDoc($("#doctitle").val(),false);loadperfectcordocjsflag=true})}});$(".doccontestbuyhref").click(function(){if(loaddoccontestjsflag){buy_docs(false,$("#doctitle").val())}else{jQuery.getScript("/js/doccontest.js",function(){buy_docs(false,$("#doctitle").val());loaddoccontestjsflag=true})}});$(".docconteststarthref").click(function(){if(loaddoccontestjsflag){contest_docs(false,$("#doctitle").val())}else{jQuery.getScript("/js/doccontest.js",function(){contest_docs(false,$("#doctitle").val());loaddoccontestjsflag=true})}});$("#recommend").click(function(){if(loadviewdocfunctionjsflag){doDig($("#doctitle").val())}else{jQuery.getScript("/js/viewdocfunction.js",function(){doDig($("#doctitle").val());loadviewdocfunctionjsflag=true})}});$(".editsummaryhref").click(function(){if(loadviewdocfunctionjsflag){PopeditSummary()}else{jQuery.getScript("/js/viewdocfunction.js",function(){PopeditSummary();loadviewdocfunctionjsflag=true})}});$(".completetaghref").click(function(){if(loaddocTagjsflag){ifLock()}else{jQuery.getScript("/js/docTag.js",function(){ifLock();loaddocTagjsflag=true})}});$("#addFigure").click(function(){if(loadviewdocfunctionjsflag){addFigure()}else{jQuery.getScript("/js/viewdocfunction.js",function(){addFigure();loadviewdocfunctionjsflag=true})}});if($("#doccatalog_hide_show").length>0){$("#doccatalog_hide_show").click(function(){if(loaddoccatalogjsflag){hideDoccatalog();setEnlarge()}else{jQuery.getScript("/js/doccatalog.js",function(){hideDoccatalog();setEnlarge();loaddoccatalogjsflag=true})}})}if($(".thesauruscorrecthref").length>0){$(".thesauruscorrecthref").click(function(){newshowCorrectionDiv("2")})}if($(".docfavhref").length>0){$(".docfavhref").click(function(){if(loadviewdocfunctionjsflag){doc2fav($("#doctitle").val())}else{jQuery.getScript("/js/viewdocfunction.js",function(){doc2fav($("#doctitle").val());loadviewdocfunctionjsflag=true})}})}if($("#addDocInfoTemplethref").length>0){$("#addDocInfoTemplethref").click(function(){if(getCookie("hduser")==null){var d="您还没有登录，二级（10个信用）以上用户可以编辑信息模块的内容";var b='<div class="docpagepopwindow"><dl><dt class="a-c"><span class="add_fl">'+d+'</span></dt><dd class="a-c"><input name="Button2" type="button" value="确 定" onclick="closeFloatWindow()" class="inp-btn btn_black" /></dd></dl></div>';setFloatWindow("为词条添加信息",b,470,false,false);return}var c='<div id="information_module"><p class="tishi"><strong>数据读取中，请等待</strong></p><div id="templetInfoContent"></div></div>';setFloatWindow("为词条添加信息",c,500,false,false);$("#float_window").css("top",$("#float_window").offset().top-25);if(loaddocinfotempletjsflag){editdocinfotemplet()}else{jQuery.getScript("/js/docinfotemplet.js",function(){editdocinfotemplet();loaddocinfotempletjsflag=true})}})}if($("#figurerelation").length>0){jQuery.getScript("/js/personrel.js",function(){loadPersonRelFlag=true})}if($("#addPersonRelInfo").length>0){$("#addPersonRelInfo").click(function(){if(getCookie("hduser")==null){var d="您还没有登录，二级（10个信用）以上用户可以编辑人物关系模块的内容!";var c='<div class="docpagepopwindow"><dl><dt class="a-c"><span class="add_fl">'+d+'</span></dt><dd class="a-c"><input name="Button2" type="button" value="确 定" onclick="closeFloatWindow()" class="inp-btn btn_black" /></dd></dl></div>';setFloatWindow("为词条添加信息",c,470,false,false);return}if(load_person_rel_templet_js_flag){var b=$("#doc_title").length>0?$("#doc_title").val():"";editPersonRel(b)}else{jQuery.getScript("/js/editpersonrel.js",function(){var e=$("#doc_title").length>0?$("#doc_title").val():"";editPersonRel(e);load_person_rel_templet_js_flag=true})}})}if($("#editDocQuoteLink").length>0){$("#editDocQuoteLink").click(function(){if(getCookie("hduser")==null){var c="您还没有登录，没有权限编辑此正文被引用的内容。";var b='<div class="docpagepopwindow"><dl><dt class="a-c"><span class="add_fl">'+c+'</span></dt><dd class="a-c"><input name="Button2" type="button" value="确 定" onclick="closeFloatWindow()" class="inp-btn btn_black" /></dd></dl></div>';setFloatWindow("为词条添加被引用信息",b,470,false,false);return}if(loadDocQuoteflag){editDocQuote()}else{jQuery.getScript("/js/docQuote.js",function(){editDocQuote();loadDocQuoteflag=true})}})}if($("#repaste2kaixin001link").length>0){$("#repaste2kaixin001link").click(function(){if(loadKaixin001flag){repaste2kaixin001()}else{jQuery.getScript("/js/coop4kaixin001.js",function(){repaste2kaixin001();loadKaixin001flag=true})}})}$(window).resize(function(){setEnlarge()});if($(".toggleshow").length>0&&$(".togglehide").length>0){$(".toggleshow").click(function(b){$(this).next().show();$(this).hide();$(this).parent().parent().find("#navData").show()});$(".togglehide").click(function(){$(this).prev().show();$(this).hide();$(this).parent().parent().find("#navData").hide()})}if(getCookie("hduser")==null){jQuery.getScript("/js/HD_popMessage.js",function(){setTimeout(function(){try{var c={hidetime:120000};HD_popMessage.initPopMessage(c)}catch(b){}},1000)})}$(".quizhref").click(function(){if(loaddoccontestjsflag){docquiz()}else{jQuery.getScript("/js/docquiz.js",function(){docquiz();loaddoccontestjsflag=true})}})});