






/* generated javascript */
var skin = 'dianzhiskin';
var stylepath = '/w/skins';

/* MediaWiki:Common.js */
//&lt;source lang="javascript"&gt; /* 所有用户在加载任何页面时，这里的JavaScript都会加载 

*/

/** Cookies ***************************************************************************** 

  */

function setCookie(cookieName, cookieValue, expiryDay) { 

 var today = new Date();
 var expire = new Date();
 var nDays = (!expiryDay || isNaN(expiryDay) )?30:expiryDay;
 expire.setTime( today.getTime() + (3600000 * 24 * nDays) );
 document.cookie = cookieName + "=" + escape(cookieValue)
                 + ";path=/w"
                 + ";expires="+expire.toGMTString();
 document.cookie = cookieName + "=" + escape(cookieValue)
                 + ";path=/wiki"
                 + ";expires="+expire.toGMTString();

} 

function getCookie(cookieName) { 

  var start = document.cookie.indexOf( cookieName + "=" );
  if ( start == -1 ) return "";
  var len = start + cookieName.length + 1;
  if ( (!start ) &&( cookieName!= document.cookie.substring( 0, cookieName.length ) ) )
      {
        return "";
      }
  var end = document.cookie.indexOf( ";", len );
  if ( end == -1 ) end = document.cookie.length;
  return unescape( document.cookie.substring( len, end ) );

} 

function deleteCookie(cookieName) { 

  if ( getCookie(cookieName) ) {
    document.cookie = cookieName + "=" + ";path=/w" +
    ";expires=Thu, 01-Jan-1970 00:00:01 GMT";
    document.cookie = cookieName + "=" + ";path=/wiki" +
    ";expires=Thu, 01-Jan-1970 00:00:01 GMT";
  }

} 

/* 

== 定期强制用户更新cache  ==

*/

if( (""+wgUserGroups).indexOf("user")!=-1 &amp;&amp; (wgAction=="view") ){ 

 var today=new Date();

 if(!getCookie("lastload") || isNaN(getCookie("lastload")) ){
  setCookie("lastload", today.getTime());
 }else{

  if( today.getTime()-getCookie("lastload") &gt;= 7*24*60*60*1000 ){
   setCookie("lastload", today.getTime());
   if( getCookie("lastload")==today.getTime() ) window.location.reload(true);
  }else if( today.getTime()-getCookie("lastload") &lt; 0 ){
   setCookie("lastload", today.getTime());
  }

 }

} 

// import jQuery here if (window.jQuery === undefined) { 

    /*
     * jQuery JavaScript Library v1.3.2
     * http://jquery.com/
     *
     * Copyright (c) 2009 John Resig
     * Dual licensed under the MIT and GPL licenses.
     * http://docs.jquery.com/License
     *
     * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
     * Revision: 6246
     */

