ÿþ/ * 
 C o p y r i g h t   S c a n d   L L C   h t t p : / / w w w . s c b r . c o m  
 T h i s   v e r s i o n   o f   S o f t w a r e   i s   f r e e   f o r   u s i n g   i n   G P L   a p p l i c a t i o n s .   F o r   o t h e r   u s a g e   p l e a s e   c o n t a c t   i n f o @ s c b r . c o m   t o   o b t a i n   l i c e n s e   ( P r o f e s s i o n a l   E d i t i o n   i n c l u d e d ) 
 * /    
  
    
  
  
    
 f u n c t i o n   d h t m l X T a b B a r ( p a r e n t O b j e c t , m o d e , h e i g h t )  
 {  
   m o d e = m o d e | | " t o p " ;  
   t h i s . _ m o d e = m o d e + " / " ;  
   t h i s . _ e c z F = t r u e ;  
  
   
   i f ( t y p e o f ( p a r e n t O b j e c t ) ! = " o b j e c t " )  
   t h i s . e n t B o x = d o c u m e n t . g e t E l e m e n t B y I d ( p a r e n t O b j e c t ) ;  
   e l s e  
   t h i s . e n t B o x = p a r e n t O b j e c t ;  
  
   t h i s . w i d t h   =   t h i s . e n t B o x . g e t A t t r i b u t e ( " w i d t h " ) | |   t h i s . e n t B o x . s t y l e . w i d t h   | | ( w i n d o w . g e t C o m p u t e d S t y l e ? w i n d o w . g e t C o m p u t e d S t y l e ( t h i s . e n t B o x , n u l l ) [ " w i d t h " ] : ( t h i s . e n t B o x . c u r r e n t S t y l e ? t h i s . e n t B o x . c u r r e n t S t y l e [ " w i d t h " ] : 0 ) ) ;  
   i f ( t h i s . w i d t h = = " 1 0 0 % " )  
   t h i s . e n a b l e A u t o R e S i z e ( t r u e ) ;  
  
   i f ( ( ! t h i s . w i d t h ) | | ( t h i s . w i d t h = = " a u t o " ) | | ( t h i s . w i d t h . i n d e x O f ( " % " ) ! = - 1 ) | | ( p a r s e I n t ( t h i s . w i d t h ) = = 0 ) )  
   t h i s . w i d t h = t h i s . e n t B o x . o f f s e t W i d t h + " p x " ;  
    
   t h i s . h e i g h t   =   t h i s . e n t B o x . g e t A t t r i b u t e ( " h e i g h t " ) | |   t h i s . e n t B o x . s t y l e . h e i g h t   | | ( w i n d o w . g e t C o m p u t e d S t y l e ? w i n d o w . g e t C o m p u t e d S t y l e ( t h i s . e n t B o x , n u l l ) [ " h e i g h t " ] : ( t h i s . e n t B o x . c u r r e n t S t y l e ? t h i s . e n t B o x . c u r r e n t S t y l e [ " h e i g h t " ] : 0 ) ) ;  
   i f ( ( ! t h i s . h e i g h t ) | | ( t h i s . h e i g h t . i n d e x O f ( " % " ) ! = - 1 ) | | ( t h i s . h e i g h t = = " a u t o " ) ) t h i s . h e i g h t = t h i s . e n t B o x . o f f s e t H e i g h t + " p x " ;  
  
   t h i s . a c t i v e T a b   =   n u l l ; 
   t h i s . t a b s I d   =   n e w   O b j e c t ( ) ;  
  
   t h i s . _ a l i g n = " r i g h t " ;  
   t h i s . _ o f f s e t = 3 ;  
   t h i s . _ m a r g i n = 1 ;  
   t h i s . _ h e i g h t = p a r s e I n t ( h e i g h t | | 2 0 ) ;  
   t h i s . _ b M o d e = ( m o d e = = " r i g h t " | | m o d e = = " b o t t o m " ) ;  
   t h i s . _ t a b S i z e = ' 1 5 0 ' ;  
   t h i s . _ c o n t e n t = n e w   A r r a y ( ) ;  
   t h i s . _ t b s t = " w i n _ t e x t " ;  
   t h i s . _ s t y l e s = {  
   w i n D f l t : [ " p _ l e f t . g i f " , " p _ m i d d l e . g i f " , " p _ r i g h t . g i f " , " a _ l e f t . g i f " , " a _ m i d d l e . g i f " , " a _ r i g h t . g i f " , " a _ m i d d l e . g i f " , 3 , 3 , 6 , " # F 4 F 3 E E " , " # F 0 F 8 F F " , f a l s e ] ,  
   w i n S c a r f : [ " w i t h _ b g / p _ l e f t . g i f " , " w i t h _ b g / p _ m i d d l e . g i f " , " w i t h _ b g / p _ r i g h t _ s k o s . g i f " , " w i t h _ b g / a _ l e f t . g i f " , " w i t h _ b g / a _ m i d d l e . g i f " , " w i t h _ b g / a _ r i g h t _ s k o s . g i f " , " w i t h _ b g / p _ m i d d l e _ o v e r . g i f " , 3 , 1 8 , 6 , f a l s e , f a l s e , f a l s e ] ,  
   w i n B i S c a r f : [ " w i t h _ b g / p _ l e f t _ s k o s . g i f " , " w i t h _ b g / p _ m i d d l e . g i f " , " w i t h _ b g / p _ r i g h t _ s k o s . g i f " , " w i t h _ b g / a _ l e f t _ s k o s . g i f " , " w i t h _ b g / a _ m i d d l e . g i f " , " w i t h _ b g / a _ r i g h t _ s k o s . g i f " , " w i t h _ b g / p _ m i d d l e _ o v e r . g i f " , 1 8 , 1 8 , 6 , f a l s e , f a l s e , f a l s e ] ,  
   w i n R o u n d : [ " c i r c u s e s / p _ l e f t . g i f " , " c i r c u s e s / p _ m i d d l e . g i f " , " c i r c u s e s / p _ r i g h t . g i f " , " c i r c u s e s / a _ l e f t . g i f " , " c i r c u s e s / a _ m i d d l e . g i f " , " c i r c u s e s / a _ r i g h t . g i f " , " c i r c u s e s / p _ m i d d l e _ o v e r . g i f " , 1 0 , 1 0 , 6 , f a l s e , f a l s e , f a l s e ]  
  
 } ;  
   t h i s . _ c r e a t e S e l f ( m o d e = = " r i g h t " | | m o d e = = " l e f t " ) ; 
   t h i s . s e t S t y l e ( " w i n D f l t " ) ;  
   r e t u r n   t h i s ;  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . s e t O f f s e t   =   f u n c t i o n ( o f f s e t ) {  
   t h i s . _ o f f s e t = o f f s e t ;  
 }  
    
 d h t m l X T a b B a r . p r o t o t y p e . s e t A l i g n   =   f u n c t i o n ( a l i g n ) {  
   i f ( a l i g n = = " t o p " ) a l i g n = " l e f t " ;  
   i f ( a l i g n = = " b o t t o m " ) a l i g n = " r i g h t " ;  
   t h i s . _ a l i g n = a l i g n ;  
 }  
    
 d h t m l X T a b B a r . p r o t o t y p e . s e t M a r g i n   =   f u n c t i o n ( m a r g i n ) {  
   t h i s . _ m a r g i n = m a r g i n ;  
 }  
  
  
  
  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . _ c r e a t e S e l f   =   f u n c t i o n ( v M o d e )  
 {  
   t h i s . _ t a b A l l = d o c u m e n t . c r e a t e E l e m e n t ( " D I V " ) ;  
   t h i s . _ t a b Z o n e = d o c u m e n t . c r e a t e E l e m e n t ( " D I V " ) ;  
   t h i s . _ c o n Z o n e = d o c u m e n t . c r e a t e E l e m e n t ( " D I V " ) ;  
  
  
   t h i s . e n t B o x . a p p e n d C h i l d ( t h i s . _ t a b A l l ) ;  
   
 i f ( t h i s . _ b M o d e ) {  
   t h i s . _ t a b A l l . a p p e n d C h i l d ( t h i s . _ c o n Z o n e ) ;  
   t h i s . _ t a b A l l . a p p e n d C h i l d ( t h i s . _ t a b Z o n e ) ;  
 }  
   e l s e  
   
 {  
   t h i s . _ t a b A l l . a p p e n d C h i l d ( t h i s . _ t a b Z o n e ) ;  
   t h i s . _ t a b A l l . a p p e n d C h i l d ( t h i s . _ c o n Z o n e ) ;  
 }  
  
  
   t h i s . _ v M o d e = v M o d e ;  
   
   i f ( v M o d e ) {  
   t h i s . _ t a b A l l . c l a s s N a m e = ' d h x _ t a b b a r _ z o n e V ' ;  
   t h i s . _ s e t S i z e s = t h i s . _ s e t S i z e s V ;  
   t h i s . _ r e d r a w R o w = t h i s . _ r e d r a w R o w V ;  
  
 }  
   e l s e  
   
   t h i s . _ t a b A l l . c l a s s N a m e = ' d h x _ t a b b a r _ z o n e ' ;  
  
   
   i f ( t h i s . _ b M o d e )  
   t h i s . _ t a b A l l . c l a s s N a m e + = ' B ' ;  
   
   t h i s . _ t a b Z o n e . c l a s s N a m e = ' d h x _ t a b l i s t _ z o n e ' ;  
   t h i s . _ c o n Z o n e . c l a s s N a m e = ' d h x _ t a b c o n t e n t _ z o n e ' ;  
  
   t h i s . _ t a b Z o n e . o n s e l e c t s t a r t   =   f u n c t i o n ( ) { r e t u r n   f a l s e ; } ;  
   t h i s . _ t a b A l l . o n c l i c k   =   t h i s . _ o n C l i c k H a n d l e r ;  
   t h i s . _ t a b A l l . o n m o u s e o v e r   =   t h i s . _ o n M o u s e O v e r H a n d l e r ;  
   i f ( _ i s F F )  
   t h i s . _ t a b Z o n e . o n m o u s e o u t   =   t h i s . _ o n M o u s e O u t H a n d l e r ;  
   e l s e  
   t h i s . _ t a b Z o n e . o n m o u s e l e a v e   =   t h i s . _ o n M o u s e O u t H a n d l e r ;  
   t h i s . _ t a b A l l . t a b b a r = t h i s ;  
  
   t h i s . _ l i n e A = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ;  
   t h i s . _ l i n e A . c l a s s N a m e = " d h x _ t a b l i s t _ l i n e " ;  
  
   t h i s . _ l i n e A . s t y l e [ v M o d e ? " l e f t " : " t o p " ] = ( t h i s . _ b M o d e ? 0 : ( t h i s . _ h e i g h t + 2 ) ) + " p x " ;  
   t h i s . _ l i n e A . s t y l e [ v M o d e ? " h e i g h t " : " w i d t h " ] = t h i s [ v M o d e ? " h e i g h t " : " w i d t h " ] ;  
   
   i f ( v M o d e )  
   t h i s . _ c o n Z o n e . s t y l e . h e i g h t = t h i s . h e i g h t ;  
   e l s e  
   
   t h i s . _ c o n Z o n e . s t y l e . w i d t h = p a r s e I n t ( t h i s . w i d t h ) - ( _ i s F F ? 2 : 0 ) + " p x " ;  
  
   t h i s . r o w s = n e w   A r r a y ( ) ;  
   t h i s . r o w s c o u n t = 1 ;  
   t h i s . _ c r e a t e R o w ( ) ;  
   t h i s . _ s e t S i z e s ( ) ;  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . _ c r e a t e R o w   =   f u n c t i o n ( ) {  
   v a r   z = d o c u m e n t . c r e a t e E l e m e n t ( " D I V " ) ;  
   z . c l a s s N a m e = ' d h x _ t a b b a r _ r o w ' ;  
   t h i s . _ t a b Z o n e . a p p e n d C h i l d ( z ) ;  
   z . _ r o w S c r o l l e r = d o c u m e n t . c r e a t e E l e m e n t ( ' D I V ' ) ;  
   z . _ r o w S c r o l l e r . s t y l e . d i s p l a y = " n o n e " ;  
   z . a p p e n d C h i l d ( z . _ r o w S c r o l l e r ) ;  
   t h i s . r o w s [ t h i s . r o w s . l e n g t h ] = z ;  
   
   i f ( t h i s . _ v M o d e ) {  
   z . s t y l e . w i d t h = t h i s . _ h e i g h t + 3 + " p x " ;  
   z . s t y l e . h e i g h t = p a r s e I n t ( t h i s . h e i g h t ) + " p x " ;  
   i f ( ! t h i s . _ b M o d e )  
   t h i s . s e t R o w S i z e s A ( ) ;  
   e l s e  
   t h i s . s e t R o w S i z e s B ( ) ;  
 }  
   e l s e  
   
 {  
   z . s t y l e . h e i g h t = t h i s . _ h e i g h t + 3 + " p x " ;  
   z . s t y l e . w i d t h = p a r s e I n t ( t h i s . w i d t h ) + " p x " ;  
 }  
  
   z . a p p e n d C h i l d ( t h i s . _ l i n e A ) ;  
 }  
  
  
 d h t m l X T a b B a r . p r o t o t y p e . _ r e m o v e R o w = f u n c t i o n ( r o w ) {  
   r o w . p a r e n t N o d e . r e m o v e C h i l d ( r o w ) ;  
   v a r   z = n e w   A r r a y ( ) ;  
   f o r ( v a r   i = 0 ; i < t h i s . r o w s . l e n g t h ; i + + )  
   i f ( t h i s . r o w s [ i ] ! = r o w ) z [ z . l e n g t h ] = t h i s . r o w s [ i ] ;  
  
   t h i s . r o w s = z ;  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . _ s e t S i z e s   =   f u n c t i o n ( ) {  
  
   t h i s . _ t a b A l l . h e i g h t = t h i s . h e i g h t ;  
   t h i s . _ t a b A l l . w i d t h = t h i s . w i d t h ;  
  
   i f ( t h i s . _ t a b Z o n e . c h i l d N o d e s . l e n g t h )  
   v a r   z = t h i s . _ t a b Z o n e . l a s t C h i l d . o f f s e t T o p - t h i s . _ t a b Z o n e . f i r s t C h i l d . o f f s e t T o p + t h i s . _ h e i g h t ;  
   e l s e  
   v a r   z = t h i s . _ h e i g h t + ( _ i s I E ? 5 : 0 ) ;  
  
   v a r   a = z - 2 ;  
   t h i s . _ t a b Z o n e . s t y l e . h e i g h t = ( a > 0 ? a : 0 ) + " p x " ;  
   a = p a r s e I n t ( t h i s . h e i g h t ) - z - 4 ;  
   t h i s . _ c o n Z o n e . s t y l e . h e i g h t = ( a > 0 ? a : 0 ) + " p x " ;  
 }  
   
    
 d h t m l X T a b B a r . p r o t o t y p e . _ s e t S i z e s V   =   f u n c t i o n ( ) {  
   t h i s . _ t a b A l l . h e i g h t = t h i s . h e i g h t ;  
   t h i s . _ t a b A l l . w i d t h = t h i s . w i d t h ;  
  
   v a r   z = t h i s . _ h e i g h t * t h i s . r o w s . l e n g t h ;  
  
   i f ( ! t h i s . _ b M o d e ) {  
   t h i s . _ t a b Z o n e . s t y l e . w i d t h = z + 3 + " p x " ;  
   t h i s . _ c o n Z o n e . s t y l e . w i d t h = p a r s e I n t ( t h i s . w i d t h ) - z + " p x " ;  
   t h i s . _ c o n Z o n e . s t y l e . l e f t =   z + 3 + " p x " ;  
 }  
   e l s e {  
   t h i s . _ t a b Z o n e . s t y l e . w i d t h = z + 3 + " p x " ;  
   t h i s . _ c o n Z o n e . s t y l e . w i d t h = p a r s e I n t ( t h i s . w i d t h ) - z + " p x " ;  
   t h i s . _ t a b Z o n e . s t y l e . l e f t = p a r s e I n t ( t h i s . w i d t h ) - z + " p x " ;  
 }  
  
   t h i s . _ c o n Z o n e . s t y l e . h e i g h t = t h i s . h e i g h t ;  
   t h i s . _ t a b Z o n e . s t y l e . h e i g h t = t h i s . h e i g h t ;  
 }  
  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . _ r e d r a w R o w V = f u n c t i o n ( r o w ) {  
   v a r   t a l i g n = t h i s . _ a l i g n = = " l e f t " ? " t o p " : " b o t t o m " ;  
   v a r   c o u n t = p a r s e I n t ( t h i s . _ o f f s e t ) ;  
   f o r ( v a r   i = 0 ; i < r o w . t a b C o u n t ; i + + ) {  
   i f ( r o w . c h i l d N o d e s [ i ] . s t y l e . d i s p l a y = = " n o n e " ) c o n t i n u e ;  
   r o w . c h i l d N o d e s [ i ] . _ c I n d = i ;  
   r o w . c h i l d N o d e s [ i ] . s t y l e [ t a l i g n ] = c o u n t + " p x " ;  
   c o u n t + = r o w . c h i l d N o d e s [ i ] . _ o f f s e t S i z e + p a r s e I n t ( t h i s . _ m a r g i n ) ;  
 }  
  
  
 } ;  
  
  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . s e t R o w S i z e s A = f u n c t i o n ( ) {  
   f o r ( v a r   i = 0 ; i < t h i s . r o w s . l e n g t h ; i + + ) {  
   t h i s . r o w s [ i ] . s t y l e . l e f t = i * t h i s . _ h e i g h t + " p x " ;  
   t h i s . r o w s [ i ] . s t y l e . z I n d e x = 5 + i ;  
 }  
 }  
    
 d h t m l X T a b B a r . p r o t o t y p e . s e t R o w S i z e s B = f u n c t i o n ( ) {  
   f o r ( v a r   i = t h i s . r o w s . l e n g t h - 1 ; i > = 0 ; i - - ) {  
   t h i s . r o w s [ i ] . s t y l e . l e f t = i * t h i s . _ h e i g h t + " p x " ;  
   t h i s . r o w s [ i ] . s t y l e . z I n d e x = 1 5 - i ;  
 }  
 }  
    
 d h t m l X T a b B a r . p r o t o t y p e . s e t R o w S i z e s C = f u n c t i o n ( ) {  
   f o r ( v a r   i = t h i s . r o w s . l e n g t h - 1 ; i > = 0 ; i - - ) {  
   t h i s . r o w s [ i ] . s t y l e . z I n d e x = 1 5 - i ;  
 }  
 }  
  
   
  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . _ o n M o u s e O v e r H a n d l e r = f u n c t i o n ( e )  
 {  
   i f ( _ i s I E )  
   v a r   t a r g e t   =   e v e n t . s r c E l e m e n t ;  
   e l s e  
   v a r   t a r g e t   =   e . t a r g e t ;  
  
   t a r g e t = t h i s . t a b b a r . _ g e t T a b T a r g e t ( t a r g e t ) ;  
   i f ( ! t a r g e t ) {  
   t h i s . t a b b a r . _ h i d e H o v e r ( t a r g e t ) ; r e t u r n ;  
 }  
  
   t h i s . t a b b a r . _ s h o w H o v e r ( t a r g e t ) ;  
  
 ( e | | e v e n t ) . c a n c e l B u b b l e = t r u e ;  
 }  
    
 d h t m l X T a b B a r . p r o t o t y p e . _ o n M o u s e O u t H a n d l e r = f u n c t i o n ( e )  
 {  
   t h i s . p a r e n t N o d e . t a b b a r . _ h i d e H o v e r ( n u l l ) ; r e t u r n ;  
 }  
  
  
  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . _ o n C l i c k H a n d l e r = f u n c t i o n ( e )  
 {  
   i f ( _ i s I E )  
   v a r   t a r g e t   =   e v e n t . s r c E l e m e n t ;  
   e l s e  
   v a r   t a r g e t   =   e . t a r g e t ;  
  
   i f ( d o c u m e n t . b o d y . o n c l i c k ) d o c u m e n t . b o d y . o n c l i c k ( e ) ;  
 ( e | | e v e n t ) . c a n c e l B u b b l e = t r u e ;  
  
  
   t a r g e t = t h i s . t a b b a r . _ g e t T a b T a r g e t ( t a r g e t ) ;  
   i f ( ! t a r g e t ) r e t u r n ;  
  
   t h i s . t a b b a r . _ s e t T a b A c t i v e ( t a r g e t ) ;  
   r e t u r n   f a l s e ;  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . _ g e t T a b T a r g e t = f u n c t i o n ( t ) {  
   w h i l e ( ( ! t . c l a s s N a m e ) | | ( t . c l a s s N a m e . i n d e x O f ( " d h x _ t a b _ e l e m e n t " ) = = - 1 ) ) {  
   i f ( ( t . c l a s s N a m e ) & & ( t . c l a s s N a m e . i n d e x O f ( " d h x _ t a b b a r _ z o n e " ) ! = - 1 ) ) r e t u r n   n u l l ;  
   t = t . p a r e n t N o d e ;  
   i f ( ! t ) r e t u r n   n u l l ;  
 }  
   r e t u r n   t ;  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . _ r e d r a w R o w = f u n c t i o n ( r o w ) {  
   v a r   c o u n t = p a r s e I n t ( t h i s . _ o f f s e t ) ;  
   f o r ( v a r   i = 0 ; i < r o w . t a b C o u n t ; i + + ) {  
   i f ( r o w . c h i l d N o d e s [ i ] . s t y l e . d i s p l a y = = " n o n e " ) c o n t i n u e ;  
   r o w . c h i l d N o d e s [ i ] . _ c I n d = i ;  
   r o w . c h i l d N o d e s [ i ] . s t y l e [ t h i s . _ a l i g n ] = c o u n t + " p x " ;  
   c o u n t + = r o w . c h i l d N o d e s [ i ] . _ o f f s e t S i z e + p a r s e I n t ( t h i s . _ m a r g i n ) ;  
 }  
  
 } ;  
  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . r e m o v e T a b   =   f u n c t i o n ( t a b , m o d e ) {  
   v a r   t a b = t h i s . t a b s I d [ t a b ] ;  
   i f ( ! t a b ) r e t u r n ;  
  
   i f ( t h i s . _ c o n t e n t [ t a b . i d d ] ) {  
   t h i s . _ c o n t e n t [ t a b . i d d ] . p a r e n t N o d e . r e m o v e C h i l d ( t h i s . _ c o n t e n t [ t a b . i d d ] ) ;  
   t h i s . _ c o n t e n t [ t a b . i d d ] = n u l l ;  
 }  
  
   t h i s . _ g o T o A n y ( t a b , m o d e ) ;  
  
   v a r   r o w = t a b . p a r e n t N o d e ;  
   r o w . r e m o v e C h i l d ( t a b ) ;  
   r o w . t a b C o u n t - - ;  
   i f ( ( r o w . t a b C o u n t = = 0 ) & & ( t h i s . r o w s . l e n g t h > 1 ) )  
   t h i s . _ r e m o v e R o w ( r o w ) ;  
   t h i s . t a b s I d [ t a b . i d d ] = n u l l ;  
   t h i s . _ r e d r a w R o w ( r o w )  
   t h i s . _ s e t S i z e s ( ) ;  
 }  
  
 d h t m l X T a b B a r . p r o t o t y p e . _ g o T o A n y = f u n c t i o n ( t a b , m o d e ) {  
   i f ( ( t h i s . _ l a s t A c t i v e ) = = t a b )  
   i f ( c o n v e r t S t r i n g T o B o o l e a n ( m o d e ) ) { i f ( n u l l = = = t h i s . g o T o P r e v T a b ( ) ) i f ( n u l l = = = t h i s . g o T o N e x t T a b ( ) ) t h i s . _ l a s t A c t i v e = n u l l ; }  
   e l s e   t h i s . _ l a s t A c t i v e = n u l l ;  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . a d d T a b   =   f u n c t i o n ( i d , t e x t , s i z e , p o s i t i o n , r o w ) { 
   r o w = r o w | | 0 ;  
  
   v a r   z = t h i s . r o w s [ r o w ] . t a b C o u n t | | 0 ;  
   i f ( ( ! p o s i t i o n ) & & ( p o s i t i o n ! = = 0 ) )  
   p o s i t i o n = z ;  
  
   v a r   t a b = t h i s . _ c r e a t e T a b ( t e x t , s i z e ) ;  
   t a b . i d d = i d ;  
   t h i s . t a b s I d [ i d ]   =   t a b ;  
  
   t h i s . r o w s [ r o w ] . i n s e r t B e f o r e ( t a b , t h i s . r o w s [ r o w ] . c h i l d N o d e s [ p o s i t i o n ] ) ;  
  
   t h i s . r o w s [ r o w ] . t a b C o u n t = z + 1 ;  
   t h i s . _ r e d r a w R o w ( t h i s . r o w s [ r o w ] ) ;  
   t h i s . _ s e t S i z e s ( ) ;  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . _ s h o w H o v e r = f u n c t i o n ( t a b ) {  
   i f ( t a b . _ d i s a b l e d ) r e t u r n ;  
   t h i s . _ h i d e H o v e r ( t a b ) ;  
   i f ( t a b = = t h i s . _ l a s t A c t i v e ) r e t u r n ;  
   s w i t c h ( t h i s . _ t b s t ) {  
   c a s e   " w i n _ t e x t " :  
   t a b . _ l C h i l d . s t y l e . b a c k g r o u n d I m a g e = ' u r l ( ' + t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 6 ] + ' ) ' ;  
   b r e a k ;  
 }  
   t h i s . _ l a s t H o w e r = t a b ;  
 }  
    
 d h t m l X T a b B a r . p r o t o t y p e . _ h i d e H o v e r = f u n c t i o n ( t a b ) {  
   i f ( ( ! t h i s . _ l a s t H o w e r ) | | ( t h i s . _ l a s t H o w e r = = t a b ) | | ( t h i s . _ l a s t H o w e r = = t h i s . _ l a s t A c t i v e ) )  
   r e t u r n ;  
   s w i t c h ( t h i s . _ t b s t ) {  
   c a s e   " w i n _ t e x t " :  
   t h i s . _ l a s t H o w e r . _ l C h i l d . s t y l e . b a c k g r o u n d I m a g e = ' u r l ( ' + t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 1 ] + ' ) ' ;  
   b r e a k ;  
 }  
   t h i s . _ l a s t H o w e r = n u l l ;  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . _ g e t T a b B y I d = f u n c t i o n ( t a b I d ) {  
   r e t u r n   t h i s . t a b s I d [ t a b I d ] ;  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . s e t T a b A c t i v e = f u n c t i o n ( t a b I d ) {  
   v a r   t a b = t h i s . _ g e t T a b B y I d ( t a b I d ) ;  
   i f ( t a b ) t h i s . _ s e t T a b A c t i v e ( t a b ) ;  
 }  
    
 d h t m l X T a b B a r . p r o t o t y p e . _ s e t T a b A c t i v e = f u n c t i o n ( t a b ) {  
   i f ( ( t a b . _ d i s a b l e d ) | | ( t a b . s t y l e . d i s p l a y = = " n o n e " ) ) r e t u r n   f a l s e ;  
   i f ( ( t h i s . _ o n s e l ) & & ( ! t h i s . _ o n s e l ( t a b . i d d , t h i s . _ l a s t A c t i v e ? t h i s . _ l a s t A c t i v e . i d d : n u l l ) ) ) r e t u r n   f a l s e ;  
   i f ( t h i s . _ l a s t A c t i v e )  
   t h i s . _ l a s t A c t i v e . c l a s s N a m e = t h i s . _ l a s t A c t i v e . c l a s s N a m e . r e p l a c e ( / d h x _ t a b _ e l e m e n t _ a c t i v e / g , " d h x _ t a b _ e l e m e n t _ i n a c t i v e " ) ;  
   t a b . c l a s s N a m e = t a b . c l a s s N a m e . r e p l a c e ( / d h x _ t a b _ e l e m e n t _ i n a c t i v e / g , " d h x _ t a b _ e l e m e n t _ a c t i v e " ) ;  
   i f ( ( t h i s . _ l a s t A c t i v e ) & & ( t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 1 0 ] ) )  
   t h i s . _ l a s t A c t i v e . s t y l e . b a c k g r o u n d C o l o r = t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 1 0 ] ;  
   i f ( t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 1 1 ] )  
   t a b . s t y l e . b a c k g r o u n d C o l o r = t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 1 1 ] ;  
  
   
   i f ( t h i s . _ v M o d e ) {  
   s w i t c h ( t h i s . _ t b s t ) {  
   c a s e   " w i n _ t e x t " :  
   i f ( t h i s . _ l a s t A c t i v e ) {  
   t h i s . _ l a s t A c t i v e . _ l C h i l d . s t y l e . b a c k g r o u n d I m a g e = ' u r l ( ' + t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 1 ] + ' ) ' ;  
   t h i s . _ l a s t A c t i v e . c h i l d N o d e s [ 0 ] . c h i l d N o d e s [ 0 ] . s r c = t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 0 ] ;  
   t h i s . _ l a s t A c t i v e . c h i l d N o d e s [ 1 ] . c h i l d N o d e s [ 0 ] . s r c = t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 2 ] ;  
   t h i s . _ l a s t A c t i v e . s t y l e . h e i g h t = p a r s e I n t ( t h i s . _ l a s t A c t i v e . s t y l e . h e i g h t ) - t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 9 ] + " p x " ;  
   t h i s . _ l a s t A c t i v e . _ l C h i l d . s t y l e . h e i g h t = p a r s e I n t ( t h i s . _ l a s t A c t i v e . _ l C h i l d . s t y l e . h e i g h t ) - t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 9 ] + " p x " ;  
   t h i s . _ l a s t A c t i v e . s t y l e [ t h i s . _ a l i g n = = " r i g h t " ? " m a r g i n B o t t o m " : " m a r g i n T o p " ] = " 0 p x "  
   t h i s . _ l a s t A c t i v e . s t y l e . w i d t h = t h i s . _ h e i g h t + 1 + " p x " ;  
   i f ( t h i s . _ b M o d e )  
   t h i s . _ l a s t A c t i v e . _ l C h i l d . s t y l e . w i d t h = t h i s . _ h e i g h t + 1 + " p x " ;  
 }  
  
   t a b . _ l C h i l d . s t y l e . b a c k g r o u n d I m a g e = ' u r l ( ' + t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 4 ] + ' ) ' ;  
   t a b . c h i l d N o d e s [ 0 ] . c h i l d N o d e s [ 0 ] . s r c = t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 3 ] ;  
   t a b . c h i l d N o d e s [ 1 ] . c h i l d N o d e s [ 0 ] . s r c = t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 5 ] ;  
   t a b . s t y l e . h e i g h t = p a r s e I n t ( t a b . s t y l e . h e i g h t ) + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 9 ] + " p x " ;  
   t a b . _ l C h i l d . s t y l e . h e i g h t = p a r s e I n t ( t a b . _ l C h i l d . s t y l e . h e i g h t ) + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 9 ] + " p x " ;  
   t a b . s t y l e [ t h i s . _ a l i g n = = " r i g h t " ? " m a r g i n B o t t o m " : " m a r g i n T o p " ] = " - 3 p x "  
   t a b . s t y l e . w i d t h = t h i s . _ h e i g h t + 3 + " p x " ;  
   i f ( t h i s . _ b M o d e )  
   t a b . _ l C h i l d . s t y l e . w i d t h = t h i s . _ h e i g h t + 3 + " p x " ;  
   b r e a k ;  
 }  
 }  
   e l s e  
   
 {  
   s w i t c h ( t h i s . _ t b s t ) {  
   c a s e   " w i n _ t e x t " :  
   i f ( t h i s . _ l a s t A c t i v e ) {  
   t h i s . _ l a s t A c t i v e . _ l C h i l d . s t y l e . b a c k g r o u n d I m a g e = ' u r l ( ' + t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 1 ] + ' ) ' ;  
   t h i s . _ l a s t A c t i v e . c h i l d N o d e s [ 0 ] . c h i l d N o d e s [ 0 ] . s r c = t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 0 ] ;  
   t h i s . _ l a s t A c t i v e . c h i l d N o d e s [ 1 ] . c h i l d N o d e s [ 0 ] . s r c = t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 2 ] ;  
   t h i s . _ l a s t A c t i v e . s t y l e . w i d t h = p a r s e I n t ( t h i s . _ l a s t A c t i v e . s t y l e . w i d t h ) - t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 9 ] + " p x " ;  
   t h i s . _ l a s t A c t i v e . _ l C h i l d . s t y l e . w i d t h = p a r s e I n t ( t h i s . _ l a s t A c t i v e . _ l C h i l d . s t y l e . w i d t h ) - t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 9 ] + " p x " ;  
   t h i s . _ l a s t A c t i v e . s t y l e [ t h i s . _ a l i g n = = " l e f t " ? " m a r g i n L e f t " : " m a r g i n R i g h t " ] = " 0 p x "  
   t h i s . _ l a s t A c t i v e . s t y l e . h e i g h t = t h i s . _ h e i g h t + 1 + " p x " ;  
   
   i f ( t h i s . _ b M o d e )  
   t h i s . _ l a s t A c t i v e . _ l C h i l d . s t y l e . h e i g h t = t h i s . _ h e i g h t + 1 + " p x " ;  
   
 }  
  
   t a b . _ l C h i l d . s t y l e . b a c k g r o u n d I m a g e = ' u r l ( ' + t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 4 ] + ' ) ' ;  
   t a b . c h i l d N o d e s [ 0 ] . c h i l d N o d e s [ 0 ] . s r c = t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 3 ] ;  
   t a b . c h i l d N o d e s [ 1 ] . c h i l d N o d e s [ 0 ] . s r c = t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 5 ] ;  
   t a b . s t y l e . w i d t h = p a r s e I n t ( t a b . s t y l e . w i d t h ) + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 9 ] + " p x " ;  
   t a b . _ l C h i l d . s t y l e . w i d t h = p a r s e I n t ( t a b . _ l C h i l d . s t y l e . w i d t h ) + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 9 ] + " p x " ;  
   t a b . s t y l e [ t h i s . _ a l i g n = = " l e f t " ? " m a r g i n L e f t " : " m a r g i n R i g h t " ] = " - 3 p x "  
   t a b . s t y l e . h e i g h t = t h i s . _ h e i g h t + 3 + " p x " ;  
   
   i f ( t h i s . _ b M o d e )  
   t a b . _ l C h i l d . s t y l e . h e i g h t = t h i s . _ h e i g h t + 3 + " p x " ;  
   
   b r e a k ;  
 }  
 }  
  
  
  
  
   t h i s . _ s e t C o n t e n t ( t a b ) ;  
  
  
   t h i s . _ l a s t A c t i v e = t a b ;  
   r e t u r n   t r u e ;  
 }  
  
  
  
  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . _ c r e a t e T a b   =   f u n c t i o n ( t e x t , s i z e ) {  
   v a r   t a b = d o c u m e n t . c r e a t e E l e m e n t ( " D I V " ) ;  
   t a b . c l a s s N a m e = ' d h x _ t a b _ e l e m e n t   d h x _ t a b _ e l e m e n t _ i n a c t i v e ' ;  
   v a r   t h m l = " " ;  
  
   s w i t c h ( t h i s . _ t b s t ) {  
   c a s e   ' t e x t ' :  
   t h m l = t e x t ;  
   b r e a k ;  
   c a s e   ' w i n _ t e x t ' :  
   
   i f ( t h i s . _ v M o d e )  
 {  
   t h m l = ' < d i v   s t y l e = " p o s i t i o n : a b s o l u t e ; ' + ( t h i s . _ b M o d e ? " r i g h t " : " l e f t " ) + ' : 0 p x ; t o p : 0 p x ; h e i g h t : ' + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 7 ] + ' p x ; w i d t h : ' + ( t h i s . _ h e i g h t + 3 ) + ' p x ; " > < i m g   s r c = " ' + t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 0 ] + ( ( t h i s . _ b M o d e & & ( _ i s F F | | _ i s O p e r a ) ) ? ' "   s t y l e = " p o s i t i o n : a b s o l u t e ; r i g h t : 1 p x ; " ' : ' " ' ) + ' > < / d i v > ' ;  
   t h m l + = ' < d i v   s t y l e = " p o s i t i o n : a b s o l u t e ; ' + ( t h i s . _ b M o d e ? " r i g h t " : " l e f t " ) + ' : 0 p x ; b o t t o m : 0 p x ; h e i g h t : ' + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 8 ] + ' p x ; w i d t h : ' + ( t h i s . _ h e i g h t + 3 ) + ' p x ; " > < i m g   s r c = " ' + t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 2 ] + ( ( t h i s . _ b M o d e & & ( _ i s F F | | _ i s O p e r a ) ) ? ' "   s t y l e = " p o s i t i o n : a b s o l u t e ; r i g h t : 1 p x ; " ' : ' " ' ) + ' > < / d i v > ' ;  
   t h m l + = ' < d i v   s t y l e = " p o s i t i o n : a b s o l u t e ; b a c k g r o u n d - r e p e a t :   r e p e a t - y ; b a c k g r o u n d - i m a g e : u r l ( ' + t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 1 ] + ' ) ; w i d t h : ' + ( t h i s . _ h e i g h t ) + ' p x ; l e f t : 0 p x ; t o p : ' + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 7 ] + ' p x ; h e i g h t : ' + ( p a r s e I n t ( s i z e | | t h i s . _ t a b S i z e ) - t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 8 ] - t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 7 ] + " p x " ) + ' " > ' + t e x t + ' < / d i v > ' ;  
 }  
   e l s e  
   
 {  
   t h m l = ' < d i v   s t y l e = " p o s i t i o n : a b s o l u t e ; ' + ( t h i s . _ b M o d e ? " b o t t o m " : " t o p " ) + ' : 0 p x ; l e f t : 0 p x ; w i d t h : ' + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 7 ] + ' p x ; h e i g h t : ' + ( t h i s . _ h e i g h t + 3 ) + ' p x ; " > < i m g   s r c = " ' + t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 0 ] + ( ( t h i s . _ b M o d e & & _ i s F F ) ? ' "   s t y l e = " p o s i t i o n : a b s o l u t e ; b o t t o m : 0 p x ; " ' : ' " ' ) + ' > < / d i v > ' ;  
   t h m l + = ' < d i v   s t y l e = " p o s i t i o n : a b s o l u t e ; ' + ( t h i s . _ b M o d e ? " b o t t o m " : " t o p " ) + ' : 0 p x ; r i g h t : 0 p x ; w i d t h : ' + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 8 ] + ' p x ; h e i g h t : ' + ( t h i s . _ h e i g h t + 3 ) + ' p x ; " > < i m g   s r c = " ' + t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 2 ] + ( ( t h i s . _ b M o d e & & _ i s F F ) ? ' "   s t y l e = " p o s i t i o n : a b s o l u t e ; b o t t o m : 0 p x ; l e f t : 0 p x ; " ' : ' " ' ) + ' > < / d i v > ' ;  
   t h m l + = ' < d i v   s t y l e = " p o s i t i o n : a b s o l u t e ; b a c k g r o u n d - r e p e a t :   r e p e a t - x ; b a c k g r o u n d - i m a g e : u r l ( ' + t h i s . _ i m g P a t h + t h i s . _ m o d e + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 1 ] + ' ) ; h e i g h t : ' + ( t h i s . _ h e i g h t + ( t h i s . _ b M o d e ? 1 : 3 ) ) + ' p x ; t o p : 0 p x ; l e f t : ' + t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 7 ] + ' p x ; w i d t h : ' + ( p a r s e I n t ( s i z e | | t h i s . _ t a b S i z e ) - t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 8 ] - t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 7 ] + " p x " ) + ' ; " > < d i v   s t y l e = " p a d d i n g - t o p : 3 p x ; " > ' + t e x t + ' < d i v > < / d i v > ' ;  
 }  
   i f ( ! t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 1 0 ] ) t a b . s t y l e . b a c k g r o u n d C o l o r = ' t r a n s p a r e n t ' ;  
   e l s e   t a b . s t y l e . b a c k g r o u n d C o l o r = t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 1 0 ] ;  
   b r e a k ;  
 }  
   t a b . i n n e r H T M L = t h m l ;  
   t a b . _ l C h i l d = t a b . c h i l d N o d e s [ t a b . c h i l d N o d e s . l e n g t h - 1 ] ;  
  
  
   
   i f ( t h i s . _ v M o d e )  
 {  
   t a b . s t y l e . h e i g h t = p a r s e I n t ( s i z e | | t h i s . _ t a b S i z e ) + " p x " ;  
   t a b . s t y l e . w i d t h = t h i s . _ h e i g h t + 1 + " p x " ;  
 }  
   e l s e  
   
 {  
  
   t a b . s t y l e . w i d t h = p a r s e I n t ( s i z e | | t h i s . _ t a b S i z e ) + " p x " ;  
   t a b . s t y l e . h e i g h t = t h i s . _ h e i g h t + 1 + " p x " ;  
 }  
  
   t a b . _ o f f s e t S i z e = p a r s e I n t ( s i z e | | t h i s . _ t a b S i z e ) ;  
   r e t u r n   t a b ;  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . c l e a r A l l   =   f u n c t i o n ( ) {  
   v a r   z = t h i s . _ c o n Z o n e . s t y l e . b a c k g r o u n d C o l o r ;  
   t h i s . _ c o n t e n t = n e w   A r r a y ( ) ;  
   t h i s . t a b s I d = n e w   A r r a y ( ) ;  
   t h i s . r o w s = n e w   A r r a y ( ) ;  
   t h i s . _ l a s t A c t i v e = n u l l ;  
   t h i s . _ l a s t H o w e r = n u l l ;  
   t h i s . e n t B o x . i n n e r H T M L = " " ;  
  
   t h i s . _ c r e a t e S e l f ( t h i s . _ v M o d e ) ;  
   t h i s . s e t S t y l e ( t h i s . _ c s t y l e ) ;  
   i f ( z ) t h i s . _ c o n Z o n e . s t y l e . b a c k g r o u n d C o l o r = z ;  
  
   t h i s . e n a b l e C o n t e n t Z o n e ( t h i s . _ e c z F ) ;  
 }  
  
  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . s e t I m a g e P a t h   =   f u n c t i o n ( p a t h ) {  
   t h i s . _ i m g P a t h = p a t h ;  
 }  
  
  
  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . l o a d X M L S t r i n g = f u n c t i o n ( x m l S t r i n g , a f t e r C a l l ) {  
   t h i s . X M L L o a d e r = n e w   d t m l X M L L o a d e r O b j e c t ( t h i s . _ p a r s e X M L , t h i s , t r u e , t h i s . n o _ c a s h e ) ;  
   t h i s . w a i t C a l l = a f t e r C a l l | | 0 ;  
   t h i s . X M L L o a d e r . l o a d X M L S t r i n g ( x m l S t r i n g ) ;  
 } ;  
    
   d h t m l X T a b B a r . p r o t o t y p e . l o a d X M L = f u n c t i o n ( f i l e , a f t e r C a l l ) {  
   t h i s . X M L L o a d e r = n e w   d t m l X M L L o a d e r O b j e c t ( t h i s . _ p a r s e X M L , t h i s , t r u e , t h i s . n o _ c a s h e ) ;  
   t h i s . w a i t C a l l = a f t e r C a l l | | 0 ;  
   t h i s . X M L L o a d e r . l o a d X M L ( f i l e ) ;  
 }  
  
  
   d h t m l X T a b B a r . p r o t o t y p e . _ g e t X M L C o n t e n t = f u n c t i o n ( n o d e ) {  
   v a r   t e x t = " " ;  
   f o r ( v a r   i = 0 ; i < n o d e . c h i l d N o d e s . l e n g t h ; i + + )  
 {  
   v a r   z = n o d e . c h i l d N o d e s [ i ] ;  
   t e x t + = ( z . n o d e V a l u e = = = n u l l ? " " : z . n o d e V a l u e ) ;  
 }  
   r e t u r n   t e x t ;  
 }  
    
   d h t m l X T a b B a r . p r o t o t y p e . _ p a r s e X M L = f u n c t i o n ( t h a t , a , b , c , o b j ) {  
   t h a t . c l e a r A l l ( ) ;  
   v a r   s e l e c t e d = " " ;  
   i f ( ! o b j ) o b j = t h a t . X M L L o a d e r ;  
  
   v a r   a t o p = o b j . g e t X M L T o p N o d e ( " t a b b a r " ) ;  
   v a r   a r o w s   =   o b j . d o X P a t h ( " / / r o w " , a t o p ) ;  
   
   t h a t . _ h r f m o d e = a t o p . g e t A t t r i b u t e ( " h r e f m o d e " ) | | t h a t . _ h r f m o d e ;  
   
   
   t h a t . _ m a r g i n   = a t o p . g e t A t t r i b u t e ( " m a r g i n " ) | | t h a t . _ m a r g i n ;  
   t h a t . _ a l i g n   = a t o p . g e t A t t r i b u t e ( " a l i g n " ) | | t h a t . _ a l i g n ;  
   t h a t . _ o f f s e t   = a t o p . g e t A t t r i b u t e ( " o f f s e t " ) | | t h a t . _ o f f s e t ;  
  
   v a r   a c s = a t o p . g e t A t t r i b u t e ( " t a b s t y l e " ) ;  
   i f ( a c s ) t h a t . s e t S t y l e ( a c s ) ;  
  
   a c s = a t o p . g e t A t t r i b u t e ( " s k i n C o l o r s " ) ;  
   i f ( a c s ) t h a t . s e t S k i n C o l o r s ( a c s . s p l i t ( " , " ) [ 0 ] , a c s . s p l i t ( " , " ) [ 1 ] ) ;  
   
   f o r ( v a r   i = 0 ; i < a r o w s . l e n g t h ; i + + ) {  
   v a r   a t a b s   =   o b j . d o X P a t h ( " . / t a b " , a r o w s [ i ] ) ;  
   f o r ( v a r   j = 0 ; j < a t a b s . l e n g t h ; j + + ) {  
   v a r   w i d t h = a t a b s [ j ] . g e t A t t r i b u t e ( " w i d t h " ) ;  
   v a r   n a m e = t h a t . _ g e t X M L C o n t e n t ( a t a b s [ j ] ) ;  
   v a r   i d = a t a b s [ j ] . g e t A t t r i b u t e ( " i d " ) ;  
   t h a t . a d d T a b ( i d , n a m e , w i d t h , " " , i ) ;  
   i f ( a t a b s [ j ] . g e t A t t r i b u t e ( " s e l e c t e d " ) ) s e l e c t e d = i d ;  
  
   
   i f ( t h a t . _ h r f m o d e )  
   t h a t . s e t C o n t e n t H r e f ( i d , a t a b s [ j ] . g e t A t t r i b u t e ( " h r e f " ) ) ;  
   e l s e  
   
   
   f o r ( v a r   k = 0 ; k < a t a b s [ j ] . c h i l d N o d e s . l e n g t h ; k + + )  
   i f ( a t a b s [ j ] . c h i l d N o d e s [ k ] . t a g N a m e = = " c o n t e n t " )  
   t h a t . s e t C o n t e n t H T M L ( i d , t h a t . _ g e t X M L C o n t e n t ( a t a b s [ j ] . c h i l d N o d e s [ k ] ) ) ;  
   
  
  
 }  
 }  
   i f ( s e l e c t e d ) t h a t . s e t T a b A c t i v e ( s e l e c t e d ) ;  
   i f ( t h a t . d h x _ x m l _ e n d ) t h a t . d h x _ x m l _ e n d ( t h a t ) ;  
 }  
  
    
   d h t m l X T a b B a r . p r o t o t y p e . s e t O n L o a d i n g E n d = f u n c t i o n ( f u n c ) {  
   i f ( t y p e o f ( f u n c ) = = " f u n c t i o n " )  
   t h i s . d h x _ x m l _ e n d = f u n c ;  
   e l s e  
   t h i s . d h x _ x m l _ e n d = e v a l ( f u n c ) ;  
 } ;  
  
   
    
   d h t m l X T a b B a r . p r o t o t y p e . f o r c e L o a d = f u n c t i o n ( t a b I d , h r e f ) {  
   v a r   t a b = t h i s . t a b s I d [ t a b I d ] ;  
   i f ( h r e f ) t h i s . _ h r e f s [ t a b I d ] = h r e f ;  
   t h i s . _ c o n t e n t [ t a b . i d d ] . _ l o a d e d = f a l s e ;  
  
   t h i s . _ s e t C o n t e n t ( t a b , t h i s . _ l a s t A c t i v e . i d d ! = t a b I d ) ;  
 }  
  
    
   d h t m l X T a b B a r . p r o t o t y p e . s e t H r e f M o d e = f u n c t i o n ( m o d e ) {  
   t h i s . _ h r f m o d e = m o d e ;  
 }  
    
   d h t m l X T a b B a r . p r o t o t y p e . s e t C o n t e n t H r e f = f u n c t i o n ( i d , h r e f ) {  
   i f ( ! t h i s . _ h r e f s ) t h i s . _ h r e f s = n e w   A r r a y ( ) ;  
   t h i s . _ h r e f s [ i d ] = h r e f ;  
   s w i t c h ( t h i s . _ h r f m o d e ) {  
   c a s e   " i f r a m e " :  
   i f ( ! t h i s . _ g l f r a m e ) {  
   v a r   z = d o c u m e n t . c r e a t e E l e m e n t ( " D I V " ) ;  
   z . s t y l e . w i d t h = ' 1 0 0 % ' ;  
   z . s t y l e . h e i g h t = ' 1 0 0 % ' ;  
   z . i n n e r H T M L = " < i f r a m e   f r a m e b o r d e r = ' 0 '   w i d t h = ' 1 0 0 % '   h e i g h t = ' 1 0 0 % '   s r c = ' " + t h i s . _ i m g P a t h + " b l a n k . h t m l ' > < / i f r a m e > " ;  
   t h i s . _ g l f r a m e = z . c h i l d N o d e s [ 0 ] ;  
   t h i s . _ c o n Z o n e . a p p e n d C h i l d ( t h i s . _ g l f r a m e ) ;  
 }  
   b r e a k ;  
   c a s e   " i f r a m e s " :  
   c a s e   " i f r a m e s - o n - d e m a n d " :  
   v a r   z = d o c u m e n t . c r e a t e E l e m e n t ( " D I V " ) ;  
   z . s t y l e . w i d t h = ' 1 0 0 % ' ;  
   z . s t y l e . h e i g h t = ' 1 0 0 % ' ;  
   z . s t y l e . d i s p l a y = ' n o n e ' ;  
   z . i n n e r H T M L = " < i f r a m e   f r a m e b o r d e r = ' 0 '   w i d t h = ' 1 0 0 % '   h e i g h t = ' 1 0 0 % '   s r c = ' " + t h i s . _ i m g P a t h + " b l a n k . h t m l ' > < / i f r a m e > " ;  
   i f ( t h i s . _ h r f m o d e = = " i f r a m e s " )  
   z . c h i l d N o d e s [ 0 ] . s r c = h r e f ;  
   t h i s . s e t C o n t e n t ( i d , z ) ;  
   b r e a k ;  
   c a s e   " a j a x " :  
   c a s e   " a j a x - h t m l " :  
   v a r   z = d o c u m e n t . c r e a t e E l e m e n t ( " D I V " ) ;  
   z . s t y l e . w i d t h = ' 1 0 0 % ' ;  
   z . s t y l e . h e i g h t = ' 1 0 0 % ' ;  
   t h i s . s e t C o n t e n t ( i d , z ) ;  
   b r e a k ;  
 }  
 }  
  
    
   d h t m l X T a b B a r . p r o t o t y p e . t a b W i n d o w = f u n c t i o n ( t a b _ i d ) {  
   i f ( t h i s . _ h r f m o d e . i n d e x O f ( " i f r a m e " ) = = 0 )  
   r e t u r n ( t h i s . _ c o n t e n t [ t a b _ i d ] ? t h i s . _ c o n t e n t [ t a b _ i d ] . c h i l d N o d e s [ 0 ] . c o n t e n t W i n d o w : n u l l ) ;  
 }  
  
   d h t m l X T a b B a r . p r o t o t y p e . _ a j a x O n L o a d = f u n c t i o n ( o b j , a , b , c , l o a d e r ) {  
   i f ( t h i s . _ h r f m o d e = = " a j a x " ) {  
   v a r   z = l o a d e r . g e t X M L T o p N o d e ( " c o n t e n t " ) ;  
   v a r   v a l = o b j [ 0 ] . _ g e t X M L C o n t e n t ( z ) ;  
 }  
   e l s e   v a r   v a l = l o a d e r . x m l D o c . r e s p o n s e T e x t ;  
  
   o b j [ 0 ] . _ r e s o l v e C o n t e n t ( o b j [ 1 ] , v a l ) ;  
   
   o b j [ 0 ] . a d j u s t S i z e ( ) ;  
   
 }  
   d h t m l X T a b B a r . p r o t o t y p e . _ r e s o l v e C o n t e n t = f u n c t i o n ( i d , v a l ) {  
   v a r   z = v a l . m a t c h ( / < s c r i p t [ ^ > ] * > ( [ ^ < ] + ) < \ / s c r i p t > / g ) ;  
   i f ( t h i s . _ c o n t e n t [ i d ] ) {  
   t h i s . _ c o n t e n t [ i d ] . i n n e r H T M L = v a l ;  
   i f ( z )  
   f o r ( v a r   i = 0 ; i < z . l e n g t h ; i + + )  
   e v a l ( z [ i ] . r e p l a c e ( / < ( [ / ] { 0 , 1 } ) s c r i p t [ ^ > ] * > / g , " " ) ) ;  
 }  
 }  
   
  
  
    
   d h t m l X T a b B a r . p r o t o t y p e . s e t O n S e l e c t H a n d l e r = f u n c t i o n ( f u n c ) {  
   i f ( t y p e o f ( f u n c ) = = " f u n c t i o n " )  
   t h i s . _ o n s e l = f u n c ;  
   e l s e  
   t h i s . _ o n s e l = e v a l ( f u n c ) ;  
 }  
    
   d h t m l X T a b B a r . p r o t o t y p e . s e t C o n t e n t = f u n c t i o n ( i d , n o d e I d ) {  
   i f ( t y p e o f ( n o d e I d ) = = " s t r i n g " )  
   n o d e I d = d o c u m e n t . g e t E l e m e n t B y I d ( n o d e I d ) ;  
  
  
   i f ( t h i s . _ c o n t e n t [ i d ] )  
   t h i s . _ c o n t e n t [ i d ] . p a r e n t N o d e . r e m o v e C h i l d ( t h i s . _ c o n t e n t [ i d ] ) ;  
  
   t h i s . _ c o n t e n t [ i d ] = n o d e I d ;  
   i f ( n o d e I d . p a r e n t N o d e ) n o d e I d . p a r e n t N o d e . r e m o v e C h i l d ( n o d e I d ) ;  
   n o d e I d . s t y l e . p o s i t i o n = " a b s o l u t e " ;  
   i f ( t h i s . _ d s p N ) {  
   n o d e I d . s t y l e . d i s p l a y = " n o n e " ;  
   n o d e I d . s t y l e . v i s i b i l i t y = " v i s i b l e " ;  
 }  
   e l s e {  
   n o d e I d . s t y l e . v i s i b i l i t y = " h i d d e n " ;  
   n o d e I d . s t y l e . d i s p l a y = " b l o c k " ;  
 }  
   n o d e I d . s t y l e . t o p = " 0 p x " ; n o d e I d . s t y l e . t o p = " 0 p x " ;  
   t h i s . _ c o n Z o n e . a p p e n d C h i l d ( n o d e I d ) ;  
  
   i f ( ( t h i s . _ l a s t A c t i v e ) & & ( t h i s . _ l a s t A c t i v e . i d d = = i d ) ) t h i s . _ s e t C o n t e n t ( t h i s . _ l a s t A c t i v e ) ;  
 }  
  
  
    
   d h t m l X T a b B a r . p r o t o t y p e . _ s e t C o n t e n t = f u n c t i o n ( t a b , s t e l t h ) {  
   
   i f ( t h i s . _ h r f m o d e )  
   s w i t c h ( t h i s . _ h r f m o d e ) {  
   c a s e   " i f r a m e " :  
   t h i s . _ g l f r a m e . s r c = t h i s . _ h r e f s [ t a b . i d d ] ;  
   r e t u r n ;  
   b r e a k ;  
   c a s e   " i f r a m e s " :  
   c a s e   " i f r a m e s - o n - d e m a n d " :  
   i f ( ( t h i s . _ h r f m o d e = = " i f r a m e s - o n - d e m a n d " ) & & ( ! t h i s . _ c o n t e n t [ t a b . i d d ] . _ l o a d e d ) )  
 {  
   t h i s . _ c o n t e n t [ t a b . i d d ] . c h i l d N o d e s [ 0 ] . s r c = t h i s . _ h r e f s [ t a b . i d d ] ;  
   t h i s . _ c o n t e n t [ t a b . i d d ] . _ l o a d e d = " t r u e " ;  
 }  
   b r e a k ;  
   c a s e   " a j a x " :  
   c a s e   " a j a x - h t m l " :  
   v a r   z = t h i s . _ c o n t e n t [ t a b . i d d ] ;  
   i f ( ! z . _ l o a d e d ) {  
   z . i n n e r H T M L = " < d i v   c l a s s = ' d h x _ a j a x _ l o a d e r ' > < i m g   s r c = ' " + t h i s . _ i m g P a t h + " l o a d i n g . g i f '   / > & n b s p ; L o a d i n g . . . < / d i v > " ;  
 ( n e w   d t m l X M L L o a d e r O b j e c t ( t h i s . _ a j a x O n L o a d , [ t h i s , t a b . i d d ] , t r u e , t h i s . n o _ c a s h e ) ) . l o a d X M L ( t h i s . _ h r e f s [ t a b . i d d ] ) ;  
   z . _ l o a d e d = t r u e ;  
 }  
   b r e a k ;  
 }  
   
  
   i f ( ! s t e l t h ) {  
   i f ( ( t h i s . _ l a s t A c t i v e ) & & ( t h i s . _ c o n t e n t [ t h i s . _ l a s t A c t i v e . i d d ] ) )  
   i f ( t h i s . _ d s p N )  
   t h i s . _ c o n t e n t [ t h i s . _ l a s t A c t i v e . i d d ] . s t y l e . d i s p l a y = ' n o n e ' ;  
   e l s e  
   t h i s . _ c o n t e n t [ t h i s . _ l a s t A c t i v e . i d d ] . s t y l e . v i s i b i l i t y = ' h i d d e n ' ;  
  
   i f ( t h i s . _ c o n t e n t [ t a b . i d d ] )  
   i f ( t h i s . _ d s p N )  
   t h i s . _ c o n t e n t [ t a b . i d d ] . s t y l e . d i s p l a y = ' b l o c k ' ;  
   e l s e  
   t h i s . _ c o n t e n t [ t a b . i d d ] . s t y l e . v i s i b i l i t y = ' ' ;  
 }  
   
   t h i s . a d j u s t S i z e ( ) ;  
   
 }  
    
   d h t m l X T a b B a r . p r o t o t y p e . s e t C o n t e n t H T M L = f u n c t i o n ( i d , h t m l ) {  
   v a r   z = d o c u m e n t . c r e a t e E l e m e n t ( " D I V " ) ;  
   z . s t y l e . w i d t h = " 1 0 0 % " ;  
   z . s t y l e . h e i g h t = " 1 0 0 % " ;  
   z . s t y l e . o v e r f l o w = " a u t o " ;  
   z . i n n e r H T M L = h t m l ;  
   t h i s . s e t C o n t e n t ( i d , z ) ;  
 }  
  
    
   d h t m l X T a b B a r . p r o t o t y p e . s e t S t y l e = f u n c t i o n ( n a m e ) {  
   i f ( t h i s . _ s t y l e s [ n a m e ] ) {  
   t h i s . _ c s t y l e = n a m e ;  
   i f ( t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 1 2 ] )  
   t h i s . _ c o n Z o n e . s t y l e . b a c k g r o u n d C o l o r = t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 1 2 ] ;  
 }  
 }  
  
  
    
   d h t m l X T a b B a r . p r o t o t y p e . e n a b l e C o n t e n t Z o n e = f u n c t i o n ( m o d e ) {  
   t h i s . _ e c z F = c o n v e r t S t r i n g T o B o o l e a n ( m o d e ) ;  
   t h i s . _ c o n Z o n e . s t y l e . d i s p l a y = t h i s . _ e c z F ? " " : ' n o n e ' ;  
 }  
  
    
   d h t m l X T a b B a r . p r o t o t y p e . e n a b l e F o r c e H i d i n g = f u n c t i o n ( m o d e ) {  
   t h i s . _ d s p N = c o n v e r t S t r i n g T o B o o l e a n ( m o d e ) ;  
 }  
  
    
   d h t m l X T a b B a r . p r o t o t y p e . s e t S k i n C o l o r s = f u n c t i o n ( a _ t a b , p _ t a b , c _ z o n e ) {  
   t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 1 0 ] = p _ t a b ;  
   t h i s . _ s t y l e s [ t h i s . _ c s t y l e ] [ 1 1 ] = a _ t a b ;  
   t h i s . _ c o n Z o n e . s t y l e . b a c k g r o u n d C o l o r = c _ z o n e | | a _ t a b ;  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . g e t A c t i v e T a b = f u n c t i o n ( ) {  
   i f ( t h i s . _ l a s t A c t i v e ) r e t u r n   t h i s . _ l a s t A c t i v e . i d d ;  
   r e t u r n   n u l l ;  
 }  
    
 d h t m l X T a b B a r . p r o t o t y p e . g o T o N e x t T a b = f u n c t i o n ( t a b ) {  
   v a r   z = t a b | | t h i s . _ l a s t A c t i v e ;  
   i f ( z ) {  
   i f ( z . n e x t S i b l i n g . i d d ) {  
   i f ( ! t h i s . _ s e t T a b A c t i v e ( z . n e x t S i b l i n g ) )  
   r e t u r n   t h i s . g o T o N e x t T a b ( z . n e x t S i b l i n g ) ;  
   r e t u r n   z . n e x t S i b l i n g . i d d ;  
 }  
   e l s e  
   i f ( z . p a r e n t N o d e . n e x t S i b l i n g ) {  
   v a r   a r o w = z . p a r e n t N o d e . n e x t S i b l i n g . c h i l d N o d e s [ 0 ] ;  
   i f ( ! t h i s . _ s e t T a b A c t i v e ( a r o w ) )  
   r e t u r n   t h i s . g o T o N e x t T a b ( a r o w ) ;  
   r e t u r n   a r o w . i d d ;  
 }  
 }  
   r e t u r n   n u l l ;  
 }  
    
 d h t m l X T a b B a r . p r o t o t y p e . g o T o P r e v T a b = f u n c t i o n ( t a b ) {  
   v a r   z = t a b | | t h i s . _ l a s t A c t i v e ;  
   i f ( z ) {  
   i f ( z . p r e v i o u s S i b l i n g ) {  
   i f ( ! t h i s . _ s e t T a b A c t i v e ( z . p r e v i o u s S i b l i n g ) )  
   r e t u r n   t h i s . g o T o P r e v T a b ( z . p r e v i o u s S i b l i n g ) ;  
   r e t u r n   t h i s . _ l a s t A c t i v e . i d d ;  
 }  
   e l s e  
   i f ( z . p a r e n t N o d e . p r e v i o u s S i b l i n g ) {  
   v a r   a r o w = z . p a r e n t N o d e . p r e v i o u s S i b l i n g . c h i l d N o d e s [ a r o w . t a b C o u n t - 1 ] ;  
   i f ( ! t h i s . _ s e t T a b A c t i v e ( a r o w ) )  
   r e t u r n   t h i s . g o T o P r e v T a b ( a r o w ) ;  
   r e t u r n   a r o w . i d d ;  
 }  
 }  
   r e t u r n   n u l l ;  
 }  
  
   
    
 d h t m l X T a b B a r . p r o t o t y p e . e n a b l e A u t o S i z e = f u n c t i o n ( a u t o W i d t h , a u t o H e i g h t ) {  
   t h i s . _ a h d j = c o n v e r t S t r i n g T o B o o l e a n ( a u t o H e i g h t ) ;  
   t h i s . _ a w d j = c o n v e r t S t r i n g T o B o o l e a n ( a u t o W i d t h ) ;  
 }  
  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . e n a b l e A u t o R e S i z e = f u n c t i o n ( m o d e ) {  
   i f ( c o n v e r t S t r i n g T o B o o l e a n ( m o d e ) ) {  
   v a r   s e l f = t h i s ;  
   i f ( t h i s . e n t B o x . a d d E v e n t L i s t e n e r ) {  
   i f ( ( _ i s F F ) & & ( _ F F r v < 1 . 8 ) )  
   w i n d o w . a d d E v e n t L i s t e n e r ( " r e s i z e " , f u n c t i o n ( ) {  
   w i n d o w . s e t T i m e o u t ( f u n c t i o n ( ) { s e l f . a d j u s t O u t e r S i z e ( ) ; } , 1 0 ) ;  
 } , f a l s e ) ;  
   e l s e  
   w i n d o w . a d d E v e n t L i s t e n e r ( " r e s i z e " , f u n c t i o n ( ) { i f ( s e l f . a d j u s t O u t e r S i z e ) s e l f . a d j u s t O u t e r S i z e ( ) ; } , f a l s e ) ;  
 }  
   e l s e   i f ( w i n d o w . a t t a c h E v e n t )  
   w i n d o w . a t t a c h E v e n t ( " o n r e s i z e " , f u n c t i o n ( ) {  
   i f ( s e l f . _ r e s i z e _ t i m e r ) w i n d o w . c l e a r T i m e o u t ( s e l f . _ r e s i z e _ t i m e r ) ;  
   i f ( s e l f . a d j u s t O u t e r S i z e )  
   s e l f . _ r e s i z e _ t i m e r = w i n d o w . s e t T i m e o u t ( f u n c t i o n ( ) { s e l f . a d j u s t O u t e r S i z e ( ) ; } , 5 0 0 ) ;  
 } ) ;  
  
 }  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . s e t S i z e = f u n c t i o n ( w i d t h , h e i g h t , c o n t e n t Z o n e ) {  
   h e i g h t = p a r s e I n t ( h e i g h t ) ;  
   w i d t h = p a r s e I n t ( w i d t h ) ;  
   i f ( c o n t e n t Z o n e ) {  
   
   i f ( ! t h i s . _ v M o d e )  
   h e i g h t + = 2 0 ;  
   e l s e  
   
   w i d t h + = 2 0 ;  
 }  
  
   t h i s . h e i g h t = h e i g h t + " p x " ;  
   t h i s . w i d t h = w i d t h + " p x " ;  
  
   t h i s . _ l i n e A . s t y l e [ t h i s . _ v M o d e ? " l e f t " : " t o p " ] = ( t h i s . _ b M o d e ? 0 : ( t h i s . _ h e i g h t + 2 ) ) + " p x " ;  
   t h i s . _ l i n e A . s t y l e [ t h i s . _ v M o d e ? " h e i g h t " : " w i d t h " ] = t h i s [ t h i s . _ v M o d e ? " h e i g h t " : " w i d t h " ] ;  
  
   
   i f ( t h i s . _ v M o d e ) {  
   f o r ( v a r   i = 0 ; i < t h i s . r o w s . l e n g t h ; i + + )  
   t h i s . r o w s [ i ] . s t y l e . h e i g h t = p a r s e I n t ( t h i s . h e i g h t ) + " p x " ;  
  
   t h i s . _ c o n Z o n e . s t y l e . h e i g h t = h e i g h t ;  
 }  
   e l s e  
   
 {  
   t h i s . _ c o n Z o n e . s t y l e . w i d t h = p a r s e I n t ( t h i s . w i d t h ) - ( _ i s F F ? 2 : 0 ) + " p x " ;  
   f o r ( v a r   i = 0 ; i < t h i s . r o w s . l e n g t h ; i + + )  
   t h i s . r o w s [ i ] . s t y l e . w i d t h = p a r s e I n t ( t h i s . w i d t h ) + " p x " ;  
 }  
   f o r ( v a r   i = 0 ; i < t h i s . r o w s . l e n g t h ; i + + )  
   t h i s . _ r e d r a w R o w ( t h i s . r o w s [ i ] ) ;  
   t h i s . _ s e t S i z e s ( ) ;  
  
 }  
  
 d h t m l X T a b B a r . p r o t o t y p e . a d j u s t O u t e r S i z e = f u n c t i o n ( ) {  
   t h i s . s e t S i z e ( t h i s . e n t B o x . o f f s e t W i d t h , t h i s . e n t B o x . o f f s e t H e i g h t , f a l s e ) ;  
 }  
  
 d h t m l X T a b B a r . p r o t o t y p e . a d j u s t S i z e = f u n c t i o n ( ) {  
   v a r   f l a g = f a l s e ; v a r   x = t h i s . _ c o n Z o n e . o f f s e t W i d t h ; v a r   y = t h i s . _ c o n Z o n e . o f f s e t H e i g h t ;  
   i f ( ( t h i s . _ a h d j ) & & ( t h i s . _ c o n Z o n e . s c r o l l H e i g h t > t h i s . _ c o n Z o n e . o f f s e t H e i g h t ) ) {  
   y = t h i s . _ c o n Z o n e . s c r o l l H e i g h t ;  
   f l a g = t r u e ;  
 }  
  
   i f ( ( t h i s . _ a w d j ) & & ( t h i s . _ c o n Z o n e . s c r o l l W i d t h > t h i s . _ c o n Z o n e . o f f s e t W i d t h ) ) {  
   x = t h i s . _ c o n Z o n e . s c r o l l W i d t h ;  
   f l a g = t r u e ;  
 }  
   i f ( f l a g ) t h i s . s e t S i z e ( x , y , t r u e ) ;  
 }  
   
  
    
 d h t m l X T a b B a r . p r o t o t y p e . p r e v e n t I E C a s h i n g = f u n c t i o n ( m o d e ) {  
   t h i s . n o _ c a s h e   =   c o n v e r t S t r i n g T o B o o l e a n ( m o d e ) ;  
   i f ( t h i s . X M L L o a d e r ) t h i s . X M L L o a d e r . r S e e d = t h i s . n o _ c a s h e ;  
 }  
  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . h i d e T a b   =   f u n c t i o n ( t a b , m o d e ) {  
   v a r   t a b = t h i s . t a b s I d [ t a b ] ;  
   i f ( ! t a b ) r e t u r n ;  
   t h i s . _ g o T o A n y ( t a b , m o d e ) ;  
   t a b . s t y l e . d i s p l a y = ' n o n e ' ;  
   v a r   r o w = t a b . p a r e n t N o d e ;  
   t h i s . _ r e d r a w R o w ( r o w ) ;  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . s h o w T a b   =   f u n c t i o n ( t a b ) {  
   v a r   t a b = t h i s . t a b s I d [ t a b ] ;  
   i f ( ! t a b ) r e t u r n ;  
   t a b . s t y l e . d i s p l a y = ' b l o c k ' ;  
   v a r   r o w = t a b . p a r e n t N o d e ;  
   t h i s . _ r e d r a w R o w ( r o w )  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . e n a b l e T a b   =   f u n c t i o n ( t a b ) {  
   v a r   t a b = t h i s . t a b s I d [ t a b ] ;  
   i f ( ! t a b ) r e t u r n ;  
   t a b . _ d i s a b l e d = f a l s e ;  
   t a b . c l a s s N a m e = ( t a b . c l a s s N a m e | | " " ) . r e p l a c e ( / d h x _ t a b _ e l e m e n t _ d i s a b l e d / g , " " ) ;  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . d i s a b l e T a b   =   f u n c t i o n ( t a b , m o d e ) {  
   v a r   t a b = t h i s . t a b s I d [ t a b ] ;  
   i f ( ! t a b ) r e t u r n ;  
   t h i s . _ g o T o A n y ( t a b , m o d e ) ;  
   t a b . _ d i s a b l e d = t r u e ;  
   t a b . c l a s s N a m e + = "   d h x _ t a b _ e l e m e n t _ d i s a b l e d " ;  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . s e t L a b e l   =   f u n c t i o n ( t a b , v a l u e ) {  
   v a r   t a b = t h i s . t a b s I d [ t a b ] ;  
   i f ( ! t a b ) r e t u r n ;  
   s w i t c h ( t h i s . _ t b s t ) {  
   c a s e   ' t e x t ' :  
   t a b . i n n e r H T M L = v a l u e ;  
   b r e a k ;  
   c a s e   ' w i n _ t e x t ' :  
   t a b . c h i l d N o d e s [ 2 ] . c h i l d N o d e s [ 0 ] . i n n e r H T M L = v a l u e ;  
   b r e a k ;  
 }  
 }  
  
    
 d h t m l X T a b B a r . p r o t o t y p e . g e t L a b e l   =   f u n c t i o n ( t a b ) {  
   v a r   t a b = t h i s . t a b s I d [ t a b ] ;  
   i f ( ! t a b ) r e t u r n ;  
   s w i t c h ( t h i s . _ t b s t ) {  
   c a s e   ' t e x t ' :  
   r e t u r n   t a b . i n n e r H T M L ;  
   b r e a k ;  
   c a s e   ' w i n _ t e x t ' :  
   r e t u r n   t a b . c h i l d N o d e s [ 2 ] . c h i l d N o d e s [ 0 ] . i n n e r H T M L ;  
   b r e a k ;  
 }  
 }  
  
 d h t m l X T a b B a r . p r o t o t y p e . d e t a c h T a b = f u n c t i o n ( i d ) {  
   v a r   W i n d o w N a m e   =   t h i s . g e t L a b e l ( i d ) ;  
   v a r   t a b = t h i s . t a b s I d [ i d ] ;  
   i f ( ! t a b ) r e t u r n ;  
   v a r   n o d e   =   t h i s . _ c o n t e n t [ t a b . i d d ] ;  
   t a b   =   t h i s . _ g e t T a b B y I d ( i d ) ;  
   v a r   t a b _ w   =   p a r s e I n t ( t a b . s t y l e . w i d t h ) ;  
   t h i s . r e m o v e T a b ( i d , t r u e ) ;  
   n o d e . s t y l e . p o s i t i o n   =   ' ' ;  
   v a r   w i d t h   =   p a r s e I n t ( t h i s . _ c o n Z o n e . s t y l e . w i d t h ) + 5 ;  
   v a r   h e i g h t   =   p a r s e I n t ( t h i s . _ c o n Z o n e . s t y l e . h e i g h t ) + 2 5 ;  
   v a r   m i n _ w i d t h   =   1 0 0 ;  
   v a r   m i n _ h e i g h t   =   5 0 ;  
   w i d t h   =   w i d t h < m i n _ w i d t h ? m i n _ w i d t h : w i d t h ;  
   h e i g h t   =   h e i g h t < m i n _ h e i g h t ? m i n _ h e i g h t : h e i g h t ;  
  
   v a r   t o p   =   M a t h . c e i l ( w i n d o w . o f f s e t H e i g h t / 2 0 - h e i g h t / 2 0 ) ;  
   v a r   l e f t   =   M a t h . c e i l ( w i n d o w . o f f s e t W i d t h / 2 0 - w i d t h / 2 0 ) ;  
  
   v a r   w i n   =   n e w   d h t m l x W i n d o w ( 4 2 0 , 3 0 0 , w i d t h , h e i g h t , W i n d o w N a m e , f a l s e ) ;  
   w i n . _ t a b _ w   =   t a b _ w ;  
   w i n . a t t a c h C o n t e n t ( n o d e ) ;  
   r e t u r n   w i n ;  
 }  
  
  
 
