(function(){var onlineImage,backupStyle=editor.queryCommandValue("background");window.onload=function(){initTabs();initColorSelector()};function initTabs(){var tabs=$G("tabHeads").children;for(var i=0;i=json.total){_this.listEnd=true}_this.isLoadingData=false}}catch(e){if(r.responseText.indexOf("ue_separate_ue")!=-1){var list=r.responseText.split(r.responseText);_this.pushData(list);_this.listIndex=parseInt(list.length);_this.listEnd=true;_this.isLoadingData=false}}},onerror:function(){_this.isLoadingData=false}})}},pushData:function(list){var i,item,img,icon,_this=this,urlPrefix=editor.getOpt("imageManagerUrlPrefix");for(i=0;i=oh){img.width=w;img.height=h*oh/ow;img.style.marginLeft="-"+parseInt((img.width-w)/2)+"px"}else{img.width=w*ow/oh;img.height=h;img.style.marginTop="-"+parseInt((img.height-h)/2)+"px"}}else{if(ow>=oh){img.width=w*ow/oh;img.height=h;img.style.marginLeft="-"+parseInt((img.width-w)/2)+"px"}else{img.width=w;img.height=h*oh/ow;img.style.marginTop="-"+parseInt((img.height-h)/2)+"px"}}},getInsertList:function(){var i,lis=this.list.children,list=[],align=getAlign();for(i=0;i