CKEDITOR.skins.add("kama",(function(){var b="cke_ui_color";return{editor:{css:["editor.css"]},dialog:{css:["dialog.css"]},richcombo:{canGroup:false},templates:{css:["templates.css"]},margins:[0,0,0,0],init:function(a){if(a.config.width&&!isNaN(a.config.width)){a.config.width-=12}var p=[],o=/\$color/g,n="/* UI Color Support */.cke_skin_kama .cke_menuitem .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_label,.cke_skin_kama .cke_menuitem a:focus .cke_label,.cke_skin_kama .cke_menuitem a:active .cke_label{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_label{\tbackground-color: transparent !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuseparator{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover,.cke_skin_kama .cke_menuitem a:focus,.cke_skin_kama .cke_menuitem a:active{\tbackground-color: $color !important;}";if(CKEDITOR.env.webkit){n=n.split("}").slice(0,-1);for(var m=0;m<n.length;m++){n[m]=n[m].split("{")}}function l(d){var c=d.getById(b);if(!c){c=d.getHead().append("style");c.setAttribute("id",b);c.setAttribute("type","text/css")}return c}function k(f,e,d){var c,i,h;for(var g=0;g<f.length;g++){if(CKEDITOR.env.webkit){for(i=0;i<e.length;i++){h=e[i][1];for(c=0;c<d.length;c++){h=h.replace(d[c][0],d[c][1])}f[g].$.sheet.addRule(e[i][0],h)}}else{h=e;for(c=0;c<d.length;c++){h=h.replace(d[c][0],d[c][1])}if(CKEDITOR.env.ie){f[g].$.styleSheet.cssText+=h}else{f[g].$.innerHTML+=h}}}}var j=/\$color/g;CKEDITOR.tools.extend(a,{uiColor:null,getUiColor:function(){return this.uiColor},setUiColor:function(f){var e,d=l(CKEDITOR.document),c="."+a.id,h=[c+" .cke_wrapper",c+"_dialog .cke_dialog_contents",c+"_dialog a.cke_dialog_tab",c+"_dialog .cke_dialog_footer"].join(","),g="background-color: $color !important;";if(CKEDITOR.env.webkit){e=[[h,g]]}else{e=h+"{"+g+"}"}return(this.setUiColor=function(r){var i=[[j,r]];a.uiColor=r;k([d],e,i);k(p,n,i)})(f)}});a.on("menuShow",function(f){var e=f.data[0],d=e.element.getElementsByTag("iframe").getItem(0).getFrameDocument();if(!d.getById("cke_ui_color")){var c=l(d);p.push(c);var g=a.getUiColor();if(g){k([c],n,[[j,g]])}}});if(a.config.uiColor){a.setUiColor(a.config.uiColor)}}}})());(function(){CKEDITOR.dialog?b():CKEDITOR.on("dialogPluginReady",b);function b(){CKEDITOR.dialog.on("resize",function(a){var l=a.data,k=l.width,j=l.height,i=l.dialog,h=i.parts.contents;if(l.skin!="kama"){return}h.setStyles({width:k+"px",height:j+"px"})})}})();