!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(e){return document.getElementById(e)},$focus=function(t){setTimeout(function(){var e;browser.ie?((e=t.createTextRange()).collapse(!1),e.select()):t.focus()},0)},utils.loadFile(document,{href:editor.options.themePath+editor.options.theme+"/dialogbase.css?cache="+Math.random(),tag:"link",type:"text/css",rel:"stylesheet"}),lang=editor.getLang(dialog.className.split("-")[2]),lang&&domUtils.on(window,"load",function(){var e,t=editor.options.langPath+editor.options.lang+"/images/";for(e in lang.static){var o=$G(e);if(o){var a=o.tagName,i=lang.static[e];switch(i.src&&((i=utils.extend({},i,!1)).src=t+i.src),i.style&&((i=utils.extend({},i,!1)).style=i.style.replace(/url\s*\(/g,"url("+t)),a.toLowerCase()){case"var":o.parentNode.replaceChild(document.createTextNode(i),o);break;case"select":for(var s,r,n=o.options,l=0;s=n[l];)s.innerHTML=i.options[l++];for(r in i)"options"!=r&&o.setAttribute(r,i[r]);break;default:domUtils.setAttributes(o,i)}}}})}();