(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^&lt;]*(&lt;(.|\s)+&gt;)[^&gt;]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&amp;&amp;(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&amp;&amp;I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&amp;&amp;E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&amp;&amp;E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&amp;&amp;o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&amp;&amp;parseFloat(F)&lt;0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&amp;&amp;F!=null){return this.empty().append((this[0]&amp;&amp;this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&amp;&amp;!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&amp;&amp;o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&amp;&amp;H.ownerDocument){if(G?G.index(H)&gt;-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&amp;&amp;E[E.length-1]!==g&amp;&amp;!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)&lt;0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return&nbsp;!!E&amp;&amp;o.multiFilter(E,this).length&gt;0},hasClass:function(E){return&nbsp;!!E&amp;&amp;this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I&lt;0){return null}for(var F=H?I:0,J=H?I+1:M.length;F&lt;J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&amp;&amp;/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)&gt;=0||o.inArray(this.name,K)&gt;=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)&gt;=0||o.inArray(this.text,N)&gt;=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G&lt;E;G++){L.call(K(this[G],H),this.length&gt;1||G&gt;0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&amp;&amp;o.nodeName(N,"table")&amp;&amp;o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&amp;&amp;!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H&lt;I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&amp;&amp;L&amp;&amp;typeof L==="object"&amp;&amp;!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&amp;&amp;E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&amp;&amp;o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&amp;&amp;/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&amp;&amp;F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H&lt;I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H''-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&amp;&amp;!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&amp;&amp;E&amp;&amp;E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&amp;&amp;L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&amp;&amp;/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&amp;&amp;K[0].ownerDocument||document}if(!I&amp;&amp;F.length===1&amp;&amp;typeof F[0]==="string"){var H=/^&lt;(\w+)\s*\/?&gt;$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(&lt;(\w+)[^&gt;]*?)\/&gt;/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"&gt;&lt;/"+T+"&gt;"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("&lt;opt")&amp;&amp;[1,"&lt;select multiple='multiple'&gt;","&lt;/select&gt;"]||!O.indexOf("&lt;leg")&amp;&amp;[1,"&lt;fieldset&gt;","&lt;/fieldset&gt;"]||O.match(/^&lt;(thead|tbody|tfoot|colg|cap)/)&amp;&amp;[1,"'' 

{| class="FCK__ShowTableBorders"
|-
| 
|}

"]||!O.indexOf("&lt;tr")&amp;&amp;[2," 

{| class="FCK__ShowTableBorders"
|-
| 
|}

"]||(!O.indexOf("&lt;td")||!O.indexOf("&lt;th"))&amp;&amp;[3," 

{| class="FCK__ShowTableBorders"
|}

"]||!O.indexOf("&lt;col")&amp;&amp;[2," 

{| class="FCK__ShowTableBorders"
|-
| 
|}

"]||!o.support.htmlSerialize&amp;&amp;[1,"div
<div>","</div>
"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/&lt;tbody/i.test(S),N=!O.indexOf("&lt;table")&amp;&amp;!R?L.firstChild&amp;&amp;L.firstChild.childNodes:Q[1]=="

{| class="FCK__ShowTableBorders"
|-
| 
|}

{| class="FCK__ShowTableBorders"
|-
| 
|}

&lt;a href="/a" style="color:red;float:left;opacity:.5;"&gt;a&lt;/a&gt;&lt;select&gt;&lt;option&gt;text&lt;/option&gt;&lt;/select&gt;&lt;object&gt;&lt;param/&gt;&lt;/object&gt;';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&amp;&amp;K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I&gt;=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("&lt;div/&gt;").append(M.responseText.replace(/&lt;script(.|\s)*?\/script&gt;/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&amp;&amp;!this.disabled&amp;&amp;(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&amp;|$)/g,R,V,G=M.type.toUpperCase();if(M.data&amp;&amp;M.processData&amp;&amp;typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&amp;":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&amp;":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&amp;&amp;(M.data&amp;&amp;M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&amp;&amp;M.cache==null){M.cache=false}if(M.cache===false&amp;&amp;G=="GET"){var E=e();var U=M.url.replace(/(\?|&amp;)_=.*?(&amp;|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&amp;":"?")+"_="+E:"")}if(M.data&amp;&amp;G=="GET"){M.url+=(M.url.match(/\?/)?"&amp;":"?")+M.data;M.data=null}if(M.global&amp;&amp;!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&amp;&amp;G=="GET"&amp;&amp;Q&amp;&amp;(Q[1]&amp;&amp;Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&amp;&amp;(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&amp;&amp;M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&amp;&amp;M.beforeSend(J,M)===false){if(M.global&amp;&amp;!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&amp;&amp;!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&amp;&amp;J&amp;&amp;(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&amp;&amp;o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&amp;&amp;Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout&gt;0){setTimeout(function(){if(J&amp;&amp;!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&amp;&amp;!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return&nbsp;!F.status&amp;&amp;location.protocol=="file:"||(F.status&gt;=200&amp;&amp;F.status&lt;300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&amp;&amp;F&amp;&amp;F.indexOf("xml")&gt;=0,I=E?J.responseXML:J.responseText;if(E&amp;&amp;I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&amp;&amp;G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&amp;").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H&lt;F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("&lt;"+G+" /&gt;").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H&lt;F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G&lt;F;G++){var E=o.data(this[G],"olddisplay");if(!E&amp;&amp;E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G&lt;F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&amp;&amp;o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&amp;&amp;o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&amp;&amp;L||I[M]=="show"&amp;&amp;!L){return K.complete.call(this)}if((M=="height"||M=="width")&amp;&amp;this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H&gt;=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&amp;&amp;H||o.isFunction(G)&amp;&amp;G,duration:G,easing:F&amp;&amp;H||H&amp;&amp;!o.isFunction(H)&amp;&amp;H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&amp;&amp;this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&amp;&amp;(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&amp;&amp;E&gt;-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&amp;&amp;o.timers.push(F)&amp;&amp;!n){n=setInterval(function(){var K=o.timers;for(var J=0;J&lt;K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G&gt;=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&amp;&amp;E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&amp;&amp;E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&amp;&amp;E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&amp;&amp;J!==K&amp;&amp;J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&amp;&amp;!(o.offset.doesAddBorderForTableAndCells&amp;&amp;/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&amp;&amp;M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='
<div style="border-right: #000 5px solid; padding-right: 0px; border-top: #000 5px solid; padding-left: 0px; left: 0px; padding-bottom: 0px; margin: 0px; border-left: #000 5px solid; width: 1px; padding-top: 0px; border-bottom: #000 5px solid; position: absolute; top: 0px; height: 1px"><div></div></div>
{| class="FCK__ShowTableBorders" style="border-right: #000 5px solid; padding-right: 0px; border-top: #000 5px solid; padding-left: 0px; left: 0px; padding-bottom: 0px; margin: 0px; border-left: #000 5px solid; width: 1px; padding-top: 0px; border-bottom: #000 5px solid; position: absolute; top: 0px; height: 1px" cellspacing="0" cellpadding="0"
|-
| 
|}

';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&amp;&amp;(!/^body|html$/i.test(E.tagName)&amp;&amp;o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&amp;&amp;document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&amp;&amp;document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})(); } // end of importing jQuery ' 

// addHandler in wikibits.js has some problems? overwrite it here: function addHandler( element, attach, handler ) { 

    jQuery(element).bind(attach, handler);

} 

/* 

== 中文处理  ==

*/

//设置中文语言页 var htmlE=document.documentElement; htmlE.setAttribute("lang",wgUserLanguage); htmlE.setAttribute("xml:lang",wgUserLanguage); 

//返回繁简字串 

function wgULS(hans,hant,cn,tw,hk,sg,zh){ 

    ret = {
        'zh-hans':hans||cn||sg,
        'zh-hant':hant||tw||hk,
        'zh-cn':cn||hans||sg,
        'zh-sg':sg||hans||cn,
        'zh-tw':tw||hant||hk,
        'zh-hk':hk||hant||tw
    }
    if (ret[wgUserLanguage])
        return ret[wgUserLanguage];
    else
        return zh||hant||hans||cn||tw||hk||sg;//保证每一语言有值

} 

function wgUVS(hans,hant,cn,tw,hk,sg,zh){ 

    ret = {
        'zh-hans':hans||cn||sg,
        'zh-hant':hant||tw||hk,
        'zh-cn':cn||hans||sg,
        'zh-sg':sg||hans||cn,
        'zh-tw':tw||hant||hk,
        'zh-hk':hk||hant||tw
    }
    if (ret[wgUserVariant])
        return ret[wgUserVariant];
    else
        return zh||hant||hans||cn||tw||hk||sg;//保证每一语言有值

} 

/* 当需要时载入对应的 scripts */ 

if (wgAction == "edit" || wgAction == "submit") //scripts specific to editing pages { 

    importScript("MediaWiki:Common.js/edit.js")

} /* else if (wgCanonicalSpecialPageName == "Search") //scripts specific to Special:Search { 

    importScript("MediaWiki:Common.js/search.js")

} 

*/

/* 

== 辅助处理  ==

*/

//功能设定 if(!window.JSConfig){var JSConfig={};} JSConfig.collapseText=wgULS('隐藏▲','隐藏▲');//指示折叠收缩的默认文字 JSConfig.expandText=wgULS('显示▼','显示▼');//指示折叠展开的默认文字 JSConfig.autoCollapse=2; //文章少于 autoCollapse 个折叠块时，不自动折叠 /* JSConfig.SpecialSearchEnhancedDisabled=false; //是否禁止增加其它搜索引擎 */ 

//新的getElementsByClassName /* 

    Developed by Robert Nyman, http://www.robertnyman.com
    Code/licensing: http://code.google.com/p/getelementsbyclassname/

*/

var getElementsByClassName = function (elm, tag, className){ 

    if (document.getElementsByClassName) {
        getElementsByClassName = function (elm, tag, className) {
            elm = elm || document;
            var elements = elm.getElementsByClassName(className);
            if (tag=="*") return elements;
            var nodeName = (tag)? new RegExp("\\b" + tag + "\\b", "i")&nbsp;: null,
                returnElements = [],
                current;
            for(var i=0, il=elements.length; i&lt;il; i+=1){
                current = elements[i];
                if(!nodeName || nodeName.test(current.nodeName)) {
                    returnElements.push(current);
                }
            }
            return returnElements;
        };
    }
    else if (document.evaluate) {
        getElementsByClassName = function (elm, tag, className) {
            tag = tag || "*";
            elm = elm || document;
            var classes = className.split(" "),
                classesToCheck = "",
                xhtmlNamespace = "http://www.w3.org/1999/xhtml",
                namespaceResolver = (document.documentElement.namespaceURI === xhtmlNamespace)? xhtmlNamespace&nbsp;: null,
                returnElements = [],
                elements,
                node;
            for(var j=0, jl=classes.length; j&lt;jl; j+=1){
                classesToCheck += "[contains(concat(' ', @class, ' '), ' " + classes[j] + " ')]";
            }
            try {
                elements = document.evaluate(".//" + tag + classesToCheck, elm, namespaceResolver, 0, null);
            }
            catch (e) {
                elements = document.evaluate(".//" + tag + classesToCheck, elm, null, 0, null);
            }
            while ((node = elements.iterateNext())) {
                returnElements.push(node);
            }
            return returnElements;
        };
    }
    else {
        getElementsByClassName = function (elm, tag, className) {
            tag = tag || "*";
            elm = elm || document;
            var classes = className.split(" "),
                classesToCheck = [],
                elements = (tag === "*" &amp;&amp; elm.all)? elm.all&nbsp;: elm.getElementsByTagName(tag),
                current,
                returnElements = [],
                match;
            for(var k=0, kl=classes.length; k&lt;kl; k+=1){
                classesToCheck.push(new RegExp("(^|\\s)" + classes[k] + "(\\s|$)"));
            }
            for(var l=0, ll=elements.length; l&lt;ll; l+=1){
                current = elements[l];
                match = false;
                for(var m=0, ml=classesToCheck.length; m&lt;ml; m+=1){
                    match = classesToCheck[m].test(current.className);
                    if (!match) {
                        break;
                    }
                }
                if (match) {
                    returnElements.push(current);
                }
            }
            return returnElements;
        };
    }
    return getElementsByClassName(elm, tag, className);

}; 

//遍历 function applyEach(callback,array){ 

    var i=0,j=array.length;
    while(i&lt;j){callback(array[i++]);}

} 

