//********************************************************************************************************** // EO.Web Script Library. Copyright (C) 2004-2006 Essential Objects, Inc. All rights reserved. // Visit Us on the Web: http://www.essentialobjects.com // Version: 4.0.20.2 //********************************************************************************************************** function _eoftv_a(a,b,c){ this.bfc=a;this.bfd=b;this.aql=c;if(!c)this.aql=32;}function _eoftv_b(a,b){var c=null;var d=null;var e=_eofu_aj(a);e.vAlign="center";if(b&&this.bfc&&(this.aql>this.bfc)){c=Math.floor((this.aql-this.bfc)/2);d=this.aql-c-this.bfc;}var f=null;if(c==null){f=document.createElement("DIV");f.style.width=_eofu_aa(this.aql);e.appendChild(f);}if(b){var g=_eofu_dy();if(this.bfc)g.width=this.bfc;if(this.bfd)g.height=this.bfd;g.src=b;if(f)f.appendChild(g);else e.appendChild(g);if(c)g.style.paddingLeft=_eofu_aa(c);if(d)g.style.paddingRight=_eofu_aa(d);return g;}return null;}_eoftv_a.prototype.bfe=_eoftv_b;var eo_lw=0;var eo_lx=1;var eo_ly=2;var eo_lz=3;var eo_ma=4;var eo_mb=5;var eo_mc=6;var eo_md=7;var eo_me=8;var eo_mf=9;var eo_mg=10;var eo_mh=11;var eo_mi=12;var eo_mj=13;var eo_mk=14;var eo_ml=15;function _eoftv_c(a,b,c,d,e){var f;this.bff=a;this.aql=b;this.aqk=c;this.aup=d;if(d){for(f=0;fc){c+=8;if(c>b){c=b;f=true;}}else{c-=8;if(ce){e+=8;if(e>d){e=d;g=true;}}else{e-=8;if(e=0;g--)e[g].ata(true,true,b);}return d;}function _eoftv_ak(){var a=new _eofi_br("d");var b=this.getTopGroup();a.ax("s",b.bb(true));a.ax("c",this.bht());return a;}var g_CurEditTreeView=null;function _eoftv_al(a){if(g_CurEditTreeView)g_CurEditTreeView.bhb();}function _eoftv_am(a){if(!g_CurEditTreeView)return;if(!a)a=window.event;if(!a)return;var b=_eofu_cl(a);if(!b)return;if((b==27)||(b==13)){g_CurEditTreeView.bha=b;_eofu_ap(g_CurEditTreeView,eo_ax,1);_eofi_dk(document,a);return false;}}function _eoftv_an(a,b){if(a&&this.bhl){if(a==this.bhl)return;this.axf(null);}if(a){var c=a.are(eo_ig);a.arf(c,true);a.bhu=a.getText();var d=_eofu_ab(a.bhv)+25;var e=document.createElement("INPUT");e.type="text";e.value=a.bhu;e.style.width=_eofu_aa(d);if(this.bgi)e.className=this.bgi;a.bhv.innerHTML="";a.bhv.appendChild(e);a.bhw=e;var c=_eofu_bz(a.bhv);if(c&&c.fontFamily)e.style.fontFamily=c.fontFamily;if(c&&c.fontSize)e.style.fontSize=c.fontSize;e.focus();var f=e.value;if(f){if(e.createTextRange){var g=e.createTextRange();g.moveEnd("character",0);g.select();}else if(e.setSelectionRange)e.setSelectionRange(0,f.length-1);}e.onblur=_eoftv_al;e.onkeydown=_eoftv_am;g_CurEditTreeView=this;this.bhl=a;}else if(this.bhl){g_CurEditTreeView=null;a=this.bhl;this.bhl=null;a.bhv.removeChild(a.bhw);a.bhv.className=a.bhx;a.setText(b!=null?b:a.bhu);a.bhv.innerHTML=a.getText();a.bhw.onblur=null;a.bhw.onkeydown=null;var h=a.aed&~eo_im;var c=a.are(h);a.arf(c,true);}}function _eoftv_ao(){if(this.bhl){var a=this.bhl.bhw.value;if(a==null)a="";if(a){var b=this.bgn;if(b)b=window[b];if(b&&b(this,this.bhl,a))a=null;}if(a!=null){this.bhy(this.bhl.getPath(),null,a);this.axf(null,a);}}}function _eoftv_ap(a,b,c){if(!this.bhz)this.bhz=new Array();var d=new _eoftv_eg(a,b,c);_eofi_v(this.bhz,d);}function _eoftv_aq(){var a=new _eofi_br();if(this.bhz){for(var b=0;b50)||(e.aav+c-f.aaz>50)){if(this.bhh){this.bhh.bhi(false);this.bhh=null;}if(a.bih)a.bih.style.display="none";a.bie.style.cursor="no-drop";a.bhv.style.cursor="no-drop";return;}var g;var h;var i=this.bii(e.aav+c);g=i[0];h=i[1];if(!h)return;if(!g){if(this.bhh!=h){if(this.bhh)this.bhh.bhi(false);h.bhi(true);this.bhh=h;_eofu_ap(h,eo_az,1500);}if(a.bih)a.bih.style.display="none";h.bgz(true);if(!h.bij())return;var j=this.bik(this.bgl,a,h);if(j){if(h==a.getParentItem())j=false;}if(j){var k=h;while(k){if(k==a){j=false;break;}k=k.getParentItem();}}if(j){a.bie.style.cursor="default";a.bhv.style.cursor="default";}else{a.bie.style.cursor="no-drop";a.bhv.style.cursor="no-drop";}h.bil=j;}else{if(this.bhh){this.bhh.bhi(false);this.bhh=null;}h.bgz(true);a.bie.style.cursor="default";a.bhv.style.cursor="default";if(h.getParentItem()){if(!h.getParentItem().bij())return;var j=this.bik(this.bgl,a,h.getParentItem());}if(j){var k=h.getParentItem();while(k){if(k==a){j=false;break;}k=k.getParentItem();}}if(j){a.bih.style.display="block";var l=_eofu_ah(g.bhv);var m=_eofu_ah(h.bhv);var n=new _eofu_b(Math.min(l.aau,m.aau),m.aav,Math.max(Math.max(l.aau+_eofu_ab(g.bhv),m.aau+_eofu_ab(h.bhv)),_eofu_ab(a.bhv)),m.aav+1);n.aaw-=20;n.aay+=20;a.bih.style.top=_eofu_aa(n.aax);a.bih.style.left=_eofu_aa(n.aaw);a.bih.style.width=_eofu_aa(n.aay-n.aaw);this.bim(a.bih,n);this.big=i;}}}function _eoftv_at(a){var b=this.getTopGroup();return b.bii(a);}function _eoftv_au(a,b){if(!b)this.bgv.scrollTop=a;else{this.bhd=a;_eofu_ap(this,eo_ay,30);}}function _eoftv_av(a,b){if(!b)this.bgv.scrollLeft=a;else{this.bhc=a;_eofu_ap(this,eo_ay,30);}}function _eoftv_aw(a,b,c,d){if(!a)return true;a=window[a];if((a!=null)&&(a(this,b,c,d)==false))return false;return true;}function _eoftv_ax(a,b,c){var d;if(a==this.bhk)this.bin(null);if(a==this.bgx)this.apq(null);this.bhy(a.getPath(),b.getPath(),c);var e=a.getIndex();if((c!=null)&&(b==a.getParentItem())&&(c>e))c--;var f=a.getParentItem();var g=f.amu;var h=g.aai;var i=new Array();for(d=0;d=c;d--)h[d+1]=h[d];h[c]=a;}else _eofi_v(h,a);for(d=0;d1)h[h.length-2].arc();b.ata(true,true);b.biq();b=b.getParentItem();while(b){b.arc();b=b.getParentItem();}}function _eoftv_ay(){var a=_eofu_ah(this.bgv);var b=new _eofu_b(a.aau,a.aav,a.aau+(this.bgv.clientWidth?this.bgv.clientWidth:_eofu_ab(this.bgv)),a.aav+(this.bgv.clientHeight?this.bgv.clientHeight:_eofu_ac(this.bgv)));return b;}function _eoftv_az(a,b){var c=this.ale();var d=c.aaw>b.aaw?c.aaw-b.aaw:null;var e=c.aax>b.aax?c.aax-b.aax:null;var f=c.aay0)||!c.bfo.bfl()){this.bfp=_eofu_aj(h);this.bjn=new _eoftv_l(this);}}if(this.bjf||this.bjg||this.bjh){this.bjl++;this.bft=_eofu_aj(h);this.bjo=_eofu_dy();this.bft.appendChild(this.bjo);this.ace=new _eoftv_o(this);this.bjp();}if(c.bfv){if(this.bjq()){this.bjl++;this.bfu=_eofu_aj(h);if(c.bfv.avg)this.bfu.style.paddingLeft=_eofu_aa(c.bfv.avg);this.bjr=new _eoftv_q(this);}else if(d.bjq()){this.bjl++;this.bfu=_eofu_aj(h);e=document.createElement("DIV");e.style.width=_eofu_aa(c.bfv.bfc);this.bfu.appendChild(e);}}var q=_eofu_aj(h);var r=document.createElement("DIV");r.style.width=_eofu_aa(this.bjs());q.appendChild(r);this.bjl++;this.bjl++;this.bhv=_eofu_da(h);var s=this.asf();if(s)this.bhv.style.height=_eofu_aa(s);if(this.aqt)this.asr(this.bhv);else if(this.aqn){var t=this.aqn.atz();if(t&&t.abf()){var u=document.createElement("DIV");_eofu_cz(u);this.bhv.appendChild(u);this.aqn.auc(u,0,0);}this.aqn.aoh(this.bhv);this.aqn.aud();}var v=d.aws();if(v&&(!this.bir||(d.apd&&!d.apd.bir))&&(!c.bfo||c.bfo.bfk())){this.bjt=document.createElement("DIV");var w=_eofu_dy();w.src=c.bga;w.height=v;d.aoe.appendChild(this.bjt);this.bjt.appendChild(w);}if(!d.bju){_eofu_as(this.bhv,eo_bp,this,null);_eofu_as(this.bhv,eo_br,this,null);_eofu_as(this.bhv,eo_bn,this,null);_eofu_as(this.bhv,eo_bo,this,null);}this.ara(eo_ig);if(!this.getVisible())this.ato(false);else if(this.amu&&(this.aoj&eo_jr))this.amu.aoh();}function _eoftv_bk(){switch(_eofu_bk(this.aoj,eo_jz)){case eo_by:var a=this.amm();if(a)return a.bjq();else return false;case eo_bz:return true;case eo_ca:return false;}return false;}function _eoftv_bl(){this.ati();if(this.bfp)_eofu_ba(this.bfp);_eofu_ba(this.bhv);_eofu_ba(this.bft);_eofu_aq(this,eo_az);_eofu_aq(this,eo_ba);this.aih=null;this.bjt=null;this.bft=null;this.bjo=null;this.bhv=null;if(this.amu)this.amu.agn();}function _eoftv_bm(){if(this.amu){if(this.amu.aai){for(var a=0;a=0;d--){var e=c.getItemByIndex(d);if(e.getVisible())return false;}return true;}function _eoftv_bq(){var a=false;if(this.bjn){if(!this.bji){var b=-1;var c=this.aqu().bfo;var d=_eoftv_bn(this);var e=this.getParentGroup().ats();var f=_eoftv_bo(this);var g=_eoftv_bp(this);var h=this.bjv();var i=this.getLevel();if(!d&&this.bjj)d=1;if(c.bfk()){if(!d)b=eo_ly;else{if(h)b=eo_lx;else b=eo_lw;}}else{if(!d){if(f){if(e>1)b=eo_ma;else if(i==0)b=eo_mg;else b=eo_ma;}else if((i==0)&&g){if(e>1)b=eo_mj;else b=eo_mg;}else b=eo_mb;}else{if((i==0)&&g){if(f){if(h)b=eo_mi;else b=eo_mh;}else{if(h)b=eo_ml;else b=eo_mk;}}else if(f){if(h)b=eo_mf;else b=eo_me;}else{if(h)b=eo_md;else b=eo_mc;}}}var j=c.bfj(b);this.bjn.bfr(j);}else{this.bjn.bfr(this.bji);}}this.bjp();if(this.bjr)this.bjr.avs();return a;}function _eoftv_br(){this.arc();if(this.amu&&this.amu.aai){for(var a=0;a0)){var e=a;for(b=0;b(d.aau+_eofu_ab(b.aoe)+5)){var e=this.getText();this.aih.title=e;}}}function _eoftv_cp(){var a=this.atl();var b=this.aqz();if((b&eo_il)&&(b!=eo_ip))a=2+a;var c=this.bio();return c*4+a;}function _eoftv_cq(){switch(_eofu_bk(this.aoj,eo_ka)){case eo_by:var a=this.amm();if(a)return a.bjy();else return false;case eo_bz:return true;case eo_ca:return false;}return false;}function _eoftv_cr(){switch(_eofu_bk(this.aoj,eo_kb)){case eo_by:var a=this.amm();if(a)return a.bjw();else return false;case eo_bz:return true;case eo_ca:return false;}return false;}function _eoftv_cs(){switch(_eofu_bk(this.aoj,eo_kc)){case eo_by:var a=this.amm();if(a)return a.bij();else return false;case eo_bz:return true;case eo_ca:return false;}return false;}function _eoftv_ct(a,b,c){}function _eoftv_cu(){if(!this.bie){var a=this.aqu();this.bif=_eofu_ah(this.aih);var b=this.aih.rows[0].innerHTML;var c=this.aih.rows[0].cells.length;var d=this.bjl;var e=c-d;b=""+b+"
";var f=a.ada();this.bie=document.createElement("SPAN");this.bie.innerHTML=b;this.bie.style.position="absolute";this.bie.style.zIndex=_eofu_ed();this.bie.style.cursor="default";_eofu_ee(this.bie,40);f.appendChild(this.bie);if(a.bgr){this.bih=document.createElement("IMG");f.appendChild(this.bih);this.bih.style.zIndex=_eofu_ed()+1;this.bih.style.display="none";this.bih.style.height="1px";this.bih.style.backgroundColor="black";this.bih.style.position="absolute";}var g=document.getElementById("eo_tv_drag_node");for(var h=0;hd-5)return this.bkf(true);else if(a-b<4)return this.bkf(false);else return this.bkf(null);}else return this.bkf(null);}if(this.bjv()){var e=this.amu.bii(a);if(e)return e;}return this;}function _eoftv_cy(a){var b=new Array();if(a==true){b[0]=this;if(this.atj()&&this.bjv())b[1]=this.amu.getItemByIndex(0);else{var c=this;while(c&&c.bir)c=c.getParentItem();if(c&&c.getParentItem())b[1]=this.getParentItem().amu.getItemByIndex(c.getIndex()+1);}}else if(a==false){var d=this.getIndex();if(d>0)b[0]=this.getParentItem().amu.getItemByIndex(d-1);else if(this.getLevel()>0)b[0]=this.getParentItem();b[1]=this;}else{b[1]=this;}return b;}function _eoftv_cz(a,b){var c=this.aqu();if(a){if(!this.bkg){var d=_eofu_ab(this.bhv);var e=_eofu_ac(this.bhv);this.bkg=document.createElement("DIV");this.bkg.style.position="absolute";var f=_eofu_ah(this.bhv);this.bkg.style.left=_eofu_aa(f.aau);this.bkg.style.top=_eofu_aa(f.aav);this.bkg.style.width=_eofu_aa(d);this.bkg.style.height=_eofu_aa(e);this.bkg.oncontextmenu=_eoftv_y;this.bkg.style.zIndex=_eofu_ed()-2000;var g=this.are(eo_ii);this.bkg.className=g;if(!b)_eofu_ee(this.bkg,40);var h=c.ada();h.appendChild(this.bkg);var i=new _eofu_b(f.aau,f.aav,f.aau+_eofu_ab(this.bhv),f.aav+_eofu_ac(this.bhv));c.bim(this.bkg,i);}}else{if(this.bkg&&this.bkg.parentNode){var h=c.ada();h.removeChild(this.bkg);this.bkg.oncontextmenu=null;this.bkg=null;}}}function _eoftv_da(a){var b=this.getParentItem();if(b&&!b.bjv())b.ata(true,true);if(!this.aih)return;var c=this.aqu();if(!_eofu_ab(c.bgv)||!_eofu_ac(c.bgv)){_eofu_ap(this,eo_ba,200);return;}var d=_eofu_ag(this.bhv,c.bgv);var e=new _eofu_a(d.aau,d.aav);if(c.bgv.scrollLeft)e.aau-=c.bgv.scrollLeft;if(c.bgv.scrollTop)e.aav-=c.bgv.scrollTop;var f=_eofu_ab(c.bgv)-20;var g=_eofu_ac(c.bgv)-20;if(e.aav<0){c.biz(d.aav,a);}else{e.aav+=_eofu_ac(this.aih);if(e.aav>g)c.biz(d.aav-g+_eofu_ac(this.aih),a);}if(e.aau<0){c.bja(d.aau,a);}else if(e.aau>f){c.bja(d.aau-f,a);}return d;}function _eoftv_db(){var a=this.aqu();if(!a.aoa)a.bgy=this;else this.bgz(false);}function _eoftv_dc(a){if(a==eo_az){var b=this.aqu();if(b.bhh==this)this.ata(true,true);}else if(a==eo_ba){this.bgz(false);}}var eo_mt=null;var eo_mu=null;function _eoftv_dd(a,b){eo_mu=eo_GetObject(b);eo_mt(a,b);}function _eoftv_de(a){var b=this.aqu();b.biv();if(b.bgo){var c=window[b.bgo];if(c){var d=false;eo_mt=eo_ShowContextMenu;window["eo_ShowContextMenu"]=_eoftv_dd;try{d=c(a,b,this);}catch(a){}window["eo_ShowContextMenu"]=eo_mt;if(eo_mu){b.bhg=eo_mu;eo_mu.aov=b;eo_mu=null;}if(d){if(!this.getSelected()){var e=this.are(eo_ii);this.arf(e,true);this.biu=true;}b.bit=this;}}}}function _eoftv_df(a){if(!this.bjv()&&this.bjj)this.aqu().biw(this,false,a);}_eoftv_bf.prototype=new _eofnv_at();_eoftv_bf.prototype.bjc=_eoftv_bg;_eoftv_bf.prototype.bjd=_eoftv_bh;_eoftv_bf.prototype.aeb=_eoftv_bi;_eoftv_bf.prototype.aoh=_eoftv_bj;_eoftv_bf.prototype.bjq=_eoftv_bk;_eoftv_bf.prototype.agn=_eoftv_bl;_eoftv_bf.prototype.arc=_eoftv_bq;_eoftv_bf.prototype.aaa=_eoftv_bu;_eoftv_bf.prototype.arf=_eoftv_bt;_eoftv_bf.prototype.asb=_eoftv_bv;_eoftv_bf.prototype.bfq=_eoftv_bw;_eoftv_bf.prototype.ary=_eoftv_bx;_eoftv_bf.prototype.asc=_eoftv_by;_eoftv_bf.prototype.bjv=_eoftv_ca;_eoftv_bf.prototype.ata=_eoftv_bz;_eoftv_bf.prototype.bho=_eoftv_cb;_eoftv_bf.prototype.bhq=_eoftv_cc;_eoftv_bf.prototype.bfx=_eoftv_cd;_eoftv_bf.prototype.bkb=_eoftv_cf;_eoftv_bf.prototype.bkc=_eoftv_ce;_eoftv_bf.prototype.bkd=_eoftv_cg;_eoftv_bf.prototype.bio=_eoftv_ch;_eoftv_bf.prototype.ato=_eoftv_ck;_eoftv_bf.prototype.bjp=_eoftv_bs;_eoftv_bf.prototype.bjs=_eoftv_cl;_eoftv_bf.prototype.bhn=_eoftv_co;_eoftv_bf.prototype.asp=_eoftv_cp;_eoftv_bf.prototype.bjy=_eoftv_cq;_eoftv_bf.prototype.bjw=_eoftv_cr;_eoftv_bf.prototype.bij=_eoftv_cs;_eoftv_bf.prototype.adr=_eoftv_ct;_eoftv_bf.prototype.ads=_eoftv_cv;_eoftv_bf.prototype.adu=_eoftv_cw;_eoftv_bf.prototype.bii=_eoftv_cx;_eoftv_bf.prototype.bhi=_eoftv_cz;_eoftv_bf.prototype.bgz=_eoftv_da;_eoftv_bf.prototype.bke=_eoftv_cu;_eoftv_bf.prototype.bip=_eoftv_bm;_eoftv_bf.prototype.biq=_eoftv_br;_eoftv_bf.prototype.bkf=_eoftv_cy;_eoftv_bf.prototype.abi=_eoftv_dc;_eoftv_bf.prototype.arz=_eoftv_de;_eoftv_bf.prototype.biw=_eoftv_df;_eoftv_bf.prototype.getCheckState=_eoftv_ch;_eoftv_bf.prototype.setCheckState=_eoftv_cf;_eoftv_bf.prototype.getChecked=_eoftv_cj;_eoftv_bf.prototype.setChecked=_eoftv_ci;_eoftv_bf.prototype.getExpanded=_eoftv_ca;_eoftv_bf.prototype.setExpanded=_eoftv_bz;_eoftv_bf.prototype.isLeafNode=_eoftv_cm;_eoftv_bf.prototype.select=_eoftv_cn;_eoftv_bf.prototype.ensureVisible=_eoftv_db;_eoftv_bf.prototype.populateOnDemand=_eoftv_df;function _eoftv_dg(a){if(a)this.bkh(a);}function _eoftv_dh(a){if(!a)a=new Object();this.awa(a[0]);this.bki(a[1],a[2]);}function _eoftv_di(a,b){this.bkj=a;this.bkk=b;this.ath=_eoftv_ea;}function _eoftv_dj(){return true;}function _eoftv_dk(){this.awt();if(this.aai){for(var a=0;ah+1){var i=f.getItemByIndex(h+1);e=i.aih;}}if(e)f.aoe.insertBefore(this.bbo,e);else f.aoe.appendChild(this.bbo);this.aoe=document.createElement("DIV");this.bbo.appendChild(this.aoe);}var j=null;if(this.apd.aqo)j=this.apd.aqo.arj(eo_iz);if(c)c.className=j;else this.aoe.className=j;var k=this.aqu();this.ath(k,j);if(!this.bju){var l=this.aqu().acu();_eofu_as(this.aoe,eo_bp,this,l);_eofu_as(this.aoe,eo_br,this,l);_eofu_as(this.aoe,eo_bn,this,l);this.bkl=false;for(b=0;b0)&&!this.bju){this.aes();this.aeu(true);}if(this.aai){for(b=0;b0)e=this.apd;}else if(a==eo_cp){e=this.aai[b-1];while(e.atj()&&e.bjv()){e=e.amu.aai[e.amu.aai.length-1];}}else if(a==eo_cr){if(f.atj()&&f.bjv()&&!d)e=f.amu.aai[0];else if(b0){var g=this.apd;b=g.aln();return g.apd.amu.axh(eo_cr,b,c,true);}}else if(a==eo_cq){if(f.atj()){f.bfq(false);return true;}}if(e){this.aqu().apq(e);return true;}return false;}function _eoftv_ec(){switch(_eofu_bk(this.aoj,eo_ka)){case eo_by:return this.apd.bjy();case eo_bz:return true;case eo_ca:return false;}return false;}function _eoftv_ed(){switch(_eofu_bk(this.aoj,eo_kb)){case eo_by:return this.apd.bjw();case eo_bz:return true;case eo_ca:return false;}return false;}function _eoftv_ee(){switch(_eofu_bk(this.aoj,eo_kc)){case eo_by:return this.apd.bij();case eo_bz:return true;case eo_ca:return false;}return false;}function _eoftv_ef(a){var b;var c;var d=this.getItemCount();if(!d)return null;var e=new Array();var f=0;var g=d-1;while(f