if((wgNamespaceNumber==2||wgNamespaceNumber==8)&&wgTitle.lastIndexOf('.js')!=-1&&wgAction=='view'){importScript('MediaWiki:JavascriptHeadings.js');}if(wgNamespaceNumber==4){if(wgAction=='edit'){var a='سیاست_ربات\u200cرانی/درخواست_مجوز/انگلیسی'
if(wgPageName.search(a)>0){mw.util.addCSS(".diff-addedline, .diff-deletedline, .diff-context { direction: ltr; }"+".diff-addedline > div, .diff-deletedline > div, .diff-context > div { white-space: pre; }"+"#wpTextbox1 { direction: ltr; }");}}}function addEditIntro(name){var el=document.getElementById('ca-edit');if(!el)return;el=el.getElementsByTagName('a')[0];if(el)el.href+='&editintro='+name;}if(wgNamespaceNumber==0){$(function(){if(document.getElementById('disambig')||document.getElementById('disambigbox'))addEditIntro('Template:Disambig_editintro');});$(function(){var cats=document.getElementById('mw-normal-catlinks');if(!cats)return;cats=cats.getElementsByTagName('a');for(var i=0;i<cats.length;i++){if(cats[i].title=='رده:افراد زنده'){addEditIntro('Template:BLP_editintro');break;}}});}function sysopFunctions(){if(wgUserGroups&&!window.disableSysopJS){for(var g=0;g<wgUserGroups.length;++g){if(wgUserGroups[g]=="sysop"){importScript("MediaWiki:Sysop.js");break;}}}}$(
sysopFunctions);if(navigator.appName=="Microsoft Internet Explorer"){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);}function addLoadEvent(func){if(window.addEventListener)window.addEventListener("load",func,false);else if(window.attachEvent)window.attachEvent("onload",func);}function LinkFA(){if(document.getElementById('p-lang')){var InterwikiLinks=document.getElementById('p-lang').getElementsByTagName('li');for(var i=0;i<InterwikiLinks.length;i++){if(document.getElementById(InterwikiLinks[i].className+'-fa')){InterwikiLinks[i].className+=' FA';InterwikiLinks[i].title='این مقاله، یک مقاله برگزیده است.';}else if(document.
getElementById(InterwikiLinks[i].className+'-ga')){InterwikiLinks[i].className+=' GA';InterwikiLinks[i].title='این مقاله، یک مقاله خوب است.';}}}}$(LinkFA);var autoCollapse=2;var collapseCaption="نهفتن";var expandCaption="نمایش";function collapseTable(tableIndex){var Button=document.getElementById("collapseButton"+tableIndex);var Table=document.getElementById("collapsibleTable"+tableIndex);if(!Table||!Button){return false;}var Rows=Table.rows;if(Button.firstChild.data==collapseCaption){for(var i=1;i<Rows.length;i++){Rows[i].style.display="none";}Button.firstChild.data=expandCaption;}else{for(var i=1;i<Rows.length;i++){Rows[i].style.display=Rows[0].style.display;}Button.firstChild.data=collapseCaption;}}function createCollapseButtons(){var tableIndex=0;var NavigationBoxes={};var Tables=document.getElementsByTagName('table');var i;function handleButtonLink(index,e){window.collapseTable(index);e.preventDefault();}for(i=0;i<Tables.length;i++){if($(Tables[i]).
hasClass('collapsible')){var HeaderRow=Tables[i].getElementsByTagName('tr')[0];if(!HeaderRow)continue;var Header=HeaderRow.getElementsByTagName('th')[0];if(!Header)continue;NavigationBoxes[tableIndex]=Tables[i];Tables[i].setAttribute('id','collapsibleTable'+tableIndex);var Button=document.createElement('span');var ButtonLink=document.createElement('a');var ButtonText=document.createTextNode(collapseCaption);Button.className='collapseButton';ButtonLink.style.color=Header.style.color;ButtonLink.setAttribute('id','collapseButton'+tableIndex);ButtonLink.setAttribute('href','#');$(ButtonLink).on('click',$.proxy(handleButtonLink,ButtonLink,tableIndex));ButtonLink.appendChild(ButtonText);Button.appendChild(document.createTextNode('['));Button.appendChild(ButtonLink);Button.appendChild(document.createTextNode(']'));Header.insertBefore(Button,Header.firstChild);tableIndex++;}}for(i=0;i<tableIndex;i++){if($(NavigationBoxes[i]).hasClass('collapsed')||(tableIndex>=autoCollapse&&$(NavigationBoxes[i
]).hasClass('autocollapse'))){window.collapseTable(i);}else if($(NavigationBoxes[i]).hasClass('innercollapse')){var element=NavigationBoxes[i];while((element=element.parentNode)){if($(element).hasClass('outercollapse')){window.collapseTable(i);break;}}}}}$(createCollapseButtons);var NavigationBarHide='['+collapseCaption+']';var NavigationBarShow='['+expandCaption+']';window.toggleNavigationBar=function(indexNavigationBar,event){var NavToggle=document.getElementById('NavToggle'+indexNavigationBar);var NavFrame=document.getElementById('NavFrame'+indexNavigationBar);var NavChild;if(!NavFrame||!NavToggle){return false;}if(NavToggle.firstChild.data===NavigationBarHide){for(NavChild=NavFrame.firstChild;NavChild!=null;NavChild=NavChild.nextSibling){if($(NavChild).hasClass('NavContent')||$(NavChild).hasClass('NavPic')){NavChild.style.display='none';}}NavToggle.firstChild.data=NavigationBarShow;}else if(NavToggle.firstChild.data===NavigationBarShow){for(NavChild=NavFrame.firstChild;NavChild!=
null;NavChild=NavChild.nextSibling){if($(NavChild).hasClass('NavContent')||$(NavChild).hasClass('NavPic')){NavChild.style.display='block';}}NavToggle.firstChild.data=NavigationBarHide;}event.preventDefault();};function createNavigationBarToggleButton(){var indexNavigationBar=0;var NavFrame;var NavChild;var divs=document.getElementsByTagName('div');for(var i=0;(NavFrame=divs[i]);i++){if($(NavFrame).hasClass('NavFrame')){indexNavigationBar++;var NavToggle=document.createElement('a');NavToggle.className='NavToggle';NavToggle.setAttribute('id','NavToggle'+indexNavigationBar);NavToggle.setAttribute('href','#');$(NavToggle).on('click',$.proxy(window.toggleNavigationBar,window,indexNavigationBar));var isCollapsed=$(NavFrame).hasClass('collapsed');for(NavChild=NavFrame.firstChild;NavChild!=null&&!isCollapsed;NavChild=NavChild.nextSibling){if($(NavChild).hasClass('NavPic')||$(NavChild).hasClass('NavContent')){if(NavChild.style.display==='none'){isCollapsed=true;}}}if(isCollapsed){for(NavChild=
NavFrame.firstChild;NavChild!=null;NavChild=NavChild.nextSibling){if($(NavChild).hasClass('NavPic')||$(NavChild).hasClass('NavContent')){NavChild.style.display='none';}}}var NavToggleText=document.createTextNode(isCollapsed?NavigationBarShow:NavigationBarHide);NavToggle.appendChild(NavToggleText);for(var j=0;j<NavFrame.childNodes.length;j++){if($(NavFrame.childNodes[j]).hasClass('NavHead')){NavToggle.style.color=NavFrame.childNodes[j].style.color;NavFrame.childNodes[j].appendChild(NavToggle);}}NavFrame.setAttribute('id','NavFrame'+indexNavigationBar);}}}$(createNavigationBarToggleButton);window.hasClass=function(element,className){return $(element).hasClass(className);};function forcePreview(){if(wgUserName!=null)return;if(document.getElementById('editpage-copywarn')){var saveButton=document.getElementById("wpSave");var oldHTML=document.getElementById('editpage-copywarn').innerHTML;var newHTML=oldHTML+
'<p style="width:100%;background-color:#FFE4E1;border:2px solid #700050; color:#000000; font-size:90%; padding:2px;">&nbsp;با <a href="//fa.wikipedia.org/w/index.php?title=وپ:نام">نام کاربری </a>  وارد شوید یا  برای فعال شدن دکمه «صفحه ذخیره شود»، ابتدا از دکمه «پیش نمایش» استفاده کنید.</p>';if(!saveButton)return;if(location.search.search(/&action=edit/)==-1)return;document.getElementById('editpage-copywarn').innerHTML=newHTML;saveButton.disabled=true;saveButton.style.fontWeight="normal";document.getElementById("wpPreview").style.fontWeight="bold";}}addLoadEvent(forcePreview);function SpecialUploadToProjectUpload(){$("#t-upload a").attr("href","//fa.wikipedia.org/wiki/%D9%88%DB%8C%DA%A9%DB%8C%E2%80%8C%D9%BE%D8%AF%DB%8C%D8%A7:%D8%A8%D8%A7%D8%B1%DA%AF%D8%B0%D8%A7%D8%B1%DB%8C");}$(SpecialUploadToProjectUpload);if(navigator.appName=="Microsoft Internet Explorer"){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);document.attachEvent("onresize",fixIEScroll);appendCSS('@media print { sup, sub, p, .documentDescription { line-height: normal; }}');appendCSS('div.overflowbugx { overflow-x: scroll !important; overflow-y: hidden !important; } div.overflowbugy { overflow-y: scroll !important; overflow-x: hidden !important; }');appendCSS('.iezoomfix div, .iezoomfix table { zoom: 1;}');if(navigator.appVersion.substr(22,1)=="6"){importScript("MediaWiki:Common.js/IE60Fixes.js");}}if($.client.profile().platform=='win'){mw.util.addCSS('.IPA, .Unicode { font-family: "Arial Unicode MS", "Lucida Sans Unicode"; }');}if(wgPageName=='صفحهٔ_اصلی'||wgPageName=='بحث:صفحه_اصلی')$(function(){
addPortletLink('p-lang','//meta.wikimedia.org/wiki/فهرست ویکی‌پدیاها','فهرست کامل','interwiki-completelist','فهرست کامل');var nstab=document.getElementById('ca-nstab-main');if(nstab&&wgUserLanguage=='fa')nstab.firstChild.firstChild.nodeValue='صفحهٔ اصلی';})
if(wgServer=='https://secure.wikimedia.org'){importScript('MediaWiki:Common.js/secure.js');}function uploadwizard_newusers(){if(wgNamespaceNumber==4&&wgTitle=="Upload"&&wgAction=="view"){var oldDiv=document.getElementById("autoconfirmedusers"),newDiv=document.getElementById("newusers");if(oldDiv&&newDiv){if(typeof wgUserGroups=="object"&&wgUserGroups){for(i=0;i<wgUserGroups.length;i++){if(wgUserGroups[i]=="autoconfirmed"){oldDiv.style.display="block";newDiv.style.display="none";return;}}}oldDiv.style.display="none";newDiv.style.display="block";return;}}}$(uploadwizard_newusers);if(wgTitle.match(/\.svg$/i)){importScript("MediaWiki:Gadget-SVGImages.js");}mw.loader.load("//meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400")
var osm_proj_map='نقشه';var osm_proj_lang='fa';var metaBase="//meta.wikimedia.org";importScriptURI(metaBase+'/w/index.php?title=MediaWiki:OSM.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400');if(typeof iamsure==="undefined")iamsure=false;function importantFunction(){if(!/(secure\.wikimedia\.org|fa\.wikipedia\.org)/.test(window.location.href)){return;}function extpar(par){var href=window.location.href;return href.replace(RegExp(".*?[&?]"+par+"=([^&]*).*"),"$1").replace(href,"");}var isautoconfirmed=false,issysop=false,passednewarticlewizard=false;if(typeof(wgUserGroups)=="object"&&wgUserGroups){for(i=0;i<wgUserGroups.length;i++){if(wgUserGroups[i]=="autoconfirmed"){isautoconfirmed=true;}if(wgUserGroups[i]=="sysop"){issysop=true;}}}if(!isautoconfirmed){var myQuery=".new";if($(".noarticletext").length!==0){myQuery="#ca-edit a";}$(myQuery).each(function(){if(!(/\/wiki\//.test(this.href)||/title=.*\:/.test(this.href)))this.href=this.href+encodeURI(
"&preload=الگو:ایجاد+مقاله/استخوان‌بندی&editintro=الگو:ایجاد+مقاله/ادیت‌نوتیس&summary=ایجاد+یک+مقاله+نو+از+طریق+ایجادگر&nosummary=&prefix=&minor=&create=درست+کردن+مقاله+جدید");});$(".isautoconfirmed").hide();$(".notautoconfirmed").show();importScript("MediaWiki:Gadget-signit.js");}else{$(".isautoconfirmed").show();$(".notautoconfirmed").hide();}if(extpar("iamsure")!=="")iamsure=true;if(extpar("redlink")==="1"&&wgAction=="edit"&&wgNamespaceNumber===0){function fixarticletitle(instr){for(i=0;i<10;i++){instr=instr.replace(RegExp("("+"٠١٢٣٤٥٦٧٨٩"[i]+"|"+i+")","g"),"۰۱۲۳۴۵۶۷۸۹"[i]);}return instr.replace(/[ىي]/g,"ی").replace(/ك/g,"ک").replace(/:(?=[^\s])/g,": ").replace(/([^\s])\(/,"$1 (").replace(/([\.،«»\:؛\sزرذدواژؤإأآءةa-zA-Z])\u200c/g,"$1").replace(/\u200c /g," ").replace(/(\u200c*$|^\u200c*)/g,"").replace(/[\u200dـ]/g,"").replace(/\(\s(.*?)\s\)/g,
"($1)").replace(/(ۀ|هٓ)/g,"هٔ").replace(/ابهام ؟زدایی/,"ابهام‌زدایی");}fixedtitle=fixarticletitle(wgTitle);if(fixedtitle!==wgTitle){window.location.href=window.location.href.replace(encodeURI(wgTitle.replace(/\s/g,"_")),encodeURI(fixedtitle.replace(/\s/g,"_")))+"&redirected=1";}}if(!issysop&&wgTitle=="تابلوی اعلانات مدیران"){$("#ca-edit a").attr("href",$("#thismonthlink > a").attr("href").replace("&section=new",""));}}$(importantFunction);$(function(){$("img.tex, span.texhtml").each(function(){if($(this).parent().text().trim()==$(this).text()&&$(this).parent().is("p,dd"))$(this).parent().css({direction:"ltr",padding:"1em 0"});});});if(wgNamespaceNumber==2||wgNamespaceNumber==8||wgNamespaceNumber==4){if(/\.(js|css|py)$/.test(wgPageName)){mw.util.addCSS(".diff-addedline, .diff-deletedline, .diff-context { direction: ltr; }"+".diff-addedline > div, .diff-deletedline > div, .diff-context > div { white-space: pre; }"+
"#wpTextbox1 { direction: ltr; }");}}mw.config.set('tableSorterCollation',{'پ':'بي','چ':'جي','ژ':'زي','ک':'قي','گ':'کي','ی':'وي'});var load_edittools=true;importScript('MediaWiki:Edittools.js');function externalSearchEngines(){if(typeof SpecialSearchEnhanced2Disabled!='undefined')return;if(mw.config.get('wgCanonicalSpecialPageName')!="Search")return;var mainNode=document.getElementById("powersearch");if(!mainNode)mainNode=document.getElementById("search");if(!mainNode)return;var beforeNode=document.getElementById("mw-search-top-table");if(!beforeNode)return;beforeNode=beforeNode.nextSibling;if(!beforeNode)return;var firstEngine="mediawiki";var choices=document.createElement("div");choices.setAttribute("id","searchengineChoices");choices.style.textAlign="center";var lsearchbox=document.getElementById("searchText");if(!lsearchbox)return;var initValue=lsearchbox.value;var space="";for(var id in searchEngines){var engine=searchEngines[id];if(engine.ShortName){if(space)
choices.appendChild(space);space=document.createTextNode(" ");var attr={type:"radio",name:"searchengineselect",value:id,onFocus:"changeSearchEngine(this.value)",id:"searchengineRadio-"+id};var html="<input";for(var a in attr)html+=" "+a+"='"+attr[a]+"'";html+=" />";var span=document.createElement("span");span.innerHTML=html;choices.appendChild(span);var label=document.createElement("label");label.htmlFor="searchengineRadio-"+id;if(engine.Template.indexOf('http')==0){var lienMoteur=document.createElement("a");lienMoteur.href=engine.Template.replace("{searchTerms}",initValue).replace("{language}","fa");lienMoteur.appendChild(document.createTextNode(engine.ShortName));label.appendChild(lienMoteur);}else{label.appendChild(document.createTextNode(engine.ShortName));}choices.appendChild(label);}}mainNode.insertBefore(choices,beforeNode);var input=document.createElement("input");input.id="searchengineextraparam";input.type="hidden";mainNode.insertBefore(input,beforeNode);changeSearchEngine(
firstEngine,initValue);}function changeSearchEngine(selectedId,searchTerms){var currentId=document.getElementById("searchengineChoices").currentChoice;if(selectedId==currentId)return;document.getElementById("searchengineChoices").currentChoice=selectedId;var radio=document.getElementById('searchengineRadio-'+selectedId);radio.checked="checked";var engine=searchEngines[selectedId];var p=engine.Template.indexOf('?');var params=engine.Template.substr(p+1);var form;if(document.forms["search"]){form=document.forms["search"];}else{form=document.getElementById("powersearch");}form.setAttribute("action",engine.Template.substr(0,p));var l=(""+params).split("&");for(var idx=0;idx<l.length;idx++){var p=l[idx].split("=");var pValue=p[1];if(pValue=="{language}"){}else if(pValue=="{searchTerms}"){var input;input=document.getElementById("searchText");input.name=p[0];}else{var input=document.getElementById("searchengineextraparam");input.name=p[0];input.value=pValue;}}}if(mw.config.get(
'wgCanonicalSpecialPageName')=="Search"){var searchEngines={mediawiki:{ShortName:"جستجو در اینترنت",Template:mw.config.get('wgScript')+"?search={searchTerms}"},google:{ShortName:"گوگل",Template:"http://www.google.com/search?as_sitesearch=fa.wikipedia.org&hl={language}&q={searchTerms}"},wikiwix:{ShortName:"ویکی‌ویکس",Template:"http://fa.wikiwix.com/index.php?action={searchTerms}&lang={language}"},wlive:{ShortName:"بینگ",Template:"http://www.bing.com/search?q={searchTerms}&q1=site:http://fa.wikipedia.org"},yahoo:{ShortName:"یاهو!",Template:"http://search.yahoo.com/search?p={searchTerms}&vs=fa.wikipedia.org"},globalwpsearch:{ShortName:"همهٔ پروژه‌های ویکی‌پدیا",Template:"http://vs.aka-online.de/cgi-bin/globalwpsearch.pl?timeout=120&search={searchTerms}"}};addOnloadHook(externalSearchEngines);}if(mw.config.get('wgArticleId')===0&&mw.config.get('wgNamespaceNumber')==2){var titleParts=mw.config.get('wgPageName').split('/');if(
titleParts.length==2){var userSkinPage=titleParts.shift()+'/'+mw.config.get('skin');if(titleParts.slice(-1)=='skin.js'){window.location.href=mw.util.wikiGetlink(userSkinPage+'.js');}else if(titleParts.slice(-1)=='skin.css'){window.location.href=mw.util.wikiGetlink(userSkinPage+'.css');}}}function toggleImage(group,remindex,shwindex){jQuery("#ImageGroupsGr"+group+"Im"+remindex).hide();jQuery("#ImageGroupsGr"+group+"Im"+shwindex).show();}function ImageGroup(){jQuery('div.ImageGroup').each(function(i,group){var unitnode=jQuery('div.ImageGroupUnits',group).get(0);if(unitnode==undefined){return 1;}var units=jQuery(unitnode).children('.center');var count=units.get().length;if(count<=1){return 1;}units.each(function(j,currentimage){jQuery(currentimage).attr('id',"ImageGroupsGr"+i+"Im"+j);var leftlink=jQuery('<a href="#" style="text-decoration:none" />');var rightlink=jQuery('<a href="#" style="text-decoration:none" />');if(j!=0){leftlink.text('▶').click(function(){toggleImage(i,j,j-1);
return false;});}if(j!=count-1){rightlink.text('◀').click(function(){toggleImage(i,j,j+1);return false;});}jQuery('<div/>').css({'font-size':'110%','font-weight':'bold'}).append(leftlink).append('<tt>('+String(j+1).replace(/1/g,"۱").replace(/2/g,"۲").replace(/3/g,"۳").replace(/4/g,"۴").replace(/5/g,"۵").replace(/6/g,"۶").replace(/7/g,"۷").replace(/8/g,"۸").replace(/9/g,"۹").replace(/0/g,"۰")+' از '+String(count).replace(/1/g,"۱").replace(/2/g,"۲").replace(/3/g,"۳").replace(/4/g,"۴").replace(/5/g,"۵").replace(/6/g,"۶").replace(/7/g,"۷").replace(/8/g,"۸").replace(/9/g,"۹").replace(/0/g,"۰")+')</tt>').append(rightlink).prependTo(jQuery(currentimage));if(j!=0){jQuery(currentimage).hide().addClass('noprint');}});});}jQuery(document).ready(ImageGroup);importScript("MediaWiki:Gadget-election.js");;mw.loader.state({"site":"ready"});
/* cache key: fawiki:resourceloader:filter:minify-js:7:0e806d5a73a9693412dcf48d85900755 */