// 移动元素 function elementMoveto(node, refNode, pos){//默认位置为refNode前 

    if(node &amp;&amp; refNode){
        var parent=refNode.parentNode;
        if (pos &amp;&amp; pos=='after') {refNode=refNode.nextSibling;}
        try {
            if(refNode){
                parent.insertBefore(node, refNode);
            }else{
                parent.appendChild(node);
            }
        } catch (DOMException) {};
    }

} //创建元素 function createElement(tag,children,props){ 

    var element = document.createElement(tag);
    if(!(children instanceof Array)){children=[children];}
    applyEach(function(child){
        if(typeof child=='string'){child=document.createTextNode(child);}
        if(child){element.appendChild(child);}
    },children);
    if(typeof props=='object'){
        for(var k in props){
            switch(k){
            case 'styles':
                var styles=props.styles;
                for(var s in styles){element.style[s]=styles[s];}
                break;
            case 'events':
                var events=props.events;
                for(var e in events){ addHandler(element,e,events[e]); }
                break;
            case 'class':
                element.className=props[k];break;
            default:
                element.setAttribute(k,props[k]);
            }
        }
    }
    return element;

} 

//wiki URL var wgProjectURL={ 

    en:'http://en.wikipedia.org',de:'http://de.wikipedia.org',fr:'http://fr.wikipedia.org',
    pl:'http://pl.wikipedia.org',ja:'http://ja.wikipedia.org',it:'http://it.wikipedia.org',
    nl:'http://nl.wikipedia.org',pt:'http://pt.wikipedia.org',es:'http://es.wikipedia.org',
    sv:'http://sv.wikipedia.org',//仅列前十名其它语言百科
    m:'http://meta.wikimedia.org',b:'http://zh.wikibooks.org',q:'http://zh.wikiquote.org',
    n:'http://zh.wikinews.org',wikt:'http://zh.wiktionary.org',mw:'http://www.mediawiki.org',
    commons:'http://commons.wikimedia.org'

} /** 

*将页面名称转换为URL 
**@param page 页面名称
*@param paras 附加后缀对象，用空对象{}做参数可以取得源码 
*/

