(function(){var URL=window.UEDITOR_HOME_URL||(function(){function PathStack(){this.documentURL=self.document.URL||self.location.href;this.separator='/';this.separatorPattern=/\\|\//g;this.currentDir='./';this.currentDirPattern=/^[.]\/]/;this.path=this.documentURL;this.stack=[];this.push(this.documentURL);}
PathStack.isParentPath=function(path){return path==='..';};PathStack.hasProtocol=function(path){return!!PathStack.getProtocol(path);};PathStack.getProtocol=function(path){var protocol=/^[^:]*:\/*/.exec(path);return protocol?protocol[0]:null;};PathStack.prototype={push:function(path){this.path=path;update.call(this);parse.call(this);return this;},getPath:function(){return this+"";},toString:function(){return this.protocol+(this.stack.concat([''])).join(this.separator);}};function update(){var protocol=PathStack.getProtocol(this.path||'');if(protocol){this.protocol=protocol;this.localSeparator=/\\|\//.exec(this.path.replace(protocol,''))[0];this.stack=[];}else{protocol=/\\|\//.exec(this.path);protocol&&(this.localSeparator=protocol[0]);}}
function parse(){var parsedStack=this.path.replace(this.currentDirPattern,'');if(PathStack.hasProtocol(this.path)){parsedStack=parsedStack.replace(this.protocol,'');}
parsedStack=parsedStack.split(this.localSeparator);parsedStack.length=parsedStack.length-1;for(var i=0,tempPath,l=parsedStack.length,root=this.stack;i<l;i++){tempPath=parsedStack[i];if(tempPath){if(PathStack.isParentPath(tempPath)){root.pop();}else{root.push(tempPath);}}}}
var currentPath=document.getElementsByTagName('script');currentPath=currentPath[currentPath.length-1].src;return new PathStack().push(currentPath)+"";})();var domain="http://oa.ba.com/";if(typeof(upload_manager_action)=='undefined')
{upload_manager_action="cms_uploads/upload";}
if(typeof(upload_domain)=='undefined')
{upload_domain="";}
window.UEDITOR_CONFIG={UEDITOR_HOME_URL:URL,imageUrl:domain+upload_manager_action,imagePath:upload_domain,imageFieldName:"fileUpload",compressSide:0,maxImageSideLength:1920,scrawlUrl:URL+"php/scrawlUp.php",scrawlPath:URL+"php/",fileUrl:domain+"oa_workatt/upload",filePath:upload_domain,fileFieldName:"upfile",catcherUrl:URL+"php/getRemoteImage.php",catcherPath:URL+"php/",imageManagerUrl:URL+"php/imageManager.php",imageManagerPath:URL+"php/",snapscreenHost:location.hostname,snapscreenServerUrl:URL+"php/imageUp.php",snapscreenPath:URL+"php/",snapscreenServerPort:location.port,wordImageUrl:URL+"php/imageUp.php",wordImagePath:URL+"php/",getMovieUrl:URL+"php/getMovie.php",toolbars:[['fullscreen','source','|','undo','redo','|','bold','italic','underline','fontborder','strikethrough','superscript','subscript','removeformat','formatmatch','autotypeset','blockquote','pasteplain','|','forecolor','backcolor','insertorderedlist','insertunorderedlist','selectall','cleardoc','|','rowspacingtop','rowspacingbottom','lineheight','|','customstyle','paragraph','fontfamily','fontsize','|','directionalityltr','directionalityrtl','indent','|','justifyleft','justifycenter','justifyright','justifyjustify','|','touppercase','tolowercase','|','link','unlink','anchor','|','imagenone','imageleft','imageright','imagecenter','|','insertimage','emotion','scrawl','insertvideo','music','attachment','map','gmap','insertframe','insertcode','webapp','pagebreak','template','background','|','horizontal','date','time','spechars','snapscreen','wordimage','|','inserttable','deletetable','insertparagraphbeforetable','insertrow','deleterow','insertcol','deletecol','mergecells','mergeright','mergedown','splittocells','splittorows','splittocols','|','print','preview','searchreplace','help']],zIndex:99999,autoHeightEnabled:false,autoFloatEnabled:true,topOffset:10,toolbarTopOffset:300};})();