/* Compiled from dhtmlXTree and X 4.06 with XC 1.01 for Lemonldap::NG::Manager. Copyrights follow below */ /* Copyright © 2001-2006 Michael Foster Compiled from X 4.06 with XC 1.01 on 03Nov06 */ var X={};X.addEventListener=function(e,eT,eL,cap){if(!(e=X.getElementById(e)))return;eT=eT.toLowerCase();if(e==window&&!e.opera&&!document.all){if(eT=='resize'){e.xPCW=X.clientWidth();e.xPCH=X.clientHeight();e.xREL=eL;xResizeEvent();return;}if(eT=='scroll'){e.xPSL=X.scrollLeft();e.xPST=X.scrollTop();e.xSEL=eL;xScrollEvent();return;}}if(e.addEventListener)e.addEventListener(eT,eL,cap);else if(e.attachEvent)e.attachEvent('on'+eT,eL);else e['on'+eT]=eL;};function xResizeEvent(){if(window.xREL)setTimeout('xResizeEvent()',250);var w=window,cw=X.clientWidth(),ch=X.clientHeight();if(w.xPCW!=cw||w.xPCH!=ch){w.xPCW=cw;w.xPCH=ch;if(w.xREL)w.xREL();}}function xScrollEvent(){if(window.xSEL)setTimeout('xScrollEvent()',250);var w=window,sl=X.scrollLeft(),st=X.scrollTop();if(w.xPSL!=sl||w.xPST!=st){w.xPSL=sl;w.xPST=st;if(w.xSEL)w.xSEL();}}X.clientHeight=function(){var v=0,d=document,w=window;if(d.compatMode=='CSS1Compat'&&!w.opera&&d.documentElement&&d.documentElement.clientHeight){v=d.documentElement.clientHeight;}else if(d.body&&d.body.clientHeight){v=d.body.clientHeight;}else if(X.def(w.innerWidth,w.innerHeight,d.width)){v=w.innerHeight;if(d.width>w.innerWidth)v-=16;}return v;};X.clientWidth=function(){var v=0,d=document,w=window;if(d.compatMode=='CSS1Compat'&&!w.opera&&d.documentElement&&d.documentElement.clientWidth){v=d.documentElement.clientWidth;}else if(d.body&&d.body.clientWidth){v=d.body.clientWidth;}else if(X.def(w.innerWidth,w.innerHeight,d.height)){v=w.innerWidth;if(d.height>w.innerHeight)v-=16;}return v;};X.def=function(){for(var i=0;i=0){var pt=0,pb=0,bt=0,bb=0;if(document.compatMode=='CSS1Compat'){var gcs=X.getComputedStyle;pt=gcs(e,'padding-top',1);if(pt!==null){pb=gcs(e,'padding-bottom',1);bt=gcs(e,'border-top-width',1);bb=gcs(e,'border-bottom-width',1);}else if(X.def(e.offsetHeight,e.style.height)){e.style.height=h+'px';pt=e.offsetHeight-h;}}h-=(pt+pb+bt+bb);if(isNaN(h)||h<0)return;else e.style.height=h+'px';}h=e.offsetHeight;}else if(css&&X.def(e.style.pixelHeight)){if(h>=0)e.style.pixelHeight=h;h=e.style.pixelHeight;}return h;};X.left=function(e,iX){if(!(e=X.getElementById(e)))return 0;var css=X.def(e.style);if(css&&X.str(e.style.left)){if(X.num(iX))e.style.left=iX+'px';else{iX=parseInt(e.style.left);if(isNaN(iX))iX=X.getComputedStyle(e,'left',1);if(isNaN(iX))iX=0;}}else if(css&&X.def(e.style.pixelLeft)){if(X.num(iX))e.style.pixelLeft=iX;else iX=e.style.pixelLeft;}return iX;};xLibrary={version:'4.06',license:'GNU LGPL',url:'http://cross-browser.com/'};X.moveTo=function(e,x,y){X.left(e,x);X.top(e,y);};X.nextSib=function(e,t){if(!(e=X.getElementById(e)))return;var s=e?e.nextSibling:null;if(t)while(s&&s.nodeName.toLowerCase()!=t.toLowerCase()){s=s.nextSibling;}else while(s&&s.nodeType!=1){s=s.nextSibling;}return s;};X.num=function(){for(var i=0;isplW-uBarLimit){return;}X.width(pane1,X.width(pane1)+dx);X.left(barEle,X.left(barEle)+dx);X.width(pane2,X.width(pane2)-dx);X.left(pane2,X.left(pane2)+dx);barPos=bp;}else{bp=barPos+dy;if(bpsplH-uBarLimit){return;}X.height(pane1,X.height(pane1)+dy);X.top(barEle,X.top(barEle)+dy);X.height(pane2,X.height(pane2)-dy);X.top(pane2,X.top(pane2)+dy);barPos=bp;}if(oSplChild1){oSplChild1.paint(X.width(pane1),X.height(pane1));}if(oSplChild2){oSplChild2.paint(X.width(pane2),X.height(pane2));}}this.paint=function(uNewW,uNewH,uNewBarPos,uNewBarLim){if(uNewW==0){return;}var w1,h1,w2,h2;splW=uNewW;splH=uNewH;barPos=uNewBarPos||barPos;barLim=uNewBarLim||barLim;X.moveTo(splEle,uSplX,uSplY);X.resizeTo(splEle,uNewW,uNewH);if(bHorizontal){w1=barPos;h1=uNewH-2*uSplBorderW;w2=uNewW-w1-uBarW-2*uSplBorderW;h2=h1;X.moveTo(pane1,0,0);X.resizeTo(pane1,w1,h1);X.moveTo(barEle,w1,0);X.resizeTo(barEle,uBarW,h1);X.moveTo(pane2,w1+uBarW,0);X.resizeTo(pane2,w2,h2);}else{w1=uNewW-2*uSplBorderW;;h1=barPos;w2=w1;h2=uNewH-h1-uBarW-2*uSplBorderW;X.moveTo(pane1,0,0);X.resizeTo(pane1,w1,h1);X.moveTo(barEle,0,h1);X.resizeTo(barEle,w1,uBarW);X.moveTo(pane2,0,h1+uBarW);X.resizeTo(pane2,w2,h2);}if(oSplChild1){pane1.style.overflow='hidden';oSplChild1.paint(w1,h1);}if(oSplChild2){pane2.style.overflow='hidden';oSplChild2.paint(w2,h2);}};splEle=X.getElementById(sSplId);pane1=X.firstChild(splEle,'DIV');pane2=X.nextSib(pane1,'DIV');barEle=X.nextSib(pane2,'DIV');pane1.style.zIndex=2;pane2.style.zIndex=2;barEle.style.zIndex=1;barPos=uBarPos;barLim=uBarLimit;this.paint(uSplW,uSplH);if(bBarEnabled){X.enableDrag(barEle,null,barOnDrag,null);barEle.style.cursor=bHorizontal?'e-resize':'n-resize';}splEle.style.visibility='visible';}X.str=function(s){for(var i=0;i=0){var pl=0,pr=0,bl=0,br=0;if(document.compatMode=='CSS1Compat'){var gcs=X.getComputedStyle;pl=gcs(e,'padding-left',1);if(pl!==null){pr=gcs(e,'padding-right',1);bl=gcs(e,'border-left-width',1);br=gcs(e,'border-right-width',1);}else if(X.def(e.offsetWidth,e.style.width)){e.style.width=w+'px';pl=e.offsetWidth-w;}}w-=(pl+pr+bl+br);if(isNaN(w)||w<0)return;else e.style.width=w+'px';}w=e.offsetWidth;}else if(css&&X.def(e.style.pixelWidth)){if(w>=0)e.style.pixelWidth=w;w=e.style.pixelWidth;}return w;}; /* Copyright Scand LLC http://www.scbr.com This version of Software is free for using in non-commercial applications. For commercial use please contact info@scbr.com to obtain license */ function dtmlXMLLoaderObject(funcObject,dhtmlObject,async){this.xmlDoc="";if(arguments.length==2)this.async=true;else this.async=async;this.onloadAction=funcObject||null;this.mainObject=dhtmlObject||null;return this;};dtmlXMLLoaderObject.prototype.waitLoadFunction=function(dhtmlObject){this.check=function(){if(dhtmlObject.onloadAction!=null){if(!dhtmlObject.xmlDoc.readyState)dhtmlObject.onloadAction(dhtmlObject.mainObject);else{if(dhtmlObject.xmlDoc.readyState!=4)return false;else dhtmlObject.onloadAction(dhtmlObject.mainObject,null,null,null,dhtmlObject);}}};return this.check;};dtmlXMLLoaderObject.prototype.getXMLTopNode=function(tagName){if(this.xmlDoc.responseXML){var temp=this.xmlDoc.responseXML.getElementsByTagName(tagName);var z=temp[0];}else var z=this.xmlDoc.documentElement;if(z)return z;dhtmlxError.throwError("LoadXML","Incorrect XML",[this.xmlDoc]);return document.createElement("DIV");};dtmlXMLLoaderObject.prototype.loadXMLString=function(xmlString){try{var parser=new DOMParser();this.xmlDoc=parser.parseFromString(xmlString,"text/xml");}catch(e){this.xmlDoc=new ActiveXObject("Microsoft.XMLDOM");this.xmlDoc.async=this.async;this.xmlDoc.loadXML(xmlString);}this.onloadAction(this.mainObject);};dtmlXMLLoaderObject.prototype.loadXML=function(filePath){try{this.xmlDoc=new XMLHttpRequest();this.xmlDoc.open("GET",filePath,this.async);this.xmlDoc.onreadystatechange=new this.waitLoadFunction(this);this.xmlDoc.send(null);}catch(e){if(document.implementation&&document.implementation.createDocument){this.xmlDoc=document.implementation.createDocument("","",null);this.xmlDoc.onload=new this.waitLoadFunction(this);}else{this.xmlDoc=new ActiveXObject("Microsoft.XMLDOM");this.xmlDoc.async=this.async;this.xmlDoc.onreadystatechange=new this.waitLoadFunction(this);}this.xmlDoc.load(filePath);}};dtmlXMLLoaderObject.prototype.destructor=function(){this.onloadAction=null;this.mainObject=null;this.xmlDoc=null;return null;};function callerFunction(funcObject,dhtmlObject){this.handler=function(e){if(!e)e=event;funcObject(e,dhtmlObject);return true;};return this.handler;}function getAbsoluteLeft(htmlObject){var xPos=htmlObject.offsetLeft;var temp=htmlObject.offsetParent;while(temp!=null){xPos+=temp.offsetLeft;temp=temp.offsetParent;}return xPos;}function getAbsoluteTop(htmlObject){var yPos=htmlObject.offsetTop;var temp=htmlObject.offsetParent;while(temp!=null){yPos+=temp.offsetTop;temp=temp.offsetParent;}return yPos;}function convertStringToBoolean(inputString){if(typeof(inputString)=="string")inputString=inputString.toLowerCase();switch(inputString){case "1":case "true":case "yes":case "y":case 1:case true:return true;break;default:return false;}}function getUrlSymbol(str){if(str.indexOf("?")!=-1)return "&" else return "?";}function dhtmlDragAndDropObject(){this.lastLanding=0;this.dragNode=0;this.dragStartNode=0;this.dragStartObject=0;this.tempDOMU=null;this.tempDOMM=null;this.waitDrag=0;if(window.dhtmlDragAndDrop)return window.dhtmlDragAndDrop;window.dhtmlDragAndDrop=this;return this;}dhtmlDragAndDropObject.prototype.removeDraggableItem=function(htmlNode){htmlNode.onmousedown=null;htmlNode.dragStarter=null;htmlNode.dragLanding=null;};dhtmlDragAndDropObject.prototype.addDraggableItem=function(htmlNode,dhtmlObject){htmlNode.onmousedown=this.preCreateDragCopy;htmlNode.dragStarter=dhtmlObject;this.addDragLanding(htmlNode,dhtmlObject);};dhtmlDragAndDropObject.prototype.addDragLanding=function(htmlNode,dhtmlObject){htmlNode.dragLanding=dhtmlObject;};dhtmlDragAndDropObject.prototype.preCreateDragCopy=function(e){if(window.dhtmlDragAndDrop.waitDrag){window.dhtmlDragAndDrop.waitDrag=0;document.body.onmouseup=window.dhtmlDragAndDrop.tempDOMU;document.body.onmousemove=window.dhtmlDragAndDrop.tempDOMM;return false;}window.dhtmlDragAndDrop.waitDrag=1;window.dhtmlDragAndDrop.tempDOMU=document.body.onmouseup;window.dhtmlDragAndDrop.tempDOMM=document.body.onmousemove;window.dhtmlDragAndDrop.dragStartNode=this;window.dhtmlDragAndDrop.dragStartObject=this.dragStarter;document.body.onmouseup=window.dhtmlDragAndDrop.preCreateDragCopy;document.body.onmousemove=window.dhtmlDragAndDrop.callDrag;if((e)&&(e.preventDefault)){e.preventDefault();return false;}return false;};dhtmlDragAndDropObject.prototype.callDrag=function(e){if(!e)e=window.event;dragger=window.dhtmlDragAndDrop;if((e.button==0)&&(_isIE))return dragger.stopDrag();if(!dragger.dragNode){dragger.dragNode=dragger.dragStartObject._createDragNode(dragger.dragStartNode,e);if(!dragger.dragNode)return dragger.stopDrag();dragger.gldragNode=dragger.dragNode;document.body.appendChild(dragger.dragNode);document.body.onmouseup=dragger.stopDrag;dragger.waitDrag=0;dragger.dragNode.pWindow=window;dragger.initFrameRoute();}if(dragger.dragNode.parentNode!=window.document.body){var grd=dragger.gldragNode;if(dragger.gldragNode.old)grd=dragger.gldragNode.old;grd.parentNode.removeChild(grd);var oldBody=dragger.dragNode.pWindow;if(_isIE){var div=document.createElement("Div");div.innerHTML=dragger.dragNode.outerHTML;dragger.dragNode=div.childNodes[0];}else dragger.dragNode=dragger.dragNode.cloneNode(true);dragger.dragNode.pWindow=window;dragger.gldragNode.old=dragger.dragNode;document.body.appendChild(dragger.dragNode);oldBody.dhtmlDragAndDrop.dragNode=dragger.dragNode;}dragger.dragNode.style.left=e.clientX+15+(dragger.fx?dragger.fx*(-1):0)+document.body.scrollLeft+"px";dragger.dragNode.style.top=e.clientY+3+(dragger.fy?dragger.fy*(-1):0)+document.body.scrollTop+"px";if(!e.srcElement)var z=e.target;else z=e.srcElement;dragger.checkLanding(z,e.clientX,e.clientY);};dhtmlDragAndDropObject.prototype.calculateFramePosition=function(n){if(window.name){var el=parent.frames[window.name].frameElement.offsetParent;var fx=0;var fy=0;while(el){fx+=el.offsetLeft;fy+=el.offsetTop;el=el.offsetParent;}if((parent.dhtmlDragAndDrop)){var ls=parent.dhtmlDragAndDrop.calculateFramePosition(1);fx+=ls.split('_')[0]*1;fy+=ls.split('_')[1]*1;}if(n)return fx+"_"+fy;else this.fx=fx;this.fy=fy;}return "0_0";};dhtmlDragAndDropObject.prototype.checkLanding=function(htmlObject,x,y){if((htmlObject)&&(htmlObject.dragLanding)){if(this.lastLanding)this.lastLanding.dragLanding._dragOut(this.lastLanding);this.lastLanding=htmlObject;this.lastLanding=this.lastLanding.dragLanding._dragIn(this.lastLanding,this.dragStartNode,x,y);}else{if((htmlObject)&&(htmlObject.tagName!="BODY"))this.checkLanding(htmlObject.parentNode,x,y);else{if(this.lastLanding)this.lastLanding.dragLanding._dragOut(this.lastLanding,x,y);this.lastLanding=0;}}};dhtmlDragAndDropObject.prototype.stopDrag=function(e,mode){dragger=window.dhtmlDragAndDrop;if(!mode){dragger.stopFrameRoute();var temp=dragger.lastLanding;dragger.lastLanding=null;if(temp)temp.dragLanding._drag(dragger.dragStartNode,dragger.dragStartObject,temp);}dragger.lastLanding=null;if((dragger.dragNode)&&(dragger.dragNode.parentNode==document.body))dragger.dragNode.parentNode.removeChild(dragger.dragNode);dragger.dragNode=0;dragger.gldragNode=0;dragger.fx=0;dragger.fy=0;dragger.dragStartNode=0;dragger.dragStartObject=0;document.body.onmouseup=dragger.tempDOMU;document.body.onmousemove=dragger.tempDOMM;dragger.tempDOMU=null;dragger.tempDOMM=null;dragger.waitDrag=0;};dhtmlDragAndDropObject.prototype.stopFrameRoute=function(win){if(win)window.dhtmlDragAndDrop.stopDrag(1,1);for(var i=0;i20)this.selectionBar.style.width=(this.allTree.offsetWidth-20)+"px";this.selectionBar.style.display="none";this.allTree.appendChild(this.selectionBar);return this;};function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHandler,mode){this.htmlNode="";this.acolor="";this.scolor="";this.tr=0;this.childsCount=0;this.tempDOMM=0;this.tempDOMU=0;this.dragSpan=0;this.dragMove=0;this.span=0;this.closeble=1;this.childNodes=new Array();this.userData=new Object();this.checkstate=0;this.treeNod=treeObject;this.label=itemText;this.parentObject=parentObject;this.actionHandler=actionHandler;this.images=new Array(treeObject.imageArray[0],treeObject.imageArray[1],treeObject.imageArray[2]);this.id=treeObject._globalIdStorageAdd(itemId,this);if(this.treeNod.checkBoxOff)this.htmlNode=this.treeNod._createItem(1,this,mode);else this.htmlNode=this.treeNod._createItem(0,this,mode);this.htmlNode.objBelong=this;return this;};dhtmlXTreeObject.prototype._globalIdStorageAdd=function(itemId,itemObject){if(this._globalIdStorageFind(itemId,1,1)){d=new Date();itemId=d.valueOf()+"_"+itemId;return this._globalIdStorageAdd(itemId,itemObject);}this._globalIdStorage[this._globalIdStorageSize]=itemId;this.globalNodeStorage[this._globalIdStorageSize]=itemObject;this._globalIdStorageSize++;return itemId;};dhtmlXTreeObject.prototype._globalIdStorageSub=function(itemId){for(var i=0;i0){beforeNode=new Object;beforeNode.tr=parentObject.childNodes[0].tr.previousSibling;}for(ik=0;ik=2){this._correctPlus(Nodes[parentObject.childsCount-2]);this._correctLine(Nodes[parentObject.childsCount-2]);}if(parentObject.childsCount!=2)this._correctPlus(Nodes[0]);if(this.tscheck)this._correctCheckStates(parentObject);}if(this.cMenu)this.cMenu.setContextZone(Nodes[Count].span,Nodes[Count].id);return Nodes[Count];};dhtmlXTreeObject.prototype.insertNewChild=function(parentId,itemId,itemText,itemActionHandler,image1,image2,image3,optionStr,childs){return this.insertNewItem(parentId,itemId,itemText,itemActionHandler,image1,image2,image3,optionStr,childs);};dhtmlXTreeObject.prototype.insertNewItem=function(parentId,itemId,itemText,itemActionHandler,image1,image2,image3,optionStr,childs){var parentObject=this._globalIdStorageFind(parentId);if(!parentObject)return(-1);return this._attachChildNode(parentObject,itemId,itemText,itemActionHandler,image1,image2,image3,optionStr,childs);};dhtmlXTreeObject.prototype.insertNewChild=function(parentId,itemId,itemText,itemActionHandler,image1,image2,image3,optionStr,childs){return this.insertNewItem(parentId,itemId,itemText,itemActionHandler,image1,image2,image3,optionStr,childs);};dhtmlXTreeObject.prototype._parseXMLTree=function(dhtmlObject,node,parentId,level){if(!dhtmlObject.parsCount)dhtmlObject.parsCount=1;else dhtmlObject.parsCount++;dhtmlObject.XMLloadingWarning=1;var nodeAskingCall="";if(!node){node=dhtmlObject.XMLLoader.getXMLTopNode("tree");parentId=node.getAttribute("id");dhtmlObject.parsingOn=parentId;dhtmlObject.parsedArray=new Array();dhtmlObject.setCheckList="";}if(node.getAttribute("order"))dhtmlObject._reorderXMLBranch(node);for(var i=0;i0){for(var a=0;a1){if(((Nodes[1].style.display!="none")||(mode==1))&&(mode!=2)){this.allTree.childNodes[0].border="1";this.allTree.childNodes[0].border="0";nodestyle="none";}else nodestyle="";for(var i=1;ithis._getNodeLevel(nodeB,0)){return this._moveNodeTo(itemObject,nodeA.parentObject);}else{return this._moveNodeTo(itemObject,nodeB.parentObject,nodeB);}}else return this._moveNodeTo(itemObject,targetObject);};dhtmlXTreeObject.prototype._fixNodesCollection=function(target,zParent){var flag=0;var icount=0;var Nodes=target.childNodes;var Count=target.childsCount-1;if(zParent==Nodes[Count])return;for(var i=0;i=2){this._correctPlus(Nodes[targetObject.childsCount-2]);this._correctLine(Nodes[targetObject.childsCount-2]);}this._correctPlus(Nodes[targetObject.childsCount-1]);if(this.tscheck)this._correctCheckStates(targetObject);if(oldTree.tscheck)oldTree._correctCheckStates(z);}if(c>1){oldTree._correctPlus(z.childNodes[c-2]);oldTree._correctLine(z.childNodes[c-2]);}oldTree._correctPlus(z);if(this.dropFunc)this.dropFunc(itemObject.id,targetObject.id,(beforeNode?beforeNode.id:null),itemObject.treeNod,targetObject.treeNod);return itemObject.id;};dhtmlXTreeObject.prototype._checkParenNodes=function(itemId,htmlObject,shtmlObject){if(shtmlObject){if(shtmlObject.parentObject.id==htmlObject.id)return 1;}if(htmlObject.id==itemId)return 1;if(htmlObject.parentObject)return this._checkParenNodes(itemId,htmlObject.parentObject);else return 0;};dhtmlXTreeObject.prototype._clearStyles=function(itemObject){var td1=itemObject.htmlNode.childNodes[0].childNodes[0].childNodes[1];var td3=td1.nextSibling.nextSibling;itemObject.span.innerHTML=itemObject.label;if(this.checkBoxOff){td1.childNodes[0].style.display="";td1.childNodes[0].onclick=this.onCheckBoxClick;}else td1.childNodes[0].style.display="none";td1.childNodes[0].treeNod=this;this.dragger.removeDraggableItem(td3);if(this.dragAndDropOff)this.dragger.addDraggableItem(td3,this);td3.childNodes[0].className="standartTreeRow";td3.onclick=this.onRowSelect;td3.ondblclick=this.onRowClick2;td1.previousSibling.onclick=this.onRowClick;this._correctLine(itemObject);this._correctPlus(itemObject);for(var i=0;i0)))if(!htmlNode.nocheckbox){if(list)list+=","+htmlNode.id;else list=htmlNode.id;}var j=htmlNode.childsCount;for(var i=0;iz.childsCount))return null;return z.childNodes[index].id;};dhtmlXTreeObject.prototype.getChildItemIdByIndex=function(itemId,index){var z=this._globalIdStorageFind(itemId);if((!z)||(index>z.childsCount))return null;return z.childNodes[index].id;};dhtmlXTreeObject.prototype.setDragHandler=function(func){if(typeof(func)=="function")this.dragFunc=func;else this.dragFunc=eval(func);};dhtmlXTreeObject.prototype._clearMove=function(htmlNode){if((htmlNode.parentObject)&&(htmlNode.parentObject.span)){htmlNode.parentObject.span.className='standartTreeRow';if(htmlNode.parentObject.acolor)htmlNode.parentObject.span.style.color=htmlNode.parentObject.acolor;}this.selectionBar.style.display="none";this.allTree.className="containerTableStyle";};dhtmlXTreeObject.prototype.enableDragAndDrop=function(mode){this.dragAndDropOff=convertStringToBoolean(mode);if(this.dragAndDropOff)this.dragger.addDragLanding(this.allTree,this);};dhtmlXTreeObject.prototype._setMove=function(htmlNode,x,y){if(htmlNode.parentObject.span){var a1=getAbsoluteTop(htmlNode);var a2=getAbsoluteTop(this.allTree);this.dadmodec=this.dadmode;this.dadmodefix=0;if(this.dadmodec==0){htmlNode.parentObject.span.className='selectedTreeRow';if(htmlNode.parentObject.scolor)htmlNode.parentObject.span.style.color=htmlNode.parentObject.scolor;}else{htmlNode.parentObject.span.className='standartTreeRow';if(htmlNode.parentObject.acolor)htmlNode.parentObject.span.style.color=htmlNode.parentObject.acolor;this.selectionBar.style.top=a1-a2+16+this.dadmodefix+"px";this.selectionBar.style.left="5px";this.selectionBar.style.display="";}if(this.autoScroll){if((a1-a2-parseInt(this.allTree.scrollTop))>(parseInt(this.allTree.offsetHeight)-50))this.allTree.scrollTop=parseInt(this.allTree.scrollTop)+20;if((a1-a2)<(parseInt(this.allTree.scrollTop)+30))this.allTree.scrollTop=parseInt(this.allTree.scrollTop)-20;}}};dhtmlXTreeObject.prototype._createDragNode=function(htmlObject){dhtmlObject=htmlObject.parentObject;if(this.lastSelected)this._clearMove(this.lastSelected);var dragSpan=document.createElement('div');dragSpan.innerHTML=dhtmlObject.label;dragSpan.style.position="absolute";dragSpan.className="dragSpanDiv";return dragSpan;};dhtmlXTreeObject.prototype._preventNsDrag=function(e){if((e)&&(e.preventDefault)){e.preventDefault();return false;}return false;};dhtmlXTreeObject.prototype._drag=function(sourceHtmlObject,dhtmlObject,targetHtmlObject){if(this._autoOpenTimer)clearTimeout(this._autoOpenTimer);if(!targetHtmlObject.parentObject){targetHtmlObject=this.htmlNode.htmlNode.childNodes[0].childNodes[0].childNodes[1].childNodes[0];this.dadmodec=0;}this._clearMove(targetHtmlObject);var z=targetHtmlObject.parentObject.treeNod;z._clearMove("");if((!this.dragMove)||(this.dragMove())){var newID=this._moveNode(sourceHtmlObject.parentObject,targetHtmlObject.parentObject);z.selectItem(newID);}try{}catch(e){return;}};dhtmlXTreeObject.prototype._dragIn=function(htmlObject,shtmlObject,x,y){if(!htmlObject.parentObject){this.allTree.className="containerTableStyle selectionBox";return htmlObject;}if((!this._checkParenNodes(shtmlObject.parentObject.id,htmlObject.parentObject,shtmlObject.parentObject))&&(htmlObject.parentObject.id!=shtmlObject.parentObject.id)){htmlObject.parentObject.span.parentNode.appendChild(this.selectionBar);this._setMove(htmlObject,x,y);if(this._getOpenState(htmlObject.parentObject)<0)this._autoOpenTimer=window.setTimeout(new callerFunction(this._autoOpenItem,this),1000);this._autoOpenId=htmlObject.parentObject.id;return htmlObject;}else return 0;};dhtmlXTreeObject.prototype._autoOpenItem=function(e,treeObject){treeObject.openItem(treeObject._autoOpenId);};dhtmlXTreeObject.prototype._dragOut=function(htmlObject){this._clearMove(htmlObject);if(this._autoOpenTimer)clearTimeout(this._autoOpenTimer);};dhtmlXTreeObject.prototype._getNextNode=function(item,mode){if((!mode)&&(item.childsCount))return item.childNodes[0];if(item==this.htmlNode)return-1;if((item.tr)&&(item.tr.nextSibling)&&(item.tr.nextSibling.nodem))return item.tr.nextSibling.nodem;return this._getNextNode(item.parentObject,true);};dhtmlXTreeObject.prototype._lastChild=function(item){if(item.childsCount)return this._lastChild(item.childNodes[item.childsCount-1]);else return item;};dhtmlXTreeObject.prototype._getPrevNode=function(node,mode){if((node.tr)&&(node.tr.previousSibling)&&(node.tr.previousSibling.nodem))return this._lastChild(node.tr.previousSibling.nodem);if(node.parentObject)return node.parentObject;else return-1;};