function getWikiPath(page,paras){ 

    var reg=/^[a-z]+:/;
    var pre=page.match(reg);
    pre = pre &amp;&amp; wgProjectURL[pre[0].replace(/:$/,'').toLowerCase()];''
    if (pre) {page=page.replace(reg,'');} else {pre=wgServer;} //保障没有相对路径，以照顾在线代理。''
    var url = pre + wgScript + '?title=' + encodeURI( page.replace( ' ', '_' ) );
    if(typeof paras=='object'){
        paras.ctype=paras.ctype||'text';
        paras.dontcountme=paras.dontcountme||'s';
        paras.action=paras.action||'raw';
        for(var k in paras){url += '&amp;' + k + '=' + paras[k]; }
    }
    return url;

} 

//引入[[特殊:Gadgets]]要求的脚本和样式 if(window.requireScripts instanceof Array){ 

    applyEach(importScript,requireScripts);

} if(window.requireStylesheets instanceof Array){ 

    applyEach(importStylesheet,requireStylesheets);

} window.requireScripts=[]; window.requireScripts.push = function(script) { 

    importScript(script);

}; window.requireStylesheets=[]; window.requireStylesheets.push = function(style) { 

    importStylesheet(style);

}; 

/* 测试元素中是否含有指定的样式 ************************************** 

*Description: 使用正则式与缓存来提高性能 
*Maintainers: User:fdcn @zh.wikipedia 
*,, @en.wikipedia 
*/

var hasClass = (function () { 

    var reCache = {};
    return function (element, className) {
        return (reCache[className]&nbsp;? reCache[className]&nbsp;: (reCache[className] = new RegExp("(?:\\s|^)" + className + "(?:\\s|$)"))).test(element.className);
    };

})(); 

/* 

== IE兼容性修正  ==

*/

function fixIE(){ } if (navigator.appName == "Microsoft Internet Explorer"){ 

    /** Internet Explorer bug fix **************************************************
     *
     *  Description: Fixes IE horizontal scrollbar bug
     *  Maintainers: [[用户:Fdcn]]
     */
    var oldWidth;
    var docEl = document.documentElement;
    function fixIEScroll(){
        if (!oldWidth || docEl.clientWidth &gt; oldWidth){
            doFixIEScroll();
        }else{
            setTimeout(doFixIEScroll, 1);
        }
        oldWidth = docEl.clientWidth;
    }

    function doFixIEScroll() {
        docEl.style.overflowX = (docEl.scrollWidth - docEl.clientWidth &lt; 4)&nbsp;? "hidden"&nbsp;: "";
    }

    document.attachEvent("onreadystatechange", fixIEScroll);
    attachEvent("onresize", fixIEScroll);

    //Import scripts specific to Internet Explorer 6
    if (navigator.appVersion.substr(22, 1) == "6"){
        importScript("MediaWiki:Common.js/IE60Fixes.js")
    }

} 

/* 

== 工具提示与快捷键  ==

*/

ta = { 

    'ca-article'        &nbsp;: ['a',wgULS('浏览条目正文','浏览条目正文')],
    'ca-nomove'         &nbsp;: ['',wgULS('你不能移动这个页面','你不能移动这个页面')],''
    'n-Featured_content'&nbsp;: ['',wgULS('查看中文维基百科的特色内容','查看中文维基百科的特色内容')],''
    'n-indexpage'       &nbsp;: ['',wgULS('以分类索引搜寻中文维基百科','以分类索引搜寻中文维基百科')],''
    'n-commonsupload'   &nbsp;: ['',wgULS('把自由版权图片上传到维基共享资源','把自由版权图片上传到维基共享资源')],''
    'n-contact'         &nbsp;: ['',wgULS('如何联络维基百科','如何联络维基百科')],''
    'n-villagepump'     &nbsp;: ['',wgULS('参与维基百科社群的讨论','参与维基百科社群的讨论')],''
    'n-Information_desk'&nbsp;: ['',wgULS('解答任何与维基百科无关的问题的地方','解答任何与维基百科无关的问题的地方')],''
    'n-conversion'      &nbsp;: ['',wgULS('提出字词转换请求','提出字词转换请求')],''
    'n-allpages'        &nbsp;: ['',wgULS('浏览所有页面的清单','浏览所有页面的清单')],''
    'ca-nstab-project'  &nbsp;: ['a',wgULS('查看维基计划页面','查看维基计画页面')],
    'n-policy'          &nbsp;: ['',wgULS('查看维基百科的方针和指引','查看维基百科的方针和指引')],''
    'n-about'           &nbsp;: ['',wgULS('查看维基百科的简介','查看维基百科的简介')]''
 

} 

