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"),void 0!=n.getComputedStyle(this.parent,null).maxHeight&&(this.havemaxheight=1)):("static"===this.parent.currentStyle.position&&(this.parent.style.position="relative"),void 0!=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:void 0==r.align?this.props.align:r.align,close:void 0==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:void 0==r.onload?this.props.onload:r.onload,onerror:void 0==r.onerror?this.props.onerror:r.onerror,onshow:void 0==r.onshow?this.props.onshow:r.onshow,onhide:void 0==r.onhide?this.props.onhide:r.onhide,onbeforechange:void 0==r.onbeforechange?this.props.onbeforechange:r.onbeforechange,onchange:void 0==r.onchange?this.props.onchange:r.onchange,onbeforeclose:void 0==r.onbeforeclose?this.props.onbeforeclose:r.onbeforeclose,onclose:void 0==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,_='';m<6;){_+="";for(c=0,h=n[u];c<6;){for(f=0,l=a[p];f<6;){var g=""+o[d]+l+h;_+='',f++,6==++d&&(d=0)}c++,6==++p&&(p=0),3==++b&&(_+="",b=0)}m++,6==++u&&(u=0)}for(var v=0;v';_+="
",$("#"+t).html(_)}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))))}}jQuery.ajaxSettings.traditional=!0,function(t){function e(){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.ajaxSubmit=function(s){if(!this.length)return e("ajaxSubmit: skipping submit process - no element selected"),this;"function"==typeof s&&(s={success:s});var i=this.attr("action"),o="string"==typeof i?t.trim(i):"";o&&(o=(o.match(/^([^#]+)/)||[])[1]),o=o||window.location.href||"",s=t.extend(!0,{url:o,success:t.ajaxSettings.success,type:this[0].getAttribute("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},s);var a={};if(this.trigger("form-pre-serialize",[this,s,a]),a.veto)return e("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(s.beforeSerialize&&!1===s.beforeSerialize(this,s))return e("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var n,r,l=this.formToArray(s.semantic);if(s.data){s.extraData=s.data;for(n in s.data)if(s.data[n]instanceof Array)for(var h in s.data[n])l.push({name:n,value:s.data[n][h]});else r=s.data[n],r=t.isFunction(r)?r():r,l.push({name:n,value:r})}if(s.beforeSubmit&&!1===s.beforeSubmit(l,this,s))return e("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[l,this,s,a]),a.veto)return e("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var d=t.param(l);"GET"==s.type.toUpperCase()?(s.url+=(s.url.indexOf("?")>=0?"&":"?")+d,s.data=null):s.data=d;var p=this,u=[];if(s.resetForm&&u.push(function(){p.resetForm()}),s.clearForm&&u.push(function(){p.clearForm()}),!s.dataType&&s.target){var c=s.success||function(){};u.push(function(e){var i=s.replaceTarget?"replaceWith":"html";t(s.target)[i](e).each(c,arguments)})}else s.success&&u.push(s.success);s.success=function(t,e,i){for(var o=s.context||s,a=0,n=u.length;a0,f="multipart/form-data",b=p.attr("enctype")==f||p.attr("encoding")==f;return!1!==s.iframe&&(m||s.iframe||b)?s.closeKeepAlive?t.get(s.closeKeepAlive,_):_():t.ajax(s),this.trigger("form-submit-notify",[this,s]),this;function _(){var i=p[0];if(t(":input[name=submit],:input[id=submit]",i).length)alert('Error: Form elements must not have name or id of "submit".');else{var o=t.extend(!0,{},t.ajaxSettings,s);o.context=o.context||o;var a="jqFormIO"+(new Date).getTime(),n=t('':'\t\t'}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}}$.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))