NEW_CKEDITOR.dialog.add("a11yHelp",(function(e){function n(e){for(var n,a,i=[],t=0;t<o.length;t++)a=o[t],1<(n=e/o[t])&&2>=n&&(e-=a,i.push(r[a]));return i.push(r[e]||String.fromCharCode(e)),i.join("+")}function a(a,i){var t=e.getCommandKeystroke(i,!0);return t.length?NEW_CKEDITOR.tools.array.map(t,n).join(" / "):a}var i=e.lang.a11yhelp,t=e.lang.common.keyboard,l=NEW_CKEDITOR.tools.getNextId(),d=/\$\{(.*?)\}/g,o=[NEW_CKEDITOR.ALT,NEW_CKEDITOR.SHIFT,NEW_CKEDITOR.CTRL],r={8:t[8],9:i.tab,13:t[13],16:t[16],17:t[17],18:t[18],19:i.pause,20:i.capslock,27:i.escape,33:i.pageUp,34:i.pageDown,35:t[35],36:t[36],37:i.leftArrow,38:i.upArrow,39:i.rightArrow,40:i.downArrow,45:i.insert,46:t[46],91:i.leftWindowKey,92:i.rightWindowKey,93:i.selectKey,96:i.numpad0,97:i.numpad1,98:i.numpad2,99:i.numpad3,100:i.numpad4,101:i.numpad5,102:i.numpad6,103:i.numpad7,104:i.numpad8,105:i.numpad9,106:i.multiply,107:i.add,109:i.subtract,110:i.decimalPoint,111:i.divide,112:i.f1,113:i.f2,114:i.f3,115:i.f4,116:i.f5,117:i.f6,118:i.f7,119:i.f8,120:i.f9,121:i.f10,122:i.f11,123:i.f12,144:i.numLock,145:i.scrollLock,186:i.semiColon,187:i.equalSign,188:i.comma,189:i.dash,190:i.period,191:i.forwardSlash,192:i.graveAccent,219:i.openBracket,220:i.backSlash,221:i.closeBracket,222:i.singleQuote};return r[NEW_CKEDITOR.ALT]=t[18],r[NEW_CKEDITOR.SHIFT]=t[16],r[NEW_CKEDITOR.CTRL]=NEW_CKEDITOR.env.mac?t[224]:t[17],{title:i.title,minWidth:600,minHeight:400,contents:[{id:"info",label:e.lang.common.generalTab,expand:!0,elements:[{type:"html",id:"legends",style:"white-space:normal;",focus:function(){this.getElement().focus()},html:function(){for(var e='<div class="edi_accessibility_legend" role="document" aria-labelledby="'+l+'_arialbl" tabIndex="-1">%1</div><span id="'+l+'_arialbl" class="edi_voice_label">'+i.contents+" </span>",n=[],t=i.legend,o=t.length,r=0;r<o;r++){for(var s=t[r],c=[],p=s.items,g=p.length,m=0;m<g;m++){var u,h=p[m];(u=(u=NEW_CKEDITOR.env.edge&&h.legendEdge?h.legendEdge:h.legend).replace(d,a)).match(d)||c.push("<dt>%1</dt><dd>%2</dd>".replace("%1",h.name).replace("%2",u))}n.push("<h1>%1</h1><dl>%2</dl>".replace("%1",s.name).replace("%2",c.join("")))}return e.replace("%1",n.join(""))}()+'<style type="text/css">.edi_accessibility_legend{width:600px;height:400px;padding-right:5px;overflow-y:auto;overflow-x:hidden;}.edi_browser_quirks .edi_accessibility_legend,{height:390px}.edi_accessibility_legend *{white-space:normal;}.edi_accessibility_legend h1{font-size: 20px;border-bottom: 1px solid #AAA;margin: 5px 0px 15px;}.edi_accessibility_legend dl{margin-left: 5px;}.edi_accessibility_legend dt{font-size: 13px;font-weight: bold;}.edi_accessibility_legend dd{margin:10px}</style>'}]}],buttons:[NEW_CKEDITOR.dialog.cancelButton]}}));