/* 

== 特色条目优良与条目链接显示  ==

*/

addOnloadHook( function(){ 

    var InterwikiLinks = document.getElementById( "p-lang" );
    if (&nbsp;!InterwikiLinks ) { return; }
    applyEach( function(link){
        if ( document.getElementById( link.className + "-fa" ) ) {
            link.className += " FA"
            link.title = wgULS("此条目在此语言版本中为特色条目","此条目在此语言版本中为特色条目");
        }
        if ( document.getElementById( link.className + "-ga" ) ) {
            link.className += " GA"
            link.title = wgULS("此条目在此语言版本中为优良条目","此条目在此语言版本中为优良条目");
        }
    },InterwikiLinks.getElementsByTagName("li") );

}); 

/* 

== 增加摺叠功能  ==

*/

/** 摺叠 div table ***************************** 

 *  Description: 实现div.NavFrame和table.collapsible的可折叠性。
 *  JSConfig的collapseText、expandText、autoCollapse属性定义默认文字和默认最少自动折叠块
 *  Maintainers: User:fdcn
 */

function cancelBubble(e){ 

    e=e||window.event;
    if(e.stopPropagation){e.stopPropagation();}else{e.cancelBubble=true;}

} function createToggleButton(head){ 

    var parent=head;
    if( head.tagName.toLowerCase()=='tr' ){//对表格特别处理
        if(head.getElementsByTagName("th").length){
            parent=head.cells[parent.cells.length-1];
        } else {return;}
    }
    var textS,textH,button=getElementsByClassName(head,"span","NavToggle")[0];
    if(button){parent=button.parentNode;} else{
        textS=createElement("span",[JSConfig.expandText],{'class':'toggleShow'});
        textH=createElement("span",[JSConfig.collapseText],{'class':'toggleHide'});
        button=createElement("span",[textS,textH],{'class':'NavToggle',styles:{'width':"3.8em"}});
    }
    button.style.display="inline";
    head.className+=" uncollapse toggleHotspot";
    parent.insertBefore( button, parent.childNodes[0] );

} function wgCollapse(head,container,defaultCollapse){ 

    if(head){ createToggleButton(head); }
    var self=this;
    this.state=0;
    this.container=container;
    applyEach( function(h){
        if ( h.nodeType==1    
            &amp;&amp;&nbsp;!hasClass(h,"uncollapse")
            &amp;&amp;&nbsp;!hasClass(h,"toggleShow")
            &amp;&amp;&nbsp;!hasClass(h,"toggleHide")
        ) { h.className+=" toggleHide"; }
    }, defaultCollapse );//预设的隐藏元素
    function getArray(clsname){
        var r=[],i=0,e,ea=getElementsByClassName(container,"*",clsname);
        while(e=ea[i++]){
            var parent=e.parentNode;
            while(!hasClass(parent,'NavFrame')&amp;&amp;!hasClass(parent,'collapsible')){parent=parent.parentNode;}
            if(parent==container){r.push(e);}
        }
        return r;
    }
    var toggleA=getArray("toggleShow");
    var toggleB=getArray("toggleHide");
    var hotspots=getArray("toggleHotspot");
    function _toggle(list,state){
        var i=0,e;
        while(e=list[i++]){e.style.display=state?e.showStyle||'':'none';}''
    }
    this.toggle=function(state){
        self.state=(typeof state=='undefined')?1-self.state:state;
        _toggle(toggleA,self.state);
        _toggle(toggleB,1-self.state);
    }
    var i=0,h;
    while(h=hotspots[i++]){
        applyEach(function(link){
            addClickHandler(link,cancelBubble);
        },h.getElementsByTagName("A"));
        h.style.cursor = "pointer";
        addClickHandler(h,function(){self.toggle();});
    }

} addOnloadHook(function(){ 

    //init
    var items=[];
    applyEach( function(NavFrame){
        var i=0,
            child=NavFrame.childNodes,
            head;
        while (head=child[i++]) {
            if( head.className&amp;&amp;hasClass(head,"NavHead") ){break;}
        }
        items.push(new wgCollapse(head,NavFrame,NavFrame.childNodes));
    },getElementsByClassName(document,"div","NavFrame") );
    applyEach ( function(table){
        var rows = table.rows;
        items.push(new wgCollapse(rows[0],table,rows));
    },getElementsByClassName(document,"table","collapsible") );
    var item,i=0,count=items.length;
    while ( item=items[i++] ) {
        item.toggle (
            hasClass(item.container,"collapsed") 
            || ( count&gt;=JSConfig.autoCollapse&amp;&amp;hasClass(item.container,"autocollapse") )
        );
    }

}); //修正摺叠后定位变化 hookEvent("load",function(){if(location.hash){location.href=location.hash;}}); 

/* 

== 取消讨论页的[+]按钮  ==

*/

addOnloadHook(function () { 

    if(document.getElementById('no-newsection') &amp;&amp; document.getElementById('ca-addsection')) {
        document.getElementById('ca-addsection').style.display="none";
    }

}); 

/* 

== WikiMiniAtlas世界地图  ==

*/

