mw.loader.implement("ext.articleFeedback",function($){(function($){var tracked='track'===mw.user.bucket('ext.articleFeedback-tracking',mw.config.get('wgArticleFeedbackTracking'));function prefix(key){var version=mw.config.get('wgArticleFeedbackTracking').version||0;return'ext.articleFeedback@'+version+'-'+key;}function isPitchVisible(pitch){return $.cookie(prefix('pitches-'+pitch))!='hide';}function mutePitch(pitch,duration){$.cookie(prefix('pitches-'+pitch),'hide',{'expires':duration,'path':'/'});}function trackClick(id){if(tracked&&$.isFunction($.trackActionWithInfo)){$.trackActionWithInfo(prefix(id),mw.config.get('wgTitle'));}}function trackClickURL(url,id){if(tracked&&$.isFunction($.trackActionURL)){return $.trackActionURL(url,prefix(id));}else{return url;}}var survey=new(function(){var that=this;var $dialog;var $form=$([]);var $message=$([]);var formSource=mw.config.get('wgScript')+'?'+$.param({'title':'Special:SimpleSurvey','survey':'articlerating','raw':1});this.load=function(){ $dialog=$('#articleFeedback-dialog');if($dialog.length===0){$dialog=$('
').dialog({'width':600,'height':400,'bgiframe':true,'autoOpen':true,'modal':true,'title':mw.msg('articlefeedback-survey-title'),'close':function(){trackClick('survey-cancel');$dialog.dialog('option','height',400);$form.show();$message.remove();}}).load(formSource,function(){$form=$dialog.find('form');$form.submit(function(){return that.submit();});var $input=$form.find('input[type=submit]');var $button=$('').text($(this).find('input[type=submit]').val()).button().insertAfter($input);$input.remove();$form.find('#prefswitch-survey-origin').text(mw.config.get('wgTitle'));$button.before($('
').addClass('articleFeedback-survey-disclaimer').html(function(){var link=mw.html.element('a',{href:mw.msg('articlefeedback-privacyurl')},mw.msg('articlefeedback-survey-disclaimerlink'));return mw.html.escape(mw.msg( 'articlefeedback-survey-disclaimer')).replace(/\$1/,link);}));$dialog.removeClass('loading');});}$dialog.dialog('open');};this.submit=function(){$dialog=$('#articleFeedback-dialog');$dialog.addClass('loading').find('form').hide();var data={'title':'Special:SimpleSurvey'};$dialog.find(['input[type=text]','input[type=radio]:checked','input[type=checkbox]:checked','input[type=hidden]','textarea'].join(',')).each(function(){var name=$(this).attr('name');if(name!==''){if(name.substr(-2)=='[]'){var trimmedName=name.substr(0,name.length-2);if(typeof data[trimmedName]=='undefined'){data[trimmedName]=[];}data[trimmedName].push($(this).val());}else{data[name]=$(this).val();}}});trackClick('survey-submit-attempt');$.ajax({'url':wgScript,'type':'POST','data':data,'dataType':'html','success':function(data){$dialog.removeClass('loading');var success=$(data).find('.simplesurvey-success').size()>0;that.alert(success?'success':'error');mutePitch('survey',30);trackClick('survey-submit-complete');}, 'error':function(XMLHttpRequest,textStatus,errorThrown){$dialog.removeClass('loading');that.alert('error');}});return false;};this.alert=function(message){$message=$('
').addClass('articleFeedback-survey-message-'+message).text(mw.msg('articlefeedback-survey-message-'+message)).appendTo($dialog);$dialog.dialog('option','height',$message.height()+100);};})();var config={'ratings':mw.config.get('wgArticleFeedbackRatingTypesFlipped'),'pitches':{'survey':{'weight':1,'condition':function(){return isPitchVisible('survey');},'action':function(){survey.load();trackClick('pitch-survey-accept');return true;},'title':'articlefeedback-pitch-thanks','message':'articlefeedback-pitch-survey-message','body':'articlefeedback-pitch-survey-body','accept':'articlefeedback-pitch-survey-accept','reject':'articlefeedback-pitch-reject'},'join':{'weight':1,'condition':function(){return isPitchVisible('join')&&mw.user.anonymous();},'action':function(){mutePitch('join',1);window.location=trackClickURL(mw. config.get('wgScript')+'?'+$.param({'title':'Special:UserLogin','type':'signup','returnto':mw.config.get('wgPageName')}),'pitch-join-accept-signup');return false;},'title':'articlefeedback-pitch-thanks','message':'articlefeedback-pitch-join-message','body':'articlefeedback-pitch-join-body','accept':'articlefeedback-pitch-join-accept','reject':'articlefeedback-pitch-reject','altAccept':'articlefeedback-pitch-join-login','altAction':function(){mutePitch('join',1);window.location=trackClickURL(mw.config.get('wgScript')+'?'+$.param({'title':'Special:UserLogin','returnto':mw.config.get('wgPageName')}),'pitch-join-accept-login');return false;}},'edit':{'weight':2,'condition':function(){var restrictions=mw.config.get('wgRestrictionEdit',[]);if(restrictions.length){var groups=mw.config.get('wgUserGroups');for(var i=0;i
').articleFeedback(config);if($('#catlinks').length&&mw.config.get('skin')!='standard'){$aftDiv.insertBefore('#catlinks');}else{mw.util.$content.append($aftDiv);}var $tbAft=$('
  • ').find('a').text(mw.msg('articlefeedback-form-switch-label')).click(function(){trackClick('toolbox-link');var $box=$('#mw-articlefeedback');var count=0;var interval=setInterval(function(){$box.animate({'opacity' :0.5},100,function(){$box.animate({'opacity':1.0},100);});if(++count>=3){clearInterval(interval);}},200);return true;}).end();$('#p-tb').find('ul').append($tbAft);})(jQuery);;},{"all":"#articleFeedback-dialog{padding:2em;padding-top:1em}.articleFeedback-survey-disclaimer{font-weight:normal; font-style:italic}.articleFeedback-survey-disclaimer a{color:#0645AD; }\n\n/* cache key: enwiki:resourceloader:filter:minify-css:4:dc196b791bc596864c79249f49472c3c */"},{"articlefeedback-pitch-reject":"Maybe later","articlefeedback-pitch-or":"or","articlefeedback-pitch-thanks":"Thanks! Your ratings have been saved.","articlefeedback-pitch-survey-message":"Please take a moment to complete a short survey.","articlefeedback-pitch-survey-body":"","articlefeedback-pitch-survey-accept":"Start survey","articlefeedback-pitch-join-message":"Do you want to create an account?","articlefeedback-pitch-join-body": "An account will help you track your edits, get involved in discussions, and be a part of the community.","articlefeedback-pitch-join-accept":"Create an account","articlefeedback-pitch-join-login":"Log in","articlefeedback-pitch-edit-message":"Did you know that you can edit this page?","articlefeedback-pitch-edit-body":"","articlefeedback-pitch-edit-accept":"Edit this page","articlefeedback-survey-title":"Please answer a few questions","articlefeedback-survey-message-success":"Thanks for filling out the survey.","articlefeedback-survey-message-error":"An error has occurred.\nPlease try again later.","articlefeedback-survey-disclaimer":"By submitting, you agree to transparency under these $1.","articlefeedback-survey-disclaimerlink":"terms","articlefeedback-privacyurl":"http:\/\/wikimediafoundation.org\/wiki\/Feedback_privacy_statement"});mw.loader.implement("ext.articleFeedback.ratingi18n",function($){;},{},{"articlefeedback-field-trustworthy-label":"Trustworthy", "articlefeedback-field-trustworthy-tip":"Do you feel this page has sufficient citations and that those citations come from trustworthy sources?","articlefeedback-field-trustworthy-tooltip-1":"Lacks reputable sources","articlefeedback-field-trustworthy-tooltip-2":"Few reputable sources","articlefeedback-field-trustworthy-tooltip-3":"Adequate reputable sources","articlefeedback-field-trustworthy-tooltip-4":"Good reputable sources","articlefeedback-field-trustworthy-tooltip-5":"Great reputable sources","articlefeedback-field-objective-label":"Objective","articlefeedback-field-objective-tip":"Do you feel that this page shows a fair representation of all perspectives on the issue?","articlefeedback-field-objective-tooltip-1":"Heavily biased","articlefeedback-field-objective-tooltip-2":"Moderate bias","articlefeedback-field-objective-tooltip-3":"Minimal bias","articlefeedback-field-objective-tooltip-4":"No obvious bias","articlefeedback-field-objective-tooltip-5":"Completely unbiased", "articlefeedback-field-complete-label":"Complete","articlefeedback-field-complete-tip":"Do you feel that this page covers the essential topic areas that it should?","articlefeedback-field-complete-tooltip-1":"Missing most information","articlefeedback-field-complete-tooltip-2":"Contains some information","articlefeedback-field-complete-tooltip-3":"Contains key information, but with gaps","articlefeedback-field-complete-tooltip-4":"Contains most key information","articlefeedback-field-complete-tooltip-5":"Comprehensive coverage","articlefeedback-field-wellwritten-label":"Well-written","articlefeedback-field-wellwritten-tip":"Do you feel that this page is well-organized and well-written?","articlefeedback-field-wellwritten-tooltip-1":"Incomprehensible","articlefeedback-field-wellwritten-tooltip-2":"Difficult to understand","articlefeedback-field-wellwritten-tooltip-3":"Adequate clarity","articlefeedback-field-wellwritten-tooltip-4":"Good clarity", "articlefeedback-field-wellwritten-tooltip-5":"Exceptional clarity"});mw.loader.implement("jquery.appear",function($){(function($){$.fn.appear=function(fn,options){var settings=$.extend({data:undefined,one:true},options);return this.each(function(){var t=$(this);t.appeared=false;if(!fn){t.trigger('appear',settings.data);return;}var w=$(window);var check=function(){if(!t.is(':visible')){t.appeared=false;return;}var a=w.scrollLeft();var b=w.scrollTop();var o=t.offset();var x=o.left;var y=o.top;if(y+t.height()>=b&&y<=b+w.height()&&x+t.width()>=a&&x<=a+w.width()){if(!t.appeared)t.trigger('appear',settings.data);}else{t.appeared=false;}};var modifiedFn=function(){t.appeared=true;if(settings.one){w.unbind('scroll',check);var i=$.inArray(check,$.fn.appear.checks);if(i>=0)$.fn.appear.checks.splice(i,1);}fn.apply(this,arguments);};if(settings.one)t.one('appear',settings.data,modifiedFn);else t.bind('appear',settings.data,modifiedFn);w.scroll(check);$.fn.appear.checks.push(check);(check)();});}; $.extend($.fn.appear,{checks:[],timeout:null,checkAll:function(){var length=$.fn.appear.checks.length;if(length>0)while(length--)($.fn.appear.checks[length])();},run:function(){if($.fn.appear.timeout)clearTimeout($.fn.appear.timeout);$.fn.appear.timeout=setTimeout($.fn.appear.checkAll,20);}});$.each(['append','prepend','after','before','attr','removeAttr','addClass','removeClass','toggleClass','remove','css','show','hide'],function(i,n){var old=$.fn[n];if(old){$.fn[n]=function(){var r=old.apply(this,arguments);$.fn.appear.run();return r;}}});})(jQuery);;},{},{});mw.loader.implement("jquery.articleFeedback",function($){(function($){var tracked='track'===mw.user.bucket('ext.articleFeedback-tracking',mw.config.get('wgArticleFeedbackTracking'));var showOptions='show'===mw.user.bucket('ext.articleFeedback-options',mw.config.get('wgArticleFeedbackOptions'));var loadUserRatings=!mw.user.anonymous()||$.cookie(prefix('rated'))==='true';function prefix(key){var version=mw.config.get( 'wgArticleFeedbackTracking').version||0;return'ext.articleFeedback@'+version+'-'+key;}var updateMailValidityLabel=function(mail,context){var isValid=mw.util.validateEmail(mail),$that=context.$ui.find('.articleFeedback-helpimprove-email');if(isValid===null){$that.removeClass('valid invalid');}else if(isValid){$that.addClass('valid').removeClass('invalid');}else{$that.addClass('invalid').removeClass('valid');}};$.articleFeedback={'tpl':{'ui': '\
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \ \
    \
    \
    \
    \
    \
    \ \ \ \
    \
    \
    \
    \
    \
    \ \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \ ' ,'rating':'\
    \
    \ \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \ ','pitch': '\
    \
    \
    \
    \
    \
    \ \ \
    \
    \
    \ '},'fn':{'enableSubmission':function(state){var context=this;if(state){clearTimeout(context.successTimeout);context.$ui.find('.articleFeedback-submit').button({'disabled':false}).end().find('.articleFeedback-success span').hide().end().find('.articleFeedback-pending span').fadeIn('fast');}else{context.$ui.find('.articleFeedback-submit').button({'disabled':true}).end().find('.articleFeedback-pending span').hide();}},'updateRating':function(){var $rating=$(this);$rating.find('.articleFeedback-rating-label').removeClass('articleFeedback-rating-label-full');var val=$rating.find('input:hidden').val();var $label=$rating.find('.articleFeedback-rating-label[rel="'+val+'"]');if($label.length){$label.prevAll('.articleFeedback-rating-label').add($label).addClass('articleFeedback-rating-label-full').end().end().nextAll('.articleFeedback-rating-label').removeClass('articleFeedback-rating-label-full');$rating.find('.articleFeedback-rating-clear').show();}else{$rating.find('.articleFeedback-rating-clear').hide();}},'enableExpertise':function($expertise){$expertise.find('input:checkbox[value=general]').attr('disabled',false).end().find('.articleFeedback-expertise-disabled').removeClass('articleFeedback-expertise-disabled');},'submit':function(){var context=this;if(mw.user.anonymous()){$.cookie(prefix('rated'),'true',{'expires':365,'path':'/'});loadUserRatings=true;}$.articleFeedback.fn.enableSubmission.call(context,false);context.$ui.find('.articleFeedback-lock').show();var data={};for(var key in context.options.ratings){var id=context.options.ratings[key];data['r'+id]=context.$ui.find( 'input[name="r'+id+'"]').val();}var expertise=[];context.$ui.find('.articleFeedback-expertise input:checked').each(function(){expertise.push($(this).val());});data.expertise=expertise.join('|');$.ajax({'url':mw.config.get('wgScriptPath')+'/api.php','type':'POST','dataType':'json','context':context,'data':$.extend(data,{'action':'articlefeedback','format':'json','anontoken':mw.user.id(),'pageid':mw.config.get('wgArticleId'),'revid':mw.config.get('wgCurRevisionId'),'bucket':Number(showOptions)}),'success':function(data){var context=this;if('error'in data){mw.log('ArticleFeedback: Form submission error');mw.log(data.error);context.$ui.find('.articleFeedback-error').show();}else{$.articleFeedback.fn.load.call(context);context.$ui.find('.articleFeedback-lock').hide();}},'error':function(){var context=this;mw.log('Form submission error');context.$ui.find('.articleFeedback-error').show();}});if(context.$ui.find('.articleFeedback-helpimprove-email.valid').length&&!$.isEmpty(context.$ui.find( '.articleFeedback-helpimprove-email').val())&&context.$ui.find('.articleFeedback-helpimprove input:checked').length){$.ajax({'url':mw.config.get('wgScriptPath')+'/api.php','type':'POST','dataType':'json','context':context,'data':{'email':context.$ui.find('.articleFeedback-helpimprove-email').val(),'info':$.toJSON({'ratingData':data,'pageTitle':mw.config.get('wgTitle'),'pageCategories':mw.config.get('wgCategories')}),'action':'emailcapture','format':'json'},'success':function(data){var context=this;if('error'in data){mw.log('EmailCapture: Form submission error');mw.log(data.error);updateMailValidityLabel('triggererror',context);}else{context.$ui.find('.articleFeedback-helpimprove').hide();$.cookie(prefix('helpimprove-email'),'hide',{'expires':30,'path':'/'});}}});}else{context.$ui.find('.articleFeedback-helpimprove').find('input:checkbox').removeAttr('checked').end().find('.articleFeedback-helpimprove-email').val('').removeClass('valid invalid');}},'executePitch':function(action){var $pitch=$(this).closest('.articleFeedback-pitch');$pitch.find('.articleFeedback-accept, .articleFeedback-altAccept').button({'disabled':true}).end().find('.articleFeedback-reject').attr('disabled',true);var key=$pitch.attr('rel');if(action.call($(this))){$pitch.fadeOut().find('.articleFeedback-accept, .articleFeedback-altAccept').button({'disabled':false}).end().find('.articleFeedback-reject').attr('disabled',false).end().closest('.articleFeedback-panel').find('.articleFeedback-ui').show();}return false;},'load':function(){var context=this;$.ajax({'url':mw.config.get('wgScriptPath')+'/api.php','type':'GET','dataType':'json','context':context,'cache':!loadUserRatings,'data':{'action':'query','format':'json','list':'articlefeedback','afpageid':mw.config.get('wgArticleId'),'afanontoken':loadUserRatings?mw.user.id():'','afuserrating':Number(loadUserRatings),'maxage':0,'smaxage':loadUserRatings?0:mw.config.get('wgArticleFeedbackSMaxage')},'success':function(data){var context=this;if(!( 'query'in data)||!('articlefeedback'in data.query)||!$.isArray(data.query.articlefeedback)||!data.query.articlefeedback.length){mw.log('ArticleFeedback invalid response error.');context.$ui.find('.articleFeedback-error').show();return;}var feedback=data.query.articlefeedback[0];var $expertise=context.$ui.find('.articleFeedback-expertise');if(typeof feedback.expertise==='string'){var tags=feedback.expertise.split('|');if($.inArray('general',tags)!==-1){$expertise.find('input:checkbox').each(function(){$(this).attr('checked',$.inArray($(this).val(),tags)!==-1);});$expertise.find('.articleFeedback-expertise-options').hide().show();$.articleFeedback.fn.enableExpertise($expertise);}}else{$expertise.find('input:checkbox').attr('checked',false).end().find('.articleFeedback-expertise-options').hide();}var $helpimprove=context.$ui.find('.articleFeedback-helpimprove');var showHelpimprove=true;if($.cookie(prefix('helpimprove-email'))=='hide'||!mw.user.anonymous()){showHelpimprove=false;}if(! showHelpimprove){$helpimprove.hide();}var ratings={};if(typeof feedback.ratings==='object'&&feedback.ratings!==null){for(var i=0;i0){var average=Math.round((rating.total/rating.count)*10)/10;$(this).find('.articleFeedback-rating-average').text(mw.language.convertNumber(average+(average%1===0?'.0':''),false)).end().find('.articleFeedback-rating-meter div').css('width',Math.round(average*21)+'px').end().find('.articleFeedback-rating-count').text(mw.msg('articlefeedback-report-ratings',rating.countall));}else{$(this).find('.articleFeedback-rating-average').html(' ').end().find('.articleFeedback-rating-meter div').css ('width',0).end().find('.articleFeedback-rating-count').text(mw.msg('articlefeedback-report-empty'));}if(rating!==null&&typeof rating.userrating!=='undefined'){$(this).find('input:hidden').val(rating.userrating);if(rating.userrating>0){$.articleFeedback.fn.enableExpertise($expertise);}}else{$(this).find('input:hidden').val(0);}$.articleFeedback.fn.updateRating.call($(this));});if(typeof feedback.status==='string'&&feedback.status==='expired'){context.$ui.addClass('articleFeedback-expired').find('.articleFeedback-expiry').slideDown('fast');}else{context.$ui.removeClass('articleFeedback-expired').find('.articleFeedback-expiry').slideUp('fast');}context.$ui.find('.articleFeedback-rating-new').removeClass('articleFeedback-rating-new');},'error':function(){var context=this;mw.log('Report loading error');context.$ui.find('.articleFeedback-error').show();}});},'build':function(){var context=this;context.$ui.addClass('articleFeedback').append($.articleFeedback.tpl.ui).find( '.articleFeedback-ratings').each(function(){for(var key in context.options.ratings){var tipMsg='articlefeedback-field-'+key+'-tip',labelMsg='articlefeedback-field-'+key+'-label';$($.articleFeedback.tpl.rating).attr('rel',key).find('.articleFeedback-label').attr('title',mw.msg(tipMsg)).text(mw.msg(labelMsg)).end().find('.articleFeedback-rating-clear').attr('title',mw.msg('articlefeedback-form-panel-clear')).end().appendTo($(this));}}).end().find('.articleFeedback-explanation-link').attr('href',mw.config.get('wgArticlePath').replace('$1',mw.msg('articlefeedback-form-panel-explanation-link'))).end().find('.articleFeedback-pitches').each(function(){for(var key in context.options.pitches){var $pitch=$($.articleFeedback.tpl.pitch).attr('rel',key).find('.articleFeedback-title').text(mw.msg(context.options.pitches[key].title)).end().find('.articleFeedback-message').text(mw.msg(context.options.pitches[key].message)).end().find('.articleFeedback-body').text(mw.msg(context.options.pitches[key]. body)).end().find('.articleFeedback-accept').text(mw.msg(context.options.pitches[key].accept)).click(function(){var $pitch=$(this).closest('.articleFeedback-pitch');var key=$pitch.attr('rel');return $.articleFeedback.fn.executePitch.call($(this),context.options.pitches[key].action);}).button().addClass('ui-button-green').end().find('.articleFeedback-reject').text(mw.msg(context.options.pitches[key].reject)).click(function(){var $pitch=$(this).closest('.articleFeedback-pitch');var key=$pitch.attr('rel');$.cookie(prefix('pitch-'+key),'hide',{'expires':3,'path':'/'});if(tracked&&typeof $.trackAction=='function'){$.trackAction(prefix('pitch-'+key+'-reject'));}$pitch.fadeOut('fast',function(){context.$ui.find('.articleFeedback-ui').show();});}).end().appendTo($(this));if(typeof context.options.pitches[key].altAccept=='string'&&typeof context.options.pitches[key].altAction=='function'){$pitch.find('.articleFeedback-accept').after('').after($ ('').text(mw.msg('articlefeedback-pitch-or'))).end().find('.articleFeedback-altAccept').text(mw.msg(context.options.pitches[key].altAccept)).click(function(){var $pitch=$(this).closest('.articleFeedback-pitch');var key=$pitch.attr('rel');return $.articleFeedback.fn.executePitch.call($(this),context.options.pitches[key].altAction);}).button().addClass('ui-button-green');}}}).end().find('.articleFeedback-helpimprove-note').html(function(){var link=mw.html.element('a',{href:mw.msg('articlefeedback-privacyurl')},mw.msg('articlefeedback-form-panel-helpimprove-privacy'));return mw.html.escape(mw.msg('articlefeedback-form-panel-helpimprove-note')).replace(/\$1/,link);}).end().find('.articleFeedback-helpimprove-email').attr('placeholder',mw.msg('articlefeedback-form-panel-helpimprove-email-placeholder')).placeholder().one('blur',function(){var $el=$(this);updateMailValidityLabel($el.val(),context);$el.keyup(function(){updateMailValidityLabel($el. val(),context);});}).end().localize({'prefix':'articlefeedback-'}).find('[title]').tipsy({'gravity':'sw','center':false,'fade':true,'delayIn':300,'delayOut':100}).end().find('.articleFeedback-expertise > input:checkbox').change(function(){var $options=context.$ui.find('.articleFeedback-expertise-options');if($(this).is(':checked')){$options.slideDown('fast');}else{$options.slideUp('fast',function(){$options.find('input:checkbox').attr('checked',false);});}}).end().find('.articleFeedback-expertise input:checkbox').each(function(){var id='articleFeedback-expertise-'+$(this).attr('value');$(this).click(function(){$.articleFeedback.fn.enableSubmission.call(context,true);}).attr('id',id).next().attr('for',id);}).end().find('.articleFeedback-helpimprove > input:checkbox').each(function(){var id='articleFeedback-expertise-'+$(this).attr('value');$(this).attr('id',id).next().attr('for',id);}).end().find('.articleFeedback-helpimprove-email').bind('mousedown click',function(e){$(this).closest( '.articleFeedback-helpimprove').find('input:checkbox').attr('checked',true);}).end().find('.articleFeedback-submit').button().addClass('ui-button-blue').click(function(){$.articleFeedback.fn.submit.call(context);var pitches=[];for(var key in context.options.pitches){var display=$.cookie(prefix('pitch-'+key));if(display!=='hide'&&context.options.pitches[key].condition()){var weight='weight'in pitches?pitches.weight:1;for(var i=0;i
    ').html('
    ');}return this.$tip;},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=null;}},enable:function(){this.enabled=true;},disable:function(){this.enabled=false;},toggleEnabled:function(){this.enabled=!this.enabled;}};$.fn.tipsy=function(options){if(options===true){return this.data('tipsy');}else if(typeof options=='string'){return this.data('tipsy')[options]();}options=$.extend({},$.fn.tipsy.defaults,options);function get(ele){var tipsy=$.data(ele,'tipsy');if(!tipsy){tipsy=new Tipsy(ele,$.fn.tipsy.elementOptions(ele,options));$.data(ele,'tipsy',tipsy);}return tipsy;}function enter(){var tipsy=get(this);tipsy.hoverState='in';if(options.delayIn==0){tipsy.show();}else{setTimeout(function(){if(tipsy. hoverState=='in')tipsy.show();},options.delayIn);}};function leave(){var tipsy=get(this);tipsy.hoverState='out';if(options.delayOut==0){tipsy.hide();}else{setTimeout(function(){if(tipsy.hoverState=='out')tipsy.hide();},options.delayOut);}};if(!options.live)this.each(function(){get(this);});if(options.trigger!='manual'){var binder=options.live?'live':'bind',eventIn=options.trigger=='hover'?'mouseenter':'focus',eventOut=options.trigger=='hover'?'mouseleave':'blur';this[binder](eventIn,enter)[binder](eventOut,leave);}return this;};$.fn.tipsy.defaults={delayIn:0,delayOut:0,fade:true,fallback:'',gravity:'n',center:true,html:false,live:false,offset:0,opacity:1.0,title:'title',trigger:'hover'};$.fn.tipsy.elementOptions=function(ele,options){return $.metadata?$.extend({},options,$(ele).metadata()):options;};$.fn.tipsy.autoNS=function(){return $(this).offset().top>($(document).scrollTop()+$(window).height()/2)?'s':'n';};$.fn.tipsy.autoWE=function(){return $(this).offset().left>($(document). scrollLeft()+$(window).width()/2)?'e':'w';};})(jQuery);;},{"all": ".tipsy{padding:5px;position:absolute;z-index:100000;cursor:default}.tipsy-inner{padding:5px 8px 4px 8px; background-color:#ffffff;border:solid 1px #a7d7f9;color:black;max-width:15em;text-align:left;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px; }.tipsy-arrow{position:absolute;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAMAAACecocUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAlQTFRFp9f5+fn5////cvEDKAAAAAJ0Uk5T/wDltzBKAAAAMklEQVR42mJgBAEGBMnAxABjMzAxgTkMECaYwwBlgjgMMCaQgyKOoh7FHBTzYSRAgAEAJSAAj5EcAeEAAAAASUVORK5CYII=) no-repeat top left;background:url(//en.wikipedia.org/w/resources-1.18/resources/jquery.tipsy/images/tipsy.png?2011-09-19T16:13:20Z) no-repeat top left!ie;width:11px;height:6px}.tipsy-n .tipsy-arrow{top:0px;left:50%;margin-left:-5px}.tipsy-nw .tipsy-arrow{top:1px;left:10px}.tipsy-ne .tipsy-arrow{top:1px;right:10px}.tipsy-s .tipsy-arrow{bottom:0px;left:50%;margin-left:-5px;background-position:bottom left}.tipsy-sw .tipsy-arrow{bottom:0px;left:10px;background-position:bottom left}.tipsy-se .tipsy-arrow{bottom:0px;right:10px;background-position:bottom left}.tipsy-e .tipsy-arrow{top:50%;margin-top:-5px;right:1px;width:5px;height:11px;background-position:top right}.tipsy-w .tipsy-arrow{top:50%;margin-top:-5px;left:0px;width:6px;height:11px}\n\n/* cache key: enwiki:resourceloader:filter:minify-css:4:ccc62b4d69c4d12b4fec821fc3ae28d4 */" },{}); /* cache key: enwiki:resourceloader:filter:minify-js:4:e90c8a65a0abbd97e182a5b8f27dfbef */