importScript_=importScript importScript=function(page,proj){if(!proj)importScript_(page) else{if(proj.indexOf('.')==-1)proj+='.wikipedia.org' importScriptURI('http://'+proj+'/w/index.php?action=raw&ctype=text/javascript&title='+encodeURIComponent(page.replace(/ /g,'_')))}} importMW=function(name){importScript('MediaWiki:'+name+'.js')} function LinkFA(){var pLang=document.getElementById('p-lang') if(!pLang)return var list={'fa':'Эта статья является избранной','fl':'Этот список или портал является избранным','ga':'Эта статья является хорошей'} var iw=pLang.getElementsByTagName('li') for(var i=0;iNavigationBarShowDefault&&hasClass(colTables[i],'autocollapse'))||hasClass(colTables[i],'collapsed'))collapseTable(i)}function collapseTable(idx){var Table=document.getElementById('collapsibleTable'+idx) var btn=document.getElementById('collapseButton'+idx) if(!Table||!btn)return false var Rows=Table.rows var isShown=(btn.firstChild.data==NavigationBarHide) btn.firstChild.data=isShown?NavigationBarShow:NavigationBarHide var disp=isShown?'none':Rows[0].style.display for(var i=1;iNavigationBarShowDefault&&!hasClass(colNavs[i],'expanded'))||hasClass(colNavs[i],'collapsed'))collapseDiv(i)}function collapseDiv(idx){var div=document.getElementById('NavFrame'+idx) var btn=document.getElementById('NavToggle'+idx) if(!div||!btn)return false var isShown=(btn.firstChild.data==NavigationBarHide) btn.firstChild.data=isShown?NavigationBarShow:NavigationBarHide var disp=isShown?'none':'block' for(var child=div.firstChild;child!=null;child=child.nextSibling)if(hasClass(child,'NavPic')||hasClass(child,'NavContent'))child.style.display=disp}var metaBase='http://meta.wikimedia.org' if(wgServer=='https://secure.wikimedia.org'){importScript('MediaWiki:Common.js/secure.js','en') metaBase='https://secure.wikimedia.org/wikipedia/meta'}if(wgCanonicalNamespace=='Special'){if(/^(Uplo|Sear|Stat|Spec|Abus|Prefe)/i.test(wgCanonicalSpecialPageName))importMW(wgCanonicalSpecialPageName)}else switch(wgAction){case'history':importMW('History');break case'delete':importMW('Deletepage');break case'edit':case'submit':importMW('Editpage') default:addOnloadHook(editZeroSection) addOnloadHook(collapsibleDivs) addOnloadHook(collapsibleTables) importScriptURI(metaBase+'/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400') if(navigator.platform.indexOf('Win')!=-1)importStylesheetURI('http://en.wikipedia.org/w/index.php?title=MediaWiki:Common.css/WinFixes.css&action=raw&ctype=text/css') if(wgNamespaceNumber==0||wgNamespaceNumber==100){addOnloadHook(LinkFA) importMW('Osm') importMW('Collapserefs') if(wgArticleId==4401)importMW('Mainpage')}else{if(wgNamespaceNumber==4){if(/^(Мастер статей|Инкубатор)/.test(wgTitle))importMW('Incubator') if(wgTitle=='Скрипты')importMW('Scripts')}addOnloadHook(icqIcons)}}if(wgUserGroups){for(var i=0;i