/** WikiMiniAtlas ******************************************************* 

   *
   *  描述：WikiMiniAtlas是一个popup而可点选与拖曳的世界地图。
   *               这个脚本将会让所有的经纬度标示中显示WikiMiniAtlas的popup开启按钮。
   *               由于被许多计画使用，因此脚本放置在元维基中。
   *               更多资讯请详见[[meta:WikiMiniAtlas|RTENOTITLE]]。
   *  创建者：[[:en:User:Dschwen]]
   */
 

if (wgServer == "https://secure.wikimedia.org") { 

  var metaBase = "https://secure.wikimedia.org/wikipedia/meta";

} else { 

  var metaBase = "http://meta.wikimedia.org";

} importScriptURI(metaBase+"/w/index.php?title=MediaWiki:Wikiminiatlas.js&amp;action=raw&amp;ctype=text/javascript&amp;smaxage=21600&amp;maxage=86400") 

/* 

== 反frame  ==

*/

try { 

    if (top.location&nbsp;!= self.location) {
        top.location.replace(self.location);
    }

}catch(ex){ 

    top.location.replace(self.location);

} 

/* 

== 保护选项校正  ==

*/

if(wgAction=="protect") { 

 addOnloadHook( function(){
  var pform=document.getElementById("mw-Protect-Form");
  var timeoptions;

  timeoptions=pform["wpProtectExpirySelection-edit"].options;
  if(timeoptions[0].value!="existing"){
   timeoptions[timeoptions.length-1].selected=true;
   ProtectionForm.updateExpiryList(pform["wpProtectExpirySelection-edit"]);
  }

  timeoptions=pform["wpProtectExpirySelection-move"].options;
  if(timeoptions[0].value!="existing"){
   timeoptions[timeoptions.length-1].selected=true;
   ProtectionForm.updateExpiryList(pform["wpProtectExpirySelection-move"]);
  }
 
 });

} 

/* 

== 站内搜索统计  ==

see http://wikistics.falsikon.de/ 

*/

// This script is needed for anonymously logging search terms by the Squids; see [[Wikt:de:MediaWiki:If-search.js]] // The search URL will contain the search term // Please modify retroactively 

// You may have to adapt this? var searchPageName = "Special:Search"; var searchPagePath = wgArticlePath.replace('$1',searchPageName); addOnloadHook(function() { 

    var searchPairs = {
        'searchform':'searchInput',
        'powersearch':'powerSearchText',
        'search':'searchText',
        'bodySearch':'bodySearchIput'
    };
    function $(ID) {return document.getElementById(ID);}
    function SubSearch(s) {
        var se=$(s);
        var text = $(searchPairs[s]).value;
        text = text == ''&nbsp;? ''&nbsp;: '/' + text;
        switch (s) {
            case 'searchform':
                se.action = searchPagePath + text;
                break;
            case "powersearch":
                se.getElementsByTagName("input")[0].value = searchPageName + text;
                break;
            case "search":
                se.firstChild.value = searchPageName + text;
                break;
            case "bodySearch":
                se.action = searchPagePath + text;
        }
    }

    for (s in searchPairs) {
        var e=$(s);
        if (e) {
            addHandler( e, "submit", function(){SubSearch(s);} );
            e.parentNode.innerHTML = e.parentNode.innerHTML; // f***ing IE
        }
    }

}); 

/* 

== 撷取选单文字按钮  ==

*/

function addGetMenuTextButton(id, srcMenu, targetText, tiptext, afterSelIdx) { 

 var btnAdd=createElement("a", ((!tiptext)?"(+)":tiptext), {
  'id': id ,
  'href'&nbsp;: '#'
 });
 btnAdd.srcMenu=srcMenu;
 btnAdd.targetText=targetText;
 btnAdd.afterSelIdx=(!afterSelIdx || isNaN(afterSelIdx))?0:afterSelIdx;
 btnAdd.onclick=function(){
  this.targetText.value+=this.srcMenu.options[this.srcMenu.selectedIndex].value;
  this.srcMenu.selectedIndex=this.afterSelIdx;
  return false;
 }

<br>

 srcMenu.parentNode.appendChild(btnAdd);

} 

hookEvent("load", function(){ 

 var useForm;

 if(wgAction=="protect" || wgAction=="unprotect"){     //保护理由
  useForm=document.getElementById("mw-Protect-Form");
  addGetMenuTextButton("wpProtectReasonSelectionAdd", useForm.wpProtectReasonSelection, useForm["mwProtect-reason"], "", 0);

 }else if(wgPageName.toLowerCase()=="special:block"){     //封禁理由
  useForm=document.getElementById("blockip");
  addGetMenuTextButton("wpBlockReasonListAdd", useForm.wpBlockReasonList, useForm.wpBlockReason, "", 0);

 }

} ); 

/* 

== 修正登入后即登出问题  ==

// fixed in mediawiki 

if( wgCanonicalSpecialPageName=="Userlogin" ) { 

 if( (""+window.location).indexOf("returnto=Special:"+encodeURIComponent("用户登出"))&gt;=0
  || (""+window.location).indexOf("returnto=Special:用户登出")&gt;=0
 ) {
  window.location.replace(wgServer+wgScript+"?title=Special:UserLogin");
 }

} 

== 避免在主条目中出现卷轴框  ==

*/

