//**********************************************************************************************************
// EO.Web Script Library. Copyright (C) 2004-2006 Essential Objects, Inc. All rights reserved.
// Visit Us on the Web: http://www.essentialobjects.com
// Version: 5.0.12.2
//**********************************************************************************************************
 var eo_nb=0;var eo_nc=1;var eo_nd=2;function _eofts_a(a){if(a)this.bgp(a);}function _eofts_b(a){this.aoy(a[0]);this.bgq(a[1],a[2]);}function _eofts_c(a,b){this.bgr=a?eo_nc:0;this.bgs=b;if(!b)this.bgs=0;}function _eofts_d(){return this.bgr==eo_nd;}function _eofts_e(){return this.bgr==eo_nc;}function _eofts_f(){return this.bgr;}function _eofts_g(a){this.aro(a);if(this.bed()&&!this.getTopGroup().isHorizontal()){_eofi_k("MultiRow is ignored on TabStrip '"+this.getId()+"' because the TabStrip is vertical.");this.bgr=eo_ne;}if(this.bed()&&this.apu){_eofi_k("EnableScrolling is ignored on TabStrip '"+this.getId()+"' because the TabStrip is a multi-row TabStrip.");this.apu=false;}if(this.bcg()){var b=this.apg?this.apg.apd:null;if(b&&b.aau){for(var c=0;c<b.aau.length;c++){var d=b.aau[c];if(!d.apd||!d.apd.aau||!d.apd.aau.length){_eofi_k("MultiRowMode for TabStrip '"+this.getId()+"' is 'Manual'. However "+"Top level item '"+d.getText()+"' does not have any sub tabs. Sub-tabs "+"of each top level item are used to form a tab row when MultiRowMode is set to 'Manual'.");}else{for(var e=0;e<d.apd.aau.length;e++){var f=d.apd.aau[e];if(f.apd&&f.apd.aau&&f.apd.aau.length){_eofi_k("MultiRowMode for TabStrip '"+this.getId()+"' is 'Manual'. However "+"second level item '"+d.getText()+"' has sub tabs. Second level item "+"should not have any sub tabs when MultiRowMode is set to 'Manual'.");}}}}}}else if(this.bcf()){var b=this.apg?this.apg.apd:null;if(b&&b.aau){for(var c=0;c<b.aau.length;c++){var d=b.aau[c];if(d.apd&&d.apd.aau&&d.apd.aau.length){_eofi_k("TabStrip '"+this.getId()+"' is a multi-row TabStrip. However "+"Top level item '"+d.getText()+"' has sub tabs. Top level items should "+"not have sub tabs on a multi-row TabStrip.");}}}}this.asb();if(this.bed()){this.bgt();if(this.bcf()){this.bgu=this.ajn;this.bgv=0;_eofu_aq(this,eo_an,200);}}}function _eofts_h(){_eofu_ar(this,eo_an);this.bbc();}function _eofts_i(){var a=document.createElement("TABLE");_eofu_da(a);a.width="100%";a.cellSpacing=0;a.cellPadding=0;a.border=0;this.bgw=a;}function _eofts_j(a){if(a==eo_an){this.bgv++;if(this.bgv<10){this.bgt();var b=this.ajn;if(!b||(b!=this.bgu)){this.bgu=b;_eofu_aq(this,eo_an,200);}}}else this.bgl(a);}function _eofts_k(){var a=new _eofi_bs(this.auf);var b=this.getTopGroup();a.az("s",b.bd(true));return a;}function _eofts_l(a){var b;if(this.isHorizontal()){b=_eofu_db(_eofu_aj(this.bgw));}else{var c;if(this.bgw.rows.length>0)c=this.bgw.rows[0];else c=_eofu_aj(this.bgw);b=_eofu_db(c);b.vAlign="top";}if(!this.bgx){var d=this.aqn;if(this.bed()){d=document.createElement("DIV");var e=null;if(this.aqn.style.width){e=this.aqn.style.width;var f=e.toLowerCase().indexOf("px");if(f<0)e=null;else e=_eofu_bp(e.substr(0,f));}if(!e)e=_eofu_ac(this.aqn);this.bgy=e;e=_eofu_ab(e);d.style.width=e;d.style.height="100%";this.aqn.appendChild(d);d.style.overflow="hidden";}d.appendChild(this.bgw);this.bgx=true;}return b;}function _eofts_m(a){a.avv=_eofts_y;a.beu=_eofts_z;a.aud=_eofi_cm;a.auh=_eofts_aa;a.avy=_eofts_ab;a.setSelected=_eofts_ac;}function _eofts_n(a){for(var b=0;b<a.length;b++){var c=a[b];if(c)c.axv=_eofts_ad;}}function _eofts_o(){var a=this.asa();for(var b=0;b<a.aau.length;b++){var c=a.aau[b];if(c.auz())return b;}return-1;}function _eofts_p(a){var b=this.asa();var c=b.aau[a];c.click();}function _eofts_q(a){if(this.bed()){var b=a.arm.apd;b.bgz(a);}if(this.bcg()&&(a.awd()==1))this.bha(a);else if(this.bcf()&&(a.awd()==0))this.bhb(a);}function _eofts_r(a){var b;var c;var d=new Array();var e=a.arm;var f=e.arm.apd;var g=-1;for(b=0;b<f.aau.length;b++){var h=0;c=f.aau[b];if(c.apd&&c.apd.aau){if(c==e)g=b;else{for(var i=0;i<c.apd.aau.length;i++)c.apd.aau[i].awe(false);}h=_eofu_ad(c.apd.bbw);}_eofi_v(d,h);}for(b=0;b<f.aau.length;b++){c=f.aau[b];if(c.apd&&c.apd.aau){var j=c.apd.bbw;if(j.style.position!="relative")j.style.position="relative";var k=0;if(b>g)k=-d[g];else if(b==g){for(var i=g+1;i<d.length;i++)k+=d[i];}k=_eofu_ab(k);if(j.style.top!=k)j.style.top=k;j.style.zIndex=this.bhc(b,f.aau.length,g);}}}function _eofts_s(a){var b;var c;var d;var e=this.getTopGroup();var f=-1;var g=new Array();for(b=0;b<e.bea.length;b++){d=e.bea[b];for(c=0;c<d.length;c++){if(d[c]==a){f=b;break;}}var h=0;if(e&&e.aau&&e.aau.length)h=e.aau[0].auo();if(!h&&d.length)h=_eofu_ad(d[0].bbw);if(!h)h=16;_eofi_v(g,h);}var i=new Array();for(b=0;b<e.aau.length;b++){var j=e.aau[b].asu;if(!j)j=_eofu_ac(e.aau[b].bbw);_eofi_v(i,j);}var k=0;var l=0;var m=0;var n=e.azb();for(b=0;b<e.bea.length;b++){if(b<f){k=this.bhd(g,b);}else if(b>f){k=this.bhd(g,b,f);}else{k=this.bhd(g,e.bea.length,f);}var o=0;d=e.bea[b];for(c=0;c<d.length;c++){var a=d[c];var p=a.bbw;if(p.style.position!="relative")p.style.position="relative";var q=_eofu_ab(o-l);var r=_eofu_ab(k);if(p.style.left!=q)p.style.left=q;if(p.style.top!=r)p.style.top=r;p.style.zIndex=this.bhc(b,e.aau.length,f);var j=i[m]+n;l+=j;o+=j;m++;}}if(e.bea.length){var s=this.bhd(g,e.bea.length);s-=this.bgs;if(s<0)s=16;this.aqn.style.height=_eofu_ab(s);this.ajn=s;}}function _eofts_t(a,b,c){var d=0;for(var e=0;e<b;e++){if(e==c)continue;d+=a[e];if(this.bgs)d+=this.bgs;}return d;}function _eofts_u(){var a;var b;var c;var d=this.getTopGroup();if(d.aau&&d.aau.length){if(this.bcg()){for(var a=0;a<d.aau.length;a++){c=d.aau[a];if(c.apd&&c.apd.aau){for(var b=0;b<c.apd.aau.length;b++){var e=c.apd.aau[b];if(e.auz()){this.bev(e);return;}}}}}else if(this.bcf()){for(var a=0;a<d.aau.length;a++){c=d.aau[a];if(c.auz()){this.bev(c);return;}}}}}function _eofts_v(a,b,c){if(a<c)return 1000+a;else if(a>c)return 1000+a-1;else return 1000+b;}function _eofts_w(){this.bbb();var a=this.apg.apd;if(!a)return;if(a.aau&&a.aau.length){for(var b=0;b<a.aau.length;b++){var c=a.aau[b];if(c.getSelected()){c.aua();break;}}}}function _eofts_x(){var a=this.getTopGroup();var b=a.ajm;for(var c=0;c<a.aau.length;c++){var d=a.aau[c];if(d.auz()){if(c==0)return;var e=d.bbn;var f=_eofu_ah(e,b);var g=_eofu_ac(e);if(!g)g=d.aup();if(!g)g=100;a.ayt.bgd(f.abh,g);return;}}}_eofts_a.prototype=new _eofm_b();_eofts_a.prototype.bgp=_eofts_b;_eofts_a.prototype.bgq=_eofts_c;_eofts_a.prototype.aas=_eofts_g;_eofts_a.prototype.ahq=_eofts_h;_eofts_a.prototype.bcg=_eofts_d;_eofts_a.prototype.bcf=_eofts_e;_eofts_a.prototype.bed=_eofts_f;_eofts_a.prototype.aqk=_eofnv_m;_eofts_a.prototype.aqp=_eofts_i;_eofts_a.prototype.bgl=_eofm_a;_eofts_a.prototype.abv=_eofts_j;_eofts_a.prototype.bd=_eofts_k;_eofts_a.prototype.bec=_eofts_l;_eofts_a.prototype.asd=_eofts_m;_eofts_a.prototype.arv=_eofnv_aa;_eofts_a.prototype.bbm=_eofts_n;_eofts_a.prototype.bhe=_eofts_o;_eofts_a.prototype.bhf=_eofts_p;_eofts_a.prototype.bev=_eofts_q;_eofts_a.prototype.bha=_eofts_r;_eofts_a.prototype.bhb=_eofts_s;_eofts_a.prototype.bgt=_eofts_u;_eofts_a.prototype.bhd=_eofts_t;_eofts_a.prototype.bhc=_eofts_v;_eofts_a.prototype.getSelectedIndex=_eofts_o;_eofts_a.prototype.setSelectedIndex=_eofts_p;_eofts_a.prototype.bb=_eofi_cn;_eofts_a.prototype.ak=_eofts_w;_eofts_a.prototype.bdv=_eofts_x;function _eofts_y(a){var b=this.getParentGroup();if(b.axt()){var c=this.getIndex();var d=b.azg(c,false);var e=b.azg(c,true);if(d)d.atl();if(e)e.atl();}var f=this.getSubMenu();if(f){if(a)f.eo_cd(null,true);else f.bhg();}}function _eofts_z(a){if(a!=this)this.k(false);if(this.apd)this.apd.beu(a);}function _eofts_aa(a){this.getParentGroup().bez(this);}function _eofts_ab(){var a=this.aov();if(a&&a.axt()){for(var b=0;b<a.aau.length;b++){if(a.aau[b]==this){if(b>0)a.aau[b-1].atl();this.atl();if(b<a.aau.length-1)a.aau[b+1].atl();}}}}function _eofts_ac(a){if(a){var b=this.aov();b.bez(this);}}function _eofts_ad(){var a=this.asy;var b=a.aov();if(!b)return null;var c=this.f==eo_ln;var d=a.getIndex();var e=b.azg(d,!c);var f=b.axt();var g=b.bhh();if(!e)return this.axz();var h=c?e.bbk:e.bbj;if(!h)return this.axz();if(b.bhi()==eo_lt){if(c){return _eofi_bj(this.axz(),h.axz(),"left",g,f,a.getSelected());}else{return _eofi_bk(this.axz(),"right",f);}}else{if(c){return _eofi_bk(this.axz(),"left",f);}else{return _eofi_bj(this.axz(),h.axz(),"right",g,f,a.getSelected());}}}function _eofts_ae(a){if(a)this.bhj(a);}function _eofts_af(a){this.bcy(a[0]);this.bhk(a[1],a[2],a[3]);}function _eofts_ag(a,b,c){this.bhl=a;this.bhm=c;this.aza=b;}function _eofts_ah(){if(this.bhl)return this.bhl;if(this.atb)return this.atb.bhi();return eo_lt;}function _eofts_ai(a){if(a){if(this.aza!=null)return this.aza;if(this.atb)return this.atb.axt(true);return 0;}else{var b=this.axt(true);if(b>0){var c=this.bcc();if(c&&!c.isHorizontal())return 0;}return b;}}function _eofts_aj(){if(this.bhm)return this.bhm;if(this.atb)return this.atb.bhh();return eo_lw;}function _eofts_ak(){this.eo_ce(true);if(this.aau){for(var a=0;a<this.aau.length;a++){var b=this.aau[a];b.setSelected(false);if(b.apd)b.apd.bhg();}}}function _eofts_al(){this.eo_cd(true);if(this.aau){for(var a=0;a<this.aau.length;a++){var b=this.aau[a];if(b.getSelected()&&b.apd)b.apd.aqt();}}}function _eofts_am(a){if(this.aau){for(var b=0;b<this.aau.length;b++)this.aau[b].beu(a);}}function _eofts_an(a){this.bea=new Array();var b=new Array();var c=this.atd().bgy;if(!c)c=_eofu_ac(this.atd().aqn);c+=2;var d=0;var e=-1;var f=this.azb();for(var g=0;g<this.aau.length;g++){var h=this.aau[g].asu;if(!h)h=_eofu_ac(this.aau[g].bbw);var i=d+h;if(g<this.aau.length-1)i+=f;if((i>c)&&(b.length>0)){_eofi_v(this.bea,b);b=new Array();d=0;}_eofi_v(b,this.aau[g]);d+=h+f;if(a==this.aau[g])e=this.bea.length;}if(b.length)_eofi_v(this.bea,b);}_eofts_ae.prototype=new _eofm_cf();_eofts_ae.prototype.bhj=_eofts_af;_eofts_ae.prototype.bhk=_eofts_ag;_eofts_ae.prototype.bhi=_eofts_ah;_eofts_ae.prototype.axt=_eofts_ai;_eofts_ae.prototype.bhh=_eofts_aj;_eofts_ae.prototype.bhg=_eofts_ak;_eofts_ae.prototype.aqt=_eofts_al;_eofts_ae.prototype.beu=_eofts_am;_eofts_ae.prototype.bgz=_eofts_an;eo_LoadModules();eo_ModuleLoaded('ts');