mw.loader.using(['mediawiki.Uri'],function(){var ref,loc;try{ref=new mw.Uri(document.referrer);loc=new mw.Uri(location.href);}catch(e){return;}if(/\.google\./.test(ref.host)&&/\/zh(-[^/]+)?\//.test(loc.path)){loc.path=loc.path.replace(/\/zh(-[^/]+)?\//,"/wiki/");location=loc.toString();}});mw.loader.using(['mediawiki.util','ext.gadget.site-lib'],function(){(function($,mw){window.setCookie=function(cookieName,cookieValue,expiryDay){$.cookie(cookieName,cookieValue,{expires:expiryDay,path:'/'});};window.getCookie=function(cookieName){return $.cookie(cookieName);};window.deleteCookie=function(cookieName){$.cookie(cookieName,null);};if(wgAction=="edit"||wgAction=="submit"||wgCanonicalSpecialPageName=='Search'){importScript('MediaWiki:Common.js/edit.js');}window.JSConfig=window.JSconfig||{};window.JSConfig.collapseText=wgULS('隐藏▲','隱藏▲');window.JSConfig.expandText=wgULS('显示▼','顯示▼');window.JSConfig.autoCollapse=2;window.getElementsByClassName=function(elm,tag,
className){return $(tag+'.'+className,elm);};window.applyEach=function(callback,array){var i=0,j=array.length;while(i<j){callback(array[i++]);}};window.elementMoveto=function(node,refNode,pos){if(node&&refNode){if(pos&&pos=='after'){$(refNode).after(node);}else{$(refNode).before(node);}}};window.createElement=function(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;};window.wgProjectURL={en:'//en.wikipedia.org',de:'//de.wikipedia.org',fr:
'//fr.wikipedia.org',pl:'//pl.wikipedia.org',ja:'//ja.wikipedia.org',it:'//it.wikipedia.org',nl:'//nl.wikipedia.org',pt:'//pt.wikipedia.org',es:'//es.wikipedia.org',sv:'//sv.wikipedia.org',m:'//meta.wikimedia.org',b:'//zh.wikibooks.org',q:'//zh.wikiquote.org',n:'//zh.wikinews.org',wikt:'//zh.wiktionary.org',mw:'//www.mediawiki.org',commons:'//commons.wikimedia.org'};window.getWikiPath=function(page,paras){var reg=/^[a-z]+:/;var pre=page.match(reg);pre=pre&&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+='&'+k+'='+paras[k];}}return url;};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);};window.hasClass=function(elem,cls){return $(elem).hasClass(cls);};if($.browser.msie){var oldWidth;var docEl=document.documentElement;function fixIEScroll(){if(!oldWidth||docEl.clientWidth>oldWidth){doFixIEScroll();}else{setTimeout(doFixIEScroll,1);}oldWidth=docEl.clientWidth;}function doFixIEScroll(){docEl.style.overflowX=(docEl.scrollWidth-docEl.clientWidth<4)?"hidden":"";}document.attachEvent("onreadystatechange",fixIEScroll);attachEvent("onresize",fixIEScroll);if(navigator.appVersion.substr(22,1)=="6"){importScript("MediaWiki:Common.js/IE60Fixes.js")}}if(navigator.appVersion.search(/windows nt 5/i)!=-1){mw.util.addCSS('.IPA {font-family: "Lucida Sans Unicode", "Arial Unicode MS";} '+'.Unicode {font-family: "Arial Unicode MS", "Lucida Sans Unicode";}');}$(function(){$('#p-lang li').each(
function(){if($('#'+this.className+'-fa').length){this.className+=" FA"
this.title=wgULS("此条目在此语言版本中为特色条目","此條目在此語言版本中為特色條目");}else if($('#'+this.className+'-ga').length){this.className+=" GA"
this.title=wgULS("此条目在此语言版本中为优良条目","此條目在此語言版本中為優良條目");}});});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 collapseButton'});}button.style.visibility="visible";head.className+=" uncollapse toggleHotspot";parent.insertBefore(button,parent.childNodes[0]);}window.wgCollapse=function(head,container,defaultCollapse){if(head){createToggleButton(head);}var self=this
;this.state=0;this.container=container;applyEach(function(h){if(h.nodeType==1&&!hasClass(h,"uncollapse")&&!hasClass(h,"toggleShow")&&!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')&&!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";$(h).attr('tabindex','0').keydown(function(event){if(event.which==13){self.toggle();}});addClickHandler(h,function(){self.toggle();});}};$(function(){if(!window.disableCollapse){var items=[];applyEach(function(NavFrame){var i=0,child=NavFrame.childNodes,head;while(head=child[i++]){if(head.className&&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>=JSConfig.autoCollapse&&hasClass(item.container,"autocollapse")));}}});hookEvent("load",function(){if(location.hash){location.href=
location.hash;}});$(function(){if($('#no-newsection').length){$('#ca-addsection').css('display','none');}});if(!wgCanonicalNamespace)$(function(){var disableDivOverflowScroll=function(obj){var targetdiv;for(var i=obj.childNodes.length;i-->0;){if(obj.childNodes[i]&&(""+obj.childNodes[i].tagName).toLowerCase()=="div"){targetdiv=obj.childNodes[i];if((""+targetdiv.className).indexOf("noprint")==-1&&(""+targetdiv.className).indexOf("thumb")==-1){if(!!(targetdiv.style.overflow)||!!(targetdiv.style.overflowY))with(targetdiv.style){overflowY="visible";padding="";border="";height="";}disableDivOverflowScroll(targetdiv);}}}}
disableDivOverflowScroll(document.getElementsByTagName("body")[0]);});function MetaCaixaInit(){var i=0
for(i=0;i<=9;i++){var vMc=document.getElementById("mc"+i);if(!vMc)break;var j=1
var vPsIni=0
for(j=1;j<=9;j++){var vBt=document.getElementById("mc"+i+"bt"+j);if(!vBt)break;vBt.onclick=MetaCaixaMostraPestanya;if(vBt.className=="mcBotoSel")vPsIni=j;}if(vPsIni==0){vPsIni=1+Math.floor((j-1)*Math.random());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(){var vMcNom=this.id.substr(0,3);var vIndex=this.id.substr(5,1);var i=1
for(i=1;i<=9;i++){var vPsElem=document.getElementById(vMcNom+"ps"+i);if(!vPsElem)break;if(vIndex==i){vPsElem.style.display="block";vPsElem.style.visibility="visible";document.getElementById(vMcNom+"bt"+i).className="mcBotoSel";}else{vPsElem.style.display="none";vPsElem.style.visibility="hidden";document.getElementById(vMcNom+"bt"+i).className="mcBoto";}}return false;}addOnloadHook(MetaCaixaInit);$(function(){var catalk=$('#ca-talk');if(catalk.hasClass('new')&&wgNamespaceNumber!=2){var a=$('a:first',catalk);a.attr('href',a.attr('href')+'&section=new');}});var addEditIntro=function(name){$('#ca-edit, .editsection').each(function(){$('a',this).attr('href',$('a',this).attr('href')+'&editintro='+mw.util.wikiUrlencode(name));});};if(wgNamespaceNumber==0){$(function(){var uei=$('#useeditintro, .useeditintro');if(uei.length){addEditIntro(uei.eq(-1).attr('title'));uei.attr('title','');}});}$(function(){$('<div />').css('float','right').append($('.topicon').css({'float':'right','position':
'static'}).show()).insertBefore('#firstHeading span[dir=auto], #article .pagetitle span[dir=auto]');});$(function(){$('.anchordecodeme').each(function(){$(this).text(decodeURIComponent($(this).text().replace(/\.([0-9A-F]{2})/g,'%$1')));});});{var extraCSS=mw.util.getParamValue("withCSS");if(extraCSS&&extraCSS.match(/^MediaWiki:[^&<>=%]*\.css$/i)){importStylesheet(extraCSS);}var extraJS=mw.util.getParamValue("withJS");if(extraJS&&extraJS.match(/^MediaWiki:[^&<>=%]*\.js$/i)){importScript(extraJS);}}{var hilight=mw.util.getParamValue('hilight');if(wgAction==='history'&&hilight){$.each(hilight.split(','),function(_,v){$('input[name=oldid][value='+v+']').parent().addClass('not-patrolled');});}}if(mw.config.get('wgIsMainPage')||wgPageName=='Wikipedia_talk:首页'||wgPageName.indexOf("Wikipedia:首頁/自訂首頁設計/")==0){$(function(){mw.util.addPortletLink('p-lang',wgScriptPath+'/index.php?title=Wikipedia:维基百科语言列表',wgULS('维基百科语言列表',
'維基百科語言列表'),'interwiki-completelist',wgULS('维基百科的完整各语言列表','維基百科的完整各語言列表'));});}})(jQuery,mediaWiki);});;mw.loader.state({"site":"ready"});
/* cache key: zhwiki:resourceloader:filter:minify-js:7:b18c5d0e238996a458c3cf11c5627001 */