ÿþ/ * *  
   *   T a b   A j a x  
   *    
   *   @ a u t h o r           b a n h t h i d i e m   < b a n h t h i d i e m @ g m a i l . c o m >  
   *   @ c o p y r i g h t     2 0 0 7   B a c h   K h o a   C o m p u t e r   I n c .  
   *   @ v e r s i o n         $ I d :   T a b A j a x . j s ,   v 2 . 0   2 0 0 7 / 1 0 / 3  
   * /  
  
 v a r   E v e n t N a m e T a b   =   {  
 	 a d d T a b :   " a d d T a b " ,  
 	 r e m o v e T a b :   " r e m o v e T a b " ,  
 	 c h a n g e T a b :   " c h a n g e T a b "  
 } ;  
  
 f u n c t i o n   S l i d e L i s t I m a g e ( i d S l i d e ,   w C o n t a i n e r )   {  
 	 i f   ( i d S l i d e   = =   n u l l )   r e t u r n ;  
 	 t h i s . e l S l i d e   =   i d S l i d e ;  
 	 t h i s . w i d t h   =   w C o n t a i n e r ;  
 	 t h i s . s t a r t P o i n t   =   0 ;  
 	 t h i s . i s R u n   =   f a l s e ;  
 	 t h i s . i s N e x t   =   t r u e ;  
 	 t h i s . i s B T D   =   t r u e ;  
 	 t h i s . c o u n t S i n   =   0 . 0 ;  
  
 }  
 S l i d e L i s t I m a g e . p r o t o t y p e   =   {  
  
 	 c a l l E f f e c t :   f u n c t i o n ( )   {  
 	 	 v a r   m e   =   t h i s ;  
 	 	 s e t T i m e o u t ( f u n c t i o n ( )   {   m e . e f f e c t ( ) ;   } ,   1 0 ) ;  
 	 } ,  
  
 	 e f f e c t :   f u n c t i o n ( )   {  
 	 	 v a r   m a x   =   M a t h . P I   /   2 ;  
 	 	 i f   ( t h i s . c o u n t S i n   >   m a x )   {  
 	 	 	 t h i s . c o u n t S i n   =   0 . 0 ;  
 	 	 	 t h i s . i s R u n   =   f a l s e ;  
 	 	 	 i f   ( t h i s . i s N e x t )   {  
 	 	 	 	 t h i s . s t a r t P o i n t   - =   t h i s . w i d t h ;  
 	 	 	 }  
 	 	 	 e l s e   {  
 	 	 	 	 t h i s . s t a r t P o i n t   + =   t h i s . w i d t h ;  
 	 	 	 }  
 	 	 	 t h i s . e l S l i d e . s t y l e . l e f t   =   t h i s . s t a r t P o i n t   +   " p x " ;  
 	 	 	 r e t u r n ;  
 	 	 }  
 	 	 t h i s . c o u n t S i n   + =   0 . 0 3 ;  
 	 	 v a r   l e f t   =   M a t h . s i n ( t h i s . c o u n t S i n )   *   t h i s . w i d t h ;  
 	 	 l e f t   =   t h i s . i s N e x t   ?   t h i s . s t a r t P o i n t   -   l e f t   :   t h i s . s t a r t P o i n t   +   l e f t ;  
 	 	 t h i s . e l S l i d e . s t y l e . l e f t   =   l e f t   +   " p x " ;  
 	 	 t h i s . c a l l E f f e c t ( ) ;  
 	 } ,  
  
 	 p r e v i e w :   f u n c t i o n ( )   {  
 	 	 i f   ( t h i s . s t a r t P o i n t   > =   0   | |   t h i s . i s R u n )   r e t u r n ;  
 	 	 t h i s . i s N e x t   =   f a l s e ;  
 	 	 t h i s . i s R u n   =   t r u e ;  
 	 	 t h i s . c a l l E f f e c t ( ) ;  
 	 } ,  
  
 	 n e x t :   f u n c t i o n ( )   {  
 	 	 v a r   w   =   u t i l O b j . g e t E l e m e n t S i z e ( t h i s . e l S l i d e ) . w i d t h ;  
 	 	 i f   ( t h i s . w i d t h   > =   w   | |   ( w   +   t h i s . s t a r t P o i n t   < =   t h i s . w i d t h )  
 	 	 	 | |   t h i s . i s R u n )   r e t u r n ;  
 	 	 t h i s . i s N e x t   =   t r u e ;  
 	 	 t h i s . i s R u n   =   t r u e ;  
 	 	 t h i s . c a l l E f f e c t ( ) ;  
 	 } ,  
  
 	 a u t o :   f u n c t i o n ( )   {  
 	 	 v a r   w   =   u t i l O b j . g e t E l e m e n t S i z e ( t h i s . e l S l i d e ) . w i d t h ;  
 	 	 i f   ( w   <   - t h i s . s t a r t P o i n t )   {  
 	 	 	 t h i s . p r e v i e w ( ) ;  
 	 	 }  
 	 	 e l s e   {  
 	 	 	 t h i s . n e x t ( ) ;  
 	 	 }  
 	 } ,  
  
 	 c r e a t e E l S l i d e :   f u n c t i o n ( )   {  
 	 	 i f   ( t y p e o f   ( t h i s . e l S l i d e )   = =   " s t r i n g " )   {  
 	 	 	 t h i s . e l S l i d e   =   d o c u m e n t . g e t E l e m e n t B y I d ( t h i s . e l S l i d e ) ;  
 	 	 }  
 	 } ,  
  
 	 i n i t :   f u n c t i o n ( )   {  
 	 	 t h i s . c r e a t e E l S l i d e ( ) ;  
 	 	 t h i s . e l S l i d e . s t y l e . p o s i t i o n   =   " a b s o l u t e " ;  
 	 }  
 } ;  
  
 / *  
   *   C o n s t r u c t o r  
   * /  
 f u n c t i o n   T a b B T D ( e l C o n t a i n e r ,   c o n f i g D a t a ,   s t y l e )   {  
 	 i f   ( e l C o n t a i n e r   = =   n u l l )   r e t u r n ;  
 	 t h i s . s t y l e   =   s t y l e   ! =   n u l l   ?   s t y l e   :   " " ;  
 	 t h i s . e l C o n t a i n e r   =   e l C o n t a i n e r ;  
 	 t h i s . e l C o n t a i n e r C o n t e n t   =   n u l l ;  
 	 t h i s . e l C o n t a i n e r B t n   =   n u l l ;  
 	 t h i s . i t e m A c t i v e   =   n u l l ;  
 	 t h i s . c o n f i g D a t a   =   c o n f i g D a t a ;  
 	 t h i s . l i s t E v e n t   =   n e w   A r r a y ( ) ;  
 	 t h i s . o S l i d e   =   n u l l ;  
 	  
 	 / /   C r e a t e   L o a d e r  
 	 t h i s . e l L o a d e r   =   u t i l O b j . c r e a t e E l ( " D I V " ) ;  
 	 t h i s . e l L o a d e r . i n n e r H T M L   =   " L o a d i n g . . . " ;  
 } ;  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 	 	 	 	 	 	 	 	 E v e n t   S t a r t  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 T a b B T D . p r o t o t y p e . e x e c u t e E v e n t   =   f u n c t i o n ( e ,   e v e n t N a m e )  
 {  
 	 i f   ( t h i s . l i s t E v e n t [ e v e n t N a m e ]   ! =   n u l l )  
 	 {  
 	 	 f o r   ( v a r   i   =   0 ;   i   <   t h i s . l i s t E v e n t [ e v e n t N a m e ] . l e n g t h ;   i + + )  
 	 	 {  
 	 	 	 t h i s . l i s t E v e n t [ e v e n t N a m e ] [ i ] ( e ) ;  
 	 	 }  
 	 }  
 } ;  
  
 T a b B T D . p r o t o t y p e . a d d E v e n t   =   f u n c t i o n ( e v e n t N a m e ,   f u n c )  
 {  
 	 i f ( t h i s . l i s t E v e n t [ e v e n t N a m e ]   = =   n u l l )  
 	 {  
 	 	 t h i s . l i s t E v e n t [ e v e n t N a m e ]   =   [ ] ;  
 	 }  
 	 t h i s . l i s t E v e n t [ e v e n t N a m e ] . p u s h ( f u n c ) ;  
 } ;  
  
 T a b B T D . p r o t o t y p e . r e m o v e E v e n t   =   f u n c t i o n ( e v e n t N a m e ,   f u n c )  
 {  
 	 i f ( t h i s . l i s t E v e n t [ e v e n t N a m e ]   = =   n u l l )  
 	 {  
 	 	 r e t u r n ;  
 	 }  
 	 f o r   ( v a r   i   =   0 ;   i   <   t h i s . l i s t E v e n t [ e v e n t N a m e ] . l e n g t h ;   i + + )  
 	 {  
 	 	 i f   ( f u n c   = =   t h i s . l i s t E v e n t [ e v e n t N a m e ] [ i ] )  
 	 	 {  
 	 	 	 t h i s . l i s t E v e n t [ e v e n t N a m e ] . s p l i c e ( i ,   1 ) ;  
 	 	 	 b r e a k ;  
 	 	 }  
 	 }  
 } ;  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 	 	 	 	 	 	 	 	 E v e n t   E n d  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 / *  
 *   C r e a t e   h e a d e r  
 * /  
 T a b B T D . p r o t o t y p e . c r e a t e O n e C o n t a i n e r   =   f u n c t i o n ( e l C o n t a i n e r ,   c s s ,   e v e n t C l i c k ,   e v e n t M o u s e O v e r ,   e v e n t M o u s e O u t )   {  
 	 v a r   e l S u b C o n t a i n e r   =   u t i l O b j . c r e a t e E l ( " D I V " ) ;  
 	 e l S u b C o n t a i n e r . c l a s s N a m e   =   c s s ;  
 	 i f   ( e v e n t C l i c k   ! =   n u l l )   {  
 	 	 u t i l O b j . a d d E v e n t ( e l S u b C o n t a i n e r ,   " c l i c k " ,   e v e n t C l i c k ) ;  
 	 }  
 	 i f   ( e v e n t M o u s e O v e r   ! =   n u l l )   {  
 	 	 u t i l O b j . a d d E v e n t ( e l S u b C o n t a i n e r ,   " m o u s e o v e r " ,   e v e n t M o u s e O v e r ) ;  
 	 }  
 	 i f   ( e v e n t M o u s e O u t   ! =   n u l l )   {  
 	 	 u t i l O b j . a d d E v e n t ( e l S u b C o n t a i n e r ,   " m o u s e o u t " ,   e v e n t M o u s e O u t ) ;  
 	 }  
  
 	 e l C o n t a i n e r . a p p e n d C h i l d ( e l S u b C o n t a i n e r ) ;  
  
 	 v a r   e l L e f t   =   u t i l O b j . c r e a t e E l ( " D I V " ) ;  
 	 e l L e f t . c l a s s N a m e   =   " L " ;  
 	 e l S u b C o n t a i n e r . a p p e n d C h i l d ( e l L e f t ) ;  
  
 	 v a r   e l R i g h t   =   u t i l O b j . c r e a t e E l ( " D I V " ) ;  
 	 e l R i g h t . c l a s s N a m e   =   " R " ;  
 	 e l L e f t . a p p e n d C h i l d ( e l R i g h t ) ;  
  
 	 v a r   e l C e n t e r   =   u t i l O b j . c r e a t e E l ( " D I V " ) ;  
 	 e l C e n t e r . c l a s s N a m e   =   " C " ;  
 	 e l R i g h t . a p p e n d C h i l d ( e l C e n t e r ) ;  
 	 e l S u b C o n t a i n e r . e l C e n t e r   =   e l C e n t e r ;  
 	  
 	 r e t u r n   e l S u b C o n t a i n e r ;  
 } ;  
  
 T a b B T D . p r o t o t y p e . g e t P o s i t i o n V i e w   =   f u n c t i o n ( )   {  
 	 r e t u r n   u t i l O b j . g e t E l e m e n t P o s i t i o n V i e w ( t h i s . e l C o n t a i n e r T a b ) ;  
 } ;  
  
 T a b B T D . p r o t o t y p e . g e t S i z e   =   f u n c t i o n ( )   {  
 	 r e t u r n   u t i l O b j . g e t E l e m e n t S i z e ( t h i s . e l C o n t a i n e r T a b ) ;  
 } ;  
  
 / *  
 *   C r e a t e   c o n t a i n e r  
 * /  
 T a b B T D . p r o t o t y p e . c r e a t e C o n t a i n e r   =   f u n c t i o n ( )   {  
 	 i f   ( t y p e o f   ( t h i s . e l C o n t a i n e r )   = =   " s t r i n g " )   {  
 	 	 t h i s . e l C o n t a i n e r   =   u t i l O b j . g e t E l B y I d ( t h i s . e l C o n t a i n e r ) ;  
 	 }  
 	 v a r   e l C o n t a i n e r T a b   =   u t i l O b j . c r e a t e E l ( " D I V " ) ;  
 	 e l C o n t a i n e r T a b . c l a s s N a m e   =   " t a b B T D "   +   t h i s . s t y l e ;  
 	 t h i s . e l C o n t a i n e r . a p p e n d C h i l d ( e l C o n t a i n e r T a b ) ;  
 	 t h i s . e l C o n t a i n e r T a b   =   e l C o n t a i n e r T a b ;  
 } ;  
  
 / *  
 *   S e t   i t e m   a c t i v e  
 * /  
 T a b B T D . p r o t o t y p e . c h a n g e S t y l e   =   f u n c t i o n ( n e w C s s )   {  
 	 t h i s . e l C o n t a i n e r T a b . c l a s s N a m e   =   " t a b B T D "   +   n e w C s s ;  
 } ;  
  
 / *  
 *   S e t   i t e m   a c t i v e  
 * /  
 T a b B T D . p r o t o t y p e . g e t C s s I t e m   =   f u n c t i o n ( i t e m )   {  
 	 r e t u r n   i t e m . i s A c t i v e   ?   " b t n   a c t i v e "   :   " b t n " ;  
 } ;  
  
 / *  
 *   S e t   i t e m   a c t i v e  
 * /  
 T a b B T D . p r o t o t y p e . s e t A c t i v e I t e m   =   f u n c t i o n ( i t e m )   {  
 	 i f   ( t h i s . i t e m A c t i v e   ! =   n u l l )   {  
 	 	 t h i s . i t e m A c t i v e . i s A c t i v e   =   f a l s e ;  
 	 	 t h i s . i t e m A c t i v e . e l B t n . c l a s s N a m e   =   t h i s . g e t C s s I t e m ( t h i s . i t e m A c t i v e ) ;  
 	 	 t h i s . i t e m A c t i v e . e l C o n t e n t . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 }  
 	 t h i s . i t e m A c t i v e   =   i t e m ;  
 	 t h i s . i t e m A c t i v e . i s A c t i v e   =   t r u e ;  
 } ;  
  
 / *  
 *   C r e a t e   c o n t e n t   o f   t a b  
 * /  
 T a b B T D . p r o t o t y p e . c r e a t e C o n t e n t I t e m   =   f u n c t i o n ( i t e m )   {  
 	 i f   ( i t e m . e l C o n t e n t   = =   n u l l )   {  
 	 	 i t e m . e l C o n t e n t   =   u t i l O b j . c r e a t e E l ( " D I V " ) ;  
 	 	 t h i s . e l C o n t a i n e r C o n t e n t . a p p e n d C h i l d ( i t e m . e l C o n t e n t ) ;  
 	 	 i f   ( i t e m [ t h i s . c o n f i g D a t a . m a p F i e l d . i s E l e m e n t C o n t e n t ] )   {  
 	 	 	 v a r   e l   =   i t e m [ t h i s . c o n f i g D a t a . m a p F i e l d . c o n t e n t ] ;  
 	 	 	 i f   ( t y p e o f   e l   = =   " s t r i n g " )   {  
 	 	 	 	 e l   =   d o c u m e n t . g e t E l e m e n t B y I d ( e l ) ;  
 	 	 	 }  
 	 	 	 e l . s t y l e . d i s p l a y   =   " " ;  
 	 	 	 i t e m . e l C o n t e n t . a p p e n d C h i l d ( e l ) ;  
 	 	 }  
 	 	 e l s e   {  
 	 	 	 i t e m . e l C o n t e n t . i n n e r H T M L   =   i t e m [ t h i s . c o n f i g D a t a . m a p F i e l d . c o n t e n t ] ;  
 	 	 }  
 	 }  
 	 i t e m . e l C o n t e n t . s t y l e . d i s p l a y   =   " t a b l e - c e l l " ;  
 } ;  
  
 / *  
 *   L o a d   c o n t e n t   o f   t a b  
 * /  
 T a b B T D . p r o t o t y p e . l o a d C o n t e n t I t e m   =   f u n c t i o n ( i t e m )   {  
 	 i f   ( i t e m   = =   t h i s . i t e m A c t i v e )   r e t u r n ;  
 	 t h i s . s e t A c t i v e I t e m ( i t e m ) ;  
 	 i t e m . e l B t n . c l a s s N a m e   =   t h i s . g e t C s s I t e m ( i t e m ) ;  
 	 t h i s . c r e a t e C o n t e n t I t e m ( i t e m ) ;  
 	 i t e m . e l C o n t e n t . s t y l e . d i s p l a y   =   " t a b l e - c e l l " ;  
 	 v a r   e v   =   n e w   O b j e c t ( ) ;  
 	 e v . i t e m   =   i t e m ;  
 	 t h i s . e x e c u t e E v e n t ( e v ,   E v e n t N a m e T a b . c h a n g e T a b ) ;  
 } ;  
  
 / *  
 *   A d d   T a b  
 * /  
 T a b B T D . p r o t o t y p e . a d d T a b   =   f u n c t i o n ( i t e m )   {  
 	 v a r   m e   =   t h i s ;  
 	 i t e m . e l B t n   =   t h i s . c r e a t e O n e C o n t a i n e r ( t h i s . e l C o n t a i n e r B t n . e l C o n t a i n e r ,   " b t n " ,   f u n c t i o n ( e )   {  
 	 	 m e . l o a d C o n t e n t I t e m ( i t e m ) ;  
 	 } ,   f u n c t i o n ( e )   {  
 	 	 i t e m . e l B t n . c l a s s N a m e   =   m e . g e t C s s I t e m ( i t e m )   +   "   o v e r " ;  
 	 } ,   f u n c t i o n ( e )   {  
 	 	 i t e m . e l B t n . c l a s s N a m e   =   m e . g e t C s s I t e m ( i t e m ) ;  
 	 } ) ;  
 	 i t e m . e l B t n . e l C e n t e r . i n n e r H T M L   =   i t e m [ t h i s . c o n f i g D a t a . m a p F i e l d . t e x t ] ;  
 	 / /   L o a d   c o n t e n t   i t e m   i s   a c t i v e  
 	 t h i s . c r e a t e C o n t e n t I t e m ( i t e m ) ;  
 	 i t e m . e l C o n t e n t . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 i f   ( t h i s . i t e m A c t i v e   = =   n u l l   & &   i t e m [ t h i s . c o n f i g D a t a . m a p F i e l d . a c t i v e ] )   {  
 	 	 t h i s . l o a d C o n t e n t I t e m ( i t e m ) ;  
 	 }  
  
 	 v a r   e v   =   n e w   O b j e c t ( ) ;  
 	 e v . i t e m   =   i t e m ;  
 	 t h i s . e x e c u t e E v e n t ( e v ,   E v e n t N a m e T a b . a d d T a b ) ;  
 } ;  
  
 / *  
 *   A d d   n e w   T a b  
 * /  
 T a b B T D . p r o t o t y p e . a d d N e w T a b   =   f u n c t i o n ( i t e m )   {  
 	 t h i s . c o n f i g D a t a . d a t a . p u s h ( i t e m ) ;  
 	 t h i s . a d d T a b ( i t e m ) ;  
 	 t h i s . a c t i v e B t n S l i d e ( ) ;  
 } ;  
  
 / *  
 *   R e m o v e   T a b  
 * /  
 T a b B T D . 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 ( v )   {  
 	 i f   ( t h i s . c o n f i g D a t a . d a t a . l e n g t h   = =   1 )   r e t u r n ;  
 	 f o r   ( v a r   i   =   0 ;   i   <   t h i s . c o n f i g D a t a . d a t a . l e n g t h ;   i + + )   {  
 	 	 v a r   i t e m   =   t h i s . c o n f i g D a t a . d a t a [ i ] ;  
 	 	 i f   ( i t e m [ t h i s . c o n f i g D a t a . m a p F i e l d . v a l u e ]   = =   v )   {  
 	 	 	 i f   ( i t e m   = =   t h i s . i t e m A c t i v e )   {  
 	 	 	 	 t h i s . i t e m A c t i v e   =   n u l l ;  
 	 	 	 }  
 	 	 	 t h i s . e l C o n t a i n e r B t n . e l C o n t a i n e r . r e m o v e C h i l d ( i t e m . e l B t n ) ;  
 	 	 	 i f   ( i t e m . e l C o n t e n t   ! =   n u l l )   {  
 	 	 	 	 t h i s . e l C o n t a i n e r C o n t e n t . r e m o v e C h i l d ( i t e m . e l C o n t e n t ) ;  
 	 	 	 }  
 	 	 	 t h i s . c o n f i g D a t a . d a t a . s p l i c e ( i ,   1 ) ;  
 	 	 	 t h i s . a c t i v e B t n S l i d e ( ) ;  
 	 	 	 v a r   e v   =   n e w   O b j e c t ( ) ;  
 	 	 	 e v . i t e m   =   i t e m ;  
 	 	 	 t h i s . e x e c u t e E v e n t ( e v ,   E v e n t N a m e T a b . r e m o v e T a b ) ;  
 	 	 	 b r e a k ;  
 	 	 }  
 	 }  
 } ;  
  
 / *  
 *   A c t i v e   T a b  
 * /  
 T a b B T D . p r o t o t y p e . a c t i v e T a b   =   f u n c t i o n ( v )   {  
 	 i f   ( t h i s . c o n f i g D a t a . d a t a . l e n g t h   = =   0 )   r e t u r n ;  
 	 f o r   ( v a r   i   =   0 ;   i   <   t h i s . c o n f i g D a t a . d a t a . l e n g t h ;   i + + )   {  
 	 	 v a r   i t e m   =   t h i s . c o n f i g D a t a . d a t a [ i ] ;  
 	 	 i f   ( i t e m [ t h i s . c o n f i g D a t a . m a p F i e l d . v a l u e ]   = =   v )   {  
 	 	 	 t h i s . l o a d C o n t e n t I t e m ( i t e m ) ;  
 	 	 	 b r e a k ;  
 	 	 }  
 	 }  
 } ;  
  
 T a b B T D . p r o t o t y p e . a c t i v e B t n S l i d e   =   f u n c t i o n ( )   {  
 	 i f   ( t h i s . w C o n t a i n e r   <   u t i l O b j . g e t E l e m e n t S i z e ( t h i s . e l C o n t a i n e r B t n . e l C o n t a i n e r ) . w i d t h )   {  
 	 	 t h i s . e l C o n t a i n e r B t n . e l N e x t . s t y l e . d i s p l a y   =   t h i s . e l C o n t a i n e r B t n . e l P r e . s t y l e . d i s p l a y   =   " " ;  
 	 }  
 	 e l s e   {  
 	 	 t h i s . e l C o n t a i n e r B t n . e l N e x t . s t y l e . d i s p l a y   =   t h i s . e l C o n t a i n e r B t n . e l P r e . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 }  
 	 t h i s . o S l i d e . a u t o ( ) ;  
 } ;  
  
 / *  
 *   L o a d   l i s t   i t e m  
 * /  
 T a b B T D . p r o t o t y p e . l o a d L i s t I t e m   =   f u n c t i o n ( )   {  
 	 v a r   m e   =   t h i s ;  
 	 t h i s . w C o n t a i n e r   =   u t i l O b j . g e t E l e m e n t S i z e ( t h i s . e l C o n t a i n e r B t n ) . w i d t h   -   2 8 ;  
 	 / /   N ú t   P r e v i e w  
 	 v a r   e l P r e   =   u t i l O b j . c r e a t e E l ( " D I V " ) ;  
 	 e l P r e . c l a s s N a m e   =   " b t n P r e " ;  
 	 u t i l O b j . a d d E v e n t ( e l P r e ,   " c l i c k " ,   f u n c t i o n ( e )   {   m e . o S l i d e . p r e v i e w ( ) ;   } ) ;  
 	 t h i s . e l C o n t a i n e r B t n . a p p e n d C h i l d ( e l P r e ) ;  
 	 t h i s . e l C o n t a i n e r B t n . e l P r e   =   e l P r e ;  
 	 / /   B a o   c h ù m   n ú t  
 	 v a r   e l C o n t a i n e r A l l   =   u t i l O b j . c r e a t e E l ( " D I V " ) ;  
 	 e l C o n t a i n e r A l l . s t y l e . w i d t h   =   t h i s . w C o n t a i n e r   +   " p x " ;  
 	 e l C o n t a i n e r A l l . c l a s s N a m e   =   " c o n t a i n e r B t n " ;  
 	 t h i s . e l C o n t a i n e r B t n . a p p e n d C h i l d ( e l C o n t a i n e r A l l ) ;  
 	 / /   C h éa   D S   n ú t  
 	 v a r   e l C o n t a i n e r   =   u t i l O b j . c r e a t e E l ( " D I V " ) ;  
 	 e l C o n t a i n e r . c l a s s N a m e   =   " l i s t " ;  
 	 e l C o n t a i n e r A l l . a p p e n d C h i l d ( e l C o n t a i n e r ) ;  
 	 t h i s . e l C o n t a i n e r B t n . e l C o n t a i n e r   =   e l C o n t a i n e r ;  
 	 / /   N ú t   N e x t  
 	 v a r   e l N e x t   =   u t i l O b j . c r e a t e E l ( " D I V " ) ;  
 	 e l N e x t . c l a s s N a m e   =   " b t n N e x t " ;  
 	 u t i l O b j . a d d E v e n t ( e l N e x t ,   " c l i c k " ,   f u n c t i o n ( e )   {   m e . o S l i d e . n e x t ( ) ;   } ) ;  
 	 t h i s . e l C o n t a i n e r B t n . a p p e n d C h i l d ( e l N e x t ) ;  
 	 t h i s . e l C o n t a i n e r B t n . e l N e x t   =   e l N e x t ;  
 	 / /   L o a d   l i s t   i t e m  
 	 f o r   ( v a r   i   =   0 ;   i   <   t h i s . c o n f i g D a t a . d a t a . l e n g t h ;   i + + )   {  
 	 	 t h i s . a d d T a b ( t h i s . c o n f i g D a t a . d a t a [ i ] ) ;  
 	 }  
 	 / /   T ¡o   s l i d e  
 	 t h i s . o S l i d e   =   n e w   S l i d e L i s t I m a g e ( e l C o n t a i n e r ,   t h i s . w C o n t a i n e r ) ;  
 	 t h i s . o S l i d e . i n i t ( ) ;  
 	 t h i s . a c t i v e B t n S l i d e ( ) ;  
 } ;  
  
 / *  
   *   I n i t  
   * /  
 T a b B T D . p r o t o t y p e . i n i t   =   f u n c t i o n ( )   {  
 	 t h i s . c r e a t e C o n t a i n e r ( ) ;  
 	 / /   C r e a t e   h e a d e r  
 	 t h i s . e l C o n t a i n e r B t n   =   t h i s . c r e a t e O n e C o n t a i n e r ( t h i s . e l C o n t a i n e r T a b ,   " h e a d e r " ) . e l C e n t e r ;  
 	 / /   C r e a t e   b o d y  
 	 t h i s . e l C o n t a i n e r C o n t e n t   =   t h i s . c r e a t e O n e C o n t a i n e r ( t h i s . e l C o n t a i n e r T a b ,   " b o d y " ) . e l C e n t e r ;  
 	 / /   C r e a t e   f o o t e r  
 	 t h i s . c r e a t e O n e C o n t a i n e r ( t h i s . e l C o n t a i n e r T a b ,   " f o o t e r " ) ;  
  
 	 t h i s . l o a d L i s t I t e m ( ) ;  
 } ; 
