/*! uWnd library */ function _uFocus(t){t||(t={}),this.constructor=_uFocus,this._tp=t.type||0,this._thispar=t.thispar||null,this._param=t.param||null,this._parent=t.parent||null,delete t.type,delete t.thispar,delete t.param,delete t.parent,this.owner=null,$.extend(this,t||{}),this.destroyed=0,_uFocus.globalset||(_uFocus.globalset=!0,$(document).on("keydown keyup keypress",_uFocus._onkey)),2==this._tp&&_uFocus.glisteners.push(this)}function _uGetOffset(t){if(!t)return{left:0,top:0};var e=t.offsetLeft,s=t.offsetTop;if(e||s||null!=t.offsetParent)for(;null!=(t=t.offsetParent);)e+=t.offsetLeft,s+=t.offsetTop;else e=parseInt(t.style.left),s=parseInt(t.style.top);return{left:e,top:s}}function _uMenu(t,e,s){this.init(t,e,s)}function _uMENU(t,e,s,i,o){this.constructor=_uMENU,this.name=t,this.pos=$.extend({pos:null,alignObj:null,align:"d",parent:null,parentfocus:null,dx:0,dy:0,childdy:0,childdx:0},e||{}),this.props=$.extend({parentnode:s.wnd?s.wnd.top:null,design:_uMENU.defdesign||"std",hidden:s.statical&&i&&i.length>0?0:1,shadow:1,addclass:"",withmarks:null,highlight:1,statical:s.horiz?1:0,hidetimer:0,horiz:0,noabs:0,width:0,onshow:s.onshow?s.onshow:null,onhide:s.onhide?s.onhide:null,ondestroy:null,onitem:null,onldown:null,onrdown:null,thispar:null,onreadycreate:null,wnd:null,rtl:0},s||{}),this.state={visible:!1,init:!1,destroyed:!1},this.design=this.props.design&&_uMENU.designs[this.props.design]?_uMENU.designs[this.props.design]:_uMENU.designs.std,this.idx=_uMENU.nextidx++,_uMENU.all[this.idx]=this,this.pos.parent?this.zpos=this.pos.parent.zpos+5:this.zpos=_uMENU.defz,this.xpos=this.ypos=0,this.width=10,this.height=10,this.elems=[],this.add_elems=i&&i.length>0?[i]:[],this.del_elems=[],this.pend_show=null,this.appendtimer=null,this.decor={w:0,h:0},this.frame=null,this.childtimer=null,this.sh=null,this.hidetimer=null,this.hlitem=-1,this.have_active=null,this._focus=new _uFocus({type:1,thispar:this,owner:this,parent:this.pos.parentfocus?this.pos.parentfocus:this.pos.parent?this.pos.parent._focus:this.props.wnd?this.props.wnd._focus:null,onkeydown:this.onkeydown,ondeactivate:this.onfocusdeactivate});var a=document.createElement("div");a.id="_umenu"+this.idx,this.props.parentnode?this.props.parentnode.appendChild(a):$($("body")[0]).prepend(a),this.top=a,$(a).addClass("x-unselectable").css({visibility:"hidden",display:"block"});var n=document.createElement("div");if(a.appendChild(n),this.menu=n,this.havefixed=1,$.browser&&$.browser.msie&&(this.havefixed=0,parseFloat($.browser.version)>=7))try{a.style.position="fixed","fixed"==a.currentStyle.position&&(this.havefixed=1),a.style.position=""}catch(t){this.havefixed=1}this.props.noabs||($(a).css({position:"absolute",zIndex:this.zpos}),this.props.shadow&&!this.props.horiz&&(this.shadow_init(),this._resizeSh()),$(n).css({position:"absolute",zIndex:2,left:0})),$(n).css("width","50px").on("mousedown",this,_uMENU._onmenumousedown),this.parts=this.design.menu_init(n,this.props.horiz?10:50,this.props,this.pos.parent),_uMENU.globalset||(_uMENU.globalset=!0,$(document).on("mousedown",_uMENU.hideallmenus),$(window).on("resize",_uMENU.hideallmenus)),this.toinit=[],this.tocalcsize=[],this.createsubmenus(),this.props.hidden||this.show(),o||setTimeout("var m=_uMENU.all["+this.idx+"]; if (m)m.init1();",10)}function _uComboBox(t,e,s,i,o){if(this.constructor=_uComboBox,this.name=t,this.obj=e&&e.tagName?e:$("#"+e)[0],!this.obj)return null;var a;(this.obj._ucombobox=this,this.props=$.extend({design:"std",readonly:!1,haveicons:-1,deficon:null,listwidth:"auto",maxlistheight:"auto",colwidth:null,filter:0,nomatchtext:"",prompt:"",nodropdown:0,emptyprompt:"",filtertype:0,filtermax:0,haveotherprompt:"",translit:0,filtermarkclass:"",onchange:null,wnd:null,parentnode:s.wnd?s.wnd.top:null,app:s.wnd&&s.wnd.app?s.wnd.app:this,rtl:window._rtl},s||{}),this.props.readonly||(this.props.nodropdown=0),this.props.parentnode)?(this.parent=this.props.parentnode,(a=_uTabCtrl.findparentcontent(this.obj))?$(a).on("scroll",this,(function(t){t.data.destroyed||t.data.hidelist()})):this.props.wnd&&$(this.props.wnd.parts.wndcont).on("scroll",this,(function(t){t.data.destroyed||t.data.hidelist()}))):(a=_uTabCtrl.findparentcontent(this.obj))?this.parent=a:(a=_uWnd.findparent(this.obj))?(this.parent=a.top,$(a.parts.wndcont).on("scroll",this,(function(t){t.data.destroyed||t.data.hidelist()}))):this.parent=this.obj.parentNode;this.havemaxheight=0;var n=this.obj.ownerDocument?this.obj.ownerDocument.defaultView:null;n&&n.getComputedStyle?("static"===n.getComputedStyle(this.parent,null).position&&(this.parent.style.position="relative"),null!=n.getComputedStyle(this.parent,null).maxHeight&&(this.havemaxheight=1)):("static"===this.parent.currentStyle.position&&(this.parent.style.position="relative"),null!=this.parent.currentStyle.maxHeight&&(this.havemaxheight=1),this.parent.style.zoom=1),this.app=this.props.app,this.tablecols=i<=0?1:i,this.colwidth=this.props.colwidth||[],this.destroyed=!1,this.design=this.props.design&&_uComboBox.designs[this.props.design]?_uComboBox.designs[this.props.design]:_uComboBox.designs.std,this.idx=_uComboBox.nextidx++,_uComboBox.all[this.idx]=this,this.tablemode=this.tablecols>1||!this.props.filter?1:0,this.data=[],this.numdata=0,this.dataindex=0,this.prevfilter=-1,this.prevfilteridx=-2,o||(o=[]);for(var r=-1,l=0;l')[0],this.obj.removeAttribute("name"),(r<0||r>=o.length)&&(this.props.filter||this.prompttxt||(r=0),r=-1)):(this.obj.readOnly=!1,this.valobj=this.obj,(r<0||r>=o.length)&&(r=-1)),this.selected=this.userIdx=r,this.changetimer=null,this.haveicons=this.props.haveicons>0,this.props.haveicons<0)for(l=0;l
',emptycontent:"",onload:null,onshow:null,onhide:null,onerror:null,onbeforechange:null,onchange:null,onbeforeclose:null,onclose:null,ondestroy:null,onresize:null,rtl:0},s||{}),this.app=this.props.app,this.state={init:!1,destroyed:!1},this.design=this.props.design&&_uTabCtrl.designs[this.props.design]?_uTabCtrl.designs[this.props.design]:_uTabCtrl.designs.std,this.idx=_uTabCtrl.nextidx++,_uTabCtrl.all[this.idx]=this,this.width=parseInt(this.props.width)||0,this.height=parseInt(this.props.height)||0,this.data=[],this.pend_show=null,this.decor={cdw:0,cdh:0,pdw:0,pdh:0,ph:0},this.maxid=0,this.wnd=null,this.scrollpos={tabswidth:0,havewidth:0,pos:null};for(var n=0;n0?r.footerh:0,header:r.headerc||null,headerh:r.headerh&&r.headerh>0?r.headerh:0,footercont:null,headercont:null,cont:null,ismarkload:0,iserrorload:0,markloadcont:null,obj:null,ishidden:r.hidden,clbut:null,link:null,href:r.href,target:r.target,label:null,align:null==r.align?this.props.align:r.align,close:null==r.close?this.props.close:r.close,icon:r.icon,iconstyle:r.iconstyle,markload:r.markload,firstload:0,firstshow:0,xmlobj:null,xmlobj_ignoreabort:0,onload:null==r.onload?this.props.onload:r.onload,onerror:null==r.onerror?this.props.onerror:r.onerror,onshow:null==r.onshow?this.props.onshow:r.onshow,onhide:null==r.onhide?this.props.onhide:r.onhide,onbeforechange:null==r.onbeforechange?this.props.onbeforechange:r.onbeforechange,onchange:null==r.onchange?this.props.onchange:r.onchange,onbeforeclose:null==r.onbeforeclose?this.props.onbeforeclose:r.onbeforeclose,onclose:null==r.onclose?this.props.onclose:r.onclose}}this.active_tab="auto"==this.props.active_tab?"auto":this.idxbyid(this.props.active_tab),this.sesupdate=0,_uTabCtrl.globalset||(_uTabCtrl.globalset=!0),this.butdown=new _uDraggable(this,null,null,null,(function(t,e){this.design._onbuttonup(this,t,e)})),this.props.noinit||this.init()}function _uWnd(t,e,s,i,o,a,n,r){if("undefined"!=typeof uwnd_scale&&(s=Math.ceil(s*uwnd_scale.w)),t&&t.length>0){var l=_uWnd.getbyname(t);if(l)return o&&o.attachobj&&l.attachTo(o.attachobj,o.attachtype,o.attachdx,o.attachdy),l.props.reloadonnew?l.reload(a):l.show(),!1}this.constructor=_uWnd,this.desktop=this.opts&&this.opts.desktop||_uWnd.defdesktop,this.props=$.extend({parent:null,popup:0,alert:0,closeonesc:o.popup?1:0,nohide:0,reloadonnew:o.attachobj?0:1,x:"auto",y:"auto",attachobj:null,attachdx:0,attachdy:0,attachtype:null,initstate:null,headerh:0,headerc:null,hideheader:1,footerh:0,footerc:null,hidefooter:1,contentsizeprio:o.footerh>0||o.headerh>0?1:0,nomove:o.attachobj?1:0,hideonmove:1,center:o.modal?1:0,session:null,hidden:0,modal:0,toolwindow:0,resize:o.toolwindow||o.attachobj?0:1,fixed:_uWnd.defdesktop||o.desktop?0:1,minh:50,minw:0,maxh:0,maxw:0,autosize:o.toolwindow||o.attachobj?0:1,autosizestep:o.autosizestep>=1?o.autosizestep:10,autosizestepmult:o.autosizestepmult>0?o.autosizestepmult:1,autosizestepmultmult:1,autosizewidth:0,autosizeonimages:0,waitimages:0,hideonresize:0,hidehonresize:o.hideonresize,hidefonresize:o.hideonresize,havesysmenu:_uWnd.havesysmenu,attachicon:null,attachicontype:"",attachicondelta:2,attachiconact:"hide",icon:"",incostyle:null,header:e?1:0,min:this.desktop&&!(o.notaskbar||o.parent||o.toolwindow||o.alert||o.modal||o.attachobj)?1:0,max:!this.desktop||o.modal||o.attachobj?0:1,close:1,customButtons:null,notaskbar:o.parent||o.toolwindow||o.alert||o.modal||o.attachobj?1:0,align:"center",shadow:o.toolwindow?0:1,design:"std",topclass:null,gridclass:"myWinGrid",fadetype:o.toolwindow||o.modal||o.attachobj?0:1,fadespeed:800,fadeclosetype:o.toolwindow||o.modal||o.attachobj?0:1,fadeclosespeed:250,havemenu:n?1:0,menuopts:null,trayicon:null,traymenu:null,actlayer:0,markload:'
',havegrid:0,markwaitcont:'
',markwaitclass:"myWinGrid",oninit:null,oncontent:null,onafterimgload:null,onposchange:null,onactivate:null,ondeactivate:null,onerror:null,onbeforeclose:null,onclose:null,desktop:null,notabdestroy:0},o||{}),(this.props.modal||this.props.toolwindow)&&(this.props.min=0),this.props.toolwindow&&(this.props.max=0),this.props.session&&(this.props.x=this.props.session.x,this.props.y=this.props.session.y),this.modalparent=this.props.parent&&(this.props.parent.props.modal&&!this.props.parent.props.parent||this.props.parent.modalparent)?1:0,$.extend(this,{name:t,title:e||"",letsize:1,width:s&&Math.abs(s)>10?s:-300,height:i&&Math.abs(i)>10?i:-200,headerh:this.props.headerc&&this.props.headerh>=0?this.props.headerh:0,footerh:this.props.footerc&&this.props.footerh>=0?this.props.footerh:0,decor:{w:0,h:0,th:0},_content:a,state:{visible:!1,prevvisible:!1,minimized:!1,maximized:!1,loaded:!1,init:!1,disabled:!1,grided:!1,noshadow:!1,resizing:!1,destroyed:!1,focused:!1},xmlobj:null,xmlobj_ignoreabort:0,grid:null,frame:null,sh:null,sh_sz:[4,2],xpos:0,ypos:0,zpos:this.props.modal||this.props.alert||this.modalparent?_uWnd.getModalTopZ():_uWnd.getTopZ(),_drag:new _uDraggable(this,this._ondragmousemove,null,this.onstartdrag,this.onstopdrag),_resize:new _uDraggable(this,this._onrsmousemove,null,this.onstartrs,this.onstoprs),restRect:null,minheight:this.props.minh,minwidth:this.props.minw,maxheight:this.props.maxh,maxwidth:this.props.maxw,pend_show:null,autosz:{active:!1},imgloader:{timer:null,active:!1},menu:null,app:r||null,savedfocus:null,childs:[],nchilds:0,tabctrl:null,attachicon:"",sesupdate:0}),this.design=this.props.design&&_uWnd.designs[this.props.design]||_uWnd.designs.std,this.idx=_uWnd.nextidx++,_uWnd.all[this.idx]=this,this._focus=new _uFocus({type:0,owner:this,thispar:this,parent:this.props.parent&&this.props.toolwindow?this.props.parent._focus:this.app&&this.app._focus?this.app._focus:null,onkeydown:this._onkeydown,onkeypress:this._onkeypress,onactivate:this._onactivate,ondeactivate:this._ondeactivate,canactivate:this._canactivate}),this.havefixed=1,_uWnd.globalset||(_uWnd.globalset=!0,$(document).on("mousedown",_uWnd.closepopup),$(window).on("scroll",_uWnd._onscroll),$(window).on("resize",_uWnd._onresize),_uWnd.sysmenu=new _uMENU("",{align:"D"},{hidden:1,withmarks:1,onitem:_uWnd._onsysmenuitem},_uWnd.sysmenuitems)),this.init(n)}function _txt(sign){var lng=window._uDeflang,a,p=arguments;if(lng){var db=window._uSigns;a=db&&db[lng]&&sign in db[lng]?db[lng][sign]:sign}else a=sign;if("%eval:"==a.substr(0,6))try{return eval(a.substr(6))}catch(t){return"ERROR "+t}function _txtproc(t,e){return p[e]}return p.length>1&&(a=a.replace(/%([1-9])/g,_txtproc)),a}function _uColorBox(t,e,s){for(var i,o=new Array("00","33","66","99","CC","FF"),a=new Array("00","33","66","99","CC","FF"),n=new Array("00","33","66","99","CC","FF"),r=new Array("909090","939393","969696","999999","9C9C9C","9F9F9F","C0C0C0","C3C3C3","C6C6C6","C9C9C9","CCCCCC","E0E0E0","F0F0F0","F3F3F3","F6F6F6","F9F9F9","FCFCFC","FFFFFF"),l="00",h="00",d=0,p=0,u=0,c=0,m=0,f=0,b=0,g='';m<6;){g+="";for(c=0,h=n[u];c<6;){for(f=0,l=a[p];f<6;){var _=""+o[d]+l+h;g+='',f++,6==++d&&(d=0)}c++,6==++p&&(p=0),3==++b&&(g+="",b=0)}m++,6==++u&&(u=0)}for(var v=0;v';g+="
",$("#"+t).html(g)}function _uParseXML(xml,wnd,tabid,papp){xml=xml.documentElement;var tabctrl=null,app=null,_uParse_footers={};wnd&&wnd.constructor==_uTabCtrl?(tabctrl=wnd,wnd=tabctrl.wnd||null,app=papp||tabctrl.app||null):wnd&&wnd.constructor==_uWnd?app=papp||wnd.app||null:(app=papp||null,wnd=null),null==xml&&alert("Server connection Error. Sorry.");for(var _uParse_i=0;_uParse_i0){var r=target.match(/^([^:]+):(.+)/);r?("number"==typeof _uParse_footers["_uhh"+r]&&NaN!=_uParse_footers["_uhh"+r]&&_uTabCtrl.headerheight(r[1],r[2],_uParse_footers["_uhh"+r]),"number"==typeof _uParse_footers["_ufh"+r]&&NaN!=_uParse_footers["_ufh"+r]&&_uTabCtrl.footerheight(r[1],r[2],_uParse_footers["_ufh"+r]),_uTabCtrl.content(r[1],r[2],data,_uParse_footers["_uhc"+r],_uParse_footers["_ufc"+r])):_uWnd.content(target,data)}else if("header"==cmd&&target.length>0){var r=target.match(/^([^:]+):(.+)/);r?(_uParse_footers["_uhc"+r]=data,_uParse_footers["_uhh"+r]=height):(NaN!=height&&_uWnd.headerheight(target,height),_uWnd.header(target,data))}else if("footer"==cmd&&target.length>0){var r=target.match(/^([^:]+):(.+)/);r?(_uParse_footers["_ufc"+r]=data,_uParse_footers["_ufh"+r]=height):(NaN!=height&&_uWnd.footerheight(target,height),_uWnd.footer(target,data))}else if("title"==cmd&&target.length>0){var r=target.match(/^([^:]+):(.+)/);r?_uTabCtrl.setTitle(r[1],r[2],data):_uWnd.setTitle(target,data)}else if("close"==cmd&&target.length>0){var r=target.match(/^([^:]+):(.+)/);r?!data||isNaN(parseInt(data))?_uTabCtrl.closeTab(r[1],r[2]):setTimeout("_uTabCtrl.closeTab('"+r[1]+"','"+r[2]+"');",parseInt(data)):!data||isNaN(parseInt(data))?_uWnd.close(target):setTimeout("_uWnd.close('"+target+"');",parseInt(data))}else tabctrl&&tabid?"content"==cmd?("number"==typeof _uParse_footers._uhh&&NaN!=_uParse_footers._uhh&&tabctrl.headerheight(tabid,_uParse_footers._uhh),"number"==typeof _uParse_footers._ufh&&NaN!=_uParse_footers._ufh&&tabctrl.footerheight(tabid,_uParse_footers._ufh),tabctrl.content(tabid,data,_uParse_footers._uhc,_uParse_footers._ufc)):"header"==cmd?(_uParse_footers._uhc=data,_uParse_footers._uhh=height):"footer"==cmd?(_uParse_footers._ufc=data,_uParse_footers._ufh=height):"title"==cmd?tabctrl.setTitle(tabid,data):"close"==cmd&&(!data||isNaN(parseInt(data))?tabctrl.closeTab(tabid):setTimeout("var w=_uTabCtrl.all["+tabctrl.idx+"]; if (w)w.closeTab('"+tabid+"');",parseInt(data))):wnd&&!tabctrl&&("content"==cmd?wnd.content(data):"header"==cmd?(NaN!=height&&wnd.headerheight(height),wnd.header(data)):"footer"==cmd?(NaN!=height&&wnd.footerheight(height),wnd.footer(data)):"title"==cmd?wnd.setTitle(data):"close"==cmd&&(!data||isNaN(parseInt(data))?wnd.close():setTimeout("var w=_uWnd.all["+wnd.idx+"]; if (w)w.close();",parseInt(data))))}}String.prototype.render=function(t){!t&&(t={});let e=this;return/\?\?(.+?)\?\?/.test(e)&&(e=e.replace(/\?\?(.+?)=(.+?)\?\?/g,(function(e,s,i){return t[s]?i:""}))),e.replace(/\{\{(.+?)\}\}/g,(function(e,s){return t[s]||""}))},function(t){function e(t,e,s){throw new t("Failed to execute 'requestSubmit' on 'HTMLFormElement': "+e+".",s)}"function"!=typeof t.requestSubmit&&(t.requestSubmit=function(t){t?(!function(t,s){t instanceof HTMLElement||e(TypeError,"parameter 1 is not of type 'HTMLElement'"),"submit"==t.type||e(TypeError,"The specified element is not a submit button"),t.form==s||e(DOMException,"The specified element is not owned by this form element","NotFoundError")}(t,this),t.click()):((t=document.createElement("input")).type="submit",t.hidden=!0,this.appendChild(t),t.click(),this.removeChild(t))})}(HTMLFormElement.prototype),jQuery.ajaxSettings.traditional=!0, /*! * jQuery Form Plugin * version: 4.2.2 * Requires jQuery v1.7.2 or later * Project repository: https://github.com/jquery-form/form * Copyright 2017 Kevin Morris * Copyright 2006 M. Alsup * Dual licensed under the LGPL-2.1+ or MIT licenses * https://github.com/jquery-form/form#license * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,s){return void 0===s&&(s="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(s),s}:t(jQuery)}((function(t){"use strict";var e=/\r?\n/g,s={};s.fileapi=void 0!==t('').get(0).files,s.formdata=void 0!==window.FormData;var i=!!t.fn.prop;function o(e){var s=e.data;e.isDefaultPrevented()||(e.preventDefault(),t(e.target).closest("form").ajaxSubmit(s))}function a(e){var s=e.target,i=t(s);if(!i.is("[type=submit],[type=image]")){var o=i.closest("[type=submit]");if(0===o.length)return;s=o[0]}var a=s.form;if(a.clk=s,"image"===s.type)if(void 0!==e.offsetX)a.clk_x=e.offsetX,a.clk_y=e.offsetY;else if("function"==typeof t.fn.offset){var n=i.offset();a.clk_x=e.pageX-n.left,a.clk_y=e.pageY-n.top}else a.clk_x=e.pageX-s.offsetLeft,a.clk_y=e.pageY-s.offsetTop;setTimeout((function(){a.clk=a.clk_x=a.clk_y=null}),100)}function n(){if(t.fn.ajaxSubmit.debug){var e="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e)}}t.fn.attr2=function(){if(!i)return this.attr.apply(this,arguments);var t=this.prop.apply(this,arguments);return t&&t.jquery||"string"==typeof t?t:this.attr.apply(this,arguments)},t.fn.ajaxSubmit=function(e,o,a,r){if(!this.length)return n("ajaxSubmit: skipping submit process - no element selected"),this;var l,h,d,p=this;"function"==typeof e?e={success:e}:"string"==typeof e||!1===e&&arguments.length>0?(e={url:e,data:o,dataType:a},"function"==typeof r&&(e.success=r)):void 0===e&&(e={}),l=e.method||e.type||this.attr2("method"),(d=(d="string"==typeof(h=e.url||this.attr2("action"))?t.trim(h):"")||window.location.href||"")&&(d=(d.match(/^([^#]+)/)||[])[1]),e=t.extend(!0,{url:d,success:t.ajaxSettings.success,type:l||t.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},e);var u={};if(this.trigger("form-pre-serialize",[this,e,u]),u.veto)return n("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(e.beforeSerialize&&!1===e.beforeSerialize(this,e))return n("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var c=e.traditional;void 0===c&&(c=t.ajaxSettings.traditional);var m,f=[],b=this.formToArray(e.semantic,f,e.filtering);if(e.data){var g=t.isFunction(e.data)?e.data(b):e.data;e.extraData=g,m=t.param(g,c)}if(e.beforeSubmit&&!1===e.beforeSubmit(b,this,e))return n("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[b,this,e,u]),u.veto)return n("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var _=t.param(b,c);m&&(_=_?_+"&"+m:m),"GET"===e.type.toUpperCase()?(e.url+=(e.url.indexOf("?")>=0?"&":"?")+_,e.data=null):e.data=_;var v=[];if(e.resetForm&&v.push((function(){p.resetForm()})),e.clearForm&&v.push((function(){p.clearForm(e.includeHidden)})),!e.dataType&&e.target){var w=e.success||function(){};v.push((function(s,i,o){var a=arguments,n=e.replaceTarget?"replaceWith":"html";t(e.target)[n](s).each((function(){w.apply(this,a)}))}))}else e.success&&(t.isArray(e.success)?t.merge(v,e.success):v.push(e.success));if(e.success=function(t,s,i){for(var o=e.context||this,a=0,n=v.length;a0,k="multipart/form-data",T=p.attr("enctype")===k||p.attr("encoding")===k,C=s.fileapi&&s.formdata;n("fileAPI :"+C);var z,W=(j||T)&&!C;!1!==e.iframe&&(e.iframe||W)?e.closeKeepAlive?t.get(e.closeKeepAlive,(function(){z=N(b)})):z=N(b):z=(j||T)&&C?I(b):t.ajax(e),p.removeData("jqxhr").data("jqxhr",z);for(var S=0;S',x)).css({position:"absolute",top:"-1000px",left:"-1000px"}),c=u[0],m={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var s="timeout"===e?"timeout":"aborted";n("aborting upload... "+s),this.aborted=1;try{c.contentWindow.document.execCommand&&c.contentWindow.document.execCommand("Stop")}catch(t){}u.attr("src",r.iframeSrc),m.error=s,r.error&&r.error.call(r.context,m,s,e),h&&t.event.trigger("ajaxError",[m,r,s]),r.complete&&r.complete.call(r.context,m,s)}},(h=r.global)&&0==t.active++&&t.event.trigger("ajaxStart"),h&&t.event.trigger("ajaxSend",[m,r]),r.beforeSend&&!1===r.beforeSend.call(r.context,m,r))return r.global&&t.active--,y.reject(),y;if(m.aborted)return y.reject(),y;(b=w.clk)&&(g=b.name)&&!b.disabled&&(r.extraData=r.extraData||{},r.extraData[g]=b.value,"image"===b.type&&(r.extraData[g+".x"]=w.clk_x,r.extraData[g+".y"]=w.clk_y));function j(t){var e=null;try{t.contentWindow&&(e=t.contentWindow.document)}catch(t){n("cannot get iframe.contentWindow document: "+t)}if(e)return e;try{e=t.contentDocument?t.contentDocument:t.document}catch(s){n("cannot get iframe.contentDocument: "+s),e=t.document}return e}var k=t("meta[name=csrf-token]").attr("content"),T=t("meta[name=csrf-param]").attr("content");function C(){var e=p.attr2("target"),s=p.attr2("action"),i=p.attr("enctype")||p.attr("encoding")||"multipart/form-data";w.setAttribute("target",d),l&&!/post/i.test(l)||w.setAttribute("method","POST"),s!==r.url&&w.setAttribute("action",r.url),r.skipEncodingOverride||l&&!/post/i.test(l)||p.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),r.timeout&&(v=setTimeout((function(){_=!0,I(1)}),r.timeout));var o=[];try{if(r.extraData)for(var a in r.extraData)r.extraData.hasOwnProperty(a)&&(t.isPlainObject(r.extraData[a])&&r.extraData[a].hasOwnProperty("name")&&r.extraData[a].hasOwnProperty("value")?o.push(t('',x).val(r.extraData[a].value).appendTo(w)[0]):o.push(t('',x).val(r.extraData[a]).appendTo(w)[0]));r.iframeTarget||u.appendTo($),c.attachEvent?c.attachEvent("onload",I):c.addEventListener("load",I,!1),setTimeout((function t(){try{var e=j(c).readyState;n("state = "+e),e&&"uninitialized"===e.toLowerCase()&&setTimeout(t,50)}catch(t){n("Server abort: ",t," (",t.name,")"),I(2),v&&clearTimeout(v),v=void 0}}),15);try{w.submit()}catch(t){document.createElement("form").submit.apply(w)}}finally{w.setAttribute("action",s),w.setAttribute("enctype",i),e?w.setAttribute("target",e):p.removeAttr("target"),t(o).remove()}}T&&k&&(r.extraData=r.extraData||{},r.extraData[T]=k),r.forceSync?C():setTimeout(C,10);var z,W,S,M=50;function I(e){if(!m.aborted&&!S){if((W=j(c))||(n("cannot access response document"),e=2),1===e&&m)return m.abort("timeout"),void y.reject(m,"timeout");if(2===e&&m)return m.abort("server abort"),void y.reject(m,"error","server abort");if(W&&W.location.href!==r.iframeSrc||_){c.detachEvent?c.detachEvent("onload",I):c.removeEventListener("load",I,!1);var s,i="success";try{if(_)throw"timeout";var o="xml"===r.dataType||W.XMLDocument||t.isXMLDoc(W);if(n("isXml="+o),!o&&window.opera&&(null===W.body||!W.body.innerHTML)&&--M)return n("requeing onLoad callback, DOM not available"),void setTimeout(I,250);var a=W.body?W.body:W.documentElement;m.responseText=a?a.innerHTML:null,m.responseXML=W.XMLDocument?W.XMLDocument:W,o&&(r.dataType="xml"),m.getResponseHeader=function(t){return{"content-type":r.dataType}[t.toLowerCase()]},a&&(m.status=Number(a.getAttribute("status"))||m.status,m.statusText=a.getAttribute("statusText")||m.statusText);var l=(r.dataType||"").toLowerCase(),d=/(json|script|text)/.test(l);if(d||r.textarea){var p=W.getElementsByTagName("textarea")[0];if(p)m.responseText=p.value,m.status=Number(p.getAttribute("status"))||m.status,m.statusText=p.getAttribute("statusText")||m.statusText;else if(d){var f=W.getElementsByTagName("pre")[0],b=W.getElementsByTagName("body")[0];f?m.responseText=f.textContent?f.textContent:f.innerText:b&&(m.responseText=b.textContent?b.textContent:b.innerText)}}else"xml"===l&&!m.responseXML&&m.responseText&&(m.responseXML=N(m.responseText));try{z=D(m,l,r)}catch(t){i="parsererror",m.error=s=t||i}}catch(t){n("error caught: ",t),i="error",m.error=s=t||i}m.aborted&&(n("upload aborted"),i=null),m.status&&(i=m.status>=200&&m.status<300||304===m.status?"success":"error"),"success"===i?(r.success&&r.success.call(r.context,z,"success",m),y.resolve(m.responseText,"success",m),h&&t.event.trigger("ajaxSuccess",[m,r])):i&&(void 0===s&&(s=m.statusText),r.error&&r.error.call(r.context,m,i,s),y.reject(m,"error",s),h&&t.event.trigger("ajaxError",[m,r,s])),h&&t.event.trigger("ajaxComplete",[m,r]),h&&!--t.active&&t.event.trigger("ajaxStop"),r.complete&&r.complete.call(r.context,m,i),S=!0,r.timeout&&clearTimeout(v),setTimeout((function(){r.iframeTarget?u.attr("src",r.iframeSrc):u.remove(),m.responseXML=null}),100)}}}var N=t.parseXML||function(t,e){return window.ActiveXObject?((e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t)):e=(new DOMParser).parseFromString(t,"text/xml"),e&&e.documentElement&&"parsererror"!==e.documentElement.nodeName?e:null},A=t.parseJSON||function(t){return window.eval("("+t+")")},D=function(e,s,i){var o=e.getResponseHeader("content-type")||"",a=("xml"===s||!s)&&o.indexOf("xml")>=0,n=a?e.responseXML:e.responseText;return a&&"parsererror"===n.documentElement.nodeName&&t.error&&t.error("parsererror"),i&&i.dataFilter&&(n=i.dataFilter(n,s)),"string"==typeof n&&(("json"===s||!s)&&o.indexOf("json")>=0?n=A(n):("script"===s||!s)&&o.indexOf("javascript")>=0&&t.globalEval(n)),n};return y}},t.fn.ajaxForm=function(e,s,i,r){if(("string"==typeof e||!1===e&&arguments.length>0)&&(e={url:e,data:s,dataType:i},"function"==typeof r&&(e.success=r)),(e=e||{}).delegation=e.delegation&&t.isFunction(t.fn.on),!e.delegation&&0===this.length){var l={s:this.selector,c:this.context};return!t.isReady&&l.s?(n("DOM not ready, queuing ajaxForm"),t((function(){t(l.s,l.c).ajaxForm(e)})),this):(n("terminating; zero elements found by selector"+(t.isReady?"":" (DOM not ready)")),this)}return e.delegation?(t(document).off("submit.form-plugin",this.selector,o).off("click.form-plugin",this.selector,a).on("submit.form-plugin",this.selector,e,o).on("click.form-plugin",this.selector,e,a),this):this.ajaxFormUnbind().on("submit.form-plugin",e,o).on("click.form-plugin",e,a)},t.fn.ajaxFormUnbind=function(){return this.off("submit.form-plugin click.form-plugin")},t.fn.formToArray=function(e,i,o){var a=[];if(0===this.length)return a;var n,r,l,h,d,p,u,c,m=this[0],f=this.attr("id"),b=e||void 0===m.elements?m.getElementsByTagName("*"):m.elements;if(b&&(b=t.makeArray(b)),f&&(e||/(Edge|Trident)\//.test(navigator.userAgent))&&(n=t(':input[form="'+f+'"]').get()).length&&(b=(b||[]).concat(n)),!b||!b.length)return a;for(t.isFunction(o)&&(b=t.map(b,o)),r=0,u=b.length;r=1.3?0:1},e.window=function(e){return t(window)._scrollable()},t.fn._scrollable=function(){return this.map((function(){var e=this;if(!(!e.nodeName||-1!=t.inArray(e.nodeName.toLowerCase(),["iframe","#document","html","body"])))return e;var s=(e.contentWindow||e).document||e.ownerDocument||e;return t.browser&&t.browser.safari||"BackCompat"==s.compatMode?s.body:s.documentElement}))},t.fn.scrollTo=function(i,o,a){return"object"==typeof o&&(a=o,o=0),"function"==typeof a&&(a={onAfter:a}),"max"==i&&(i=9e9),a=t.extend({},e.defaults,a),o=o||a.speed||a.duration,a.queue=a.queue&&a.axis.length>1,a.queue&&(o/=2),a.offset=s(a.offset),a.over=s(a.over),this._scrollable().each((function(){var n,r=this,l=t(r),h=i,d={},p=l.is("html,body");switch(typeof h){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(h)){h=s(h);break}h=t(h,this);case"object":(h.is||h.style)&&(n=(h=t(h)).offset()||{left:0,top:0})}function u(t){l.animate(d,o,a.easing,t&&function(){t.call(this,i,a)})}t.each(a.axis.split(""),(function(t,s){var i="x"==s?"Left":"Top",o=i.toLowerCase(),c="scroll"+i,m=r[c],f=e.max(r,s);if(n)d[c]=n[o]+(p?0:m-l.offset()[o]),a.margin&&(d[c]-=parseInt(h.css("margin"+i))||0,d[c]-=parseInt(h.css("border"+i+"Width"))||0),d[c]+=a.offset[o]||0,a.over[o]&&(d[c]+=h["x"==s?"width":"height"]()*a.over[o]);else{var b=h[o];d[c]=b.slice&&"%"==b.slice(-1)?parseFloat(b)/100*f:b}/^\d+$/.test(d[c])&&(d[c]=d[c]<=0?0:Math.min(d[c],f)),!t&&a.queue&&(m!=d[c]&&u(a.onAfterFirst),delete d[c])})),u(a.onAfter)})).end()},e.max=function(e,s){var i="x"==s?"Width":"Height",o="scroll"+i;if(!t(e).is("html,body"))return e[o]-t(e)[i.toLowerCase()]();var a="client"+i,n=e.ownerDocument.documentElement,r=e.ownerDocument.body;return Math.max(n[o],r[o])-Math.min(n[a],r[a])}}(jQuery), /*! * jQuery.Preload * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com * Dual licensed under MIT and GPL. * Date: 3/25/2009 * * @projectDescription Multifunctional preloader * @author Ariel Flesler * @version 1.0.8 */ function(t){var e=t.preload=function(s,i){s.split&&(s=t(s)),i=t.extend({},e.defaults,i);var o=t.map(s,(function(t){if(t){if(t.split)return i.base+t+i.ext;var e=t.src||t.href;return"string"==typeof i.placeholder&&t.src&&(t.src=i.placeholder),e&&i.find&&(e=e.replace(i.find,i.replace)),e||null}})),a={loaded:0,failed:0,next:0,done:0,total:o.length};if(!a.total)return l();var n=t(Array(i.threshold+1).join("")).on("load error abort",(function(o){a.element=this,a.found="load"==o.type,a.image=this.src,a.index=this.index;var h=a.original=s[this.index];a[a.found?"loaded":"failed"]++,a.done++,i.enforceCache&&e.cache.push(t("").attr("src",a.image)[0]);i.placeholder&&h.src&&(h.src=a.found?a.image:i.notFound||h.src);i.onComplete&&i.onComplete(a);a.done0&&-1==have_active[gr].indexOf(","+id+",")&&o.show_menu(par,tp,mid,dy,dx)}},_uMenu.schedule_hidechild=function(id){var o=_uMenu.get(id);if(o){var gr=o.group;with(_uMenu.prototype)timerid2[gr]&&clearTimeout(timerid2[gr]),timerid2[gr]=setTimeout("_uMenu.hide('"+id+"',1);_uMenu.prototype.timerid2['"+gr+"']=0;",800)}},_uMenu.prototype={donothide:[],all_menus:[],have_active:[],timerid:[],timerid2:[],global_set:!1,init:function(t,e,s){this.id=t,this.obj=$("#"+t)[0],this.obj&&(this.obj._umenu=this,e||(e=t),this.parentid=e,s||(s="def"),this.group=s,this.obj.style.display="none",$(this.obj).on("click",this,(function(t){t.data.donothide[t.data.group]=!0})),null==this.all_menus[s]&&(this.all_menus[s]=[]),null==this.have_active[s]&&(this.have_active[s]=""),this.all_menus[s][t]=this,this.global_set||($(document).on("click",_uMenu.hideAll),$(window).on("resize",_uMenu.hideAll),_uMenu.prototype.global_set=!0))},show_menu:function(par,tp,mid,dy,dx){var ddX=0,ddY=0;if(this.timerid2[this.group]&&clearTimeout(this.timerid2[this.group]),this.have_active[this.group].indexOf(","+this.id+",")>=0)this.hide_menu();else{dy||(dy=0),dx||(dx=0),mid&&(ddX=$("#"+mid)[0].offsetLeft,ddY=$("#"+mid)[0].offsetTop),this.allmenus_hidenp(),par=par?$("#"+par)[0]:this.obj.parentNode;var pos=_uGetOffset(par);pos.left+=dx-ddX,pos.top+=dy-ddY,"r"==tp?pos.left+=par.offsetWidth-4:pos.top+=par.offsetHeight+1;var ww=$(window).width();with(this.obj.style)left=pos.left+"px",top=pos.top+"px",display="",visibility="visible";try{pos.left+this.obj.offsetWidth>ww&&(pos.left=ww-this.obj.offsetWidth-5,this.obj.style.left=pos.left+"px")}catch(e){}this.have_active[this.group]||(this.have_active[this.group]=""),this.have_active[this.group]+=","+this.id+",",this.timerid[this.group]&&clearTimeout(this.timerid[this.group]),this.donothide[this.group]=!0,this.timerid[this.group]=setTimeout("with (_uMenu.prototype){donothide['"+this.group+"']=false;timerid['"+this.group+"']=null;};",100)}},allmenus_hidenp:function(){for(var t={},e=this.id;this.all_menus[this.group][e]&&this.all_menus[this.group][e].parentid!=e&&e;)t[this.all_menus[this.group][e].parentid]=1,e=this.all_menus[this.group][e].parentid;for(var s in this.all_menus[this.group])1!=t[s]&&this.all_menus[this.group][s].hide_menu()},hide_menu:function(){with(this){hide_child();var x=have_active[group].indexOf(","+id+",");x>=0&&(have_active[group]=have_active[group].substring(0,x)),obj.style.display="none",obj.style.visibility="hidden"}},hide_child:function(){with(this)for(var i in all_menus[group])all_menus[group][i].parentid==id&&i!=id&&all_menus[group][i].hide_menu()}},_uMENU.all=[],_uMENU.nextidx=0,_uMENU.lastz=0,_uMENU.defz=25050,_uMENU.defdesign="std",_uMENU.globalset=!1,_uMENU.ignoreclick=null,_uMENU.onclickTabAsMenu=function(t,e,s,i,o){var a=i.tabctrl,n=i.tabid||i.id||t;a&&a.activateTab(n)},_uMENU._onchangeTabAsMenu=function(t,e,s){var i,o=t.props._prevtabmenu_onchange?t.props._prevtabmenu_onchange.apply(this,arguments):1,a=t._tabasmenu;if(!a)return o;for(var n=0;n
'),$(e[1]).addClass("xsr").css({width:this.sh_sz[0]+this.sh_sz[1]+"px",top:"0px"}).html('
'),$(e[2]).addClass("xsb").css({height:this.sh_sz[0]+this.sh_sz[1]+"px",left:-this.sh_sz[0]+"px"}).html('
'),e},shadow_resize:function(t,e,s){$(t[0]).css({height:s-this.sh_sz[1]+"px"}),$(t[1]).css({height:s-this.sh_sz[1]+"px",left:e-this.sh_sz[1]+"px"}),$(t[2]).css({width:e+2*this.sh_sz[0]+"px",top:s-this.sh_sz[1]+"px"})},shadow_hide:function(t){$(t[0]).add(t[1]).add(t[2]).hide()},shadow_show:function(t){$(t[0]).add(t[1]).add(t[2]).show()},menu_init:function(t,e,s,i){var o={};return s.horiz?($(t).attr("class","u-menuh"+(s.addclass?" "+String(s.addclass):"")+(s.withmarks?" u-menumarks":"")).css("overflow","hidden"),$(t).html('
')):($(t).attr("class","u-menu"+(s.addclass?" "+String(s.addclass):"")+(s.withmarks?" u-menumarks":"")),$.browser&&$.browser.msie&&$(t).css("overflow","hidden"),$(t).html((i&&i.props.horiz?"":'
')+'
')),o.content=$(t).find(".u-menucont")[0],o.elems=[],o.marks=[],$(t).find("div,span")[$.fn.andSelf?"andSelf":"addBack"]().attr("unselectable","on"),o},setitemtext:function(t,e,s){t.props.withmarks&&null!=t.elems[e][2].mark&&(s='
'+s),$(t.parts.elems[e]).html(s)},append_item:function(t,e,s){var i,o,a,n,r,l,h=t.elems.length;a=e[1]?e[1]:void 0!==e[2].action?e[2].action:t.props.onitem,r=e[2].onldown||t.props.onldown,l=e[2].onrdown||t.props.onrdown,o=e[0],null!=e[2].hl&&(s=e[2].hl),t.props.withmarks&&"sep"!=o&&null!=e[2].mark&&(o='
'+o,n=1),!a||"a"!=a&&"a"!=e[2].action?i=document.createElement("div"):(i=document.createElement("a"),$(i).css("display","block")),t.props.horiz?($(i).css("float","left"),"sep"==o?i.className="u-menuhsep":(i.className="u-menuhitem",a&&a.constructor==_uMENU?($(i).addClass("u-menuhitemparent").html(o),$(i).on("mouseover",{hl:s,item:h,obj:t},_uMENU._onitemmouseover).on("mouseout",{hl:s,item:h,obj:t},_uMENU._onitemmouseout),$(i).on("mousedown",{child:a,obj:t,item:h,itemobj:e},_uMENU._onitemclick),e[2].action&&$(i).on("click",{act:e[2].action,obj:t,item:h,itemobj:e},_uMENU._onitemclick),(r||l)&&$(i).on("mousedown",{actl:r,actr:l,obj:t,item:h,itemobj:e},_uMENU._onitemmousedown)):($(i).html(o),s&&$(i).on("mouseover",{hl:s,item:h,obj:t},_uMENU._onitemmouseover).on("mouseout",{hl:s,item:h,obj:t},_uMENU._onitemmouseout),a&&$(i).on("click",{act:a,obj:t,item:h,itemobj:e},_uMENU._onitemclick),(r||l)&&$(i).on("mousedown",{actl:r,actr:l,obj:t,item:h,itemobj:e},_uMENU._onitemmousedown)))):"sep"==o?i.className="u-menuvsep":(i.className="u-menuvitem",a&&a.constructor==_uMENU?($(i).addClass("u-menuvitemparent").html('
'+o),$(i).on("mouseover",{hl:s,item:h,obj:t},_uMENU._onitemmouseover).on("mouseout",{hl:s,item:h,obj:t},_uMENU._onitemmouseout),$(i).on("mousedown",{child:a,obj:t,item:h,itemobj:e},_uMENU._onitemclick),e[2].action&&$(i).on("click",{act:e[2].action,obj:t,item:h,itemobj:e},_uMENU._onitemclick),(r||l)&&$(i).on("mousedown",{actl:r,actr:l,obj:t,item:h,itemobj:e},_uMENU._onitemmousedown)):($(i).html(o),s&&$(i).on("mouseover",{hl:s,item:h,obj:t},_uMENU._onitemmouseover).on("mouseout",{hl:s,item:-1,obj:t},_uMENU._onitemmouseout),a&&$(i).on("click",{act:a,obj:t,item:h,itemobj:e},_uMENU._onitemclick),(r||l)&&$(i).on("mousedown",{actl:r,actr:l,obj:t,item:h,itemobj:e},_uMENU._onitemmousedown))),s&&$(i).find("*")[$.fn.andSelf?"andSelf":"addBack"]().filter("[nodeType=1]").attr("unselectable","on"),t.elems[h]=e,t.parts.elems[h]=i,n&&(t.parts.marks[h]=$(i).find(".u-menumark")[0]),t.props.horiz&&(t.props.rtl||window._rtl)?t.parts.content.insertBefore(i,t.parts.content.firstChild):t.parts.content.appendChild(i)},calc_size:function(t){var e=0,s=0,i=0,o=0;if(t.props.horiz){for(a=0;a=0&&(e.obj.props.horiz&&!e.obj._focus.isactive()||e.obj.schedule_childopen(e.item))},_uMENU._onitemmouseout=function(t){var e,s=t.data;if(s.hl){if(s.obj.props.statical&&s.obj._focus.isactive())return;if(s.item==s.obj.hlitem&&s.item>=0){if((e=s.obj.elems[s.item])&&e[1]&&e[1].constructor==_uMENU&&e[1].state.visible)return;s.obj.design._onitemhl.apply(this,[t,0]),s.obj.hlitem=-1}}},_uMENU._onitemclick=function(t){var e=t.data,s=e.itemobj[1]||e.itemobj[2].action||e.obj.props.onitem;if(e.child||!s)e.child&&(e.obj.reset_childopen(),e.obj.hidechildren(e.child),e.obj.props.statical&&e.child.state.visible?(e.child.hide(),e.obj._focus.deactivate()):e.child.state.visible||(e.obj.props.statical&&e.obj.sethl(e.item),e.obj.childopen(e.item),_uMENU.ignoreclick=e.child));else if(e.obj.props.statical?e.obj.hidechildren():e.obj.hide(!0),s.constructor==Function)s.apply(e.itemobj[2].thispar||e.obj.props.thispar,[e.item,e.obj,e.itemobj[2].id,e.itemobj[2],t]);else if("a"==s){var i=null;if(this==t.target||"a"!=t.target.tagName.toLowerCase()){if(this!=t.target){var o=$(this).parents()[$.fn.andSelf?"andSelf":"addBack"]();i=0==$(t.target).parents().not(o).filter("A").length?$(this).find("a")[0]:null}else i=$(this).find("a")[0];if(i&&(this.target=i.target,this.href=i.href,i.onclick))return i.onclick()}i||this.removeAttribute("href")}},_uMENU._onitemmousedown=function(t){var e=t.data,s=e.actl||e.obj.props.onldown,i=e.actr||e.obj.props.onrdown;1==t.which&&t.ctrlKey&&(t.which=3),1==t.which&&s?(_uWnd.globalmousedown(),s.apply(e.itemobj[2].thispar||e.obj.props.thispar,[e.item,e.obj,e.itemobj[2].id,e.itemobj[2],t]),t.stopPropagation()):3==t.which&&i&&(i.apply(e.itemobj[2].thispar||e.obj.props.thispar,[e.item,e.obj,e.itemobj[2].id,e.itemobj[2],t]),t.preventDefault(),t.stopPropagation())},_uMENU.hideallmenus=function(){var t,e,s;t:for(t=0;t<_uMENU.all.length;t++)if((e=_uMENU.all[t])&&e.state.visible){for(s=_uMENU.ignoreclick;s;){if(s==e)continue t;s=s.pos.parent}e.props.statical?e._focus.deactivate():e.hide()}_uMENU.ignoreclick&&setTimeout("_uMENU.ignoreclick=null;",10)},_uMENU._onmenumousedown=function(t){t.data.props.wnd&&t.data.props.wnd.activate(t,1),1==t.which&&t.ctrlKey&&(t.which=3),3==t.which&&t.data.props.horiz||(_uMENU.ignoreclick||(_uMENU.ignoreclick=t.data),_uWnd.globalmousedown(2),t.stopPropagation())},_uMENU.prototype={removehl:function(t){var e,s=this.hlitem;s>=0&&("number"!=typeof t||s!=t)&&((e=this.elems[s])&&"sep"!=e[0]&&(null!=e[2].hl?e[2].hl:this.props.highlight)&&this.design._onitemhl.apply(this.parts.elems[s],[null,0]),this.hlitem=-1)},sethl:function(t){var e;this.hlitem!=t&&(this.removehl(t),(e=this.elems[t])&&"sep"!=e[0]&&(null!=e[2].hl?e[2].hl:this.props.highlight)&&this.design._onitemhl.apply(this.parts.elems[t],[null,1]),this.hlitem=t)},onfocusdeactivate:function(){this.props.statical?this.removehl():this.hide()},onkeydown:function(t,e,s){var i,o,a,n,r,l,h,d=t.keyCode;if(27==d&&s==this._focus)return this.props.statical?(this.hidechildren(),this._focus.deactivate()):(this.hide(),this.pos.parent&&this.pos.parent.props.statical&&this.pos.parent._focus.deactivate()),t.preventDefault(),t.stopPropagation(),1;if((17==d||18==d)&&t.ctrlKey&&t.altKey)return this._focus.deactivate(),t.preventDefault(),t.stopPropagation(),1;if((13==d||40==d&&this.props.horiz)&&s==this._focus){if(t.preventDefault(),t.stopPropagation(),this.hlitem<0)return 1;o=this.hlitem;var p=(a=this.elems[o])[1]||a[2].action||this.props.onitem,u=a[2].onldown||this.props.onldown;return n=0,p&&p.constructor==_uMENU?(this.reset_childopen(),this.hidechildren(o),p.state.visible||this.childopen(o,0)):a[2].action?p=a[2].action:p&&p.constructor==Function||(p=null),40==d?1:(p&&p.constructor==Function&&(p.apply(a[2].thispar||this.props.thispar,[o,this,a[2].id,a[2],t]),n=1),u&&u.constructor==Function&&(u.apply(a[2].thispar||this.props.thispar,[o,this,a[2].id,a[2],t]),n=1),n&&(this.props.statical?this.hidechildren():this.hide(1)),1)}if(93==d&&s==this._focus){if(t.preventDefault(),t.stopPropagation(),this.hlitem<0)return 1;o=this.hlitem;var c=(a=this.elems[o])[2].onrdown||this.props.onrdown;return c&&c.constructor==Function&&c.apply(a[2].thispar||this.props.thispar,[o,this,a[2].id,a[2],t]),1}if((37==d||39==d)&&s==this._focus&&!this.props.horiz){if(t.preventDefault(),t.stopPropagation(),39==d&&this.hlitem>=0){if(o=this.hlitem,(a=this.elems[o])&&a[1]&&a[1].constructor==_uMENU)return this.childopen(o,0),1}else if(37==d&&this.pos.parent&&!this.pos.parent.props.horiz)return this.hide(),1;for(a=this.pos.parent;a&&!a.props.horiz&&a!=this;)a=a.pos.parent;a&&a.props.horiz&&a.onkeydown(t,e,a._focus)}if((40==d||38==d||(37==d||39==d)&&this.props.horiz)&&s==this._focus){if(t.preventDefault(),t.stopPropagation(),this.props.horiz&&(40==d||38==d))return 1;for(h=40==d||39==d?1:-1,r=o=this.hlitem,i=this.elems.length,l=0;l=i||o<0)&&(o=h>0?0:i-1),!(a=this.elems[o])||"sep"==a[0]||!(null!=a[2].hl?a[2].hl:this.props.highlight));l++);return l>=i||r==o||(this.hlitem=o,r>=0&&(a=this.elems[r])&&"sep"!=a[0]&&(null!=a[2].hl?a[2].hl:this.props.highlight)&&(this.design._onitemhl.apply(this.parts.elems[r],[t,0]),this.reset_childopen()),this.design._onitemhl.apply(this.parts.elems[o],[t,1]),this.hidetimer&&clearTimeout(this.hidetimer),this.hidetimer=null,this.props.horiz&&this.childopen(o,0)),1}},shadow_init:function(){this.sh=this.design.shadow_init(this.top)},_resizeSh:function(){this.sh&&this.design.shadow_resize(this.sh,this.width,this.height)},moveTo:function(x,y){with(this)$(top).css("left",x+"px").css("top",y+"px"),xpos=x,ypos=y},resizeTo:function(w,h){with(this)0==props.width?$(menu).css("width",w+"px"):"auto"!=props.width?$(menu).css("width",props.width):$(menu).css("width","auto"),props.horiz?($(menu).css("height",h+"px"),$(parts.content).css("width",w-decor.w+"px").css("height",h-decor.h+"px")):($(parts.content).css("width",w-decor.w+"px"),$.browser&&$.browser.opera&&$(top).css("width",w+"px")),w<0&&(w=0),frame&&$(frame).css("width",w+"px").css("height",h+"px"),width=w,height=h,_resizeSh()},init1:function(nocalcsize){with(this)decor.w=50-parts.content.offsetWidth,decor.w<0&&(decor.w=0),decor.h=menu.offsetHeight-(props.horiz?10:50),decor.h<0&&(decor.h=0),state.init=!0,_initsubmenus(),add_elems?appendItems(null,0,nocalcsize):(pend_show&&show(pend_show),props.onreadycreate&&(props.onreadycreate.call?props.onreadycreate.call(props.thispar,this):props.onreadycreate(this)),props.onreadycreate=null)},show:function(t,e){if(!this.state.destroyed)if(this.state.init){if(this.pend_show=null,this.pos=$.extend(this.pos,t||{}),!this.pos.parent||this.pos.parent.state.visible){if(this._focus.deactivate(),this._focus._parent=this.pos.parentfocus?this.pos.parentfocus:this.pos.parent?this.pos.parent._focus:this.props.wnd?this.props.wnd._focus:null,this.pos.parent?this.zpos=this.pos.parent.zpos+5:this.zpos=_uMENU.defz,$(this.top).css("z-index",this.zpos),this.pos.pos||this.pos.alignObj){var s,i,o;this.pos.alignObj?(g=this.pos.alignObj,s=$(g).offset(),i=g.offsetWidth,o=g.offsetHeight):(s={left:this.pos.pos.x,top:this.pos.pos.y},i=o=0);var a,n,r,l=_uWnd.getdims(),h=l.clientW,d=l.clientH,p=l.clientLeft,u=l.clientTop,c=this.pos.align||"d";this.props.wnd&&this.props.wnd.desktop&&(h=(l=this.props.wnd.desktop).calcwidth(),d=l.calcheight(),p=l.calcexclude(0),u=l.calcexclude(2)),n=this.props.rtl||window._rtl?s.left+i+this.pos.dx-this.width:s.left+this.pos.dx,r=s.top+this.pos.dy,"r"==c||"R"==c?n=s.left+i+this.pos.dx:"l"==c||"L"==c?n=s.left-this.width+this.pos.dx:"d"==c||"D"==c?r=s.top+o+this.pos.dy:"u"!=c&&"U"!=c||(r=s.top-this.height+this.pos.dy),(n-p+this.width>h-3-this.design.sh_sz[0]||n-p<1)&&("R"==c||"U"==c?n=s.left-this.width-this.pos.dx:"L"==c&&(n=s.left+i-this.pos.dx)),n-p+this.width>h-3&&(n=h-3-this.design.sh_sz[0]-this.width+p),n-p<1&&(n=1+p),(r-u+this.height>d-3-this.design.sh_sz[1]||r-u<1)&&("D"==c?r=s.top-this.height-this.pos.dy:"U"==c&&(r=s.top+o-this.pos.dy)),r-u+this.height>d-3&&(r=d-3-this.design.sh_sz[1]-this.height+u),r-u<1&&(r=1+u),this.props.parentnode&&((a=$(this.props.parentnode).offset()).left+=(parseInt(jQuery.css(this.props.parentnode,"borderLeftWidth",!0),10)||0)-$(this.props.parentnode).scrollLeft(),a.top+=(parseInt(jQuery.css(this.props.parentnode,"borderTopWidth",!0),10)||0)-$(this.props.parentnode).scrollTop(),n-=a.left,r-=a.top),this.moveTo(n,r)}if(this.props.onshow&&this.props.onshow.apply(this.props.thispar,[this,this.idx]),this.props.withmarks)for(var m=0;m=0&&g0&&(this.hidetimer=setTimeout("var m=_uMENU.all["+this.idx+"]; if (m)m.hide();",this.props.hidetimer))}}else this.pend_show=t||{}},hidechildren:function(t){if(!this.state.destroyed)for(var e=this.elems,s=0;s=0&&t=this.elems.length||(a=this.elems[t[i]],!e&&a&&a.constructor==Array&&a[1]&&a[1].constructor==_uMENU&&a[1].destroy(),this.elems.splice(t[i],1),this.parts.elems[t[i]].parentNode.removeChild(this.parts.elems[t[i]]),this.parts.elems.splice(t[i],1),o=t[i]);s||this.appendItems(null,0)},appendItems:function(t,e,s){if(!this.state.destroyed&&(t&&t.constructor==Array&&t.length>0&&(this.add_elems[this.add_elems.length]=t),this.state.init))if(this.createsubmenus())setTimeout("var m=_uMENU.all["+this.idx+"]; if (m){m._initsubmenus(); m.appendItems(null,0,"+s+");}",10);else{var i;for(this.appendtimer&&clearTimeout(this.appendtimer),this.appendtimer=null,$(this.top).css("visibility","hidden").css("display","block"),this.props.horiz?(this.props.noabs?$(this.menu).css("width",0==this.props.width||"auto"==this.props.width?"auto":this.props.width+"px"):$(this.menu).css("width","2100px").css("height","auto"),$(this.parts.content).css("width","2000px").css("height","auto")):($.browser&&$.browser.opera&&$(this.top).css("width","2000px"),$(this.menu).css("width","auto").css("height","auto"),$(this.parts.content).css("width","auto").css("height","auto")),i=0;i'+(t.props.filter&&t.props.nodropdown?"":'
')+"")[0],t.obj.parentNode.insertBefore(t.combo,t.obj),t.parent!=t.obj.parentNode?t.parent.appendChild(t.toplist):t.parent.insertBefore(t.toplist,t.obj),e.editcell=$(t.combo).find(".u-comboeditcell")[0],t.props.filter&&t.props.nodropdown?e.button=e.butcell=null:(e.button=$(t.combo).find(".u-combobut")[0],e.butcell=$(t.combo).find(".u-combobutcell")[0]),e.editcell.appendChild(t.obj),t.props.readonly&&e.editcell.appendChild(t.valobj),$(t.obj).attr("class","x-selectable u-comboedit"+(t.haveicons?" u-comboeditimg":"")+" "+$(t.obj).attr("class")),t.tablemode?$(t.toplist).append('
'):$(t.toplist).append('
'),e.list=$(t.toplist).find(".u-combolist")[0],t.props.maxlistheight>=50&&t.havemaxheight&&$(e.list).css({maxHeight:t.props.maxlistheight+"px",overflow:"auto"}),e.listc=e.list.firstChild,t.tablemode?e.content=$(t.toplist).find(".u-combocont")[0]:e.content=null,t.props.readonly?t.props.filter||$(t.obj).on("mousedown",(function(t){return t.preventDefault(),0})):e.button&&$(e.button).on("mousedown",t,_uComboBox._onbutclick),e.button&&$(e.button).on("mouseover",t.design._onbutmouseover).on("mouseout",t.design._onbutmouseout),e.items=[],t.props.filter&&t.props.nodropdown&&t.props.emptyprompt?(t.tablemode?(e.row_prompt=e.content.insertRow(0),$(e.row_prompt).css("display","none"),$(e.row_prompt.insertCell(0)).attr("class","u-combocell0").attr("colspan",t.tablecols).html(t.props.emptyprompt)):(e.row_prompt=document.createElement("DIV"),e.row_prompt._attached=0,$(e.row_prompt).addClass("u-combocell0").html(t.props.emptyprompt)),$(e.row_prompt).addClass("u-comborow").addClass("u-comboemptyprompt").on("mousedown",(function(t){return 0}))):e.row_prompt=null,t.props.filter&&t.props.nomatchtext?(t.tablemode?(e.row_nomatch=e.content.insertRow(0),$(e.row_nomatch).css("display","none"),$(e.row_nomatch.insertCell(0)).attr("class","u-combocell0").attr("colspan",t.tablecols).html(t.props.nomatchtext)):(e.row_nomatch=document.createElement("DIV"),e.row_nomatch._attached=0,$(e.row_nomatch).addClass("u-combocell0").html(t.props.nomatchtext)),$(e.row_nomatch).addClass("u-comborow").addClass("u-combonomatch").on("mousedown",(function(t){return 0}))):e.row_nomatch=null,t.props.filter&&t.props.haveotherprompt&&t.props.filtermax>0?(t.tablemode?(e.row_haveother=e.content.insertRow(0),$(e.row_haveother).css("display","none"),$(e.row_haveother.insertCell(0)).attr("class","u-combocell0").attr("colspan",t.tablecols).html(t.props.haveotherprompt)):(e.row_haveother=document.createElement("DIV"),e.row_haveother._attached=0,$(e.row_haveother).addClass("u-combocell0").html(t.props.haveotherprompt)),$(e.row_haveother).addClass("u-comborow").addClass("u-combonomatch").on("mousedown",(function(t){return 0}))):e.row_haveother=null,$(t.toplist).find("div,span,table")[$.fn.andSelf?"andSelf":"addBack"]().attr("unselectable","on"),e},content_reset:function(t){if(!t.tablemode){var e=$('
')[0];t.parts.listc.insertBefore(e,t.parts.content),t.parts.content=e,t.parts.row_prompt&&(t.parts.row_prompt._attached=0),t.parts.row_nomatch&&(t.parts.row_nomatch._attached=0),t.parts.row_haveother&&(t.parts.row_haveother._attached=0)}},append_item:function(t,e,s){var i,o,a,n;if(t.tablemode){a=t.parts.content,i=t.parts.items[s]=a.insertRow(s);for(var r=0;r'+n.replace(/&/g,"&").replace(/':"")+(e.length>3?e[3]:e[0]).replace(/&/g,"&").replace(/=t.parts.items.length)){if(t.tablemode){var s=t.parts.content;if(e>=s.rows.length)return;$(s.rows[e]).off(),s.deleteRow(e)}else t.parts.items[e].parentNode&&t.parts.items[e].parentNode.removeChild(t.parts.items[e]);t.parts.items.splice(e,1)}},_onitemmouseover:function(t,e){e?$(this).addClass("u-comborowhl"):$(this).removeClass("u-comborowhl")},_onbutmouseover:function(){$(this).addClass("u-combobuthl")},_onbutmouseout:function(){$(this).removeClass("u-combobuthl")},_onlistopen:function(t){$(t.combo).addClass("u-comboopen")},_onlisthide:function(t){$(t.combo).removeClass("u-comboopen")},_onfocus:function(t,e){$(t.combo).addClass("u-combofocus")},_onblur:function(t,e){$(t.combo).removeClass("u-combofocus")},_select:function(t,e){$(t.parts.items[e]).addClass("u-comborowsel")},_deselect:function(t,e){$(t.parts.items[e]).removeClass("u-comborowsel")},onprompt:function(t,e){e?$(t.obj).addClass("u-comboprompt"):$(t.obj).removeClass("u-comboprompt")},seticon:function(t,e){e?$(t.obj).css("background-image","url("+e+")"):$(t.obj).css("background-image",t.props.deficon?"url("+t.props.deficon+")":"none")}}},_uComboBox._onitemmouseover=function(t){t.data.design._onitemmouseover.apply(this,[t,1]),t.data.to_unHL.push(this)},_uComboBox._onitemmouseout=function(t){var e,s=t.data.to_unHL;for(t.data.design._onitemmouseover.apply(this,[t,0]),e=0;e=0&&i=0&&selected=0&&i0)for(var k=dataindex;k=0&&(data[previdx][4]<1||!prevfilter)?(_selectitem(-1),props.readonly&&(valobj.value=""),props.onchange&&props.readonly&&-1!=previdx&&props.onchange.apply(this.app,[-1,obj.value,this]),haveicons&&this.design.seticon(this,null)):previdx>=0&&(userIdx=previdx),props.filter&&showlist(),props.onchange&&!props.readonly&&props.onchange.apply(this.app,[-1,obj.value,this])}},appendItem:function(elem){with(this){var i=data.length;data[i]=[elem[0],elem[1],elem.length>3?elem[3]:elem[0]],"string"!=typeof data[i][2]&&(data[i][2]=String(data[i][2])),props.filter&&(props.translit?data[i][3]=new _uTransStr(data[i][2]):data[i][3]=data[i][2].toLowerCase()),!props.tablemode&&props.filter||design.append_item(this,elem,i),updated=!0,tablemode?(data[i][4]=1,numdata++):data[i][4]=0}},removeItem:function(t){t<0||t>=this.data.length||(this.design.remove_item(this,t),this.data[t][4]>0&&this.numdata--,this.data.splice(t,1),this.updated=!0)},removeAll:function(){for(var t=0;t0){if(ii<0)j=dataindex;else if(ii>=data.length-1){if(!props.readonly||props.filter)return-1;j=0}else j=ii+1;for(k=0;k0)return j;if(j++,j>=data.length){if(!props.readonly||props.filter)return-1;j=0}}}else{if(ii<0||ii>=data.length)j=data.length-1;else if(0==ii){if(!props.readonly||props.filter)return-1;j=data.length-1}else j=ii-1;for(k=0;k0)return j;if(j--,j<0){if(!props.readonly||props.filter)return-1;j=data.length-1}}}}return ii},_marksections:function(t,e){if(t=t.replace(/&/g,"&").replace(/1&&e.sort((function(t,e){return t[0]-e[0]}));for(var s="",i=0,o=0;oi&&(s+=t.substring(i,e[o][0])),s+=''+t.substr(e[o][0],e[o][1])+"",i=e[o][0]+e[o][1]);return i=t[i][0]+t[i][1]||e+s<=t[i][0]))return 1;return 0},updatelist:function(){with(this){var i,ii,tmp,off,vv,sect,keys,subfilter=0,maxshow,showotherprompt=0;if(!props.filter)return;if(maxshow=props.filtermax>0&&props.filtermax0&&(0==props.filtertype?tmp.translit.length>prevfilter.length&&tmp.translit.indexOf(prevfilter)>=0&&(subfilter=1):tmp.translit.length>prevfilter.length&&0==tmp.translit.indexOf(prevfilter)&&(subfilter=1)),prevfilter=tmp.translit,prevfilteridx=userIdx,keys=tmp.splitsps(),sect=[]}else{if(tmp=userInput.toLowerCase().replace(/^ */,""),2!=props.filtertype&&(tmp=tmp.replace(/ +/g," ").replace(/ +$/,""),keys=tmp.split(" "),sect=[]),prevfilter==tmp&&prevfilteridx==userIdx)return;prevfilter.length>0&&(0==props.filtertype?tmp.length>prevfilter.length&&tmp.indexOf(prevfilter)>=0&&(subfilter=1):1==props.filtertype&&tmp.length>prevfilter.length&&0==tmp.indexOf(prevfilter)&&(subfilter=1)),prevfilter=tmp,prevfilteridx=userIdx}if(updated=1,prevfilter){if(tablemode||subfilter&&parts.content||design.content_reset(this),parts.row_prompt&&props.nodropdown&&(tablemode?parts.row_prompt.style.display="none":parts.row_prompt._attached&&(parts.content.removeChild(parts.row_prompt),parts.row_prompt._attached=0)),subfilter||(dataindex=-1),numdata=0,props.translit){if(1==props.filtertype){t:for(i=subfilter&&dataindex>=0?dataindex:0,dataindex=-1;i0&&" "!=data[i][3].translit.charAt(off[2]-1))&&!this._intersect(sect,off[0],off[1]))break}if(!off){data[i][4]>0&&(tablemode?parts.items[i].style.display="none":subfilter&&parts.content.removeChild(parts.items[i])),data[i][4]=0;continue t}sect[ii]=off}tablemode||parts.items[i]||design.append_item(this,null,i),props.filtermarkclass&&(tablemode?parts.items[i].cells[0].innerHTML=_marksections(data[i][2],sect):parts.items[i].innerHTML=_marksections(data[i][2],sect)),tablemode?1!=data[i][4]&&(parts.items[i].style.display=""):subfilter&&1==data[i][4]||parts.content.appendChild(parts.items[i]),data[i][4]=1,numdata++,dataindex<0&&(dataindex=i)}}else t:for(i=subfilter&&dataindex>=0?dataindex:0,dataindex=-1;i0&&(tablemode?parts.items[i].style.display="none":subfilter&&parts.content.removeChild(parts.items[i])),data[i][4]=0;continue t}sect[ii]=off}tablemode||parts.items[i]||design.append_item(this,null,i),props.filtermarkclass&&(tablemode?parts.items[i].cells[0].innerHTML=_marksections(data[i][2],sect):parts.items[i].innerHTML=_marksections(data[i][2],sect)),tablemode?1!=data[i][4]&&(parts.items[i].style.display=""):subfilter&&1==data[i][4]||parts.content.appendChild(parts.items[i]),data[i][4]=1,numdata++,dataindex<0&&(dataindex=i)}}else if(1==props.filtertype){t:for(i=subfilter&&dataindex>=0?dataindex:0,dataindex=-1;i0&&" "!=data[i][3].charAt(off-1))&&!this._intersect(sect,off,keys[ii].length))break}if(off<0){data[i][4]>0&&(tablemode?parts.items[i].style.display="none":subfilter&&parts.content.removeChild(parts.items[i])),data[i][4]=0;continue t}sect[ii]=[off,keys[ii].length]}tablemode||parts.items[i]||design.append_item(this,null,i),props.filtermarkclass&&(tablemode?parts.items[i].cells[0].innerHTML=_marksections(data[i][2],sect):parts.items[i].innerHTML=_marksections(data[i][2],sect)),tablemode?1!=data[i][4]&&(parts.items[i].style.display=""):subfilter&&1==data[i][4]||parts.content.appendChild(parts.items[i]),data[i][4]=1,numdata++,dataindex<0&&(dataindex=i)}}else if(2==props.filtertype)for(sect=[[0,tmp.length]],i=subfilter&&dataindex>=0?dataindex:0,dataindex=-1;i0&&(tablemode?parts.items[i].style.display="none":subfilter&&parts.content.removeChild(parts.items[i])),data[i][4]=0):(tablemode||parts.items[i]||design.append_item(this,null,i),props.filtermarkclass&&(tablemode?parts.items[i].cells[0].innerHTML=_marksections(data[i][2],sect):parts.items[i].innerHTML=_marksections(data[i][2],sect)),tablemode?1!=data[i][4]&&(parts.items[i].style.display=""):subfilter&&1==data[i][4]||parts.content.appendChild(parts.items[i]),data[i][4]=1,numdata++,dataindex<0&&(dataindex=i)));else t:for(i=subfilter&&dataindex>=0?dataindex:0,dataindex=-1;i=0&&this._intersect(sect,off,keys[ii].length));if(off<0){data[i][4]>0&&(tablemode?parts.items[i].style.display="none":subfilter&&parts.content.removeChild(parts.items[i])),data[i][4]=0;continue t}sect[ii]=[off,keys[ii].length]}tablemode||parts.items[i]||design.append_item(this,null,i),props.filtermarkclass&&(tablemode?parts.items[i].cells[0].innerHTML=_marksections(data[i][2],sect):parts.items[i].innerHTML=_marksections(data[i][2],sect)),tablemode?1!=data[i][4]&&(parts.items[i].style.display=""):subfilter&&1==data[i][4]||parts.content.appendChild(parts.items[i]),data[i][4]=1,numdata++,dataindex<0&&(dataindex=i)}for(i0&&(tablemode?parts.items[i].style.display="none":subfilter&&parts.content.removeChild(parts.items[i])),data[i][4]=-1}else if(props.nodropdown){if(tablemode&&numdata>0)for(i=dataindex;i0))for(i=dataindex;i=0?"none":"":userIdx<0&&(parts.content.appendChild(parts.row_prompt),parts.row_prompt._attached=1))}else if(!props.nodropdown&&numdata0||(parts.items[i].style.display="",data[i][4]=1);for(i0||!prevfilter?"none":"":numdata>0||!prevfilter?(parts.row_nomatch._attached&&parts.content.removeChild(parts.row_nomatch),parts.row_nomatch._attached=0):(parts.row_nomatch._attached||parts.content.appendChild(parts.row_nomatch),parts.row_nomatch._attached=1)),parts.row_haveother&&(tablemode?parts.row_haveother.style.display=showotherprompt?"":"none":showotherprompt?(parts.content.appendChild(parts.row_haveother),parts.row_haveother._attached=1):(parts.row_haveother._attached&&parts.content.removeChild(parts.row_haveother),parts.row_haveother._attached=0)),!tablemode&&!subfilter&&parts.listc.childNodes.length>1&&parts.listc.removeChild(parts.listc.lastChild),opened&&showlist()}},showlist:function(){var t,e,s;if(!(this.opened&&!this.updated||this.props.nodropdown&&this.props.filter&&!this.userInput&&!this.parts.row_prompt)){if(this.opened&&(!this.havemaxheight||"auto"==this.props.maxlistheight))return $(this.parts.list).css({height:"auto",overflow:"hidden"}),this.showtimer&&clearTimeout(this.showtimer),this._showlist(),void(this.updated=!1);var i=$(this.combo).offset(),o=$(this.parent).offset();o.left+=(parseInt(jQuery.css(this.parent,"borderLeftWidth",!0),10)||0)-$(this.parent).scrollLeft(),o.top+=(parseInt(jQuery.css(this.parent,"borderTopWidth",!0),10)||0)-$(this.parent).scrollTop(),e=i.left-o.left,s=i.top-o.top,t="auto"==this.props.listwidth?this.combo.offsetWidth+"px":this.props.listwidth,$(this.toplist).css({left:e+"px",top:s+this.combo.offsetHeight-1+"px",width:t,minWidth:this.combo.offsetWidth+"px"}),this.frame&&$(this.frame).css({width:t}),!this.updated||this.havemaxheight&&"auto"!=this.props.maxlistheight?this.toplist.style.display="block":($(this.parts.list).css({height:"auto",overflow:"hidden"}),$(this.toplist).css({visibility:"hidden"}).css({display:"block"}),this.showtimer&&clearTimeout(this.showtimer),this.showtimer=setTimeout("var c=_uComboBox.all["+this.idx+"]; if (c)c._showlist();",10)),this.design._onlistopen(this),this.opened=!0,this.updated=!1}},_showlist:function(){this.showtimer=null;var t,e,s,i=this.parts.list,o=_uWnd.getdims();t=Math.max(i.scrollHeight,i.offsetHeight),s=$(this.toplist).offset(),(t>(e=this.props.maxlistheight>0?Math.max(50,Math.min(this.props.maxlistheight,o.clientH-s.top)):Math.max(50,o.clientH-s.top))||!t&&this.numdata>0)&&($(this.parts.list).css({height:e+"px",overflow:"auto"}),t=e),this.frame&&$(this.frame).css({height:t+"px"}),$(this.toplist).css({visibility:""})}},_uSuggestList.all=[],_uSuggestList.nextidx=0,_uSuggestList.defz=20015,_uSuggestList.globalset=!1,_uSuggestList.ignoreclick=null,_uSuggestList.getbyname=function(t){for(var e=this.all,s=0;s
'),e.list=$(t.top).find(".u-sugglist")[0],e.content=$(t.top).find(".u-suggcont")[0],$(t.top).find("div,span,table")[$.fn.andSelf?"andSelf":"addBack"]().attr("unselectable","on"),e},append_row:function(t,e,s,i,o){var a,n=t.parts.content.insertRow(-1),r=t.props.haveDataId?1:0;o?$(n).on("mousedown",t._ignoreevent):$(n).on("mousedown",t,t._onrowmousedown).on("mousemove",t,t._onrowmousemove).on("mouseover",t,t._onrowmouseover),$(n).addClass("u-suggrow").attr("usuggeststr",e[r]),t.props.haveDataId&&$(n).attr("usuggestid",e[0]),(a=String(e[r])).toLowerCase().substr(0,i.length)==i.toLowerCase()&&(a=''+a.substr(0,i.length)+""+a.substr(i.length));for(var l=0;l"+(0==l?a:e[l+r])+"")},update_row:function(t,e,s,i,o){var a,n,r=t.props.haveDataId?1:0;if($(e).attr("usuggeststr",s[r]),t.props.haveDataId&&$(e).attr("usuggestid",s[0]),(a=String(s[r])).toLowerCase().substr(0,o.length)==o.toLowerCase()&&(a=''+a.substr(0,o.length)+""+a.substr(o.length)),e.cells.length==i)for(n=0;n"+(0==n?a:s[n+r])+"")}},_select:function(t,e){$(e).addClass("u-suggrowhl")},_deselect:function(t,e){$(e).removeClass("u-suggrowhl")}}},_uSuggestList.prototype={queryCache:[],destroy:function(){with(this){if(destroyed)return;destroyed=1,top&&$(top).remove(),obj&&$(obj).off(),hideTimer&&clearTimeout(hideTimer),remoteReqTimer&&clearTimeout(remoteReqTimer),AJAXTimer&&clearTimeout(AJAXTimer);try{AJAXObj&&AJAXObj.abort()}catch(e){}for(var i in _uSuggestList.all[idx]=null,this)"destroyed"!=i&&"idx"!=i&&"function"!=typeof i&&(this[i]=null)}},onsubmitform:function(t){this.visible&&(""!=this.resultInput&&(props.preserveonout?setValue(_getvalue_sep(),dataid):(_setvalue_sep(userInput),dataid=props.emptyDataId)),this.hide())},hide:function(){with(this)top.style.display="none",visible=!1,hlRow&&design._deselect(this,hlRow),hlRow=null,hlIndex=-1},show:function(){with(this)if(!visible&&numItems()>0){var w=obj.offsetWidth,x,y,off,offp;off=$(obj).offset(),offp=$(parent).offset(),offp.left+=(parseInt(jQuery.css(parent,"borderLeftWidth",!0),10)||0)-$(parent).scrollLeft(),offp.top+=(parseInt(jQuery.css(parent,"borderTopWidth",!0),10)||0)-$(parent).scrollTop(),$(top).css({left:off.left-offp.left+"px",top:off.top-offp.top+obj.offsetHeight+"px",width:w+"px"}),frame&&$(frame).css({width:w+"px"}),top.style.display="block",visible=!0,blockMouseOver=!0}},numItems:function(){return this.parts.content?this.parts.content.rows.length:0},onblur:function(e){with(this)visible&&(hlIndex>=0&&(props.preserveonout?setValue(_getvalue_sep(),dataid):(_setvalue_sep(userInput),dataid=props.emptyDataId)),hide())},onfocus:function(e){with(this)props.showalways&&procRequest(_getvalue_sep())},select:function(){with(this)props.onselect&&props.onselect.call(props.app,obj.value,dataid,this)},onkeydown:function(e){with(this){var c=e.keyCode;if(27==c&&visible)return""!=resultInput&&(_setvalue_sep(userInput),dataid=props.emptyDataId),hide(),!1;if(""==resultInput&&!props.showalways)return;if(13==c&&hlIndex>=0&&visible)return dataobj&&(dataobj.value=dataid),userInput=_getvalue_sep(),previousInput=obj.value,resetRequest(userInput),hide(),userInput!=resultInput&&clearResult(),obj.focus(),props.onchange&&props.onchange.call(props.app,obj.value,dataid,this),props.onselect&&props.onselect.call(props.app,obj.value,dataid,this),e.preventDefault(),e.stopPropagation(),!1;if(isDownKey(c))return moveSelection(hlIndex+1),!1;if(isUpKey(c))return moveSelection(hlIndex-1),!1}},onkeyup:function(e){with(this){if(""!=ignoreInput&&_getvalue_sep()==ignoreInput)return;if(obj.value==previousInput)return;ignoreInput=resultInput="",previousInput=obj.value,userInput=_getvalue_sep(),dataid=props.emptyDataId,dataobj&&(dataobj.value=dataid),hideTimer&&clearTimeout(hideTimer),hideTimer=setTimeout("var c=_uSuggestList.all["+idx+"]; if (c){var f=0; if (c.visible)f=1; c.clearResult(1); if (c.props.showalways && f)c._appendCurrent();}",200),procRequest(userInput),props.onchange&&props.onchange.call(props.app,obj.value,props.emptyDataId,this)}},setValue:function(v,id){with(this)void 0!==id&&null!=id||(id=props.emptyDataId),userInput=previousInput=obj.value=v,ignoreInput=resultInput="",dataid=id,dataobj&&(dataobj.value=id),hideTimer&&clearTimeout(hideTimer),hideTimer=null,clearResult(),props.onchange&&props.onchange.call(props.app,obj.value,id,this)},_setvalue_sep:function(v){with(this)sep_pos>=0?obj.value=obj.value.substr(0,sep_pos)+props.separator+" "+v:obj.value=v},_getvalue_sep:function(){with(this){if(props.separator&&(sep_pos=obj.value.lastIndexOf(props.separator)),sep_pos>=0){var t=obj.value.substr(sep_pos+props.separator.length);return t=t.replace(/^\s+/,""),t}return obj.value}},moveSelection:function(newi){with(this){if(""==resultInput&&""!=ignoreInput&&_getvalue_sep()==ignoreInput)return void procRequest(ignoreInput,!0);if(!visible&&resultInput.length>0&&resultInput==_getvalue_sep())return void show();if(!visible)return;hlRow&&design._deselect(this,hlRow),hlRow=null;var cnt=numItems();if(props.showalways){if(!cnt||0==userInput.length)return;newi>=cnt?newi=0:newi<0&&(newi=cnt-1)}else if(newi>=cnt?newi=-1:newi<-1&&(newi=cnt-1),-1==newi)return hlIndex=-1,_setvalue_sep(userInput),void obj.focus();hlIndex=newi,hlRow=parts.content.rows[newi],design._select(this,hlRow),ignoreInput=$(hlRow).attr("usuggeststr"),props.haveDataId&&(dataid=$(hlRow).attr("usuggestid")),_setvalue_sep(ignoreInput)}},isUpKey:function(t){return 38==t||63232==t},isDownKey:function(t){return 40==t||63233==t},resetRequest:function(txt){with(this){if(remoteReqTimer&&requestedInput==txt)return;clearTimeout(remoteReqTimer),remoteReqTimer=null,clearTimeout(AJAXTimer),AJAXTimer=null;try{AJAXObj&&AJAXObj.abort(),AJAXObj=null}catch(e){}}},_appendCurrent:function(){with(this)saIndex=parts.content.rows.length,hlRow&&design._deselect(this,hlRow),hlRow=null,0==userInput.length?(props.emptyprompt&&props.emptyprompt.length>0?design.append_row(this,props.haveDataId?[props.emptyDataId,props.emptyprompt]:[props.emptyprompt],1,"",1):saIndex=-1,hlIndex=-1):(design.append_row(this,props.haveDataId?[props.emptyDataId,userInput]:[userInput],1,userInput),hlIndex=saIndex,hlRow=parts.content.rows[saIndex],design._select(this,hlRow)),show()},procRequest:function(txt,nopause){with(this){if(resetRequest(txt),txt.length=0?(hlRow!=parts.content.rows[saIndex]&&(hlRow&&design._deselect(this,hlRow),hlIndex=saIndex,hlRow=parts.content.rows[saIndex],design._select(this,hlRow)),design.update_row(this,hlRow,props.haveDataId?[props.emptyDataId,userInput]:[userInput],1,userInput),show()):_appendCurrent()),AJAXretries=0,!props.url)return;requestedInput=txt,nopause?remoteRequest():remoteReqTimer=setTimeout("var c=_uSuggestList.all["+this.idx+"]; if (c)c.remoteRequest();",200)}},remoteRequest:function(){with(this){clearTimeout(remoteReqTimer),remoteReqTimer=null;try{AJAXObj&&AJAXObj.abort(),AJAXObj=null}catch(e){}if(AJAXretries>1)return;clearTimeout(AJAXTimer),AJAXTimer=setTimeout("var c=_uSuggestList.all["+this.idx+"]; if (c){c.AJAXretries++; c.remoteRequest();}",12e3),AJAXObj=$.ajax({type:"GET",dataType:props.dataType,cache:!1,url:props.url,data:{tag:requestedInput},success:new Function("resp","status","var c=_uSuggestList.all["+this.idx+"]; if (c)c.parseRequest(resp,status);"),timeout:1e4})}},parseRequest:function(resp,status){clearTimeout(this.AJAXTimer),this.AJAXTimer=null,this.AJAXretries=0;var res=[];if("text"==this.props.dataType)try{res=eval("res="+resp)}catch(t){}else res=resp;if(this.AJAXObj=null,!res||res.length<2||res[1]<1||res[1]>10)this.clearResult();else{var n=res[1],idx=0,data=[];this.props.haveDataId&&n++;for(var i=2;i=0){hlIndex=i,hlRow=parts.content.rows[i],design._select(this,hlRow);break}}},onrowmousedown:function(e){with(this){if(numItems()<=0||!hlIndex<0||!hlRow)return;ignoreInput=userInput=$(hlRow).attr("usuggeststr"),props.haveDataId&&(dataid=$(hlRow).attr("usuggestid"),dataobj&&(dataobj.value=dataid)),_setvalue_sep(userInput),previousInput=obj.value,resetRequest(userInput),hide(),userInput!=resultInput&&clearResult(),obj.focus(),props.onchange&&props.onchange.call(props.app,obj.value,dataid,this),props.onselect&&props.onselect.call(props.app,obj.value,dataid,this)}},setResult:function(phrase,table){with(this){hideTimer&&clearTimeout(hideTimer),hideTimer=null,clearResult(),hlIndex=-1,hlRow=null,resultInput=phrase;var cnt=table.length,cols,havecurrent=-1;if(props.showalways)cnt>0&&(cols=table[0].length);else{if(cnt<=0)return void hide();cols=table[0].length}props.haveDataId&&cols--;for(var i=0;i0;)parts.content.deleteRow(0)}},_uDraggable.dummy=function(){},_uDraggable.obj=null,_uDraggable.clkX=0,_uDraggable.clkY=0,_uDraggable.scrL=0,_uDraggable.scrT=0,_uDraggable.globalset=!1,_uDraggable.onmousemove=function(e){with(_uDraggable){var o=obj;if(!o)return;if(o.event=e,void 0!==e.which&&1!=e.which)return o.stop(),void(obj=null);e.stopPropagation(),e.preventDefault();var d=_uWnd.getdims();return o.moved||e.clientX==clkX&&e.clientY==clkY||(o.onstartdrag.apply(o.par,[o.x,o.y,o.w,o.h,o.m]),o.moved=!0),o.onmove.apply(o.par,[e.clientX-clkX-(scrL-d.clientLeft),e.clientY-clkY-(scrT-d.clientTop),o.x,o.y,o.w,o.h,o.m]),o.event=null,!1}},_uDraggable.onmouseup=function(e){if(1==e.which)with(_uDraggable){var o=obj;if(!o)return;o.moved&&onmousemove(e),o.event=e,o.stop(),o.event=null,obj=null}},_uDraggable.prototype={start:function(t,e,s,i,o,a){var n=_uDraggable;n.obj&&(n.obj.event=t,n.obj.onstopdrag.apply(n.obj.par),n.obj.event=null),this.x=e,this.y=s,this.w=i,this.h=o,this.m=a,this.active=!0,this.moved=!1,n.obj=this;var r=_uWnd.getdims();n.clkX=t.clientX,n.clkY=t.clientY,n.scrL=r.clientLeft,n.scrT=r.clientTop,this.event=t,this.oninitdrag.apply(this.par,[e,s,i,o,a])},stop:function(){var t=_uDraggable;t.obj==this&&(t.obj=null),this.active&&(this.onstopdrag.apply(this.par,[this.x,this.y,this.w,this.h,this.m]),this.active=!1)}},_uSlider._onmousedownparent=function(t){var e=t.data;if(!e.disabled){var s="h"==e.type?t.pageX:t.pageY,i=$(this).offset(),o="h"==e.type?s-i.left:s-i.top;e.setPos(o-e.hotoff),t.preventDefault()}},_uSlider._onmousedown=function(t){var e=t.data;e.disabled||e.drag.start(t,e.pos)},_uSlider._onmousemove=function(t){t.preventDefault()},_uSlider.prototype={setPos:function(t){tthis.max_pos&&(t=this.max_pos);var e=this.min_value0&&(t=((s=Math.round((s-this.min_value)/this.step)*this.step+this.min_value)-this.min_value)/(this.max_value-this.min_value)*(this.max_pos-this.min_pos)+this.min_pos,t=Math.round(t)),s*ethis.max_value*e&&(s=this.max_value),s!=this.value&&(this.pos=t,"h"==this.type?this.slider.style.left=this.pos+"px":this.slider.style.top=this.pos+"px",this.value=s,this.props.onchange&&this.props.onchange.call(this.props.thispar,this.value,this.props.param,this))},_ondrag:function(t,e,s){this.disabled||this.setPos(s+t)},setValue:function(t){var e=this.min_valuethis.max_value*e)){this.step>0&&((t=Math.round((t-this.min_value)/this.step)*this.step+this.min_value)*ethis.max_value*e&&(t=this.max_value));var s=(t-this.min_value)/(this.max_value-this.min_value)*(this.max_pos-this.min_pos)+this.min_pos;this.pos=Math.round(s),"h"==this.type?this.slider.style.left=this.pos+"px":this.slider.style.top=this.pos+"px",this.value=t,!this.disabled&&this.props.onchange&&this.props.onchange.call(this.props.thispar,this.value,this.props.param,this)}}},_uSlider.buildH=function(t,e){var s=$.extend({w:124,lw:0,limg:"",limgcss:"",rw:0,rimg:null,rimgcss:"",title:"",ch:20,cw:120,cimg:"/img/d/sldBg.gif",cimgcss:"no-repeat 0 10px",simg:"/img/d/sld.gif",simgcss:"no-repeat 0 0",sh:20,sw:9,st:2},e||{});return String(s.w).indexOf("%")<0&&String(s.w).toLowerCase().indexOf("px")<0&&(s.w+="px"),'\t'+(s.lw>0?'":"")+"'+(s.rw>0?'":"")+"\t
"},_uTabCtrl.all=[],_uTabCtrl.nextidx=1,_uTabCtrl.globalset=!1,_uTabCtrl.getbyname=function(t){var e=this.all,s=parseInt(t);if(!isNaN(s)&&String(s)==String(t))return e[s]||null;for(var i=0;i
')+'
'+t.props.emptycontent+"
"),t.props.notabs||(e.pane=$(t.top).find(".u-tabc-p")[0],e.panebot=$(t.top).find(".u-tabc-pbot")[0],e.listp=$(t.top).find(".u-tabc-listp")[0],e.list=$(t.top).find(".u-tabc-list")[0],e.scrbut=$(t.top).find(".u-tabc-scrbut")[0],e.scrl=$(t.top).find(".u-tabc-scrl")[0],e.scrr=$(t.top).find(".u-tabc-scrr")[0],$(e.scrl).on("click mousedown mouseover mouseout",{obj:t,but:0},_uTabCtrl._onscrbutevent),$(e.scrr).on("click mousedown mouseover mouseout",{obj:t,but:1},_uTabCtrl._onscrbutevent)),e.body=$(t.top).find(".u-tabc-body")[0],e.emptycontent=e.content=$(t.top).find(".u-tabc-content")[0],$(t.top).find("div,span")[$.fn.andSelf?"andSelf":"addBack"]().attr("unselectable","on"),e},remove_item:function(t,e){t.props.notabs||t.parts.list.removeChild(t.data[e].obj)},set_title:function(t,e){t.props.notabs||$(t.data[e].label).html((t.data[e].icon?'':"")+t.data[e].title)},insert_item:function(t,e){if(!t.props.notabs){var s,i=document.createElement("div");s=t.data[e].icon?'':t.data[e].iconstyle?'
':"",$(i).attr("class","u-tabc-tab"+(t.data[e].close?" u-tabc-wcl":"")).html((t.data[e].href?"':'")),t.data[e].obj=i,t.data[e].label=$(i).find(".u-tabc-label")[0],t.data[e].link=$(i).find(".u-tabc-tabl")[0],t.data[e].close&&(t.data[e].clbut=$(i).find(".u-tabc-closebut")[0],$(t.data[e].clbut).on("mouseover",this._onclbutmouseover).on("mouseout",this._onclbutmouseout).on("click",{obj:t,tab:t.data[e]},_uTabCtrl._onclbutclick).on("mousedown",{obj:t,tab:t.data[e]},_uTabCtrl._onclbutdown)),$(t.data[e].link).on("mouseover",this._ontabmouseover).on("mouseout",this._ontabmouseout).on("mousedown",{obj:t,tab:t.data[e]},_uTabCtrl._ontabclick),$(i).find("div,span,a,img")[$.fn.andSelf?"andSelf":"addBack"]().attr("unselectable","on"),t.data[e].ishidden&&(i.style.display="none");var o=t.parts.list.childNodes.length;t.parts.list.insertBefore(i,e>=o?null:t.parts.list.childNodes[e])}},_ontabmouseover:function(t){$(this.parentNode).addClass("u-tabc-tab-over")},_ontabmouseout:function(t){$(this.parentNode).removeClass("u-tabc-tab-over")},_onclbutmouseover:function(t){$(this).addClass("u-tabc-closebut-over")},_onclbutmouseout:function(t){$(this).removeClass("u-tabc-closebut-over")},_onclbutmousedown:function(t,e){e?$(t).addClass("u-tabc-closebut-down"):$(t).removeClass("u-tabc-closebut-down")},_ontabactivate:function(t,e){t.props.notabs||$(t.data[e].obj).addClass("u-tabc-tab-act")},_ontabdeactivate:function(t,e){t.props.notabs||$(t.data[e].obj).removeClass("u-tabc-tab-act")},_onscrbutactivate:function(t,e,s){s?$(e?t.parts.scrr:t.parts.scrl).removeClass("u-tabc-scr-dis"):$(e?t.parts.scrr:t.parts.scrl).addClass("u-tabc-scr-dis")},_onscrbutover:function(t,e,s){var i=e?t.parts.scrr:t.parts.scrl;s?$(i).addClass("u-tabc-scr-over"):$(i).removeClass("u-tabc-scr-over")},_onscrbutdown:function(t,e,s){var i=e?t.parts.scrr:t.parts.scrl;s?$(i).addClass("u-tabc-scr-down"):$(i).removeClass("u-tabc-scr-down")},_onbuttonup:function(t,e,s){e<2?this._onscrbutdown(t,e,0):this._onclbutmousedown(s.clbut,0)}}},_uTabCtrl._onclbutdown=function(t){1==t.which&&(t.stopPropagation(),t.data.obj.design._onclbutmousedown(t.data.tab.clbut,1),t.data.obj.butdown.start(t,2,t.data.tab)),_uWnd.globalmousedown()},_uTabCtrl._onscrbutevent=function(t){var e=t.data.obj,s=t.data.but;"click"==t.type&&1==t.which?e.scrollTabPane(s?40:-40):"mouseover"==t.type?e.design._onscrbutover(e,s,1):"mouseout"==t.type?e.design._onscrbutover(e,s,0):"mousedown"==t.type&&1==t.which&&(e.design._onscrbutdown(e,s,1),e.butdown.start(t,s))},_uTabCtrl._onclbutclick=function(t){for(var e=t.data,s=e.obj,i=0;i0&&$(e).css("width",this.width+"px"),this.parts=this.design.tabctrl_init(this),this.parts.markloadcont=null,this.parts.headercontent=null,this.parts.footercontent=null,this.show(),t||setTimeout("var m=_uTabCtrl.all["+this.idx+"]; if (m)m.init1();",10)},init1:function(t){var e=this.parts,s=this.decor;if(this.width>0||(this.width=this.top.offsetWidth),this.height>0||(this.height=this.top.offsetHeight),s.cdw=this.top.offsetWidth-e.content.offsetWidth,s.cdh=this.top.offsetHeight-e.content.offsetHeight,this.props.notabs?s.pdw=0:s.pdw=this.top.offsetWidth-e.listp.offsetWidth,s.hh=0,s.fh=0,this.props.wnd||t||($(this.top).css("height",this.height+"px"),$(e.content).css({width:this.top.offsetWidth-s.cdw+"px",height:this.top.offsetHeight-s.cdh+"px"}),this.props.notabs||$(e.listp).css({width:this.top.offsetWidth-s.pdw+"px"})),!this.props.notabs){$(e.listp).css({overflow:"hidden"}),$(e.panebot).css("width","4000px"),$(e.list).css("width","4000px");for(var i=0;i0&&self.location.hash.length>1){for(var a=self.location.hash.substr(1).split(";"),n="T_"+this.name+"=",r=0;rn.length&&a[r].substr(0,n.length)==n){var l=this.idxbyid(a[r].substr(n.length));if(l>=0&&l0&&(o=0),o>=0&&o0?this.data[this.data.length-1].obj.offsetLeft+i-s:0,this.scrollpos.pos=e,this.parts.listp.scrollLeft=e;else{if(this.props.rtl||window._rtl){var o=this.data[this.data.length-1].obj.offsetLeft;eo+s-i&&(e=o+s-i)}else e<0?e=0:e>s-i&&(e=s-i);this.scrollpos.pos=e,this.parts.listp.scrollLeft=e,e>0?this.design._onscrbutactivate(this,0,1):this.design._onscrbutactivate(this,0,0),e0&&this.parts.listp.clientWidth0){var i=this.data[this.data.length-1].obj;if(this.props.rtl||window._rtl){var o=this.data[0].obj;e=o.offsetLeft+o.offsetWidth-i.offsetLeft}else e=i.offsetLeft+i.offsetWidth}s0?this.scrollpos.pos=this.data[this.data.length-1].obj.offsetLeft+e-s:this.scrollpos.pos=0:this.scrollpos.havewidth!=s&&(this.props.rtl||window._rtl)&&(this.scrollpos.pos+=this.scrollpos.havewidth-s),this.scrollpos.havewidth=s,this.scrollpos.tabswidth=e,s=0&&this.active_tabthis.scrollpos.pos+s&&this.scrollTabPane(i.offsetLeft+i.offsetWidth-(this.scrollpos.pos+s)))),this.scrollTabPane(0)}},show:function(t){this.state.init?($(this.top).show(),this.state.visible=!0):this.pend_show=[t]},resizeTo:function(w,h){var d=this.decor;with(this)width=w,height=h,$(top).width(w).height(h),$(parts.content).css({width:w-d.cdw+"px",height:h-d.cdh-d.fh-d.hh+"px"}),parts.headercontent&&$(parts.headercontent).css({width:w-d.cdw+"px",height:d.hh+"px"}),parts.footercontent&&$(parts.footercontent).css({width:w-d.cdw+"px",height:d.fh+"px"}),props.notabs||$(parts.listp).css({width:w-d.pdw+"px"}),props.onresize&&props.onresize.call(app,w-d.cdw,h-d.cdh,this,name),_setscrolls()},addTab:function(t,e,s,i){var o=null!=i&&i>=0&&i0?a.footerh:0,header:a.headerc||null,headerh:a.headerh&&a.headerh>0?a.headerh:0,footercont:null,headercont:null,cont:null,ismarkload:0,iserrorload:0,markloadcont:null,obj:null,ishidden:a.hidden,clbut:null,link:null,href:a.href,target:a.target,label:null,align:null==a.align?this.props.align:a.align,close:null==a.close?this.props.close:a.close,icon:a.icon,iconstyle:a.iconstyle,markload:a.markload,firstload:0,firstshow:0,xmlobj:null,xmlobj_ignoreabort:0,onload:null==a.onload?this.props.onload:a.onload,onerror:null==a.onerror?this.props.onerror:a.onerror,onshow:null==a.onshow?this.props.onshow:a.onshow,onhide:null==a.onhide?this.props.onhide:a.onhide,onbeforechange:null==a.onbeforechange?this.props.onbeforechange:a.onbeforechange,onchange:null==a.onchange?this.props.onchange:a.onchange,onbeforeclose:null==a.onbeforeclose?this.props.onbeforeclose:a.onbeforeclose,onclose:null==a.onclose?this.props.onclose:a.onclose};return o=this.data.length)){var s=this.data[t];s.obj.style.display=e?"none":"",s.ishidden=!!e,this._setscrolls()}},activateTab:function(t,e){if(t=this.idxbyid(t),!this.state.init)return this.active_tab=t,1;if(t<0||t>=this.data.length||this.active_tab==t){if(!(e&&this.data.length>0))return 0;t=0}return this.design._ontabactivate(this,t),this.active_tab>=0&&this.active_tab=this.data.length)){this.data[t].xmlobj&&(this.data[t].xmlobj_ignoreabort=1,this.data[t].xmlobj.abort(),this.data[t].xmlobj=null),t==this.active_tab&&"function"==typeof this.data[t].onhide&&this.data[t].onhide.call(this.app,this,t,this.data[t].id),this.design.remove_item(this,t);var e=this.data[t].id,s=this.data[t].onclose;this.data.splice(t,1),t==this.active_tab?(this.active_tab=-1,t==this.data.length?0==t?this._assign_content(-1):this.activateTab(t-1):this.activateTab(t)):t=this.data.length||(this.data[t].title=e,this.design.set_title(this,t),this._setscrolls())},headerheight:function(t,e){(t=this.idxbyid(t))<0||t>=this.data.length||"number"!=typeof e||isNaN(e)||(this.data[t].headerh=e)},footerheight:function(t,e){(t=this.idxbyid(t))<0||t>=this.data.length||"number"!=typeof e||isNaN(e)||(this.data[t].footerh=e)},content:function(t,e,s,i,o){(t=this.idxbyid(t))<0||t>=this.data.length||(this.data[t].xmlobj&&(this.data[t].xmlobj_ignoreabort=1,this.data[t].xmlobj.abort(),this.data[t].xmlobj=null),void 0!==s&&null!=s||(s=this.data[t].headercont?null:this.data[t].header?this.data[t].header:""),void 0!==i&&null!=i||(i=this.data[t].footercont?null:this.data[t].footer?this.data[t].footer:""),void 0!==e&&null!=e||(e=this.data[t].cont?null:""),this.data[t].cont||(this.data[t].cont=document.createElement("DIV"),$(this.data[t].cont).addClass(this.design.content_class).css("text-align",this.data[t].align)),null!=e&&($(this.data[t].cont).html(e),this.data[t].firstload=o?0:1,this.data[t].ismarkload=0,this.data[t].iserrorload=o?1:0),s||null==s?(this.data[t].headercont||(this.data[t].headercont=document.createElement("DIV"),$(this.data[t].headercont).attr("class",this.design.content_class+" "+this.design.header_class).css("overflow","hidden").css("text-align",this.data[t].align)),s&&$(this.data[t].headercont).html(s)):this.data[t].headercont&&$(this.data[t].headercont).html(""),i||null==i?(this.data[t].footercont||(this.data[t].footercont=document.createElement("DIV"),$(this.data[t].footercont).attr("class",this.design.content_class+" "+this.design.footer_class).css("overflow","hidden").css("text-align",this.data[t].align)),i&&$(this.data[t].footercont).html(i)):this.data[t].footercont&&$(this.data[t].footercont).html(""),t==this.active_tab&&this._assign_content(t))},_assign_content:function(t){var e,s=0,i=0;for(t<0?(this.parts.content=this.parts.emptycontent,this.parts.headercontent=this.parts.footercontent=null):this.data[t].ismarkload?(this.parts.content=this.data[t].markloadcont,this.parts.headercontent=this.parts.footercontent=null):(this.parts.content=this.data[t].cont,this.parts.headercontent=this.data[t].headercont,i=this.data[t].headerh,this.parts.footercontent=this.data[t].footercont,s=this.data[t].footerh),e=0,this.parts.headercontent?($(this.parts.headercontent).css({width:this.width-this.decor.cdw+"px",height:i+"px"}),this.parts.body.childNodes[e]?this.parts.body.replaceChild(this.parts.headercontent,this.parts.body.childNodes[e]):this.parts.body.appendChild(this.parts.headercontent),this.decor.hh=i,e++):this.decor.hh=0,$(this.parts.content).css({width:this.width-this.decor.cdw+"px",height:this.height-this.decor.cdh-s-i+"px"}),this.parts.body.childNodes[e]?this.parts.body.replaceChild(this.parts.content,this.parts.body.childNodes[e]):this.parts.body.appendChild(this.parts.content),e++,this.parts.footercontent?($(this.parts.footercontent).css({width:this.width-this.decor.cdw+"px",height:s+"px"}),this.parts.body.childNodes[e]?this.parts.body.replaceChild(this.parts.footercontent,this.parts.body.childNodes[e]):this.parts.body.appendChild(this.parts.footercontent),this.decor.fh=s,e++):this.decor.fh=0;this.parts.body.childNodes[e];)this.parts.body.removeChild(this.parts.body.childNodes[e]);if(t>=0&&!this.data[t].ismarkload){if("function"==typeof this.data[t].onload&&this.data[t].firstload){var o,a;try{for(o=10,a=arguments.callee.caller;o>=0&&(a&&a.caller!=arguments.callee);o--)a=a.caller}catch(t){}(!a||o<0)&&this.data[t].onload.call(this.app,this,t,this.data[t].id,this.parts.content,this.parts.headercontent,this.parts.footercontent)}"function"==typeof this.data[t].onshow&&(this.data[t].firstshow||this.data[t].firstload)&&this.data[t].onshow.call(this.app,this.data[t].iserrorload,this,t,this.data[t].id,this.parts.content,this.parts.headercontent,this.parts.footercontent),this.data[t].firstshow=0}t>=0&&(this.data[t].firstload=0)},markload:function(t){(t=this.idxbyid(t))<0||t>=this.data.length||(this.data[t].markload?this.data[t].markloadcont||(this.data[t].markloadcont=document.createElement("DIV"),$(this.data[t].markloadcont).addClass("u-tabc-content").html(this.data[t].markload)):(this.parts.markloadcont||(this.parts.markloadcont=document.createElement("DIV"),$(this.parts.markloadcont).addClass("u-tabc-content").html(this.props.markload)),this.data[t].markloadcont=this.parts.markloadcont),this.data[t].ismarkload=1,this.data[t].iserrorload=0,t==this.active_tab&&this._assign_content(t))},idxbyid:function(t){if(this.state.destroyed)return-1;if("string"==typeof t){for(var e=0;e=this.data.length)return $([]);var s=$(this.data[t].iserrorload?[]:this.data[t].cont);return this.data[t].headercont&&(s=s.add(this.data[t].headercont)),this.data[t].footercont&&(s=s.add(this.data[t].footercont)),e?s.find(e):s},load:function(t,e,s){if(!((t=this.idxbyid(t))<0||t>=this.data.length))if(null==this.data[t].cont||e){if((-1!==e||(this.data[t].cont=null,t==this.active_tab))&&(e||!this.data[t].xmlobj)){var i;if(this.data[t].xmlobj&&(this.data[t].xmlobj_ignoreabort=1,this.data[t].xmlobj.abort(),this.data[t].xmlobj=null),e&&!0!==e&&1!==e&&-1!==e?(s||(this.data[t].dat=e),i=e):i=this.data[t].dat,"string"==typeof i)this.content(t,i,this.data[t].header,this.data[t].footer);else if("function"==typeof i)this.content(t,i(),this.data[t].header,this.data[t].footer);else if("object"==typeof i){this.markload(t),this.app&&!("app"in i)&&(i.app=this.app.pid),this.wnd&&!("wnd"in i)&&(i.wnd=this.wnd.idx),i.tabctrl=this.idx,i.tabid=this.data[t].id,_uTabCtrl._onAjaxComplete||(_uTabCtrl._onAjaxComplete=function(t,e){var s=_uTabCtrl.all[this.tabctrl];s&&s._oncomplete(t,e,this)}),i.complete!=_uTabCtrl._onAjaxComplete&&(i.prev_complete_utabctrl=i.complete,i.complete=_uTabCtrl._onAjaxComplete),_uTabCtrl._onAjaxBeforeSend||(_uTabCtrl._onAjaxBeforeSend=function(t){var e=_uTabCtrl.all[this.tabctrl];if(e){var s=e.idxbyid(this.tabid);s>=0&&s0||i.form.nodeType)?_uPostForm(i.form,i):i.url&&_uAjaxRequest(i.url,i)}catch(e){this.data[t].xmlobj=null,this._onerror(this.data[t].id,null,"",e,i)}}return!0}}else t==this.active_tab&&this._assign_content(t)},_oncomplete:function(t,e,s){var i=this.idxbyid(s.tabid);i<0||i>=this.data.length||(this.data[i].xmlobj=null,s.prev_complete_utabctrl&&s.prev_complete_utabctrl.call(s,t,e))},_onerror:function(t,e,s,i,o){var a=this.idxbyid(t);if(!(a<0||a>=this.data.length)&&("abort"!=s&&"aborted"!=s||this.data[a].xmlobj&&!this.data[a].xmlobj_ignoreabort)){var n=this.data[a].onerror||this.props.onerror;n&&"function"==typeof n?n.apply(this.app,[t,e,s,i,o]):this.content(a,_txt("ErrorLoadTab",this.idx,a),null,null,1)}},destroy:function(){this.state.destroyed||(this.data.splice(0,this.data.length),this.parts=null,this.top.parentNode&&this.top.parentNode.removeChild(this.top),this.top=null,this.wnd&&this.wnd.tabctrl==this&&(this.wnd.tabctrl=null),this.state.destroyed=!0,_uTabCtrl.all[this.idx]=null,this.props.ondestroy&&this.props.ondestroy(this,this.name))}},_uWnd.all={},_uWnd.nextidx=1,_uWnd.zchilds=[],_uWnd.lastz=0,_uWnd.zstep=2,_uWnd.minz=1e4,_uWnd.maxz=2e4,_uWnd.lastmodalz=0,_uWnd.minmodalz=21e3,_uWnd.maxmodalz=25e3,_uWnd.globalset=!1,_uWnd.defdesktop=null,_uWnd.ignoreclick=null,_uWnd.findactive=function(){for(var t=_uFocus.current;t;){if(t.owner&&t.owner.constructor==_uWnd)return t;t=t._parent}return null},_uWnd.globalmousedown_queue=[],_uWnd.globalmousedown=function(t){0==(1&(t=t||0))&&_uMENU.hideallmenus(),0==(4&t)&&_uSuggestList.hideall(),0==(8&t)&&_uComboBox.hideall(),0==(2&t)&&_uWnd.closepopup();for(var e=_uWnd.globalmousedown_queue.length-1;e>=0;e--){var s=_uWnd.globalmousedown_queue[e];s.func.call(s.thispar,s.param)}},_uWnd.addglobalmousedownhandler=function(t,e,s){"function"==typeof t&&_uWnd.globalmousedown_queue.push({func:t,thispar:e||null,param:s||null})},_uWnd.removeglobalmousedownhandler=function(t,e,s){if("function"==typeof t){e=e||null,s=s||null;for(var i=_uWnd.globalmousedown_queue.length-1;i>=0;i--){var o=_uWnd.globalmousedown_queue[i];o.func==t&&o.thispar==e&&o.param==s&&_uWnd.globalmousedown_queue.splice(i,1)}}},_uWnd.messageBoxclose=function(t,e){var s=t.props._msgdata;s.retval||(s.retval=s.defc),s.onsel&&s.onsel.call(s.app,s.retval,s.param,t)},_uWnd.messageBox=function(t,e,s,i,o,a,n){var r,l,h,d=$.extend({w:"auto",h:"auto",name:"",modal:1,closeonesc:1,align:"center",min:0,max:0,close:1,fadetype:0,fadeclosetype:0,resize:0,autosize:0},o||{}),p={onsel:i,app:n,param:a};for(d._msgdata=p,d.onclose=_uWnd.messageBoxclose,d.oncontent=_uWnd.messageBoxoncont,l={ok:1,yes:1,no:1,retry:1,cancel:1},p.buts=[],p.def=null,p.defc=null,s&&s.constructor==Array||(s=["ok"]),r=0;r"+_uButton("","b",{style:void 0===s.buts[i].style?1:s.buts[i].style,text:s.buts[i].t,content:'onclick="var w=_uWnd.all['+t.idx+"]; if (w){w.props._msgdata.retval='"+encodeHtmlVal(s.buts[i].id)+"'; w.close()}\"",id:"_uw"+t.idx+"msg"+s.buts[i].id})+"";return'
'+s.txt+'
'+e+"
"},_uWnd.alerts=null,_uWnd.alert=function(t,e,s,i){(s=$.extend({w:150,h:100,tm:5e3,shadow:0,close:1,align:"center",icon:"",iconstyle:null,name:"",pad:null},s||{})).pad&&(t='
'+t+"
"),"undefined"!=typeof uwnd_scale&&(s.h=Math.ceil(s.h*uwnd_scale.h));var o,a,n,r,l,h,d="undefined"!=typeof uwnd_scale?Math.ceil(s.w*uwnd_scale.w):s.w;if((o=_uWnd.defdesktop)?(a=o.width-o.calcexclude(1)-d-5,r=o.height-o.calcexclude(3)-s.h-5,l=o.alerts,h=o.calcexclude(2)):(a=(o=_uWnd.getdims()).clientW-d-5,r=o.clientH-s.h-5,l=_uWnd.alerts,h=0,o=null),n=r,l){for(l.y-(s.h+5)>=0&&(n=l.y-(s.h+5));l;)l.y>h&&(h=l.y),l=l.prev;h>0&&r-h>=s.h+5&&(n=r)}var p=new _uWnd(s.name,e,s.w,s.h,{close:s.close,min:0,max:0,icon:s.icon,iconstyle:s.iconstyle,align:s.align,x:a,y:n,alert:1,autosize:0,fixed:1,shadow:s.shadow,resize:0,nomove:1,hidden:0,notaskbar:1,fadetype:2,fadespeed:500,fadeclosetype:2,fadeclosespeed:500,onclose:function(t,e){_uWnd.rmalert(t,e)}},t,null,i);return o?o.alerts={prev:o.alerts,wnd:p,y:n}:_uWnd.alerts={prev:_uWnd.alerts,wnd:p,y:n},s.tm>0&&setTimeout("var w=_uWnd.all["+p.idx+"]; if (w)w.close();",s.tm),p},_uWnd.rmalert=function(t,e){for(var s=t.desktop?t.desktop.alerts:_uWnd.alerts,i=null;s&&s.wnd!==t;)i=s,s=s.prev;s&&s.wnd===t&&(i?i.prev=s.prev:t.desktop?t.desktop.alerts=s.prev:_uWnd.alerts=s.prev)},_uWnd._onscroll=function(t){if($.browser&&$.browser.msie){_uWnd.getdims();var e=_uWnd.all;for(var s in e)e[s]&&(!e[s].props.fixed&&!e[s].grid||e[s].havefixed||e[s].moveTo(e[s].xpos,e[s].ypos))}},_uWnd._onresize=function(t,e){var s=_uWnd.getdims(),i=_uWnd.all;for(var o in i)i[o]&&((e||i[o].desktop)&&i[o].desktop!=e||i[o]._onresize(s))},_uWnd.closepopup=function(){var t=_uWnd.all;for(var e in t)t[e]&&t[e].props.popup&&_uWnd.ignoreclick!=t[e]&&t[e].closeevent();_uWnd.ignoreclick&&setTimeout("_uWnd.ignoreclick=null;",10)},_uWnd.findparent=function(t){for(var e=t;e&&e!=document.body;){if(e.id&&e.id.indexOf&&0==e.id.indexOf("_uwndTop")&&e._uwndobj)return e._uwndobj;e=e.parentNode}return null},_uWnd.getbyname=function(t){var e=this.all,s=parseInt(t);if(!isNaN(s)&&String(s)==String(t))return e[s]||null;for(var i in e)if(e[i]&&e[i].name==t)return e[i];return null},_uWnd.getTopZ=function(nc,ignw){with(nc||(nc=0),_uWnd){var z=lastz;if(zmaxz){var x=minz,ar=[];for(var i in all)all[i]&&all[i]!=ignw&&all[i].props&&!all[i].props.parent&&!(all[i].props.modal||all[i].props.alert||all[i].modalparent)&&(ar[ar.length]=all[i]);for(var i=0;imaxmodalz){var x=minmodalz,ar=[];for(var i in all)all[i]&&all[i]!=ignw&&all[i].props&&!all[i].props.parent&&(all[i].props.modal||all[i].props.alert||all[i].modalparent)&&(ar[ar.length]=all[i]);ar.sort((function(t,e){return t.zpos-e.zpos}));for(var i=0;ie&&(e=i[o].zpos,s=i[o]);s?s.activate():t&&t.activate()},_uWnd.havesysmenu=0,_uWnd.sysmenu=null,_uWnd.sysmenuitems=[[_txt("Restore"),null,"rest"],[_txt("Minimize"),null,"min"],[_txt("Maximize"),null,"max"],"sep",[_txt("Close"),null,"close"]],_uWnd._onsysmenuitem=function(t,e,s){var i=e.forwnd;if(i)switch(s){case"rest":i.state.minimized&&i.ontaskbar?i.desktop.wndlist.design.animatewndrestore(i.desktop.wndlist,i):i.restore(1);break;case"min":i.minimize();break;case"max":i.state.minimized&&i.ontaskbar?i.desktop.wndlist.design.animatewndmaximize(i.desktop.wndlist,i):i.maximize(1);break;case"close":i.closeevent()}},_uWnd.designs={std:{altcloseclass:"xt-close2",altmaxiclass:"xt-maxi2",altrestclass:"xt-rest2",custButMargin:5,wnd_init:function(t,e,s,i,o,a,n,r,l){$(e).addClass("xw-plain").addClass("x-unselectable"),t.props.alert&&$(e).addClass("xw-active"),r&&$(e).addClass("xw-resize");var h="";if(t.props.customButtons)for(var d in t.props.customButtons)h+='
';$(e).html(''+(a?'
'+h+(n?'':t.props.iconstyle?'
':"")+''+s+"
":'
')+'
'+(l?'
':"")+'
'+(t.props.havegrid?'':"")+(t.props.headerc?'
':"")+(t.props.actlayer?'
':"")+'
"+(t.props.footerc?'
':"")+'
');var p={},u=0;if(t.props.attachicon&&($(t.top).append(''),p.attachicon=$(t.top).find(".xw-attachicon")[0]),p.markdis=$(e).find(".xw-disabled")[0],p.actlayer=$(e).find(".xw-actlayer")[0],p.wndmove=$(e).find(".xw-blank")[0],p.upper=$(e).find(".xw-tl")[0],p.center=$(e).find(".xw-ml")[0],p.bottom=$(e).find(".xw-bl")[0],p.bottomc=$(e).find(".xw-bc")[0],$(e).find(".xw-mc").on("mousedown",t,_uWnd._activateonmousedown),t.props.headerc&&(p.headercont=$(e).find(".myWinCont")[u],$(p.headercont).html(t.props.headerc),u++),p.markload=$(e).find(".myWinCont")[u],$(p.markload).html(t.props.markload),p.wndcont=$(e).find(".myWinCont")[u+1],t.props.footerc&&(p.footercont=$(e).find(".myWinCont")[u+2],$(p.footercont).html(t.props.footerc)),t.props.havegrid&&(p.markwait=$(e).find("."+t.props.markwaitclass)[0],$(p.markwait).html(t.props.markwaitcont)),p.hwndcont=p.wndcont.parentNode,a){p.hdr=$(e).find(".xw-hdr")[0],p.htitle=$(e).find(".xw-hdr-text")[0];var c={cbut:"xt-close",mbut:"xt-mini",xbut:"xt-maxi",rbut:"xt-rest",icon:"xw-icon"};for(var d in c)p[d]=$(p.hdr).find("."+c[d])[0];for(var d in p.custom={},t.props.customButtons)p.custom[d]=$(p.hdr).find(".xt-"+d)[0]}else p.hdr=p.htitle=p.cbut=p.mbut=p.xbut=p.rbut=p.icon=null;return p.menu=l?$(e).find(".u-wndmenu")[0]:null,$(e).find("div,span")[$.fn.andSelf?"andSelf":"addBack"]().attr("unselectable","on"),p},onstartautosz:function(t){t.parts.wndcont.style.overflow="hidden",t.parts.wndcont.style.height="auto"},onstopautosz:function(t,e){e||(t.parts.hwndcont.style.visibility="",t.parts.headercont&&t.props.hidehonresize&&(t.parts.headercont.style.visibility=""),t.parts.footercont&&t.props.hidefonresize&&(t.parts.footercont.style.visibility="")),t.parts.wndcont.style.overflow="auto",t.parts.wndcont.style.height="100%"},get_szbuts:function(t){var e={nw:"xw-tl",n:"xw-sps",ne:"xw-tr",w:"xw-ml",e:"xw-mr",sw:"xw-bl",s:"xw-bc",se:"xw-br"};for(var s in e)e[s]=$(t).find("."+e[s])[0];return e.n||(e.n=$(t).find(".xw-tsps")[0]),e},onbuttonover:function(t){var e=t.data.cls;t.data.state?$(this).addClass(e+"-over"):$(this).removeClass(e+"-over")},onstartdrag:function(t){$(t.top).addClass("xw-dragging"),!t.state.minimized&&t.props.hideonmove&&($(t.parts.center).add(t.parts.bottom).hide(),$(t.parts.wndmove).css("width",t.width+"px").css("height",t.height-t.decor.th+"px").show())},onstopdrag:function(t){$(t.top).removeClass("xw-dragging"),!t.state.minimized&&t.props.hideonmove&&($(t.parts.center).add(t.parts.bottom).show(),$(t.parts.wndmove).hide())},ondisable:function(t,e){e?($(t.parts.markdis).css("width",Math.abs(t.width)+"px").css("height",Math.abs(t.height)+"px").show(),$(t.wnd).removeClass("xw-active")):($(t.parts.markdis).hide(),(t.state.focused||t.props.alert)&&$(t.wnd).addClass("xw-active"))},onfocus:function(t,e){e&&!t.state.disabled?$(t.wnd).addClass("xw-active"):$(t.wnd).removeClass("xw-active")},onstartresize:function(t){},onstopresize:function(t){},onminimize:function(t){$(t.parts.center).css("display","none"),$(t.parts.bottomc).addClass("xw-bcm")},onrestore:function(t){$(t.parts.bottomc).removeClass("xw-bcm"),$(t.parts.center).css("display","block")}}},_uWnd.prototype={showsysmenu:function(t,e){this.activate();var s,i=_uWnd.sysmenu;i&&((s=i.indexById("rest"))>=0&&(this.state.minimized&&(this.props.max||"max"!=this.state.beforemin)||this.props.max&&this.state.maximized?($(i.parts.elems[s]).removeClass("u-graymenuitem"),i.elems[s][1]=null):($(i.parts.elems[s]).addClass("u-graymenuitem"),i.elems[s][1]=1)),(s=i.indexById("min"))>=0&&(this.props.min&&!this.state.minimized?($(i.parts.elems[s]).removeClass("u-graymenuitem"),i.elems[s][1]=null):($(i.parts.elems[s]).addClass("u-graymenuitem"),i.elems[s][1]=1)),(s=i.indexById("max"))>=0&&((this.props.max||this.state.minimized&&"max"==this.state.beforemin)&&!this.state.maximized?($(i.parts.elems[s]).removeClass("u-graymenuitem"),i.elems[s][1]=null):($(i.parts.elems[s]).addClass("u-graymenuitem"),i.elems[s][1]=1)),i.forwnd=this,this.props.popup&&(_uWnd.ignoreclick=this),_uWnd.globalmousedown(),i.show({pos:{x:t,y:e},parentfocus:this._focus}))},_foreachchild:function(t,e){for(var s,i=0;i0){if(t&&s&&((e="object"==typeof s?s[t]:s)||(e=s[a[t]])||(e=s[n[t]])),!e||!t)return void(this.parts.attachicon.style.display="none")}else if(!(t=this.attachicon))return;this.attachicon!=t&&$(i).html(e),"h"==n[t]?("lt"==t||"rt"==t?$(i).css({top:0,bottom:""}):$(i).css({bottom:-this.height+"px",top:""}),"l"==a[t]?$(i).css({left:"",right:-o+"px"}):$(i).css({right:"",left:this.width-o+"px"})):("tl"==t||"bl"==t?$(i).css({right:"",left:"0px"}):$(i).css({left:"",right:-this.width+"px"}),"t"==a[t]?$(i).css({bottom:-o+"px",top:""}):$(i).css({top:this.height-o+"px",bottom:""})),this.attachicon||(this.parts.attachicon.style.display=""),this.attachicon=t}}},setZ:function(z){with(this){if(state.destroyed)return;var c;zpos=z;for(var i=0;ig-c+this.width-p?(l=g,w="l"):"R"==f&&g-c+this.width>p-3&&c-bv-m+this.height-u?(h=v,w="t"):"D"==f&&v-m+this.height>u-3&&m-_g-c+this.width-p?(l=g,y="r"):"R"==f&&g-c+this.width>p-3&&c-bv-m+this.height-u?(h=v,y="b"):"B"==f&&v-m+this.height>u-3&&m-_ts&&(l=Math.floor(ts/letsize)-2),l100?100:height)+"px"),$.browser&&$.browser.msie?($(wnd).hide(),$(top).show().animate({top:endy+"px"},{duration:fadesp,complete:_uWnd._onshowanimend}),$(wnd).css("opacity","0").show().animate({opacity:1},fadesp)):$(top).css("opacity","0").show().animate({top:endy+"px",opacity:1},{duration:fadesp,complete:_uWnd._onshowanimend})}else props.nohide&&$(top).css({visibility:""}),$(top).show(),disable(state.disabled),autosz.startonshow&&delaychecksize();state.loaded&&!rel||load()}},hide:function(fadetp,fadesp,doclose){if(!this.state.destroyed){with((arguments.length<1||null==fadetp)&&(fadetp=this.props.fadeclosetype),(arguments.length<2||null==fadesp)&&(fadesp=this.props.fadeclosespeed),_uWnd._onhideanimendcl||(_uWnd._onhideanimendcl=function(){var t=_uWnd.findparent(this);t&&t.close(1)}),this){if(!state.visible)return 0;if(autosz.active&&finishautosize(),state.visible=!1,1==fadetp)disable(1,doclose?0:1),$.browser&&$.browser.msie?$(wnd).animate({opacity:0},{duration:fadesp,complete:doclose?_uWnd._onhideanimendcl:null}):$(top).animate({opacity:0},{duration:fadesp,complete:doclose?_uWnd._onhideanimendcl:null});else if(2==fadetp){disable(1,doclose?0:1);var endy=ypos+(height>100?100:height);$.browser&&$.browser.msie?($(top).animate({top:endy+"px"},{duration:fadesp,complete:doclose?_uWnd._onhideanimendcl:null}),$(wnd).animate({opacity:0},fadesp)):$(top).animate({top:endy+"px",opacity:0},{duration:fadesp,complete:doclose?_uWnd._onhideanimendcl:null})}else props.nohide?$(top).css({visibility:"hidden"}):$(top).hide(),doclose=!1;grid&&$(grid).hide(),_focus.isactive()&&(_focus.deactivate(),_uWnd.activatetopwnd(this.desktop))}return doclose?1:0}},markload:function(){if(!this.state.destroyed)with(this)parts.wndcont.style.display="none",parts.markload.style.display="block",parts.headercont&&props.hideheader&&(parts.headercont.style.visibility="hidden"),parts.footercont&&props.hidefooter&&(parts.footercont.style.visibility="hidden")},showgrid:function(){this.state.destroyed||this.parts.markwait&&(this.parts.markwait.style.display="block")},hidegrid:function(){this.state.destroyed||this.parts.markwait&&(this.parts.markwait.style.display="none")},reload:function(t,e){if(!this.state.destroyed){if("object"==typeof t&&t.constructor==_uTabCtrl){if(this.tabctrl!=t){if(t.state.init&&t.wnd!=this)return;this.tabctrl=t,t.props.parentnode=this.parts.wndcont,t.wnd=this;for(var s=this.parts.wndcont;s.firstChild;)s.removeChild(s.firstChild);t.state.init?(s.appendChild(t.top),t.resizeTo(this.width-this.decor.w,this.height-this.decor.h)):(t.init(!0),setTimeout("var w=_uWnd.all["+this.idx+"]; if (w && w.tabctrl){w.tabctrl.init1(true); w.resizeTo(w.width,w.height,0,1);}",10))}}else this.tabctrl&&(this.props.notabdestroy?(this.parts.wndcont.removeChild(this.tabctrl.top),this.tabctrl.parentnode=null,this.tabctrl.wnd=null):this.tabctrl.destroy()),this.tabctrl=null;this._content=t,this.state.loaded=!1,e||this.load()}},load:function(){if(!this.state.destroyed&&!this.tabctrl){var t=this._content;if(this.state.loaded=!0,this.xmlobj&&(this.xmlobj_ignoreabort=1,this.xmlobj.abort(),this.xmlobj=null),"string"==typeof t||"object"==typeof t&&(t.nodeType||t.constructor==jQuery))this.content(t);else if("function"==typeof t)this.content(t.apply(this.app,[this]));else if("object"==typeof t){this.markload(),this.app&&!("app"in t)&&(t.app=this.app.pid),t.wnd=this.idx,_uWnd._onAjaxComplete||(_uWnd._onAjaxComplete=function(t,e){var s=_uWnd.all[this.wnd];s&&s._oncomplete(t,e,this)}),t.complete!=_uWnd._onAjaxComplete&&(t.prev_complete_uwnd=t.complete,t.complete=_uWnd._onAjaxComplete),_uWnd._onAjaxBeforeSend||(_uWnd._onAjaxBeforeSend=function(t){var e=_uWnd.all[this.wnd];e&&(e.xmlobj=t,e.xmlobj_ignoreabort=0),this.prev_beforeSend_uwnd&&this.prev_beforeSend_uwnd.call(this,t)}),t.beforeSend!=_uWnd._onAjaxBeforeSend&&(t.prev_beforeSend_uwnd=t.beforeSend,t.beforeSend=_uWnd._onAjaxBeforeSend),t.success||!1!==t.xml||(t.dataType="text",_uWnd._onAjaxSuccess||(_uWnd._onAjaxSuccess=function(t,e){var s=_uWnd.all[this.wnd];s&&s.content(t)}),t.success=_uWnd._onAjaxSuccess);try{t.form&&t.form.length>0?_uPostForm(t.form,t):t.url&&_uAjaxRequest(t.url,t)}catch(e){this.xmlobj=null,this._onerror(null,"",e,t)}}}},_oncomplete:function(t,e,s){this.xmlobj=null,this.prev_complete_uwnd&&this.prev_complete_uwnd.call(s,t,e)},_onerror:function(t,e,s,i){if(!this.state.destroyed&&!this.state.pendingdestroy&&("abort"!=e&&"aborted"!=e||this.xmlobj&&!this.xmlobj_ignoreabort)){var o=this.props.onerror;o&&"function"==typeof o?o.call(this.app,this,t,e,s,i):this.close()}},header:function(t){if(!this.state.destroyed){var e=this.parts.headercont;e&&(t?$(e).html(t):$(e).html(""))}},footer:function(t){if(!this.state.destroyed){var e=this.parts.footercont;e&&(t?$(e).html(t):$(e).html(""))}},headerheight:function(t){if(!this.state.destroyed&&this.parts.headercont&&"number"==typeof t&&!isNaN(t)){var e=this.headerh;e!=t&&(this.decor.h+=t-e,this.headerh=t,$(this.parts.headercont).css("height",t+"px"),this.resizeTo(this.width,this.height+(this.props.contentsizeprio?t-e:0)))}},footerheight:function(t){if(!this.state.destroyed&&this.parts.footercont&&"number"==typeof t&&!isNaN(t)){var e=this.footerh;e!=t&&(this.decor.h+=t-e,this.footerh=t,$(this.parts.footercont).css("height",t+"px"),this.resizeTo(this.width,this.height+(this.props.contentsizeprio?t-e:0)))}},_checkimgload:function(load){var im=this.imgloader,i;if(im.active){if(load&&im.count++,im.images)for(i=0;i=im.images.length)this._stopimgload(!0);else if(im.count>=im.images.length&&(im.timer&&clearTimeout(im.timer),im.timer=setTimeout("var w=_uWnd.all["+this.idx+"]; if (w){w.imgloader.timer=null; w._checkimgload();}",100)),$.browser&&$.browser.opera&&im.images2){for(i=0;i0){if(this.markload(),$(s).html(t),this.props.oncontent&&this.props.oncontent.apply(this.app,[this,s]),o.active=!0,o.stoptimer=setTimeout("var w=_uWnd.all["+this.idx+"]; if (w)w._stopimgload(1,1);",i.waitimages),_uWnd.waitimagesfunc||(_uWnd.waitimagesfunc=function(t){var e=t.data.imgloader;e.timer&&clearTimeout(e.timer),e.timer=setTimeout("var w=_uWnd.all["+t.data.idx+"]; if (w){w.imgloader.timer=null; w._checkimgload(1);}",10)}),o.count=0,o.images=$(s).find("img").on("error",this,_uWnd.waitimagesfunc).on("load",this,_uWnd.waitimagesfunc),$.browser&&$.browser.opera&&o.images.length>0){o.images2=[];for(var r=0;r").attr("src",o.images[r].src).on("load",this,_uWnd.waitimagesfunc)[0]}this._checkimgload()}else i.autosize&&i.hideonresize&&(this.parts.hwndcont.style.visibility="hidden"),this.parts.markload.style.display="none",$(s).css("display","block").html(t),n&&(n.style.visibility=i.hidehonresize?"hidden":""),a&&(a.style.visibility=i.hidefonresize?"hidden":""),e.load=!0,i.autosize?(this.props.oncontent&&this.props.oncontent.apply(this.app,[this,s]),this.delaychecksize()):(this.design.onstopautosz(this),this.props.oncontent&&this.props.oncontent.apply(this.app,[this,s]));void 0!==$.mCustomScrollbar&&$(this.parts.wndcont).mCustomScrollbar()}},onexternalload:function(){with(this)_stopimgload(),stopautosize(),state.loaded=!0,autosz.load=!0,parts.headercont&&!props.hidehonresize&&(parts.headercont.style.visibility=""),parts.footercont&&!props.hidefonresize&&(parts.footercont.style.visibility=""),props.autosize&&delaychecksize()},stopautosize:function(){var t=this.autosz;t.inittimer&&(clearTimeout(t.inittimer),t.inittimer=null),t.timer&&(clearTimeout(t.timer),t.timer=null),t.images&&($(t.images).off(),t.images=null),t.active&&this.design.onstopautosz(this),t.active=!1},finishautosize:function(){var t=this.autosz;t.active&&(this.stopautosize(),this.resizeTo(t.tw+this.decor.w,t.th+this.decor.h,!0,1))},delaychecksize:function(t){t=t||10;var e=this.autosz;this.state.visible?(e.startonshow=0,e.inittimer&&clearTimeout(e.inittimer),e.inittimer=setTimeout("var w=_uWnd.all["+this.idx+"]; if (w)w.checksize();",t)):e.startonshow=1},_countbuttonwidth:function(){var t=0;for(var e in{cbut:1,mbut:1,xbut:1,rbut:1,icon:1})this.parts[e]&&(t+=this.parts[e].offsetWidth);for(var e in this.props.customButtons)t+=this.parts.custom[e].offsetWidth+this.design.custButMargin;return t},checksize:function(){var t=this.autosz,e=this.parts.wndcont;if(t.inittimer=null,!this.state.maximized&&!this.state.minimized)if(this.state.visible){t.startonshow=0,this.stopdrag(),this.stopresize(),t.load&&(t.load=!1,t.images&&($(t.images).off(),t.images=null),this.props.autosizeonimages&&(_uWnd.autosizeonimagesfunc||(_uWnd.autosizeonimagesfunc=function(t){t.data.delaychecksize()}),t.images=$(e).find("img").on("load",this,_uWnd.autosizeonimagesfunc))),t.active=!0,t.speed=1,t.speedmult=this.props.autosizestepmult,this.design.onstartautosz(this),t.timer&&(clearTimeout(t.timer),t.timer=null);var s,i,o,a,n=_uWnd.getdims(),r=10,l=10;this.props.header&&(r+=this._countbuttonwidth()),r=Math.max(r,this.minwidth),l=Math.max(l,this.minheight),0==(s=this.maxwidth)&&(s=n.clientW-this.decor.w),0==(i=this.maxheight)&&(i=n.clientH-this.decor.h),this.props.autosizewidth?($(this.parts.wndcont).css("width","10px"),o=e.scrollWidth,$(this.parts.wndcont).css({width:this.width-this.decor.w+"px"})):o=e.scrollWidth,a=e.scrollHeight+1,t.tw=Math.max(o,r),t.th=Math.max(a,l);var h=!1;t.tw>s&&(t.tw=s,t.th+=this.decor.sbh,h=!0),t.th>i&&(t.th=i,t.tw+this.decor.sbw<=s?(t.tw+=this.decor.sbw,h=!0):t.tw=s),h&&this.design.onstopautosz(this,!0),t.timer=setTimeout("try{_uWnd.all["+this.idx+"]._checksize();}catch(e){}",10)}else t.startonshow=1},_checksize:function(){this.stopdrag(),this.stopresize();var t=this.autosz,e=t.tw-(this.width-this.decor.w),s=t.th-(this.height-this.decor.h),i=this.props.autosizestep*t.speed,o=this.props.autosizestep*t.speed;if(i<=0&&(i=1),o<=0&&(o=1),t.speed*=t.speedmult,t.speedmult*=this.props.autosizestepmultmult,0!=e)e>0?i=Math.min(i,e):e<0&&(i=Math.max(-i,e)),2==this.props.autosizewidth&&0!=s?s>0?o=Math.min(o,s):s<0&&(o=Math.max(-o,s)):o=0,this.resizeTo(this.width+i,this.height+o,!0,1);else{if(0==s)return t.timer=null,t.active=!1,void this.design.onstopautosz(this);s>0?o=Math.min(o,s):s<0&&(o=Math.max(-o,s)),this.resizeTo(this.width,this.height+o,!0,1)}t.timer=setTimeout("try{_uWnd.all["+this.idx+"]._checksize();}catch(e){}",10)},closeevent:function(){this.props.onbeforeclose&&this.props.onbeforeclose.apply(this.app,[this])||this.close()},close:function(t){if(!this.state.destroyed){this.state.pendingdestroy&&(t=1);for(var e=0,s=0;sthis.desktop.width-20&&(s=this.desktop.width-20),i>this.desktop.height-20&&(i=this.desktop.height-20)):this.props.fixed?(s>o.clientW-20&&(s=o.clientW-20),i>o.clientH-20&&(i=o.clientH-20)):(s>o.docW-20&&(s=o.docW-20),i>o.docH-20&&(i=o.docH-20)),this.moveTo(s,i)},onstartdrag:function(){this.design.onstartdrag(this)},onstopdrag:function(){this.design.onstopdrag(this)},_ondragmousedown:function(e){with(this){if(3==e.which&&"undefined"==typeof _uDesk)return;if(1==e.which&&e.ctrlKey&&(e.which=3),this.props.havesysmenu&&3==e.which&&!state.resizing&&!state.disabled&&!props.toolwindow)return void this.showsysmenu(e.pageX,e.pageY);if(props.nomove||state.resizing||state.maximized||state.disabled||1!=e.which)return;_drag.start(e,xpos,ypos),props.x=xpos,props.y=ypos}},stopdrag:function(){this._drag.stop()},_onrsmousemove:function(t,e,s,i,o,a,n){var r,l,h,d,p,u,c=_uWnd.getdims(),m=10,f=10;r=s,l=i,h=o,d=a,this.props.header&&(m+=this._countbuttonwidth()),m=Math.max(m,this.minwidth)+this.decor.w,f=Math.max(f,this.minheight)+this.decor.h,0==(p=this.maxwidth)?p=c.clientW:p+=this.decor.w,0==(u=this.maxheight)?u=c.clientH:u+=this.decor.h,n.indexOf("n")>=0&&((l=i+e)<0&&(l=0),(d=i+a-l)u&&(l=i+a-(d=u))),n.indexOf("s")>=0&&((d=a+e)u&&(d=u)),n.indexOf("w")>=0&&((r=s+t)<0&&(r=0),(h=s+o-r)p&&(r=s+o-(h=p))),n.indexOf("e")>=0&&((h=o+t)p&&(h=p)),this.moveTo(r,l),this.resizeTo(h,d)},_onrsmousedown:function(e,b){with(this){if(_drag.active||state.disabled||state.maximized||state.minimized||autosz.active||!props.resize||1!=e.which)return;props.x=xpos,props.y=ypos,this.stopautosize(),_resize.start(e,xpos,ypos,width,height,b)}},onstartrs:function(){this.design.onstartresize(this)},onstoprs:function(){this.design.onstopresize(this)},stopresize:function(){this._resize.stop()}};var _defAjaxError=function(t,e,s){if(this.tabctrl&&_uTabCtrl.all[this.tabctrl]?_uTabCtrl.all[this.tabctrl]._onerror(this.tabid,t,e,s,this):this.wnd&&_uWnd.all[this.wnd]&&_uWnd.all[this.wnd]._onerror(t,e,s,this),!_uWnd.defdesktop){try{return void _show_log_form()}catch(t){}this.tabctrl||this.wnd||window.location.reload()}},_hookAjaxError=null;function _uAjaxRequest(t,e){if(!t)return null;var s=$.extend({success:_defAjaxSuccess,error:_defAjaxError,async:1,cache:!0,dataType:"xml",type:"GET",timeout:25e3},e||{});return s.app&&s.app.appname&&s.app.pid>0&&(s.app=s.app.pid),s.wnd&&s.wnd.constructor==_uWnd&&(s.wnd=s.wnd.idx),s.tabctrl&&s.tabctrl.constructor==_uTabCtrl&&(s.tabctrl=s.tabctrl.idx),s.data||(s.data={}),s.data._tp_=s.dataType,s.app>0&&(s.data._ai=s.app),s.app>0&&_uApp.all[s.app]&&_uApp.all[s.app]._admpasscook&&(s.data._apc=_uApp.all[s.app]._admpasscook),s.wnd>0&&(s.data._wi=s.wnd),s.tabctrl>0&&s.tabid&&(s.data._tci=s.tabctrl,s.data._ti=s.tabid),_hookAjaxError&&!s.noerrorhook&&(s.prev_error=s.error,s.error=_hookAjaxError),s.url=t,s.app>0&&!s.nosuccesshook&&(s.prev_success=s.success,s.success=_hookAjaxSuccess),jQuery.ajax(s)}var _hookAjaxSuccess=function(t,e){this.prev_success&&(this.app>0&&"undefined"!=typeof _uApp&&this.prev_success!=_defAjaxSuccess?_uApp.all[this.app]&&!_uApp.all[this.app].exited&&this.prev_success.call(_uApp.all[this.app],t,e,this):this.prev_success.call(this,t,e))},_defAjaxSuccess=function(t,e){var s=null,i=null,o=null;"xml"==this.dataType&&(this.wnd>0&&_uWnd.all[this.wnd]&&!_uWnd.all[this.wnd].state.destroyed&&(s=_uWnd.all[this.wnd]),this.tabctrl>0&&_uTabCtrl.all[this.tabctrl]&&!_uTabCtrl.all[this.tabctrl].state.destroyed&&(o=_uTabCtrl.all[this.tabctrl]),this.app>0&&"undefined"!=typeof _uApp&&_uApp.all[this.app]&&!_uApp.all[this.app].exited&&(i=_uApp.all[this.app]),o?_uParseXML(t,o,this.tabid,i):_uParseXML(t,s,0,i))},_defAjaxFormError=function(t,e,s){if(this.tabctrl&&_uTabCtrl.all[this.tabctrl]?_uTabCtrl.all[this.tabctrl]._onerror(this.tabid,t,e,s,this):this.wnd&&_uWnd.all[this.wnd]&&_uWnd.all[this.wnd]._onerror(t,e,s,this),this._formobj){var i=this._formobj.onerror||this._formobj.getAttribute("onerror");if(i){if("string"==typeof i)try{i=new Function(i)}catch(t){return}if("function"==typeof i||"object"==typeof i)try{i.call(this._formobj,t,e,s,this)}catch(t){return}}}},_defAjaxFormComplete=function(t,e){if(this._formobj){var s=this._formobj.oncomplete||this._formobj.getAttribute("oncomplete");if(s){if("string"==typeof s)try{s=new Function(s)}catch(t){return}if("function"==typeof s||"object"==typeof s)try{s.call(this._formobj,t,e)}catch(t){return}}}};function _uPostForm(t,e){var s;if(!t&&e&&e.url)_uAjaxRequest(e.url,e);else if((s="object"!=typeof t?$("#"+t):$(t)).length){var i=$.extend({success:_defAjaxSuccess,error:_defAjaxFormError,complete:_defAjaxFormComplete,url:s.attr("action")||window.location.toString(),type:s.attr("method")||"GET",dataType:"xml",semantic:!1},e||{});i.app&&i.app.appname&&i.app.pid>0&&(i.app=i.app.pid),i.wnd&&i.wnd.constructor==_uWnd&&(i.wnd=i.wnd.idx),i.tabctrl&&i.tabctrl.constructor==_uTabCtrl&&(i.tabctrl=i.tabctrl.idx),i.data||(i.data={}),i.data._tp_=i.dataType,i.app>0&&(i.data._ai=i.app),i.app>0&&_uApp.all[i.app]&&_uApp.all[i.app]._admpasscook&&(i.data._apc=_uApp.all[i.app]._admpasscook),i.wnd>0&&(i.data._wi=i.wnd),i.tabctrl>0&&i.tabid&&(i.data._tci=i.tabctrl,i.data._ti=i.tabid),_hookAjaxError&&!i.noerrorhook&&(i.prev_error=i.error,i.error=_hookAjaxError),i._formobj=s[0],i.app>0&&!i.nosuccesshook&&(i.prev_success=i.success,i.success=_hookAjaxSuccess),s.ajaxSubmit(i)}}function _uAjaxQueue(t){this.idx=_uAjaxQueue.nextidx++,_uAjaxQueue.all[this.idx]=this,this.props=$.extend({maxsize:10,replacelast:0,onfirst:null,onbefore:null,onafter:null,onlast:null,param:null,thispar:null},t||{}),this.queue=[],this.head=0,this.inprogress=0,this.curXML=null}function includeJSfile(t,e){if(!e||!document.getElementById(e)){var s=document.createElement("script");s.type="text/javascript",s.src=t,e&&(s.id=e),document.head&&document.head.insertAdjacentElement("beforeEnd",s)}}_uAjaxQueue.all=[],_uAjaxQueue.nextidx=1,_uAjaxQueue.oncomplete=function(t,e){if(this.prev_complete_queue)try{this.prev_complete_queue(t,e)}catch(t){}setTimeout("var w=_uAjaxQueue.all["+this.uajaxqueue+"]; if (w)w._oncomplete(0,'"+e+"');",100)},_uAjaxQueue.prototype={add:function(t,e){if(!t||!t.url)return-1;if(this.queue.length-this.head>=this.props.maxsize){if(!this.props.replacelast||this.props.maxsize<2)return 0;this.queue.splice(this.queue.length-1,1)}var s=$.extend({},t);return s.prev_complete_queue=s.complete,s.complete=_uAjaxQueue.oncomplete,s.uajaxqueue=this.idx,this.queue[this.queue.length]=s,e||this.start(),1},start:function(){this.inprogress||this.head>=this.queue.length||(this.inprogress=1,this.props.onfirst&&this.props.onfirst.call(this.props.thispar,this.props.param,this.queue[this.head],this),this.head--,this._oncomplete(1))},_oncomplete:function(t,e){if(this.inprogress){if(this.curXML=null,this.head++,!t&&this.props.onafter&&this.props.onafter.call(this.props.thispar,this.props.param,this.queue[this.head-1],this,e),this.head>=this.queue.length)return this.props.onlast&&this.props.onlast.call(this.props.thispar,this.props.param,this.queue[this.head-1],this,e),void this.stop();this.props.onbefore&&this.props.onbefore.call(this.props.thispar,this.props.param,this.queue[this.head],this);try{this.curXML=_uAjaxRequest(this.queue[this.head].url,this.queue[this.head]),this.curXML||_uAjaxQueue.oncomplete.call(this.queue[this.head],null,"error")}catch(t){_uAjaxQueue.oncomplete.call(this.queue[this.head],null,"error")}}},stop:function(){if(this.inprogress){if(this.curXML)try{this.curXML.abort()}catch(t){}this.curXML=null,this.queue.splice(0,this.queue.length),this.head=0,this.inprogress=0}},depth:function(){return this.inprogress?this.queue.length-this.head:0}};var _entrRm={};function _entrRem(t,e,s,i){i||(i="Are you sure?"),!_entrRm[t]&&confirm(i)&&(_entrRm[t]=1,document.getElementById(t).src=s+"/img/fr/EmnAjax.gif",_uPostForm("",{url:e}))}function _coloredTDs(t,e){var s="";if("object"!=typeof t&&(t=document.getElementById(t)),void 0!==document.getElementsByTagName)s=t.getElementsByTagName("td");else{if(void 0===t.cells)return!1;s=t.cells}for(var i=0;i/g,">")}function _uLoadJS(t,e,s){if("string"!=typeof t&&"number"!=typeof t)return 0;"function"==typeof e&&(e={func:e});var i=_uLoadJS._loadedJS[t];if("object"==typeof i){if(2==i[0])return s?2:(e&&e.func.call(e.thispar,"success",e.param),1);if(1==i[0])return e&&(i[i.length]=e),1;e&&(i[i.length]=e)}else i=[1],e&&(i[1]=e),_uLoadJS._loadedJS[t]=i;var o={url:t,oldurl:t,dataType:"script",cache:1,complete:_uLoadJS._onloadJS};$.ajax(o)}function _uLoadCSS(t){if(t&&t.length){var e="";if(t.constructor==Array)for(var s=t.length-1;s>=0;s--)/^https?:/.test(t[s])||(t[s]=location.protocol+"//"+location.host+t[s]),t[s]in _uLoadCSS._loadedCSS||(e+='',_uLoadCSS._loadedCSS[t[s]]=[0]);else{if(/^https?:/.test(t)||(t=location.protocol+"//"+location.host+t),t in _uLoadCSS._loadedCSS)return;e='',_uLoadCSS._loadedCSS[t]=[0]}e.length>0&&$("head").append(e)}}function _uLoadCSSSync(t,e,s){if("string"!=typeof t&&"number"!=typeof t)return 0;"function"==typeof e&&(e={func:e});var i=_uLoadCSS._loadedCSS[t];if("object"==typeof i){if(2==i[0])return s?2:(e&&e.func.call(e.thispar,"success",e.param),1);if(1==i[0])return e&&(i[i.length]=e),1;e&&(i[i.length]=e)}else i=[1],e&&(i[1]=e),_uLoadCSS._loadedCSS[t]=i;var o={url:t,oldurl:t,dataType:"text",cache:1,success:_uLoadCSSSync._onload,error:_uLoadCSSSync._onloaderr};$.ajax(o)}function _uLoadFiles(t,e,s){if(t?"string"==typeof t&&(t=[t]):t=[],e?"string"==typeof e&&(e=[e]):e=[],t.constructor!=Array||e.constructor!=Array||0==t.length&&0==e.length)return 0;"function"==typeof s&&(s={func:s});var i,o={numleft:t.length+e.length,notify:s};for(i=0;i>>=4;return o}switch(arguments.length<2&&(e=10),"object"==o&&(t?t.constructor==String?o="string":t.constructor==Number?o="number":t.constructor==Boolean?o="boolean":t.constructor==Array&&(o="array"):o="null"),o){case"number":case"boolean":case"null":case"undefined":return String(t);case"string":return'"'+t.replace(/([\\"])/g,"\\$1").replace(/\n/g,"\\n").replace(/([\x00-\x1f])/g,(function(t,e){return"\\x"+a(e.charCodeAt(0),2)})).replace(/([\u2028\u2029])/g,(function(t,e){return"\\u"+a(e.charCodeAt(0),4)}))+'"';case"array":if(e<=0)return"[?]";i="";for(var n=0;n0&&(i+=","),i+=dumpObject(t[n]);return"["+i+"]";case"object":if(e<=0)return"{?}";for(var n in i="",t)if(!s||!s[n]){i&&(i+=",");try{i+=dumpObject(n)+":"+dumpObject(t[n],e-1)}catch(t){i+=dumpObject(n)+":?"}}return"{"+i+"}"}}function _uHighlightA(t,e,s){var i=$(t).find("a").get(),o=null,a=0;for(var n in i)i[n].href&&e.indexOf(i[n].href)>=0&&(!o||aul").children("li").children("ul"),r=0;r0?{action:"a"}:null]):(o=$(a[e]).find("a").get(),n[n.length]=[$(a[e]).html(),o.length>0?"a":""]);return n}function uSetCookie(t){var e=encodeURIComponent(t.name);if(t.value?e+="="+encodeURIComponent(t.value):e+="=",t.days){var s=new Date;s.setDate(s.getDate()+t.days),e+=";expires="+s.toUTCString()}t.path&&(e+=";path="+t.path),t.domain&&(e+=";domain="+t.domain),document.cookie=e}function _uButtonExt(t){return''.render({id:t})}function _uButton(t,e,s){let i=Object.assign({ext:0,text:"Ok",content:"s"===e?'onclick="this.disabled = true;this.form.requestSubmit();return false;"':"",style:0,buttonId:t?`id="subbut${t}"`:"",type:`type="${{s:"submit",r:"reset"}[e]||"button"}"`},s);return i.classList=`class="ubtn-default${1===i.style?" light-btn":""}"`,``}function _uButtonEn(t,e,s){var i;if("string"==typeof t)i=t;else{if(t.tagName&&"div"==t.tagName.toLowerCase())return void(e?t.classList.remove("myBtnDis"):t.classList.add("myBtnDis"));i=$(t).attr("id")}if(!i)return;let o=window["subbut"+i]||document.getElementById("subbut"+i);e?($("#subbut"+i,s).removeClass("myBtnDis"),o.disabled=!1):($("#subbut"+i,s).addClass("myBtnDis"),o.disabled=!0)}function _uButtonIsDis(t){let e="string"==typeof t?window[t]||document.getElementById(t):t;return e&&e.classList.contains("myBtnDis")}function uToolTip(){}function _uTransStr(t){var e,s,i,o,a,n,r=1,l=_uTransStr._table;if(!l)for(_uTransStr.append(_uTransStr._deftable),_uTransStr._deftable=null,l=_uTransStr._table,e=0;e<128;e++)l[e]=_uTransStr._separators[e]?" ":String.fromCharCode(e);if(null==t)return this.value="",this.length=0,this.translit="",void(this.transprops=[]);for(this.value="string"==typeof t?t:String(t),t=this.value.toLowerCase(),i=this.length=t.length,o="",a=[],e=0;e0;)a[o.length+n-1]=1+(e<<1),n--;o+=s}else r||(a[o.length]=e<<1,o+=" ",r=1);r&&o.length>0?(this.translit=o.substr(0,o.length-1),a.length=o.length-1):this.translit=o,this.transprops=a}Date.fullYearStart="20",function(){function t(t,e){Date.prototype[t]||(Date.prototype[t]=e)}t("isLeapYear",(function(){var t=this.getFullYear();return t%4==0&&t%100!=0||t%400==0})),t("isWeekend",(function(){return 0==this.getDay()||6==this.getDay()})),t("isWeekDay",(function(){return!this.isWeekend()})),t("getDaysInMonth",(function(){return[31,this.isLeapYear()?29:28,31,30,31,30,31,31,30,31,30,31][this.getMonth()]})),t("getDayName",(function(t){return t?Date.abbrDayNames[this.getDay()]:Date.dayNames[this.getDay()]})),t("getMonthName",(function(t){return t&&2!=t?Date.abbrMonthNames[this.getMonth()]:2==t?Date.rMonthNames[this.getMonth()]:Date.monthNames[this.getMonth()]})),t("getDayOfYear",(function(){var t=new Date("1/1/"+this.getFullYear());return Math.floor((this.getTime()-t.getTime())/864e5)})),t("getWeekOfYear",(function(){return Math.ceil(this.getDayOfYear()/7)})),t("setDayOfYear",(function(t){return this.setMonth(0),this.setDate(t),this})),t("addYears",(function(t){return this.setFullYear(this.getFullYear()+t),this})),t("addMonths",(function(t){var e=this.getDate();return this.setMonth(this.getMonth()+t),e>this.getDate()&&this.addDays(-this.getDate()),this})),t("addDays",(function(t){return this.setDate(this.getDate()+t),this})),t("addHours",(function(t){return this.setHours(this.getHours()+t),this})),t("addMinutes",(function(t){return this.setMinutes(this.getMinutes()+t),this})),t("addSeconds",(function(t){return this.setSeconds(this.getSeconds()+t),this})),t("zeroTime",(function(){return this.setMilliseconds(0),this.setSeconds(0),this.setMinutes(0),this.setHours(0),this}));var e=function(t){return t.match(/\$[a-zA-Z]+\$/)?t:t.replace(/yyyy/g,"$yyyy$").replace(/yy/g,"$yy$").replace(/mmmm/g,"$MO$").replace(/mmm/g,"$Mo$").replace(/mm/g,"$mo$").replace(/dd/g,"$dd$")};t("asString",(function(t,i){var o,a=null,n=null,r="";if(!1!==t&&(a=t||Date.udateformat),i&&(n=1==i||!0===i?Date.utimeformat:i),a&&(a=e(a),o={yyyy:this.getFullYear(),yy:(this.getFullYear()+"").substring(2),MO:this.getMonthName(0),Mo:this.getMonthName(1),MOD:this.getMonthName(2),WD:this.getDayName(0),wd:this.getDayName(1),mo:s(this.getMonth()+1),d:this.getDate(),dd:s(this.getDate())},r+=a.replace(/\$([a-zA-Z]+)\$/g,(function(t,e){return o[e]}))),n){r&&(r+=" ");var l=this.getHours(),h="AM";l>12?(l-=12,h="PM"):12==l&&(h="PM"),o={H:this.getHours(),HH:s(this.getHours()),h:l,hh:s(l),AP:h,mm:s(this.getMinutes()),ss:s(this.getSeconds())},r+=n.replace(/\$([a-zA-Z]+)\$/g,(function(t,e){return o[e]}))}return r})),Date.fromString=function(t,s,i,o){var a,n,r,l,h,d,p,u,c=o||e(Date.udateformat),m=Date.utimeformat;for(i&&(!0!==i&&1!==i&&(m=i),c+=" "+m),t=t.replace(/[\x00-\x1f]+/g," "),h={yyyy:"(\\d{4}|\\d{2})",yy:"(\\d{2}|\\d{4})",MO:'([^ 0-9@"#$%^&*(){}\\[\\]+=_\\\\|;:/?.>,<~\\-]+)',Mo:'([^ 0-9@"#$%^&*(){}\\[\\]+=_\\\\|;:/?.>,<~\\-]+)',MOD:'([^0-9@"#$%^&*(){}\\[\\]+=_\\\\|;:/?.>,<~\\-]+)',mo:"(\\d{1,2})",dd:"(\\d{1,2})",d:"(\\d{1,2})",HH:"(\\d{1,2})",hh:"(\\d{1,2})",H:"(\\d{1,2})",h:"(\\d{1,2})",AP:"(AM|PM)?",mm:"(\\d{1,2})",ss:"(\\d{1,2})?"},a=new RegExp("\\$([a-zA-Z]+)\\$","g"),n=0,l="^",s||(l+=" *"),d=[];r=a.exec(c);)r.index>n&&(l+=s?c.substr(n,r.index-n).replace(/([\\^\$*+?.|()\[\]{}])/g,"\\$1"):'[ @"#$%^&*(){}\\[\\]+=_\\\\|;:/?.>,<~\\-]+'),n=r.index+r[0].length,h[r[1]]?(l+=h[r[1]],d.push(r[1])):n=r.index;if(c.length>n&&(l+=s?c.substr(n,c.length-n).replace(/([\\^\$*+?.|()\[\]{}])/g,"\\$1"):'[ @"#$%^&*(){}\\[\\]+=_\\\\|;:/?.>,<~\\-]+'),s||(l+=" *"),l+="$",!(r=(l=new RegExp(l,"i")).exec(t)))return!1;(p=new Date).zeroTime();for(var f=p.getDate(),b=p.getMonth(),g=p.getFullYear(),_=0;_=0){b=u;break}if(u>=12)for(u=0;u<12;u++)if(Date.rMonthNames[u].indexOf(r[_+1])>=0){b=u;break}if(u>=12)for(u=0;u<12;u++)if(Date.monthNames[u].indexOf(r[_+1])>=0){b=u;break}if(u>=12)return!1}else if("mo"==d[_]){if(u=parseInt(r[_+1],10),isNaN(u)||u<=0||u>12)return!1;b=u-1}else if("dd"==d[_]||"d"==d[_]){if(u=parseInt(r[_+1],10),isNaN(u)||u<=0||u>31)return!1;f=u}else if("HH"==d[_]||"H"==d[_]){if(u=parseInt(r[_+1],10),isNaN(u)||u<0||u>24)return!1;p.setHours(u)}else if("hh"==d[_]||"h"==d[_]){if(u=parseInt(r[_+1],10),isNaN(u)||u<0||u>12)return!1;p.setHours(u)}else if("mm"==d[_]){if(u=parseInt(r[_+1],10),isNaN(u)||u<0||u>59)return!1;p.setMinutes(u)}else if("ss"==d[_]){if(u=r[_+1]&&r[_+1].length>0?parseInt(r[_+1],10):0,isNaN(u)||u<0||u>61)return!1;p.setSeconds(u)}else if("AP"==d[_]&&r[_+1]&&r[_+1].length>0)if("pm"==r[_+1].toLowerCase())p.getHours()<12&&p.addHours(12);else if("am"!=r[_+1].toLowerCase())return!1;return p.setFullYear(g),p.setMonth(b,f),p};var s=function(t){var e="0"+t;return e.substring(e.length-2)}}(),_uLoadJS._loadedJS={},_uLoadJS._onloadJS=function(t,e){var s=_uLoadJS._loadedJS[this.oldurl];s[0]="success"!=e?0:2;for(var i=1;i'+t+"");var s=_uLoadCSS._loadedCSS[this.oldurl];0==s[0]&&$("link[rel=stylesheet][href="+this.oldurl+"]").remove(),s[0]=2;for(var i=1;i
text
'),uToolTip.content=uToolTip.tooltip.find(".utooltip-content"),uToolTip.timerID=null,uToolTip.active=!1,uToolTip.mouseOver=function(t){uToolTip.timerID&&(window.clearTimeout(uToolTip.timerID),uToolTip.timerID=null,uToolTip.mouseOut(t));var e=(t=$(t)).offset(),s=e.left,i=e.top;t.attr("left")||s<30?uToolTip.tooltip.addClass("utooltip-left"):(s+=t[0].offsetWidth/2,uToolTip.tooltip.removeClass("utooltip-left")),t.attr("bottom")||i<30?(i+=t[0].offsetHeight+4,uToolTip.tooltip.addClass("utooltip-bottom")):uToolTip.tooltip.removeClass("utooltip-bottom"),uToolTip.tooltip.css({left:parseInt(s,10)+"px",top:parseInt(i,10)+"px"}),uToolTip.title=t.attr("title"),uToolTip.el=t,t.attr("title",""),uToolTip.active=!0,uToolTip.content.html(uToolTip.title),uToolTip.title&&!uToolTip.el.attr("noToolTip")&&$("body").append(uToolTip.tooltip)},uToolTip.noToolTip=function(t,e){e?$(t).attr("noToolTip",!0):$(t).removeAttr("noToolTip")},uToolTip.hide=function(){uToolTip.el&&uToolTip.mouseOut()},uToolTip.show=function(t,e){t&&(uToolTip.mouseOut(null),uToolTip.mouseOver(t),-1!=e&&(e=e||3e3,uToolTip.timerID=setTimeout("uToolTip.mouseOut(null);",e)))},uToolTip.mouseOut=function(t){uToolTip.active&&(uToolTip.el.attr("title",uToolTip.title),uToolTip.tooltip.remove(),uToolTip.active=!1)},uToolTip.init=function(t){$(document).ready((function(){var e=".utooltip-holder";t&&(e="#"+t+" .utooltip-holder"),$(e).off("mouseover.tooltip").off("mouseout.tooltip").on("mouseover.tooltip",(function(){uToolTip.mouseOver(this)})).on("mouseout.tooltip",(function(){uToolTip.mouseOut(this)}))}))},_uTransStr.prototype={toString:function(){return this.value},_offsetprops:function(t){for(var e=this.transprops.length-1;e>=0;e--)this.transprops[e]+=2*t},splitsps:function(t){null==t&&(t=this.translit.length);for(var e,s=[],i=0,o=0;o=0;)i!=e?(s[o]=new _uTransStr,s[o].translit=this.translit.substring(i,e),s[o].transprops=this.transprops.slice(i,e),s[o]._offsetprops(-(this.transprops[i]>>1)),s[o].value=this.value.substring(this.transprops[i]>>1,this.transprops[e]>>1),s[o].length=s[o].value.length,o++,i=e+1):i++;return(e=this.translit.length)>i&&(s[o]=new _uTransStr,s[o].translit=this.translit.substring(i),s[o].transprops=this.transprops.slice(i),s[o]._offsetprops(-(this.transprops[i]>>1)),s[o].value=this.value.substring(this.transprops[i]>>1),s[o].length=s[o].value.length),s},find:function(t,e,s){t&&t.trasprops&&t.translit||(t=new _uTransStr(t));var i,o=-1,a=t.transprops,n=this.transprops;if(e&&e>0)for(null!=s&&(o=s);o+1>10&&n[o-1]==n[o])){for(;i>1,(o+i>1:this.length)-(n[o]>>1),o]}},_uTransStr._table=null,_uTransStr.append=function(t){_uTransStr._table||(_uTransStr._table=[]);for(var e=0;e\t\t\t\t\t\t\t\t\t\t\t'.render(t):'\t\t\t\t\t\t\t\t\t\t\t'.render(t),$(i).html(o)}else{if(("number"!=typeof s||isNaN(s))&&(s=0),s>=10)return;setTimeout("_uAudioPlayer("+dumpObject(t)+","+dumpObject(e)+","+(s+1)+");",100)}}function _uVideoPlayer(t,e,s){var i=$("#"+e)[0];if(i){var o="",a=0,n=0;switch(!0){case!!t.url.match(/youtube\.com|youtu\.be/i):n=a=1,(r=t.url.match(/v=([^\s\&\;\?]+)|be\/([^\s\&\;\?]+)/))&&(r[1]||r[2])&&(o="https://youtube.com/embed/"+(r[1]||r[2])+"?rel=0&showinfo=0&modestbranding=0&theme=light&autohide=1&html5=1");break;case!!t.url.match(/rutube\.ru/i):n=1,(r=t.url.match(/v=([^\s\&\;]+)|\/video\/(.+)\//))&&(r[1]||r[2])&&(o="https://video.rutube.ru/"+(r[1]||r[2]));break;case!!t.url.match(/dailymotion\.com|dai\.ly/i):n=a=1,(r=t.url.match(/video\/(.*?)_|ly\/(.*)$/))&&(r[1]||r[2])&&(o="//dailymotion.com/embed/video/"+(r[1]||r[2]));break;case!!t.url.match(/mail\.ru/i):n=a=1,(r=t.url.match(/\.ru\/(.*?\/)video\/(.*?\.html)/))&&r[1]&&r[2]&&(o="//videoapi.my.mail.ru/videos/embed/"+r[1]+r[2]);break;case!!t.url.match(/vimeo\.com/i):n=1,(r=t.url.match(/\/([\d]+)/))&&r[1]&&(o="https://vimeo.com/moogaloop.swf?clip_id="+r[1]+"&show_title=1&show_byline=0&show_portrait=0&fullscreen=1&autoplay=0");break;case!!t.url.match(/metacafe\.com/i):var r;n=a=1,(r=t.url.match(/watch\/([\d]+.+)/))&&r[1]&&(o="//metacafe.com/embed/"+r[1]);break;case!!t.url.match(/coub\.com/i):n=a=1,o=t.url.replace(/^.+:(\/\/.+\/)view(\/.+)$/,"$1embed$2?muted=false&autostart=false&originalSize=false&startWithHD=false")}var l="";if(o&&o.length>1){var h=t.width?t.width:640,d=t.height?t.height:360;if("object"==typeof swfobject&&swfobject.embedSWF)return void swfobject.embedSWF(o,e,h,d,"10","",{},{allowFullScreen:"true",wmode:"transparent",quality:"high"},{align:"middle"});l=a?''.render({src:o,width:h,height:d}):'\t\t\t\t\t\t\t\t\t\t\t'.render({width:h,height:d,data:o})}else l=n?'Incorrect video URL.':'Not supported video service. Please use YouTube.com for your video files.';$(i).html(l)}else{if(("number"!=typeof s||isNaN(s))&&(s=0),s>=10)return;setTimeout("_uVideoPlayer("+dumpObject(t)+","+dumpObject(e)+","+(s+1)+");",100)}}function _uPageMenu(t,e,s){var i,o=Math.floor(t/e);if(t%e!=0&&o++,o<=1)return{pages:[1],start_idx:0,curpage:1,numpages:o};if((s<=0||s>o)&&(s=1),6!=o){i=[1,2],s-2>3&&i.push(0);for(var a=s-2<=3?3:s-2,n=s+2>=o?o:s+2;a<=n;a++)i.push(a);s+2=o-1?s+3:o-1;a<=o;a++)i.push(a)}else i=[1,2,3,4,5,6];return{pages:i,start_idx:(s-1)*e,curpage:s,numpages:o}}function convertSize(t){return t>1073741824?(t/1073741824).toFixed(2)+" Gb":t>1048576?(t/1048576).toFixed(2)+" Mb":(t/1024).toFixed(2)+" Kb"}function isES6(){try{return Function("() => {};"),!0}catch(t){return!1}}$.fn.imgload=function(t){var e={container:window,holder:"data-path-holder",targets:this,speed:1500};t&&$.extend(e,t),$(e.targets).on("load",(function(){$(this).animate({opacity:1},e.speed)})),$(e.container).on("scroll",(function(){$(e.targets).each((function(t,s){var i=$(s),o=$(window);i.attr(e.holder)&&(Math.abs(o.scrollTop()+o.height()/2-Math.round(i.offset().top))