(function(){function ai(){return"ckeditor";}function g(aE){return aE.elementMode==3;}function A(aE){return aE.name.replace(/\[/,"_").replace(/\]/,"_");}function i(aE){return aE.container.$;}function c(aE){return aE.document.$;}function J(aE){return aE.getSnapshot();}function L(aF,aE){aF.loadSnapshot(aE);}function S(aF){if(aF.getSelection()==null){return null;}var aE=aF.getSelection().getStartElement();if(aE&&aE.$){return aE.$;}return null;}function O(){return CKEDITOR.basePath;}function au(){return h("jsplus_bootstrap_breadcrumbs");}function h(aE){return CKEDITOR.plugins.getPath(aE);}function I(){return CKEDITOR.version.charAt(0)=="3"?3:4;}function r(aG,aF){if(I()==3){var aE=(aF.indexOf("jsplus_bootstrap_breadcrumbs_")==-1)?("jsplus_bootstrap_breadcrumbs_"+aF):aF;if(typeof(aG.lang[aE])!=="undefined"){return aG.lang[aE];}else{console.log("(v3) editor.lang['jsplus_bootstrap_breadcrumbs'] not defined");}}else{if(typeof(aG.lang["jsplus_bootstrap_breadcrumbs"])!=="undefined"){if(typeof(aG.lang["jsplus_bootstrap_breadcrumbs"][aF])!=="undefined"){return aG.lang["jsplus_bootstrap_breadcrumbs"][aF];}else{console.log("editor.lang['jsplus_bootstrap_breadcrumbs']['"+aF+"'] not defined");}}else{console.log("editor.lang['jsplus_bootstrap_breadcrumbs'] not defined");}}return"";}function P(aF,aE){return N(aF,"jsplus_bootstrap_breadcrumbs_"+aE);}function N(aF,aE){var aG=aF.config[aE];return aG;}function q(aE,aF){R("jsplus_bootstrap_breadcrumbs_"+aE,aF);}function R(aE,aF){CKEDITOR.config[aE]=aF;}function ao(aG,aF){var aE=CKEDITOR.dom.element.createFromHtml(aF);aG.insertElement(aE);}function o(){return"";}var M=0;var C=1;var G=2;function m(aE,aH,aF){var aG=null;if(aF==M){aG=CKEDITOR.TRISTATE_DISABLED;}else{if(aF==C){aG=CKEDITOR.TRISTATE_OFF;}else{if(aF==G){aG=CKEDITOR.TRISTATE_ON;}}}if(aG!=null&&aE.ui&&aE.ui.get(aH)){aE.ui.get(aH).setState(aG);}}function K(aE,aF){aE.on("selectionChange",function(aG){aF(aG.editor);});}function B(aF,aE,aG){if(aE=="beforeGetOutputHTML"){aF.on("toDataFormat",function(aH){return aG(aF,aH.data.dataValue);},null,null,4);return;}aF.on(aE,(function(){var aH=aF;return function(){aG(aH);};})());}function s(aG,aE,aJ,aH,aI,aF){aG.addCommand(aE,{exec:aI});aG.ui.addButton(aE,{title:r(aG,aH.replace(/^jsplus_/,"")),label:r(aG,aH.replace(/^jsplus_/,"")),icon:au()+"icons/"+aJ+".png",command:aJ});}function n(aE){return aE.mode=="wysiwyg";}function ad(aF,aE,aG){CKEDITOR.plugins.add(aF,{icons:aF,lang:aE,init:function(aH){aG(aH);}});}function e(){JSDialog.Config.skin=null;JSDialog.Config.templateDialog='
'+'
'+'
'+'
'+''+'X'+""+"
"+'
'+'
'+"
"+'"+"
"+"
";JSDialog.Config.templateButton='';JSDialog.Config.templateBg='
';JSDialog.Config.classButton="cke_dialog_ui_button";JSDialog.Config.classButtonOk="cke_dialog_ui_button_ok";JSDialog.Config.contentBorders=[3,1,15,1,65];CKEDITOR.skin.loadPart("dialog");v(document,".jsdialog_plugin_jsplus_bootstrap_breadcrumbs.jsdialog_bg { background-color: white; opacity: 0.5; position: fixed; left: 0; top: 0; width: 100%; height: 3000px; z-index: 11111; display: none; }"+".jsdialog_plugin_jsplus_bootstrap_breadcrumbs.jsdialog_dlg { font-family: Arial; padding: 0; position: fixed; z-index: 11112; background-color: white; border-radius: 5px; overflow:hidden; display: none; }"+".jsdialog_plugin_jsplus_bootstrap_breadcrumbs.jsdialog_show { display: block; }"+".jsdialog_plugin_jsplus_bootstrap_breadcrumbs .jsdialog_message_contents { font-size: 16px; padding: 10px 0 10px 7px; display: table; overflow: hidden; }"+".jsdialog_plugin_jsplus_bootstrap_breadcrumbs .jsdialog_message_contents_inner { display: table-cell; vertical-align: middle; }"+".jsdialog_plugin_jsplus_bootstrap_breadcrumbs .jsdialog_message_icon { padding-left: 100px; min-height: 64px; background-position: 10px 10px; background-repeat: no-repeat; box-sizing: content-box; }"+".jsdialog_plugin_jsplus_bootstrap_breadcrumbs .jsdialog_message_icon_info { background-image: url(img/info.png); }"+".jsdialog_plugin_jsplus_bootstrap_breadcrumbs .jsdialog_message_icon_warning { background-image: url(img/warning.png); }"+".jsdialog_plugin_jsplus_bootstrap_breadcrumbs .jsdialog_message_icon_error { background-image: url(img/error.png); }"+".jsdialog_plugin_jsplus_bootstrap_breadcrumbs .jsdialog_message_icon_confirm { background-image: url(img/confirm.png); }"+".jsdialog_plugin_jsplus_bootstrap_breadcrumbs .cke_dialog_contents { margin-top: 0; border-top: none; }"+".jsdialog_plugin_jsplus_bootstrap_breadcrumbs .cke_dialog_footer div { outline: none; }"+".jsdialog_plugin_jsplus_bootstrap_breadcrumbs .cke_dialog_footer_buttons > .cke_dialog_ui_button { margin-right: 5px; }"+".jsdialog_plugin_jsplus_bootstrap_breadcrumbs .cke_dialog_footer_buttons > .cke_dialog_ui_button:last-child { margin-right: 0; }"+".jsdialog_plugin_jsplus_bootstrap_breadcrumbs .cke_dialog_title { cursor: default; }"+".jsdialog_plugin_jsplus_bootstrap_breadcrumbs .cke_dialog_contents { padding: 0; }"); }function E(aE,aI,aG){if(typeof aI=="undefined"){aI=true;}if(typeof aG=="undefined"){aG=" ";}if(typeof(aE)=="undefined"){return"";}var aJ=1000;if(aE=aJ);return aE.toFixed(1)+aG+aF[aH]+(aI?"b":"");}function ab(aE){return aE.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");}function aq(aE){return aE.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");}function ah(aE){var aF=document.createElement("div");aF.innerHTML=aE;return aF.childNodes;}function an(aE){return aE.getElementsByTagName("head")[0];}function am(aE){return aE.getElementsByTagName("body")[0];}function ay(aG,aI){var aE=aG.getElementsByTagName("link");var aH=false;for(var aF=aE.length-1;aF>=0;aF--){if(aE[aF].href==aI){aE[aF].parentNode.removeChild(aE[aF]);}}}function Y(aH,aJ){if(!aH){return;}var aE=aH.getElementsByTagName("link");var aI=false;for(var aF=0;aF-1){aF.splice(aF.indexOf(aE),1);}var aH=aF.join(" ").trim();if(aH.length>0){aG.className=aH;}else{if(aG.hasAttribute("class")){aG.removeAttribute("class");}}}function a(aE){if(typeof(aE.className)==="undefined"||aE.className==null){return[];}return aE.className.split(/\s+/);}function aC(aH,aE){var aG=a(aH);for(var aF=0;aF-1){aI[aJ.substr(0,aE).trim()]=aJ.substr(aE+1);}else{aI[aJ]="";}}return aI;}function af(aG,aF){var aH=T(aG);for(var aE in aH){var aI=aH[aE];if(aE==aF){return aI;}}return null;}function Z(aH,aG,aE){var aI=T(aH);for(var aF in aI){var aJ=aI[aF];if(aF==aG&&aJ==aE){return true;}}return false;}function z(aG,aF,aE){var aH=T(aG);aH[aF]=aE;p(aG,aH);}function W(aF,aE){var aG=T(aF);delete aG[aE];p(aF,aG);}function p(aF,aH){var aG=[];for(var aE in aH){aG.push(aE+":"+aH[aE]);}if(aG.length>0){aF.setAttribute("style",aG.join(";"));}else{if(aF.hasAttribute("style")){aF.removeAttribute("style");}}}function u(aI,aF){var aG;if(Object.prototype.toString.call(aF)==="[object Array]"){aG=aF;}else{aG=[aF];}for(var aH=0;aH-1){aE.push(aI.childNodes[aH]);}}return aE;}function ae(){var aE=false;if(aE){var aI=window.location.hostname;var aH=0;var aF;var aG;if(aI.length!=0){for(aF=0,l=aI.length;aF0){aF+=aG;}if(aO){aF+=";margin-bottom:0";}if(aF.length>0){aF=' style="'+aF+'"';}var aI='
    \n";for(var aH=0;aH0?(' class="'+aE+'"'):"")+aM+">\n";htmlItem+='\t\t"+aQ.title+""+aN+"\n";htmlItem+="\n";aI+=htmlItem;}aI+="\n";return aI;}function at(aH,aF){var aJ={};aJ.items=[];var aM=aF.getElementsByTagName("li");for(var aG=0;aG0){var aI=aE[0];aL.href=aI.getAttribute("href");}else{aL.href="#";}aL.active=aC(aK,X);if(k==2){aL.unavailable=aC(aK,"unavailable");}aJ.items.push(aL);}return aJ;}function aw(aG){var aE={};aE.items=[];var aJ=true;var aF=0;do{var aI=document.getElementById("jsplus_bootstrap_breadcrumbs_item_wrap_"+aF+"_"+A(aG));if(aI){var aH={};aH.active=aI.getElementsByClassName("jsplus_bootstrap_breadcrumbs_active")[0].checked;if(k==2){aH.unavailable=aI.getElementsByClassName("jsplus_bootstrap_breadcrumbs_unavailable")[0].checked;}aH.title=aI.getElementsByClassName("jsplus_bootstrap_breadcrumbs_title")[0].value;aH.href=aI.getElementsByClassName("jsplus_bootstrap_breadcrumbs_href")[0].value;aE.items.push(aH);}else{aJ=false;}aF++;}while(aJ);return aE;}function aB(aF,aE){return al(aF,aw(aF),aE);}function aa(aG){var aE=aB(aG,true);var aF=document.getElementById("jsplus_bootstrap_breadcrumbs_preview_"+A(aG));aF.innerHTML=aE;}function H(aF){var aE=document.getElementById("jsplus_bootstrap_breadcrumbs_tbody_"+A(aF));aE.innerHTML="";}function D(aI,aJ){var aF=aw(aI);var aE=aF.items.length==0||aF.items[aF.items.length-1].active;var aH={title:aJ,href:"#",active:aE};if(k==2){aH.unavailable=false;}if(aE){for(var aG=0;aG0){aF.items[aI-1].active=true;}Q(aH,aF);f(aH);aa(aH);}function t(aG,aH){var aJ=true;var aE=0;do{var aI=document.getElementById("jsplus_bootstrap_breadcrumbs_item_wrap_"+aE+"_"+A(aG));if(aI){if(aE!=aH.parentNode.parentNode.getAttribute("data-number")){var aF=aI.getElementsByClassName("jsplus_bootstrap_breadcrumbs_active")[0];aF.onchange=null;aF.checked=false;aF.onchange=(function(){var aK=aG;var aL=aF;return function(){t(aK,aL);};})();}}else{aJ=false;}aE++;}while(aJ);aa(aG);}var w=[];function ax(aG,aF){w[A(aG)]=aF;var aE=at(aG,aF);Q(aG,aE);}function Q(aH,aE){H(aH);var aG="";for(var aF=0;aF'+'"+""; aG-=20;}var aH=''+''+'"+""+aL+''+''+'
    -
    '+"";return aH;}function U(aG){var aF=175;var aH="";if(k==2){aH='
    U
    ';aF-=20;}var aE='"+'
    '+'
    '+''+''+""+''+aH+'"+'"+''+""+""+''+""+"
    C
    '+r(aG,"option_title")+"'+r(aG,"option_link")+"
    "+"
    "+'"+'
    '+r(aG,"preview")+":"+"
    "+'
    '+"
    "+"
    ";return aE;}function F(aF){var aE=S(aF);aE=ar(aE);if(aE){ax(aF,aE);}else{ag(aF);}aa(aF);}function y(aF){var aE=aB(aF);if(!w[A(aF)]){ao(aF,aE);}else{x(w[A(aF)],aE);}}CKEDITOR.plugins.add("jsplus_bootstrap_breadcrumbs",{lang:"en",icons:"jsplus_bootstrap_breadcrumbs",init:function(aE){CKEDITOR.dialog.add("jsplus_bootstrap_breadcrumbs"+A(aE),function(aF){return{title:r(aF,"jsplus_bootstrap_breadcrumbs_title"),minWidth:250,minHeight:250,resizable:false,contents:[{id:"tab1_jsplus_bootstrap_breadcrumbs_"+A(aF),label:"",title:"",expand:true,padding:0,elements:[{id:"elementId"+A(aF),type:"html",html:U(aF)}]}],buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton],onShow:function(){F(aF);},onOk:function(){y(aF);}};});if(aE.addMenuItems){aE.addMenuItems({"jsplus_bootstrap_breadcrumbs":{label:r(aE,"jsplus_bootstrap_breadcrumbs_title"),command:"jsplus_bootstrap_breadcrumbs",group:"table",order:5}});}if(aE.contextMenu){aE.contextMenu.addListener(function(aF){if(ar(aF)!=null){return{"jsplus_bootstrap_breadcrumbs":CKEDITOR.TRISTATE_ON};}});}aE.addCommand("jsplus_bootstrap_breadcrumbs",new CKEDITOR.dialogCommand("jsplus_bootstrap_breadcrumbs"+A(aE)));aE.ui.addButton("jsplus_bootstrap_breadcrumbs",{title:r(aE,"jsplus_bootstrap_breadcrumbs_title"),icon:this.path+"icons/jsplus_bootstrap_breadcrumbs.png",command:"jsplus_bootstrap_breadcrumbs"});}});})();