⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 skytree.js

📁 Absolutely wonderful features you may never imagine before, Skytree v2.0 takes you into a new era of
💻 JS
📖 第 1 页 / 共 4 页
字号:
/*------------ Version information ------------*/
ST_VER_EDITION = 'Trial';
ST_VER_NUMBER = '2.0';
ST_VER_BUILD = '0118';
ST_LISENCE_KEY = '7CD56A88350EB6A2D8F0307DB4366EC5B30DA463453C96D1FB81490B8FC9D71AB9F74B357891FD9C39025D988FBBE684FC159486EAE9F149';

ST_DISPLAY_MODE_HTML=0;ST_DISPLAY_MODE_SELECT=1;ST_SLIDE_MODE_DYNAMIC=0;ST_SLIDE_MODE_STATIC=1;ST_DEFAULT_THEME='Default';ST_DEFAULT_BASE_PATH='';ST_ABOUT_PATH='Script/Dialog/Dialog.About.html';ST_RESPONSE_TIMEOUT=3000;ST_AUTO_EXPAND_DELAY=500;ST_SCROLL_DELAY=2;ST_EDIT_TEXT_MIN_WIDTH=50;ST_DEFAULT_LANG='en';ST_DEFAULT_NORMAL_CLASS='TCnt';ST_DEFAULT_FOCUS_CLASS='TCntFocus';ST_SEARCH_VALUE=1;ST_SEARCH_TEXT=2;ST_SEARCH_HINT=4;ST_TREE_ICON={'TI_OPEN':'FOpen.gif','TI_CLOSE':'FClose.gif','TI_LMINUS':'Lminus.gif','TI_LPLUS':'Lplus.gif','TI_TMINUS':'Tminus.gif','TI_TPLUS':'Tplus.gif','TI_FMINUS':'Fminus.gif','TI_RPLUS':'Rplus.gif','TI_RMINUS':'Rminus.gif','TI_FPLUS':'Fplus.gif','TI_BLANK':'Blank.gif','TI_LEAF':'Leaf.gif','TI_F':'F.gif','TI_I':'I.gif','TI_L':'L.gif','TI_T':'T.gif','TI_ABOUT':'About.gif','I_INFO':'Info.gif','I_WARNING':'Warning.gif','I_ERROR':'Error.gif','I_LOADING':'Loading.gif','TAG_UP':'DropUp.gif','TAG_DOWN':'DropDown.gif','TAG_SUB':'Sub.gif','TAG_CHECK':'Checked.gif','CM_NEWSIB':'AddSibling.gif','CM_NEWCHD':'AddChild.gif','CM_EDIT':'Edit.gif','CM_DEL':'Delete.gif','CM_EXEC':'Execute.gif','CM_EXP':'Expand.gif','CM_COL':'Collapse.gif','CM_FEC':'FullExpCol.gif','I_UNKNOWN':'Unknown.gif'};var g_focusInstance='';var g_focused=false;var g_langMapping={'en':'en','zh-cn':'cn','zh-tw':'tw','ja':'ja'};var g_cursorSheet=null;if(document.createStyleSheet){g_cursorSheet=document.createStyleSheet();}function SkyTree(_bq,_aq){if(!_bq||!_aq){alert('Parameters are not enough to initialize SkyTree.');return null;}this.id='';this.instanceName=_bq;this.basePath=ST_DEFAULT_BASE_PATH;this.checkName='';this.isRadio=false;this.autoCheck=false;this.displayMode=ST_DISPLAY_MODE_HTML;this.slideMode=ST_SLIDE_MODE_DYNAMIC;this.theme=ST_DEFAULT_THEME;this.singleExpand=true;this.expandLevel=0;this.hintBeforeDelete=true;this.defMethod='';this.focusExecute=false;this.readOnly=false;this.allowFocus=true;this.allowDragDrop=true;this.allowContextMenu=true;this.lang=(navigator.systemLanguage||navigator.language).toLowerCase();this.langLib={};this.defIconExp='';this.defIconCol='';this.defIconLeaf='';this.requestURL='';this.initialized=false;this.loaded=false;this.eleContainer=document.getElementById(_aq);this.eleMain=null;this.eleIframe=null;this.eleText=null;this.eleInfo=null;this.eleAbout=null;this.contextMenu=null;this._by=null;this._cB=null;this.ds=null;this.rootNode=null;this.tempData=null;this._aC=null;this.maxId=-1;this.countNode=0;this.oninitialize=function(tree){};this.ondestroy=function(tree){};this.beforeinsert=function(tree,sender){};this.beforeedit=function(tree,sender){};this.beforedelete=function(tree,sender){};this.beforedrop=function(tree,senderSrc,senderDes,order){};this.afterinsert=function(tree,sender){};this.afteredit=function(tree,sender){};this.afterdelete=function(tree){};this.afterdrop=function(tree,sender){};this.eventCanceled=false;this._bx=false;this._cg=false;this._aA=null;this._bY=0;this._bZ=0;this._aH=0;this._aI=0;this._aD=-1;this._aG=null;this._at=null;this._aB='';this._aE=new Array();this._aF=-1;};SkyTree.prototype.initialize=function(_as){var _bq=this.instanceName;if(typeof(_as)!='undefined'){if(_as['id']){this.id=_as['id'];}if(_as['basePath']){this.basePath=_as['basePath'];}if(_as['lang']){this.lang=_as['lang'];}if(_as['checkName']){this.checkName=_as['checkName'];}if(typeof(_as['isRadio'])!='undefined'){this.isRadio=_as['isRadio'];}if(typeof(_as['autoCheck'])!='undefined'){this.autoCheck=_as['autoCheck'];}if(_as['displayMode']){this.displayMode=_as['displayMode'];}if(_as['slideMode']){this.slideMode=_as['slideMode'];}if(_as['theme']){this.theme=_as['theme'];}if(typeof(_as['singleExpand'])!='undefined'){this.singleExpand=_as['singleExpand'];}if(_as['expandLevel']){this.expandLevel=_as['expandLevel'];}if(_as['defMethod']){this.defMethod=_as['defMethod'];}if(typeof(_as['focusExecute'])!='undefined'){this.focusExecute=_as['focusExecute'];}if(typeof(_as['readOnly'])!='undefined'){this.readOnly=_as['readOnly'];}if(typeof(_as['allowFocus'])!='undefined'){this.allowFocus=_as['allowFocus'];}if(typeof(_as['allowDragDrop'])!='undefined'){this.allowDragDrop=_as['allowDragDrop'];}if(typeof(_as['allowContextMenu'])!='undefined'){this.allowContextMenu=_as['allowContextMenu'];}if(typeof(_as['hintBeforeDelete'])!='undefined'){this.hintBeforeDelete=_as['hintBeforeDelete'];}if(_as['defIconExp']){this.defIconExp=_as['defIconExp'];}if(_as['defIconCol']){this.defIconCol=_as['defIconCol'];}if(_as['defIconLeaf']){this.defIconLeaf=_as['defIconLeaf'];}if(_as['requestURL']){this.requestURL=_as['requestURL'];}if(_as['tempData']){this.tempData=_as['tempData'];}}if(!_bK){return;}this.ds=new Object();this.eleMain=document.createElement('div');this.eleMain.id=this.instanceName+'Div';this.eleInfo=document.createElement('div');this.eleText=document.createElement('input');this.eleContainer.appendChild(this.eleMain);this.eleMain.className=this.theme;this.eleMain.appendChild(this.eleInfo);this.eleMain.appendChild(this.eleText);this.eleMain.onmouseup=function(e){e=window.event||e;var _bF=e.keyCode||e.which;with(eval(_bq)){if(_bx&&_cg){if(!_aG){}else if(_aG.allowDrop){if(_aD==-1){placeNode(_aA.index,_aG.index);}else{placeNode(_aA.index,_aG.parent.index,_aD);}}else{showInfo(eval(_bq)._bm('NoDrop'),'I_WARNING',1000);}}_bY=0;_bZ=0;_aH=0;_aI=0;_aD=-1;if(_bx){document.body.removeChild(eval(_bq)._at);eval(_bq)._at=null;if(document.createStyleSheet){g_cursorSheet.cssText='';}if(_aG){_aG.eleNode.style.borderBottom='';_aG.eleNode.style.borderTop='';_aG.removeTag();_aG=null;}}_aA=null;_cg=false;_bx=false;document.onmousemove=null;}};this.eleInfo.className='Info';this.eleInfo.style.display='none';this.eleText.className='EditText';this.eleText.style.position='absolute';this.eleText.style.display='none';this.eleText.onkeydown=function(e){e=window.event||e;var _bF=e.keyCode||e.which;e.cancelBubble=true;switch(_bF){case 13:eval(_bq).setText(eval(_bq)._aC.index);return false;case 27:with(eval(_bq).eleText){onblur=null;style.display='none';}return false;}};if(!eval('\u005f\u0062\u004c')){this.eleContainer.innerHTML=_cL;return;}this.showInfo('Initializing ['+this.instanceName+']...','I_LOADING',1000);this.onkeydown=function(e){e=window.event||e;var _bF=e.keyCode||e.which;if(g_focusInstance==_bq&&g_focused){if(eval(_bq).contextMenu){eval(_bq).contextMenu.hide();}e.cancelBubble=true;if(e.shiftKey){switch(_bF){case 45:if(eval(_bq)._aC){eval(_bq).addNode(eval(_bq)._aC.index,true,3);}return false;}}switch(_bF){case 13:if(eval(_bq)._aC){eval(_bq).getNode(eval(_bq)._aC.index).execute();}return false;case 27:eval(_bq).releaseControl();return false;case 32:if(eval(_bq)._aC){with(eval(_bq)._aC){if(eleInput){eleInput.checked=!eleInput.checked;eleInput.onclick();}}}return false;case 37:eval(_bq).upperNode();return false;case 38:eval(_bq).pervNode();return false;case 39:eval(_bq).lowerNode();return false;case 40:eval(_bq).nextNode();return false;case 45:eval(_bq).addNode(eval(_bq)._aC.index,false,3);return false;case 46:eval(_bq).removeNode();return false;case 107:if(eval(_bq)._aC){eval(_bq).nodeFullExpCol(eval(_bq)._aC.index);}return false;case 113:if(eval(_bq)._aC){eval(_bq)._aC.editText();}return false;case 190:if(eval(_bq)._aE.length>0){eval(_bq).searchKey(eval(_bq)._aB,0);}return false;case 188:if(eval(_bq)._aE.length>0){eval(_bq).searchKey(eval(_bq)._aB,1);}return false;}}else if(_bF==27&&eval(_bq)._bx){eval(_bq)._cg=false;eval(_bq).eleMain.onmouseup(e);eval(_bq).showInfo(eval(_bq)._bm('DragCanceled'),'I_INFO',1000);}};if(document.attachEvent){document.attachEvent('onkeydown',this.onkeydown);}else if(document.addEventListener){document.addEventListener('keydown',this.onkeydown,false);}this.rootNode=new SkyTreeNode(this,null,null);this.rootNode.eleNode=document.createElement('div');this.rootNode.eleSub=document.createElement('div');this.rootNode.eleNode.appendChild(this.rootNode.eleSub);this.ds[this.rootNode.index]=this.rootNode;this.eleMain.appendChild(this.rootNode.eleNode);this.setTheme(this.theme);this.setLang(this.lang);if(typeof(this.oninitialize)=='function'){this.oninitialize(this);}this.initialized=true;if(this.tempData!=null){this.transData(0);}};SkyTree.prototype.setAbout=function(){var _bu=this._ay('TI_ABOUT',this._bm('AboutButton'));_bu.border=0;_bu.align='absmiddle';var aLink=document.createElement('a');aLink.href='javascript:void(0)';aLink.onclick=Function(this.instanceName+'.showAbout()');aLink.appendChild(_bu);var _y=document.createElement('span');_y.innerHTML=this._bm('Copyright');if(this.eleAbout){this.eleAbout.parentNode.removeChild(this.eleAbout);}this.eleAbout=document.createElement('div');this.eleAbout.className='About';this.eleAbout.appendChild(aLink);this.eleAbout.appendChild(_y);this.eleMain.appendChild(this.eleAbout);};SkyTree.prototype.showAbout=function(){var Win=window.open(this.basePath+ST_ABOUT_PATH+'?iname='+this.instanceName,'About','width=595,height=320,'+'top='+parseInt((screen.height-320)/2)+',left='+parseInt((screen.width-600)/2)+',resizable=0,scrollbars=no,menubar=no,status=no');};SkyTree.prototype.setLang=function(_E){var i;if(!g_langMapping[_E]){this.lang=ST_DEFAULT_LANG;_E=g_langMapping[ST_DEFAULT_LANG];}else{this.lang=_E;_E=g_langMapping[_E];}var _I=this.basePath+'Script/Lang/'+_E+'.js';importScript(_I);setTimeout(this.instanceName+'.langLib=STL'+_E,500);setTimeout(this.instanceName+'.setAbout()',500);this._av=setInterval("if(Math.random()*100<10)with("+this.instanceName+"){showInfo(_bm('Copyright'),'I_INFO',2000);}",12000);if(this.contextMenu){this.contextMenu.hide();this.eleMain.removeChild(this.contextMenu.eleMenu);this.contextMenu=null;}};SkyTree.prototype._bm=function(_D){if(!this.langLib[_D]){return '{$String:'+_D+'}';}else{return this.langLib[_D];}};SkyTree.prototype.destroy=function(){if(!this.initialized){return;}if(g_focusInstance==this.instanceName){this.releaseControl();}this.eleMain.parentNode.removeChild(this.eleMain);if(this.eleIframe){this.eleIframe.parentNode.removeChild(this.eleIframe);}if(document.detachEvent){document.detachEvent('onkeydown',this.onkeydown);}else if(document.removeEventListener){document.removeEventListener('keydown',this.onkeydown,false);}this.ds=null;this.tempData=null;this._aC=null;this.countNode=0;this.maxId=-1;this.loaded=false;this.contextMenu=null;if(typeof(this.ondestroy)=='function'){this.ondestroy(this);}this.initialized=false;};SkyTree.prototype.releaseControl=function(){g_focusInstance='';g_focused=false;if(this.contextMenu){this.contextMenu.hide();}this._aC.eleContent.className=this._aC.classNormal;this.showInfo(this._bm('CtrlReleased'),'I_INFO',1000,this._aC.index);this._aC=null;};SkyTree.prototype.showInfo=function(_br,_bs,_aM,_cc){var _bX,_bV;var l,t;if(!_bs){_bs='I_INFO';}_aM=parseInt(_aM);_bV=this._ay(_bs);_bX=document.createElement('span');_bX.innerHTML='&nbsp;'+_br;this.eleInfo.innerHTML='';this.eleInfo.appendChild(_bV);this.eleInfo.appendChild(_bX);this.eleInfo.style.display='';this._bg(_cc);if(this._by){this._by=window.clearTimeout(this._by);}if(!isNaN(_aM)){this._by=setTimeout(this.instanceName+'.hideInfo()',_aM);}else{this._by=setTimeout(this.instanceName+'.showInfo("'+this._bm('Timeout')+'","I_ERROR",1000)',ST_RESPONSE_TIMEOUT);}};SkyTree.prototype.hideInfo=function(){if(this._by)this._by=window.clearTimeout(this._by);this.eleInfo.style.display="none";};SkyTree.prototype._bg=function(_cc){var _cl,_ci;var l,t;var _F,eleRect;_cc=parseInt(_cc);if(typeof(_cc)=='undefined'){_cc=0;}_F=this.getNode(_cc);if(_F){eleRect=_F.eleIconGrp;}else{eleRect=this.eleMain;}if(eleRect){_cl=_i(eleRect);_ci=_i(this.eleInfo);l=10;t=parseInt((_cl.offsetHeight-_ci.offsetHeight)/2+_cl.absoluteTop);this.eleInfo.style.left=l+'px';this.eleInfo.style.top=t+'px';}};SkyTree.prototype.setTheme=function(_P){var _bw=false;var _A,_w;var _ae;var i;for(i in document.styleSheets){_A=document.styleSheets[i].href;if((/Theme\/(.+?)\/Tree.css/).exec(_A)!=null){_w=RegExp.$1;if(_w==this.theme){_bw=true;break;}}}if(!_bw){var _v=document.createElement('link');_v.rel='stylesheet';_v.type='text/css';_v.href=this.basePath+'Theme/'+this.theme+'/Tree.css';document.getElementsByTagName('head')[0].appendChild(_v);}this.theme=_P;this.eleMain.className=this.theme;if(this.defIconExp==''){this.defIconExp=this._bj('TI_OPEN');}if(this.defIconCol==''){this.defIconCol=this._bj('TI_CLOSE');}if(this.defIconLeaf==''){this.defIconLeaf=this._bj('TI_LEAF');}_ae=this.eleMain.getElementsByTagName('img');for(i=0;i<_ae.length;i++){if((_ae[i].className=='Ico')||(_ae[i].className=='IcoStatus')){_ae[i].removeAttribute("width",0);_ae[i].removeAttribute("height",0);_ae[i].src=_ae[i].src.replace(/Theme\/.+?\/Icons/,'Theme\/'+this.theme+'\/Icons');}}};SkyTree.prototype._bj=function(_bs){if(ST_TREE_ICON[_bs]){return this.basePath+'Theme/'+this.theme+'/Icons/'+ST_TREE_ICON[_bs];}else{return this.basePath+'Theme/'+this.theme+'/Icons/'+ST_TREE_ICON['I_UNKNOWN'];}};SkyTree.prototype._ay=function(_bs,alt){var _bV=document.createElement('img');_bV.align='absmiddle';_bV.src=this._bj(_bs);_bV.className='Ico';if(alt){_bV.alt=alt;}return _bV;};SkyTree.prototype._az=function(src,alt){var _bV=document.createElement('img');_bV.align='absmiddle';_bV.src=src;_bV.className='Ico';if(alt){_bV.alt=alt;}return _bV;};SkyTree.prototype._bk=function(){return++this.maxId;};SkyTree.prototype.getNode=function(_bv){if(this.ds&&this.ds[_bv]){return this.ds[_bv];}else{return null;}};SkyTree.prototype.transDataCore=function(rootId,data){var _F;var d,i,_bv;if(!data){data=this.tempData;}else{this.tempData=data;}if(!data['items']){return;}try{for(i=0;i<data['items'].length;i++){d=data['items'][i];_F=this.createNode(rootId,0);_bv=_F.index;if(d['text']){_F.setText(d['text']);}if(d['value']){_F.setValue(d['value']);}if(d['hint']){_F.setHint(d['hint']);}if(d['method']){_F.method=d['method'];}if(d['clsN']){_F.classNormal=d['clsN'];}if(d['clsF']){_F.classFocus=d['clsF'];}if(d['iExp']||d['iCol']||d['iLeaf']){_F.setIcons(d['iLeaf'],d['iExp'],d['iCol']);}if(d['data']){_F.data=d['data'];}if(typeof(d['isChecked'])!='undefined'){_F.isChecked=d['isChecked'];}if(typeof(d['drag'])!='undefined'){_F.allowDrag=d['drag'];}if(typeof(d['drop'])!='undefined'){_F.allowDrop=d['drop'];}if(this.loaded||_F.depth<=this.expandLevel||this.expandLevel==0){_F.show();}if(d['items']){this.transDataCore(_bv,d);if(d['items']==''){_F.expandTag=true;_F._co();}}}this.getNode(rootId).expandTag=false;}catch(ex){this.showInfo('Error in transferring:'+ex.message);}};SkyTree.prototype.transData=function(rootId,data){if(!this.initialized){return;}this.transDataCore(rootId,data);this.loaded=true;};SkyTree.prototype.searchKey=function(_bF,dir,scope,rootId){this.allowFocus=true;if(_bF==''){this._aB='';this._aE=new Array();this._aF=-1;return;}if(typeof(dir)=='undefined'){dir=0;}_bF=_bF.toLowerCase();if(this._aB==_bF&&this._aE.length>0){if(dir==0){this._aF=++this._aF%this._aE.length;}else{this._aF=(--this._aF+this._aE.length)%this._aE.length;}this.expandToNode(this._aE[this._aF]);}else{this._aB=_bF;this._aE=new Array();this._aF=-1;if(typeof(scope)=='undefined'){scope=ST_SEARCH_VALUE+ST_SEARCH_TEXT;}if(typeof(rootId)=='undefined'){rootId=0;}this.searchCore(rootId,_bF,scope);if(this._aE.length>0){this._aF=(dir==0)?0:this._aE.length;this.expandToNode(this._aE[this._aF]);this.showInfo(formatString(this._bm('CountResult'),this._aE.length.toString()),'I_INFO',2000);}else{this.showInfo(formatString(this._bm('NoResult'),this._aB),'I_WARNING',2000);}}};SkyTree.prototype.searchCore=function(_bv,_bF,scope){var _F=this.getNode(_bv);if(!_F){return;}var _x=_F.firstChild;var _bM;while(_x){_bM=false;if(scope&ST_SEARCH_VALUE){if(_x.value.toLowerCase().indexOf(_bF)>-1){_bM=true;}}if(scope&ST_SEARCH_TEXT){if(_x.text.toLowerCase().indexOf(_bF)>-1){_bM=true;}}if(scope&ST_SEARCH_HINT){if(_x.hint.toLowerCase().indexOf(_bF)>-1){_bM=true;}}if(_bM){this._aE[this._aE.length]=_x.index;}this.searchCore(_x.index,_bF,scope);_x=_x.nextSibling;}};SkyTree.prototype.addNode=function(_bv,_al,_aY){var _F=this.getNode(_bv);if(!_F){return;}if(this.requestURL!=''){if(!_al){_bv=_F.parent.index;}this.serverAddNode(_bv);return null;}else{return this.clientAddNode(_bv,_al,_aY);}};SkyTree.prototype.clientAddNode=function(_bv,_al,_aY){if(this.readOnly){return;}if(typeof(_bv)=='undefined'){if(this._aC){_bv=this._aC.index;}else{_bv=0;_al=true;}}var _F,_u;_u=this.getNode(_bv);if(_u.firstChild&&!_u.firstChild.displayed){this.expandNode(_u.index,true,ST_SLIDE_MODE_STATIC);}if(_al){_F=this.createNode(_bv,_aY);}else{_F=this.createNode(_u.parent.index,_aY);}if(!_F){this.showInfo(this._bm('ParentInvalid'),'I_ERROR',2000);}else if(_aY&2){this.expandToNode(_F.index);_F.editText();}return _F;};SkyTree.prototype.createNode=function(_bv,_aY){if(!this.initialized){return;}var _F,_H;this.eventCanceled=false;if(!this.initialized){return;}if(typeof(_aY)=='undefined'){_aY=1;}_H=this.getNode(_bv);if(!_H){return null;}if(typeof(this.beforeinsert)=='function'){this.beforeinsert(this,_H);}if(this.eventCanceled){return;}_F=new SkyTreeNode(this,_H);if(this.defMethod!=''){_F.method=this.defMethod;}this.ds[_F.index]=_F;if((_aY&1)&&(this.loaded||_F.depth<=this.expandLevel||this.expandLevel==0)){_F.show();}this.countNode++;if(typeof(this.afterinsert)=='function'){this.afterinsert(this,_F);}return _F;};SkyTree.prototype.setText=function(_bv){var _F=this.getNode(_bv);this.eleText.style.display='none';if(!_F){return;}this.showInfo(this._bm('PleaseOrder'),'I_WARNING',2000);};SkyTree.prototype.removeNode=function(_bv){if(this.readOnly){return;}if(this.hintBeforeDelete){if(!confirm(this._bm('DeleteHint'))){return;}}this.showInfo(this._bm('PleaseOrder'),'I_WARNING',2000);};SkyTree.prototype.clientRemoveNode=function(_bv){this.showInfo(this._bm('PleaseOrder'),'I_WARNING',2000);};SkyTree.prototype.checkRelative=function(_bv,_ai){var _F=this.getNode(_bv);var _cf=_F;_F.isChecked=_ai;if(!this.autoCheck){return;}if(_ai){while(_F=_F.parent){if(_F.index!=0){_F.eleInput.checked=true;_F.isChecked=true;}}}else{this.checkParentNodes(_F.parent.firstChild.index);}_F=_cf.firstChild;while(_F){this.checkChlidNodes(_F.index,_ai);_F=_F.nextSibling;}};SkyTree.prototype.checkParentNodes=function(_bv){var _F=this.getNode(_bv);if(_F.parent.index==0){return;}var _ce=_F;var _M=false;while(_F){if(_F.eleInput.checked){_M=true;break;}_F=_F.nextSibling;}if(!_M){_ce.parent.eleInput.checked=false;_ce.parent.isChecked=false;this.checkParentNodes(_ce.parent.parent.firstChild.index);}};SkyTree.prototype.checkChlidNodes=function(_bv,_ai){var _F=this.getNode(_bv);if(_F){if(_F.displayed){_F.eleInput.checked=_ai;}_F.isChecked=_ai;_F=_F.firstChild;while(_F){_cf=_F;this.checkChlidNodes(_cf.index,_ai);_F=_F.nextSibling;}}};SkyTree.prototype._bf=function(_H,_bt,_aX){var _F,_cf;if(!_H.displayed){return;}if(typeof(_aX)=='undefined'){_aX=(_H.nextSibling!=null);}if(_aX){if((_H.depth-1==_bt)&&(_H.firstChild||_H.expandTag)){_H.eleIconGrp.childNodes[_bt].src=this._bj(_H.expanded?'TI_TMINUS':'TI_TPLUS');}else if(_H.depth-1==_bt){_H.eleIconGrp.childNodes[_bt].src=this._bj('TI_T');}else{_H.eleIconGrp.childNodes[_bt].src=this._bj('TI_I');}}else{if((_H.depth-1==_bt)&&(_H.firstChild||_H.expandTag)){_H.eleIconGrp.childNodes[_bt].src=this._bj(_H.expanded?'TI_LMINUS':'TI_LPLUS');}else if(_H.depth-1==_bt){_H.eleIconGrp.childNodes[_bt].src=this._bj('TI_L');}else{_H.eleIconGrp.childNodes[_bt].src=this._bj('TI_BLANK');}}_F=_H.firstChild;while(_F){_cf=_F;this._bf(_cf,_bt,_aX);_F=_F.nextSibling;}};SkyTree.prototype.expandNode=function(_bv,_aW,_cA){var _F=this.getNode(_bv);var _x;if(!_F||!_F.displayed){return;}if(typeof(_aW)=='undefined'){_aW=!_F.expanded;}if(typeof(_cA)=='undefined'){_cA=this.slideMode;}if(_aW==_F.expanded){return;}if(!_aW){if(_cA==ST_SLIDE_MODE_DYNAMIC){_F.eleSub.style.overflow='hidden';this._cB=window.setTimeout(this.instanceName+'._bp('+_F.eleSub.scrollHeight+','+_F.index+')',5);}else{_F.eleSub.style.overflow='';_F.eleSub.style.display='none';}_F.expanded=false;_F.eleBtn.src=this._bj('TI_'+(_F.nextSibling?'TPLUS':'LPLUS'));_F.eleIcon.src=(_F.iconCol=='')?this.defIconCol:_F.iconCol;}else{if(!_F.firstChild&&_F.expandTag){var _B=this._ay('I_LOADING');var _K=document.createElement('span');_K.className='LoadTip';_K.appendChild(_B);_K.innerHTML+='&nbsp;'+this._bm('Loading');_F.eleSub.innerHTML='';_F.eleSub.appendChild(_K);_K.style.marginLeft=_i(_F.eleContent).absoluteLeft+'px';this.serverGetData(_F.index,_F.value);}var _x=_F.firstChild;while(_x){_x.show();_x=_x.nextSibling;}if(this.singleExpand){_x=_F.parent.firstChild;while(_x){if(_x.expanded){this.nodeFullExpCol(_x.index,false);}_x=_x.nextSibling;}}if(_cA==ST_SLIDE_MODE_DYNAMIC){_F.eleSub.style.overflow='hidden';_F.eleSub.style.display='';_F.eleSub.style.height='1px';this._cB=window.setTimeout(this.instanceName+'._cF(1,'+_F.index+')',5);}else{_F.eleSub.style.height='';_F.eleSub.style.display='';}_F.expanded=true;_F.eleBtn.src=this._bj('TI_'+(_F.nextSibling?'TMINUS':'LMINUS'));_F.eleIcon.src=(_F.iconExp=='')?this.defIconExp:_F.iconExp;}};SkyTree.prototype._cF=function(scroll,_bv){var _bP=this.getNode(_bv).eleSub;var height=_bP.scrollHeight;var _cI=(height-scroll)/ST_SCROLL_DELAY;if(_cI<1)_cI=1;scroll=scroll+_cI;if(scroll<=height){_bP.style.height=scroll+'px';this._cB=window.setTimeout(this.instanceName+'._cF('+scroll+','+_bv+')',5);}else{_bP.style.height='';_bP.style.overflow='';}};SkyTree.prototype._bp=function(scroll,_bv){var _bP=this.getNode(_bv).eleSub;var height=_bP.scrollHeight;var _cI=(height-Math.abs(scroll-height))/ST_SCROLL_DELAY;if(_cI<1)_cI=1;scroll=scroll-_cI;if(scroll>2){_bP.style.height=scroll+'px';this._cB=window.setTimeout(this.instanceName+'._bp('+scroll+','+_bv+')',5);}else{_bP.style.overflow='';_bP.style.display='none';}};var _bL,_cL='';if(!(_bL=_d())){_cL='\u0043\u0061\u006e\u0027\u0074\u0020\u0072\u0075\u006e\u0020\u0075\u006e\u0064\u0065\u0072\u0020'+'\u0075\u006e\u0061\u0075\u0074\u0068\u006f\u0072\u0069\u007a\u0065\u0064\u0020\u0064\u006f\u006d'+'\u0061\u0069\u006e\u0020\u003a\u0020\u003c\u0073\u0074\u0072\u006f\u006e\u0067\u003e'+eval('\u0064\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002e\u0064\u006f\u006d\u0061\u0069\u006e')+'\u003c\u002f\u0073\u0074\u0072\u006f\u006e\u0067\u003e';}SkyTree.prototype.nodeFullExpCol=function(_bv,_aW){var _H=this.getNode(_bv);if(!_H||(_H.index==this.rootNode.index)||!_H.firstChild){return;}if(typeof(_aW)=='undefined'){_aW=!_H.expanded;}this.expandNode(_H.index,_aW,ST_SLIDE_MODE_STATIC);var _F=_H.firstChild;while(_F){_cf=_F;this.nodeFullExpCol(_cf.index,_aW);_F=_F.nextSibling;}};SkyTree.prototype.treeFullExpCol=function(_aW){var _F=this.rootNode.firstChild;var _cf;while(_F){_cf=_F;this.nodeFullExpCol(_cf.index,_aW);_F=_F.nextSibling;}this.hideInfo();};var _bK=true;SkyTree.prototype.fullExpand=function(){this.showInfo(this._bm('FullExpanding'),'I_LOADING');setTimeout(this.instanceName+'.treeFullExpCol(true)',100);};SkyTree.prototype.fullCollapse=function(){this.showInfo(this._bm('FullCollapsing'),'I_LOADING');setTimeout(this.instanceName+'.treeFullExpCol(false)',100);};SkyTree.prototype.focusNode=function(_bv){if(!this.allowFocus){return;}var _F=this.getNode(_bv);if(!_F){return;}if(this.instanceName!=g_focusInstance){}if(this._aC){if(_F.index==this._aC.index){this._aC.editText();return;}else{this.eleText.style.display='none';}this._aC.eleContent.className=this._aC.classNormal;}_F.eleContent.className=_F.classFocus;this._aC=_F;g_focusInstance=this.instanceName;g_focused=true;if(this.focusExecute){_F.execute();}if(typeof(_F.onfocus)=='function'){_F.onfocus(_F);}};SkyTree.prototype.expandToNode=function(_bv){var _ag=new Array();var i=0;var _F=this.getNode(_bv);if(!_F){this.showInfo(this._bm('NodeInvalid'),'I_WARNING',1000);return;}while(_F){if(_F.index!=0){_ag[i++]=_F.index;}_F=_F.parent}for(i=_ag.length-1;i>0;i--){this.expandNode(_ag[i],true,ST_SLIDE_MODE_STATIC);}this.focusNode(_bv);};SkyTree.prototype.upperNode=function(){if(!this._aC){return;}if(this._aC.firstChild&&this._aC.expanded){this.expandNode(this._aC.index,false);}else if(this._aC.parent.index!=0){this.focusNode(this._aC.parent.index);}};SkyTree.prototype.lowerNode=function(){if(!this._aC){this._aC=this.rootNode.firstChild;}if(!this._aC){return;}if(this._aC.firstChild||this._aC.expandTag){if(!this._aC.expanded){this.expandNode(this._aC.index,true);}else{this.focusNode(this._aC.firstChild.index);}}};SkyTree.prototype.pervNode=function(){var _F,_cf;if(!this._aC){return;}if(this._aC.previousSibling){_cf=_F=this._aC.previousSibling;while(_F.firstChild&&_F.expanded){_F=_F.firstChild;while(_F){_cf=_F;_F=_F.nextSibling;}_F=_cf;}this.focusNode(_cf.index);}else if(this._aC.parent.index!=0){this.focusNode(this._aC.parent.index);}this._aC.eleNode.scrollIntoView(true);};SkyTree.prototype.nextNode=function(){var _F,_cf;if(!this._aC){return;}if(this._aC.firstChild&&this._aC.expanded){this.focusNode(this._aC.firstChild.index);}else if(this._aC.nextSibling){this.focusNode(this._aC.nextSibling.index);}else{_F=this._aC;while(_F.parent&&_F.parent.index!=0){_cf=_F;_F=_F.parent;if(_F.nextSibling){this.focusNode(_F.nextSibling.index);break;}}}this._aC.eleNode.scrollIntoView(false);};SkyTree.prototype.placeNode=function(_cG,_cc,_bS){this.showInfo(this._bm('PleaseOrder'),'I_WARNING',2000);};SkyTree.prototype.clientPlaceNode=function(_cG,_cc,_bS){this.showInfo(this._bm('PleaseOrder'),'I_WARNING',2000);};SkyTree.prototype._cn=function(_bv){var _cd=this.getNode(_bv);var _C;if(!_cd||_bv==0){return;}_cd.depth=_cd.parent.depth+1;_cd._co();var _F=_cd.firstChild;while(_F){_C=_F.index;this._cn(_C);_F=_F.nextSibling;}};SkyTree.prototype.getCheckedValue=function(){var _ah=new Array();var j=0;if(this.checkName==''){return null;}for(var i in this.ds){if(this.ds[i].isChecked){_ah[j++]=this.ds[i].value;}}return _ah.join(',');};SkyTree.prototype.getJSON=function(_bv,_au){var _cM='';var _cO='';var _cd=this.getNode(_bv);var _C;var _bD,_ch,_cp;if(!_cd){return _cM;}else{var _F=_cd.firstChild;if(!_F){return _cM;}if(typeof(_au)=='undefined'){_au=true;}_bD=_au?'':_p('\t',_F.depth);_ch=_au?'':(_bD+'\t');_cp=_au?'':'\n';while(_F){_cO=this.getJSON(_F.index,_au);if(_cM!=''){_cM+=_au?',':('\n'+_bD+',\n');}_cM+=_au?'{':(_bD+'{\n');with(_F){_cM+=_ch+'text:\''+_F.text.replace(/\'/g,'\\\'')+'\','+_cp;if(_F.hint!=''){_cM+=_ch+'hint:\''+_F.hint.replace(/\'/g,'\\\'')+'\','+_cp;}if(_F.method!=this.defMethod){_cM+=_ch+'method:\''+_F.method.replace(/\'/g,'\\\'')+'\','+_cp;}if(_F.classNormal!=ST_DEFAULT_NORMAL_CLASS){_cM+=_ch+'clsN:\''+_F.classNormal+'\','+_cp;}if(_F.classFocus!=ST_DEFAULT_FOCUS_CLASS){_cM+=_ch+'clsF:\''+_F.classFocus+'\','+_cp;}if(_F.iconExp!=this.defIconExp&&_F.iconExp!=''){_cM+=_ch+'iExp:\''+_F.iconExp+'\','+_cp;}if(_F.iconCol!=this.defIconCol&&_F.iconCol!=''){_cM+=_ch+'iCol:\''+_F.iconCol+'\','+_cp;}if(_F.iconLeaf!=this.defIconLeaf&&_F.iconLeaf!=''){_cM+=_ch+'iLeaf:\''+_F.iconLeaf+'\','+_cp;}if(!_F.allowDrag){_cM+=_ch+'drag:flase,'+_cp;}if(!_F.allowDrop){_cM+=_ch+'drop:flase,'+_cp;}if(_cO!=''){_cM+=_ch+_cO+','+_cp;}_cM+=_ch+'value:\''+_F.value.replace(/\'/g,'\\\'')+'\''+_cp;_cM+=_bD+'}';}_F=_F.nextSibling;}_cM=_au?('items:['+_cM+']'):('items:[\n'+_cM+']');}return _cM;};SkyTree.prototype.serverGetData=function(rootId,rootValue){this._aw(this.requestURL+'?action=getdata&iname='+this.instanceName+'&rootid='+rootId+'&rootvalue='+escape(rootValue)+'&level='+this.expandLevel+(this.loaded?'&intialized=true':''));};SkyTree.prototype.serverSetText=function(_bv,_N){var _F=this.getNode(_bv);if(!_F){return;}_F.setTag('I_LOADING',this._bm('SettingText'));this._aw(this.requestURL+'?action=edit&iname='+this.instanceName+'&idx='+_bv+'&key='+escape(_F.value)+'&text='+escape(_N));};SkyTree.prototype.serverDelete=function(_bv){var _F=this.getNode(_bv);if(!_F){return;}_F.setTag('I_LOADING',this._bm('Deleting'));this._aw(this.requestURL+'?action=delete&iname='+this.instanceName+'&idx='+_bv+'&key='+escape(_F.value));};SkyTree.prototype.serverAddNode=function(_bv){var _F=this.getNode(_bv);if(!_F){return;}this.showInfo(this._bm('Adding'),'I_LOADING');var _bF=_F.value;if(!_bF){_bF='';}this._aw(this.requestURL+'?action=add&iname='+this.instanceName+'&idx='+_bv+'&key='+escape(_bF));};SkyTree.prototype.serverPlaceNode=function(_cG,_cc,_bS){var _cH=this.getNode(_cG);var _cd=this.getNode(_cc);if(!_cH||!_cd){return;}_cH.setTag('I_LOADING',this._bm('Moving'));i=_cc;var _cY=_cd;while(i){if(_cY){i=_cY.index;if(i==_cG){this.showInfo(this._bm('UndropablePath'),'I_WARNING',1000);return;}}_cY=_cY.parent;}this._aw(this.requestURL+'?action=move&iname='+this.instanceName+'&srcidx='+_cG+'&srcvalue='+escape(_cH.value)+'&pidx='+_cc+'&pvalue='+escape(_cd.value)+'&oidx='+_bS);};SkyTree.prototype._aw=function(src){if(this.eleIframe){this.eleIframe.parentNode.removeChild(this.eleIframe);this.eleIframe=null;}this.eleIframe=document.createElement('iframe');this.eleIframe.id=this.instanceName+'Frame';this.eleIframe.width=0;this.eleIframe.height=0;this.eleContainer.appendChild(this.eleIframe);if(this.id!=''){src+='&id='+this.id;}setTimeout(this.instanceName+'.eleIframe.src="'+src+'"',10);};function SkyTreeNode(_Q,_H){this.tree=_Q;this.index=this.tree._bk();this.parent=_H;this.firstChild=null;this.previousSibling=null;this.nextSibling=null;this.text='Node '+this.index;this.value='';this.hint='';this.method='';this.data=null;this.depth=0;this.displayed=false;this.expanded=false;this.isChecked=false;this.allowDrag=true;this.allowDrop=true;this.onfocus=function(sender){};this.iconExp='';this.iconCol='';this.iconLeaf='';this.classNormal=ST_DEFAULT_NORMAL_CLASS;this.classFocus=ST_DEFAULT_FOCUS_CLASS;this.expandTag=false;this.eleIconGrp=null;this.eleBtn=null;this.eleIcon=null;this.eleInput=null;this.eleContent=null;this.eleTag=null;this.eleSub=null;this.setRelation(this.parent);};SkyTreeNode.prototype.setRelation=function(_H){var _F,_cf;this.parent=_H;if(_H){this.depth=this.parent.depth+1;_F=_H.firstChild;if(!_F){_H.firstChild=this;_cf=null;if(_H.displayed){_H._bl();}}else{while(_F){_cf=_F;_F=_F.nextSibling;}}this.previousSibling=_cf;if(_cf){this.previousSibling.nextSibling=this;}}};SkyTreeNode.prototype._bl=function(){var _ad=new Array();var i=0;var _G,_aj;var _bn=false;var iExp,iCol,iLeaf;_aj=((this.expanded&&this.firstChild)||this.depth<this.tree.expandLevel||this.tree.expandLevel==0);this.expanded=_aj;if(this.firstChild||this.expandTag){if(this.nextSibling){_ad[i++]=_aj?'TMINUS':'TPLUS';}else{_ad[i++]=_aj?'LMINUS':'LPLUS';}iExp=(this.iconExp=='')?this.tree.defIconExp:this.iconExp;iCol=(this.iconCol=='')?this.tree.defIconCol:this.iconCol;if(this.eleIcon){this.eleIcon.src=(_aj?iExp:iCol);}else{this.eleIcon=this.tree._az(_aj?iExp:iCol);}_bn=true;}else{iLeaf=(this.iconLeaf=='')?this.tree.defIconLeaf:this.iconLeaf;if(this.nextSibling){_ad[i++]='T';}else{_ad[i++]='L';}if(this.eleIcon){this.eleIcon.src=iLeaf;}else{this.eleIcon=this.tree._az(iLeaf);}}this.eleIcon.className='IcoStatus';_G=this;while((_G=_G.parent)&&_G.index!=0){if(!_G.nextSibling){_ad[i++]='BLANK';}else{_ad[i++]='I';}}var eleIcon;this.eleIconGrp.innerHTML='';for(i=_ad.length-1;i>-1;i--){eleIcon=this.tree._ay('TI_'+_ad[i]);eleIcon.className='Ico';this.eleIconGrp.appendChild(eleIcon);if(i==0){this.eleBtn=eleIcon;if(_bn){this.eleBtn.style.cursor='pointer';this.eleBtn.onclick=this.eleIcon.onclick=Function(this.tree.instanceName+'.expandNode('+this.index+');');this.eleSub.style.display=_aj?'':'none';}else{this.eleSub.style.display='none';}}}};SkyTreeNode.prototype.show=function(){if(this.displayed){return;}var _bv=this.index;var _bq=this.tree.instanceName;this.eleNode=document.createElement('div');this.eleNode.className='TNode';this.eleNode.onmousemove=function(e){eval(_bq).getNode(_bv)._aO(e);return false;};this.eleNode.onmouseout=function(e){if(eval(_bq)._bx){with(eval(_bq).getNode(_bv).eleNode.style){borderBottom='';borderTop='';}eval(_bq).getNode(_bv).removeTag();}};this.eleIconGrp=document.createElement('span');this.eleContent=document.createElement('a');this.eleContent.className=this.classNormal;this.eleContent.innerHTML=this.text;if(this.hint!=''){this.eleContent.title=this.hint;}this.eleContent.onmousedown=function(e){var _bT,_bU;var _bQ=document.compatMode=="BackCompat"?document.body:(document.documentElement||document.body);e=window.event||e;if(e.button==1||e.button==0){if(!eval(_bq).allowDragDrop){return;}eval(_bq).getNode(_bv)._aN(e);}else if(e.button==2){document.oncontextmenu=function(e){return false;};if(!eval(_bq).allowContextMenu){return false;}if(!eval(_bq).contextMenu){eval(_bq).contextMenu=new ContextMenu(eval(_bq));eval(_bq).eleMain.appendChild(eval(_bq).contextMenu.eleMenu);}document.onmouseup=function(e){e=window.event||e;if(e.button==1||e.button==0){eval(_bq).contextMenu.hide();document.onmouseup=null;document.oncontextmenu=null;}};if(window.event){_bT=e.x+_bQ.scrollLeft;_bU=e.y+_bQ.scrollTop;}else{_bT=e.pageX;_bU=e.pageY;}if(g_focusInstance!=''&&g_focusInstance!=_bq){if(eval(g_focusInstance).contextMenu){eval(g_focusInstance).contextMenu.hide();}}eval(_bq).contextMenu.show(eval(_bq).getNode(_bv),_bT,_bU);}return false;};this.eleContent.onclick=function(){eval(_bq).focusNode(_bv);};this.eleTag=document.createElement('span');this.eleTag.className='Tag';this.eleSub=document.createElement('div');this._bl();this.eleNode.appendChild(this.eleIconGrp);if(this.tree.checkName!=''){if(navigator.appName.indexOf('Microsoft')!=-1){this.eleInput=document.createElement('<input name="'+this.tree.checkName+'">');}else{this.eleInput=document.createElement('input');this.eleInput.setAttribute('name',this.tree.checkName);}this.eleInput.type=(this.isRadio?'radio':'checkbox');this.eleInput.className='Check';this.eleInput.value=this.value;if(!this.tree.isRadio){this.eleInput.onclick=Function(this.tree.instanceName+'.checkRelative('+this.index+',this.checked);');}this.eleNode.appendChild(this.eleInput);}this.eleNode.appendChild(this.eleIcon);this.eleNode.appendChild(this.eleContent);this.eleNode.appendChild(this.eleTag);this.eleNode.appendChild(this.eleSub);this.parent.eleSub.appendChild(this.eleNode);if(this.eleInput){this.eleInput.checked=this.isChecked;}if(this.previousSibling){this.tree._bf(this.previousSibling,this.depth-1,true);}this.displayed=true;};SkyTreeNode.prototype.execute=function(){var _aQ;if(this.method!=''){_aQ=this.method;_aQ=_aQ.replace('{$NODE}',this.tree.instanceName+'.getNode('+this.index+')');_aQ=_aQ.replace('{$TREE}',this.tree.instanceName);try{eval(_aQ);}catch(e){this.tree.showInfo(formatString(this.tree._bm('ExecutingFailed'),e.message),'I_ERROR',2000);}}};SkyTreeNode.prototype.editText=function(){this.tree.eventCanceled=false;if(!this.displayed||this.tree.readOnly){return;}if(typeof(this.tree.beforeedit)=='function'){this.tree.beforeedit(this.tree,this);}if(this.tree.eventCanceled){return;}var _ck;var l,t,w,h;_ck=_i(this.eleContent);l=_ck.absoluteLeft;t=_ck.absoluteTop;w=_ck.offsetWidth;with(this.tree.eleText){value=htmlDecoder(this.text);onblur=Function(this.tree.instanceName+'.setText('+this.index+')');style.left=l+'px';style.top=t+'px';style.width=Math.max(w,ST_EDIT_TEXT_MIN_WIDTH)+'px';style.display='';try{focus();select();}catch(e){}}};SkyTreeNode.prototype.setText=function(_N){this.text=_N;if(this.displayed){this.eleContent.innerHTML=htmlEncoder(_N);this.removeTag();}this.tree.eleText.style.display='none';if(typeof(this.tree.afteredit)=='function'){this.tree.afteredit(this.tree,this);}};SkyTreeNode.prototype.setHint=function(_z){this.hint=_z;if(this.displayed){this.eleContent.title=_z;}};SkyTreeNode.prototype.setValue=function(_S){this.value=_S;if(this.eleInput){this.eleInput.value=_S;}};SkyTreeNode.prototype.setIcons=function(iLeaf,iExp,iCol){if(typeof(iExp)=='undefined'){iExp=iLeaf;}if(typeof(iCol)=='undefined'){iCol=iExp;}if(iLeaf!==false){this.iconLeaf=iLeaf;}if(iExp!==false){this.iconExp=iExp;}if(iCol!==false){this.iconCol=iCol;}if(this.displayed){this._bl();}};SkyTreeNode.prototype._co=function(){if(this.displayed){this._bl();this.eleNode.removeChild(this.eleContent.previousSibling);this.eleNode.insertBefore(this.eleIcon,this.eleContent);}};SkyTreeNode.prototype._aN=function(e){if(!this.allowDrag){return;}e=window.event||e;var _bF=e.keyCode||e.which;e.cancelBubble=true;this.tree._cg=false;this.tree._aA=this;return false;};SkyTreeNode.prototype._aP=function(e){e=window.event||e;var _bF=e.keyCode||e.which;if(e.button!=1&&e.button!=0){return;}var _cT=e.srcElement||e.target;var _bq=this.tree.instanceName;var _bv=this.index;with(this.tree){if(!_bx&&!_cg){_bY=e.x?e.x:e.pageX;_bZ=e.y?e.y:e.pageY;_cg=true;document.onmousemove=function(e){eval(_bq).getNode(_bv)._aP(e);return false;};return false;}else if(_cg){_aH=e.x?e.x:e.pageX;_aI=e.y?e.y:e.pageY;}else{return false;}if((Math.abs(_aH-_bY)>15)||(Math.abs(_aI-_bZ)>15)){if(!this.tree._at){var _ar=this.eleNode.cloneNode(true);var iCount=_ar.firstChild.childNodes.length;var _bR=_ar.lastChild.getElementsByTagName('div');for(var i=0;i<_bR.length;i++){if(_bR[i].className=='TNode'){for(var j=0;j<iCount;j++){_bR[i].firstChild.removeChild(_bR[i].firstChild.firstChild);}}}_ar.removeChild(_ar.firstChild);this.tree._at=document.createElement('div');this.tree._at.className=this.tree.theme;this.tree._at.appendChild(_ar);document.body.appendChild(this.tree._at);with(this.tree._at.style){position='absolute';zIndex='0';filter="Alpha(Opacity='70',FinishOpacity='0',Style='1',StartX='0',StartY='0',FinishX='100',FinishY='100')";try{MozOpacity=0.7;opacity=0.7;}catch(ex){}}}if(this.tree._at){var _bQ=document.compatMode=="BackCompat"?document.body:(document.documentElement||document.body);var _bT,_bU;if(window.event){_bT=_bQ.scrollLeft;_bU=_bQ.scrollTop;}else{_bT=e.pageX;_bU=e.pageY;}with(this.tree._at.style){if(window.event){left=(_aH+_bT+5)+'px';top=(_aI+_bU+5)+'px';}else{left=(_bT+5)+'px';top=(_bU+5)+'px';}}}if(g_focusInstance!=''){g_focusInstance='';g_focused=false;if(_aC){_aC.eleContent.className=_aC.classNormal;_aC=null;}}}else{return false;}_bx=true;}return false;};SkyTreeNode.prototype._aO=function(e){e=window.event||e;var _bF=e.keyCode||e.which;e.cancelBubble=true;if(this.tree._bx){var _cj,_aI,_ak;_cj=_i(this.eleContent);_aI=window.event?(e.y+Math.max(document.documentElement.scrollTop,document.body.scrollTop)):e.pageY;if(!this.allowDrop){this.setTag('I_WARNING',this.tree._bm('Undropable'));}else if(_cj.absoluteTop+_cj.offsetHeight-_aI<5){this.eleNode.style.borderTop='';this.eleNode.style.borderBottom='1px black dotted';this.setTag('TAG_DOWN',this.tree._bm('DropBelow'));this.tree._aD=this.getOrderIndex()+1;}else if(_aI-_cj.absoluteTop<5){this.eleNode.style.borderBottom='';this.eleNode.style.borderTop='1px black dotted';this.setTag('TAG_UP',this.tree._bm('DropAbove'));this.tree._aD=this.getOrderIndex();}else{this.eleNode.style.borderBottom='';this.eleNode.style.borderTop='';this.setTag('TAG_SUB',this.tree._bm('DropAsChild'));this.tree._aD=-1;}this.tree._aG=this;if(document.createStyleSheet){g_cursorSheet.cssText=this.allowDrop?'*{cursor:move!important}':'*{cursor:no-drop!important}';}if((this.firstChild||this.expandTag)&&!this.expanded){setTimeout(this.tree.instanceName+'.getNode('+this.index+').autoExpand()',ST_AUTO_EXPAND_DELAY);}document.onmousemove(e);}if(this.tree._aA){this.tree._aA._aP(e);}return false;};SkyTreeNode.prototype.autoExpand=function(){if(this.tree._bx&&(this.tree._aG.index==this.index)){this.tree.expandNode(this.index,true,this.tree.slideMode);}};SkyTreeNode.prototype.getOrderIndex=function(){var _F,_C;_C=-1;_F=this;while(_F){_C++;_F=_F.previousSibling;}return _C;};SkyTreeNode.prototype.setTag=function(_bs,alt,_cX){var _M=this.tree._ay(_bs,alt);this.eleTag.innerHTML='';this.eleTag.appendChild(_M);if(alt){this.eleTag.innerHTML+='&nbsp;'+alt;}if(typeof(_cX)!='undefined'){setTimeout(this.tree.instanceName+'.getNode('+this.index+').removeTag()',_cX);}};SkyTreeNode.prototype.removeTag=function(){this.eleTag.innerHTML='';};function ContextMenu(_H){this.parent=_H;this._bP=null;this.eleMenu=document.createElement('div');this.eleMenu.className='ContextMenu';this.eleMenu.style.display='none';this._W=this.addItem('AddSibling','CM_NEWSIB','AS');this._V=this.addItem('AddChild','CM_NEWCHD','AC');this._Z=this.addItem('Edit','CM_EDIT','ED');this._Y=this.addItem('Delete','CM_DEL','DL');this.sepD=this.addSeparator();this._aa=this.addItem('Execute','CM_EXEC','EC');this.sepE=this.addSeparator();this._ab=this.addItem('Expand','CM_EXP','EX');this._X=this.addItem('Collapse','CM_COL','CO');this._ac=this.addItem('FullExpCol','CM_FEC','FEC');this.sepA=this.addSeparator();this._U=this.addItem('AboutButton','TI_ABOUT','AB');};ContextMenu.prototype.addItem=function(text,_bs,_T){var eleItem=document.createElement('div');var eleIcon=this.parent._ay(_bs);var eleText=document.createElement('span');var _bq=this.parent.instanceName;eleItem.className='ContextMenuItem';eleItem.onmousemove=function(){this.className="ContextMenuItemOver";};eleItem.onmouseout=function(){this.className="ContextMenuItem";};eleText.innerHTML=this.parent._bm(text);eleItem.appendChild(eleIcon);eleItem.appendChild(eleText);eleItem.innerHTML+='&nbsp;';switch(_T){case 'AS':eleItem.onclick=Function(_bq+'.addNode('+_bq+'._aC.index,false,3)');eleItem.innerHTML+='Ins';break;case 'AC':eleItem.onclick=Function(_bq+'.addNode('+_bq+'._aC.index,true,3)');eleItem.innerHTML+='Shift+Ins';break;case 'ED':eleItem.onclick=Function(_bq+'._aC.editText()');eleItem.innerHTML+='F2';break;case 'DL':eleItem.onclick=Function(_bq+'.removeNode()');eleItem.innerHTML+='Del';break;case 'EC':eleItem.onclick=Function(_bq+'._aC.execute()');eleItem.innerHTML+='Enter';break;case 'EX':eleItem.onclick=Function(_bq+'.expandNode('+_bq+'._aC.index,true)');eleItem.innerHTML+='→';break;case 'CO':eleItem.onclick=Function(_bq+'.expandNode('+_bq+'._aC.index,false)');eleItem.innerHTML+='←';break;case 'FEC':eleItem.onclick=Function(_bq+'.nodeFullExpCol('+_bq+'._aC.index)');eleItem.innerHTML+='+';break;case 'AB':eleItem.onclick=Function(_bq+'.showAbout()');}this.eleMenu.appendChild(eleItem);return eleItem;};ContextMenu.prototype.addSeparator=function(){var eleSep=document.createElement('div');eleSep.className='ContextMenuSeparator';this.eleMenu.appendChild(eleSep);return eleSep;};ContextMenu.prototype.show=function(_F,x,y){if(this.parent.readOnly&&this.parent.defMethod==''&&_F.method==''&&!_F.firstChild&&!_F.expandTag){return;}if(this.parent.allowFocus&&(this.parent._aC!=_F)){this.parent.focusNode(_F.index);}this.parent._aC=_F;this._be(_F);with(this.eleMenu.style){left=x+'px';top=y+'px';display='';}};ContextMenu.prototype.hide=function(){this.eleMenu.style.display='none';};ContextMenu.prototype._be=function(_F){var showSep;if(this.parent.readOnly){this._W.style.display='none';this._V.style.display='none';this._Z.style.display='none';this._Y.style.display='none';showSep=false;}else{this._W.style.display='';this._V.style.display='';this._Z.style.display='';this._Y.style.display='';showSep=true;}if(this.parent.defMethod==''&&_F.method==''){this._aa.style.display='none';this.sepD.style.display='none';showSep=showSep||false;}else{this._aa.style.display='';this.sepD.style.display=showSep?'':'none';showSep=true;}if(_F.firstChild||_F.expandTag){this._ab.style.display=_F.expanded?'none':'';this._X.style.display=_F.expanded?'':'none';this._ac.style.display='';this.sepE.style.display=showSep?'':'none';showSep=true;}else{this._ab.style.display='none';this._X.style.display='none';this._ac.style.display='none';this.sepE.style.display='none';showSep=showSep||false;}};function _i(_aR){if(arguments.length!=1||_aR==null){return null;}var _aS=_aR;var offsetTop=_aS.offsetTop;var offsetLeft=_aS.offsetLeft;var offsetWidth=_aS.offsetWidth;var offsetHeight=_aS.offsetHeight;while(_aS=_aS.offsetParent){if(_aS.style.position=='absolute'||_aS.style.position=='relative'||(_aS.style.overflow!='visible'&&_aS.style.overflow!='')){break;}offsetTop+=_aS.offsetTop;offsetLeft+=_aS.offsetLeft;}return{absoluteTop:offsetTop,absoluteLeft:offsetLeft,offsetWidth:offsetWidth,offsetHeight:offsetHeight};};function formatString(_L,_ah){var i;var _bO;_bO=_L;try{if(typeof(_ah)!="object"){_ah=new Array(_ah);}for(i=0;i<_ah.length;i++){if(_bO.indexOf("%s")>-1){_bO=_bO.replace(/\%s/,_ah[i]);}}return _bO;}catch(e){return "Erroneous array input!";}};function importScript(_I){var scripts=document.getElementsByTagName('script');var _bh=false;var _J;for(i in scripts){if(scripts[i].src==_I){_J=scripts[i];_bh=true;break;}}if(!_bh){_J=document.createElement('script');_J.language="JavaScript";_J.type='text/javascript';_J.src=_I;scripts[0].parentNode.insertBefore(_J,scripts[0]);}return _J;};function openURL(_R,_O){if(_R==''){return;}if(typeof(_O)=='undefined'){_O='';}if(_O==''){window.open(_R);}else{var t=document.getElementById(_O);if(!t){t=document.getElementsByName(_O);if(t){t=t[0];}}if(!t){window.open(_R,_O);}else{if(t.tagName.toLowerCase()=='iframe'){t.src=_R;}else{t.location=_R;}}}};function _p(_cJ,times){var _bN='';if(typeof(times)=='undefined'){times=1;}for(var i=0;i<times;i++){_bN+=_cJ;}return _bN;};function htmlEncoder(_aZ){_aZ=_aZ.replace(/>/g,'&gt;');_aZ=_aZ.replace(/</g,'&lt;');_aZ=_aZ.replace(/&/g,'&amp;');return _aZ;};function htmlDecoder(_aZ){_aZ=_aZ.replace('&gt;','>');_aZ=_aZ.replace('&lt;','<');_aZ=_aZ.replace('&amp;','&');return _aZ;};function _d(){var _cN=eval('\u0053\u0054\u005f\u004c\u0049\u0053\u0045\u004e\u0043\u0045\u005f\u004b\u0045\u0059');var _da=_r(_cN,'\u0062\u0065\u0073\u0074','\u0077\u0069\u0073\u0068\u0065\u0073','\u0032\u0030\u0030\u0037').split(';');var _cZ=false;for(i=0;i<_da.length;i++){if(eval('\u0064\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002e\u0064\u006f\u006d\u0061\u0069\u006e').indexOf(_da[i])!=-1){_cZ=true;break;}}return _cZ;};function _r(data,_bb,_cC,_cU){var _bJ=data.length;var _aL="";var _bc,_cD,_cV,_bd,_cE,_cW;if(_bb!=null&&_bb!=""){_bc=_k(_bb);_bd=_bc.length;}if(_cC!=null&&_cC!=""){_cD=_k(_cC);_cE=_cD.length;}if(_cU!=null&&_cU!=""){_cV=_k(_cU);_cW=_cV.length;}var _bE=parseInt(_bJ/16);var i=0;for(i=0;i<_bE;i++){var tempData=data.substring(i*16+0,i*16+16);var _cK=_m(tempData);var _bz=new Array(64);var j=0;for(j=0;j<64;j++){_bz[j]=parseInt(_cK.substring(j,j+1));}var _aK;if(_bb!=null&&_bb!=""&&_cC!=null&&_cC!=""&&_cU!=null&&_cU!=""){var _cP;var x,y,z;_cP=_bz;for(x=_cW-1;x>=0;x--){_cP=_e(_cP,_cV[x]);}for(y=_cE-1;y>=0;y--){_cP=_e(_cP,_cD[y]);}for(z=_bd-1;z>=0;z--){_cP=_e(_cP,_bc[z]);}_aK=_cP;}else{if(_bb!=null&&_bb!=""&&_cC!=null&&_cC!=""){var _cP;var x,y,z;_cP=_bz;for(x=_cE-1;x>=0;x--){_cP=_e(_cP,_cD[x]);}for(y=_bd-1;y>=0;y--){_cP=_e(_cP,_bc[y]);}_aK=_cP;}else{if(_bb!=null&&_bb!=""){var _cP;var x,y,z;_cP=_bz;for(x=_bd-1;x>=0;x--){_cP=_e(_cP,_bc[x]);}_aK=_cP;}}}_aL+=_c(_aK);}return _aL;};function _k(_bF){var _bH=new Array();var _bJ=_bF.length;var _bE=parseInt(_bJ/4);var _cm=_bJ%4;var i=0;for(i=0;i<_bE;i++){_bH[i]=_s(_bF.substring(i*4+0,i*4+4));}if(_cm>0){_bH[i]=_s(_bF.substring(i*4+0,_bJ));}return _bH;};function _s(_cJ){var _bJ=_cJ.length;var bt=new Array(64);if(_bJ<4){var i=0,j=0,p=0,q=0;for(i=0;i<_bJ;i++){var k=_cJ.charCodeAt(i);for(j=0;j<16;j++){var pow=1,m=0;for(m=15;m>j;m--){pow*=2;}bt[16*i+j]=parseInt(k/pow)%2;}}for(p=_bJ;p<4;p++){var k=0;for(q=0;q<16;q++){var pow=1,m=0;for(m=15;m>q;m--){pow*=2;}bt[16*p+q]=parseInt(k/pow)%2;}}}else{for(i=0;i<4;i++){var k=_cJ.charCodeAt(i);for(j=0;j<16;j++){var pow=1;for(m=15;m>j;m--){pow*=2;}bt[16*i+j]=parseInt(k/pow)%2;}}}return bt;};function _a(_am){var _bo;switch(_am){case "0000":_bo="0";break;case "0001":_bo="1";break;case "0010":_bo="2";break;case "0011":_bo="3";break;case "0100":_bo="4";break;case "0101":_bo="5";break;case "0110":_bo="6";break;case "0111":_bo="7";break;case "1000":_bo="8";break;case "1001":_bo="9";break;case "1010":_bo="A";break;case "1011":_bo="B";break;case "1100":_bo="C";break;case "1101":_bo="D";break;case "1110":_bo="E";break;case "1111":_bo="F";break;}return _bo;};function _l(_bo){var _am;switch(_bo){case "0":_am="0000";break;case "1":_am="0001";break;case "2":_am="0010";break;case "3":_am="0011";break;case "4":_am="0100";break;case "5":_am="0101";break;case "6":_am="0110";break;case "7":_am="0111";break;case "8":_am="1000";break;case "9":_am="1001";break;case "A":_am="1010";break;case "B":_am="1011";break;case "C":_am="1100";break;case "D":_am="1101";break;case "E":_am="1110";break;case "F":_am="1111";break;}return _am;};function _c(_an){var _cJ="";for(i=0;i<4;i++){var _ax=0;for(j=0;j<16;j++){var pow=1;for(m=15;m>j;m--){pow*=2;}_ax+=_an[16*i+j]*pow;}if(_ax!=0){_cJ+=String.fromCharCode(_ax);}}return _cJ;};function _b(_an){var _bo="";for(i=0;i<16;i++){var bt="";for(j=0;j<4;j++){bt+=_an[i*4+j];}_bo+=_a(bt);}return _bo;};function _m(_bo){var _am="";for(i=0;i<16;i++){_am+=_l(_bo.substring(i,i+1));}return _am;};function _e(_aJ,_bG){var _bI=_h(_bG);var _bA=_n(_aJ);var _bB=new Array(32);var _bC=new Array(32);var _cR=new Array(32);var i=0,j=0,k=0,m=0,n=0;for(k=0;k<32;k++){_bB[k]=_bA[k];_bC[k]=_bA[32+k];}for(i=15;i>=0;i--){for(j=0;j<32;j++){_cR[j]=_bB[j];_bB[j]=_bC[j];}var _bF=new Array(48);for(m=0;m<48;m++){_bF[m]=_bI[i][m];}var _cS=_t(_o(_q(_t(_f(_bC),_bF))),_cR);for(n=0;n<32;n++){_bC[n]=_cS[n];}}var _ba=new Array(64);for(i=0;i<32;i++){_ba[i]=_bC[i];_ba[32+i]=_bB[i];}return _g(_ba);};function _n(_ca){var _bA=new Array(64);for(i=0,m=1,n=0;i<4;i++,m+=2,n+=2){for(j=7,k=0;j>=0;j--,k++){_bA[i*8+k]=_ca[j*8+m];_bA[i*8+k+32]=_ca[j*8+n];}}return _bA;};function _f(_cq){var _aU=new Array(48);for(i=0;i<8;i++){if(i==0){_aU[i*6+0]=_cq[31];}else{_aU[i*6+0]=_cq[i*4-1];}_aU[i*6+1]=_cq[i*4+0];_aU[i*6+2]=_cq[i*4+1];_aU[i*6+3]=_cq[i*4+2];_aU[i*6+4]=_cq[i*4+3];if(i==7){_aU[i*6+5]=_cq[0];}else{_aU[i*6+5]=_cq[i*4+4];}}return _aU;};function _t(_ao,_ap){var _db=new Array(_ao.length);for(i=0;i<_ao.length;i++){_db[i]=_ao[i]^_ap[i];}return _db;};function _q(_aV){var _cz=new Array(32);var _am="";var _cr=[[14,4,13,1,2,15,11,8,3,10,6,12,5,9,0,7],[0,15,7,4,14,2,13,1,10,6,12,11,9,5,3,8],[4,1,14,8,13,6,2,11,15,12,9,7,3,10,5,0],[15,12,8,2,4,9,1,7,5,11,3,14,10,0,6,13]];var _cs=[[15,1,8,14,6,11,3,4,9,7,2,13,12,0,5,10],[3,13,4,7,15,2,8,14,12,0,1,10,6,9,11,5],[0,14,7,11,10,4,13,1,5,8,12,6,9,3,2,15],[13,8,10,1,3,15,4,2,11,6,7,12,0,5,14,9]];var _ct=[[10,0,9,14,6,3,15,5,1,13,12,7,11,4,2,8],[13,7,0,9,3,4,6,10,2,8,5,14,12,11,15,1],[13,6,4,9,8,15,3,0,11,1,2,12,5,10,14,7],[1,10,13,0,6,9,8,7,4,15,14,3,11,5,2,12]];var _cu=[[7,13,14,3,0,6,9,10,1,2,8,5,11,12,4,15],[13,8,11,5,6,15,0,3,4,7,2,12,1,10,14,9],[10,6,9,0,12,11,7,13,15,1,3,14,5,2,8,4],[3,15,0,6,10,1,13,8,9,4,5,11,12,7,2,14]];var _cv=[[2,12,4,1,7,10,11,6,8,5,3,15,13,0,14,9],[14,11,2,12,4,7,13,1,5,0,15,10,3,9,8,6],[4,2,1,11,10,13,7,8,15,9,12,5,6,3,0,14],[11,8,12,7,1,14,2,13,6,15,0,9,10,4,5,3]];var _cw=[[12,1,10,15,9,2,6,8,0,13,3,4,14,7,5,11],[10,15,4,2,7,12,9,5,6,1,13,14,0,11,3,8],[9,14,15,5,2,8,12,3,7,0,4,10,1,13,11,6],[4,3,2,12,9,5,15,10,11,14,1,7,6,0,8,13]];var _cx=[[4,11,2,14,15,0,8,13,3,12,9,7,5,10,6,1],[13,0,11,7,4,9,1,10,14,3,5,12,2,15,8,6],[1,4,11,13,12,3,7,14,10,15,6,8,0,5,9,2],[6,11,13,8,1,4,10,7,9,5,0,15,14,2,3,12]];var _cy=[[13,2,8,4,6,15,11,1,10,9,3,14,5,0,12,7],[1,15,13,8,10,3,7,4,12,5,6,11,0,14,9,2],[7,11,4,1,9,12,14,2,0,6,10,13,15,3,5,8],[2,1,14,7,4,10,8,13,15,12,9,0,3,5,6,11]];for(m=0;m<8;m++){var i=0,j=0;i=_aV[m*6+0]*2+_aV[m*6+5];j=_aV[m*6+1]*2*2*2+_aV[m*6+2]*2*2+_aV[m*6+3]*2+_aV[m*6+4];switch(m){case 0:_am=_j(_cr[i][j]);break;case 1:_am=_j(_cs[i][j]);break;case 2:_am=_j(_ct[i][j]);break;case 3:_am=_j(_cu[i][j]);break;case 4:_am=_j(_cv[i][j]);break;case 5:_am=_j(_cw[i][j]);break;case 6:_am=_j(_cx[i][j]);break;case 7:_am=_j(_cy[i][j]);break;}_cz[m*4+0]=parseInt(_am.substring(0,1));_cz[m*4+1]=parseInt(_am.substring(1,2));_cz[m*4+2]=parseInt(_am.substring(2,3));_cz[m*4+3]=parseInt(_am.substring(3,4));}return _cz;};function _o(_cz){var _cb=new Array(32);_cb[0]=_cz[15];_cb[1]=_cz[6];_cb[2]=_cz[19];_cb[3]=_cz[20];_cb[4]=_cz[28];_cb[5]=_cz[11];_cb[6]=_cz[27];_cb[7]=_cz[16];_cb[8]=_cz[0];_cb[9]=_cz[14];_cb[10]=_cz[22];_cb[11]=_cz[25];_cb[12]=_cz[4];_cb[13]=_cz[17];_cb[14]=_cz[30];_cb[15]=_cz[9];_cb[16]=_cz[1];_cb[17]=_cz[7];_cb[18]=_cz[23];_cb[19]=_cz[13];_cb[20]=_cz[31];_cb[21]=_cz[26];_cb[22]=_cz[2];_cb[23]=_cz[8];_cb[24]=_cz[18];_cb[25]=_cz[12];_cb[26]=_cz[29];_cb[27]=_cz[5];_cb[28]=_cz[21];_cb[29]=_cz[10];_cb[30]=_cz[3];_cb[31]=_cz[24];return _cb;};function _g(_aT){var _bi=new Array(64);_bi[0]=_aT[39];_bi[1]=_aT[7];_bi[2]=_aT[47];_bi[3]=_aT[15];_bi[4]=_aT[55];_bi[5]=_aT[23];_bi[6]=_aT[63];_bi[7]=_aT[31];_bi[8]=_aT[38];_bi[9]=_aT[6];_bi[10]=_aT[46];_bi[11]=_aT[14];_bi[12]=_aT[54];_bi[13]=_aT[22];_bi[14]=_aT[62];_bi[15]=_aT[30];_bi[16]=_aT[37];_bi[17]=_aT[5];_bi[18]=_aT[45];_bi[19]=_aT[13];_bi[20]=_aT[53];_bi[21]=_aT[21];_bi[22]=_aT[61];_bi[23]=_aT[29];_bi[24]=_aT[36];_bi[25]=_aT[4];_bi[26]=_aT[44];_bi[27]=_aT[12];_bi[28]=_aT[52];_bi[29]=_aT[20];_bi[30]=_aT[60];_bi[31]=_aT[28];_bi[32]=_aT[35];_bi[33]=_aT[3];_bi[34]=_aT[43];_bi[35]=_aT[11];_bi[36]=_aT[51];_bi[37]=_aT[19];_bi[38]=_aT[59];_bi[39]=_aT[27];_bi[40]=_aT[34];_bi[41]=_aT[2];_bi[42]=_aT[42];_bi[43]=_aT[10];_bi[44]=_aT[50];_bi[45]=_aT[18];_bi[46]=_aT[58];_bi[47]=_aT[26];_bi[48]=_aT[33];_bi[49]=_aT[1];_bi[50]=_aT[41];_bi[51]=_aT[9];_bi[52]=_aT[49];_bi[53]=_aT[17];_bi[54]=_aT[57];_bi[55]=_aT[25];_bi[56]=_aT[32];_bi[57]=_aT[0];_bi[58]=_aT[40];_bi[59]=_aT[8];_bi[60]=_aT[48];_bi[61]=_aT[16];_bi[62]=_aT[56];_bi[63]=_aT[24];return _bi;};function _j(i){var _am="";switch(i){case 0:_am="0000";break;case 1:_am="0001";break;case 2:_am="0010";break;case 3:_am="0011";break;case 4:_am="0100";break;case 5:_am="0101";break;case 6:_am="0110";break;case 7:_am="0111";break;case 8:_am="1000";break;case 9:_am="1001";break;case 10:_am="1010";break;case 11:_am="1011";break;case 12:_am="1100";break;case 13:_am="1101";break;case 14:_am="1110";break;case 15:_am="1111";break;}return _am;};function _h(_bG){var _bF=new Array(56);var _bI=new Array();_bI[0]=new Array();_bI[1]=new Array();_bI[2]=new Array();_bI[3]=new Array();_bI[4]=new Array();_bI[5]=new Array();_bI[6]=new Array();_bI[7]=new Array();_bI[8]=new Array();_bI[9]=new Array();_bI[10]=new Array();_bI[11]=new Array();_bI[12]=new Array();_bI[13]=new Array();_bI[14]=new Array();_bI[15]=new Array();var loop=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];for(i=0;i<7;i++){for(j=0,k=7;j<8;j++,k--){_bF[i*8+j]=_bG[8*k+i];}}var i=0;for(i=0;i<16;i++){var _cR=0;var _cS=0;for(j=0;j<loop[i];j++){_cR=_bF[0];_cS=_bF[28];for(k=0;k<27;k++){_bF[k]=_bF[k+1];_bF[28+k]=_bF[29+k];}_bF[27]=_cR;_bF[55]=_cS;}var _cQ=new Array(48);_cQ[0]=_bF[13];_cQ[1]=_bF[16];_cQ[2]=_bF[10];_cQ[3]=_bF[23];_cQ[4]=_bF[0];_cQ[5]=_bF[4];_cQ[6]=_bF[2];_cQ[7]=_bF[27];_cQ[8]=_bF[14];_cQ[9]=_bF[5];_cQ[10]=_bF[20];_cQ[11]=_bF[9];_cQ[12]=_bF[22];_cQ[13]=_bF[18];_cQ[14]=_bF[11];_cQ[15]=_bF[3];_cQ[16]=_bF[25];_cQ[17]=_bF[7];_cQ[18]=_bF[15];_cQ[19]=_bF[6];_cQ[20]=_bF[26];_cQ[21]=_bF[19];_cQ[22]=_bF[12];_cQ[23]=_bF[1];_cQ[24]=_bF[40];_cQ[25]=_bF[51];_cQ[26]=_bF[30];_cQ[27]=_bF[36];_cQ[28]=_bF[46];_cQ[29]=_bF[54];_cQ[30]=_bF[29];_cQ[31]=_bF[39];_cQ[32]=_bF[50];_cQ[33]=_bF[44];_cQ[34]=_bF[32];_cQ[35]=_bF[47];_cQ[36]=_bF[43];_cQ[37]=_bF[48];_cQ[38]=_bF[38];_cQ[39]=_bF[55];_cQ[40]=_bF[33];_cQ[41]=_bF[52];_cQ[42]=_bF[45];_cQ[43]=_bF[41];_cQ[44]=_bF[49];_cQ[45]=_bF[35];_cQ[46]=_bF[28];_cQ[47]=_bF[31];switch(i){case 0:for(m=0;m<48;m++){_bI[0][m]=_cQ[m];}break;case 1:for(m=0;m<48;m++){_bI[1][m]=_cQ[m];}break;case 2:for(m=0;m<48;m++){_bI[2][m]=_cQ[m];}break;case 3:for(m=0;m<48;m++){_bI[3][m]=_cQ[m];}break;case 4:for(m=0;m<48;m++){_bI[4][m]=_cQ[m];}break;case 5:for(m=0;m<48;m++){_bI[5][m]=_cQ[m];}break;case 6:for(m=0;m<48;m++){_bI[6][m]=_cQ[m];}break;case 7:for(m=0;m<48;m++){_bI[7][m]=_cQ[m];}break;case 8:for(m=0;m<48;m++){_bI[8][m]=_cQ[m];}break;case 9:for(m=0;m<48;m++){_bI[9][m]=_cQ[m];}break;case 10:for(m=0;m<48;m++){_bI[10][m]=_cQ[m];}break;case 11:for(m=0;m<48;m++){_bI[11][m]=_cQ[m];}break;case 12:for(m=0;m<48;m++){_bI[12][m]=_cQ[m];}break;case 13:for(m=0;m<48;m++){_bI[13][m]=_cQ[m];}break;case 14:for(m=0;m<48;m++){_bI[14][m]=_cQ[m];}break;case 15:for(m=0;m<48;m++){_bI[15][m]=_cQ[m];}break;}}return _bI;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -