//**********************************************************************************************************
// EO.Web Script Library. Copyright (C) 2006-2008 Essential Objects, Inc. All rights reserved.
// Visit Us on the Web: http://www.essentialobjects.com
// Version: 5.0.51.1
//**********************************************************************************************************
 var eo_ny=0;var eo_nz=1;var eo_oa=2;function _eofts_a(a){if(a)this.bhw(a);}function _eofts_b(a){this.aqd(a[0]);this.bhx(a[1],a[2]);}function _eofts_c(a,b){this.bhy=a?eo_nz:0;this.bhz=b;if(!b)this.bhz=0;}function _eofts_d(){return this.bhy==eo_oa;}function _eofts_e(){return this.bhy==eo_nz;}function _eofts_f(){return this.bhy;}function _eofts_g(a){this.asu(a);if(this.asq()&&!this.getTopGroup().isHorizontal()){_eofi_k("MultiRow is ignored on TabStrip '"+this.getId()+"' because the TabStrip is vertical.");this.bhy=eo_ob;}if(this.asq()&&this.aqz){_eofi_k("EnableScrolling is ignored on TabStrip '"+this.getId()+"' because the TabStrip is a multi-row TabStrip.");this.aqz=false;}if(this.bdo()){var b=this.aql?this.aql.aqi:null;if(b&&b.abd){for(var c=0;c<b.abd.length;c++){var d=b.abd[c];if(!d.aqi||!d.aqi.abd||!d.aqi.abd.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.aqi.abd.length;e++){var f=d.aqi.abd[e];if(f.aqi&&f.aqi.abd&&f.aqi.abd.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.bdn()){var b=this.aql?this.aql.aqi:null;if(b&&b.abd){for(var c=0;c<b.abd.length;c++){var d=b.abd[c];if(d.aqi&&d.aqi.abd&&d.aqi.abd.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.");}}}}if(this.aqz||this.asq()){_eofu_as(this,eo_ak,100);}else this.asr();}function _eofts_h(){this.asv();if(this.asq()){this.bia();if(this.bdn()){this.bib=this.akj;this.bic=0;_eofu_as(this,eo_an,200);}}}function _eofts_i(){_eofu_at(this,eo_an);this.bck();}function _eofts_j(){var a=document.createElement("TABLE");_eofu_dc(a);a.width="100%";a.cellSpacing=0;a.cellPadding=0;a.border=0;this.bid=a;}function _eofts_k(a){if(a==eo_an){this.bic++;if(this.bic<10){this.bia();var b=this.akj;if(!b||(b!=this.bib)){this.bib=b;_eofu_as(this,eo_an,200);}}}else this.bhs(a);}function _eofts_l(){var a=new _eofi_bu(this.avm);var b=this.getTopGroup();a.bd("s",b.bg(true));return a;}function _eofts_m(a){var b;if(this.isHorizontal()){b=_eofu_dd(_eofu_al(this.bid));}else{var c;if(this.bid.rows.length>0)c=this.bid.rows[0];else c=_eofu_al(this.bid);b=_eofu_dd(c);b.vAlign="top";}if(!this.bie){var d=this.ars;if(this.asq()){d=document.createElement("DIV");var e=null;if(this.ars.style.width){e=this.ars.style.width;var f=e.toLowerCase().indexOf("px");if(f<0)e=null;else e=_eofu_br(e.substr(0,f));}if(!e)e=_eofu_ac(this.ars);this.bif=e;e=_eofu_ab(e);d.style.width=e;d.style.height="100%";this.ars.appendChild(d);d.style.overflow="hidden";}d.appendChild(this.bid);this.bie=true;}return b;}function _eofts_n(a){a.axc=_eofts_z;a.bgb=_eofts_aa;a.avk=_eofi_cn;a.avo=_eofts_ab;a.axf=_eofts_ac;a.setSelected=_eofts_ad;}function _eofts_o(a){for(var b=0;b<a.length;b++){var c=a[b];if(c)c.azd=_eofts_ae;}}function _eofts_p(){var a=this.atg();for(var b=0;b<a.abd.length;b++){var c=a.abd[b];if(c.awg())return b;}return-1;}function _eofts_q(a){var b=this.atg();var c=b.abd[a];c.click();}function _eofts_r(a){if(this.asq()){var b=a.ass.aqi;b.big(a);}if(this.bdo()&&(a.axl()==1))this.bih(a);else if(this.bdn()&&(a.axl()==0))this.bii(a);}function _eofts_s(a){var b;var c;var d=new Array();var e=a.ass;var f=e.ass.aqi;var g=-1;for(b=0;b<f.abd.length;b++){var h=0;c=f.abd[b];if(c.aqi&&c.aqi.abd){if(c==e)g=b;else{for(var i=0;i<c.aqi.abd.length;i++)c.aqi.abd[i].axm(false);}h=_eofu_ad(c.aqi.bde);}_eofi_v(d,h);}for(b=0;b<f.abd.length;b++){c=f.abd[b];if(c.aqi&&c.aqi.abd){var j=c.aqi.bde;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.bij(b,f.abd.length,g);}}}function _eofts_t(a){var b;var c;var d;var e=this.getTopGroup();var f=-1;var g=new Array();for(b=0;b<e.bfi.length;b++){d=e.bfi[b];for(c=0;c<d.length;c++){if(d[c]==a){f=b;break;}}var h=0;if(e&&e.abd&&e.abd.length)h=e.abd[0].avv();if(!h&&d.length)h=_eofu_ad(d[0].bde);if(!h)h=16;_eofi_v(g,h);}var i=new Array();for(b=0;b<e.abd.length;b++){var j=e.abd[b].aua;if(!j)j=_eofu_ac(e.abd[b].bde);_eofi_v(i,j);}var k=0;var l=0;var m=0;var n=e.baj();for(b=0;b<e.bfi.length;b++){if(b<f){k=this.bik(g,b);}else if(b>f){k=this.bik(g,b,f);}else{k=this.bik(g,e.bfi.length,f);}var o=0;d=e.bfi[b];for(c=0;c<d.length;c++){var a=d[c];var p=a.bde;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.bij(b,e.abd.length,f);var j=i[m]+n;l+=j;o+=j;m++;}}if(e.bfi.length){var s=this.bik(g,e.bfi.length);s-=this.bhz;if(s<0)s=16;this.ars.style.height=_eofu_ab(s);this.akj=s;}}function _eofts_u(a,b,c){var d=0;for(var e=0;e<b;e++){if(e==c)continue;d+=a[e];if(this.bhz)d+=this.bhz;}return d;}function _eofts_v(){var a;var b;var c;var d=this.getTopGroup();if(d.abd&&d.abd.length){if(this.bdo()){for(var a=0;a<d.abd.length;a++){c=d.abd[a];if(c.aqi&&c.aqi.abd){for(var b=0;b<c.aqi.abd.length;b++){var e=c.aqi.abd[b];if(e.awg()){this.bgc(e);return;}}}}}else if(this.bdn()){for(var a=0;a<d.abd.length;a++){c=d.abd[a];if(c.awg()){this.bgc(c);return;}}}}}function _eofts_w(a,b,c){if(a<c)return 1000+a;else if(a>c)return 1000+a-1;else return 1000+b;}function _eofts_x(){this.bcj();var a=this.aql.aqi;if(!a)return;if(a.abd&&a.abd.length){for(var b=0;b<a.abd.length;b++){var c=a.abd[b];if(c.getSelected()){c.avg();break;}}}}function _eofts_y(){var a=this.getTopGroup();var b=a.aki;for(var c=0;c<a.abd.length;c++){var d=a.abd[c];if(d.awg()){if(c==0)return;var e=d.bcv;var f=_eofu_aj(e,b);var g=_eofu_ac(e);if(!g)g=d.avw();if(!g)g=100;a.bab.bhk(f.abq,g);return;}}}_eofts_a.prototype=new _eofm_b();_eofts_a.prototype.bhw=_eofts_b;_eofts_a.prototype.bhx=_eofts_c;_eofts_a.prototype.abb=_eofts_g;_eofts_a.prototype.ail=_eofts_i;_eofts_a.prototype.bdo=_eofts_d;_eofts_a.prototype.bdn=_eofts_e;_eofts_a.prototype.asq=_eofts_f;_eofts_a.prototype.arp=_eofts_h;_eofts_a.prototype.aru=_eofts_j;_eofts_a.prototype.bhs=_eofm_a;_eofts_a.prototype.ace=_eofts_k;_eofts_a.prototype.bg=_eofts_l;_eofts_a.prototype.bfk=_eofts_m;_eofts_a.prototype.atj=_eofts_n;_eofts_a.prototype.atb=_eofnv_ab;_eofts_a.prototype.bcu=_eofts_o;_eofts_a.prototype.bil=_eofts_p;_eofts_a.prototype.bim=_eofts_q;_eofts_a.prototype.bgc=_eofts_r;_eofts_a.prototype.bih=_eofts_s;_eofts_a.prototype.bii=_eofts_t;_eofts_a.prototype.bia=_eofts_v;_eofts_a.prototype.bik=_eofts_u;_eofts_a.prototype.bij=_eofts_w;_eofts_a.prototype.getSelectedIndex=_eofts_p;_eofts_a.prototype.setSelectedIndex=_eofts_q;_eofts_a.prototype.bf=_eofi_co;_eofts_a.prototype.an=_eofts_x;_eofts_a.prototype.bfd=_eofts_y;function _eofts_z(a){var b=this.getParentGroup();if(b.azb()){var c=this.getIndex();var d=b.bao(c,false);var e=b.bao(c,true);if(d)d.aur();if(e)e.aur();}var f=this.getSubMenu();if(f){if(a)f.eo_cn(null,true);else f.bin();}}function _eofts_aa(a){if(a!=this)this.l(false);if(this.aqi)this.aqi.bgb(a);}function _eofts_ab(a){this.getParentGroup().bgg(this);}function _eofts_ac(){var a=this.aqa();if(a&&a.azb()){for(var b=0;b<a.abd.length;b++){if(a.abd[b]==this){if(b>0)a.abd[b-1].aur();this.aur();if(b<a.abd.length-1)a.abd[b+1].aur();}}}}function _eofts_ad(a){if(a){var b=this.aqa();b.bgg(this);}}function _eofts_ae(){var a=this.aue;var b=a.aqa();if(!b)return null;var c=this.f==eo_mj;var d=a.getIndex();var e=b.bao(d,!c);var f=b.azb();var g=b.bio();if(!e)return this.azh();var h=c?e.bcs:e.bcr;if(!h)return this.azh();if(b.bip()==eo_mp){if(c){return _eofi_bl(this.azh(),h.azh(),"left",g,f,a.getSelected());}else{return _eofi_bm(this.azh(),"right",f);}}else{if(c){return _eofi_bm(this.azh(),"left",f);}else{return _eofi_bl(this.azh(),h.azh(),"right",g,f,a.getSelected());}}}function _eofts_af(a){if(a)this.biq(a);}function _eofts_ag(a){this.beg(a[0]);this.bir(a[1],a[2],a[3]);}function _eofts_ah(a,b,c){this.bis=a;this.bit=c;this.bai=b;}function _eofts_ai(){if(this.bis)return this.bis;if(this.auh)return this.auh.bip();return eo_mp;}function _eofts_aj(a){if(a){if(this.bai!=null)return this.bai;if(this.auh)return this.auh.azb(true);return 0;}else{var b=this.azb(true);if(b>0){var c=this.bdk();if(c&&!c.isHorizontal())return 0;}return b;}}function _eofts_ak(){if(this.bit)return this.bit;if(this.auh)return this.auh.bio();return eo_ms;}function _eofts_al(){this.eo_co(true);if(this.abd){for(var a=0;a<this.abd.length;a++){var b=this.abd[a];b.setSelected(false);if(b.aqi)b.aqi.bin();}}}function _eofts_am(){this.eo_cn(true);if(this.abd){for(var a=0;a<this.abd.length;a++){var b=this.abd[a];if(b.getSelected()&&b.aqi)b.aqi.ary();}}}function _eofts_an(a){if(this.abd){for(var b=0;b<this.abd.length;b++)this.abd[b].bgb(a);}}function _eofts_ao(a){this.bfi=new Array();var b=new Array();var c=this.auj().bif;if(!c)c=_eofu_ac(this.auj().ars);c+=2;var d=0;var e=-1;var f=this.baj();for(var g=0;g<this.abd.length;g++){var h=this.abd[g].aua;if(!h)h=_eofu_ac(this.abd[g].bde);var i=d+h;if(g<this.abd.length-1)i+=f;if((i>c)&&(b.length>0)){_eofi_v(this.bfi,b);b=new Array();d=0;}_eofi_v(b,this.abd[g]);d+=h+f;if(a==this.abd[g])e=this.bfi.length;}if(b.length)_eofi_v(this.bfi,b);}_eofts_af.prototype=new _eofm_cg();_eofts_af.prototype.biq=_eofts_ag;_eofts_af.prototype.bir=_eofts_ah;_eofts_af.prototype.bip=_eofts_ai;_eofts_af.prototype.azb=_eofts_aj;_eofts_af.prototype.bio=_eofts_ak;_eofts_af.prototype.bin=_eofts_al;_eofts_af.prototype.ary=_eofts_am;_eofts_af.prototype.bgb=_eofts_an;_eofts_af.prototype.big=_eofts_ao;eo_LoadModules();eo_ModuleLoaded('ts');