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