if(!wgCanonicalNamespace) addOnloadHook( function(){ 

 function disableDivOverflowScroll(obj){
  var divs=[];
 
  for(var i=0;i&lt;obj.children.length;i++){
   if(obj.children[i].tagName.toLowerCase()=="div"){
    divs[divs.length]=obj.children[i];
   }
  }
 
  for(var i=0;i&lt;divs.length;i++){
   if(divs[i].className.indexOf("noprint")==-1 &amp;&amp; divs[i].className.indexOf("thumb")==-1 ){
    if(!!(divs[i].style.overflow) ||&nbsp;!!(divs[i].style.overflowY)) {
     divs[i].style.overflowY="visible";
     divs[i].style.padding="";
     divs[i].style.border="";
     divs[i].style.height="";
    }

    disableDivOverflowScroll(divs[i]);
   }
  }
 }

 disableDivOverflowScroll(document.getElementsByTagName("body")[0]);

}); 

/* 

== metaBox  ==

HERE STARTS THE WORKING-CODE OF "METABOXES"*/ 

 /* Funcionament de la Plantilla:Metacaixa
 Implementat per: Usuari:Peleguer.
 Actualitzat per Joanjoc seguint les indicacions d'en Martorell
 */
 
 function MetaCaixaInit(){
  //S'executa al carregar-se la pàgina, si hi ha metacaixes,
  // s'assignen els esdeveniments als botons
  //alert("MetaCaixaInit");
 
  var i=0       //Inicialitzem comptador de caixes
  for (i=0;i&lt;=9;i++){
     var vMc = document.getElementById("mc"+i);
     if (!vMc) break;
     //alert("MetaCaixaInit, trobada Metacaixa mc"+i);
 
     var j=1    //Inicialitzem comptador de botons dins de la caixa
     var vPsIni = 0  //Pestanya visible inicial
     for (j=1;j&lt;=9;j++){
        var vBt = document.getElementById("mc"+i+"bt"+j);
        if (!vBt) break;
        //alert("MetaCaixaInit, trobat botó mc"+i+"bt"+j);
        vBt.onclick = MetaCaixaMostraPestanya;          //A cada botó assignem l'esdeveniment onclick
        //alert (vBt.className);
        if (vBt.className=="mcBotoSel") vPsIni=j;  //Si tenim un botó seleccionat, en guardem l'index
     }
     //alert ("mc="+i+", ps="+j+", psini="+vPsIni );
     if (vPsIni == 0) { //Si no tenim cap botó seleccionat, n'agafem un aleatòriament
         vPsIni = 1+Math.floor((j-1)*Math.random())&nbsp;;
         //alert ("Activant Pestanya a l'atzar; _mc"+i+"bt"+vPsIni +"_");
         document.getElementById("mc"+i+"ps"+vPsIni).style.display = "block";
         document.getElementById("mc"+i+"ps"+vPsIni).style.visibility = "visible";
         document.getElementById("mc"+i+"bt"+vPsIni).className="mcBotoSel";
     } 
  }
 }
 
 function MetaCaixaMostraPestanya(){
  //S'executa al clicar una pestanya,
  //aquella es fa visible i les altres s'oculten
  var vMcNom = this.id.substr(0,3); //A partir del nom del botó, deduïm el nom de la caixa
  var vIndex = this.id.substr(5,1); //I l'index
 
  var i=1
  for (i=1;i&lt;=9;i++){        //busquem totes les pestanyes d'aquella caixa
      //alert(vMcNom+"ps"+i);
        var vPsElem = document.getElementById(vMcNom+"ps"+i);
        if (!vPsElem) break;
        if (vIndex==i){ //Si és la pestanya bona la mostrem i canviem la classe de botó
                vPsElem.style.display = "block";
                vPsElem.style.visibility = "visible";
                document.getElementById(vMcNom+"bt"+i).className="mcBotoSel";
        } else {             //Sinó, l'ocultem i canviem la classe de botó
                vPsElem.style.display = "none";
                vPsElem.style.visibility = "hidden";
                document.getElementById(vMcNom+"bt"+i).className="mcBoto";
        }
  }
  return false; //evitem la recàrrega de la pàgina
 }
 
 addOnloadHook(MetaCaixaInit);
 
 /*HERE FINISHES THE WORKING-CODE OF "METABOXES"*/

/* 

== 智能讨论页编辑（新建）  ==

*/

addOnloadHook(function () { 

    catalk = document.getElementById('ca-talk');
        if (! catalk) return;
    if( catalk.className == 'new' ) {
        catalk.firstChild.href +=
            '&amp;editintro=Template:TalkPageEditintro&amp;preload=' + wgULS('Template:TalkPagePreload','Template:TalkPagePreload/zh-hant');
    }

}); // 

/** Magic editintros **************************************************** 

 *
 *  Description: Adds editintros on disambiguation pages and BLP pages.
 *  Maintainers: [[:en:User:RockMFR]], [[用户:PhiLiP]]
 */
 

function addEditIntro(name) { 

  var el = document.getElementById('ca-edit');
  if (!el)
    return;
  el = el.getElementsByTagName('a')[0];
  if (el)
    el.href += '&amp;editintro=' + name;

} 

if (wgNamespaceNumber == 0) { 

  addOnloadHook(function(){
    if (document.getElementById('disambig') || document.getElementById('disambigbox'))
      addEditIntro('Template:Disambig_editintro');
  });
 
  addOnloadHook(function(){
    var cats = document.getElementById('mw-normal-catlinks');
    if (!cats)
      return;
    cats = cats.getElementsByTagName('a');
    for (var i = 0; i &lt; cats.length; i++) {
      if (cats[i].title == 'Category:在世人物') {
        addEditIntro('Template:BLP_editintro');
        break;
      }
    }
  });

} 

