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