text: /*
  Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
  For licensing, see LICENSE.html or http://ckeditor.com/license
  */
  CKEDITOR.dialog.add("specialchar",function(e){var t,i,n=e.lang.specialChar,a=function(i){var n,a;if(n=i.data?i.data.getTarget():new CKEDITOR.dom.element(i),"a"==n.getName()&&(a=n.getChild(0).getHtml())){n.removeClass("cke_light_background"),t.hide();var o=e.document.createElement("span");o.setHtml(a),e.insertText(o.getText())}},o=CKEDITOR.tools.addFunction(a),r=function(e,n){var a;if(n=n||e.data.getTarget(),"span"==n.getName()&&(n=n.getParent()),"a"==n.getName()&&(a=n.getChild(0).getHtml())){i&&s(null,i);var o=t.getContentElement("info","htmlPreview").getElement();t.getContentElement("info","charPreview").getElement().setHtml(a),o.setHtml(CKEDITOR.tools.htmlEncode(a)),n.getParent().addClass("cke_light_background"),i=n}},s=function(e,n){n=n||e.data.getTarget(),"span"==n.getName()&&(n=n.getParent()),"a"==n.getName()&&(t.getContentElement("info","charPreview").getElement().setHtml("&nbsp;"),t.getContentElement("info","htmlPreview").getElement().setHtml("&nbsp;"),n.getParent().removeClass("cke_light_background"),i=void 0)},l=CKEDITOR.tools.addFunction(function(t){t=new CKEDITOR.dom.event(t);var i,n,o=t.getTarget(),l=t.getKeystroke(),c="rtl"==e.lang.dir;switch(l){case 38:(i=o.getParent().getParent().getPrevious())&&(n=i.getChild([o.getParent().getIndex(),0]),n.focus(),s(null,o),r(null,n)),t.preventDefault();break;case 40:(i=o.getParent().getParent().getNext())&&(n=i.getChild([o.getParent().getIndex(),0]),n&&1==n.type&&(n.focus(),s(null,o),r(null,n))),t.preventDefault();break;case 32:a({data:t}),t.preventDefault();break;case c?37:39:case 9:(i=o.getParent().getNext())?(n=i.getChild(0),1==n.type?(n.focus(),s(null,o),r(null,n),t.preventDefault(!0)):s(null,o)):(i=o.getParent().getParent().getNext())&&(n=i.getChild([0,0]),n&&1==n.type?(n.focus(),s(null,o),r(null,n),t.preventDefault(!0)):s(null,o));break;case c?39:37:case CKEDITOR.SHIFT+9:(i=o.getParent().getPrevious())?(n=i.getChild(0),n.focus(),s(null,o),r(null,n),t.preventDefault(!0)):(i=o.getParent().getParent().getPrevious())?(n=i.getLast().getChild(0),n.focus(),s(null,o),r(null,n),t.preventDefault(!0)):s(null,o);break;default:return}});return{title:n.title,minWidth:430,minHeight:280,buttons:[CKEDITOR.dialog.cancelButton],charColumns:17,onLoad:function(){for(var t,i,a=this.definition.charColumns,r=(e.config.extraSpecialChars,e.config.specialChars),s=CKEDITOR.tools.getNextId()+"_specialchar_table_label",c=['<table role="listbox" aria-labelledby="'+s+'" style="width: 320px; height: 100%; border-collapse: separate;" align="center" cellspacing="2" cellpadding="2" border="0">'],d=0,u=r.length;u>d;){c.push("<tr>");for(var h=0;a>h;h++,d++){if(t=r[d]){if(i="",t instanceof Array)i=t[1],t=t[0];else{var p=t.replace("&","").replace(";","").replace("#","");i=n[p]||t}var m="cke_specialchar_label_"+d+"_"+CKEDITOR.tools.getNextNumber();c.push('<td class="cke_dark_background" style="cursor: default" role="presentation"><a href="javascript: void(0);" role="option" aria-posinset="'+(d+1)+'"',' aria-setsize="'+u+'"',' aria-labelledby="'+m+'"',' style="cursor: inherit; display: block; height: 1.25em; margin-top: 0.25em; text-align: center;" title="',CKEDITOR.tools.htmlEncode(i),'" onkeydown="CKEDITOR.tools.callFunction( '+l+', event, this )" onclick="CKEDITOR.tools.callFunction('+o+', this); return false;" tabindex="-1"><span style="margin: 0 auto;cursor: inherit">'+t+'</span><span class="cke_voice_label" id="'+m+'">'+i+"</span></a>")}else c.push('<td class="cke_dark_background">&nbsp;');c.push("</td>")}c.push("</tr>")}c.push("</tbody></table>",'<span id="'+s+'" class="cke_voice_label">'+n.options+"</span>"),this.getContentElement("info","charContainer").getElement().setHtml(c.join(""))},contents:[{id:"info",label:e.lang.common.generalTab,title:e.lang.common.generalTab,padding:0,align:"top",elements:[{type:"hbox",align:"top",widths:["320px","90px"],children:[{type:"html",id:"charContainer",html:"",onMouseover:r,onMouseout:s,focus:function(){var e=this.getElement().getElementsByTag("a").getItem(0);setTimeout(function(){e.focus(),r(null,e)},0)},onShow:function(){var e=this.getElement().getChild([0,0,0,0,0]);setTimeout(function(){e.focus(),r(null,e)},0)},onLoad:function(e){t=e.sender}},{type:"hbox",align:"top",widths:["100%"],children:[{type:"vbox",align:"top",children:[{type:"html",html:"<div></div>"},{type:"html",id:"charPreview",className:"cke_dark_background",style:"border:1px solid #eeeeee;font-size:28px;height:40px;width:70px;padding-top:9px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",html:"<div>&nbsp;</div>"},{type:"html",id:"htmlPreview",className:"cke_dark_background",style:"border:1px solid #eeeeee;font-size:14px;height:20px;width:70px;padding-top:2px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",html:"<div>&nbsp;</div>"}]}]}]}]}]}});