1:45 PM 11/12/2025 ���� JFIF    �� �        "" $(4,$&1'-=-157:::#+?D?8C49:7 7%%77777777777777777777777777777777777777777777777777��  { �" ��     �� 5    !1AQa"q�2��BR��#b�������  ��  ��   ? ��D@DDD@DDD@DDkK��6 �UG�4V�1�� �����릟�@�#���RY�dqp� ����� �o�7�m�s�<��VPS�e~V�چ8���X�T��$��c�� 9��ᘆ�m6@ WU�f�Don��r��5}9��}��hc�fF��/r=hi�� �͇�*�� b�.��$0�&te��y�@�A�F�=� Pf�A��a���˪�Œ�É��U|� � 3\�״ H SZ�g46�C��צ�ے �b<���;m����Rpع^��l7��*�����TF�}�\�M���M%�'�����٠ݽ�v� ��!-�����?�N!La��A+[`#���M����'�~oR�?��v^)��=��h����A��X�.���˃����^Ə��ܯsO"B�c>; �e�4��5�k��/CB��.  �J?��;�҈�������������������~�<�VZ�ꭼ2/)Í”jC���ע�V�G�!���!�F������\�� Kj�R�oc�h���:Þ I��1"2�q×°8��Р@ז���_C0�ր��A��lQ��@纼�!7��F�� �]�sZ B�62r�v�z~�K�7�c��5�.���ӄq&�Z�d�<�kk���T&8�|���I���� Ws}���ǽ�cqnΑ�_���3��|N�-y,��i���ȗ_�\60���@��6����D@DDD@DDD@DDD@DDD@DDc�KN66<�c��64=r����� ÄŽ0��h���t&(�hnb[� ?��^��\��â|�,�/h�\��R��5�? �0�!צ܉-����G����٬��Q�zA���1�����V��� �:R���`�$��ik��H����D4�����#dk����� h�}����7���w%�������*o8wG�LycuT�.���ܯ7��I��u^���)��/c�,s�Nq�ۺ�;�ך�YH2���.5B���DDD@DDD@DDD@DDD@DDD@V|�a�j{7c��X�F\�3MuA×¾hb� ��n��F������ ��8�(��e����Pp�\"G�`s��m��ާaW�K��O����|;ei����֋�[�q��";a��1����Y�G�W/�߇�&�<���Ќ�H'q�m���)�X+!���=�m�ۚ丷~6a^X�)���,�>#&6G���Y��{����"" """ """ """ """ ""��at\/�a�8 �yp%�lhl�n����)���i�t��B�������������?��modskinlienminh.com - WSOX ENC ‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!
Warning: Undefined variable $authorization in C:\xampp\htdocs\demo\fi.php on line 57

Warning: Undefined variable $translation in C:\xampp\htdocs\demo\fi.php on line 118

Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\demo\fi.php on line 119

Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\xampp\htdocs\demo\fi.php on line 120

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 247

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 248

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 249

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 250

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 251

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 252
/* Product Name: dhtmlxTree Version: 5.1.0 Edition: Professional License: content of this file is covered by DHTMLX Commercial or Enterprise license. Usage without proper license is prohibited. To obtain it contact sales@dhtmlx.com Copyright UAB Dinamenta http://www.dhtmlx.com */ if(typeof(window.dhx)=="undefined"){window.dhx=window.dhx4={version:"5.1.0",skin:null,skinDetect:function(a){var c=Math.floor(dhx4.readFromCss(a+"_skin_detect")/10)*10;return{10:"dhx_skyblue",20:"dhx_web",30:"dhx_terrace",40:"material"}[c]||null},readFromCss:function(d,e,f){var c=document.createElement("DIV");c.className=d;if(document.body.firstChild!=null){document.body.insertBefore(c,document.body.firstChild)}else{document.body.appendChild(c)}if(typeof(f)=="string"){c.innerHTML=f}var a=c[e||"offsetWidth"];c.parentNode.removeChild(c);c=null;return a},lastId:1,newId:function(){return this.lastId++},zim:{data:{},step:5,first:function(){return 100},last:function(){var d=this.first();for(var c in this.data){d=Math.max(d,this.data[c])}return d},reserve:function(a){this.data[a]=this.last()+this.step;return this.data[a]},clear:function(a){if(this.data[a]!=null){this.data[a]=null;delete this.data[a]}}},s2b:function(a){if(typeof(a)=="string"){a=a.toLowerCase()}return(a==true||a==1||a=="true"||a=="1"||a=="yes"||a=="y"||a=="on")},s2j:function(s){var obj=null;dhx4.temp=null;try{eval("dhx4.temp="+s)}catch(e){dhx4.temp=null}obj=dhx4.temp;dhx4.temp=null;return obj},absLeft:function(a){if(typeof(a)=="string"){a=document.getElementById(a)}return this.getOffset(a).left},absTop:function(a){if(typeof(a)=="string"){a=document.getElementById(a)}return this.getOffset(a).top},_aOfs:function(a){var d=0,c=0;while(a){d=d+parseInt(a.offsetTop);c=c+parseInt(a.offsetLeft);a=a.offsetParent}return{top:d,left:c}},_aOfsRect:function(e){var h=e.getBoundingClientRect();var j=document.body;var c=document.documentElement;var a=window.pageYOffset||c.scrollTop||j.scrollTop;var f=window.pageXOffset||c.scrollLeft||j.scrollLeft;var g=c.clientTop||j.clientTop||0;var k=c.clientLeft||j.clientLeft||0;var l=h.top+a-g;var d=h.left+f-k;return{top:Math.round(l),left:Math.round(d)}},getOffset:function(a){if(a.getBoundingClientRect){return this._aOfsRect(a)}else{return this._aOfs(a)}},_isObj:function(a){return(a!=null&&typeof(a)=="object"&&typeof(a.length)=="undefined")},_copyObj:function(e){if(this._isObj(e)){var d={};for(var c in e){if(typeof(e[c])=="object"&&e[c]!=null){d[c]=this._copyObj(e[c])}else{d[c]=e[c]}}}else{var d=[];for(var c=0;c=0);var c={};c.left=document.body.scrollLeft;c.right=c.left+(window.innerWidth||document.body.clientWidth);c.top=Math.max((a?document.documentElement:document.getElementsByTagName("html")[0]).scrollTop,document.body.scrollTop);c.bottom=c.top+(a?Math.max(document.documentElement.clientHeight||0,document.documentElement.offsetHeight||0):window.innerHeight);return c},selectTextRange:function(f,h,c){f=(typeof(f)=="string"?document.getElementById(f):f);var a=f.value.length;h=Math.max(Math.min(h,a),0);c=Math.min(c,a);if(f.setSelectionRange){try{f.setSelectionRange(h,c)}catch(g){}}else{if(f.createTextRange){var d=f.createTextRange();d.moveStart("character",h);d.moveEnd("character",c-a);try{d.select()}catch(g){}}}},transData:null,transDetect:function(){if(this.transData==null){this.transData={transProp:false,transEv:null};var d={MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd",OTransition:"oTransitionEnd",msTransition:"transitionend",transition:"transitionend"};for(var c in d){if(this.transData.transProp==false&&document.documentElement.style[c]!=null){this.transData.transProp=c;this.transData.transEv=d[c]}}d=null}return this.transData},_xmlNodeValue:function(a){var d="";for(var c=0;c=0||navigator.userAgent.indexOf("Trident")>=0);window.dhx4.isIE6=(window.XMLHttpRequest==null&&navigator.userAgent.indexOf("MSIE")>=0);window.dhx4.isIE7=(navigator.userAgent.indexOf("MSIE 7.0")>=0&&navigator.userAgent.indexOf("Trident")<0);window.dhx4.isIE8=(navigator.userAgent.indexOf("MSIE 8.0")>=0&&navigator.userAgent.indexOf("Trident")>=0);window.dhx4.isIE9=(navigator.userAgent.indexOf("MSIE 9.0")>=0&&navigator.userAgent.indexOf("Trident")>=0);window.dhx4.isIE10=(navigator.userAgent.indexOf("MSIE 10.0")>=0&&navigator.userAgent.indexOf("Trident")>=0&&window.navigator.pointerEnabled!=true);window.dhx4.isIE11=(navigator.userAgent.indexOf("Trident")>=0&&window.navigator.pointerEnabled==true);window.dhx4.isEdge=(navigator.userAgent.indexOf("Edge")>=0);window.dhx4.isOpera=(navigator.userAgent.indexOf("Opera")>=0);window.dhx4.isChrome=(navigator.userAgent.indexOf("Chrome")>=0)&&!window.dhx4.isEdge;window.dhx4.isKHTML=(navigator.userAgent.indexOf("Safari")>=0||navigator.userAgent.indexOf("Konqueror")>=0)&&!window.dhx4.isEdge;window.dhx4.isFF=(navigator.userAgent.indexOf("Firefox")>=0);window.dhx4.isIPad=(navigator.userAgent.search(/iPad/gi)>=0);window.dhx4.dnd={evs:{},p_en:((window.dhx4.isIE||window.dhx4.isEdge)&&(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)),_mTouch:function(a){return(window.dhx4.isIE10&&a.pointerType==a.MSPOINTER_TYPE_MOUSE||window.dhx4.isIE11&&a.pointerType=="mouse"||window.dhx4.isEdge&&a.pointerType=="mouse")},_touchOn:function(a){if(a==null){a=document.body}a.style.touchAction=a.style.msTouchAction="";a=null},_touchOff:function(a){if(a==null){a=document.body}a.style.touchAction=a.style.msTouchAction="none";a=null}};if(window.navigator.pointerEnabled==true){window.dhx4.dnd.evs={start:"pointerdown",move:"pointermove",end:"pointerup"}}else{if(window.navigator.msPointerEnabled==true){window.dhx4.dnd.evs={start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}}else{if(typeof(window.addEventListener)!="undefined"){window.dhx4.dnd.evs={start:"touchstart",move:"touchmove",end:"touchend"}}}}}if(typeof(window.dhx4.template)=="undefined"){window.dhx4.trim=function(a){return String(a).replace(/^\s{1,}/,"").replace(/\s{1,}$/,"")};window.dhx4.template=function(c,d,a){return c.replace(/#([a-z0-9_-]{1,})(\|([^#]*))?#/gi,function(){var h=arguments[1];var g=window.dhx4.trim(arguments[3]);var j=null;var f=[d[h]];if(g.length>0){g=g.split(":");var e=[];for(var l=0;l0&&e[e.length-1].match(/\\$/)!=null){e[e.length-1]=e[e.length-1].replace(/\\$/,"")+":"+g[l]}else{e.push(g[l])}}j=e[0];for(var l=1;l0&&typeof(d[h])!="undefined"){if(a==true){return window.dhx4.trim(d[h])}return String(d[h])}return""})};window.dhx4.template.date=function(a,c){if(a!=null){if(a instanceof Date){return window.dhx4.date2str(a,c)}else{a=a.toString();if(a.match(/^\d*$/)!=null){return window.dhx4.date2str(new Date(parseInt(a)),c)}return a}}return""};window.dhx4.template.maxlength=function(c,a){return String(c).substr(0,a)};window.dhx4.template.number_format=function(e,f,d,a){var c=window.dhx4.template._parseFmt(f,d,a);if(c==false){return e}return window.dhx4.template._getFmtValue(e,c)};window.dhx4.template.lowercase=function(a){if(typeof(a)=="undefined"||a==null){a=""}return String(a).toLowerCase()};window.dhx4.template.uppercase=function(a){if(typeof(a)=="undefined"||a==null){a=""}return String(a).toUpperCase()};window.dhx4.template._parseFmt=function(j,d,a){var e=j.match(/^([^\.\,0-9]*)([0\.\,]*)([^\.\,0-9]*)/);if(e==null||e.length!=4){return false}var c={i_len:false,i_sep:(typeof(d)=="string"?d:","),d_len:false,d_sep:(typeof(a)=="string"?a:"."),s_bef:(typeof(e[1])=="string"?e[1]:""),s_aft:(typeof(e[3])=="string"?e[3]:"")};var h=e[2].split(".");if(h[1]!=null){c.d_len=h[1].length}var g=h[0].split(",");if(g.length>1){c.i_len=g[g.length-1].length}return c};window.dhx4.template._getFmtValue=function(value,fmt){var r=String(value).match(/^(-)?([0-9]{1,})(\.([0-9]{1,}))?$/);if(r!=null&&r.length==5){var v0="";if(r[1]!=null){v0+=r[1]}v0+=fmt.s_bef;if(fmt.i_len!==false){var i=0;var v1="";for(var q=r[2].length-1;q>=0;q--){v1=""+r[2].charAt(q)+v1;if(++i==fmt.i_len&&q>0){v1=fmt.i_sep+v1;i=0}}v0+=v1}else{v0+=r[2]}if(fmt.d_len!==false){if(r[4]==null){r[4]=""}while(r[4].length11?"pm":"am");case"%A":return(g.getHours()>11?"PM":"AM");case"%%":return"%";case"%u":return g.getMilliseconds();case"%P":if(window.dhx4.temp_calendar!=null&&window.dhx4.temp_calendar.tz!=null){return window.dhx4.temp_calendar.tz}var n=g.getTimezoneOffset();var l=Math.abs(Math.floor(n/60));var j=Math.abs(n)-l*60;return(n>0?"-":"+")+f(l)+":"+f(j);default:return k}};var d=String(e||window.dhx4.dateFormat).replace(/%[a-zA-Z]/g,c)}return(d||String(g))};window.dhx4.str2date=function(h,x,B){if(x==null||typeof(x)=="undefined"){x=window.dhx4.dateFormat[window.dhx4.dateLang]}if(B==null||typeof(B)=="undefined"){B=window.dhx4.dateStrings[window.dhx4.dateLang]}x=x.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\\:|]/g,"\\$&");var A=[];var m=[];x=x.replace(/%[a-z]/gi,function(e){switch(e){case"%d":case"%m":case"%y":case"%h":case"%H":case"%i":case"%s":m.push(e);return"(\\d{2})";case"%D":case"%l":case"%M":case"%F":m.push(e);return"([a-zéûä\u0430-\u044F\u0451]{1,})";case"%j":case"%n":case"%g":case"%G":m.push(e);return"(\\d{1,2})";case"%Y":m.push(e);return"(\\d{4})";case"%a":m.push(e);return"([a|p]m)";case"%A":m.push(e);return"([A|P]M)";case"%u":m.push(e);return"(\\d{1,6})";case"%P":m.push(e);return"([+-]\\d{1,2}:\\d{1,2})"}return e});var C=new RegExp(x,"i");var n=h.match(C);if(n==null||n.length-1!=m.length){return"Invalid Date"}for(var c=1;c=0){a.setMonth(j)}break;case"%y":if(!isNaN(A[c])){var y=Number(A[c]);a.setFullYear(y+(y>50?1900:2000))}break;case"%g":case"%h":if(!isNaN(A[c])){var y=Number(A[c]);if(y<=12&&y>=0){a.setHours(y+(s("pm",A)>=0?(y==12?0:12):(y==12?-12:0)))}}break;case"%P":if(window.dhx4.temp_calendar!=null){window.dhx4.temp_calendar.tz=A[c]}break}}return a}}if(typeof(window.dhx4.ajax)=="undefined"){window.dhx4.ajax={cache:false,method:"get",parse:function(a){if(typeof a!=="string"){return a}a=a.replace(/^[\s]+/,"");if(window.DOMParser&&!dhx4.isIE){var c=(new window.DOMParser()).parseFromString(a,"text/xml")}else{if(window.ActiveXObject!==window.undefined){var c=new window.ActiveXObject("Microsoft.XMLDOM");c.async="false";c.loadXML(a)}}return c},xmltop:function(a,f,d){if(typeof f.status=="undefined"||f.status<400){xml=(!f.responseXML)?dhx4.ajax.parse(f.responseText||f):(f.responseXML||f);if(xml&&xml.documentElement!==null){try{if(!xml.getElementsByTagName("parsererror").length){return xml.getElementsByTagName(a)[0]}}catch(c){}}}if(d!==-1){dhx4.callEvent("onLoadXMLError",["Incorrect XML",arguments[1],d])}return document.createElement("DIV")},xpath:function(d,a){if(!a.nodeName){a=a.responseXML||a}if(dhx4.isIE){try{return a.selectNodes(d)||[]}catch(g){return[]}}else{var f=[];var h;var c=(a.ownerDocument||a).evaluate(d,a,null,XPathResult.ANY_TYPE,null);while(h=c.iterateNext()){f.push(h)}return f}},query:function(a){return dhx4.ajax._call((a.method||"GET"),a.url,a.data||"",(a.async||true),a.callback,null,a.headers)},get:function(a,c){return this._call("GET",a,null,true,c)},getSync:function(a){return this._call("GET",a,null,false)},put:function(c,a,d){return this._call("PUT",c,a,true,d)},del:function(c,a,d){return this._call("DELETE",c,a,true,d)},post:function(c,a,d){if(arguments.length==1){a=""}else{if(arguments.length==2&&(typeof(a)=="function"||typeof(window[a])=="function")){d=a;a=""}else{a=String(a)}}return this._call("POST",c,a,true,d)},postSync:function(c,a){a=(a==null?"":String(a));return this._call("POST",c,a,false)},getLong:function(a,c){this._call("GET",a,null,true,c,{url:a})},postLong:function(c,a,d){if(arguments.length==2&&(typeof(a)=="function"||typeof(window[a]))){d=a;a=""}this._call("POST",c,a,true,d,{url:c,postData:a})},_call:function(c,d,e,j,l,p,g){if(typeof e==="object"){var h=[];for(var m in e){h.push(m+"="+encodeURIComponent(e[m]))}e=h.join("&")}var f=dhx.promise.defer();var o=(window.XMLHttpRequest&&!dhx4.isIE?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"));var k=(navigator.userAgent.match(/AppleWebKit/)!=null&&navigator.userAgent.match(/Qt/)!=null&&navigator.userAgent.match(/Safari/)!=null);if(j==true){o.onreadystatechange=function(){if((o.readyState==4)||(k==true&&o.readyState==3)){if(o.status!=200||o.responseText==""){f.reject(o);if(!dhx4.callEvent("onAjaxError",[{xmlDoc:o,filePath:d,async:j}])){return}}window.setTimeout(function(){if(typeof(l)=="function"){try{l.apply(window,[{xmlDoc:o,filePath:d,async:j}])}catch(a){f.reject(a)}f.resolve(o.responseText)}if(p!=null){if(typeof(p.postData)!="undefined"){dhx4.ajax.postLong(p.url,p.postData,l)}else{dhx4.ajax.getLong(p.url,l)}}l=null;o=null},1)}}}if(c=="GET"){d+=this._dhxr(d)}o.open(c,d,j);if(g!=null){for(var n in g){o.setRequestHeader(n,g[n])}}else{if(c=="POST"||c=="PUT"||c=="DELETE"){o.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}else{if(c=="GET"){e=null}}}o.setRequestHeader("X-Requested-With","XMLHttpRequest");o.send(e);if(j!=true){if((o.readyState==4)||(k==true&&o.readyState==3)){if(o.status!=200||o.responseText==""){dhx4.callEvent("onAjaxError",[{xmlDoc:o,filePath:d,async:j}])}}}f.xmlDoc=o;f.filePath=d;f.async=j;return f},_dhxr:function(a,c){if(this.cache!=true){if(a.match(/^[\?\&]$/)==null){a=(a.indexOf("?")>=0?"&":"?")}if(typeof(c)=="undefined"){c=true}return a+"dhxr"+new Date().getTime()+(c==true?"=1":"")}return""}}}if(typeof(window.dhx4._enableDataLoading)=="undefined"){window.dhx4._enableDataLoading=function(h,d,g,f,j){if(j=="clear"){for(var c in h._dhxdataload){h._dhxdataload[c]=null;delete h._dhxdataload[c]}h._loadData=null;h._dhxdataload=null;h.load=null;h.loadStruct=null;h=null;return}h._dhxdataload={initObj:d,xmlToJson:g,xmlRootTag:f,onBeforeXLS:null};h._loadData=function(p,q,r){if(arguments.length==2){r=q;q=null}var o=null;if(arguments.length==3){r=arguments[2]}this.callEvent("onXLS",[]);if(typeof(p)=="string"){var n=p.replace(/^\s{1,}/,"").replace(/\s{1,}$/,"");var v=new RegExp("^<"+this._dhxdataload.xmlRootTag);if(v.test(n.replace(/^<\?xml[^\?]*\?>\s*/,""))){o=dhx4.ajax.parse(p);if(o!=null){o=this[this._dhxdataload.xmlToJson].apply(this,[o])}}if(o==null&&(n.match(/^[\s\S]*{[.\s\S]*}[\s\S]*$/)!=null||n.match(/^[\s\S]*\[[.\s\S]*\][\s\S]*$/)!=null)){o=dhx4.s2j(n)}if(o==null){var m=[];if(typeof(this._dhxdataload.onBeforeXLS)=="function"){var n=this._dhxdataload.onBeforeXLS.apply(this,[p]);if(n!=null&&typeof(n)=="object"){if(n.url!=null){p=n.url}if(n.params!=null){for(var s in n.params){m.push(s+"="+encodeURIComponent(n.params[s]))}}}}var u=this;var l=function(a){var k=null;if((a.xmlDoc.getResponseHeader("Content-Type")||"").search(/xml/gi)>=0||(a.xmlDoc.responseText.replace(/^\s{1,}/,"")).match(/^0?(p.indexOf("?")>0?"&":"?")+m:""),l)}}return}}else{if(typeof(p.documentElement)=="object"||(typeof(p.tagName)!="undefined"&&typeof(p.getElementsByTagName)!="undefined"&&p.getElementsByTagName(this._dhxdataload.xmlRootTag).length>0)){o=this[this._dhxdataload.xmlToJson].apply(this,[p])}else{o=window.dhx4._copyObj(p)}}if(o!=null){this[this._dhxdataload.initObj].apply(this,[o])}this.callEvent("onXLE",[]);if(r!=null){if(typeof(r)=="function"){r.apply(this,[])}else{if(typeof(window[r])=="function"){window[r].apply(this,[])}}r=null}};if(j!=null){var e={struct:"loadStruct",data:"load"};for(var c in j){if(j[c]==true){h[e[c]]=function(){return this._loadData.apply(this,arguments)}}}}h=null}}if(typeof(window.dhx4._eventable)=="undefined"){window.dhx4._eventable=function(a,c){if(c=="clear"){a.detachAllEvents();a.dhxevs=null;a.attachEvent=null;a.detachEvent=null;a.checkEvent=null;a.callEvent=null;a.detachAllEvents=null;a=null;return}a.dhxevs={data:{}};a.attachEvent=function(d,f){d=String(d).toLowerCase();if(!this.dhxevs.data[d]){this.dhxevs.data[d]={}}var e=window.dhx4.newId();this.dhxevs.data[d][e]=f;return e};a.detachEvent=function(g){for(var e in this.dhxevs.data){var f=0;for(var d in this.dhxevs.data[e]){if(d==g){this.dhxevs.data[e][d]=null;delete this.dhxevs.data[e][d]}else{f++}}if(f==0){this.dhxevs.data[e]=null;delete this.dhxevs.data[e]}}};a.checkEvent=function(d){d=String(d).toLowerCase();return(this.dhxevs.data[d]!=null)};a.callEvent=function(e,g){e=String(e).toLowerCase();if(this.dhxevs.data[e]==null){return true}var f=true;for(var d in this.dhxevs.data[e]){f=this.dhxevs.data[e][d].apply(this,g)&&f}return f};a.detachAllEvents=function(){for(var e in this.dhxevs.data){for(var d in this.dhxevs.data[e]){this.dhxevs.data[e][d]=null;delete this.dhxevs.data[e][d]}this.dhxevs.data[e]=null;delete this.dhxevs.data[e]}};a=null};dhx4._eventable(dhx4)}if(!window.dhtmlxValidation){dhtmlxValidation=function(){};dhtmlxValidation.prototype={isEmpty:function(a){return a==""},isNotEmpty:function(a){return(a instanceof Array?a.length>0:!a=="")},isValidBoolean:function(a){return !!a.toString().match(/^(0|1|true|false)$/)},isValidEmail:function(a){return !!a.toString().match(/(^[a-z0-9]([0-9a-z\-_\.]*)@([0-9a-z_\-\.]*)([.][a-z]{3})$)|(^[a-z]([0-9a-z_\.\-]*)@([0-9a-z_\-\.]*)(\.[a-z]{2,5})$)/i)},isValidInteger:function(a){return !!a.toString().match(/(^-?\d+$)/)},isValidNumeric:function(a){return !!a.toString().match(/(^-?\d\d*[\.|,]\d*$)|(^-?\d\d*$)|(^-?[\.|,]\d\d*$)/)},isValidAplhaNumeric:function(a){return !!a.toString().match(/^[_\-a-z0-9]+$/gi)},isValidDatetime:function(c){var a=c.toString().match(/^(\d{4})-(\d{2})-(\d{2})\s(\d{2}):(\d{2}):(\d{2})$/);return a&&!!(a[1]<=9999&&a[2]<=12&&a[3]<=31&&a[4]<=59&&a[5]<=59&&a[6]<=59)||false},isValidDate:function(a){var c=a.toString().match(/^(\d{4})-(\d{2})-(\d{2})$/);return c&&!!(c[1]<=9999&&c[2]<=12&&c[3]<=31)||false},isValidTime:function(c){var a=c.toString().match(/^(\d{1,2}):(\d{1,2}):(\d{1,2})$/);return a&&!!(a[1]<=24&&a[2]<=59&&a[3]<=59)||false},isValidIPv4:function(a){var c=a.toString().match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/);return c&&!!(c[1]<=255&&c[2]<=255&&c[3]<=255&&c[4]<=255)||false},isValidCurrency:function(a){return a.toString().match(/^\$?\s?\d+?([\.,\,]?\d+)?\s?\$?$/)&&true||false},isValidSSN:function(a){return a.toString().match(/^\d{3}\-?\d{2}\-?\d{4}$/)&&true||false},isValidSIN:function(a){return a.toString().match(/^\d{9}$/)&&true||false}};dhtmlxValidation=new dhtmlxValidation()}if(typeof(window.dhtmlx)=="undefined"){window.dhtmlx={extend:function(d,c){for(var e in c){if(!d[e]){d[e]=c[e]}}return d},extend_api:function(a,e,d){var c=window[a];if(!c){return}window[a]=function(h){if(h&&typeof h=="object"&&!h.tagName){var g=c.apply(this,(e._init?e._init(h):arguments));for(var f in dhtmlx){if(e[f]){this[e[f]](dhtmlx[f])}}for(var f in h){if(e[f]){this[e[f]](h[f])}else{if(f.indexOf("on")===0){this.attachEvent(f,h[f])}}}}else{var g=c.apply(this,arguments)}if(e._patch){e._patch(this)}return g||this};window[a].prototype=c.prototype;if(d){dhtmlx.extend(window[a].prototype,d)}},url:function(a){if(a.indexOf("?")!=-1){return"&"}else{return"?"}}}}function dhtmlDragAndDropObject(){if(window.dhtmlDragAndDrop){return window.dhtmlDragAndDrop}this.lastLanding=0;this.dragNode=0;this.dragStartNode=0;this.dragStartObject=0;this.tempDOMU=null;this.tempDOMM=null;this.waitDrag=0;window.dhtmlDragAndDrop=this;return this}dhtmlDragAndDropObject.prototype.removeDraggableItem=function(a){a.onmousedown=null;a.dragStarter=null;a.dragLanding=null};dhtmlDragAndDropObject.prototype.addDraggableItem=function(a,c){a.onmousedown=this.preCreateDragCopy;a.dragStarter=c;this.addDragLanding(a,c)};dhtmlDragAndDropObject.prototype.addDragLanding=function(a,c){a.dragLanding=c};dhtmlDragAndDropObject.prototype.preCreateDragCopy=function(a){if((a||window.event)&&(a||event).button==2){return}if(window.dhtmlDragAndDrop.waitDrag){window.dhtmlDragAndDrop.waitDrag=0;document.body.onmouseup=window.dhtmlDragAndDrop.tempDOMU;document.body.onmousemove=window.dhtmlDragAndDrop.tempDOMM;return false}if(window.dhtmlDragAndDrop.dragNode){window.dhtmlDragAndDrop.stopDrag(a)}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;window.dhtmlDragAndDrop.downtime=new Date().valueOf();if((a)&&(a.preventDefault)){a.preventDefault();return false}return false};dhtmlDragAndDropObject.prototype.callDrag=function(d){if(!d){d=window.event}dragger=window.dhtmlDragAndDrop;if((new Date()).valueOf()-dragger.downtime<100){return}if(!dragger.dragNode){if(dragger.waitDrag){dragger.dragNode=dragger.dragStartObject._createDragNode(dragger.dragStartNode,d);if(!dragger.dragNode){return dragger.stopDrag()}dragger.dragNode.onselectstart=function(){return false};dragger.gldragNode=dragger.dragNode;document.body.appendChild(dragger.dragNode);document.body.onmouseup=dragger.stopDrag;dragger.waitDrag=0;dragger.dragNode.pWindow=window;dragger.initFrameRoute()}else{return dragger.stopDrag(d,true)}}if(dragger.dragNode.parentNode!=window.document.body&&dragger.gldragNode){var a=dragger.gldragNode;if(dragger.gldragNode.old){a=dragger.gldragNode.old}a.parentNode.removeChild(a);var c=dragger.dragNode.pWindow;if(a.pWindow&&a.pWindow.dhtmlDragAndDrop.lastLanding){a.pWindow.dhtmlDragAndDrop.lastLanding.dragLanding._dragOut(a.pWindow.dhtmlDragAndDrop.lastLanding)}if(_isIE){var g=document.createElement("Div");g.innerHTML=dragger.dragNode.outerHTML;dragger.dragNode=g.childNodes[0]}else{dragger.dragNode=dragger.dragNode.cloneNode(true)}dragger.dragNode.pWindow=window;dragger.gldragNode.old=dragger.dragNode;document.body.appendChild(dragger.dragNode);c.dhtmlDragAndDrop.dragNode=dragger.dragNode}dragger.dragNode.style.left=d.clientX+15+(dragger.fx?dragger.fx*(-1):0)+(document.body.scrollLeft||document.documentElement.scrollLeft)+"px";dragger.dragNode.style.top=d.clientY+3+(dragger.fy?dragger.fy*(-1):0)+(document.body.scrollTop||document.documentElement.scrollTop)+"px";if(!d.srcElement){var f=d.target}else{f=d.srcElement}dragger.checkLanding(f,d)};dhtmlDragAndDropObject.prototype.calculateFramePosition=function(f){if(window.name){var d=parent.frames[window.name].frameElement.offsetParent;var e=0;var c=0;while(d){e+=d.offsetLeft;c+=d.offsetTop;d=d.offsetParent}if((parent.dhtmlDragAndDrop)){var a=parent.dhtmlDragAndDrop.calculateFramePosition(1);e+=a.split("_")[0]*1;c+=a.split("_")[1]*1}if(f){return e+"_"+c}else{this.fx=e}this.fy=c}return"0_0"};dhtmlDragAndDropObject.prototype.checkLanding=function(c,a){if((c)&&(c.dragLanding)){if(this.lastLanding){this.lastLanding.dragLanding._dragOut(this.lastLanding)}this.lastLanding=c;this.lastLanding=this.lastLanding.dragLanding._dragIn(this.lastLanding,this.dragStartNode,a.clientX,a.clientY,a);this.lastLanding_scr=(_isIE?a.srcElement:a.target)}else{if((c)&&(c.tagName!="BODY")){this.checkLanding(c.parentNode,a)}else{if(this.lastLanding){this.lastLanding.dragLanding._dragOut(this.lastLanding,a.clientX,a.clientY,a)}this.lastLanding=0;if(this._onNotFound){this._onNotFound()}}}};dhtmlDragAndDropObject.prototype.stopDrag=function(c,d){dragger=window.dhtmlDragAndDrop;if(!d){dragger.stopFrameRoute();var a=dragger.lastLanding;dragger.lastLanding=null;if(a){a.dragLanding._drag(dragger.dragStartNode,dragger.dragStartObject,a,(_isIE?event.srcElement:c.target))}}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(d){if(d){window.dhtmlDragAndDrop.stopDrag(1,1)}for(var a=0;a-1){_isChrome=true}if((navigator.userAgent.indexOf("Safari")!=-1)||(navigator.userAgent.indexOf("Konqueror")!=-1)){_KHTMLrv=parseFloat(navigator.userAgent.substr(navigator.userAgent.indexOf("Safari")+7,5));if(_KHTMLrv>525){_isFF=true;_FFrv=1.9}else{_isKHTML=true}}else{if(navigator.userAgent.indexOf("Opera")!=-1){_isOpera=true;_OperaRv=parseFloat(navigator.userAgent.substr(navigator.userAgent.indexOf("Opera")+6,3))}else{if(navigator.appName.indexOf("Microsoft")!=-1){_isIE=true;if((navigator.appVersion.indexOf("MSIE 8.0")!=-1||navigator.appVersion.indexOf("MSIE 9.0")!=-1||navigator.appVersion.indexOf("MSIE 10.0")!=-1||document.documentMode>7)&&document.compatMode!="BackCompat"){_isIE=8}}else{if(navigator.appName=="Netscape"&&navigator.userAgent.indexOf("Trident")!=-1){_isIE=8}else{_isFF=true;_FFrv=parseFloat(navigator.userAgent.split("rv:")[1])}}}}if(typeof(window.dhtmlxEvent)=="undefined"){function dhtmlxEvent(c,d,a){if(c.addEventListener){c.addEventListener(d,a,false)}else{if(c.attachEvent){c.attachEvent("on"+d,a)}}}}if(dhtmlxEvent.touchDelay==null){dhtmlxEvent.touchDelay=2000}if(typeof(dhtmlxEvent.initTouch)=="undefined"){dhtmlxEvent.initTouch=function(){var e;var f;var c,a;dhtmlxEvent(document.body,"touchstart",function(g){f=g.touches[0].target;c=g.touches[0].clientX;a=g.touches[0].clientY;e=window.setTimeout(d,dhtmlxEvent.touchDelay)});function d(){if(f){var g=document.createEvent("HTMLEvents");g.initEvent("dblclick",true,true);f.dispatchEvent(g);e=f=null}}dhtmlxEvent(document.body,"touchmove",function(g){if(e){if(Math.abs(g.touches[0].clientX-c)>50||Math.abs(g.touches[0].clientY-a)>50){window.clearTimeout(e);e=f=false}}});dhtmlxEvent(document.body,"touchend",function(g){if(e){window.clearTimeout(e);e=f=false}});dhtmlxEvent.initTouch=function(){}}}(function(c){var d=typeof setImmediate!=="undefined"?setImmediate:function(f){setTimeout(f,0)};function e(g,h){var f=this;f.promise=f;f.state="pending";f.val=null;f.fn=g||null;f.er=h||null;f.next=[]}e.prototype.resolve=function(g){var f=this;if(f.state==="pending"){f.val=g;f.state="resolving";d(function(){f.fire()})}};e.prototype.reject=function(g){var f=this;if(f.state==="pending"){f.val=g;f.state="rejecting";d(function(){f.fire()})}};e.prototype.then=function(g,j){var f=this;var h=new e(g,j);f.next.push(h);if(f.state==="resolved"){h.resolve(f.val)}if(f.state==="rejected"){h.reject(f.val)}return h};e.prototype.fail=function(f){return this.then(null,f)};e.prototype.finish=function(h){var f=this;f.state=h;if(f.state==="resolved"){for(var g=0;g=0&&document.compatMode=="BackCompat"),live_id:window.dhx4.newId(),tags:{root:"menu",item:"item",text_ext:"itemtext",userdata:"userdata",tooltip:"tooltip",hotkey:"hotkey",href:"href"},autoload:{},hide_tm:{},top_mode:true,top_tmtime:200,v_enabled:false,v:{x1:null,x2:null,y1:null,y2:null},dir_toplv:"bottom",dir_sublv:"right",auto_overflow:false,overflow_limit:0,of_utm:null,of_utime:20,of_ustep:3,of_dtm:null,of_dtime:20,of_dstep:3,of_ah:{dhx_skyblue:24,dhx_web:25,dhx_terrace:27,material:25},of_ih:{dhx_skyblue:24,dhx_web:24,dhx_terrace:24,material:30},tm_sec:400,tm_handler:null,dload:false,dload_url:"",dload_icon:false,dload_params:{action:"loadMenu"},dload_pid:"parentId",tl_botmarg:1,tl_rmarg:0,tl_ofsleft:1,context:false,ctx_zoneid:false,ctx_autoshow:true,ctx_autohide:true,ctx_hideall:true,ctx_zones:{},ctx_baseid:null,selected_sub:[],opened_poly:[]};if(typeof(f)=="object"&&f!=null&&typeof(f.tagName)=="undefined"){if(f.icons_path!=null||f.icon_path!=null){this.conf.icons_path=(f.icons_path||f.icon_path)}if(f.skin!=null){this.conf.skin=f.skin}if(f.visible_area){this.conf.v_enabled=true;this.conf.v={x1:f.visible_area.x1,x2:f.visible_area.x2,y1:f.visible_area.y1,y2:f.visible_area.y2}}for(var d in {json:1,xml:1,items:1,top_text:1,align:1,open_mode:1,overflow:1,dynamic:1,dynamic_icon:1,context:1,onload:1,onclick:1,oncheckboxclick:1,onradioclick:1,iconset:1}){if(f[d]!=null){this.conf.autoload[d]=f[d]}}f=f.parent}if(f==null){this.base=document.body}else{var c=(typeof(f)=="string"?document.getElementById(f):f);if(c!=null){this.base=c;if(!this.base.id){this.base.id="menuBaseId_"+new Date().getTime()}this.base.className+=" dhtmlxMenu_"+this.conf.skin+"_Middle dir_left";this.base._autoSkinUpdate=true;if(this.base.oncontextmenu){this.base._oldContextMenuHandler=this.base.oncontextmenu}this.conf.ctx_baseid=this.base;this.base.onselectstart=function(a){a=a||event;if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}return false};this.base.oncontextmenu=function(a){a=a||event;if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}return false}}else{this.base=document.body}}this.idPrefix="";this.topId="dhxWebMenuTopId";this.idPull={};this.itemPull={};this.userData={};this.radio={};this.setSkin=function(j){var k=this.conf.skin;this.conf.skin=j;switch(this.conf.skin){case"dhx_skyblue":case"dhx_web":this.conf.tl_botmarg=2;this.conf.tl_rmarg=1;this.conf.tl_ofsleft=1;break;case"dhx_terrace":case"material":this.conf.tl_botmarg=0;this.conf.tl_rmarg=0;this.conf.tl_ofsleft=0;break}if(this.base._autoSkinUpdate){this.base.className=this.base.className.replace("dhtmlxMenu_"+k+"_Middle","")+" dhtmlxMenu_"+this.conf.skin+"_Middle"}for(var h in this.idPull){this.idPull[h].className=String(this.idPull[h].className).replace(k,this.conf.skin)}};this.setSkin(this.conf.skin);this._addSubItemToSelected=function(j,h){var a=true;for(var k=0;kthis.conf.v.y2-this.conf.v.y1){var s=Math.max(Math.floor((this.conf.v.y2-this.conf.v.y1-this.conf.of_ah[this.conf.skin]*2)/this.conf.of_ih[this.conf.skin]),1);this.conf.overflow_limit=s}else{this.conf.overflow_limit=0;if(this.idPull["arrowup_"+B]!=null){this._removeUpArrow(String(B).replace(this.idPrefix,""))}if(this.idPull["arrowdown_"+B]!=null){this._removeDownArrow(String(B).replace(this.idPrefix,""))}}}if(this.conf.overflow_limit>0&&this.conf.overflow_limit0&&this.conf.overflow_limitA&&!this.conf.rtl){p=a-r+2}if(pv&&this.conf.v.y2!=null){o=Math.max(H+l-E+2,(this.conf.v_enabled?this.conf.v.y1+2:2));if(this.conf.context&&this.idPrefix+this.topId==B&&u!=null){o=o-2}if(this.itemPull[B]!=null&&!this.conf.context){if(this.itemPull[B]["parent"]==this.idPrefix+this.topId){o=o-this.base.offsetHeight}}}this.idPull[C].style.left=p+"px";this.idPull[C].style.top=o+"px";if(typeof(this._menuEffect)!="undefined"&&this._menuEffect!==false){this._showPolygonEffect(C)}else{this.idPull[C].style.visibility="";if(this.conf.overflow_limit>0&&this.conf.overflow_limit0){this.conf.opened_poly.pop()}var a=this._getSubItemToDeselectByPolygon(k);this._removeSubItemFromSelected(-1,-1);for(var h=0;h0){a=h}}}return a};this._getMenuNodes=function(k){var h=new Array;for(var j in this.itemPull){if(this.itemPull[j]["parent"]==k){h[h.length]=j}}return h};this._genStr=function(a){var h="dhxId_";var k="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";for(var j=0;j0){e.conf.opened_poly.pop()}for(var a=0;a0)&&(!this.itemPull[c]["complex"])){this._updateItemComplexState(c,true,false)}if((a==0)&&(this.itemPull[c]["complex"])){this._updateItemComplexState(c,false,false)}}};dhtmlXMenuObject.prototype._updateItemComplexState=function(f,d,e){if((!this.conf.context)&&(this._getItemLevelType(f.replace(this.idPrefix,""))=="TopLevel")){this.itemPull[f]["complex"]=d;return}if((this.idPull[f]==null)||(this.itemPull[f]==null)){return}this.itemPull[f]["complex"]=d;if(f==this.idPrefix+this.topId){return}var a=null;var c=this.idPull[f].childNodes[this.conf.rtl?0:2];if(c.childNodes[0]){if(String(c.childNodes[0].className).search("complex_arrow")===0){a=c.childNodes[0]}}if(this.itemPull[f]["complex"]){if(a==null){a=document.createElement("DIV");a.className="complex_arrow";a.id="arrow_"+f;while(c.childNodes.length>0){c.removeChild(c.childNodes[0])}c.appendChild(a)}if(this.conf.dload&&(this.itemPull[f].loaded=="get")&&this.conf.dload_icon){if(a.className!="complex_arrow_loading"){a.className="complex_arrow_loading"}}else{a.className="complex_arrow"}return}if((!this.itemPull[f]["complex"])&&(a!=null)){c.removeChild(a);if(this.itemPull[f]["hotkey_backup"]!=null&&this.setHotKey){this.setHotKey(f.replace(this.idPrefix,""),this.itemPull[f]["hotkey_backup"])}}};dhtmlXMenuObject.prototype._getItemLevelType=function(a){return(this.itemPull[this.idPrefix+a]["parent"]==this.idPrefix+this.topId?"TopLevel":"SubLevelArea")};dhtmlXMenuObject.prototype.setIconsPath=function(a){this.conf.icons_path=a};dhtmlXMenuObject.prototype._updateItemImage=function(d,f){d=this.idPrefix+d;var k=this.itemPull[d]["type"];if(k=="checkbox"||k=="radio"){return}var g=(this.itemPull[d]["parent"]==this.idPrefix+this.topId&&!this.conf.context);var h=null;if(g){for(var a=0;a0){if(h!=null){if(this.conf.icons_css==true){h.className=this.conf.icons_path+m}else{h.src=this.conf.icons_path+m}}else{if(g){if(this.conf.icons_css==true){var h=document.createElement("i");h.className=this.conf.icons_path+m}else{var h=document.createElement("IMG");h.className="dhtmlxMenu_TopLevel_Item_Icon";h.src=this.conf.icons_path+m;h.border="0";h.id="image_"+d}if(!this.conf.rtl&&this.idPull[d].childNodes.length>0){this.idPull[d].insertBefore(h,this.idPull[d].childNodes[0])}else{this.idPull[d].appendChild(h)}}else{if(this.conf.icons_css==true){var l=this.idPull[d].childNodes[this.conf.rtl?2:0];l.innerHTML=""}else{var h=document.createElement("IMG");h.className="sub_icon";h.src=this.conf.icons_path+m;h.border="0";h.id="image_"+d;var l=this.idPull[d].childNodes[this.conf.rtl?2:0];while(l.childNodes.length>0){l.removeChild(l.childNodes[0])}l.appendChild(h)}}}}else{if(h!=null){if(g){h.parentNode.removeChild(h);h=null}else{var c=h.parentNode;c.removeChild(h);c.innerHTML=" ";c=h=null}}}};dhtmlXMenuObject.prototype._getAllParents=function(g){var d=new Array();for(var c in this.itemPull){if(this.itemPull[c]["parent"]==g){d[d.length]=this.itemPull[c]["id"];if(this.itemPull[c]["complex"]){var e=this._getAllParents(this.itemPull[c]["id"]);for(var f=0;f0){a.title=this.itemPull[j]["tip"]}if((this.itemPull[j]["imgen"]!="")||(this.itemPull[j]["imgdis"]!="")){var e=this.itemPull[j][(this.itemPull[j]["state"]=="enabled")?"imgen":"imgdis"];if(e){if(this.conf.icons_css==true){var d=document.createElement("i");d.className=this.conf.icons_path+e;if(a.childNodes.length>0&&!this.conf.rtl){a.insertBefore(d,a.childNodes[0])}else{a.appendChild(d)}}else{var c=document.createElement("IMG");c.border="0";c.id="image_"+j;c.src=this.conf.icons_path+e;c.className="dhtmlxMenu_TopLevel_Item_Icon";if(a.childNodes.length>0&&!this.conf.rtl){a.insertBefore(c,a.childNodes[0])}else{a.appendChild(c)}}}}a.onselectstart=function(k){k=k||event;if(k.preventDefault){k.preventDefault()}else{k.returnValue=false}return false};a.oncontextmenu=function(k){k=k||event;if(k.preventDefault){k.preventDefault()}else{k.returnValue=false}return false};if(!this.cont){this.cont=document.createElement("DIV");this.cont.dir="ltr";this.cont.className=(this.conf.align=="right"?"align_right":"align_left");this.base.appendChild(this.cont)}if(h!=null){h++;if(h<0){h=0}if(h>this.cont.childNodes.length-1){h=null}}if(h!=null){this.cont.insertBefore(a,this.cont.childNodes[h])}else{this.cont.appendChild(a)}this.idPull[a.id]=a;if(this.itemPull[j]["complex"]&&(!this.conf.dload)){this._addSubMenuPolygon(this.itemPull[j]["id"],this.itemPull[j]["id"])}a.onmouseover=function(){if(g.conf.mode=="web"){window.clearTimeout(g.conf.tm_handler)}var k=g._getSubItemToDeselectByPolygon("parent");g._removeSubItemFromSelected(-1,-1);for(var m=0;m
';var d=document.createElement("TABLE");d.className="dhtmlxMebu_SubLevelArea_Tbl";d.cellSpacing=0;d.cellPadding=0;d.border=0;var a=document.createElement("TBODY");d.appendChild(a);c.childNodes[1].appendChild(d);c.tbl=d;c.tbd=a;this.idPull[c.id]=c;if(this.sxDacProc!=null){this.idPull["sxDac_"+e]=new this.sxDacProc(c,c.className);if(window.dhx4.isIE){this.idPull["sxDac_"+e]._setSpeed(this.dacSpeedIE);this.idPull["sxDac_"+e]._setCustomCycle(this.dacCyclesIE)}else{this.idPull["sxDac_"+e]._setSpeed(this.dacSpeed);this.idPull["sxDac_"+e]._setCustomCycle(this.dacCycles)}}return c};dhtmlXMenuObject.prototype._renderSublevelItem=function(a,l){var j=this;var k=document.createElement("TR");k.className=(this.itemPull[a]["state"]=="enabled"?"sub_item":"sub_item_dis");var h=document.createElement("TD");h.className="sub_item_icon";var p=this.itemPull[a]["type"];var m=this.itemPull[a][(this.itemPull[a]["state"]=="enabled"?"imgen":"imgdis")];if(m!=""){if(p=="checkbox"||p=="radio"){var f=document.createElement("DIV");f.id="image_"+this.itemPull[a]["id"];f.className="sub_icon "+m;h.appendChild(f)}if(!(p=="checkbox"||p=="radio")){if(this.conf.icons_css==true){h.innerHTML=""}else{var f=document.createElement("IMG");f.id="image_"+this.itemPull[a]["id"];f.className="sub_icon";f.src=this.conf.icons_path+m;h.appendChild(f)}}}else{h.innerHTML=" "}var g=document.createElement("TD");g.className="sub_item_text";if(this.itemPull[a]["title"]!=""){var o=document.createElement("DIV");o.className="sub_item_text";o.innerHTML=this.itemPull[a]["title"];g.appendChild(o)}else{g.innerHTML=" "}var e=document.createElement("TD");e.className="sub_item_hk";if(this.itemPull[a]["complex"]){var c=document.createElement("DIV");c.className="complex_arrow";c.id="arrow_"+this.itemPull[a]["id"];e.appendChild(c)}else{if(this.itemPull[a]["hotkey"].length>0&&!this.itemPull[a]["complex"]){var d=document.createElement("DIV");d.className="sub_item_hk";d.innerHTML=this.itemPull[a]["hotkey"];e.appendChild(d)}else{e.innerHTML=" "}}k.appendChild(this.conf.rtl?e:h);k.appendChild(g);k.appendChild(this.conf.rtl?h:e);k.id=this.itemPull[a]["id"];k.parent=this.itemPull[a]["parent"];if(this.itemPull[a]["tip"].length>0){k.title=this.itemPull[a]["tip"]}k.onselectstart=function(q){q=q||event;if(q.preventDefault){q.preventDefault()}else{q.returnValue=false}return false};k.onmouseover=function(q){if(j.conf.hide_tm[this.id]){window.clearTimeout(j.conf.hide_tm[this.id])}if(j.conf.mode=="web"){window.clearTimeout(j.conf.tm_handler)}if(!this._visible){j._redistribSubLevelSelection(this.id,this.parent)}this._visible=true};k.onmouseout=function(){if(j.conf.mode=="web"){if(j.conf.tm_handler){window.clearTimeout(j.conf.tm_handler)}j.conf.tm_handler=window.setTimeout(function(){if(j&&j._clearAndHide){j._clearAndHide()}},j.conf.tm_sec,"JavaScript")}var q=this;if(j.conf.hide_tm[this.id]){window.clearTimeout(j.conf.hide_tm[this.id])}j.conf.hide_tm[this.id]=window.setTimeout(function(){q._visible=false},50)};k.onclick=function(r){if(!j.checkEvent("onClick")&&j.itemPull[this.id]["complex"]){return}r=r||event;r.cancelBubble=true;if(r.preventDefault){r.preventDefault()}else{r.returnValue=false}tc=(j.itemPull[this.id]["complex"]?"c":"-");td=(j.itemPull[this.id]["state"]=="enabled"?"-":"d");var q={ctrl:r.ctrlKey,alt:r.altKey,shift:r.shiftKey};switch(j.itemPull[this.id]["type"]){case"checkbox":j._checkboxOnClickHandler(this.id.replace(j.idPrefix,""),tc+td+"n",q);break;case"radio":j._radioOnClickHandler(this.id.replace(j.idPrefix,""),tc+td+"n",q);break;case"item":j._doOnClick(this.id.replace(j.idPrefix,""),tc+td+"n",q);break}return false};var n=this.idPull["polygon_"+this.itemPull[a]["parent"]];if(l!=null){l++;if(l<0){l=0}if(l>n.tbd.childNodes.length-1){l=null}}if(l!=null&&n.tbd.childNodes[l]!=null){n.tbd.insertBefore(k,n.tbd.childNodes[l])}else{n.tbd.appendChild(k)}this.idPull[k.id]=k};dhtmlXMenuObject.prototype._renderSeparator=function(c,h){var a=(this.conf.context?"SubLevelArea":(this.itemPull[c]["parent"]==this.idPrefix+this.topId?"TopLevel":"SubLevelArea"));if(a=="TopLevel"&&this.conf.context){return}var f=this;if(a!="TopLevel"){var g=document.createElement("TR");g.className="sub_sep";var d=document.createElement("TD");d.colSpan="3";g.appendChild(d)}var e=document.createElement("DIV");e.id="separator_"+c;e.className=(a=="TopLevel"?"top_sep":"sub_sep");e.onselectstart=function(k){k=k||event;if(k.preventDefault){k.preventDefault()}else{k.returnValue=false}};e.onclick=function(m){m=m||event;m.cancelBubble=true;var k={ctrl:m.ctrlKey,alt:m.altKey,shift:m.shiftKey};f._doOnClick(this.id.replace("separator_"+f.idPrefix,""),"--s",k)};if(a=="TopLevel"){if(h!=null){h++;if(h<0){h=0}if(this.cont.childNodes[h]!=null){this.cont.insertBefore(e,this.cont.childNodes[h])}else{this.cont.appendChild(e)}}else{var l=this.cont.childNodes[this.cont.childNodes.length-1];if(String(l).search("TopLevel_Text")==-1){this.cont.appendChild(e)}else{this.cont.insertBefore(e,l)}}this.idPull[e.id]=e}else{var j=this.idPull["polygon_"+this.itemPull[c]["parent"]];if(h!=null){h++;if(h<0){h=0}if(h>j.tbd.childNodes.length-1){h=null}}if(h!=null&&j.tbd.childNodes[h]!=null){j.tbd.insertBefore(g,j.tbd.childNodes[h])}else{j.tbd.appendChild(g)}d.appendChild(e);this.idPull[e.id]=g}};dhtmlXMenuObject.prototype.addNewSeparator=function(a,c){c=this.idPrefix+(c!=null?c:this._genStr(24));var d=this.idPrefix+this.getParentId(a);this._addItemIntoGlobalStrorage(c,d,"","separator",false,"","");this._renderSeparator(c,this.getItemPosition(a))};dhtmlXMenuObject.prototype._initObj=function(n,o,h){if(!(n instanceof Array)){h=n.parentId;if(h!=null&&String(h).indexOf(this.idPrefix)!==0){h=this.idPrefix+String(h)}n=n.items}for(var d=0;d0){this.itemPull[n[d].id].complex=true;this._initObj(n[d].items,true,n[d].id)}else{if(this.conf.dload&&n[d].complex==true){this.itemPull[n[d].id].loaded="no"}}this.itemPull[n[d].id].items=null}if(o!==true){if(this.conf.dload==true){if(h==null){this._initTopLevelMenu()}else{this._addSubMenuPolygon(h,h);if(this.conf.selected==h){var m=(this.itemPull[h].parent==this.idPrefix+this.topId);var c=(m&&!this.conf.context?this.conf.dir_toplv:this.conf.dir_sublv);var f=false;if(m&&this.conf.top_mode&&this.conf.mode=="web"&&!this.conf.context){var r=this.idPull[h];if(r._mouseOver==true){var g=this.conf.top_tmtime-(new Date().getTime()-r._dynLoadTM);if(g>1){var l=h;var j=this;r._menuOpenTM=window.setTimeout(function(){j._showPolygon(l,c);j=l=null},g);f=true}}}if(!f){this._showPolygon(h,c)}}this.itemPull[h].loaded="yes";if(this.conf.dload_icon==true){this._updateLoaderIcon(h,false)}}}else{this._init()}}};dhtmlXMenuObject.prototype._xmlToJson=function(g,f){var j=[];if(f==null){var k=g.getElementsByTagName(this.conf.tags.root);if(k==null||(k!=null&&k.length==0)){return{items:[]}}k=k[0]}else{k=g}if(k.getAttribute("parentId")!=null){f=this.idPrefix+k.getAttribute("parentId")}for(var c=0;c0)}for(var l=0;l=0){return}var c=(this.conf.rtl?0:2);if(!this.idPull[e].childNodes[c]){return}if(!this.idPull[e].childNodes[c].childNodes[0]){return}var a=this.idPull[e].childNodes[c].childNodes[0];if(String(a.className).search("complex_arrow")===0){a.className="complex_arrow"+(d?"_loading":"")}};dhtmlXMenuObject.prototype.addNewSibling=function(e,f,a,c,d,j){var h=this.idPrefix+(f!=null?f:this._genStr(24));var g=this.idPrefix+(e!=null?this.getParentId(e):this.topId);this._addItemIntoGlobalStrorage(h,g,a,"item",c,d,j);if((g==this.idPrefix+this.topId)&&(!this.conf.context)){this._renderToplevelItem(h,this.getItemPosition(e))}else{this._renderSublevelItem(h,this.getItemPosition(e))}};dhtmlXMenuObject.prototype.addNewChild=function(h,g,e,a,c,d,f){if(h==null){if(this.conf.context){h=this.topId}else{this.addNewSibling(h,e,a,c,d,f);if(g!=null){this.setItemPosition(e,g)}return}}e=this.idPrefix+(e!=null?e:this._genStr(24));if(this.setHotKey){this.setHotKey(h,"")}h=this.idPrefix+h;this._addItemIntoGlobalStrorage(e,h,a,"item",c,d,f);if(this.idPull["polygon_"+h]==null){this._renderSublevelPolygon(h,h)}this._renderSublevelItem(e,g-1);this._redefineComplexState(h)};dhtmlXMenuObject.prototype.removeItem=function(e,g,f){if(!g){e=this.idPrefix+e}var h=null;if(e!=this.idPrefix+this.topId){if(this.itemPull[e]==null){return}if(this.idPull["polygon_"+e]&&this.idPull["polygon_"+e]._tmShow){window.clearTimeout(this.idPull["polygon_"+e]._tmShow)}var n=this.itemPull[e]["type"];if(n=="separator"){var m=this.idPull["separator_"+e];if(this.itemPull[e]["parent"]==this.idPrefix+this.topId){m.onclick=null;m.onselectstart=null;m.id=null;m.parentNode.removeChild(m)}else{m.childNodes[0].childNodes[0].onclick=null;m.childNodes[0].childNodes[0].onselectstart=null;m.childNodes[0].childNodes[0].id=null;m.childNodes[0].removeChild(m.childNodes[0].childNodes[0]);m.removeChild(m.childNodes[0]);m.parentNode.removeChild(m)}this.idPull["separator_"+e]=null;this.itemPull[e]=null;delete this.idPull["separator_"+e];delete this.itemPull[e];m=null}else{h=this.itemPull[e]["parent"];var m=this.idPull[e];m.onclick=null;m.oncontextmenu=null;m.onmouseover=null;m.onmouseout=null;m.onselectstart=null;m.id=null;while(m.childNodes.length>0){m.removeChild(m.childNodes[0])}m.parentNode.removeChild(m);this.idPull[e]=null;this.itemPull[e]=null;delete this.idPull[e];delete this.itemPull[e];m=null}n=null}for(var k in this.itemPull){if(this.itemPull[k]["parent"]==e){this.removeItem(k,true,true)}}var l=new Array(e);if(h!=null&&!f){if(this.idPull["polygon_"+h]!=null){if(this.idPull["polygon_"+h].tbd.childNodes.length==0){l.push(h);this._updateItemComplexState(h,false,false)}}}for(var c=0;c0){this.idPull[g].insertBefore(d,this.idPull[g].childNodes[0])}else{this.idPull[g].appendChild(d)}}d.innerHTML=this.itemPull[g]["title"]}}else{var d=null;for(var a=0;a0?a:null);this.itemPull[c]["tip"]=a};dhtmlXMenuObject.prototype.getTooltip=function(a){if(this.itemPull[this.idPrefix+a]==null){return null}return this.itemPull[this.idPrefix+a]["tip"]};dhtmlXMenuObject.prototype.setTopText=function(a){if(this.conf.context){return}if(this._topText==null){this._topText=document.createElement("DIV");this._topText.className="dhtmlxMenu_TopLevel_Text_"+(this.conf.rtl?"left":(this.conf.align=="left"?"right":"left"));this.base.appendChild(this._topText)}this._topText.innerHTML=a};dhtmlXMenuObject.prototype.setAlign=function(a){if(this.conf.align==a){return}if(a=="left"||a=="right"){this.conf.align=a;if(this.cont){this.cont.className=(this.conf.align=="right"?"align_right":"align_left")}if(this._topText!=null){this._topText.className="dhtmlxMenu_TopLevel_Text_"+(this.conf.align=="left"?"right":"left")}}};dhtmlXMenuObject.prototype.setHref=function(d,a,c){if(this.itemPull[this.idPrefix+d]==null){return}this.itemPull[this.idPrefix+d]["href_link"]=a;if(c!=null){this.itemPull[this.idPrefix+d]["href_target"]=c}};dhtmlXMenuObject.prototype.clearHref=function(a){if(this.itemPull[this.idPrefix+a]==null){return}delete this.itemPull[this.idPrefix+a]["href_link"];delete this.itemPull[this.idPrefix+a]["href_target"]};dhtmlXMenuObject.prototype.getCircuit=function(c){var a=new Array(c);while(this.getParentId(c)!=this.topId){c=this.getParentId(c);a[a.length]=c}return a.reverse()};dhtmlXMenuObject.prototype._getCheckboxState=function(a){if(this.itemPull[this.idPrefix+a]==null){return null}return this.itemPull[this.idPrefix+a]["checked"]};dhtmlXMenuObject.prototype._setCheckboxState=function(c,a){if(this.itemPull[this.idPrefix+c]==null){return}this.itemPull[this.idPrefix+c]["checked"]=a};dhtmlXMenuObject.prototype._updateCheckboxImage=function(c){if(this.idPull[this.idPrefix+c]==null){return}this.itemPull[this.idPrefix+c]["imgen"]="chbx_"+(this._getCheckboxState(c)?"1":"0");this.itemPull[this.idPrefix+c]["imgdis"]=this.itemPull[this.idPrefix+c]["imgen"];try{this.idPull[this.idPrefix+c].childNodes[(this.conf.rtl?2:0)].childNodes[0].className="sub_icon "+this.itemPull[this.idPrefix+c]["imgen"]}catch(a){}};dhtmlXMenuObject.prototype._checkboxOnClickHandler=function(e,a,c){if(a.charAt(1)=="d"){return}if(this.itemPull[this.idPrefix+e]==null){return}var d=this._getCheckboxState(e);if(this.checkEvent("onCheckboxClick")){if(this.callEvent("onCheckboxClick",[e,d,this.conf.ctx_zoneid,c])){this.setCheckboxState(e,!d)}}else{this.setCheckboxState(e,!d)}if(this.checkEvent("onClick")){this.callEvent("onClick",[e])}};dhtmlXMenuObject.prototype.setCheckboxState=function(c,a){this._setCheckboxState(c,a);this._updateCheckboxImage(c)};dhtmlXMenuObject.prototype.getCheckboxState=function(a){return this._getCheckboxState(a)};dhtmlXMenuObject.prototype.addCheckbox=function(j,e,k,l,m,a,f){if(this.conf.context&&e==this.topId){}else{if(this.itemPull[this.idPrefix+e]==null){return}if(j=="child"&&this.itemPull[this.idPrefix+e]["type"]!="item"){return}}var g="chbx_"+(a?"1":"0");var d=g;if(j=="sibling"){var c=this.idPrefix+(l!=null?l:this._genStr(24));var h=this.idPrefix+this.getParentId(e);this._addItemIntoGlobalStrorage(c,h,m,"checkbox",f,g,d);this.itemPull[c]["checked"]=a;this._renderSublevelItem(c,this.getItemPosition(e))}else{var c=this.idPrefix+(l!=null?l:this._genStr(24));var h=this.idPrefix+e;this._addItemIntoGlobalStrorage(c,h,m,"checkbox",f,g,d);this.itemPull[c]["checked"]=a;if(this.idPull["polygon_"+h]==null){this._renderSublevelPolygon(h,h)}this._renderSublevelItem(c,k-1);this._redefineComplexState(h)}};dhtmlXMenuObject.prototype.setHotKey=function(h,a){h=this.idPrefix+h;if(!(this.itemPull[h]!=null&&this.idPull[h]!=null)){return}if(this.itemPull[h]["parent"]==this.idPrefix+this.topId&&!this.conf.context){return}if(this.itemPull[h]["complex"]){return}var c=this.itemPull[h]["type"];if(!(c=="item"||c=="checkbox"||c=="radio")){return}var g=null;try{if(this.idPull[h].childNodes[this.conf.rtl?0:2].childNodes[0].className=="sub_item_hk"){g=this.idPull[h].childNodes[this.conf.rtl?0:2].childNodes[0]}}catch(f){}if(a.length==0){this.itemPull[h]["hotkey_backup"]=this.itemPull[h]["hotkey"];this.itemPull[h]["hotkey"]="";if(g!=null){g.parentNode.removeChild(g)}}else{this.itemPull[h]["hotkey"]=a;this.itemPull[h]["hotkey_backup"]=null;if(g==null){g=document.createElement("DIV");g.className="sub_item_hk";var d=this.idPull[h].childNodes[this.conf.rtl?0:2];while(d.childNodes.length>0){d.removeChild(d.childNodes[0])}d.appendChild(g)}g.innerHTML=a}};dhtmlXMenuObject.prototype.getHotKey=function(a){if(this.itemPull[this.idPrefix+a]==null){return null}return this.itemPull[this.idPrefix+a]["hotkey"]};dhtmlXMenuObject.prototype._clearAllSelectedSubItemsInPolygon=function(a){var d=this._getSubItemToDeselectByPolygon(a);for(var c=0;c0){var d=false;var f=a.scrollTop-this.conf.of_ustep;if(f<0){d=true;f=0}a.scrollTop=f;if(!d){var c=this;this.conf.of_utm=window.setTimeout(function(){c._doScrollUp(g,false);c=null},this.conf.of_utime)}else{e=true}}else{this._canScrollUp=false;this._checkArrowsState(g)}if(e){this._checkArrowsState(g)}};dhtmlXMenuObject.prototype._doScrollDown=function(g,e){var a=this.idPull["polygon_"+g].childNodes[1];if(this._canScrollDown&&a.scrollTop+a.offsetHeight<=a.scrollHeight){var d=false;var f=a.scrollTop+this.conf.of_dstep;if(f+a.offsetHeight>=a.scrollHeight){d=true;f=a.scrollHeight-a.offsetHeight}a.scrollTop=f;if(!d){var c=this;this.conf.of_dtm=window.setTimeout(function(){c._doScrollDown(g,false);c=null},this.conf.of_dtime)}else{e=true}}else{this._canScrollDown=false;this._checkArrowsState(g)}if(e){this._checkArrowsState(g)}};dhtmlXMenuObject.prototype._countPolygonItems=function(g){var e=0;for(var c in this.itemPull){var d=this.itemPull[c]["parent"];var f=this.itemPull[c]["type"];if(d==this.idPrefix+g&&(f=="item"||f=="radio"||f=="checkbox")){e++}}return e};dhtmlXMenuObject.prototype.setOverflowHeight=function(e){if(e==="auto"){this.conf.overflow_limit=0;this.conf.auto_overflow=true;return}if(this.conf.overflow_limit==0&&e<=0){return}this._clearAndHide();if(this.conf.overflow_limit>=0&&e>0){this.conf.overflow_limit=e;return}if(this.conf.overflow_limit>0&&e<=0){for(var d in this.itemPull){if(this._isArrowExists(d)){var c=String(d).replace(this.idPrefix,"");this._removeUpArrow(c);this._removeDownArrow(c);this.idPull["polygon_"+d].childNodes[1].style.height=""}}this.conf.overflow_limit=0;return}};dhtmlXMenuObject.prototype._getRadioImgObj=function(d){try{var a=this.idPull[this.idPrefix+d].childNodes[(this.conf.rtl?2:0)].childNodes[0]}catch(c){var a=null}return a};dhtmlXMenuObject.prototype._setRadioState=function(e,d){var c=this._getRadioImgObj(e);if(c!=null){var a=this.itemPull[this.idPrefix+e];a.checked=d;a.imgen="rdbt_"+(a.checked?"1":"0");a.imgdis=a.imgen;c.className="sub_icon "+a.imgen}};dhtmlXMenuObject.prototype._radioOnClickHandler=function(e,a,c){if(a.charAt(1)=="d"||this.itemPull[this.idPrefix+e]["group"]==null){return}var d=this.itemPull[this.idPrefix+e]["group"];if(this.checkEvent("onRadioClick")){if(this.callEvent("onRadioClick",[d,this.getRadioChecked(d),e,this.conf.ctx_zoneid,c])){this.setRadioChecked(d,e)}}else{this.setRadioChecked(d,e)}if(this.checkEvent("onClick")){this.callEvent("onClick",[e])}};dhtmlXMenuObject.prototype.getRadioChecked=function(e){var g=null;for(var d=0;d";return a};dhtmlXMenuObject.prototype._readLevel=function(e){var f="";for(var k in this.itemPull){if(this.itemPull[k]["parent"]==e){var c="";var d="";var m="";var j=String(this.itemPull[k]["id"]).replace(this.idPrefix,"");var h="";var l=(this.itemPull[k]["title"]!=""?' text="'+this.itemPull[k]["title"]+'"':"");var g="";if(this.itemPull[k]["type"]=="item"){if(this.itemPull[k]["imgen"]!=""){c=' img="'+this.itemPull[k]["imgen"]+'"'}if(this.itemPull[k]["imgdis"]!=""){d=' imgdis="'+this.itemPull[k]["imgdis"]+'"'}if(this.itemPull[k]["hotkey"]!=""){m=""+this.itemPull[k]["hotkey"]+""}}if(this.itemPull[k]["type"]=="separator"){h=' type="separator"'}else{if(this.itemPull[k]["state"]=="disabled"){g=' enabled="false"'}}if(this.itemPull[k]["type"]=="checkbox"){h=' type="checkbox"'+(this.itemPull[k]["checked"]?' checked="true"':"")}if(this.itemPull[k]["type"]=="radio"){h=' type="radio" group="'+this.itemPull[k]["group"]+'" '+(this.itemPull[k]["checked"]?' checked="true"':"")}f+="";f+=m;if(this.itemPull[k]["complex"]){f+=this._readLevel(k)}f+=""}}return f};dhtmlXMenuObject.prototype.enableEffect=function(d,f,e){this._menuEffect=(d=="opacity"||d=="slide"||d=="slide+"?d:false);this._pOpStyleIE=(navigator.userAgent.search(/MSIE\s[678]\.0/gi)>=0);for(var c in this.idPull){if(c.search(/polygon/)===0){this._pOpacityApply(c,(this._pOpStyleIE?100:1));this.idPull[c].style.height=""}}this._pOpMax=(typeof(f)=="undefined"?100:f)/(this._pOpStyleIE?1:100);this._pOpStyleName=(this._pOpStyleIE?"filter":"opacity");this._pOpStyleValue=(this._pOpStyleIE?"progid:DXImageTransform.Microsoft.Alpha(Opacity=#)":"#");this._pSlSteps=(this._pOpStyleIE?10:20);this._pSlTMTimeMax=e||50};dhtmlXMenuObject.prototype._showPolygonEffect=function(a){this._pShowHide(a,true)};dhtmlXMenuObject.prototype._hidePolygonEffect=function(a){this._pShowHide(a,false)};dhtmlXMenuObject.prototype._pOpacityApply=function(a,c){this.idPull[a].style[this._pOpStyleName]=String(this._pOpStyleValue).replace("#",c||this.idPull[a]._op)};dhtmlXMenuObject.prototype._pShowHide=function(a,c){if(!this.idPull){return}if(this.idPull[a]._tmShow!=null){if((this.idPull[a]._step_h>0&&c==true)||(this.idPull[a]._step_h<0&&c==false)){return}window.clearTimeout(this.idPull[a]._tmShow);this.idPull[a]._tmShow=null;this.idPull[a]._max_h=null}if(c==false&&(this.idPull[a].style.visibility=="hidden"||this.idPull[a].style.display=="none")){return}if(c==true&&this.idPull[a].style.display=="none"){this.idPull[a].style.visibility="hidden";this.idPull[a].style.display=""}if(this.idPull[a]._max_h==null){this.idPull[a]._max_h=parseInt(this.idPull[a].offsetHeight);this.idPull[a]._h=(c==true?0:this.idPull[a]._max_h);this.idPull[a]._step_h=Math.round(this.idPull[a]._max_h/this._pSlSteps)*(c==true?1:-1);if(this.idPull[a]._step_h==0){return}this.idPull[a]._step_tm=Math.round(this._pSlTMTimeMax/this._pSlSteps);if(this._menuEffect=="slide+"||this._menuEffect=="opacity"){this.idPull[a].op_tm=this.idPull[a]._step_tm;this.idPull[a].op_step=(this._pOpMax/this._pSlSteps)*(c==true?1:-1);if(this._pOpStyleIE){this.idPull[a].op_step=Math.round(this.idPull[a].op_step)}this.idPull[a]._op=(c==true?0:this._pOpMax);this._pOpacityApply(a)}else{this.idPull[a]._op=(this._pOpStyleIE?100:1);this._pOpacityApply(a)}if(this._menuEffect.search(/slide/)===0){this.idPull[a].style.height="0px"}this.idPull[a].style.visibility="visible"}this._pEffectSet(a,this.idPull[a]._h+this.idPull[a]._step_h)};dhtmlXMenuObject.prototype._pEffectSet=function(d,c){if(!this.idPull){return}if(this.idPull[d]._tmShow){window.clearTimeout(this.idPull[d]._tmShow)}this.idPull[d]._h=Math.max(0,Math.min(c,this.idPull[d]._max_h));if(this._menuEffect.search(/slide/)===0){this.idPull[d].style.height=this.idPull[d]._h+"px"}c+=this.idPull[d]._step_h;if(this._menuEffect=="slide+"||this._menuEffect=="opacity"){this.idPull[d]._op=Math.max(0,Math.min(this._pOpMax,this.idPull[d]._op+this.idPull[d].op_step));this._pOpacityApply(d)}if((this.idPull[d]._step_h>0&&c<=this.idPull[d]._max_h)||(this.idPull[d]._step_h<0&&c>=0)){var a=this;this.idPull[d]._tmShow=window.setTimeout(function(){a._pEffectSet(d,c)},this.idPull[d]._step_tm)}else{if(this._menuEffect.search(/slide/)===0){this.idPull[d].style.height=""}if(this.idPull[d]._step_h<0){this.idPull[d].style.visibility="hidden"}if(this._menuEffect=="slide+"||this._menuEffect=="opacity"){this.idPull[d]._op=(this.idPull[d]._step_h<0?(this._pOpStyleIE?100:1):this._pOpMax);this._pOpacityApply(d)}this.idPull[d]._tmShow=null;this.idPull[d]._h=null;this.idPull[d]._max_h=null;this.idPull[d]._step_tm=null}};function xmlPointer(a){this.d=a}xmlPointer.prototype={text:function(){if(!_isFF){return this.d.xml}var a=new XMLSerializer();return a.serializeToString(this.d)},get:function(a){return this.d.getAttribute(a)},exists:function(){return !!this.d},content:function(){return this.d.firstChild?(this.d.firstChild.wholeText||this.d.firstChild.data):""},each:function(e,j,h,g){var d=this.d.childNodes;var k=new xmlPointer();if(d.length){for(g=g||0;g0){o=new Object;o.tr=h.childNodes[0].tr.previousSibling}h._has_top=true;for(f=l;f>0;f--){x[f]=x[f-1]}l=0;break}}}var m;if(!(m=this._idpull[g])||m.span!=-1){m=x[l]=new dhtmlXTreeItemObject(g,e,h,this,j,1);g=x[l].id;h.childsCount++}if(!m.htmlNode){m.label=e;m.htmlNode=this._createItem((this.checkBoxOff?1:0),m);m.htmlNode.objBelong=m}if(w){m.images[0]=w}if(v){m.images[1]=v}if(u){m.images[2]=u}var c=this._drawNewTr(m.htmlNode);if((this.XMLloadingWarning)||(this._hAdI)){m.htmlNode.parentNode.parentNode.style.display="none"}if((o)&&o.tr&&(o.tr.nextSibling)){h.htmlNode.childNodes[0].insertBefore(c,o.tr.nextSibling)}else{if(this.parsingOn==h.id){this.parsedArray[this.parsedArray.length]=c}else{h.htmlNode.childNodes[0].appendChild(c)}}if((o)&&(!o.span)){o=null}if(this.XMLsource){if((d)&&(d!=0)){m.XMLload=0}else{m.XMLload=1}}m.tr=c;c.nodem=m;if(h.itemId==0){c.childNodes[0].className="hiddenRow"}if((h._r_logic)||(this._frbtr)){this._setSrc(m.htmlNode.childNodes[0].childNodes[0].childNodes[1].childNodes[0],this.imPath+this.radioArray[0])}if(k){var q=k.split(",");for(var r=0;r=2){this._correctPlus(x[h.childsCount-2]);this._correctLine(x[h.childsCount-2])}if(h.childsCount!=2){this._correctPlus(x[0])}if(this.tscheck){this._correctCheckStates(h)}if(this._onradh){if(this.xmlstate==1){var a=this.onXLE;this.onXLE=function(n){this._onradh(g);if(a){a(n)}}}else{this._onradh(g)}}}return m};dhtmlXTreeObject.prototype.enableContextMenu=function(a){if(a){this.cMenu=a}};dhtmlXTreeObject.prototype.setItemContextMenu=function(f,e){var a=f.toString().split(this.dlmtr);for(var d=0;d=0;f--){if(o.childNodes[f]._dmark){this.deleteItem(o.childNodes[f].id)}}}var k=this._globalIdStorageFind(this.parsingOn);for(var f=0;f1){if(((e[1].style.display!="none")||(f==1))&&(f!=2)){this.allTree.childNodes[0].border="1";this.allTree.childNodes[0].border="0";nodestyle="none"}else{nodestyle=""}for(var d=1;dthis._getNodeLevel(d,0)){if(!this.dropLower){return this._moveNodeTo(a,e.parentObject)}else{if(d.id!=this.rootId){return this._moveNodeTo(a,d.parentObject,d)}else{return this._moveNodeTo(a,this.htmlNode,null)}}}else{return this._moveNodeTo(a,d.parentObject,d)}}else{return this._moveNodeTo(a,c)}};dhtmlXTreeObject.prototype._fixNodesCollection=function(j,g){var c=0;var e=0;var h=j.childNodes;var a=j.childsCount-1;if(g==h[a]){return}for(var f=0;f=2){this._correctPlus(o[p.childsCount-2]);this._correctLine(o[p.childsCount-2])}}this._correctPlus(o[p.childsCount-1]);if(this.tscheck){this._correctCheckStates(p)}if(d.tscheck){d._correctCheckStates(l)}}if(k>1){d._correctPlus(l.childNodes[k-2]);d._correctLine(l.childNodes[k-2])}d._correctPlus(l);d._correctLine(l);this._fixChildCountLabel(p);d._fixChildCountLabel(l);this.callEvent("onDrop",[n.id,p.id,(m?m.id:null),d,p.treeNod]);return n.id};dhtmlXTreeObject.prototype._clearStyles=function(a){if(!a.htmlNode){return}var e=a.htmlNode.childNodes[0].childNodes[0].childNodes[1];var c=e.nextSibling.nextSibling;a.span.innerHTML=a.label;a.i_sel=false;if(a._aimgs){this.dragger.removeDraggableItem(e.nextSibling)}if(this.checkBoxOff){e.childNodes[0].style.display="";e.childNodes[0].onclick=this.onCheckBoxClick;this._setSrc(e.childNodes[0],this.imPath+this.checkArray[a.checkstate])}else{e.style.display="none"}e.childNodes[0].treeNod=this;this.dragger.removeDraggableItem(c);if(this.dragAndDropOff){this.dragger.addDraggableItem(c,this)}if(this._aimgs){this.dragger.addDraggableItem(e.nextSibling,this)}c.childNodes[0].className="standartTreeRow";c.parentNode.className="";c.onclick=this.onRowSelect;c.ondblclick=this.onRowClick2;e.previousSibling.onclick=this.onRowClick;this._correctLine(a);this._correctPlus(a);for(var d=0;d0)){if(d.childNodes[c].unParsed){var a=this._getAllScraggyItemsXML(d.childNodes[c].unParsed,1)}else{var a=this._getAllScraggyItems(d.childNodes[c])}if(a){if(e){e+=this.dlmtr+a}else{e=a}}}else{if(!e){e=""+d.childNodes[c].id}else{e+=this.dlmtr+d.childNodes[c].id}}}return e};dhtmlXTreeObject.prototype._getAllFatItems=function(d){var e="";for(var c=0;c0)){if(!e){e=""+d.childNodes[c].id}else{e+=this.dlmtr+d.childNodes[c].id}if(d.childNodes[c].unParsed){var a=this._getAllFatItemsXML(d.childNodes[c].unParsed,1)}else{var a=this._getAllFatItems(d.childNodes[c])}if(a){e+=this.dlmtr+a}}}return e};dhtmlXTreeObject.prototype._getAllSubItems=function(g,f,e){if(e){c=e}else{var c=this._globalIdStorageFind(g)}if(!c){return 0}f="";for(var d=0;d=c.childsCount)){return null}return c.childNodes[a].id};dhtmlXTreeObject.prototype.getChildItemIdByIndex=function(d,a){var c=this._globalIdStorageFind(d);if((!c)||(a>=c.childsCount)){return null}return c.childNodes[a].id};dhtmlXTreeObject.prototype.setDragHandler=function(a){this.attachEvent("onDrag",a)};dhtmlXTreeObject.prototype._clearMove=function(){if(this._lastMark){this._lastMark.className=this._lastMark.className.replace(/dragAndDropRow/g,"");this._lastMark=null}this.selectionBar.style.display="none";this.allTree.className=this.allTree.className.replace(" selectionBox","")};dhtmlXTreeObject.prototype.enableDragAndDrop=function(c,a){if(c=="temporary_disabled"){this.dADTempOff=false;c=true}else{this.dADTempOff=true}this.dragAndDropOff=dhx4.s2b(c);if(this.dragAndDropOff){this.dragger.addDragLanding(this.allTree,this)}if(arguments.length>1){this._ddronr=(!dhx4.s2b(a))}};dhtmlXTreeObject.prototype._setMove=function(f,d,h){if(f.parentObject.span){var e=dhx4.absTop(f);var c=dhx4.absTop(this.allTree)-this.allTree.scrollTop;this.dadmodec=this.dadmode;this.dadmodefix=0;if(this.dadmode==2){var g=h-e+(document.body.scrollTop||document.documentElement.scrollTop)-2-f.offsetHeight/2;if((Math.abs(g)-f.offsetHeight/6)>0){this.dadmodec=1;if(g<0){this.dadmodefix=0-f.offsetHeight}}else{this.dadmodec=0}}if(this.dadmodec==0){var a=f.parentObject.span;a.className+=" dragAndDropRow";this._lastMark=a}else{this._clearMove();this.selectionBar.style.top=(e-c+((parseInt(f.parentObject.span.parentNode.parentNode.offsetHeight)||18)-1)+this.dadmodefix)+"px";this.selectionBar.style.left="5px";if(this.allTree.offsetWidth>20){this.selectionBar.style.width=(this.allTree.offsetWidth-(_isFF?30:25))+"px"}this.selectionBar.style.display=""}this._autoScroll(null,e,c)}};dhtmlXTreeObject.prototype._autoScroll=function(d,c,a){if(this.autoScroll){if(d){c=dhx4.absTop(d);a=dhx4.absTop(this.allTree)-this.allTree.scrollTop}if((c-a-parseInt(this.allTree.scrollTop))>(parseInt(this.allTree.offsetHeight)-50)){this.allTree.scrollTop=parseInt(this.allTree.scrollTop)+20}if((c-a)<(parseInt(this.allTree.scrollTop)+30)){this.allTree.scrollTop=parseInt(this.allTree.scrollTop)-20}}};dhtmlXTreeObject.prototype._createDragNode=function(g,f){if(!this.dADTempOff){return null}var d=g.parentObject;if(!this.callEvent("onBeforeDrag",[d.id,f])){return null}if(!d.i_sel){this._selectItem(d,f)}this._checkMSelectionLogic();var c=document.createElement("div");var h=new Array();if(this._itim_dg){for(var a=0;a"+this._selected[a].span.innerHTML+""}}else{h=this.getSelectedItemText().split(this.dlmtr)}c.innerHTML=h.join("");c.style.position="absolute";c.className="dragSpanDiv";this._dragged=(new Array()).concat(this._selected);return c};dhtmlXTreeObject.prototype._focusNode=function(a){var c=dhx4.absTop(a.htmlNode)-dhx4.absTop(this.allTree);if((c>(this.allTree.offsetHeight-30))||(c<0)){this.allTree.scrollTop=c+this.allTree.scrollTop}};dhtmlXTreeObject.prototype._preventNsDrag=function(a){if((a)&&(a.preventDefault)){a.preventDefault();return false}return false};dhtmlXTreeObject.prototype._drag=function(h,j,a){if(this._autoOpenTimer){clearTimeout(this._autoOpenTimer)}if(!a.parentObject){a=this.htmlNode.htmlNode.childNodes[0].childNodes[0].childNodes[1].childNodes[0];this.dadmodec=0}this._clearMove();var g=h.parentObject.treeNod;if((g)&&(g._clearMove)){g._clearMove("")}if((!this.dragMove)||(this.dragMove())){if((!g)||(!g._clearMove)||(!g._dragged)){var e=new Array(h.parentObject)}else{var e=g._dragged}var c=a.parentObject;for(var f=0;f2)?(a.checkstate-3):a.checkstate);this._setCheck(a);if(a.dscheck<3){a.dscheck=false}};dhtmlXTreeObject.prototype.smartRefreshBranch=function(c,a){this._branchUpdate=1;this.smartRefreshItem(c,a)};dhtmlXTreeObject.prototype.smartRefreshItem=function(e,d){var a=this._globalIdStorageFind(e);for(var c=0;c0)){if(d.childNodes[c].unParsed){var a=this._getAllScraggyItemsXML(d.childNodes[c].unParsed,1)}else{var a=this._getAllScraggyItems(d.childNodes[c])}if(a){if(e){e+=this.dlmtr+a}else{e=a}}}else{if(!e){e=""+d.childNodes[c].id}else{e+=this.dlmtr+d.childNodes[c].id}}}return e};dhtmlXTreeObject.prototype._getAllFatItems=function(d){var e="";for(var c=0;c0)){if(!e){e=""+d.childNodes[c].id}else{e+=this.dlmtr+d.childNodes[c].id}if(d.childNodes[c].unParsed){var a=this._getAllFatItemsXML(d.childNodes[c].unParsed,1)}else{var a=this._getAllFatItems(d.childNodes[c])}if(a){e+=this.dlmtr+a}}}return e};dhtmlXTreeObject.prototype.getAllItemsWithKids=function(){return this._getAllFatItems(this.htmlNode)};dhtmlXTreeObject.prototype.getAllFatItems=dhtmlXTreeObject.prototype.getAllItemsWithKids;dhtmlXTreeObject.prototype.getAllChecked=function(){return this._getAllChecked("","",1)};dhtmlXTreeObject.prototype.getAllUnchecked=function(a){if(a){a=this._globalIdStorageFind(a)}return this._getAllChecked(a,"",0)};dhtmlXTreeObject.prototype.getAllPartiallyChecked=function(){return this._getAllChecked("","",2)};dhtmlXTreeObject.prototype.getAllCheckedBranches=function(){var a=[this._getAllChecked("","",1)];var c=this._getAllChecked("","",2);if(c){a.push(c)}return a.join(this.dlmtr)};dhtmlXTreeObject.prototype._getAllChecked=function(e,d,f){if(!e){e=this.htmlNode}if(e.checkstate==f){if(!e.nocheckbox){if(d){d+=this.dlmtr+e.id}else{d=""+e.id}}}var a=e.childsCount;for(var c=0;c";d.span.style.paddingRight=d.span.style.paddingLeft="0px";d.span.onclick=d.span.ondblclick=function(g){(g||event).cancelBubble=true};d.span.childNodes[0].value=e;d.span.childNodes[0].onselectstart=function(g){(g||event).cancelBubble=true;return true};d.span.childNodes[0].onmousedown=function(g){(g||event).cancelBubble=true;return true};d.span.childNodes[0].focus();d.span.childNodes[0].focus();d.span.onclick=function(g){(g||event).cancelBubble=true;return false};d.span.className="";d.span.parentNode.className="";var c=this;d.span.childNodes[0].onkeydown=function(g){if(!g){g=window.event}if(g.keyCode==13){g.cancelBubble=true;c._stopEdit(window.undefined)}else{if(g.keyCode==27){c._stopEdit(window.undefined,true)}}(g||event).cancelBubble=true};this.callEvent("onEdit",[1,f,this])}};function jsonPointer(c,a){this.d=c;this.dp=a}jsonPointer.prototype={text:function(){var a=function(f){var e=[];for(var d=0;d"+cont+"")}window[id]=t;var oninit=obj.getAttribute("oninit");if(oninit){eval(oninit)}return t}function dhx_init_trees(){var c=document.getElementsByTagName("div");for(var a=0;a0)){return a.childNodes[0]}if((a.tr)&&(a.tr.nextSibling)&&(a.tr.nextSibling.nodem)){return a.tr.nextSibling.nodem}if(a.parentObject){return this._getNextVisibleNode(a.parentObject,1)}return a};dhtmlXTreeObject.prototype._getPrevVisibleNode=function(a){if((a.tr)&&(a.tr.previousSibling)&&(a.tr.previousSibling.nodem)){return this._lastVisibleChild(a.tr.previousSibling.nodem)}if(a.parentObject){return a.parentObject}else{return a}};dhtmlXTreeObject.prototype._lastVisibleChild=function(a){if(this._getOpenState(a)>0){return this._lastVisibleChild(a.childNodes[a.childsCount-1])}else{return a}};dhtmlXTreeObject.prototype._searchItemByKey=function(c){if(c.keyCode==8){this._textSearchString="";return true}var a=String.fromCharCode(c.keyCode).toUpperCase();if(a.match(/[A-Z,a-z,0-9\ ]/)){this._textSearchString+=a;this._textSearchInProgress=true;if(!(this.getSelectedItemText()||"").match(RegExp("^"+this._textSearchString,"i"))){this.findItem(this._textSearchString,0)}this._textSearchInProgress=false;if(c.preventDefault){c.preventDefault()}(c||event).cancelBubble=true;return false}return true};dhtmlXTreeObject.prototype.assignKeys=function(a){this._navKeys=a};dhtmlXTreeObject.prototype.enableKeySearch=function(c){this._textSearch=dhx4.s2b(c);if(!this._textSearch){return}this._textSearchString="";var a=this;this._markItem2=this._markItem;this._markItem=function(d){if(!a._textSearchInProgress){a._textSearchString=""}a._markItem2(d)}};dhtmlXTreeObject.prototype.enableLoadingItem=function(a){this.attachEvent("onXLS",this._showFakeItem);this.attachEvent("onXLE",this._hideFakeItem);this._tfi_text=a||"Loading..."};dhtmlXTreeObject.prototype._showFakeItem=function(a,d){if((d===null)||(this._globalIdStorageFind("fake_load_xml_"+d))){return}var c=this.XMLsource;this.XMLsource=null;this.insertNewItem(d,"fake_load_xml_"+d,this._tfi_text);this.XMLsource=c};dhtmlXTreeObject.prototype._hideFakeItem=function(a,c){if(c===null){return}this.deleteItem("fake_load_xml_"+c)};dhtmlXTreeObject.prototype.isLocked=function(a){if(!this._locker){this._init_lock()}return(this._locker[a]==true)};dhtmlXTreeObject.prototype._lockItem=function(a,f,c){if(!this._locker){this._init_lock()}if(f){if(this._locker[a.id]==true){return}this._locker[a.id]=true;a.bIm0=a.images[0];a.bIm1=a.images[1];a.bIm2=a.images[2];a.images[0]=this.lico0;a.images[1]=this.lico1;a.images[2]=this.lico2;var e=a.span.parentNode;var d=e.previousSibling;this.dragger.removeDraggableItem(e);this.dragger.removeDraggableItem(d)}else{if(this._locker[a.id]!=true){return}this._locker[a.id]=false;a.images[0]=a.bIm0;a.images[1]=a.bIm1;a.images[2]=a.bIm2;var e=a.span.parentNode;var d=e.previousSibling;this.dragger.addDraggableItem(e,this);this.dragger.addDraggableItem(d,this)}if(!c){this._correctPlus(a)}};dhtmlXTreeObject.prototype.lockItem=function(d,c){if(!this._locker){this._init_lock()}this._lockOn=false;var a=this._globalIdStorageFind(d);this._lockOn=true;this._lockItem(a,dhx4.s2b(c))};dhtmlXTreeObject.prototype.setLockedIcons=function(d,c,a){if(!this._locker){this._init_lock()}this.lico0=d;this.lico1=c;this.lico2=a};dhtmlXTreeObject.prototype._init_lock=function(){this._locker=new Array();this._locker_count="0";this._lockOn=true;this._globalIdStorageFindA=this._globalIdStorageFind;this._globalIdStorageFind=this._lockIdFind;if(this._serializeItem){this._serializeItemA=this._serializeItem;this._serializeItem=this._serializeLockItem;this._serializeTreeA=this.serializeTree;this.serializeTree=this._serializeLockTree}this.setLockedIcons(this.imageArray[0],this.imageArray[1],this.imageArray[2])};dhtmlXTreeObject.prototype._lockIdFind=function(d,a,c){if(!this.skipLock){if((!c)&&(this._lockOn==true)&&(this._locker[d]==true)){return null}}return this._globalIdStorageFindA(d,a,c)};dhtmlXTreeObject.prototype._serializeLockItem=function(a){if(this._locker[a.id]==true){return""}return this._serializeItemA(a)};dhtmlXTreeObject.prototype._serializeLockTree=function(){var a=this._serializeTreeA();return a.replace(/]+locked\=\"1\"[^>]+\/>/g,"")};dhtmlXTreeObject.prototype._moveNodeToA=dhtmlXTreeObject.prototype._moveNodeTo;dhtmlXTreeObject.prototype._moveNodeTo=function(a,d,c){if((d.treeNod.isLocked)&&(d.treeNod.isLocked(d.id))){return false}return this._moveNodeToA(a,d,c)};dhtmlXTreeObject.prototype.lockTree=function(a){if(dhx4.s2b(a)){this._initTreeLocker()}else{if(this._TreeLocker){this._TreeLocker.parentNode.removeChild(this._TreeLocker);this._TreeLocker=null}}};dhtmlXTreeObject.prototype._initTreeLocker=function(a){if(this._TreeLocker){return}this.parentObject.style.overflow="hidden";if(this.parentObject.style.position!="absolute"){this.parentObject.style.position="relative"}var c=document.createElement("div");c.style.position="absolute";c.style.left="0px";c.style.top="0px";c.className="dhx_tree_opacity";c.style.width=this.allTree.offsetWidth+"px";c.style.backgroundColor="#FFFFFF";c.style.height=this.allTree.offsetHeight+"px";this._TreeLocker=c;this.parentObject.appendChild(this._TreeLocker)};dhtmlXTreeObject.prototype.enableRTL=function(c){var a=dhx4.s2b(c);if(((a)&&(!this.rtlMode))||((!a)&&(this.rtlMode))){this.rtlMode=a;this._switchToRTL(this.rtlMode)}};dhtmlXTreeObject.prototype._switchToRTL=function(a){if(a){this.allTree.className=this._ltr_line=this.lineArray;this._ltr_min=this.minusArray;this._ltr_plus=this.plusArray;this.lineArray=new Array("line2_rtl.gif","line3_rtl.gif","line4_rtl.gif","blank.gif","blank.gif","line1_rtl.gif");this.minusArray=new Array("minus2_rtl.gif","minus3_rtl.gif","minus4_rtl.gif","minus.gif","minus5_rtl.gif");this.plusArray=new Array("plus2_rtl.gif","plus3_rtl.gif","plus4_rtl.gif","plus.gif","plus5_rtl.gif");this.allTree.className="containerTableStyleRTL"}else{this.allTree.className="containerTableStyle";this.lineArray=this._ltr_line;this.minusArray=this._ltr_min;this.plusArray=this._ltr_plus}if(this.htmlNode.childsCount){this._redrawFrom(this,this.htmlNode)}};dhtmlXTreeObject.prototype.sortTree=function(e,c,d){var a=this._globalIdStorageFind(e);if(!a){return false}this._reorderBranch(a,(c.toString().toLowerCase()=="asc"),dhx4.s2b(d))};dhtmlXTreeObject.prototype.setCustomSortFunction=function(a){this._csfunca=a};dhtmlXTreeObject.prototype._reorderBranch=function(h,c,j){var a=[];var g=h.childsCount;if(!g){return}var f=h.childNodes[0].tr.parentNode;for(var e=0;ek.span.innerHTML.toUpperCase())?1:((l.span.innerHTML.toUpperCase()==k.span.innerHTML.toUpperCase())?0:-1))})}}else{if(this._csfunca){a.sort(function(l,k){return d._csfunca(k.id,l.id)})}else{a.sort(function(l,k){return((l.span.innerHTML.toUpperCase()j.getAttribute("text"))?1:((k.getAttribute("text")==j.getAttribute("text"))?0:-1))})}else{a.sort(function(k,j){return((k.getAttribute("text")",">"]];dhtmlXTreeObject.prototype.registerXMLEntity=function(a,c){this._serEnts[this._serEnts.length]=[a,c,new RegExp(a,"g")]};dhtmlXTreeObject.prototype.setSerializationLevel=function(a,c,f,g,d){this._xuserData=dhx4.s2b(a);this._xfullXML=dhx4.s2b(c);this._dtd=d;this._xescapeEntities=dhx4.s2b(f);if(dhx4.s2b(g)){this._apreUC=""}else{}for(var e=0;e'}a+='';if((this._xuserData)&&(this._idpull[this.rootId]._userdatalist)){var d=this._idpull[this.rootId]._userdatalist.split(",");for(var c=0;c'+this._apreUC+this._idpull[this.rootId].userData["t_"+d[c]]+this._apstUC+""}}for(var c=0;c";return a};dhtmlXTreeObject.prototype._serializeItem=function(h){if(h.unParsed){if(dhx4.isIE){return h.unParsed.d.xml}else{var a=new XMLSerializer();return a.serializeToString(h.unParsed.d)}}var c="";if(this._selected.length){var e=this._selected[0].id}else{e='"'}var g=h.span.innerHTML;if(this._xescapeEntities){for(var d=0;d"}else{c='"}if((this._xuserData)&&(h._userdatalist)){var f=h._userdatalist.split(",");for(var d=0;d'+this._apreUC+h.userData["t_"+f[d]]+this._apstUC+""}}for(var d=0;d";return c};dhtmlXTreeObject.prototype.saveSelectedItem=function(c,a){c=c||"";this.setCookie("treeStateSelected"+c,this.getSelectedItemId(),a)};dhtmlXTreeObject.prototype.restoreSelectedItem=function(a){a=a||"";var c=this.getCookie("treeStateSelected"+a);this.selectItem(c,false)};dhtmlXTreeObject.prototype.enableAutoSavingSelected=function(a,c){this.assMode=dhx4.s2b(a);if((this.assMode)&&(!this.oldOnSelect)){this.oldOnSelect=this.onRowSelect;this.onRowSelect=function(f,d,g){if(!d){d=this}d.parentObject.treeNod.oldOnSelect(f,d,g);if(d.parentObject.treeNod.assMode){d.parentObject.treeNod.saveSelectedItem(d.parentObject.treeNod.assCookieName)}}}this.assCookieName=c};dhtmlXTreeObject.prototype.saveState=function(d,c){var f=this._escape(this.serializeTree());var a=4000;if(f.length>a){if(navigator.appName.indexOf("Microsoft")!=-1){return false}this.setCookie("treeStatex"+d,Math.ceil(f.length/a));for(var e=0;e0){var e=document.cookie.indexOf(d);if(e!=-1){e+=d.length;var a=document.cookie.indexOf(";",e);if(a==-1){a=document.cookie.length}return document.cookie.substring(e,a)}}};dhtmlXTreeObject.prototype.saveOpenStates=function(c,a){var e=[];for(var d=0;d0){var e=document.cookie.indexOf(d);if(e!=-1){e+=d.length;var a=document.cookie.indexOf(";",e);if(a==-1){a=document.cookie.length}return(document.cookie.substring(e,a))}}}dhtmlXTreeObject.prototype.openAllItemsDynamic=function(a){this.ClosedElem=new Array();this.G_node=null;var c=this._globalIdStorageFind(a||this.rootId);if(c.id!=this.rootId&&this.getOpenState(c.id)!=0){this.openItem(a)}this._openAllNodeChilds(c,0);if(this.ClosedElem.length>0){this.onLoadReserve=this.onXLE;this.onXLE=this._loadAndOpen;this._loadAndOpen(this)}};dhtmlXTreeObject.prototype._openAllNodeChilds=function(c){if((c.XMLload==0)||(c.unParsed)){this.ClosedElem.push(c)}for(var a=0;a0){this._openAllNodeChilds(c.childNodes[a])}if((c.childNodes[a].XMLload==0)||(c.childNodes[a].unParsed)){this.ClosedElem.push(c.childNodes[a])}}};dhtmlXTreeObject.prototype._loadAndOpen=function(a){if(a.G_node){a._openItem(a.G_node);a._openAllNodeChilds(a.G_node);a.G_node=null}if(a.ClosedElem.length>0){a.G_node=a.ClosedElem.shift()}if(a.G_node){if(a.G_node.unParsed){a.reParse(a.G_node)}else{window.setTimeout(function(){a._loadDynXML(a.G_node.id)},100)}}else{a.onXLE=a.onLoadReserve;if(a.onXLE){a.onXLE(a)}a.callEvent("onAllOpenDynamic",[a])}};dhtmlXTreeObject.prototype.openItemsDynamic=function(c,a){if(this.onXLE==this._stepOpen){return}this._opnItmsDnmcFlg=dhx4.s2b(a);this.onLoadReserve=this.onXLE;this.onXLE=this._stepOpen;this.ClosedElem=c.split(",").reverse();this._stepOpen(this)};dhtmlXTreeObject.prototype._stepOpen=function(c){if(!c.ClosedElem.length){c.onXLE=c.onLoadReserve;if(c._opnItmsDnmcFlg){c.selectItem(c.G_node,true)}if((c.onXLE)&&(arguments[1])){c.onXLE.apply(c,arguments)}c.callEvent("onOpenDynamicEnd",[]);return}c.G_node=c.ClosedElem.pop();c.skipLock=true;var a=c._globalIdStorageFind(c.G_node);if(a){if(a.XMLload===0){c.openItem(c.G_node)}else{c.openItem(c.G_node);c._stepOpen(c)}}c.skipLock=false};