mediaWiki.loader.implement("ext.vector.collapsibleNav",function($,mw){
(function($){
var map={
'ltr':{
'msie':[['>=',7]],
'opera':[['>=',9.6]],
'konqueror':[['>=',4.0]],
'blackberry':false,
'ipod':false,
'iphone':false,
'ps3':false
},
'rtl':{
'msie':[['>=',7]],
'opera':[['>=',9.6]],
'konqueror':[['>=',4.0]],
'blackberry':false,
'ipod':false,
'iphone':false,
'ps3':false
}
};
if(!$.client.test(map)){
return true;
}
var version=1;
if(mediaWiki.config.get('wgCollapsibleNavForceNewVersion')){
version=2;
}else{
if(mediaWiki.config.get('wgCollapsibleNavBucketTest')){
version=$.cookie('vector-nav-pref-version');
if(version==null){
version=Math.round(Math.random()+1);
$.cookie('vector-nav-pref-version',version,{'expires':30,'path':'/'});
}
}
}
if(version==2){
var limit=5;
var threshold=3;
$('#p-lang ul').addClass('secondary').before('
');
var languages=[
'en','fr','de','es','pt','it','ru','ja','nl','pl','zh','sv','ar','tr','uk','fi','no','ca',
'ro','hu','ksh','id','he','cs','vi','ko','sr','fa','da','eo','sk','th','lt','vo','bg',
'sl','hr','hi','et','mk','simple','new','ms','nn','gl','el','eu','ka','tl','bn','lv','ml',
'bs','te','la','az','sh','war','br','is','mr','be-x-old','sq','cy','lb','ta','zh-classical',
'an','jv','ht','oc','bpy','ceb','ur','zh-yue','pms','scn','be','roa-rup','qu','af','sw',
'nds','fy','lmo','wa','ku','hy','su','yi','io','os','ga','ast','nap','vec','gu','cv',
'bat-smg','kn','uz','zh-min-nan','si','als','yo','li','gan','arz','sah','tt','bar','gd','tg',
'kk','pam','hsb','roa-tara','nah','mn','vls','gv','mi','am','ia','co','ne','fo','nds-nl',
'glk','mt','ang','wuu','dv','km','sco','bcl','mg','my','diq','tk','szl','ug','fiu-vro','sc',
'rm','nrm','ps','nv','hif','bo','se','sa','pnb','map-bms','lad','lij','crh','fur','kw','to',
'pa','jbo','ba','ilo','csb','wo','xal','krc','ckb','pag','ln','frp','mzn','ce','nov','kv',
'eml','gn','ky','pdc','lo','haw','mhr','dsb','stq','tpi','arc','hak','ie','so','bh','ext',
'mwl','sd','ig','myv','ay','iu','na','cu','pi','kl','ty','lbe','ab','got','sm','as','mo',
'ee','zea','av','ace','kg','bm','cdo','cbk-zam','kab','om','chr','pap','udm','ks','zu','rmy',
'cr','ch','st','ik','mdf','kaa','aa','fj','srn','tet','or','pnt','bug','ss','ts','pcd',
'pih','za','sg','lg','bxr','xh','ak','ha','bi','ve','tn','ff','dz','ti','ki','ny','rw',
'chy','tw','sn','tum','ng','rn','mh','ii','cho','hz','kr','ho','mus','kj'
];
var acceptLangCookie=$.cookie('accept-language');
if(acceptLangCookie!=null){
if(acceptLangCookie!=''){
languages=acceptLangCookie.split(',').concat(languages);
}
}else{
$.getJSON(
wgScriptPath+'/api.php?action=query&meta=userinfo&uiprop=acceptlang&format=json',
function(data){
var langs=[];
if(
typeof data.query!='undefined'&&
typeof data.query.userinfo!='undefined'&&
typeof data.query.userinfo.acceptlang!='undefined'
){
for(var j=0;j');
$('#p-lang-more h5').text(mw.usability.getMsg('vector-collapsiblenav-more'));
$secondary.appendTo($('#p-lang-more div.body'));
}
$('#p-lang').addClass('persistent');
}
$('#mw-panel > div.portal:first').addClass('first persistent');
$('#mw-panel').addClass('collapsible-nav');
$('#mw-panel > div.portal:not(.persistent)')
.each(function(i){
var id=$(this).attr('id');
var state=$.cookie('vector-nav-'+id);
if(
state=='true'||
(state==null&&i<1)||
(state==null&&version==1&&id=='p-lang')
){
$(this)
.addClass('expanded')
.find('div.body')
.show();
}else{
$(this).addClass('collapsed');
}
if(state!=null){
$.cookie('vector-nav-'+$(this).attr('id'),state,{'expires':30,'path':'/'});
}
});
function toggle($element){
$.cookie(
'vector-nav-'+$element.parent().attr('id'),
$element.parent().is('.collapsed'),
{'expires':30,'path':'/'}
);
$element
.parent()
.toggleClass('expanded')
.toggleClass('collapsed')
.find('div.body')
.slideToggle('fast');
}
var $headings=$('#mw-panel > div.portal:not(.persistent) > h5');
var tabIndex=$(document).lastTabIndex()+1;
$('#searchInput').attr('tabindex',tabIndex++);
$headings.each(function(){
$(this).attr('tabindex',tabIndex++);
});
$('#mw-panel')
.delegate('div.portal:not(.persistent) > h5','keydown',function(event){
if(event.which==13||event.which==32){
toggle($(this));
}
})
.delegate('div.portal:not(.persistent) > h5','mousedown',function(){
toggle($(this));
$(this).blur();
return false;
});
})(jQuery);
},{"all":"#mw-panel.collapsible-nav div.portal{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAAABCAMAAAA7MLYKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEtQTFRF29vb2tra4ODg6urq5OTk4uLi6+vr7e3t7Ozs8PDw5+fn4+Pj4eHh3d3d39/f6Ojo5eXl6enp8fHx8/Pz8vLy7+/v3Nzc2dnZ2NjYnErj7QAAAD1JREFUeNq0wQUBACAMALDj7hf6JyUFGxzEnYhC9GaNPG1xVffGDErk/iCigLl1XV2xM49lfAxEaSM+AQYA9HMKuv4liFQAAAAASUVORK5CYII=);background-image:url(http://bits.wikimedia.org/w/extensions-1.17/Vector/modules/./images/portal-break.png?2011-02-12T21:25:00Z)!ie;background-position:left top;background-repeat:no-repeat;padding:0.25em 0 !important;margin:-11px 9px 10px 11px}#mw-panel.collapsible-nav div.portal h5{color:#4D4D4D;font-weight:normal;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA9QTFRFeXl53d3dmpqasbGx////GU0iEgAAAAV0Uk5T/////wD7tg5TAAAAK0lEQVQI12NwgQIG0hhCDAwMTCJAhqMCA4MiWEoIJABiOCooQhULi5BqMgB2bh4svs8t+QAAAABJRU5ErkJggg==) left center no-repeat;background:url(http://bits.wikimedia.org/w/extensions-1.17/Vector/modules/./images/open.png?2011-02-12T21:25:00Z) left center no-repeat!ie;padding:4px 0 3px 1.5em;margin-bottom:0px}#mw-panel.collapsible-nav div.collapsed h5{color:#0645AD;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAxQTFRF3d3deXl5////nZ2dQA6SoAAAAAN0Uk5T//8A18oNQQAAADNJREFUeNpiYEIDDMQKMKALMDOgCTDCRWACcBG4AEwEIcDITEAFuhnotmC4g4EEzwEEGAADqgHmQSPJKgAAAABJRU5ErkJggg==) left center no-repeat;background:url(http://bits.wikimedia.org/w/extensions-1.17/Vector/modules/./images/closed-ltr.png?2011-02-12T21:25:00Z) left center no-repeat!ie;margin-bottom:0px}#mw-panel.collapsible-nav div h5:hover{cursor:pointer;text-decoration:none}#mw-panel.collapsible-nav div.collapsed h5:hover{text-decoration:underline}#mw-panel.collapsible-nav div.portal div.body{background:none !important;padding-top:0px;display:none}#mw-panel.collapsible-nav div.persistent div.body{display:block}#mw-panel.collapsible-nav div.first h5{display:none}#mw-panel.collapsible-nav div.persistent h5{background:none !important;padding-left:0.7em;cursor:default}#mw-panel.collapsible-nav div.portal div.body ul li{padding:0.25em 0}#mw-panel.collapsible-nav div.first{background-image:none;margin-top:0px}#mw-panel.collapsible-nav div.persistent div.body{margin-left:0.5em}\n\n/* cache key: enwiki:resourceloader:filter:minify-css:3:c5cca4c308b0b64d12b1147b6871e86e */"},{"vector-collapsiblenav-more":"More languages"});
mediaWiki.loader.implement("ext.vector.collapsibleTabs",function($,mw){
$(document).ready(function(){
var rtl=$('body').is('.rtl');
$.collapsibleTabs.moveToCollapsed=function(ele){
var $moving=$(ele);
var data=$.collapsibleTabs.getSettings($moving);
if(!data){
return;
}
var expContainerSettings=$.collapsibleTabs.getSettings($(data.expandedContainer));
if(!expContainerSettings){
return;
}
expContainerSettings.shifting=true;
var target=data.collapsedContainer;
$moving.css("position","relative")
.css((rtl?'left':'right'),0)
.animate({width:'1px'},"normal",function(){
$(this).hide();
$('').insertAfter(this);
$(this).remove().prependTo(target).data('collapsibleTabsSettings',data);
$(this).attr('style','display:list-item;');
var data=$.collapsibleTabs.getSettings($(ele));
if(!data){
return;
}
var expContainerSettings=$.collapsibleTabs.getSettings($(data.expandedContainer));
if(!expContainerSettings){
return;
}
expContainerSettings.shifting=false;
$.collapsibleTabs.handleResize();
});
};
$.collapsibleTabs.moveToExpanded=function(ele){
var $moving=$(ele);
var data=$.collapsibleTabs.getSettings($moving);
if(!data){
return;
}
var expContainerSettings=$.collapsibleTabs.getSettings($(data.expandedContainer));
if(!expContainerSettings){
return;
}
expContainerSettings.shifting=true;
var $target=$(data.expandedContainer).find('span.placeholder:first');
var expandedWidth=data.expandedWidth;
$moving.css("position","relative").css((rtl?'right':'left'),0).css('width','1px');
$target.replaceWith($moving.remove().css('width','1px').data('collapsibleTabsSettings',data)
.animate({width:expandedWidth+"px"},"normal",function(){
$(this).attr('style','display:block;');
var data=$.collapsibleTabs.getSettings($(ele));
if(!data){
return;
}
var expContainerSettings=$.collapsibleTabs.getSettings($(data.expandedContainer));
if(!expContainerSettings){
return;
}
expContainerSettings.shifting=false;
$.collapsibleTabs.handleResize();
}));
};
$('#p-views ul').bind("beforeTabCollapse",function(){
if($('#p-cactions').css('display')=='none')
$("#p-cactions").addClass("filledPortlet").removeClass("emptyPortlet")
.find('h5').css('width','1px').animate({'width':'26px'},390);
}).bind("beforeTabExpand",function(){
if($('#p-cactions li').length==1)
$("#p-cactions h5").animate({'width':'1px'},370,function(){
$(this).attr('style','').parent().addClass("emptyPortlet").removeClass("filledPortlet");
});
}).collapsibleTabs({
expandCondition:function(eleWidth){
if(rtl){
return($('#right-navigation').position().left+$('#right-navigation').width()+1)
<($('#left-navigation').position().left-eleWidth);
}else{
return($('#left-navigation').position().left+$('#left-navigation').width()+1)
<($('#right-navigation').position().left-eleWidth);
}
},
collapseCondition:function(){
if(rtl){
return($('#right-navigation').position().left+$('#right-navigation').width())
>$('#left-navigation').position().left;
}else{
return($('#left-navigation').position().left+$('#left-navigation').width())
>$('#right-navigation').position().left;
}
}
});
});
},{},{});
mediaWiki.loader.implement("ext.vector.editWarning",function($,mw){
(function($){
$(document).ready(function(){
if($('#wpTextbox1').size()==0){
return true;
}
$('#wpTextbox1, #wpSummary').each(function(){
$(this).data('origtext',$(this).val());
});
var fallbackWindowOnBeforeUnload=window.onbeforeunload;
var ourWindowOnBeforeUnload=function(){
var fallbackResult=undefined;
var retval=undefined;
var thisFunc=arguments.callee;
if(fallbackWindowOnBeforeUnload){
fallbackResult=fallbackWindowOnBeforeUnload();
}
if(fallbackResult!==undefined){
retval=fallbackResult;
}else{
if(
wgAction=='submit'||
$('#wpTextbox1').data('origtext')!=$('#wpTextbox1').val()||
$('#wpSummary').data('origtext')!=$('#wpSummary').val()
){
retval=mediaWiki.msg('vector-editwarning-warning');
}
}
window.onbeforeunload=null;
if(retval!==undefined){
setTimeout(function(){
window.onbeforeunload=thisFunc;
});
return retval;
}
};
var pageShowHandler=function(){
window.onbeforeunload=ourWindowOnBeforeUnload;
};
pageShowHandler();
if(window.addEventListener){
window.addEventListener('pageshow',pageShowHandler,false);
}else if(window.attachEvent){
window.attachEvent('pageshow',pageShowHandler);
}
$('form').submit(function(){
window.onbeforeunload=fallbackWindowOnBeforeUnload;
});
});
var fallbackWindowOnBeforeUnload=null;
})(jQuery);
},{},{"vector-editwarning-warning":"Leaving this page may cause you to lose any changes you have made.\nIf you are logged in, you can disable this warning in the \"Editing\" section of your preferences."});
mediaWiki.loader.implement("ext.vector.simpleSearch",function($,mw){
$(document).ready(function(){
var map={
'browsers':{
'ltr':{
'opera':[['>=',9.6]],
'docomo':false,
'blackberry':false,
'ipod':false,
'iphone':false
},
'rtl':{
'opera':[['>=',9.6]],
'docomo':false,
'blackberry':false,
'ipod':false,
'iphone':false
}
}
};
if(!$.client.test(map)){
return true;
}
if(window.os_MWSuggestDisable){
window.os_MWSuggestDisable();
}
$('div#simpleSearch > input#searchInput')
.attr('placeholder',mediaWiki.msg('vector-simplesearch-search'))
.placeholder();
$('#searchInput, #searchInput2, #powerSearchText, #searchText')
.suggestions({
fetch:function(query){
var $this=$(this);
var request=$.ajax({
url:wgScriptPath+'/api.php',
data:{
'action':'opensearch',
'search':query,
'namespace':0,
'suggest':''
},
dataType:'json',
success:function(data){
if(data&&1 in data){
$this.suggestions('suggestions',data[1]);
}
}
});
$(this).data('request',request);
},
cancel:function(){
var request=$(this).data('request');
if(request&&typeof request.abort=='function'){
request.abort();
$(this).removeData('request');
}
},
result:{
select:function($input){
$input.closest('form').submit();
}
},
delay:120,
positionFromLeft:$('body').is('.rtl'),
highlightInput:true
})
.bind('paste cut',function(e){
$(this).trigger('keypress');
});
$('#searchInput').suggestions({
result:{
select:function($input){
$input.closest('form').submit();
}
},
special:{
render:function(query){
if($(this).children().size()==0){
$(this).show();
$label=$('')
.addClass('special-label')
.text(mediaWiki.msg('vector-simplesearch-containing'))
.appendTo($(this));
$query=$('')
.addClass('special-query')
.text(query)
.appendTo($(this));
$query.autoEllipsis();
}else{
$(this).find('.special-query')
.empty()
.text(query)
.autoEllipsis();
}
},
select:function($input){
$input.closest('form').append(
$('').attr({'type':'hidden','name':'fulltext','value':1})
);
$input.closest('form').submit();
}
},
$region:$('#simpleSearch')
});
});
},{},{"vector-simplesearch-search":"Search","vector-simplesearch-containing":"containing..."});
/* cache key: enwiki:resourceloader:filter:minify-js:3:12914583a75b333f233bc575c6bdd784 */