/* 

== 加载ToolTips  ==

*/

importScript( "MediaWiki:Tooltips.js" ); 

var dynamicTooltip = { 

  toggle&nbsp;: false,
 
  doTip&nbsp;: function (evt)
  {
    x = evt.pageX ||
        evt.clientX + ((document.documentElement&nbsp;? document.documentElement.scrollLeft&nbsp;: 0)
                       || document.body.scrollLeft || 0);
    y = evt.pageY ||
        evt.clientY + ((document.documentElement&nbsp;? document.documentElement.scrollTop&nbsp;: 0)
                       || document.body.scrollTop || 0);
    var tip = document.createElement ('div');
    var text = document.createTextNode ('Initial mouse coordinates: x = ' + x + ', y = ' + y);
    if (this.tt_toggle) {
      // Make the whole stuff a dummy link every second time.
      var lk = document.createElement ('a');
      lk.appendChild (text);
      lk.setAttribute ('href', '#');
      tip.appendChild (lk);
    } else {
      tip.appendChild (text);
    }
    this.tt_toggle =&nbsp;!this.tt_toggle;
    return tip;
  }

} 

function setTooltips (){ 

    var close_imgs = new Array(3);
    close_imgs[0] = document.createElement('img');
    close_imgs[0].src = "http://upload.wikimedia.org/wikipedia/commons/f/f8/Tooltip-CloseButton.png";
    close_imgs[1] = document.createElement('img');
    close_imgs[1].src = "http://upload.wikimedia.org/wikipedia/commons/5/5a/Tooltip-CloseButton-Hover.png";
    close_imgs[2] = document.createElement('img');
    close_imgs[2].src = "http://upload.wikimedia.org/wikipedia/commons/d/df/Tooltip-CloseButton-Active.png";
    close_imgs[0].width = close_imgs[1].width = close_imgs[2].width = "16";
    function createTips(clsname,tipclsname,attrs,isChild){
        var tip_elements = getElementsByClassName( document,'*',clsname);
        var tip_tip_elements = getElementsByClassName( document,'*',tipclsname);
        for (var i = 0,e; e = tip_elements[i]; i++) {
            new Tooltip(isChild?e.firstChild:e,tip_tip_elements[i],attrs);
        }
    }
    createTips(
        'TipTrackButton',
        'TipTrackButton_tip',
        {mode&nbsp;: Tooltip.TRACK,close_button&nbsp;: close_imgs}
    );
    createTips(
        'TipMouseButton',
        'TipMouseButton_tip',
        { mode&nbsp;: Tooltip.MOUSE,close_button&nbsp;: close_imgs}
    );
    createTips(
        'TipClickButton',
        'TipClickButton_tip',
        {
            mode&nbsp;: Tooltip.MOUSE,
            close_button&nbsp;: close_imgs,
            activate: Tooltip.CLICK,
            deactivate&nbsp;: Tooltip.CLICK_ELEM
        },
        true
    );
    createTips(
        'TipTrack',
        'TipTrack_tip',
        { mode&nbsp;: Tooltip.TRACK }
    );
    createTips(
        'TipMouse'
        ,'TipMouse_tip',
        { mode&nbsp;: Tooltip.MOUSE }
    );
    createTips(
        'TipClick',
        'TipClick_tip',
        { 
            mode&nbsp;: Tooltip.MOUSE,
            activate: Tooltip.CLICK,
            deactivate&nbsp;: Tooltip.CLICK_ELEM
        },
        true
    );

} 

hookEvent ('load', setTooltips); 

<br>/* Adds an additional link to the complete list of languages available.*/ if (wgPageName == 'Wikipedia:首页' || wgPageName == 'Wikipedia_talk:首页') 

    addOnloadHook(function () {
        addPortletLink('p-lang', '/wiki/Wikipedia:维基百科语言列表',
                 wgULS('维基百科语言列表','维基百科语言列表'), 'interwiki-completelist', wgULS('维基百科的完整各语言列表', '维基百科的完整各语言列表'));
        var nstab = document.getElementById('ca-nstab-project');
        if (nstab &amp;&amp; wgUserLanguage.indexOf("zh") &gt; -1) 
            nstab.firstChild.firstChild.nodeValue = wgULS('首页','首页');
    }

) 

// importScript('MediaWiki:Common.js/Delayed.js'); 

// Top icon: [[模板:Topicon]] jQuery(function() { 

    // nostalgia, standard and cologneblue use .pagetitle
    // what's the problem on modern?
    jQuery('&lt;div /&gt;')
        .css('float', 'right')
        .append(jQuery('.topicon').css({'float': 'right', 'position': 'static'}).show())
        .prependTo('#firstHeading, .pagetitle');

}); 

// fixing /zh/xxx urls 

jQuery(function() { 

    jQuery('a[href^=/zh/]').each(function() {
        jQuery(this).attr('href', wgScript + '?title=' + encodeURIComponent(decodeURI(jQuery(this).attr('href')).slice(4)) + '&amp;variant=zh');
    });

}); 

//&lt;/source&gt; 

<br>

[[en:User:Mike Dillon|en:User:Mike Dillon]] [[en:User:R. Koot|en:User:R. Koot]] [[en:User:SG|en:User:SG]]

/* MediaWiki:Dianzhiskin.js */
