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: dhtmlxMenu Version: 5.1.0 Edition: Standard 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 b=Math.floor(dhx4.readFromCss(a+"_skin_detect")/10)*10;return{10:"dhx_skyblue",20:"dhx_web",30:"dhx_terrace",40:"material"}[b]||null},readFromCss:function(c,d,e){var b=document.createElement("DIV");b.className=c;if(document.body.firstChild!=null){document.body.insertBefore(b,document.body.firstChild)}else{document.body.appendChild(b)}if(typeof(e)=="string"){b.innerHTML=e}var a=b[d||"offsetWidth"];b.parentNode.removeChild(b);b=null;return a},lastId:1,newId:function(){return this.lastId++},zim:{data:{},step:5,first:function(){return 100},last:function(){var c=this.first();for(var b in this.data){c=Math.max(c,this.data[b])}return c},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 c=0,b=0;while(a){c=c+parseInt(a.offsetTop);b=b+parseInt(a.offsetLeft);a=a.offsetParent}return{top:c,left:b}},_aOfsRect:function(d){var g=d.getBoundingClientRect();var h=document.body;var b=document.documentElement;var a=window.pageYOffset||b.scrollTop||h.scrollTop;var e=window.pageXOffset||b.scrollLeft||h.scrollLeft;var f=b.clientTop||h.clientTop||0;var i=b.clientLeft||h.clientLeft||0;var j=g.top+a-f;var c=g.left+e-i;return{top:Math.round(j),left:Math.round(c)}},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(d){if(this._isObj(d)){var c={};for(var b in d){if(typeof(d[b])=="object"&&d[b]!=null){c[b]=this._copyObj(d[b])}else{c[b]=d[b]}}}else{var c=[];for(var b=0;b=0);var b={};b.left=document.body.scrollLeft;b.right=b.left+(window.innerWidth||document.body.clientWidth);b.top=Math.max((a?document.documentElement:document.getElementsByTagName("html")[0]).scrollTop,document.body.scrollTop);b.bottom=b.top+(a?Math.max(document.documentElement.clientHeight||0,document.documentElement.offsetHeight||0):window.innerHeight);return b},selectTextRange:function(d,g,b){d=(typeof(d)=="string"?document.getElementById(d):d);var a=d.value.length;g=Math.max(Math.min(g,a),0);b=Math.min(b,a);if(d.setSelectionRange){try{d.setSelectionRange(g,b)}catch(f){}}else{if(d.createTextRange){var c=d.createTextRange();c.moveStart("character",g);c.moveEnd("character",b-a);try{c.select()}catch(f){}}}},transData:null,transDetect:function(){if(this.transData==null){this.transData={transProp:false,transEv:null};var c={MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd",OTransition:"oTransitionEnd",msTransition:"transitionend",transition:"transitionend"};for(var b in c){if(this.transData.transProp==false&&document.documentElement.style[b]!=null){this.transData.transProp=b;this.transData.transEv=c[b]}}c=null}return this.transData},_xmlNodeValue:function(a){var c="";for(var b=0;b=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(b,c,a){return b.replace(/#([a-z0-9_-]{1,})(\|([^#]*))?#/gi,function(){var g=arguments[1];var f=window.dhx4.trim(arguments[3]);var h=null;var e=[c[g]];if(f.length>0){f=f.split(":");var d=[];for(var i=0;i0&&d[d.length-1].match(/\\$/)!=null){d[d.length-1]=d[d.length-1].replace(/\\$/,"")+":"+f[i]}else{d.push(f[i])}}h=d[0];for(var i=1;i0&&typeof(c[g])!="undefined"){if(a==true){return window.dhx4.trim(c[g])}return String(c[g])}return""})};window.dhx4.template.date=function(a,b){if(a!=null){if(a instanceof Date){return window.dhx4.date2str(a,b)}else{a=a.toString();if(a.match(/^\d*$/)!=null){return window.dhx4.date2str(new Date(parseInt(a)),b)}return a}}return""};window.dhx4.template.maxlength=function(b,a){return String(b).substr(0,a)};window.dhx4.template.number_format=function(d,e,c,a){var b=window.dhx4.template._parseFmt(e,c,a);if(b==false){return d}return window.dhx4.template._getFmtValue(d,b)};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(h,c,a){var d=h.match(/^([^\.\,0-9]*)([0\.\,]*)([^\.\,0-9]*)/);if(d==null||d.length!=4){return false}var b={i_len:false,i_sep:(typeof(c)=="string"?c:","),d_len:false,d_sep:(typeof(a)=="string"?a:"."),s_bef:(typeof(d[1])=="string"?d[1]:""),s_aft:(typeof(d[3])=="string"?d[3]:"")};var g=d[2].split(".");if(g[1]!=null){b.d_len=g[1].length}var e=g[0].split(",");if(e.length>1){b.i_len=e[e.length-1].length}return b};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(f.getHours()>11?"PM":"AM");case"%%":return"%";case"%u":return f.getMilliseconds();case"%P":if(window.dhx4.temp_calendar!=null&&window.dhx4.temp_calendar.tz!=null){return window.dhx4.temp_calendar.tz}var k=f.getTimezoneOffset();var j=Math.abs(Math.floor(k/60));var g=Math.abs(k)-j*60;return(k>0?"-":"+")+e(j)+":"+e(g);default:return i}};var c=String(d||window.dhx4.dateFormat).replace(/%[a-zA-Z]/g,b)}return(c||String(f))};window.dhx4.str2date=function(g,s,x){if(s==null||typeof(s)=="undefined"){s=window.dhx4.dateFormat[window.dhx4.dateLang]}if(x==null||typeof(x)=="undefined"){x=window.dhx4.dateStrings[window.dhx4.dateLang]}s=s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\\:|]/g,"\\$&");var u=[];var j=[];s=s.replace(/%[a-z]/gi,function(e){switch(e){case"%d":case"%m":case"%y":case"%h":case"%H":case"%i":case"%s":j.push(e);return"(\\d{2})";case"%D":case"%l":case"%M":case"%F":j.push(e);return"([a-zéûä\u0430-\u044F\u0451]{1,})";case"%j":case"%n":case"%g":case"%G":j.push(e);return"(\\d{1,2})";case"%Y":j.push(e);return"(\\d{4})";case"%a":j.push(e);return"([a|p]m)";case"%A":j.push(e);return"([A|P]M)";case"%u":j.push(e);return"(\\d{1,6})";case"%P":j.push(e);return"([+-]\\d{1,2}:\\d{1,2})"}return e});var y=new RegExp(s,"i");var l=g.match(y);if(l==null||l.length-1!=j.length){return"Invalid Date"}for(var b=1;b=0){a.setMonth(h)}break;case"%y":if(!isNaN(u[b])){var t=Number(u[b]);a.setFullYear(t+(t>50?1900:2000))}break;case"%g":case"%h":if(!isNaN(u[b])){var t=Number(u[b]);if(t<=12&&t>=0){a.setHours(t+(n("pm",u)>=0?(t==12?0:12):(t==12?-12:0)))}}break;case"%P":if(window.dhx4.temp_calendar!=null){window.dhx4.temp_calendar.tz=u[b]}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 b=(new window.DOMParser()).parseFromString(a,"text/xml")}else{if(window.ActiveXObject!==window.undefined){var b=new window.ActiveXObject("Microsoft.XMLDOM");b.async="false";b.loadXML(a)}}return b},xmltop:function(a,d,c){if(typeof d.status=="undefined"||d.status<400){xml=(!d.responseXML)?dhx4.ajax.parse(d.responseText||d):(d.responseXML||d);if(xml&&xml.documentElement!==null){try{if(!xml.getElementsByTagName("parsererror").length){return xml.getElementsByTagName(a)[0]}}catch(b){}}}if(c!==-1){dhx4.callEvent("onLoadXMLError",["Incorrect XML",arguments[1],c])}return document.createElement("DIV")},xpath:function(c,a){if(!a.nodeName){a=a.responseXML||a}if(dhx4.isIE){try{return a.selectNodes(c)||[]}catch(f){return[]}}else{var d=[];var g;var b=(a.ownerDocument||a).evaluate(c,a,null,XPathResult.ANY_TYPE,null);while(g=b.iterateNext()){d.push(g)}return d}},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,b){return this._call("GET",a,null,true,b)},getSync:function(a){return this._call("GET",a,null,false)},put:function(b,a,c){return this._call("PUT",b,a,true,c)},del:function(b,a,c){return this._call("DELETE",b,a,true,c)},post:function(b,a,c){if(arguments.length==1){a=""}else{if(arguments.length==2&&(typeof(a)=="function"||typeof(window[a])=="function")){c=a;a=""}else{a=String(a)}}return this._call("POST",b,a,true,c)},postSync:function(b,a){a=(a==null?"":String(a));return this._call("POST",b,a,false)},getLong:function(a,b){this._call("GET",a,null,true,b,{url:a})},postLong:function(b,a,c){if(arguments.length==2&&(typeof(a)=="function"||typeof(window[a]))){c=a;a=""}this._call("POST",b,a,true,c,{url:b,postData:a})},_call:function(b,c,d,h,j,n,f){if(typeof d==="object"){var g=[];for(var k in d){g.push(k+"="+encodeURIComponent(d[k]))}d=g.join("&")}var e=dhx.promise.defer();var m=(window.XMLHttpRequest&&!dhx4.isIE?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"));var i=(navigator.userAgent.match(/AppleWebKit/)!=null&&navigator.userAgent.match(/Qt/)!=null&&navigator.userAgent.match(/Safari/)!=null);if(h==true){m.onreadystatechange=function(){if((m.readyState==4)||(i==true&&m.readyState==3)){if(m.status!=200||m.responseText==""){e.reject(m);if(!dhx4.callEvent("onAjaxError",[{xmlDoc:m,filePath:c,async:h}])){return}}window.setTimeout(function(){if(typeof(j)=="function"){try{j.apply(window,[{xmlDoc:m,filePath:c,async:h}])}catch(a){e.reject(a)}e.resolve(m.responseText)}if(n!=null){if(typeof(n.postData)!="undefined"){dhx4.ajax.postLong(n.url,n.postData,j)}else{dhx4.ajax.getLong(n.url,j)}}j=null;m=null},1)}}}if(b=="GET"){c+=this._dhxr(c)}m.open(b,c,h);if(f!=null){for(var l in f){m.setRequestHeader(l,f[l])}}else{if(b=="POST"||b=="PUT"||b=="DELETE"){m.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}else{if(b=="GET"){d=null}}}m.setRequestHeader("X-Requested-With","XMLHttpRequest");m.send(d);if(h!=true){if((m.readyState==4)||(i==true&&m.readyState==3)){if(m.status!=200||m.responseText==""){dhx4.callEvent("onAjaxError",[{xmlDoc:m,filePath:c,async:h}])}}}e.xmlDoc=m;e.filePath=c;e.async=h;return e},_dhxr:function(a,b){if(this.cache!=true){if(a.match(/^[\?\&]$/)==null){a=(a.indexOf("?")>=0?"&":"?")}if(typeof(b)=="undefined"){b=true}return a+"dhxr"+new Date().getTime()+(b==true?"=1":"")}return""}}}if(typeof(window.dhx4._enableDataLoading)=="undefined"){window.dhx4._enableDataLoading=function(g,c,f,e,h){if(h=="clear"){for(var b in g._dhxdataload){g._dhxdataload[b]=null;delete g._dhxdataload[b]}g._loadData=null;g._dhxdataload=null;g.load=null;g.loadStruct=null;g=null;return}g._dhxdataload={initObj:c,xmlToJson:f,xmlRootTag:e,onBeforeXLS:null};g._loadData=function(n,o,p){if(arguments.length==2){p=o;o=null}var m=null;if(arguments.length==3){p=arguments[2]}this.callEvent("onXLS",[]);if(typeof(n)=="string"){var l=n.replace(/^\s{1,}/,"").replace(/\s{1,}$/,"");var s=new RegExp("^<"+this._dhxdataload.xmlRootTag);if(s.test(l.replace(/^<\?xml[^\?]*\?>\s*/,""))){m=dhx4.ajax.parse(n);if(m!=null){m=this[this._dhxdataload.xmlToJson].apply(this,[m])}}if(m==null&&(l.match(/^[\s\S]*{[.\s\S]*}[\s\S]*$/)!=null||l.match(/^[\s\S]*\[[.\s\S]*\][\s\S]*$/)!=null)){m=dhx4.s2j(l)}if(m==null){var j=[];if(typeof(this._dhxdataload.onBeforeXLS)=="function"){var l=this._dhxdataload.onBeforeXLS.apply(this,[n]);if(l!=null&&typeof(l)=="object"){if(l.url!=null){n=l.url}if(l.params!=null){for(var q in l.params){j.push(q+"="+encodeURIComponent(l.params[q]))}}}}var r=this;var i=function(a){var k=null;if((a.xmlDoc.getResponseHeader("Content-Type")||"").search(/xml/gi)>=0||(a.xmlDoc.responseText.replace(/^\s{1,}/,"")).match(/^0?(n.indexOf("?")>0?"&":"?")+j:""),i)}}return}}else{if(typeof(n.documentElement)=="object"||(typeof(n.tagName)!="undefined"&&typeof(n.getElementsByTagName)!="undefined"&&n.getElementsByTagName(this._dhxdataload.xmlRootTag).length>0)){m=this[this._dhxdataload.xmlToJson].apply(this,[n])}else{m=window.dhx4._copyObj(n)}}if(m!=null){this[this._dhxdataload.initObj].apply(this,[m])}this.callEvent("onXLE",[]);if(p!=null){if(typeof(p)=="function"){p.apply(this,[])}else{if(typeof(window[p])=="function"){window[p].apply(this,[])}}p=null}};if(h!=null){var d={struct:"loadStruct",data:"load"};for(var b in h){if(h[b]==true){g[d[b]]=function(){return this._loadData.apply(this,arguments)}}}}g=null}}if(typeof(window.dhx4._eventable)=="undefined"){window.dhx4._eventable=function(a,b){if(b=="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(c,e){c=String(c).toLowerCase();if(!this.dhxevs.data[c]){this.dhxevs.data[c]={}}var d=window.dhx4.newId();this.dhxevs.data[c][d]=e;return d};a.detachEvent=function(f){for(var d in this.dhxevs.data){var e=0;for(var c in this.dhxevs.data[d]){if(c==f){this.dhxevs.data[d][c]=null;delete this.dhxevs.data[d][c]}else{e++}}if(e==0){this.dhxevs.data[d]=null;delete this.dhxevs.data[d]}}};a.checkEvent=function(c){c=String(c).toLowerCase();return(this.dhxevs.data[c]!=null)};a.callEvent=function(d,f){d=String(d).toLowerCase();if(this.dhxevs.data[d]==null){return true}var e=true;for(var c in this.dhxevs.data[d]){e=this.dhxevs.data[d][c].apply(this,f)&&e}return e};a.detachAllEvents=function(){for(var d in this.dhxevs.data){for(var c in this.dhxevs.data[d]){this.dhxevs.data[d][c]=null;delete this.dhxevs.data[d][c]}this.dhxevs.data[d]=null;delete this.dhxevs.data[d]}};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(b){var a=b.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 b=a.toString().match(/^(\d{4})-(\d{2})-(\d{2})$/);return b&&!!(b[1]<=9999&&b[2]<=12&&b[3]<=31)||false},isValidTime:function(b){var a=b.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 b=a.toString().match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/);return b&&!!(b[1]<=255&&b[2]<=255&&b[3]<=255&&b[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,d,c){var b=window[a];if(!b){return}window[a]=function(g){if(g&&typeof g=="object"&&!g.tagName){var f=b.apply(this,(d._init?d._init(g):arguments));for(var e in dhtmlx){if(d[e]){this[d[e]](dhtmlx[e])}}for(var e in g){if(d[e]){this[d[e]](g[e])}else{if(e.indexOf("on")===0){this.attachEvent(e,g[e])}}}}else{var f=b.apply(this,arguments)}if(d._patch){d._patch(this)}return f||this};window[a].prototype=b.prototype;if(c){dhtmlx.extend(window[a].prototype,c)}},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,b){a.onmousedown=this.preCreateDragCopy;a.dragStarter=b;this.addDragLanding(a,b)};dhtmlDragAndDropObject.prototype.addDragLanding=function(a,b){a.dragLanding=b};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(c){if(!c){c=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,c);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(c,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 b=dragger.dragNode.pWindow;if(a.pWindow&&a.pWindow.dhtmlDragAndDrop.lastLanding){a.pWindow.dhtmlDragAndDrop.lastLanding.dragLanding._dragOut(a.pWindow.dhtmlDragAndDrop.lastLanding)}if(_isIE){var f=document.createElement("Div");f.innerHTML=dragger.dragNode.outerHTML;dragger.dragNode=f.childNodes[0]}else{dragger.dragNode=dragger.dragNode.cloneNode(true)}dragger.dragNode.pWindow=window;dragger.gldragNode.old=dragger.dragNode;document.body.appendChild(dragger.dragNode);b.dhtmlDragAndDrop.dragNode=dragger.dragNode}dragger.dragNode.style.left=c.clientX+15+(dragger.fx?dragger.fx*(-1):0)+(document.body.scrollLeft||document.documentElement.scrollLeft)+"px";dragger.dragNode.style.top=c.clientY+3+(dragger.fy?dragger.fy*(-1):0)+(document.body.scrollTop||document.documentElement.scrollTop)+"px";if(!c.srcElement){var d=c.target}else{d=c.srcElement}dragger.checkLanding(d,c)};dhtmlDragAndDropObject.prototype.calculateFramePosition=function(e){if(window.name){var c=parent.frames[window.name].frameElement.offsetParent;var d=0;var b=0;while(c){d+=c.offsetLeft;b+=c.offsetTop;c=c.offsetParent}if((parent.dhtmlDragAndDrop)){var a=parent.dhtmlDragAndDrop.calculateFramePosition(1);d+=a.split("_")[0]*1;b+=a.split("_")[1]*1}if(e){return d+"_"+b}else{this.fx=d}this.fy=b}return"0_0"};dhtmlDragAndDropObject.prototype.checkLanding=function(b,a){if((b)&&(b.dragLanding)){if(this.lastLanding){this.lastLanding.dragLanding._dragOut(this.lastLanding)}this.lastLanding=b;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((b)&&(b.tagName!="BODY")){this.checkLanding(b.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(b,c){dragger=window.dhtmlDragAndDrop;if(!c){dragger.stopFrameRoute();var a=dragger.lastLanding;dragger.lastLanding=null;if(a){a.dragLanding._drag(dragger.dragStartNode,dragger.dragStartObject,a,(_isIE?event.srcElement:b.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(c){if(c){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(b,c,a){if(b.addEventListener){b.addEventListener(c,a,false)}else{if(b.attachEvent){b.attachEvent("on"+c,a)}}}}if(dhtmlxEvent.touchDelay==null){dhtmlxEvent.touchDelay=2000}if(typeof(dhtmlxEvent.initTouch)=="undefined"){dhtmlxEvent.initTouch=function(){var d;var e;var b,a;dhtmlxEvent(document.body,"touchstart",function(f){e=f.touches[0].target;b=f.touches[0].clientX;a=f.touches[0].clientY;d=window.setTimeout(c,dhtmlxEvent.touchDelay)});function c(){if(e){var f=document.createEvent("HTMLEvents");f.initEvent("dblclick",true,true);e.dispatchEvent(f);d=e=null}}dhtmlxEvent(document.body,"touchmove",function(f){if(d){if(Math.abs(f.touches[0].clientX-b)>50||Math.abs(f.touches[0].clientY-a)>50){window.clearTimeout(d);d=e=false}}});dhtmlxEvent(document.body,"touchend",function(f){if(d){window.clearTimeout(d);d=e=false}});dhtmlxEvent.initTouch=function(){}}}(function(b){var c=typeof setImmediate!=="undefined"?setImmediate:function(e){setTimeout(e,0)};function d(f,g){var e=this;e.promise=e;e.state="pending";e.val=null;e.fn=f||null;e.er=g||null;e.next=[]}d.prototype.resolve=function(f){var e=this;if(e.state==="pending"){e.val=f;e.state="resolving";c(function(){e.fire()})}};d.prototype.reject=function(f){var e=this;if(e.state==="pending"){e.val=f;e.state="rejecting";c(function(){e.fire()})}};d.prototype.then=function(f,h){var e=this;var g=new d(f,h);e.next.push(g);if(e.state==="resolved"){g.resolve(e.val)}if(e.state==="rejected"){g.reject(e.val)}return g};d.prototype.fail=function(e){return this.then(null,e)};d.prototype.finish=function(g){var e=this;e.state=g;if(e.state==="resolved"){for(var f=0;f=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(e)=="object"&&e!=null&&typeof(e.tagName)=="undefined"){if(e.icons_path!=null||e.icon_path!=null){this.conf.icons_path=(e.icons_path||e.icon_path)}if(e.skin!=null){this.conf.skin=e.skin}if(e.visible_area){this.conf.v_enabled=true;this.conf.v={x1:e.visible_area.x1,x2:e.visible_area.x2,y1:e.visible_area.y1,y2:e.visible_area.y2}}for(var c 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(e[c]!=null){this.conf.autoload[c]=e[c]}}e=e.parent}if(e==null){this.base=document.body}else{var b=(typeof(e)=="string"?document.getElementById(e):e);if(b!=null){this.base=b;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(h){var i=this.conf.skin;this.conf.skin=h;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_"+i+"_Middle","")+" dhtmlxMenu_"+this.conf.skin+"_Middle"}for(var g in this.idPull){this.idPull[g].className=String(this.idPull[g].className).replace(i,this.conf.skin)}};this.setSkin(this.conf.skin);this._addSubItemToSelected=function(h,g){var a=true;for(var i=0;ithis.conf.v.y2-this.conf.v.y1){var q=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=q}else{this.conf.overflow_limit=0;if(this.idPull["arrowup_"+u]!=null){this._removeUpArrow(String(u).replace(this.idPrefix,""))}if(this.idPull["arrowdown_"+u]!=null){this._removeDownArrow(String(u).replace(this.idPrefix,""))}}}if(this.conf.overflow_limit>0&&this.conf.overflow_limit0&&this.conf.overflow_limitt&&!this.conf.rtl){n=a-p+2}if(ns&&this.conf.v.y2!=null){m=Math.max(D+j-A+2,(this.conf.v_enabled?this.conf.v.y1+2:2));if(this.conf.context&&this.idPrefix+this.topId==u&&r!=null){m=m-2}if(this.itemPull[u]!=null&&!this.conf.context){if(this.itemPull[u]["parent"]==this.idPrefix+this.topId){m=m-this.base.offsetHeight}}}this.idPull[v].style.left=n+"px";this.idPull[v].style.top=m+"px";if(typeof(this._menuEffect)!="undefined"&&this._menuEffect!==false){this._showPolygonEffect(v)}else{this.idPull[v].style.visibility="";if(this.conf.overflow_limit>0&&this.conf.overflow_limit0){this.conf.opened_poly.pop()}var a=this._getSubItemToDeselectByPolygon(j);this._removeSubItemFromSelected(-1,-1);for(var g=0;g0){a=g}}}return a};this._getMenuNodes=function(i){var g=new Array;for(var h in this.itemPull){if(this.itemPull[h]["parent"]==i){g[g.length]=h}}return g};this._genStr=function(a){var g="dhxId_";var i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";for(var h=0;h0){d.conf.opened_poly.pop()}for(var a=0;a0)&&(!this.itemPull[b]["complex"])){this._updateItemComplexState(b,true,false)}if((a==0)&&(this.itemPull[b]["complex"])){this._updateItemComplexState(b,false,false)}}};dhtmlXMenuObject.prototype._updateItemComplexState=function(e,c,d){if((!this.conf.context)&&(this._getItemLevelType(e.replace(this.idPrefix,""))=="TopLevel")){this.itemPull[e]["complex"]=c;return}if((this.idPull[e]==null)||(this.itemPull[e]==null)){return}this.itemPull[e]["complex"]=c;if(e==this.idPrefix+this.topId){return}var a=null;var b=this.idPull[e].childNodes[this.conf.rtl?0:2];if(b.childNodes[0]){if(String(b.childNodes[0].className).search("complex_arrow")===0){a=b.childNodes[0]}}if(this.itemPull[e]["complex"]){if(a==null){a=document.createElement("DIV");a.className="complex_arrow";a.id="arrow_"+e;while(b.childNodes.length>0){b.removeChild(b.childNodes[0])}b.appendChild(a)}if(this.conf.dload&&(this.itemPull[e].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[e]["complex"])&&(a!=null)){b.removeChild(a);if(this.itemPull[e]["hotkey_backup"]!=null&&this.setHotKey){this.setHotKey(e.replace(this.idPrefix,""),this.itemPull[e]["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(c,d){c=this.idPrefix+c;var i=this.itemPull[c]["type"];if(i=="checkbox"||i=="radio"){return}var f=(this.itemPull[c]["parent"]==this.idPrefix+this.topId&&!this.conf.context);var g=null;if(f){for(var a=0;a0){if(g!=null){if(this.conf.icons_css==true){g.className=this.conf.icons_path+k}else{g.src=this.conf.icons_path+k}}else{if(f){if(this.conf.icons_css==true){var g=document.createElement("i");g.className=this.conf.icons_path+k}else{var g=document.createElement("IMG");g.className="dhtmlxMenu_TopLevel_Item_Icon";g.src=this.conf.icons_path+k;g.border="0";g.id="image_"+c}if(!this.conf.rtl&&this.idPull[c].childNodes.length>0){this.idPull[c].insertBefore(g,this.idPull[c].childNodes[0])}else{this.idPull[c].appendChild(g)}}else{if(this.conf.icons_css==true){var j=this.idPull[c].childNodes[this.conf.rtl?2:0];j.innerHTML=""}else{var g=document.createElement("IMG");g.className="sub_icon";g.src=this.conf.icons_path+k;g.border="0";g.id="image_"+c;var j=this.idPull[c].childNodes[this.conf.rtl?2:0];while(j.childNodes.length>0){j.removeChild(j.childNodes[0])}j.appendChild(g)}}}}else{if(g!=null){if(f){g.parentNode.removeChild(g);g=null}else{var b=g.parentNode;b.removeChild(g);b.innerHTML=" ";b=g=null}}}};dhtmlXMenuObject.prototype._getAllParents=function(f){var c=new Array();for(var b in this.itemPull){if(this.itemPull[b]["parent"]==f){c[c.length]=this.itemPull[b]["id"];if(this.itemPull[b]["complex"]){var d=this._getAllParents(this.itemPull[b]["id"]);for(var e=0;e0){a.title=this.itemPull[h]["tip"]}if((this.itemPull[h]["imgen"]!="")||(this.itemPull[h]["imgdis"]!="")){var d=this.itemPull[h][(this.itemPull[h]["state"]=="enabled")?"imgen":"imgdis"];if(d){if(this.conf.icons_css==true){var c=document.createElement("i");c.className=this.conf.icons_path+d;if(a.childNodes.length>0&&!this.conf.rtl){a.insertBefore(c,a.childNodes[0])}else{a.appendChild(c)}}else{var b=document.createElement("IMG");b.border="0";b.id="image_"+h;b.src=this.conf.icons_path+d;b.className="dhtmlxMenu_TopLevel_Item_Icon";if(a.childNodes.length>0&&!this.conf.rtl){a.insertBefore(b,a.childNodes[0])}else{a.appendChild(b)}}}}a.onselectstart=function(i){i=i||event;if(i.preventDefault){i.preventDefault()}else{i.returnValue=false}return false};a.oncontextmenu=function(i){i=i||event;if(i.preventDefault){i.preventDefault()}else{i.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(g!=null){g++;if(g<0){g=0}if(g>this.cont.childNodes.length-1){g=null}}if(g!=null){this.cont.insertBefore(a,this.cont.childNodes[g])}else{this.cont.appendChild(a)}this.idPull[a.id]=a;if(this.itemPull[h]["complex"]&&(!this.conf.dload)){this._addSubMenuPolygon(this.itemPull[h]["id"],this.itemPull[h]["id"])}a.onmouseover=function(){if(f.conf.mode=="web"){window.clearTimeout(f.conf.tm_handler)}var j=f._getSubItemToDeselectByPolygon("parent");f._removeSubItemFromSelected(-1,-1);for(var l=0;l
';var c=document.createElement("TABLE");c.className="dhtmlxMebu_SubLevelArea_Tbl";c.cellSpacing=0;c.cellPadding=0;c.border=0;var a=document.createElement("TBODY");c.appendChild(a);b.childNodes[1].appendChild(c);b.tbl=c;b.tbd=a;this.idPull[b.id]=b;if(this.sxDacProc!=null){this.idPull["sxDac_"+d]=new this.sxDacProc(b,b.className);if(window.dhx4.isIE){this.idPull["sxDac_"+d]._setSpeed(this.dacSpeedIE);this.idPull["sxDac_"+d]._setCustomCycle(this.dacCyclesIE)}else{this.idPull["sxDac_"+d]._setSpeed(this.dacSpeed);this.idPull["sxDac_"+d]._setCustomCycle(this.dacCycles)}}return b};dhtmlXMenuObject.prototype._renderSublevelItem=function(a,j){var h=this;var i=document.createElement("TR");i.className=(this.itemPull[a]["state"]=="enabled"?"sub_item":"sub_item_dis");var g=document.createElement("TD");g.className="sub_item_icon";var n=this.itemPull[a]["type"];var k=this.itemPull[a][(this.itemPull[a]["state"]=="enabled"?"imgen":"imgdis")];if(k!=""){if(n=="checkbox"||n=="radio"){var e=document.createElement("DIV");e.id="image_"+this.itemPull[a]["id"];e.className="sub_icon "+k;g.appendChild(e)}if(!(n=="checkbox"||n=="radio")){if(this.conf.icons_css==true){g.innerHTML=""}else{var e=document.createElement("IMG");e.id="image_"+this.itemPull[a]["id"];e.className="sub_icon";e.src=this.conf.icons_path+k;g.appendChild(e)}}}else{g.innerHTML=" "}var f=document.createElement("TD");f.className="sub_item_text";if(this.itemPull[a]["title"]!=""){var m=document.createElement("DIV");m.className="sub_item_text";m.innerHTML=this.itemPull[a]["title"];f.appendChild(m)}else{f.innerHTML=" "}var d=document.createElement("TD");d.className="sub_item_hk";if(this.itemPull[a]["complex"]){var b=document.createElement("DIV");b.className="complex_arrow";b.id="arrow_"+this.itemPull[a]["id"];d.appendChild(b)}else{if(this.itemPull[a]["hotkey"].length>0&&!this.itemPull[a]["complex"]){var c=document.createElement("DIV");c.className="sub_item_hk";c.innerHTML=this.itemPull[a]["hotkey"];d.appendChild(c)}else{d.innerHTML=" "}}i.appendChild(this.conf.rtl?d:g);i.appendChild(f);i.appendChild(this.conf.rtl?g:d);i.id=this.itemPull[a]["id"];i.parent=this.itemPull[a]["parent"];if(this.itemPull[a]["tip"].length>0){i.title=this.itemPull[a]["tip"]}i.onselectstart=function(o){o=o||event;if(o.preventDefault){o.preventDefault()}else{o.returnValue=false}return false};i.onmouseover=function(o){if(h.conf.hide_tm[this.id]){window.clearTimeout(h.conf.hide_tm[this.id])}if(h.conf.mode=="web"){window.clearTimeout(h.conf.tm_handler)}if(!this._visible){h._redistribSubLevelSelection(this.id,this.parent)}this._visible=true};i.onmouseout=function(){if(h.conf.mode=="web"){if(h.conf.tm_handler){window.clearTimeout(h.conf.tm_handler)}h.conf.tm_handler=window.setTimeout(function(){if(h&&h._clearAndHide){h._clearAndHide()}},h.conf.tm_sec,"JavaScript")}var o=this;if(h.conf.hide_tm[this.id]){window.clearTimeout(h.conf.hide_tm[this.id])}h.conf.hide_tm[this.id]=window.setTimeout(function(){o._visible=false},50)};i.onclick=function(p){if(!h.checkEvent("onClick")&&h.itemPull[this.id]["complex"]){return}p=p||event;p.cancelBubble=true;if(p.preventDefault){p.preventDefault()}else{p.returnValue=false}tc=(h.itemPull[this.id]["complex"]?"c":"-");td=(h.itemPull[this.id]["state"]=="enabled"?"-":"d");var o={ctrl:p.ctrlKey,alt:p.altKey,shift:p.shiftKey};switch(h.itemPull[this.id]["type"]){case"checkbox":h._checkboxOnClickHandler(this.id.replace(h.idPrefix,""),tc+td+"n",o);break;case"radio":h._radioOnClickHandler(this.id.replace(h.idPrefix,""),tc+td+"n",o);break;case"item":h._doOnClick(this.id.replace(h.idPrefix,""),tc+td+"n",o);break}return false};var l=this.idPull["polygon_"+this.itemPull[a]["parent"]];if(j!=null){j++;if(j<0){j=0}if(j>l.tbd.childNodes.length-1){j=null}}if(j!=null&&l.tbd.childNodes[j]!=null){l.tbd.insertBefore(i,l.tbd.childNodes[j])}else{l.tbd.appendChild(i)}this.idPull[i.id]=i};dhtmlXMenuObject.prototype._renderSeparator=function(b,g){var a=(this.conf.context?"SubLevelArea":(this.itemPull[b]["parent"]==this.idPrefix+this.topId?"TopLevel":"SubLevelArea"));if(a=="TopLevel"&&this.conf.context){return}var e=this;if(a!="TopLevel"){var f=document.createElement("TR");f.className="sub_sep";var c=document.createElement("TD");c.colSpan="3";f.appendChild(c)}var d=document.createElement("DIV");d.id="separator_"+b;d.className=(a=="TopLevel"?"top_sep":"sub_sep");d.onselectstart=function(j){j=j||event;if(j.preventDefault){j.preventDefault()}else{j.returnValue=false}};d.onclick=function(k){k=k||event;k.cancelBubble=true;var j={ctrl:k.ctrlKey,alt:k.altKey,shift:k.shiftKey};e._doOnClick(this.id.replace("separator_"+e.idPrefix,""),"--s",j)};if(a=="TopLevel"){if(g!=null){g++;if(g<0){g=0}if(this.cont.childNodes[g]!=null){this.cont.insertBefore(d,this.cont.childNodes[g])}else{this.cont.appendChild(d)}}else{var i=this.cont.childNodes[this.cont.childNodes.length-1];if(String(i).search("TopLevel_Text")==-1){this.cont.appendChild(d)}else{this.cont.insertBefore(d,i)}}this.idPull[d.id]=d}else{var h=this.idPull["polygon_"+this.itemPull[b]["parent"]];if(g!=null){g++;if(g<0){g=0}if(g>h.tbd.childNodes.length-1){g=null}}if(g!=null&&h.tbd.childNodes[g]!=null){h.tbd.insertBefore(f,h.tbd.childNodes[g])}else{h.tbd.appendChild(f)}c.appendChild(d);this.idPull[d.id]=f}};dhtmlXMenuObject.prototype.addNewSeparator=function(a,b){b=this.idPrefix+(b!=null?b:this._genStr(24));var c=this.idPrefix+this.getParentId(a);this._addItemIntoGlobalStrorage(b,c,"","separator",false,"","");this._renderSeparator(b,this.getItemPosition(a))};dhtmlXMenuObject.prototype._initObj=function(l,m,g){if(!(l instanceof Array)){g=l.parentId;if(g!=null&&String(g).indexOf(this.idPrefix)!==0){g=this.idPrefix+String(g)}l=l.items}for(var c=0;c0){this.itemPull[l[c].id].complex=true;this._initObj(l[c].items,true,l[c].id)}else{if(this.conf.dload&&l[c].complex==true){this.itemPull[l[c].id].loaded="no"}}this.itemPull[l[c].id].items=null}if(m!==true){if(this.conf.dload==true){if(g==null){this._initTopLevelMenu()}else{this._addSubMenuPolygon(g,g);if(this.conf.selected==g){var j=(this.itemPull[g].parent==this.idPrefix+this.topId);var b=(j&&!this.conf.context?this.conf.dir_toplv:this.conf.dir_sublv);var e=false;if(j&&this.conf.top_mode&&this.conf.mode=="web"&&!this.conf.context){var o=this.idPull[g];if(o._mouseOver==true){var f=this.conf.top_tmtime-(new Date().getTime()-o._dynLoadTM);if(f>1){var i=g;var h=this;o._menuOpenTM=window.setTimeout(function(){h._showPolygon(i,b);h=i=null},f);e=true}}}if(!e){this._showPolygon(g,b)}}this.itemPull[g].loaded="yes";if(this.conf.dload_icon==true){this._updateLoaderIcon(g,false)}}}else{this._init()}}};dhtmlXMenuObject.prototype._xmlToJson=function(f,e){var h=[];if(e==null){var j=f.getElementsByTagName(this.conf.tags.root);if(j==null||(j!=null&&j.length==0)){return{items:[]}}j=j[0]}else{j=f}if(j.getAttribute("parentId")!=null){e=this.idPrefix+j.getAttribute("parentId")}for(var b=0;b0)}for(var k=0;k=0){return}var b=(this.conf.rtl?0:2);if(!this.idPull[d].childNodes[b]){return}if(!this.idPull[d].childNodes[b].childNodes[0]){return}var a=this.idPull[d].childNodes[b].childNodes[0];if(String(a.className).search("complex_arrow")===0){a.className="complex_arrow"+(c?"_loading":"")}};dhtmlXMenuObject.prototype.addNewSibling=function(d,e,a,b,c,h){var g=this.idPrefix+(e!=null?e:this._genStr(24));var f=this.idPrefix+(d!=null?this.getParentId(d):this.topId);this._addItemIntoGlobalStrorage(g,f,a,"item",b,c,h);if((f==this.idPrefix+this.topId)&&(!this.conf.context)){this._renderToplevelItem(g,this.getItemPosition(d))}else{this._renderSublevelItem(g,this.getItemPosition(d))}};dhtmlXMenuObject.prototype.addNewChild=function(g,f,d,a,b,c,e){if(g==null){if(this.conf.context){g=this.topId}else{this.addNewSibling(g,d,a,b,c,e);if(f!=null){this.setItemPosition(d,f)}return}}d=this.idPrefix+(d!=null?d:this._genStr(24));if(this.setHotKey){this.setHotKey(g,"")}g=this.idPrefix+g;this._addItemIntoGlobalStrorage(d,g,a,"item",b,c,e);if(this.idPull["polygon_"+g]==null){this._renderSublevelPolygon(g,g)}this._renderSublevelItem(d,f-1);this._redefineComplexState(g)};dhtmlXMenuObject.prototype.removeItem=function(d,f,e){if(!f){d=this.idPrefix+d}var g=null;if(d!=this.idPrefix+this.topId){if(this.itemPull[d]==null){return}if(this.idPull["polygon_"+d]&&this.idPull["polygon_"+d]._tmShow){window.clearTimeout(this.idPull["polygon_"+d]._tmShow)}var l=this.itemPull[d]["type"];if(l=="separator"){var k=this.idPull["separator_"+d];if(this.itemPull[d]["parent"]==this.idPrefix+this.topId){k.onclick=null;k.onselectstart=null;k.id=null;k.parentNode.removeChild(k)}else{k.childNodes[0].childNodes[0].onclick=null;k.childNodes[0].childNodes[0].onselectstart=null;k.childNodes[0].childNodes[0].id=null;k.childNodes[0].removeChild(k.childNodes[0].childNodes[0]);k.removeChild(k.childNodes[0]);k.parentNode.removeChild(k)}this.idPull["separator_"+d]=null;this.itemPull[d]=null;delete this.idPull["separator_"+d];delete this.itemPull[d];k=null}else{g=this.itemPull[d]["parent"];var k=this.idPull[d];k.onclick=null;k.oncontextmenu=null;k.onmouseover=null;k.onmouseout=null;k.onselectstart=null;k.id=null;while(k.childNodes.length>0){k.removeChild(k.childNodes[0])}k.parentNode.removeChild(k);this.idPull[d]=null;this.itemPull[d]=null;delete this.idPull[d];delete this.itemPull[d];k=null}l=null}for(var i in this.itemPull){if(this.itemPull[i]["parent"]==d){this.removeItem(i,true,true)}}var j=new Array(d);if(g!=null&&!e){if(this.idPull["polygon_"+g]!=null){if(this.idPull["polygon_"+g].tbd.childNodes.length==0){j.push(g);this._updateItemComplexState(g,false,false)}}}for(var b=0;b0){this.idPull[f].insertBefore(c,this.idPull[f].childNodes[0])}else{this.idPull[f].appendChild(c)}}c.innerHTML=this.itemPull[f]["title"]}}else{var c=null;for(var a=0;a0?a:null);this.itemPull[b]["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(c,a,b){if(this.itemPull[this.idPrefix+c]==null){return}this.itemPull[this.idPrefix+c]["href_link"]=a;if(b!=null){this.itemPull[this.idPrefix+c]["href_target"]=b}};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(b){var a=new Array(b);while(this.getParentId(b)!=this.topId){b=this.getParentId(b);a[a.length]=b}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(b,a){if(this.itemPull[this.idPrefix+b]==null){return}this.itemPull[this.idPrefix+b]["checked"]=a};dhtmlXMenuObject.prototype._updateCheckboxImage=function(b){if(this.idPull[this.idPrefix+b]==null){return}this.itemPull[this.idPrefix+b]["imgen"]="chbx_"+(this._getCheckboxState(b)?"1":"0");this.itemPull[this.idPrefix+b]["imgdis"]=this.itemPull[this.idPrefix+b]["imgen"];try{this.idPull[this.idPrefix+b].childNodes[(this.conf.rtl?2:0)].childNodes[0].className="sub_icon "+this.itemPull[this.idPrefix+b]["imgen"]}catch(a){}};dhtmlXMenuObject.prototype._checkboxOnClickHandler=function(d,a,b){if(a.charAt(1)=="d"){return}if(this.itemPull[this.idPrefix+d]==null){return}var c=this._getCheckboxState(d);if(this.checkEvent("onCheckboxClick")){if(this.callEvent("onCheckboxClick",[d,c,this.conf.ctx_zoneid,b])){this.setCheckboxState(d,!c)}}else{this.setCheckboxState(d,!c)}if(this.checkEvent("onClick")){this.callEvent("onClick",[d])}};dhtmlXMenuObject.prototype.setCheckboxState=function(b,a){this._setCheckboxState(b,a);this._updateCheckboxImage(b)};dhtmlXMenuObject.prototype.getCheckboxState=function(a){return this._getCheckboxState(a)};dhtmlXMenuObject.prototype.addCheckbox=function(h,d,i,j,k,a,e){if(this.conf.context&&d==this.topId){}else{if(this.itemPull[this.idPrefix+d]==null){return}if(h=="child"&&this.itemPull[this.idPrefix+d]["type"]!="item"){return}}var f="chbx_"+(a?"1":"0");var c=f;if(h=="sibling"){var b=this.idPrefix+(j!=null?j:this._genStr(24));var g=this.idPrefix+this.getParentId(d);this._addItemIntoGlobalStrorage(b,g,k,"checkbox",e,f,c);this.itemPull[b]["checked"]=a;this._renderSublevelItem(b,this.getItemPosition(d))}else{var b=this.idPrefix+(j!=null?j:this._genStr(24));var g=this.idPrefix+d;this._addItemIntoGlobalStrorage(b,g,k,"checkbox",e,f,c);this.itemPull[b]["checked"]=a;if(this.idPull["polygon_"+g]==null){this._renderSublevelPolygon(g,g)}this._renderSublevelItem(b,i-1);this._redefineComplexState(g)}};dhtmlXMenuObject.prototype.setHotKey=function(g,a){g=this.idPrefix+g;if(!(this.itemPull[g]!=null&&this.idPull[g]!=null)){return}if(this.itemPull[g]["parent"]==this.idPrefix+this.topId&&!this.conf.context){return}if(this.itemPull[g]["complex"]){return}var b=this.itemPull[g]["type"];if(!(b=="item"||b=="checkbox"||b=="radio")){return}var f=null;try{if(this.idPull[g].childNodes[this.conf.rtl?0:2].childNodes[0].className=="sub_item_hk"){f=this.idPull[g].childNodes[this.conf.rtl?0:2].childNodes[0]}}catch(d){}if(a.length==0){this.itemPull[g]["hotkey_backup"]=this.itemPull[g]["hotkey"];this.itemPull[g]["hotkey"]="";if(f!=null){f.parentNode.removeChild(f)}}else{this.itemPull[g]["hotkey"]=a;this.itemPull[g]["hotkey_backup"]=null;if(f==null){f=document.createElement("DIV");f.className="sub_item_hk";var c=this.idPull[g].childNodes[this.conf.rtl?0:2];while(c.childNodes.length>0){c.removeChild(c.childNodes[0])}c.appendChild(f)}f.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 c=this._getSubItemToDeselectByPolygon(a);for(var b=0;b0){var c=false;var e=a.scrollTop-this.conf.of_ustep;if(e<0){c=true;e=0}a.scrollTop=e;if(!c){var b=this;this.conf.of_utm=window.setTimeout(function(){b._doScrollUp(f,false);b=null},this.conf.of_utime)}else{d=true}}else{this._canScrollUp=false;this._checkArrowsState(f)}if(d){this._checkArrowsState(f)}};dhtmlXMenuObject.prototype._doScrollDown=function(f,d){var a=this.idPull["polygon_"+f].childNodes[1];if(this._canScrollDown&&a.scrollTop+a.offsetHeight<=a.scrollHeight){var c=false;var e=a.scrollTop+this.conf.of_dstep;if(e+a.offsetHeight>=a.scrollHeight){c=true;e=a.scrollHeight-a.offsetHeight}a.scrollTop=e;if(!c){var b=this;this.conf.of_dtm=window.setTimeout(function(){b._doScrollDown(f,false);b=null},this.conf.of_dtime)}else{d=true}}else{this._canScrollDown=false;this._checkArrowsState(f)}if(d){this._checkArrowsState(f)}};dhtmlXMenuObject.prototype._countPolygonItems=function(f){var d=0;for(var b in this.itemPull){var c=this.itemPull[b]["parent"];var e=this.itemPull[b]["type"];if(c==this.idPrefix+f&&(e=="item"||e=="radio"||e=="checkbox")){d++}}return d};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(c){try{var a=this.idPull[this.idPrefix+c].childNodes[(this.conf.rtl?2:0)].childNodes[0]}catch(b){var a=null}return a};dhtmlXMenuObject.prototype._setRadioState=function(d,c){var b=this._getRadioImgObj(d);if(b!=null){var a=this.itemPull[this.idPrefix+d];a.checked=c;a.imgen="rdbt_"+(a.checked?"1":"0");a.imgdis=a.imgen;b.className="sub_icon "+a.imgen}};dhtmlXMenuObject.prototype._radioOnClickHandler=function(d,a,b){if(a.charAt(1)=="d"||this.itemPull[this.idPrefix+d]["group"]==null){return}var c=this.itemPull[this.idPrefix+d]["group"];if(this.checkEvent("onRadioClick")){if(this.callEvent("onRadioClick",[c,this.getRadioChecked(c),d,this.conf.ctx_zoneid,b])){this.setRadioChecked(c,d)}}else{this.setRadioChecked(c,d)}if(this.checkEvent("onClick")){this.callEvent("onClick",[d])}};dhtmlXMenuObject.prototype.getRadioChecked=function(d){var f=null;for(var c=0;c";return a};dhtmlXMenuObject.prototype._readLevel=function(d){var e="";for(var i in this.itemPull){if(this.itemPull[i]["parent"]==d){var b="";var c="";var k="";var h=String(this.itemPull[i]["id"]).replace(this.idPrefix,"");var g="";var j=(this.itemPull[i]["title"]!=""?' text="'+this.itemPull[i]["title"]+'"':"");var f="";if(this.itemPull[i]["type"]=="item"){if(this.itemPull[i]["imgen"]!=""){b=' img="'+this.itemPull[i]["imgen"]+'"'}if(this.itemPull[i]["imgdis"]!=""){c=' imgdis="'+this.itemPull[i]["imgdis"]+'"'}if(this.itemPull[i]["hotkey"]!=""){k=""+this.itemPull[i]["hotkey"]+""}}if(this.itemPull[i]["type"]=="separator"){g=' type="separator"'}else{if(this.itemPull[i]["state"]=="disabled"){f=' enabled="false"'}}if(this.itemPull[i]["type"]=="checkbox"){g=' type="checkbox"'+(this.itemPull[i]["checked"]?' checked="true"':"")}if(this.itemPull[i]["type"]=="radio"){g=' type="radio" group="'+this.itemPull[i]["group"]+'" '+(this.itemPull[i]["checked"]?' checked="true"':"")}e+="";e+=k;if(this.itemPull[i]["complex"]){e+=this._readLevel(i)}e+=""}}return e};dhtmlXMenuObject.prototype.enableEffect=function(c,e,d){this._menuEffect=(c=="opacity"||c=="slide"||c=="slide+"?c:false);this._pOpStyleIE=(navigator.userAgent.search(/MSIE\s[678]\.0/gi)>=0);for(var b in this.idPull){if(b.search(/polygon/)===0){this._pOpacityApply(b,(this._pOpStyleIE?100:1));this.idPull[b].style.height=""}}this._pOpMax=(typeof(e)=="undefined"?100:e)/(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=d||50};dhtmlXMenuObject.prototype._showPolygonEffect=function(a){this._pShowHide(a,true)};dhtmlXMenuObject.prototype._hidePolygonEffect=function(a){this._pShowHide(a,false)};dhtmlXMenuObject.prototype._pOpacityApply=function(a,b){this.idPull[a].style[this._pOpStyleName]=String(this._pOpStyleValue).replace("#",b||this.idPull[a]._op)};dhtmlXMenuObject.prototype._pShowHide=function(a,b){if(!this.idPull){return}if(this.idPull[a]._tmShow!=null){if((this.idPull[a]._step_h>0&&b==true)||(this.idPull[a]._step_h<0&&b==false)){return}window.clearTimeout(this.idPull[a]._tmShow);this.idPull[a]._tmShow=null;this.idPull[a]._max_h=null}if(b==false&&(this.idPull[a].style.visibility=="hidden"||this.idPull[a].style.display=="none")){return}if(b==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=(b==true?0:this.idPull[a]._max_h);this.idPull[a]._step_h=Math.round(this.idPull[a]._max_h/this._pSlSteps)*(b==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)*(b==true?1:-1);if(this._pOpStyleIE){this.idPull[a].op_step=Math.round(this.idPull[a].op_step)}this.idPull[a]._op=(b==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(c,b){if(!this.idPull){return}if(this.idPull[c]._tmShow){window.clearTimeout(this.idPull[c]._tmShow)}this.idPull[c]._h=Math.max(0,Math.min(b,this.idPull[c]._max_h));if(this._menuEffect.search(/slide/)===0){this.idPull[c].style.height=this.idPull[c]._h+"px"}b+=this.idPull[c]._step_h;if(this._menuEffect=="slide+"||this._menuEffect=="opacity"){this.idPull[c]._op=Math.max(0,Math.min(this._pOpMax,this.idPull[c]._op+this.idPull[c].op_step));this._pOpacityApply(c)}if((this.idPull[c]._step_h>0&&b<=this.idPull[c]._max_h)||(this.idPull[c]._step_h<0&&b>=0)){var a=this;this.idPull[c]._tmShow=window.setTimeout(function(){a._pEffectSet(c,b)},this.idPull[c]._step_tm)}else{if(this._menuEffect.search(/slide/)===0){this.idPull[c].style.height=""}if(this.idPull[c]._step_h<0){this.idPull[c].style.visibility="hidden"}if(this._menuEffect=="slide+"||this._menuEffect=="opacity"){this.idPull[c]._op=(this.idPull[c]._step_h<0?(this._pOpStyleIE?100:1):this._pOpMax);this._pOpacityApply(c)}this.idPull[c]._tmShow=null;this.idPull[c]._h=null;this.idPull[c]._max_h=null;this.idPull[c]._step_tm=null}};