(function(){var e=window.parent;dialog=e.$EDITORUI[window.frameElement.id.replace(/_iframe$/,"")];editor=dialog.editor;UE=e.UE;domUtils=UE.dom.domUtils;utils=UE.utils;browser=UE.browser;ajax=UE.ajax;$G=function(b){return document.getElementById(b)};$focus=function(b){setTimeout(function(){if(browser.ie){var d=b.createTextRange();d.collapse(!1);d.select()}else b.focus()},0)};utils.loadFile(document,{href:editor.options.themePath+editor.options.theme+"/dialogbase.css?cache\x3d"+Math.random(),tag:"link",type:"text/css",rel:"stylesheet"});if(lang=editor.getLang(dialog.className.split("-")[2]))domUtils.on(window,"load",function(){var b=editor.options.langPath+editor.options.lang+"/images/",d;for(d in lang["static"]){var c=$G(d);if(c){var f=c.tagName,a=lang["static"][d];a.src&&(a=utils.extend({},a,!1),a.src=b+a.src);a.style&&(a=utils.extend({},a,!1),a.style=a.style.replace(/url\s*\(/g,"url("+b));switch(f.toLowerCase()){case "var":c.parentNode.replaceChild(document.createTextNode(a),c);break;case "select":for(var f=c.options,e=0,h;h=f[e];)h.innerHTML=a.options[e++];for(var g in a)"options"!=g&&c.setAttribute(g,a[g]);break;default:domUtils.setAttributes(c,a)}}}})})();