ÿþ/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 N a m e :         H i g h s l i d e   J S  
 V e r s i o n :   3 . 3 . 3   ( D e c e m b e r   8   2 0 0 7 ) 
 C o n f i g :     d e f a u l t   + i n l i n e   + a j a x   + i f r a m e   + f l a s h 
 A u t h o r :     T o r s t e i n   H ø n s i  
 S u p p o r t :   h t t p : / / v i k j a v e v . n o / h i g h s l i d e / f o r u m  
  
 L i c e n c e :  
 H i g h s l i d e   J S   i s   l i c e n s e d   u n d e r   a   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 - N o n C o m m e r c i a l   2 . 5  
 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 - n c / 2 . 5 / ) .  
  
 Y o u   a r e   f r e e :  
 	 *   t o   c o p y ,   d i s t r i b u t e ,   d i s p l a y ,   a n d   p e r f o r m   t h e   w o r k  
 	 *   t o   m a k e   d e r i v a t i v e   w o r k s  
  
 U n d e r   t h e   f o l l o w i n g   c o n d i t i o n s :  
 	 *   A t t r i b u t i o n .   Y o u   m u s t   a t t r i b u t e   t h e   w o r k   i n   t h e   m a n n e r     s p e c i f i e d   b y     t h e  
 	     a u t h o r   o r   l i c e n s o r .  
 	 *   N o n c o m m e r c i a l .   Y o u   m a y   n o t   u s e   t h i s   w o r k   f o r   c o m m e r c i a l   p u r p o s e s .  
  
 *   F o r     a n y     r e u s e     o r     d i s t r i b u t i o n ,   y o u     m u s t   m a k e   c l e a r   t o   o t h e r s   t h e   l i c e n s e  
     t e r m s   o f   t h i s   w o r k .  
 *   A n y     o f     t h e s e     c o n d i t i o n s     c a n     b e     w a i v e d     i f     y o u     g e t   p e r m i s s i o n   f r o m   t h e    
     c o p y r i g h t   h o l d e r .  
  
 Y o u r   f a i r   u s e   a n d   o t h e r   r i g h t s   a r e   i n   n o   w a y   a f f e c t e d   b y   t h e   a b o v e .  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 v a r   h s   =   {  
  
 / /   A p p l y   y o u r   o w n   s e t t i n g s   h e r e ,   o r   o v e r r i d e   t h e m   i n   t h e   h t m l   f i l e .      
 g r a p h i c s D i r   :   ' h i g h s l i d e / g r a p h i c s / ' ,  
 r e s t o r e C u r s o r   :   ' z o o m o u t . c u r ' ,   / /   n e c e s s a r y   f o r   p r e l o a d  
 e x p a n d S t e p s   :   1 0 ,   / /   n u m b e r   o f   s t e p s   i n   z o o m .   E a c h   s t e p   l a s t s   f o r   d u r a t i o n / s t e p   m i l l i s e c o n d s .  
 e x p a n d D u r a t i o n   :   2 5 0 ,   / /   m i l l i s e c o n d s  
 r e s t o r e S t e p s   :   1 0 ,  
 r e s t o r e D u r a t i o n   :   2 5 0 ,  
 m a r g i n L e f t   :   1 5 ,  
 m a r g i n R i g h t   :   1 5 ,  
 m a r g i n T o p   :   1 5 ,  
 m a r g i n B o t t o m   :   1 5 ,  
 z I n d e x C o u n t e r   :   1 0 0 1 ,   / /   a d j u s t   t o   o t h e r   a b s o l u t e l y   p o s i t i o n e d   e l e m e n t s  
  
 r e s t o r e T i t l e   :   ' C l i c k   t o   c l o s e   i m a g e ,   c l i c k   a n d   d r a g   t o   m o v e .   U s e   a r r o w   k e y s   f o r   n e x t   a n d   p r e v i o u s . ' ,  
 l o a d i n g T e x t   :   ' a n g   c h ¡y . . . ' ,  
 l o a d i n g T i t l e   :   ' C l i c k   t o   c a n c e l ' ,  
 l o a d i n g O p a c i t y   :   0 . 7 5 ,  
 f o c u s T i t l e   :   ' C l i c k   t o   b r i n g   t o   f r o n t ' ,  
 a l l o w M u l t i p l e I n s t a n c e s :   t r u e ,  
 n u m b e r O f I m a g e s T o P r e l o a d   :   5 ,  
 c a p t i o n S l i d e S p e e d   :   1 ,   / /   s e t   t o   0   t o   d i s a b l e   s l i d e   i n   e f f e c t  
 p a d T o M i n W i d t h   :   f a l s e ,   / /   p a d   t h e   p o p u p   w i d t h   t o   m a k e   r o o m   f o r   w i d e   c a p t i o n  
 o u t l i n e W h i l e A n i m a t i n g   :   2 ,   / /   0   =   n e v e r ,   1   =   a l w a y s ,   2   =   H T M L   o n l y    
 o u t l i n e S t a r t O f f s e t   :   3 ,   / /   e n d s   a t   1 0  
 f u l l E x p a n d T i t l e   :   ' E x p a n d   t o   a c t u a l   s i z e ' ,  
 f u l l E x p a n d P o s i t i o n   :   ' b o t t o m   r i g h t ' ,  
 f u l l E x p a n d O p a c i t y   :   1 ,  
 s h o w C r e d i t s   :   t r u e ,   / /   y o u   c a n   s e t   t h i s   t o   f a l s e   i f   y o u   w a n t  
 c r e d i t s T e x t   :   ' ' ,  
 c r e d i t s H r e f   :   ' h t t p : / / v i k j a v e v . n o / h i g h s l i d e / ' ,  
 c r e d i t s T i t l e   :   ' G o   t o   t h e   H i g h s l i d e   J S   h o m e p a g e ' ,  
 e n a b l e K e y L i s t e n e r   :   t r u e ,  
  
  
 / /   H T M L   e x t e n s i o n  
  
 p r e v i o u s T e x t   :   ' P r e v i o u s ' ,  
 n e x t T e x t   :   ' N e x t ' ,    
 m o v e T e x t   :   ' M o v e ' ,  
 c l o s e T e x t   :   ' C l o s e ' ,    
 c l o s e T i t l e   :   ' C l i c k   t o   c l o s e ' ,    
 r e s i z e T i t l e   :   ' R e s i z e ' ,  
 a l l o w W i d t h R e d u c t i o n   :   f a l s e ,  
 a l l o w H e i g h t R e d u c t i o n   :   t r u e ,  
 p r e s e r v e C o n t e n t   :   t r u e ,   / /   P r e s e r v e   c h a n g e s   m a d e   t o   t h e   c o n t e n t   a n d   p o s i t i o n   o f   H T M L   p o p u p s .  
 o b j e c t L o a d T i m e   :   ' b e f o r e ' ,   / /   L o a d   i f r a m e s   ' b e f o r e '   o r   ' a f t e r '   e x p a n s i o n .  
 c a c h e A j a x   :   t r u e ,   / /   C a c h e   a j a x   p o p u p s   f o r   i n s t a n t   d i s p l a y .   C a n   b e   o v e r r i d d e n   f o r   e a c h   p o p u p .  
  
 / /   T h e s e   s e t t i n g s   c a n   a l s o   b e   o v e r r i d d e n   i n l i n e   f o r   e a c h   i m a g e  
 c a p t i o n I d   :   n u l l ,  
 s p a c e F o r C a p t i o n   :   3 0 ,   / /   l e a v e s   s p a c e   b e l o w   i m a g e s   w i t h   c a p t i o n s  
 s l i d e s h o w G r o u p   :   n u l l ,   / /   d e f i n e s   g r o u p s   f o r   n e x t / p r e v i o u s   l i n k s   a n d   k e y s t r o k e s  
 m i n W i d t h :   2 0 0 ,  
 m i n H e i g h t :   2 0 0 ,  
 a l l o w S i z e R e d u c t i o n :   t r u e ,   / /   a l l o w   t h e   i m a g e   t o   r e d u c e   t o   f i t   c l i e n t   s i z e .   I f   f a l s e ,   t h i s   o v e r r i d e s   m i n W i d t h   a n d   m i n H e i g h t  
 o u t l i n e T y p e   :   ' d r o p - s h a d o w ' ,   / /   s e t   n u l l   t o   d i s a b l e   o u t l i n e s  
 w r a p p e r C l a s s N a m e   :   ' h i g h s l i d e - w r a p p e r ' ,   / /   f o r   e n h a n c e d   c s s - c o n t r o l  
  
 / /   E N D   O F   Y O U R   S E T T I N G S  
  
  
 / /   d e c l a r e   i n t e r n a l   p r o p e r t i e s  
 p r e l o a d T h e s e I m a g e s   :   [ ] ,  
 c o n t i n u e P r e l o a d i n g :   t r u e ,  
 e x p a n d e r s   :   [ ] ,  
 o v e r r i d e s   :   [  
 	 ' a l l o w S i z e R e d u c t i o n ' ,  
 	 ' o u t l i n e T y p e ' ,  
 	 ' o u t l i n e W h i l e A n i m a t i n g ' ,  
 	 ' s p a c e F o r C a p t i o n ' ,  
 	 ' c a p t i o n I d ' ,  
 	 ' c a p t i o n T e x t ' ,  
 	 ' c a p t i o n E v a l ' ,  
 	  
 	 ' c o n t e n t I d ' ,  
 	 ' a l l o w W i d t h R e d u c t i o n ' ,  
 	 ' a l l o w H e i g h t R e d u c t i o n ' ,  
 	 ' p r e s e r v e C o n t e n t ' ,  
 	 ' o b j e c t T y p e ' , 	  
 	 ' c a c h e A j a x ' , 	  
 	 ' o b j e c t W i d t h ' ,  
 	 ' o b j e c t H e i g h t ' ,  
 	 ' o b j e c t L o a d T i m e ' , 	  
 	 ' s w f O b j e c t ' ,  
 	 ' w r a p p e r C l a s s N a m e ' ,  
 	 ' m i n W i d t h ' ,  
 	 ' m i n H e i g h t ' ,  
 	 ' s l i d e s h o w G r o u p '  
 ] ,  
 o v e r l a y s   :   [ ] ,  
 f a d e r s   :   [ ] ,  
  
 p e n d i n g O u t l i n e s   :   { } ,  
 s l e e p i n g   :   [ ] ,  
 p r e l o a d T h e s e A j a x   :   [ ] ,  
 c a c h e B i n d i n g s   :   [ ] ,  
 c a c h e d G e t s   :   { } ,  
 c l o n e 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 ) ,  
 s a f a r i   :   n a v i g a t o r . u s e r A g e n t . i n d e x O f ( " S a f a r i " )   ! =   - 1 ,  
  
 $   :   f u n c t i o n   ( i d )   {  
 	 r e t u r n   d o c u m e n t . g e t E l e m e n t B y I d ( i d ) ;  
 } ,  
  
 p u s h   :   f u n c t i o n   ( a r r ,   v a l )   {  
 	 a r r [ a r r . l e n g t h ]   =   v a l ;  
 } ,  
  
 c r e a t e E l e m e n t   :   f u n c t i o n   ( t a g ,   a t t r i b s ,   s t y l e s ,   p a r e n t ,   n o p a d )   {  
 	 v a r   e l   =   d o c u m e n t . c r e a t e E l e m e n t ( t a g ) ;  
 	 i f   ( a t t r i b s )   h s . s e t A t t r i b s ( e l ,   a t t r i b s ) ;  
 	 i f   ( n o p a d )   h s . s e t S t y l e s ( e l ,   { p a d d i n g :   0 ,   b o r d e r :   ' n o n e ' ,   m a r g i n :   0 } ) ;  
 	 i f   ( s t y l e s )   h s . s e t S t y l e s ( e l ,   s t y l e s ) ;  
 	 i f   ( p a r e n t )   p a r e n t . a p p e n d C h i l d ( e l ) ; 	  
 	 r e t u r n   e l ;  
 } ,  
  
 s e t A t t r i b s   :   f u n c t i o n   ( e l ,   a t t r i b s )   {  
 	 f o r   ( v a r   x   i n   a t t r i b s )   {  
 	 	 e l [ x ]   =   a t t r i b s [ x ] ;  
 	 }  
 } ,  
  
 s e t S t y l e s   :   f u n c t i o n   ( e l ,   s t y l e s )   {  
 	 f o r   ( v a r   x   i n   s t y l e s )   {  
 	 	 t r y   {    
 	 	 	 i f   ( h s . i e   & &   x   = =   ' o p a c i t y ' )   e l . s t y l e . f i l t e r   =   ' a l p h a ( o p a c i t y = ' +   ( s t y l e s [ x ]   *   1 0 0 )   + ' ) ' ;  
 	 	 	 e l s e   e l . s t y l e [ x ]   =   s t y l e s [ x ] ;    
 	 	 }  
 	 	 c a t c h   ( e )   { }  
 	 }  
 } ,  
  
 i e V e r s i o n   :   f u n c t i o n   ( )   {  
 	 a r r   =   n a v i g a t o r . a p p V e r s i o n . s p l i t ( " M S I E " ) ;  
 	 r e t u r n   p a r s e F l o a t ( a r r [ 1 ] ) ;  
 } ,  
  
 g e t P a g e S i z e   :   f u n c t i o n   ( )   {  
 	 v a r   i e b o d y   =   d o c u m e n t . c o m p a t M o d e   & &   d o c u m e n t . c o m p a t M o d e   ! =   " B a c k C o m p a t "    
 	 	 ?   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 . b o d y ;  
 	  
 	 v a r   w i d t h   =   h s . i e   ?   i e b o d y . c l i e n t W i d t h   :    
 	 	 	 ( 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 W i d t h   | |   s e l f . i n n e r W i d t h ) ,  
 	 	 h e i g h t   =   h s . i e   ?   i e b o d y . c l i e n t H e i g h t   :   s e l f . i n n e r H e i g h t ;  
 	  
 	 r e t u r n   {  
 	 	 w i d t h :   w i d t h ,  
 	 	 h e i g h t :   h e i g h t , 	 	  
 	 	 s c r o l l L e f t :   h s . i e   ?   i e b o d y . s c r o l l L e f t   :   p a g e X O f f s e t ,  
 	 	 s c r o l l T o p :   h s . i e   ?   i e b o d y . s c r o l l T o p   :   p a g e Y O f f s e t  
 	 }  
 } ,  
  
 p o s i t i o n   :   f u n c t i o n ( e l ) 	 {    
 	 v a r   p   =   {   x :   e l . o f f s e t L e f t ,   y :   e l . o f f s e t T o p   } ;  
 	 w h i l e   ( e l . o f f s e t P a r e n t ) 	 {  
 	 	 e l   =   e l . o f f s e t P a r e n t ;  
 	 	 p . x   + =   e l . o f f s e t L e f t ;  
 	 	 p . y   + =   e l . o f f s e t T o p ;  
 	 	 i f   ( e l   ! =   d o c u m e n t . b o d y   & &   e l   ! =   d o c u m e n t . d o c u m e n t E l e m e n t )   {  
 	 	 	 p . x   - =   e l . s c r o l l L e f t ;  
 	 	 	 p . y   - =   e l . s c r o l l T o p ;  
 	 	 }  
 	 }  
 	 r e t u r n   p ;  
 } ,  
  
 e x p a n d   :   f u n c t i o n ( a ,   p a r a m s ,   c u s t o m )   {  
 	 i f   ( a . g e t P a r a m s )   r e t u r n   p a r a m s ;  
 	  
 	 t r y   {  
 	 	 n e w   h s . E x p a n d e r ( a ,   p a r a m s ,   c u s t o m ) ;  
 	 	 r e t u r n   f a l s e ; 	 	  
 	 }   c a t c h   ( e )   {   r e t u r n   t r u e ;   }  
 } ,  
  
 h t m l E x p a n d   :   f u n c t i o n ( a ,   p a r a m s ,   c u s t o m )   {  
 	 i f   ( a . g e t P a r a m s )   r e t u r n   p a r a m s ;  
 	  
 	 f o r   ( v a r   i   =   0 ;   i   <   h s . s l e e p i n g . l e n g t h ;   i + + )   {  
 	 	 i f   ( h s . s l e e p i n g [ i ]   & &   h s . s l e e p i n g [ i ] . a   = =   a )   {  
 	 	 	 h s . s l e e p i n g [ i ] . a w a k e ( ) ;  
 	 	 	 h s . s l e e p i n g [ i ]   =   n u l l ;  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }  
 	 }  
 	 t r y   {  
 	 	 h s . h a s H t m l e x p a n d e r s   =   t r u e ;  
 	 	 n e w   h s . E x p a n d e r ( a ,   p a r a m s ,   c u s t o m ,   ' h t m l ' ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }   c a t c h   ( e )   {  
 	 	 r e t u r n   t r u e ;  
 	 } 	  
 } ,  
  
 g e t E l e m e n t B y C l a s s   :   f u n c t i o n   ( e l ,   t a g N a m e ,   c l a s s N a m e )   {  
 	 v a r   e l s   =   e l . g e t E l e m e n t s B y T a g N a m e ( t a g N a m e ) ;  
 	 f o r   ( i   =   0 ;   i   <   e l s . l e n g t h ;   i + + )   {  
         	 i f   ( e l s [ i ] . c l a s s N a m e   = =   c l a s s N a m e )   {  
 	 	 	 r e t u r n   e l s [ i ] ;  
 	 	 }  
 	 }  
 } ,  
  
 g e t S e l f R e n d e r e d   :   f u n c t i o n ( )   {  
 	 v a r   s   = 	  
 	 	   ' < d i v   c l a s s = " h i g h s l i d e - h e a d e r " > < u l > '  
 	 	 + 	 ' < l i   c l a s s = " h i g h s l i d e - p r e v i o u s " > < a   o n c l i c k = " r e t u r n   h s . p r e v i o u s ( t h i s ) "   h r e f = " # " > ' +   h s . p r e v i o u s T e x t   + ' < / a > < / l i > '  
 	 	 + 	 ' < l i   c l a s s = " h i g h s l i d e - n e x t " > < a   o n c l i c k = " r e t u r n   h s . n e x t ( t h i s ) "   h r e f = " # " > ' +   h s . n e x t T e x t   + ' < / a > < / l i > '  
 	 	 + 	 ' < l i   c l a s s = " h i g h s l i d e - m o v e " > < a   h r e f = " # "   o n c l i c k = " r e t u r n   f a l s e " > ' +   h s . m o v e T e x t   + ' < / a > < / l i > '  
 	 	 + 	 ' < l i   c l a s s = " h i g h s l i d e - c l o s e " > < a   o n c l i c k = " r e t u r n   h s . c l o s e ( t h i s ) "   t i t l e = " ' +   h s . c l o s e T i t l e   + ' "   h r e f = " # " > '  
 	 	 	 +   h s . c l o s e T e x t   + ' < / a > < / l i > '  
 	 	 + ' < / u l > < / d i v > '  
 	 	 + ' < d i v   c l a s s = " h i g h s l i d e - b o d y " > < / d i v > '  
 	 	 + ' < d i v   c l a s s = " h i g h s l i d e - f o o t e r " > < d i v > '  
 	 	 + 	 ' < s p a n   c l a s s = " h i g h s l i d e - r e s i z e "   t i t l e = " ' +   h s . r e s i z e T i t l e   + ' " > < s p a n > < / s p a n > < / s p a n > '  
 	 	 + ' < / d i v > < / d i v > ' ;  
 	 r e t u r n   h s . c r e a t e E l e m e n t ( ' d i v ' ,   {   c l a s s N a m e :   ' h i g h s l i d e - h t m l - c o n t e n t ' ,   i n n e r H T M L :   s   }   ) ;  
 } ,  
  
  
 g e t C a c h e B i n d i n g   :   f u n c t i o n   ( a )   {  
 	 f o r   ( i   =   0 ;   i   <   h s . c a c h e B i n d i n g s . l e n g t h ;   i + + )   {  
 	 	 i f   ( h s . c a c h e B i n d i n g s [ i ] [ 0 ]   = =   a )   {  
 	 	 	 v a r   c   =   h s . c a c h e B i n d i n g s [ i ] [ 1 ] ;  
 	 	 	 h s . c a c h e B i n d i n g s [ i ] [ 1 ]   =   c . c l o n e N o d e ( 1 ) ;  
 	 	 	 r e t u r n   c ;  
 	 	 }  
 	 }  
 } ,  
  
 p r e l o a d A j a x   :   f u n c t i o n   ( e )   {  
 	 v a r   a T a g s   =   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 ' ) ;  
 	 v a r   a ,   r e ;  
 	 f o r   ( i   =   0 ;   i   <   a T a g s . l e n g t h ;   i + + )   {  
 	 	 a   =   a T a g s [ i ] ;  
 	 	 r e   =   h s . i s H s A n c h o r ( a ) ;  
 	 	 i f   ( r e   & &   r e [ 0 ]   = =   ' h s . h t m l E x p a n d '   & &   h s . g e t P a r a m ( a ,   ' o b j e c t T y p e ' )   = =   ' a j a x '    
 	 	 	 	 & &   h s . g e t P a r a m ( a ,   ' c a c h e A j a x ' ) )   {  
 	 	 	 h s . p u s h ( h s . p r e l o a d T h e s e A j a x ,   a ) ;  
 	 	 }  
 	 }  
 	 h s . p r e l o a d A j a x E l e m e n t ( 0 ) ;  
 } ,  
  
 p r e l o a d A j a x E l e m e n t   :   f u n c t i o n   ( i )   {  
 	 i f   ( ! h s . p r e l o a d T h e s e A j a x [ i ] )   r e t u r n ;  
 	 v a r   a   =   h s . p r e l o a d T h e s e A j a x [ i ] ;  
 	 v a r   c a c h e   =   h s . g e t N o d e ( h s . g e t P a r a m ( a ,   ' c o n t e n t I d ' ) ) ;  
 	 i f   ( ! c a c h e )   c a c h e   =   h s . g e t S e l f R e n d e r e d ( ) ;  
 	 v a r   a j a x   =   n e w   h s . A j a x ( a ,   c a c h e ,   1 ) ; 	  
       	 a j a x . o n E r r o r   =   f u n c t i o n   ( )   {   } ;  
       	 a j a x . o n L o a d   =   f u n c t i o n   ( )   {  
       	 	 h s . p u s h ( h s . c a c h e B i n d i n g s ,   [ a ,   c a c h e ] ) ;  
       	 	 h s . p r e l o a d A j a x E l e m e n t ( i   +   1 ) ;  
       	 } ;  
       	 a j a x . r u n ( ) ;  
 } ,  
  
 f o c u s T o p m o s t   :   f u n c t i o n ( )   {  
 	 v a r   t o p Z   =   0 ,   t o p m o s t K e y   =   - 1 ;  
 	 f o r   ( i   =   0 ;   i   <   h s . e x p a n d e r s . l e n g t h ;   i + + )   {  
 	 	 i f   ( h s . e x p a n d e r s [ i ] )   {  
 	 	 	 i f   ( h s . e x p a n d e r s [ i ] . w r a p p e r . s t y l e . z I n d e x   & &   h s . e x p a n d e r s [ i ] . w r a p p e r . s t y l e . z I n d e x   >   t o p Z )   {  
 	 	 	 	 t o p Z   =   h s . e x p a n d e r s [ i ] . w r a p p e r . s t y l e . z I n d e x ;  
 	 	 	 	  
 	 	 	 	 t o p m o s t K e y   =   i ;  
 	 	 	 }  
 	 	 }  
 	 }  
 	 i f   ( t o p m o s t K e y   = =   - 1 )   h s . f o c u s K e y   =   - 1 ;  
 	 e l s e   h s . e x p a n d e r s [ t o p m o s t K e y ] . f o c u s ( ) ;  
 } ,  
  
 g e t A d j a c e n t A n c h o r   :   f u n c t i o n ( k e y ,   o p )   {  
 	 v a r   a A r   =   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 ' ) ,   h s A r   =   { } ,   a c t i v e I   =   - 1 ,   j   =   0 ;  
 	 f o r   ( i   =   0 ;   i   <   a A r . l e n g t h ;   i + + )   {  
 	 	 i f   ( h s . i s H s A n c h o r ( a A r [ i ] )   & &   ( ( h s . e x p a n d e r s [ k e y ] . s l i d e s h o w G r o u p   = =   h s . g e t P a r a m ( a A r [ i ] ,   ' s l i d e s h o w G r o u p ' ) ) ) )   {  
 	 	 	 h s A r [ j ]   =   a A r [ i ] ;  
 	 	 	 i f   ( h s . e x p a n d e r s [ k e y ]   & &   a A r [ i ]   = =   h s . e x p a n d e r s [ k e y ] . a )   {  
 	 	 	 	 a c t i v e I   =   j ;  
 	 	 	 }  
 	 	 	 j + + ;  
 	 	 }  
 	 }  
 	 r e t u r n   h s A r [ a c t i v e I   +   o p ] ;  
 } ,  
  
 g e t P a r a m   :   f u n c t i o n   ( a ,   p a r a m )   {  
 	 a . g e t P a r a m s   =   a . o n c l i c k ;  
 	 v a r   p   =   a . g e t P a r a m s ( ) ;  
 	 a . g e t P a r a m s   =   n u l l ;  
 	  
 	 r e t u r n   ( p   & &   t y p e o f   p [ p a r a m ]   ! =   ' u n d e f i n e d ' )   ?   p [ p a r a m ]   :   h s [ p a r a m ] ;  
 } ,  
  
 g e t S r c   :   f u n c t i o n   ( a )   {  
 	 v a r   s r c   =   h s . g e t P a r a m ( a ,   ' s r c ' ) ;  
 	 i f   ( s r c )   r e t u r n   s r c ;  
 	 r e t u r n   a . h r e f ;  
 } ,  
  
 g e t N o d e   :   f u n c t i o n   ( i d )   {  
 	 v a r   n o d e   =   h s . $ ( i d ) ,   c l o n e   =   h s . c l o n e s [ i d ] ,   a   =   { } ;  
 	 i f   ( ! n o d e   & &   ! c l o n e )   r e t u r n   n u l l ;  
 	 i f   ( ! c l o n e )   {  
 	 	 c l o n e   =   n o d e . c l o n e N o d e ( t r u e ) ;  
 	 	 c l o n e . i d   =   ' ' ;  
 	 	 h s . c l o n e s [ i d ]   =   c l o n e ;  
 	 	 r e t u r n   n o d e ;  
 	 }   e l s e   {  
 	 	 r e t u r n   c l o n e . c l o n e N o d e ( t r u e ) ;  
 	 }  
 } ,  
  
 p u r g e   :   f u n c t i o n ( d )   {  
 	 i f   ( ! h s . i e )   r e t u r n ;  
 	 v a r   a   =   d . a t t r i b u t e s ,   i ,   l ,   n ;  
 	 i f   ( a )   {  
 	 	 l   =   a . l e n g t h ;  
 	 	 f o r   ( i   =   0 ;   i   <   l ;   i   + =   1 )   {  
 	 	 	 n   =   a [ i ] . n a m e ;  
 	 	 	 i f   ( t y p e o f   d [ n ]   = = =   ' f u n c t i o n ' )   {  
 	 	 	 	 d [ n ]   =   n u l l ;  
 	 	 	 }  
 	 	 }  
 	 }  
 	 a   =   d . c h i l d N o d e s ;  
 	 i f   ( a )   {  
 	 	 l   =   a . l e n g t h ;  
 	 	 f o r   ( i   =   0 ;   i   <   l ;   i   + =   1 )   {  
 	 	 	 h s . p u r g e ( d . c h i l d N o d e s [ i ] ) ;  
 	 	 }  
 	 }  
 } ,  
  
 p r e v i o u s O r N e x t   :   f u n c t i o n   ( e l ,   o p )   {  
 	 v a r   e x p   =   h s . g e t E x p a n d e r ( e l ) ;  
 	 t r y   {  
 	 	 v a r   a d j   =   h s . u p c o m i n g   =     h s . g e t A d j a c e n t A n c h o r ( e x p . k e y ,   o p ) ;  
 	 	 a d j . o n c l i c k ( ) ;   	 	  
 	 }   c a t c h   ( e ) { }  
 	 t r y   {   e x p . c l o s e ( ) ;   }   c a t c h   ( e )   { } 	  
 	 r e t u r n   f a l s e ;  
 } ,  
  
 p r e v i o u s   :   f u n c t i o n   ( e l )   {  
 	 r e t u r n   h s . p r e v i o u s O r N e x t ( e l ,   - 1 ) ;  
 } ,  
  
 n e x t   :   f u n c t i o n   ( e l )   {  
 	 r e t u r n   h s . p r e v i o u s O r N e x t ( e l ,   1 ) ; 	  
 } ,  
  
 k e y H a n d l e r   :   f u n c t i o n ( e )   {  
 	 i f   ( ! e )   e   =   w i n d o w . e v e n t ;  
 	 i f   ( ! e . t a r g e t )   e . t a r g e t   =   e . s r c E l e m e n t ;   / /   i e  
 	 i f   ( e . t a r g e t . f o r m )   r e t u r n ;   / /   f o r m   e l e m e n t   h a s   f o c u s  
 	  
 	 v a r   o p   =   n u l l ;  
 	 s w i t c h   ( e . k e y C o d e )   {  
 	 	 c a s e   3 4 :   / /   P a g e   D o w n  
 	 	 c a s e   3 9 :   / /   A r r o w   r i g h t  
 	 	 c a s e   4 0 :   / /   A r r o w   d o w n  
 	 	 	 o p   =   1 ;  
 	 	 	 b r e a k ;  
 	 	 c a s e   3 3 :   / /   P a g e   U p  
 	 	 c a s e   3 7 :   / /   A r r o w   l e f t  
 	 	 c a s e   3 8 :   / /   A r r o w   u p  
 	 	 	 o p   =   - 1 ;  
 	 	 	 b r e a k ;  
 	 	 c a s e   2 7 :   / /   E s c a p e  
 	 	 c a s e   1 3 :   / /   E n t e r  
 	 	 	 o p   =   0 ;  
 	 }  
 	 i f   ( o p   ! = =   n u l l )   {  
 	 	 h s . r e m o v e E v e n t L i s t e n e r ( d o c u m e n t ,   ' k e y d o w n ' ,   h s . k e y H a n d l e r ) ;  
 	 	 t r y   {   i f   ( ! h s . e n a b l e K e y L i s t e n e r )   r e t u r n   t r u e ;   }   c a t c h   ( e )   { }  
 	 	  
 	 	 i f   ( e . p r e v e n t D e f a u l t )   e . p r e v e n t D e f a u l t ( ) ;  
         	 e l s e   e . r e t u r n V a l u e   =   f a l s e ;  
 	 	 i f   ( o p   = =   0 )   {  
 	 	 	 t r y   {   h s . g e t E x p a n d e r ( ) . c l o s e ( ) ;   }   c a t c h   ( e )   { }  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }   e l s e   {  
 	 	 	 r e t u r n   h s . p r e v i o u s O r N e x t ( h s . f o c u s K e y ,   o p ) ;  
 	 	 }  
 	 }   e l s e   r e t u r n   t r u e ;  
 } ,  
  
  
 r e g i s t e r O v e r l a y   :   f u n c t i o n   ( o v e r l a y )   {  
 	 h s . p u s h ( h s . o v e r l a y s ,   o v e r l a y ) ;  
 } ,  
  
 g e t W r a p p e r K e y   :   f u n c t i o n   ( e l e m e n t )   {  
 	 v a r   e l ,   r e   =   / ^ h i g h s l i d e - w r a p p e r - ( [ 0 - 9 ] + ) $ / ;  
 	 / /   1 .   l o o k   i n   o p e n   e x p a n d e r s  
 	 e l   =   e l e m e n t ;  
 	 w h i l e   ( e l . p a r e n t N o d e ) 	 {  
 	 	 i f   ( e l . i d   & &   e l . i d . m a t c h ( r e ) )   r e t u r n   e l . i d . r e p l a c e ( r e ,   " $ 1 " ) ;  
 	 	 e l   =   e l . p a r e n t N o d e ;  
 	 }  
 	 / /   2 .   l o o k   i n   t h u m b n a i l  
 	 e l   =   e l e m e n t ;  
 	 w h i l e   ( e l . p a r e n t N o d e ) 	 {  
 	 	 i f   ( e l . t a g N a m e   & &   h s . i s H s A n c h o r ( e l ) )   {  
 	 	 	 f o r   ( k e y   =   0 ;   k e y   <   h s . e x p a n d e r s . l e n g t h ;   k e y + + )   {  
 	 	 	 	 e x p   =   h s . e x p a n d e r s [ k e y ] ;  
 	 	 	 	 i f   ( e x p   & &   e x p . a   = =   e l )   r e t u r n   k e y ;  
 	 	 	 }  
 	 	 }  
 	 	 e l   =   e l . p a r e n t N o d e ;  
 	 }  
 } ,  
  
 g e t E x p a n d e r   :   f u n c t i o n   ( e l )   {  
 	 t r y   { 	  
 	 	 i f   ( ! e l )   r e t u r n   h s . e x p a n d e r s [ h s . f o c u s K e y ] ;  
 	 	 i f   ( t y p e o f   e l   = =   ' n u m b e r ' )   r e t u r n   h s . e x p a n d e r s [ e l ] ;  
 	 	 i f   ( t y p e o f   e l   = =   ' s t r i n g ' )   e l   =   h s . $ ( e l ) ;  
 	 	 r e t u r n   h s . e x p a n d e r s [ h s . g e t W r a p p e r K e y ( e l ) ] ;  
 	 }   c a t c h   ( e )   { }  
 } ,  
  
 i s H s A n c h o r   :   f u n c t i o n   ( a )   {  
 	 r e t u r n   ( a . o n c l i c k   & &   a . o n c l i c k . t o S t r i n g ( ) . r e p l a c e ( / \ s / g ,   '   ' ) . m a t c h ( / h s . ( h t m l E | e ) x p a n d / ) ) ;  
 } ,  
  
 c l e a n U p   :   f u n c t i o n   ( )   {  
 	 f o r   ( i   =   0 ;   i   <   h s . e x p a n d e r s . l e n g t h ;   i + + )  
 	 	 i f   ( h s . e x p a n d e r s [ i ]   & &   h s . e x p a n d e r s [ i ] . i s E x p a n d e d )   h s . f o c u s T o p m o s t ( ) ;  
 } ,  
  
 m o u s e C l i c k H a n d l e r   :   f u n c t i o n ( e )    
 { 	  
 	 i f   ( ! e )   e   =   w i n d o w . e v e n t ;  
 	 i f   ( e . b u t t o n   >   1 )   r e t u r n   t r u e ;  
 	 i f   ( ! e . t a r g e t )   e . t a r g e t   =   e . s r c E l e m e n t ;  
 	  
 	 v a r   e l   =   e . t a r g e t ;  
 	 w h i l e   ( e l . p a r e n t N o d e  
 	 	 & &   ! ( / h i g h s l i d e - ( i m a g e | m o v e | h t m l | r e s i z e ) / . t e s t ( e l . c l a s s N a m e ) ) )  
 	 {  
 	 	 e l   =   e l . p a r e n t N o d e ;  
 	 }  
 	 v a r   e x p   =   h s . g e t E x p a n d e r ( e l ) ;  
  
 	 i f   ( e x p   & &   e . t y p e   = =   ' m o u s e d o w n ' )   {  
 	 	 i f   ( e . t a r g e t . f o r m )   r e t u r n ;  
 	 	 v a r   m a t c h   =   e l . c l a s s N a m e . m a t c h ( / h i g h s l i d e - ( i m a g e | m o v e | r e s i z e ) / ) ;  
 	 	 i f   ( m a t c h )   {  
 	 	 	 h s . d r a g A r g s   =   {   e x p :   e x p   ,   t y p e :   m a t c h [ 1 ] ,   l e f t :   e x p . x . m i n ,   w i d t h :   e x p . x . s p a n ,   t o p :   e x p . y . m i n ,    
 	 	 	 	 h e i g h t :   e x p . y . s p a n ,   c l i c k X :   e . c l i e n t X ,   c l i c k Y :   e . c l i e n t Y   } ;  
 	 	 	  
 	 	 	 i f   ( h s . d r a g A r g s . t y p e   = =   ' i m a g e ' )   e x p . c o n t e n t . s t y l e . c u r s o r   =   ' m o v e ' ;  
 	 	 	  
 	 	 	 h s . a d d E v e n t L i s t e n e r ( d o c u m e n t ,   ' m o u s e m o v e ' ,   h s . d r a g H a n d l e r ) ;  
 	 	 	 i f   ( e . p r e v e n t D e f a u l t )   e . p r e v e n t D e f a u l t ( ) ;   / /   F F  
 	 	 	  
 	 	 	 i f   ( / h i g h s l i d e - ( i m a g e | h t m l ) - b l u r / . t e s t ( e x p . c o n t e n t . c l a s s N a m e ) )   {  
 	 	 	 	 e x p . f o c u s ( ) ;  
 	 	 	 	 h s . h a s F o c u s e d   =   t r u e ;  
 	 	 	 }  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }  
 	 	 e l s e   i f   ( / h i g h s l i d e - h t m l / . t e s t ( e l . c l a s s N a m e )   & &   h s . f o c u s K e y   ! =   e x p . k e y )   {  
 	 	 	 e x p . f o c u s ( ) ;  
 	 	 	 e x p . r e d o S h o w H i d e ( ) ;  
 	 	 }  
 	 }   e l s e   i f   ( e . t y p e   = =   ' m o u s e u p ' )   {  
 	 	  
 	 	 h s . r e m o v e E v e n t L i s t e n e r ( d o c u m e n t ,   ' m o u s e m o v e ' ,   h s . d r a g H a n d l e r ) ;  
 	 	  
 	 	 i f   ( h s . d r a g A r g s )   {  
 	 	 	  
 	 	 	 i f   ( h s . d r a g A r g s . t y p e   = =   ' i m a g e ' )  
 	 	 	 	 h s . d r a g A r g s . e x p . c o n t e n t . s t y l e . c u r s o r   =   h s . s t y l e R e s t o r e C u r s o r ;  
 	 	 	  
 	 	 	 v a r   h a s D r a g g e d   =   ( M a t h . a b s ( h s . d r a g A r g s . d X )   +   M a t h . a b s ( h s . d r a g A r g s . d Y )   >   0 ) ;  
 	 	 	  
 	 	 	 i f   ( ! h a s D r a g g e d   & & ! h s . h a s F o c u s e d   & &   ! / ( m o v e | r e s i z e ) / . t e s t ( h s . d r a g A r g s . t y p e ) )   {  
 	 	 	 	 e x p . c l o s e ( ) ;  
 	 	 	 }    
 	 	 	 e l s e   i f   ( h a s D r a g g e d   | |   ( ! h a s D r a g g e d   & &   h s . h a s H t m l e x p a n d e r s ) )   {  
 	 	 	 	 h s . d r a g A r g s . e x p . r e d o S h o w H i d e ( ) ;  
 	 	 	 }  
 	 	 	  
 	 	 	 h s . h a s F o c u s e d   =   f a l s e ;  
 	 	 	 h s . d r a g A r g s   =   n u l l ;  
 	 	  
 	 	 }   e l s e   i f   ( / h i g h s l i d e - i m a g e - b l u r / . t e s t ( e l . c l a s s N a m e ) )   {  
 	 	 	 e l . s t y l e . c u r s o r   =   h s . s t y l e R e s t o r e C u r s o r ; 	 	  
 	 	 }  
 	 }  
 } ,  
  
 d r a g H a n d l e r   :   f u n c t i o n ( e )  
 {  
 	 i f   ( ! h s . d r a g A r g s )   r e t u r n ;  
 	 i f   ( ! e )   e   =   w i n d o w . e v e n t ;  
 	 v a r   e x p   =   h s . d r a g A r g s . e x p ;  
 	 i f   ( e x p . i f r a m e   & &   e x p . s e t I f r a m e R e l e a s e )   e x p . s e t I f r a m e R e l e a s e ( ) ;  
 	  
 	 h s . d r a g A r g s . d X   =   e . c l i e n t X   -   h s . d r a g A r g s . c l i c k X ;  
 	 h s . d r a g A r g s . d Y   =   e . c l i e n t Y   -   h s . d r a g A r g s . c l i c k Y ;  
 	  
 	  
 	 i f   ( h s . d r a g A r g s . t y p e   = =   ' r e s i z e ' )   e x p . r e s i z e ( h s . d r a g A r g s ) ;  
 	 e l s e   e x p . m o v e ( h s . d r a g A r g s ) ;  
 	 r e t u r n   f a l s e ;  
 } ,  
  
 a d d E v e n t L i s t e n e r   :   f u n c t i o n   ( e l ,   e v e n t ,   f u n c )   {  
 	 t r y   {  
 	 	 e l . a d d E v e n t L i s t e n e r ( e v e n t ,   f u n c ,   f a l s e ) ;  
 	 }   c a t c h   ( e )   {  
 	 	 t r y   {  
 	 	 	 e l . d e t a c h E v e n t ( ' o n ' +   e v e n t ,   f u n c ) ;  
 	 	 	 e l . a t t a c h E v e n t ( ' o n ' +   e v e n t ,   f u n c ) ;  
 	 	 }   c a t c h   ( e )   {  
 	 	 	 e l [ ' o n ' +   e v e n t ]   =   f u n c ;  
 	 	 }  
 	 }    
 } ,  
  
 r e m o v e E v e n t L i s t e n e r   :   f u n c t i o n   ( e l ,   e v e n t ,   f u n c )   {  
 	 t r y   {  
 	 	 e l . r e m o v e E v e n t L i s t e n e r ( e v e n t ,   f u n c ,   f a l s e ) ;  
 	 }   c a t c h   ( e )   {  
 	 	 t r y   {  
 	 	 	 e l . d e t a c h E v e n t ( ' o n ' +   e v e n t ,   f u n c ) ;  
 	 	 }   c a t c h   ( e )   {  
 	 	 	 e l [ ' o n ' +   e v e n t ]   =   n u l l ;  
 	 	 }  
 	 }  
 } ,  
  
 p r e l o a d F u l l I m a g e   :   f u n c t i o n   ( i )   {  
 	 i f   ( h s . c o n t i n u e P r e l o a d i n g   & &   h s . p r e l o a d T h e s e I m a g e s [ i ]   & &   h s . p r e l o a d T h e s e I m a g e s [ i ]   ! =   ' u n d e f i n e d ' )   {  
 	 	 v a r   i m g   =   d o c u m e n t . c r e a t e E l e m e n t ( ' i m g ' ) ;  
 	 	 i m g . o n l o a d   =   f u n c t i o n ( )   {   h s . p r e l o a d F u l l I m a g e ( i   +   1 ) ;   } ;  
 	 	 i m g . s r c   =   h s . p r e l o a d T h e s e I m a g e s [ i ] ;  
 	 }  
 } ,  
 p r e l o a d I m a g e s   :   f u n c t i o n   ( n u m b e r )   {  
 	 i f   ( n u m b e r   & &   t y p e o f   n u m b e r   ! =   ' o b j e c t ' )   h s . n u m b e r O f I m a g e s T o P r e l o a d   =   n u m b e r ;  
 	 v a r   a ,   r e ,   j   =   0 ;  
 	  
 	 v a r   a T a g s   =   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   ( i   =   0 ;   i   <   a T a g s . l e n g t h ;   i + + )   {  
 	 	 a   =   a T a g s [ i ] ;  
 	 	 r e   =   h s . i s H s A n c h o r ( a ) ;  
 	 	 i f   ( r e   & &   r e [ 0 ]   = =   ' h s . e x p a n d ' )   {  
 	 	 	 i f   ( j   <   h s . n u m b e r O f I m a g e s T o P r e l o a d )   {  
 	 	 	 	 h s . p r e l o a d T h e s e I m a g e s [ j ]   =   h s . g e t S r c ( a ) ;    
 	 	 	 	 j + + ;  
 	 	 	 }  
 	 	 }  
 	 }  
 	  
 	 / /   p r e l o a d   o u t l i n e s  
 	 n e w   h s . O u t l i n e ( h s . o u t l i n e T y p e ,   f u n c t i o n   ( )   {   h s . p r e l o a d F u l l I m a g e ( 0 ) }   ) ;  
 	  
 	  
 	 / /   p r e l o a d   c u r s o r  
 	 v a r   c u r   =   h s . c r e a t e E l e m e n t ( ' i m g ' ,   {   s r c :   h s . g r a p h i c s D i r   +   h s . r e s t o r e C u r s o r   } ) ;  
 } ,  
  
  
 g e n C o n t a i n e r   :   f u n c t i o n   ( )   {  
 	 i f   ( ! h s . c o n t a i n e r )   {  
 	 	 h s . c o n t a i n e r   =   h s . c r e a t e E l e m e n t ( ' d i v ' ,    
 	 	 	 n u l l ,    
 	 	 	 {   p o s i t i o n :   ' a b s o l u t e ' ,   l e f t :   0 ,   t o p :   0 ,   w i d t h :   ' 1 0 0 % ' ,   z I n d e x :   h s . z I n d e x C o u n t e r   } ,    
 	 	 	 d o c u m e n t . b o d y ,  
 	 	 	 t r u e  
 	 	 ) ;  
 	 	 h s . l o a d i n g   =   h s . c r e a t e E l e m e n t ( ' a ' ,  
 	 	 	 {  
 	 	 	 	 c l a s s N a m e :   ' h i g h s l i d e - l o a d i n g ' ,  
 	 	 	 	 t i t l e :   h s . l o a d i n g T i t l e ,  
 	 	 	 	 i n n e r H T M L :   h s . l o a d i n g T e x t  
 	 	 	 } ,  
 	 	 	 {  
 	 	 	 	 p o s i t i o n :   ' a b s o l u t e ' ,  
 	 	 	 	 o p a c i t y :   h s . l o a d i n g O p a c i t y ,  
 	 	 	 	 l e f t :   ' - 9 9 9 9 p x ' ,  
 	 	 	 	 z I n d e x :   1  
 	 	 	 } ,   h s . c o n t a i n e r  
 	 	 ) ;  
 	 	 h s . c l e a r i n g   =   h s . c r e a t e E l e m e n t ( ' d i v ' ,   n u l l ,    
 	 	 	 {   c l e a r :   ' b o t h ' ,   p a d d i n g T o p :   ' 1 p x '   } ,   n u l l ,   t r u e ) ;  
 	 }  
 } ,  
  
 f a d e   :   f u n c t i o n   ( e l ,   o ,   o F i n a l ,   i ,   d i r )   {  
 	 i f   ( d i r   = =   n u l l )   v a r   d i r   =   o F i n a l   >   o   ?   1   :   - 1 ;  
 	 o   =   p a r s e F l o a t ( o ) ;  
 	 e l . s t y l e . v i s i b i l i t y   =   ( o   < =   0 )   ?   ' h i d d e n '   :   ' v i s i b l e ' ;  
 	 i f   ( o   <   0   | |   ( d i r   = =   1   & &   o   >   o F i n a l ) )   r e t u r n ;  
 	 i f   ( i   = =   n u l l )   i   =   h s . f a d e r s . l e n g t h ;  
 	 i f   ( t y p e o f ( e l . i )   ! =   ' u n d e f i n e d '   & &   e l . i   ! =   i )   {  
 	 	 c l e a r T i m e o u t ( h s . f a d e r s [ e l . i ] ) ;  
 	 	 o   =   e l . t e m p O p a c i t y ;  
 	 }  
 	 e l . i   =   i ;  
 	 e l . t e m p O p a c i t y   =   o ;  
 	 e l . s t y l e . v i s i b i l i t y   =   ( o   < =   0 )   ?   ' h i d d e n '   :   ' v i s i b l e ' ;  
 	 h s . s e t S t y l e s ( e l ,   {   o p a c i t y :   o   } ) ;  
 	 h s . f a d e r s [ i ]   =   s e t T i m e o u t ( f u n c t i o n ( )   {    
 	 	 	 h s . f a d e ( e l ,   M a t h . r o u n d ( ( o   +   0 . 1   *   d i r ) * 1 0 0 ) / 1 0 0 ,   o F i n a l ,   i ,   d i r ) ;  
 	   	 } ,   2 5 ) ;  
 } ,  
  
 c l o s e   :   f u n c t i o n ( e l )   {  
 	 t r y   {   h s . g e t E x p a n d e r ( e l ) . c l o s e ( ) ;   }   c a t c h   ( e )   { }  
 	 r e t u r n   f a l s e ;  
 }  
 } ;   / /   e n d   h s   o b j e c t  
  
  
 / / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 h s . O u t l i n e   =     f u n c t i o n   ( o u t l i n e T y p e ,   o n L o a d )   {  
 	 t h i s . o n L o a d   =   o n L o a d ;  
 	 t h i s . o u t l i n e T y p e   =   o u t l i n e T y p e ;  
 	 v a r   v   =   h s . i e V e r s i o n ( ) ,   t r ;  
 	  
 	 t h i s . h a s A l p h a I m a g e L o a d e r   =   h s . i e   & &   v   > =   5 . 5   & &   v   <   7 ;  
 	 i f   ( ! o u t l i n e T y p e )   {  
 	 	 i f   ( o n L o a d )   o n L o a d ( ) ;  
 	 	 r e t u r n ;  
 	 }  
 	  
 	 h s . g e n C o n t a i n e r ( ) ;  
 	 t h i s . t a b l e   =   h s . c r e a t e E l e m e n t (  
 	 	 ' t a b l e ' ,   {   c e l l S p a c i n g :   0   } ,  
 	 	 {  
 	 	 	 v i s i b i l i t y :   ' h i d d e n ' ,  
 	 	 	 p o s i t i o n :   ' a b s o l u t e ' ,  
 	 	 	 b o r d e r C o l l a p s e :   ' c o l l a p s e '  
 	 	 } ,  
 	 	 h s . c o n t a i n e r ,  
 	 	 t r u e  
 	 ) ;  
 	 t h i s . t b o d y   =   h s . c r e a t e E l e m e n t ( ' t b o d y ' ,   n u l l ,   n u l l ,   t h i s . t a b l e ,   1 ) ;  
 	  
 	 t h i s . t d   =   [ ] ;  
 	 f o r   ( v a r   i   =   0 ;   i   < =   8 ;   i + + )   {  
 	 	 i f   ( i   %   3   = =   0 )   t r   =   h s . c r e a t e E l e m e n t ( ' t r ' ,   n u l l ,   {   h e i g h t :   ' a u t o '   } ,   t h i s . t b o d y ,   t r u e ) ;  
 	 	 t h i s . t d [ i ]   =   h s . c r e a t e E l e m e n t ( ' t d ' ,   n u l l ,   n u l l ,   t r ,   t r u e ) ;  
 	 	 v a r   s t y l e   =   i   ! =   4   ?   {   l i n e H e i g h t :   0 ,   f o n t S i z e :   0 }   :   {   p o s i t i o n   :   ' r e l a t i v e '   } ;  
 	 	 h s . s e t S t y l e s ( t h i s . t d [ i ] ,   s t y l e ) ;  
 	 }  
 	 t h i s . t d [ 4 ] . c l a s s N a m e   =   o u t l i n e T y p e ;  
 	  
 	 t h i s . p r e l o a d G r a p h i c ( ) ;    
 } ;  
  
 h s . O u t l i n e . p r o t o t y p e   =   {  
 p r e l o a d G r a p h i c   :   f u n c t i o n   ( )   { 	  
 	 v a r   s r c   =   h s . g r a p h i c s D i r   +   " o u t l i n e s / " +   t h i s . o u t l i n e T y p e   + " . p n g " ;  
 	 	 	 	  
 	 v a r   a p p e n d T o   =   h s . s a f a r i   ?   h s . c o n t a i n e r   :   n u l l ;  
 	 t h i s . g r a p h i c   =   h s . c r e a t e E l e m e n t ( ' i m g ' ,   n u l l ,   {   p o s i t i o n :   ' a b s o l u t e ' ,   l e f t :   ' - 9 9 9 9 p x ' ,    
 	 	 t o p :   ' - 9 9 9 9 p x '   } ,   a p p e n d T o ,   t r u e ) ;   / /   f o r   o n l o a d   t r i g g e r  
 	  
 	 v a r   p T h i s   =   t h i s ;  
 	 t h i s . g r a p h i c . o n l o a d   =   f u n c t i o n ( )   {   p T h i s . o n G r a p h i c L o a d ( ) ;   } ;  
 	  
 	 t h i s . g r a p h i c . s r c   =   s r c ;  
 } ,  
  
 o n G r a p h i c L o a d   :   f u n c t i o n   ( )   {  
 	 v a r   o   =   t h i s . o f f s e t   =   t h i s . g r a p h i c . w i d t h   /   4 ,  
 	 	 p o s   =   [ [ 0 , 0 ] , [ 0 , - 4 ] , [ - 2 , 0 ] , [ 0 , - 8 ] , 0 , [ - 2 , - 8 ] , [ 0 , - 2 ] , [ 0 , - 6 ] , [ - 2 , - 2 ] ] ,  
 	 	 d i m   =   {   h e i g h t :   ( 2 * o )   + ' p x ' ,   w i d t h :   ( 2 * o )   + ' p x '   } ;  
 	 	  
 	 f o r   ( v a r   i   =   0 ;   i   < =   8 ;   i + + )   {  
 	 	 i f   ( p o s [ i ] )   {  
 	 	 	 i f   ( t h i s . h a s A l p h a I m a g e L o a d e r )   {  
 	 	 	 	 v a r   w   =   ( i   = =   1   | |   i   = =   7 )   ?   ' 1 0 0 % '   :   t h i s . g r a p h i c . w i d t h   + ' p x ' ;  
 	 	 	 	 v a r   d i v   =   h s . c r e a t e E l e m e n t ( ' d i v ' ,   n u l l ,   {   w i d t h :   ' 1 0 0 % ' ,   h e i g h t :   ' 1 0 0 % ' ,   p o s i t i o n :   ' r e l a t i v e ' ,   o v e r f l o w :   ' h i d d e n ' } ,   t h i s . t d [ i ] ,   t r u e ) ;  
 	 	 	 	 h s . c r e a t e E l e m e n t   ( ' d i v ' ,   n u l l ,   {    
 	 	 	 	 	 	 f i l t e r :   " p r o g i d : D X I m a g e T r a n s f o r m . M i c r o s o f t . A l p h a I m a g e L o a d e r ( s i z i n g M e t h o d = s c a l e ,   s r c = ' " +   t h i s . g r a p h i c . s r c   +   " ' ) " ,    
 	 	 	 	 	 	 p o s i t i o n :   ' a b s o l u t e ' ,  
 	 	 	 	 	 	 w i d t h :   w ,    
 	 	 	 	 	 	 h e i g h t :   t h i s . g r a p h i c . h e i g h t   + ' p x ' ,  
 	 	 	 	 	 	 l e f t :   ( p o s [ i ] [ 0 ] * o ) + ' p x ' ,  
 	 	 	 	 	 	 t o p :   ( p o s [ i ] [ 1 ] * o ) + ' p x '  
 	 	 	 	 	 } ,    
 	 	 	 	 d i v ,  
 	 	 	 	 t r u e ) ;  
 	 	 	 }   e l s e   {  
 	 	 	 	 h s . s e t S t y l e s ( t h i s . t d [ i ] ,   {   b a c k g r o u n d :   ' u r l ( ' +   t h i s . g r a p h i c . s r c   + ' )   ' +   ( p o s [ i ] [ 0 ] * o ) + ' p x   ' + ( p o s [ i ] [ 1 ] * o ) + ' p x ' } ) ;  
 	 	 	 }  
 	 	 	  
 	 	 	 i f   ( w i n d o w . o p e r a   & &   ( i   = =   3   | |   i   = = 5 ) )    
 	 	 	 	 h s . c r e a t e E l e m e n t ( ' d i v ' ,   n u l l ,   d i m ,   t h i s . t d [ i ] ,   t r u e ) ;  
 	 	 	  
 	 	 	 h s . s e t S t y l e s   ( t h i s . t d [ i ] ,   d i m ) ;  
 	 	 }  
 	 }  
 	  
 	 h s . p e n d i n g O u t l i n e s [ t h i s . o u t l i n e T y p e ]   =   t h i s ;  
 	 i f   ( t h i s . o n L o a d )   t h i s . o n L o a d ( ) ;  
 } ,  
 	  
 s e t P o s i t i o n   :   f u n c t i o n   ( e x p ,   x ,   y ,   w ,   h ,   v i s )   {  
 	 i f   ( v i s )   t h i s . t a b l e . s t y l e . v i s i b i l i t y   =   ( h   > =   4   *   t h i s . o f f s e t )    
 	 	 ?   ' v i s i b l e '   :   ' h i d d e n ' ;  
 	 t h i s . t a b l e . s t y l e . l e f t   =   ( x   -   t h i s . o f f s e t )   + ' p x ' ;  
 	 t h i s . t a b l e . s t y l e . t o p   =   ( y   -   t h i s . o f f s e t )   + ' p x ' ;  
 	 t h i s . t a b l e . s t y l e . w i d t h   =   ( w   +   2   *   ( e x p . o f f s e t B o r d e r W   +   t h i s . o f f s e t ) )   + ' p x ' ;  
 	 w   + =   2   *   ( e x p . o f f s e t B o r d e r W   -   t h i s . o f f s e t ) ;  
 	 h   + =   +   2   *   ( e x p . o f f s e t B o r d e r H   -   t h i s . o f f s e t ) ;  
 	 t h i s . t d [ 4 ] . s t y l e . w i d t h   =   w   > =   0   ?   w   + ' p x '   :   0 ;  
 	 t h i s . t d [ 4 ] . s t y l e . h e i g h t   =   h   > =   0   ?   h   + ' p x '   :   0 ;  
 	 i f   ( t h i s . h a s A l p h a I m a g e L o a d e r )   t h i s . t d [ 3 ] . s t y l e . h e i g h t    
 	 	 =   t h i s . t d [ 5 ] . s t y l e . h e i g h t   =   t h i s . t d [ 4 ] . s t y l e . h e i g h t ;  
 } ,  
 	  
 d e s t r o y   :   f u n c t i o n ( h i d e )   {  
 	 i f   ( h i d e )   t h i s . t a b l e . s t y l e . v i s i b i l i t y   =   ' h i d d e n ' ;  
 	 e l s e   {  
 	 	 h s . p u r g e ( t h i s . t a b l e ) ;  
 	 	 t r y   {   t h i s . t a b l e . p a r e n t N o d e . r e m o v e C h i l d ( t h i s . t a b l e ) ;   }   c a t c h   ( e )   { }  
 	 }  
 }  
 } ;  
  
 / / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 / /   T h e   e x p a n d e r   o b j e c t  
 h s . E x p a n d e r   =   f u n c t i o n ( a ,   p a r a m s ,   c u s t o m ,   c o n t e n t T y p e )   {  
 	 t h i s . a   =   a ;  
 	 t h i s . c u s t o m   =   c u s t o m ;  
 	 t h i s . c o n t e n t T y p e   =   c o n t e n t T y p e   | |   ' i m a g e ' ;  
 	 t h i s . i s H t m l   =   ( c o n t e n t T y p e   = =   ' h t m l ' ) ;  
 	 t h i s . i s I m a g e   =   ! t h i s . i s H t m l ;  
 	  
 	 h s . c o n t i n u e P r e l o a d i n g   =   f a l s e ;  
 	 h s . g e n C o n t a i n e r ( ) ;  
 	 v a r   k e y   =   t h i s . k e y   =   h s . e x p a n d e r s . l e n g t h ;  
 	  
 	 / /   o v e r r i d e   i n l i n e   p a r a m e t e r s  
 	 f o r   ( i   =   0 ;   i   <   h s . o v e r r i d e s . l e n g t h ;   i + + )   {  
 	 	 v a r   n a m e   =   h s . o v e r r i d e s [ i ] ;  
 	 	 t h i s [ n a m e ]   =   p a r a m s   & &   t y p e o f   p a r a m s [ n a m e ]   ! =   ' u n d e f i n e d '   ?  
 	 	 	 p a r a m s [ n a m e ]   :   h s [ n a m e ] ;  
 	 }  
 	  
 	 / /   g e t   t h u m b  
 	 v a r   e l   =   t h i s . t h u m b   =   ( p a r a m s   ?   h s . $ ( p a r a m s . t h u m b n a i l I d )   :   n u l l )    
 	 	 | |   a . g e t E l e m e n t s B y T a g N a m e ( ' I M G ' ) [ 0 ]   | |   a ;  
 	 t h i s . t h u m b s U s e r S e t I d   =   e l . i d   | |   a . i d ;  
 	  
 	 / /   c h e c k   i f   a l r e a d y   o p e n  
 	 f o r   ( i   =   0 ;   i   <   h s . e x p a n d e r s . l e n g t h ;   i + + )   {  
 	 	 i f   ( h s . e x p a n d e r s [ i ]   & &   h s . e x p a n d e r s [ i ] . a   = =   a )   {  
 	 	 	 h s . e x p a n d e r s [ i ] . f o c u s ( ) ;  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 } 	 	  
 	 } 	  
 	 / /   c a n c e l   o t h e r  
 	 f o r   ( i   =   0 ;   i   <   h s . e x p a n d e r s . l e n g t h ;   i + + )   {  
 	 	 i f   ( h s . e x p a n d e r s [ i ]   & &   h s . e x p a n d e r s [ i ] . t h u m b   ! =   e l   & &   ! h s . e x p a n d e r s [ i ] . o n L o a d S t a r t e d )   {  
 	 	 	 h s . e x p a n d e r s [ i ] . c a n c e l L o a d i n g ( ) ;  
 	 	 }  
 	 }  
 	 h s . e x p a n d e r s [ t h i s . k e y ]   =   t h i s ;  
 	  
 	 i f   ( ! h s . a l l o w M u l t i p l e I n s t a n c e s )   {  
 	 	 t r y   {   h s . e x p a n d e r s [ k e y   -   1 ] . c l o s e ( ) ;   }   c a t c h   ( e ) { }  
 	 	 t r y   {   h s . e x p a n d e r s [ h s . f o c u s K e y ] . c l o s e ( ) ;   }   c a t c h   ( e ) { }   / /   p r e s e r v e d  
 	 }  
 	 t h i s . o v e r l a y s   =   [ ] ;  
  
 	 v a r   p o s   =   h s . p o s i t i o n ( e l ) ;  
 	  
 	 / /   s t o r e   p r o p e r t i e s   o f   t h u m b n a i l  
 	 t h i s . t h u m b W i d t h   =   e l . w i d t h   ?   e l . w i d t h   :   e l . o f f s e t W i d t h ; 	 	  
 	 t h i s . t h u m b H e i g h t   =   e l . h e i g h t   ?   e l . h e i g h t   :   e l . o f f s e t H e i g h t ;  
 	 t h i s . t h u m b L e f t   =   p o s . x ;  
 	 t h i s . t h u m b T o p   =   p o s . y ;  
 	 t h i s . t h u m b O f f s e t B o r d e r W   =   ( t h i s . t h u m b . o f f s e t W i d t h   -   t h i s . t h u m b W i d t h )   /   2 ;  
 	 t h i s . t h u m b O f f s e t B o r d e r H   =   ( t h i s . t h u m b . o f f s e t H e i g h t   -   t h i s . t h u m b H e i g h t )   /   2 ;  
 	  
 	 / /   i n s t a n c i a t e   t h e   w r a p p e r  
 	 t h i s . w r a p p e r   =   h s . c r e a t e E l e m e n t (  
 	 	 ' d i v ' ,  
 	 	 {  
 	 	 	 i d :   ' h i g h s l i d e - w r a p p e r - ' +   t h i s . k e y ,  
 	 	 	 c l a s s N a m e :   t h i s . w r a p p e r C l a s s N a m e  
 	 	 } ,  
 	 	 {  
 	 	 	 v i s i b i l i t y :   ' h i d d e n ' ,  
 	 	 	 p o s i t i o n :   ' a b s o l u t e ' ,  
 	 	 	 z I n d e x :   h s . z I n d e x C o u n t e r + +  
 	 	 } ,   n u l l ,   t r u e   ) ;  
 	  
 	 t h i s . w r a p p e r . o n m o u s e o v e r   =   f u n c t i o n   ( e )   {    
 	 	 t r y   {   h s . e x p a n d e r s [ k e y ] . w r a p p e r M o u s e H a n d l e r ( e ) ;   }   c a t c h   ( e )   { }    
 	 } ;  
 	 t h i s . w r a p p e r . o n m o u s e o u t   =   f u n c t i o n   ( e )   {    
 	 	 t r y   {   h s . e x p a n d e r s [ k e y ] . w r a p p e r M o u s e H a n d l e r ( e ) ;   }   c a t c h   ( e )   { }  
 	 } ;  
 	 i f   ( t h i s . c o n t e n t T y p e   = =   ' i m a g e '   & &   t h i s . o u t l i n e W h i l e A n i m a t i n g   = =   2 )  
 	 	 t h i s . o u t l i n e W h i l e A n i m a t i n g   =   0 ;  
 	 / /   g e t   t h e   o u t l i n e  
 	 i f   ( h s . p e n d i n g O u t l i n e s [ t h i s . o u t l i n e T y p e ] )   {  
 	 	 t h i s . c o n n e c t O u t l i n e ( ) ;  
 	 	 t h i s [ t h i s . c o n t e n t T y p e   + ' C r e a t e ' ] ( ) ;  
 	 }   e l s e   i f   ( ! t h i s . o u t l i n e T y p e )   {  
 	 	 t h i s [ t h i s . c o n t e n t T y p e   + ' C r e a t e ' ] ( ) ;  
 	 }   e l s e   {  
 	 	 t h i s . d i s p l a y L o a d i n g ( ) ;  
 	 	 v a r   e x p   =   t h i s ;  
 	 	 n e w   h s . O u t l i n e ( t h i s . o u t l i n e T y p e ,    
 	 	 	 f u n c t i o n   ( )   {    
 	 	 	 	 e x p . c o n n e c t O u t l i n e ( ) ;  
 	 	 	 	 e x p [ e x p . c o n t e n t T y p e   + ' C r e a t e ' ] ( ) ;  
 	 	 	 }    
 	 	 ) ;  
 	 }  
 } ;  
  
 h s . E x p a n d e r . p r o t o t y p e   =   {  
  
 c o n n e c t O u t l i n e   :   f u n c t i o n ( x ,   y )   { 	  
 	 v a r   w   =   h s . p e n d i n g O u t l i n e s [ t h i s . o u t l i n e T y p e ] ;  
 	 t h i s . o b j O u t l i n e   =   w ;  
 	 w . t a b l e . s t y l e . z I n d e x   =   t h i s . w r a p p e r . s t y l e . z I n d e x ;  
 	 h s . p e n d i n g O u t l i n e s [ t h i s . o u t l i n e T y p e ]   =   n u l l ;  
 } ,  
  
 d i s p l a y L o a d i n g   :   f u n c t i o n ( )   {  
 	 i f   ( t h i s . o n L o a d S t a r t e d   | |   t h i s . l o a d i n g )   r e t u r n ;  
 	 	  
 	 t h i s . o r i g i n a l C u r s o r   =   t h i s . a . s t y l e . c u r s o r ;  
 	 t h i s . a . s t y l e . c u r s o r   =   ' w a i t ' ;  
 	  
 	 t h i s . l o a d i n g   =   h s . l o a d i n g ;  
 	 t h i s . l o a d i n g . h r e f   =   ' j a v a s c r i p t : h s . e x p a n d e r s [ ' +   t h i s . k e y   + ' ] . c a n c e l L o a d i n g ( ) ' ;  
 	 t h i s . l o a d i n g . s t y l e . t o p   =   ( t h i s . t h u m b T o p    
 	 	 +   ( t h i s . t h u m b H e i g h t   -   t h i s . l o a d i n g . o f f s e t H e i g h t )   /   2 )   + ' p x ' ;  
 	 v a r   e x p   =   t h i s ,   l e f t   =   ( t h i s . t h u m b L e f t   +   t h i s . t h u m b O f f s e t B o r d e r W    
 	 	 +   ( t h i s . t h u m b W i d t h   -   t h i s . l o a d i n g . o f f s e t W i d t h )   /   2 )   + ' p x ' ;  
 	 s e t T i m e o u t ( f u n c t i o n   ( )   {   i f   ( e x p . l o a d i n g )   e x p . l o a d i n g . s t y l e . l e f t   =   l e f t   } ,   1 0 0 ) ;    
 } ,  
  
 i m a g e C r e a t e   :   f u n c t i o n ( )   {  
 	 v a r   e x p   =   t h i s ;  
 	  
 	 v a r   i m g   =   d o c u m e n t . c r e a t e E l e m e n t ( ' i m g ' ) ;  
         t h i s . c o n t e n t   =   i m g ;  
         i m g . o n l o a d   =   f u n c t i o n   ( )   {   t r y   {   e x p . c o n t e n t L o a d e d ( ) ;   }   c a t c h   ( e )   { }   } ;  
         i m g . c l a s s N a m e   =   ' h i g h s l i d e - i m a g e ' ;  
         i m g . s t y l e . v i s i b i l i t y   =   ' h i d d e n ' ;   / /   p r e v e n t   f l i c k e r i n g   i n   I E  
         i m g . s t y l e . d i s p l a y   =   ' b l o c k ' ;  
 	 i m g . s t y l e . p o s i t i o n   =   ' a b s o l u t e ' ;  
 	 i m g . s t y l e . m a x W i d t h   =   ' n o n e ' ;  
         i m g . s t y l e . z I n d e x   =   3 ;  
         i m g . t i t l e   =   h s . r e s t o r e T i t l e ;  
         i f   ( h s . s a f a r i )   h s . c o n t a i n e r . a p p e n d C h i l d ( i m g ) ;  
         / /   u n c o m m e n t   t h i s   t o   f l u s h   i m g   s i z e :  
         / /   i f   ( h s . i e )   i m g . s r c   =   n u l l ;  
 	 i m g . s r c   =   h s . g e t S r c ( t h i s . a ) ;  
 	  
 	 t h i s . d i s p l a y L o a d i n g ( ) ;  
 } ,  
  
 h t m l C r e a t e   :   f u n c t i o n   ( )   {  
 	 t h i s . t e m p C o n t a i n e r   =   h s . c r e a t e E l e m e n t ( ' d i v ' ,   {   c l a s s N a m e :   t h i s . w r a p p e r C l a s s N a m e   } ,  
 	 	 {  
 	 	 	 p a d d i n g :   ' 0   ' +   h s . m a r g i n R i g h t   + ' p x   0   ' +   h s . m a r g i n L e f t   + ' p x ' ,  
 	 	 	 v i s i b i l i t y :   ' h i d d e n '  
 	 	 } ,   h s . c o n t a i n e r  
 	 ) ;  
 	  
 	 t h i s . c o n t e n t   =   h s . g e t C a c h e B i n d i n g ( t h i s . a ) ;  
 	 i f   ( ! t h i s . c o n t e n t )    
 	 	 t h i s . c o n t e n t   =   h s . g e t N o d e ( t h i s . c o n t e n t I d ) ;  
 	 i f   ( ! t h i s . c o n t e n t )    
 	 	 t h i s . c o n t e n t   =   h s . g e t S e l f R e n d e r e d ( ) ;  
 	 t h i s . i n n e r C o n t e n t   =   t h i s . c o n t e n t ;  
 	  
 	 i f   ( t h i s . s w f O b j e c t   | |   t h i s . o b j e c t T y p e   = =   ' i f r a m e ' )   t h i s . s e t O b j C o n t a i n e r S i z e ( t h i s . i n n e r C o n t e n t ) ;  
 	 t h i s . t e m p C o n t a i n e r . a p p e n d C h i l d ( t h i s . i n n e r C o n t e n t ) ;   / /   t o   g e t   f u l l   w i d t h  
 	 h s . s e t S t y l e s   ( t h i s . i n n e r C o n t e n t ,   {   p o s i t i o n :   ' r e l a t i v e ' ,   v i s i b i l i t y :   ' h i d d e n '   } ) ;  
 	 t h i s . i n n e r C o n t e n t . c l a s s N a m e   + =   '   h i g h s l i d e - d i s p l a y - b l o c k ' ;  
 	  
 	 t h i s . c o n t e n t   =   h s . c r e a t e E l e m e n t (  
         	 ' d i v ' ,  
         	 { 	 c l a s s N a m e :   ' h i g h s l i d e - h t m l '   } ,  
 	 	 {  
 	 	 	 p o s i t i o n :   ' r e l a t i v e ' ,  
 	 	 	 z I n d e x :   3 ,  
 	 	 	 o v e r f l o w :   ' h i d d e n ' ,  
 	 	 	 w i d t h :   t h i s . t h u m b W i d t h   + ' p x ' ,  
 	 	 	 h e i g h t :   t h i s . t h u m b H e i g h t   + ' p x '  
 	 	 }  
 	 ) ;  
          
 	 i f   ( t h i s . o b j e c t T y p e   = =   ' a j a x '   & &   ! h s . g e t C a c h e B i n d i n g ( t h i s . a ) )   {  
         	 v a r   a j a x   =   n e w   h s . A j a x ( t h i s . a ,   t h i s . i n n e r C o n t e n t ) ;  
         	 v a r   e x p   =   t h i s ;  
         	 a j a x . o n L o a d   =   f u n c t i o n   ( )   { 	 e x p . c o n t e n t L o a d e d ( ) ;   } ;  
         	 a j a x . o n E r r o r   =   f u n c t i o n   ( )   {   l o c a t i o n . h r e f   =   h s . g e t S r c ( t h i s . a ) ;   } ;  
         	 a j a x . r u n ( ) ;  
 	 }  
         e l s e  
          
         i f   ( t h i s . o b j e c t T y p e   = =   ' i f r a m e '   & &   t h i s . o b j e c t L o a d T i m e   = =   ' b e f o r e ' )   {  
 	 	 t h i s . w r i t e E x t e n d e d C o n t e n t ( ) ;  
 	 }  
         e l s e  
         	 t h i s . c o n t e n t L o a d e d ( ) ;  
 } ,  
  
 s e t I f r a m e R e l e a s e   :   f u n c t i o n   ( )   {  
 	 t r y   {  
 	 	 v a r   d o c   =   t h i s . i f r a m e . c o n t e n t D o c u m e n t   | |   t h i s . i f r a m e . c o n t e n t W i n d o w . d o c u m e n t ;  
 	 	 h s . a d d E v e n t L i s t e n e r ( d o c ,   ' m o u s e u p ' ,   f u n c t i o n   ( )   {  
 	 	 	 h s . m o u s e C l i c k H a n d l e r ( { t y p e :   ' m o u s e u p ' ,   t a r g e t :   1 } ) ;  
 	 	 } ) ;  
 	 }   c a t c h   ( e )   { }  
 	 t h i s . s e t I f r a m e R e l e a s e   =   n u l l ;   / /   o n l y   r u n   o n c e  
 } ,  
  
 c o n t e n t L o a d e d   :   f u n c t i o n ( )   {  
 	 t r y   {    
 	  
 	 	 i f   ( ! t h i s . c o n t e n t )   r e t u r n ;  
 	 	 i f   ( t h i s . o n L o a d S t a r t e d )   r e t u r n ;   / /   o l d   G e c k o   l o o p  
 	 	 e l s e   t h i s . o n L o a d S t a r t e d   =   t r u e ;  
 	 	  
 	 	 	        
 	 	 i f   ( t h i s . l o a d i n g )   {  
 	 	 	 t h i s . l o a d i n g . s t y l e . l e f t   =   ' - 9 9 9 9 p x ' ;  
 	 	 	 t h i s . l o a d i n g   =   n u l l ;  
 	 	 	 t h i s . a . s t y l e . c u r s o r   =   t h i s . o r i g i n a l C u r s o r   | |   ' ' ;  
 	 	 }  
 	 	 t h i s . m a r g i n B o t t o m   =   h s . m a r g i n B o t t o m ;  
 	 	 i f   ( t h i s . i s I m a g e )   { 	  
 	 	 	 t h i s . n e w W i d t h   =   t h i s . c o n t e n t . w i d t h ;  
 	 	 	 t h i s . n e w H e i g h t   =   t h i s . c o n t e n t . h e i g h t ;  
 	 	 	 t h i s . f u l l E x p a n d W i d t h   =   t h i s . n e w W i d t h ;  
 	 	 	 t h i s . f u l l E x p a n d H e i g h t   =   t h i s . n e w H e i g h t ;  
 	 	 	  
 	 	 	 t h i s . c o n t e n t . s t y l e . w i d t h   =   t h i s . t h u m b W i d t h   + ' p x ' ;  
 	 	 	 t h i s . c o n t e n t . s t y l e . h e i g h t   =   t h i s . t h u m b H e i g h t   + ' p x ' ;  
 	 	 	 t h i s . g e t C a p t i o n ( ) ;  
 	 	 }   e l s e   i f   ( t h i s . h t m l G e t S i z e )   t h i s . h t m l G e t S i z e ( ) ; 	  
 	 	  
 	 	  
 	 	 t h i s . w r a p p e r . a p p e n d C h i l d ( t h i s . c o n t e n t ) ;  
 	 	 t h i s . c o n t e n t . s t y l e . p o s i t i o n   =   ' r e l a t i v e ' ;   / /   S a f  
 	 	 i f   ( t h i s . c a p t i o n )   t h i s . w r a p p e r . a p p e n d C h i l d ( t h i s . c a p t i o n ) ;  
 	 	 t h i s . w r a p p e r . s t y l e . l e f t   =   t h i s . t h u m b L e f t   + ' p x ' ;  
 	 	 t h i s . w r a p p e r . s t y l e . t o p   =   t h i s . t h u m b T o p   + ' p x ' ;  
 	 	 h s . c o n t a i n e r . a p p e n d C h i l d ( t h i s . w r a p p e r ) ;  
 	 	  
 	 	 / /   c o r r e c t   f o r   b o r d e r s  
 	 	 t h i s . o f f s e t B o r d e r W   =   ( t h i s . c o n t e n t . o f f s e t W i d t h   -   t h i s . t h u m b W i d t h )   /   2 ;  
 	 	 t h i s . o f f s e t B o r d e r H   =   ( t h i s . c o n t e n t . o f f s e t H e i g h t   -   t h i s . t h u m b H e i g h t )   /   2 ;  
 	 	 v a r   m o d M a r g i n R i g h t   =   h s . m a r g i n R i g h t   +   2   *   t h i s . o f f s e t B o r d e r W ;  
 	 	 t h i s . m a r g i n B o t t o m   + =   2   *   t h i s . o f f s e t B o r d e r H ;  
 	 	  
 	 	 v a r   r a t i o   =   t h i s . n e w W i d t h   /   t h i s . n e w H e i g h t ;  
 	 	 v a r   m i n W i d t h   =   t h i s . a l l o w S i z e R e d u c t i o n    
 	 	 	 ?   t h i s . m i n W i d t h   :   t h i s . n e w W i d t h ;  
 	 	 v a r   m i n H e i g h t   =   t h i s . a l l o w S i z e R e d u c t i o n    
 	 	 	 ?   t h i s . m i n H e i g h t   :   t h i s . n e w H e i g h t ;  
 	 	  
 	 	 v a r   j u s t i f y   =   {   x :   ' a u t o ' ,   y :   ' a u t o '   } ;  
 	 	  
 	 	 v a r   p a g e   =   h s . g e t P a g e S i z e ( ) ; 	 	  
 	 	  
 	 	 / /   j u s t i f y  
 	 	 t h i s . x   =   {    
 	 	 	 m i n :   p a r s e I n t ( t h i s . t h u m b L e f t )   -   t h i s . o f f s e t B o r d e r W   +   t h i s . t h u m b O f f s e t B o r d e r W ,  
 	 	 	 s p a n :   t h i s . n e w W i d t h ,  
 	 	 	 m i n S p a n :   ( t h i s . n e w W i d t h   <   m i n W i d t h   & &   ! h s . p a d T o M i n W i d t h )    
 	 	 	 	 ?   t h i s . n e w W i d t h   :   m i n W i d t h ,  
 	 	 	 m a r g i n M i n :   h s . m a r g i n L e f t ,    
 	 	 	 m a r g i n M a x :   m o d M a r g i n R i g h t ,  
 	 	 	 s c r o l l :   p a g e . s c r o l l L e f t ,  
 	 	 	 c l i e n t S p a n :   p a g e . w i d t h ,  
 	 	 	 t h u m b S p a n :   t h i s . t h u m b W i d t h  
 	 	 } ;  
 	 	 v a r   o l d R i g h t   =   t h i s . x . m i n   +   p a r s e I n t ( t h i s . t h u m b W i d t h ) ;  
 	 	 t h i s . x   =   t h i s . j u s t i f y ( t h i s . x ) ;  
 	 	 t h i s . y   =   {    
 	 	 	 m i n :   p a r s e I n t ( t h i s . t h u m b T o p )   -   t h i s . o f f s e t B o r d e r H   +   t h i s . t h u m b O f f s e t B o r d e r H ,  
 	 	 	 s p a n :   t h i s . n e w H e i g h t ,  
 	 	 	 m i n S p a n :   t h i s . n e w H e i g h t   <   m i n H e i g h t   ?   t h i s . n e w H e i g h t   :   m i n H e i g h t ,  
 	 	 	 m a r g i n M i n :   h s . m a r g i n T o p ,    
 	 	 	 m a r g i n M a x :   t h i s . m a r g i n B o t t o m ,    
 	 	 	 s c r o l l :   p a g e . s c r o l l T o p ,  
 	 	 	 c l i e n t S p a n :   p a g e . h e i g h t ,  
 	 	 	 t h u m b S p a n :   t h i s . t h u m b H e i g h t  
 	 	 } ;  
 	 	 v a r   o l d B o t t o m   =   t h i s . y . m i n   +   p a r s e I n t ( t h i s . t h u m b H e i g h t ) ;  
 	 	 t h i s . y   =   t h i s . j u s t i f y ( t h i s . y ) ;  
 	 	 i f   ( t h i s . i s H t m l )   t h i s . h t m l S i z e O p e r a t i o n s ( ) ;  
 	 	  
 	 	 i f   ( t h i s . i s I m a g e )  
 	 	 	 t h i s . c o r r e c t R a t i o ( r a t i o ) ;  
 	 	  
  
 	 	 v a r   x   =   t h i s . x ;  
 	 	 v a r   y   =   t h i s . y ;  
 	 	  
 	 	 t h i s . s h o w ( ) ;  
 	 }   c a t c h   ( e )   {  
 	 	 w i n d o w . l o c a t i o n . h r e f   =   h s . g e t S r c ( t h i s . a ) ;  
 	 }  
 } ,  
  
  
 s e t O b j C o n t a i n e r S i z e   :   f u n c t i o n ( p a r e n t ,   a u t o )   {  
 	 v a r   c   =   h s . g e t E l e m e n t B y C l a s s ( p a r e n t ,   ' D I V ' ,   ' h i g h s l i d e - b o d y ' ) ;  
 	  
 	 i f   ( t h i s . o b j e c t T y p e   = =   ' i f r a m e ' )   {  
 	 	 i f   ( t h i s . o b j e c t W i d t h )   c . s t y l e . w i d t h   =   t h i s . o b j e c t W i d t h   + ' p x ' ;  
 	 	 i f   ( t h i s . o b j e c t H e i g h t )   c . s t y l e . h e i g h t   =   t h i s . o b j e c t H e i g h t   + ' p x ' ;  
 	 }  
 	 i f   ( t h i s . s w f O b j e c t )   {  
 	 	 c . s t y l e . w i d t h   =   t h i s . s w f O b j e c t . a t t r i b u t e s . w i d t h   + ' p x ' ;  
 	 	 c . s t y l e . h e i g h t   =   t h i s . s w f O b j e c t . a t t r i b u t e s . h e i g h t   + ' p x ' ;  
 	 }  
 } ,  
  
 w r i t e E x t e n d e d C o n t e n t   :   f u n c t i o n   ( l o a d T i m e )   {  
 	 i f   ( t h i s . h a s E x t e n d e d C o n t e n t )   r e t u r n ;  
 	 v a r   e x p   =   t h i s ;  
 	 t h i s . b o d y   =   h s . g e t E l e m e n t B y C l a s s ( t h i s . i n n e r C o n t e n t ,   ' D I V ' ,   ' h i g h s l i d e - b o d y ' ) ;  
 	 i f   ( t h i s . o b j e c t T y p e   = =   ' i f r a m e ' )   {  
 	 	 t h i s . d i s p l a y L o a d i n g ( ) ;  
 	 	 t h i s . r u l e r   =   h s . c l e a r i n g . c l o n e N o d e ( 1 ) ;  
 	 	 t h i s . b o d y . a p p e n d C h i l d ( t h i s . r u l e r ) ;  
  
 	 	 t h i s . n e w W i d t h   =   t h i s . i n n e r C o n t e n t . o f f s e t W i d t h ;  
 	 	 i f   ( ! t h i s . o b j e c t W i d t h )   t h i s . o b j e c t W i d t h   =   t h i s . r u l e r . o f f s e t W i d t h ;  
 	 	 v a r   h D i f f   =   t h i s . i n n e r C o n t e n t . o f f s e t H e i g h t   -   t h i s . b o d y . o f f s e t H e i g h t ;  
 	 	 v a r   h   =   t h i s . o b j e c t H e i g h t   | |   ( h s . g e t P a g e S i z e ( ) ) . h e i g h t   -   h D i f f   -   h s . m a r g i n T o p   -   h s . m a r g i n B o t t o m ;  
 	 	 v a r   o n l o a d   =   ( h s . i e   & &   t h i s . o b j e c t L o a d T i m e   = =   ' b e f o r e ' )   ?    
 	 	 	 ' o n l o a d = " t r y   { h s . e x p a n d e r s [ ' +   t h i s . k e y   + ' ] . c o n t e n t L o a d e d ( ) }   c a t c h ( e ) { } " '   :   ' ' ;  
 	 	 v a r   t a g   =   h s . i e   ?   ' < i f r a m e   n a m e = " h s I f r a m e ' +   t h i s . k e y +   ' "   ' +   o n l o a d   + ' / > '   :   ' i f r a m e ' ;  
 	 	 t h i s . i f r a m e   =   h s . c r e a t e E l e m e n t ( t a g ,    
 	 	 	 {   n a m e :   ' h s I f r a m e ' +   t h i s . k e y ,   f r a m e B o r d e r :   0 ,   a l l o w T r a n s p a r e n c y :   t r u e   } ,  
 	 	 	 {   w i d t h :   t h i s . o b j e c t W i d t h   + ' p x ' ,   h e i g h t :   h   + ' p x '   } ,    
 	 	 	 t h i s . b o d y ) ;  
 	 	 i f   ( t h i s . o b j e c t L o a d T i m e   = =   ' b e f o r e ' )   {  
 	 	 	 i f   ( ! h s . i e )   t h i s . i f r a m e . o n l o a d   =   f u n c t i o n   ( )   {   t r y   {   e x p . c o n t e n t L o a d e d ( ) ;   }   c a t c h   ( e )   { } } ;  
 	 	 }  
 	 	 i f   ( h s . s a f a r i )   t h i s . i f r a m e . s r c   =   n u l l ;  
 	 	 t h i s . i f r a m e . s r c   =   h s . g e t S r c ( t h i s . a ) ;  
 	 	  
 	 	 i f   ( t h i s . o b j e c t L o a d T i m e   = =   ' a f t e r ' )   t h i s . c o r r e c t I f r a m e S i z e ( ) ;  
 	 	  
 	 }   e l s e   i f   ( t h i s . s w f O b j e c t )   { 	  
 	 	 t h i s . b o d y . i d   =   t h i s . b o d y . i d   | |   ' h s - f l a s h - i d - '   +   t h i s . k e y ;  
 	 	 t h i s . s w f O b j e c t . w r i t e ( t h i s . b o d y . i d ) ; 	  
 	 }  
 	 t h i s . h a s E x t e n d e d C o n t e n t   =   t r u e ; 	  
 } ,  
 h t m l G e t S i z e   :   f u n c t i o n ( )   {  
 	 i f   ( t h i s . i f r a m e   & &   ! t h i s . o b j e c t H e i g h t )   {   / /   l o a d t i m e   b e f o r e  
 	 	 t r y   {  
 	 	 	 v a r   d o c   =   t h i s . i f r a m e . c o n t e n t D o c u m e n t   | |   t h i s . i f r a m e . c o n t e n t W i n d o w . d o c u m e n t ;  
 	 	 	 v a r   c l e a r i n g   =   d o c . c r e a t e E l e m e n t ( ' d i v ' ) ;  
 	 	 	 c l e a r i n g . s t y l e . c l e a r   =   ' b o t h ' ;  
 	 	 	 d o c . b o d y . a p p e n d C h i l d ( c l e a r i n g ) ;  
 	 	 	 v a r   h   =   c l e a r i n g . o f f s e t T o p ;  
 	 	 	 i f   ( h s . i e )   h   + =   p a r s e I n t ( d o c . b o d y . c u r r e n t S t y l e . m a r g i n T o p )    
 	 	 	 	 +   p a r s e I n t ( d o c . b o d y . c u r r e n t S t y l e . m a r g i n B o t t o m )   -   1 ; 	 	  
 	 	 	 t h i s . i f r a m e . s t y l e . h e i g h t   =   t h i s . b o d y . s t y l e . h e i g h t   =   h   + ' p x ' ;  
 	 	 }   c a t c h   ( e )   {   / /   o t h e r   d o m a i n  
 	 	 	 t h i s . i f r a m e . s t y l e . h e i g h t   =   ' 3 0 0 p x ' ;  
 	 	 }  
 	 }  
 	 t h i s . i n n e r C o n t e n t . a p p e n d C h i l d ( h s . c l e a r i n g ) ;  
 	 i f   ( ! t h i s . n e w W i d t h )   t h i s . n e w W i d t h   =   t h i s . i n n e r C o n t e n t . o f f s e t W i d t h ;  
         t h i s . n e w H e i g h t   =   t h i s . i n n e r C o n t e n t . o f f s e t H e i g h t ;  
         t h i s . i n n e r C o n t e n t . r e m o v e C h i l d ( h s . c l e a r i n g ) ;  
         i f   ( h s . i e   & &   t h i s . n e w H e i g h t   >   p a r s e I n t ( t h i s . i n n e r C o n t e n t . c u r r e n t S t y l e . h e i g h t ) )   {   / /   i e   c s s   b u g  
 	 	 t h i s . n e w H e i g h t   =   p a r s e I n t ( t h i s . i n n e r C o n t e n t . c u r r e n t S t y l e . h e i g h t ) ;  
 	 }  
 } ,  
  
 c o r r e c t I f r a m e S i z e   :   f u n c t i o n   ( )   {  
 	 v a r   w D i f f   =   t h i s . i n n e r C o n t e n t . o f f s e t W i d t h   -   t h i s . r u l e r . o f f s e t W i d t h ;  
 	 i f   ( w D i f f   <   0 )   w D i f f   =   0 ;  
 	  
 	 v a r   h D i f f   =   t h i s . i n n e r C o n t e n t . o f f s e t H e i g h t   -   t h i s . b o d y . o f f s e t H e i g h t ;  
 	  
         h s . s e t S t y l e s ( t h i s . i f r a m e ,   {   w i d t h :   ( t h i s . x . s p a n   -   w D i f f )   + ' p x ' ,    
 	 	 h e i g h t :   ( t h i s . y . s p a n   -   h D i f f )   + ' p x '   } ) ;  
         h s . s e t S t y l e s ( t h i s . b o d y ,   {   w i d t h :   t h i s . i f r a m e . s t y l e . w i d t h ,    
         	 h e i g h t :   t h i s . i f r a m e . s t y l e . h e i g h t   } ) ;  
         	  
         t h i s . s c r o l l i n g C o n t e n t   =   t h i s . i f r a m e ;  
         t h i s . s c r o l l e r D i v   =   t h i s . s c r o l l i n g C o n t e n t ;  
 } ,  
 h t m l S i z e O p e r a t i o n s   :   f u n c t i o n   ( )   {  
 	  
 	 t h i s . s e t O b j C o n t a i n e r S i z e ( t h i s . i n n e r C o n t e n t ) ;  
 	  
 	  
 	 i f   ( t h i s . s w f O b j e c t   & &   t h i s . o b j e c t L o a d T i m e   = =   ' b e f o r e ' )   t h i s . w r i t e E x t e n d e d C o n t e n t ( ) ; 	  
 	  
 	  
         / /   h a n d l e   m i n i m u m   s i z e  
         i f   ( t h i s . x . s p a n   <   t h i s . n e w W i d t h   & &   ! t h i s . a l l o w W i d t h R e d u c t i o n )   t h i s . x . s p a n   =   t h i s . n e w W i d t h ;  
         i f   ( t h i s . y . s p a n   <   t h i s . n e w H e i g h t   & &   ! t h i s . a l l o w H e i g h t R e d u c t i o n )   t h i s . y . s p a n   =   t h i s . n e w H e i g h t ;  
         t h i s . s c r o l l e r D i v   =   t h i s . i n n e r C o n t e n t ;  
          
         t h i s . m e d i u m C o n t e n t   =   h s . c r e a t e E l e m e n t ( ' d i v ' ,   n u l l ,    
         	 {    
         	 	 w i d t h :   t h i s . x . s p a n   + ' p x ' ,  
         	 	 p o s i t i o n :   ' r e l a t i v e ' ,  
         	 	 l e f t :   ( t h i s . x . m i n   -   t h i s . t h u m b L e f t )   + ' p x ' ,  
         	 	 t o p :   ( t h i s . y . m i n   -   t h i s . t h u m b T o p )   + ' p x '  
         	 } ,   t h i s . c o n t e n t ,   t r u e ) ;  
 	  
         t h i s . m e d i u m C o n t e n t . a p p e n d C h i l d ( t h i s . i n n e r C o n t e n t ) ;  
         h s . c o n t a i n e r . r e m o v e C h i l d ( t h i s . t e m p C o n t a i n e r ) ;  
         h s . s e t S t y l e s ( t h i s . i n n e r C o n t e n t ,   {   b o r d e r :   ' n o n e ' ,   w i d t h :   ' a u t o ' ,   h e i g h t :   ' a u t o '   } ) ;  
          
         v a r   n o d e   =   h s . g e t E l e m e n t B y C l a s s ( t h i s . i n n e r C o n t e n t ,   ' D I V ' ,   ' h i g h s l i d e - b o d y ' ) ;  
         i f   ( n o d e   & &   ! t h i s . s w f O b j e c t   & &   t h i s . o b j e c t T y p e   ! =   ' i f r a m e ' )   {          
         	 v a r   c N o d e   =   n o d e ;   / /   w r a p   t o   g e t   t r u e   s i z e  
         	 n o d e   =   h s . c r e a t e E l e m e n t ( c N o d e . n o d e N a m e ,   n u l l ,   { o v e r f l o w :   ' h i d d e n ' } ,   n u l l ,   t r u e ) ;  
         	 c N o d e . p a r e n t N o d e . i n s e r t B e f o r e ( n o d e ,   c N o d e ) ;  
         	 n o d e . a p p e n d C h i l d ( h s . c l e a r i n g ) ;   / /   I E 6  
         	 n o d e . a p p e n d C h i l d ( c N o d e ) ;  
         	  
         	 v a r   w D i f f   =   t h i s . i n n e r C o n t e n t . o f f s e t W i d t h   -   n o d e . o f f s e t W i d t h ;  
         	 v a r   h D i f f   =   t h i s . i n n e r C o n t e n t . o f f s e t H e i g h t   -   n o d e . o f f s e t H e i g h t ;  
         	 n o d e . r e m o v e C h i l d ( h s . c l e a r i n g ) ;  
         	  
         	 v a r   k d e B u g C o r r   =   h s . s a f a r i   | |   n a v i g a t o r . v e n d o r   = =   ' K D E '   ?   1   :   0 ;   / /   K D E   r e p a i n t i n g   b u g  
         	 h s . s e t S t y l e s ( n o d e ,   {    
         	 	 	 w i d t h :   ( t h i s . x . s p a n   -   w D i f f   -   k d e B u g C o r r )   + ' p x ' ,    
         	 	 	 h e i g h t :   ( t h i s . y . s p a n   -   h D i f f )   + ' p x ' ,  
         	 	 	 o v e r f l o w :   ' a u t o ' ,    
         	 	 	 p o s i t i o n :   ' r e l a t i v e '    
         	 	 }    
         	 ) ;  
 	 	 i f   ( k d e B u g C o r r   & &   c N o d e . o f f s e t H e i g h t   >   n o d e . o f f s e t H e i g h t ) 	 {  
         	 	 n o d e . s t y l e . w i d t h   =   ( p a r s e I n t ( n o d e . s t y l e . w i d t h )   +   k d e B u g C o r r )   +   ' p x ' ;  
 	 	 }  
         	 t h i s . s c r o l l i n g C o n t e n t   =   n o d e ;  
         	 t h i s . s c r o l l e r D i v   =   t h i s . s c r o l l i n g C o n t e n t ;  
         	  
 	 }  
         i f   ( t h i s . i f r a m e   & &   t h i s . o b j e c t L o a d T i m e   = =   ' b e f o r e ' )   t h i s . c o r r e c t I f r a m e S i z e ( ) ;  
         i f   ( ! t h i s . s c r o l l i n g C o n t e n t   & &   t h i s . y . s p a n   <   t h i s . m e d i u m C o n t e n t . o f f s e t H e i g h t )   t h i s . s c r o l l e r D i v   =   t h i s . c o n t e n t ;  
 	  
 	 i f   ( t h i s . s c r o l l e r D i v   = =   t h i s . c o n t e n t   & &   ! t h i s . a l l o w W i d t h R e d u c t i o n   & &   t h i s . o b j e c t T y p e   ! =   ' i f r a m e ' )   {  
 	 	 t h i s . x . s p a n   + =   1 7 ;   / /   r o o m   f o r   s c r o l l b a r s  
 	 }  
 	 i f   ( t h i s . s c r o l l e r D i v   & &   t h i s . s c r o l l e r D i v . o f f s e t H e i g h t   >   t h i s . s c r o l l e r D i v . p a r e n t N o d e . o f f s e t H e i g h t )   {  
 	 	 s e t T i m e o u t ( " t r y   {   h s . e x p a n d e r s [ " +   t h i s . k e y   + " ] . s c r o l l e r D i v . s t y l e . o v e r f l o w   =   ' a u t o ' ;   }   c a t c h ( e )   { } " ,  
 	 	 	   h s . e x p a n d D u r a t i o n ) ;  
 	 }  
 } ,  
  
 j u s t i f y   :   f u n c t i o n   ( p )   {  
 	  
 	 v a r   t g t ,   d i m   =   p   = =   t h i s . x   ?   ' x '   :   ' y ' ;  
 	  
 	 	 v a r   h a s M o v e d M i n   =   f a l s e ;  
 	 	  
 	 	 v a r   a l l o w R e d u c e   =   t r u e ;  
 	 	  
 	 	 / /   c a l c u l a t e   p . m i n  
 	 	 p . m i n   =   M a t h . r o u n d ( p . m i n   -   ( ( p . s p a n   -   p . t h u m b S p a n )   /   2 ) ) ;   / /   a u t o  
 	 	  
 	 	 i f   ( p . m i n   <   p . s c r o l l   +   p . m a r g i n M i n )   {  
 	 	 	 p . m i n   =   p . s c r o l l   +   p . m a r g i n M i n ;  
 	 	 	 h a s M o v e d M i n   =   t r u e ; 	 	  
 	 	 } 	 	  
 	 	  
 	 	 i f   ( p . s p a n   <   p . m i n S p a n )   {  
 	 	 	 p . s p a n   =   p . m i n S p a n ;  
 	 	 	 a l l o w R e d u c e   =   f a l s e ;  
 	 	 	  
 	 	 }  
 	 	  
 	 	 / /   c a l c u l a t e   r i g h t / n e w W i d t h  
 	 	 i f   ( p . m i n   +   p . s p a n   >   p . s c r o l l   +   p . c l i e n t S p a n   -   p . m a r g i n M a x )   {  
 	 	 	 i f   ( h a s M o v e d M i n   & &   a l l o w R e d u c e )   {  
 	 	 	 	  
 	 	 	 	 p . s p a n   =   p . c l i e n t S p a n   -   p . m a r g i n M i n   -   p . m a r g i n M a x ;   / /   c a n ' t   e x p a n d   m o r e  
 	 	 	 	  
 	 	 	 }   e l s e   i f   ( p . s p a n   <   p . c l i e n t S p a n   -   p . m a r g i n M i n   -   p . m a r g i n M a x )   {   / /   m o v e   n e w T o p   u p  
 	 	 	 	 p . m i n   =   p . s c r o l l   +   p . c l i e n t S p a n   -   p . s p a n   -   p . m a r g i n M i n   -   p . m a r g i n M a x ;  
 	 	 	 }   e l s e   {   / /   i m a g e   l a r g e r   t h a n   c l i e n t  
 	 	 	 	 p . m i n   =   p . s c r o l l   +   p . m a r g i n M i n ;  
 	 	 	 	  
 	 	 	 	 i f   ( a l l o w R e d u c e )   p . s p a n   =   p . c l i e n t S p a n   -   p . m a r g i n M i n   -   p . m a r g i n M a x ;  
 	 	 	 	  
 	 	 	 }  
 	 	 	  
 	 	 }  
 	 	  
 	 	 i f   ( p . s p a n   <   p . m i n S p a n )   {  
 	 	 	 p . s p a n   =   p . m i n S p a n ;  
 	 	 	 a l l o w R e d u c e   =   f a l s e ;  
 	 	 }  
 	 	  
 	  
 	 	  
 	 i f   ( p . m i n   <   p . m a r g i n M i n )   {  
 	 	 t m p M i n   =   p . m i n ;  
 	 	 p . m i n   =   p . m a r g i n M i n ;    
 	 	  
 	 	 i f   ( a l l o w R e d u c e )   p . s p a n   =   p . s p a n   -   ( p . m i n   -   t m p M i n ) ;  
 	 	  
 	 }  
 	 r e t u r n   p ;  
 } ,  
  
 c o r r e c t R a t i o   :   f u n c t i o n ( r a t i o )   {  
 	 v a r   x   =   t h i s . x ;  
 	 v a r   y   =   t h i s . y ;  
 	 v a r   c h a n g e d   =   f a l s e ;  
 	 i f   ( x . s p a n   /   y . s p a n   >   r a t i o )   {   / /   w i d t h   g r e a t e r  
 	 	 v a r   t m p W i d t h   =   x . s p a n ;  
 	 	 x . s p a n   =   y . s p a n   *   r a t i o ;  
 	 	 i f   ( x . s p a n   <   x . m i n S p a n )   {   / /   b e l o w   m i n W i d t h  
 	 	 	 i f   ( h s . p a d T o M i n W i d t h )   x . i m g S p a n   =   x . s p a n ; 	 	 	  
 	 	 	 x . s p a n   =   x . m i n S p a n ;  
 	 	 	 i f   ( ! x . i m g S p a n )  
 	 	 	 y . s p a n   =   x . s p a n   /   r a t i o ;  
 	 	 }  
 	 	 c h a n g e d   =   t r u e ;  
 	  
 	 }   e l s e   i f   ( x . s p a n   /   y . s p a n   <   r a t i o )   {   / /   h e i g h t   g r e a t e r  
 	 	 v a r   t m p H e i g h t   =   y . s p a n ;  
 	 	 y . s p a n   =   x . s p a n   /   r a t i o ;  
 	 	 c h a n g e d   =   t r u e ;  
 	 }  
 	  
 	 i f   ( c h a n g e d )   {  
 	 	 x . m i n   =   p a r s e I n t ( t h i s . t h u m b L e f t )   -   t h i s . o f f s e t B o r d e r W   +   t h i s . t h u m b O f f s e t B o r d e r W ;  
 	 	 x . m i n S p a n   =   x . s p a n ;  
 	 	 t h i s . x   =   t h i s . j u s t i f y ( x ) ;  
 	 	  
 	 	 y . m i n   =   p a r s e I n t ( t h i s . t h u m b T o p )   -   t h i s . o f f s e t B o r d e r H   +   t h i s . t h u m b O f f s e t B o r d e r H ;  
 	 	 y . m i n S p a n   =   y . s p a n ;  
 	 	 t h i s . y   =   t h i s . j u s t i f y ( y ) ;  
 	 }  
 } ,  
  
 s h o w   :   f u n c t i o n   ( )   {  
 	  
 	 / /   S e l e c t b o x   b u g  
 	 v a r   i m g P o s   =   { x :   t h i s . x . m i n   -   2 0 ,   y :   t h i s . y . m i n   -   2 0 ,   w :   t h i s . x . s p a n   +   4 0 ,    
 	 	 h :   t h i s . y . s p a n   +   4 0  
 	 	   +   t h i s . s p a c e F o r C a p t i o n } ;  
 	 h s . h i d e S e l e c t s   =   ( h s . i e   & &   h s . i e V e r s i o n ( )   <   7 ) ;  
 	 i f   ( h s . h i d e S e l e c t s )   t h i s . s h o w H i d e E l e m e n t s ( ' S E L E C T ' ,   ' h i d d e n ' ,   i m g P o s ) ;  
 	 / /   I f r a m e s   b u g  
 	 h s . h i d e I f r a m e s   =   ( ( w i n d o w . o p e r a   & &   n a v i g a t o r . a p p V e r s i o n   <   9 )   | |   n a v i g a t o r . v e n d o r   = =   ' K D E '    
 	 	 | |   ( h s . i e   & &   h s . i e V e r s i o n ( )   <   5 . 5 ) ) ;  
 	 i f   ( h s . h i d e I f r a m e s )   t h i s . s h o w H i d e E l e m e n t s ( ' I F R A M E ' ,   ' h i d d e n ' ,   i m g P o s ) ;  
 	  
 	  
 	 i f   ( t h i s . x . i m g S p a n )   t h i s . c o n t e n t . s t y l e . m a r g i n   =   ' 0   a u t o ' ;  
 	 / /   A p p l y   s i z e   c h a n g e 	 	  
 	 t h i s . c h a n g e S i z e (  
 	 	 1 ,  
 	 	 {    
 	 	 	 x :   t h i s . t h u m b L e f t   +   t h i s . t h u m b O f f s e t B o r d e r W   -   t h i s . o f f s e t B o r d e r W ,  
 	 	 	 y :   t h i s . t h u m b T o p   +   t h i s . t h u m b O f f s e t B o r d e r H   -   t h i s . o f f s e t B o r d e r H ,  
 	 	 	 w :   t h i s . t h u m b W i d t h ,  
 	 	 	 h :   t h i s . t h u m b H e i g h t ,  
 	 	 	 i m g W :   t h i s . t h u m b W i d t h ,  
 	 	 	 o :   h s . o u t l i n e S t a r t O f f s e t  
 	 	 } ,  
 	 	 {  
 	 	 	 x :   t h i s . x . m i n ,  
 	 	 	 y :   t h i s . y . m i n ,  
 	 	 	 w :   t h i s . x . s p a n ,  
 	 	 	 h :   t h i s . y . s p a n ,  
 	 	 	 i m g W :   t h i s . x . i m g S p a n ,  
 	 	 	 o :   t h i s . o b j O u t l i n e   ?   t h i s . o b j O u t l i n e . o f f s e t   :   0  
 	 	 } ,  
 	 	 h s . e x p a n d D u r a t i o n ,  
 	 	 h s . e x p a n d S t e p s  
 	 ) ;  
 } ,  
  
 c h a n g e S i z e   :   f u n c t i o n ( u p ,   f r o m ,   t o ,   d u r ,   s t e p s )   {  
 	  
 	 i f   ( u p   & &   t h i s . o b j O u t l i n e   & &   ! t h i s . o u t l i n e W h i l e A n i m a t i n g )    
 	 	 t h i s . o b j O u t l i n e . s e t P o s i t i o n ( t h i s ,   t h i s . x . m i n ,   t h i s . y . m i n ,   t h i s . x . s p a n ,   t h i s . y . s p a n ) ;  
 	  
 	 e l s e   i f   ( ! u p   & &   t h i s . o b j O u t l i n e )   {  
 	 	 i f   ( t h i s . o u t l i n e W h i l e A n i m a t i n g )   t h i s . o b j O u t l i n e . s e t P o s i t i o n ( t h i s ,   f r o m . x ,   f r o m . y ,   f r o m . w ,   f r o m . h ) ;  
 	 	 e l s e   t h i s . o b j O u t l i n e . d e s t r o y (  
 	 	 	 ( t h i s . i s H t m l   & &   t h i s . p r e s e r v e C o n t e n t ) ) ;  
 	 } 	  
 	 	 	  
 	 i f   ( ! u p )   {   / /   r e m o v e   c h i l d r e n  
 	 	 v a r   n   =   t h i s . w r a p p e r . c h i l d N o d e s . l e n g t h ;  
 	 	 f o r   ( i   =   n   -   1 ;   i   > =   0   ;   i - - )   {  
 	 	 	 v a r   c h i l d   =   t h i s . w r a p p e r . c h i l d N o d e s [ i ] ;  
 	 	 	 i f   ( c h i l d   ! =   t h i s . c o n t e n t )   {  
 	 	 	 	 h s . p u r g e ( c h i l d ) ;  
 	 	 	 	 t h i s . w r a p p e r . r e m o v e C h i l d ( c h i l d ) ;  
 	 	 	 }  
 	 	 }  
 	 }  
 	 v a r   d W   =   ( t o . w   -   f r o m . w )   /   s t e p s ,  
 	 d I m g W   =   ( t o . i m g W   -   f r o m . i m g W )   /   s t e p s ,  
 	 d H   =   ( t o . h   -   f r o m . h )   /   s t e p s ,  
 	 d X   =   ( t o . x   -   f r o m . x )   /   s t e p s ,  
 	 d Y   =   ( t o . y   -   f r o m . y )   /   s t e p s ,  
 	 d O   =   ( t o . o   -   f r o m . o )   / s t e p s ,  
 	 t ,  
 	 e x p   =   t h i s ;  
 	 f o r   ( i   =   1 ;   i   < =   s t e p s ;   i + + )   {  
 	 	 f r o m . w   + =   d W ;  
 	 	 f r o m . i m g W   + =   d I m g W ;  
 	 	 f r o m . h   + =   d H ;  
 	 	 f r o m . x   + =   d X ;  
 	 	 f r o m . y   + =   d Y ;  
 	 	 f r o m . o   + =   d O ;  
 	 	 t   =   M a t h . r o u n d ( i   *   ( d u r   /   s t e p s ) ) ;  
 	 	  
 	 	 ( f u n c t i o n ( ) {  
 	 	 	 v a r   s i z e   =   i   <   s t e p s   ?   f r o m   :   t o ,   p a r a m   =   { } ,   p I   =   i ;  
 	 	 	 f o r   ( v a r   x   i n   s i z e )   p a r a m [ x ]   =   s i z e [ x ] ;  
 	 	 	  
 	 	 	 s e t T i m e o u t   (   f u n c t i o n ( )   {  
 	 	 	 	 i f   ( u p   & &   p I   = =   1 )   {  
 	 	 	 	 	 e x p . c o n t e n t . s t y l e . v i s i b i l i t y   =   ' v i s i b l e ' ;  
 	 	 	 	 	 e x p . a . c l a s s N a m e   + =   '   h i g h s l i d e - a c t i v e - a n c h o r ' ;  
 	 	 	 	 }  
 	 	 	 	 e x p . s e t S i z e ( p a r a m ) ;  
 	 	 	 } ,   t ) ; 	 	 	 	  
 	 	 } ) ( ) ; 	 	  
 	 }  
 	  
 	 i f   ( u p )   {    
 	 	 	  
 	 	 s e t T i m e o u t ( f u n c t i o n ( )   {  
 	 	 	 i f   ( e x p . o b j O u t l i n e )   e x p . o b j O u t l i n e . t a b l e . s t y l e . v i s i b i l i t y   =   " v i s i b l e " ;  
 	 	 } ,   t ) ;  
 	 	 s e t T i m e o u t ( f u n c t i o n ( )   {  
 	 	 	 i f   ( e x p . c a p t i o n )   e x p . w r i t e C a p t i o n ( ) ;  
 	 	 	 e x p . a f t e r E x p a n d ( ) ;  
 	 	 } ,   t   + 5 0 ) ;  
 	 }  
 	 e l s e   s e t T i m e o u t ( f u n c t i o n ( )   {   e x p . a f t e r C l o s e ( ) ;   } ,   t ) ;  
 	 	  
 } ,  
  
 s e t S i z e   :   f u n c t i o n   ( t o )   {  
 	 t r y   {  
 	 	 i f   ( t h i s . i s H t m l )   {  
 	 	 	 h s . s e t S t y l e s ( t h i s . c o n t e n t ,   {   w i d t h :   t o . w   + ' p x ' ,   h e i g h t :   t o . h   + ' p x '   } ) ;  
 	 	 	 h s . s e t S t y l e s ( t h i s . m e d i u m C o n t e n t ,   {   l e f t :   ( t h i s . x . m i n   -   t o . x )   + ' p x ' ,    
 	 	 	 	 t o p :   ( t h i s . y . m i n   -   t o . y )   + ' p x '   } ) ;  
 	 	 	 t h i s . i n n e r C o n t e n t . s t y l e . v i s i b i l i t y   =   ' v i s i b l e ' ;  
 	 	 }   e l s e   {  
 	 	 	 t h i s . w r a p p e r . s t y l e . w i d t h   =   ( t o . w   +   2 * t h i s . o f f s e t B o r d e r W )   + ' p x ' ;  
 	 	 	 t h i s . c o n t e n t . s t y l e . w i d t h   =   ( t o . i m g W   | |   t o . w )   + ' p x ' ;  
 	 	 	 t h i s . c o n t e n t . s t y l e . h e i g h t   =   t o . h   + ' p x ' ;  
 	 	 } 	 	  
 	 	  
 	 	  
 	 	 i f   ( t h i s . o b j O u t l i n e   & &   t h i s . o u t l i n e W h i l e A n i m a t i n g )   {  
 	 	 	 v a r   o   =   t h i s . o b j O u t l i n e . o f f s e t   -   t o . o ;  
 	 	 	 t h i s . o b j O u t l i n e . s e t P o s i t i o n ( t h i s ,   t o . x   +   o ,   t o . y   +   o ,   t o . w   -   2   *   o ,   t o . h   -   2   *   o ,   1 ) ;  
 	 	 }  
 	 	 	 	  
 	 	 h s . s e t S t y l e s   (   t h i s . w r a p p e r ,  
 	 	 	 {  
 	 	 	 	 ' v i s i b i l i t y ' :   ' v i s i b l e ' ,  
 	 	 	 	 ' l e f t ' :   t o . x   + ' p x ' ,  
 	 	 	 	 ' t o p ' :   t o . y   + ' p x '  
 	 	 	 }  
 	 	 ) ;  
 	 	  
 	 }   c a t c h   ( e )   {   w i n d o w . l o c a t i o n . h r e f   =   h s . g e t S r c ( t h i s . a ) ; 	 }  
 } ,  
  
 a f t e r E x p a n d   :   f u n c t i o n ( )   {  
 	 t h i s . i s E x p a n d e d   =   t r u e ; 	  
 	 t h i s . f o c u s ( ) ;  
 	  
 	 i f   ( t h i s . i s H t m l   & &   t h i s . o b j e c t L o a d T i m e   = =   ' a f t e r ' )   t h i s . w r i t e E x t e n d e d C o n t e n t ( ) ;  
 	  
 	 i f   ( t h i s . i s H t m l )   {  
 	 	 i f   ( t h i s . i f r a m e )   {  
 	 	 	 t r y   {  
 	 	 	 	 v a r   e x p   =   t h i s ,  
 	 	 	 	 	 d o c   =   t h i s . i f r a m e . c o n t e n t D o c u m e n t   | |   t h i s . i f r a m e . c o n t e n t W i n d o w . d o c u m e n t ;  
 	 	 	 	 h s . a d d E v e n t L i s t e n e r ( d o c ,   ' m o u s e d o w n ' ,   f u n c t i o n   ( )   {  
 	 	 	 	 	 i f   ( h s . f o c u s K e y   ! =   e x p . k e y )   e x p . f o c u s ( ) ;  
 	 	 	 	 } ) ;  
 	 	 	 }   c a t c h ( e )   { }  
 	 	 	 i f   ( h s . i e   & &   t y p e o f   t h i s . i s C l o s i n g   ! =   ' b o o l e a n ' )   / /   f i r s t   o p e n    
 	 	 	 	 t h i s . i f r a m e . s t y l e . w i d t h   =   ( t h i s . o b j e c t W i d t h   -   1 )   + ' p x ' ;   / /   h a s L a y o u t  
 	 	 }  
 	 }  
 	  
 	 t h i s . c r e a t e O v e r l a y s ( ) ;  
 	 i f   ( h s . s h o w C r e d i t s )   t h i s . w r i t e C r e d i t s ( ) ;  
 	 i f   ( t h i s . f u l l E x p a n d W i d t h   >   t h i s . x . s p a n )   t h i s . c r e a t e F u l l E x p a n d ( ) ;  
 	 i f   ( ! t h i s . c a p t i o n )   t h i s . p r e p a r e N e x t O u t l i n e ( ) ;  
 } ,  
  
  
 p r e p a r e N e x t O u t l i n e   :   f u n c t i o n ( )   {  
 	 v a r   k e y   =   t h i s . k e y ;  
 	 v a r   o u t l i n e T y p e   =   t h i s . o u t l i n e T y p e ;  
 	 n e w   h s . O u t l i n e ( o u t l i n e T y p e ,    
 	 	 f u n c t i o n   ( )   {   t r y   {   h s . e x p a n d e r s [ k e y ] . p r e l o a d N e x t ( ) ;   }   c a t c h   ( e )   { }   } ) ;  
 } ,  
  
  
 p r e l o a d N e x t   :   f u n c t i o n ( )   {  
 	 v a r   n e x t   =   h s . g e t A d j a c e n t A n c h o r ( t h i s . k e y ,   1 ) ; 	  
 	 i f   ( n e x t . o n c l i c k . t o S t r i n g ( ) . m a t c h ( / h s \ . e x p a n d / ) )    
 	 	 v a r   i m g   =   h s . c r e a t e E l e m e n t ( ' i m g ' ,   {   s r c :   h s . g e t S r c ( n e x t )   } ) ;  
 } ,  
  
 c a n c e l L o a d i n g   :   f u n c t i o n ( )   { 	 	  
 	 h s . e x p a n d e r s [ t h i s . k e y ]   =   n u l l ;  
 	 t h i s . a . s t y l e . c u r s o r   =   t h i s . o r i g i n a l C u r s o r ; 	  
 	 i f   ( t h i s . l o a d i n g )   h s . l o a d i n g . s t y l e . l e f t   =   ' - 9 9 9 9 p x ' ;  
 } ,  
  
 w r i t e C r e d i t s   :   f u n c t i o n   ( )   {  
 	 v a r   c r e d i t s   =   h s . c r e a t e E l e m e n t ( ' a ' ,  
 	 	 {  
 	 	 	 h r e f :   h s . c r e d i t s H r e f ,  
 	 	 	 c l a s s N a m e :   ' h i g h s l i d e - c r e d i t s ' ,  
 	 	 	 i n n e r H T M L :   h s . c r e d i t s T e x t ,  
 	 	 	 t i t l e :   h s . c r e d i t s T i t l e  
 	 	 }  
 	 ) ;  
 	 t h i s . c r e a t e O v e r l a y ( {   o v e r l a y I d :   c r e d i t s ,   p o s i t i o n :   ' t o p   l e f t ' } ) ;  
 } ,  
  
 g e t C a p t i o n   :   f u n c t i o n ( )   {  
 	 i f   ( ! t h i s . c a p t i o n I d   & &   t h i s . t h u m b s U s e r S e t I d )      
 	 	 t h i s . c a p t i o n I d   =   ' c a p t i o n - f o r - ' +   t h i s . t h u m b s U s e r S e t I d ;  
 	 i f   ( t h i s . c a p t i o n I d )   t h i s . c a p t i o n   =   h s . g e t N o d e ( t h i s . c a p t i o n I d ) ;  
 	 i f   ( ! t h i s . c a p t i o n   & &   ! t h i s . c a p t i o n T e x t   & &   t h i s . c a p t i o n E v a l )   t r y   {  
 	 	 t h i s . c a p t i o n T e x t   =   e v a l ( t h i s . c a p t i o n E v a l ) ;  
 	 }   c a t c h   ( e )   { }  
 	 i f   ( ! t h i s . c a p t i o n   & &   t h i s . c a p t i o n T e x t )   t h i s . c a p t i o n   =   h s . c r e a t e E l e m e n t ( ' d i v ' ,    
 	 	 	 {   c l a s s N a m e :   ' h i g h s l i d e - c a p t i o n ' ,   i n n e r H T M L :   t h i s . c a p t i o n T e x t   }   ) ;  
 	 i f   ( ! t h i s . c a p t i o n )   {  
 	 	 v a r   n e x t   =   t h i s . a . n e x t S i b l i n g ;  
 	 	 w h i l e   ( n e x t   & &   ! h s . i s H s A n c h o r ( n e x t ) )   {  
 	 	 	 i f   ( / h i g h s l i d e - c a p t i o n / . t e s t ( n e x t . c l a s s N a m e ) )   {  
 	 	 	 	 t h i s . c a p t i o n   =   n e x t . c l o n e N o d e ( 1 ) ;  
 	 	 	 	 b r e a k ;  
 	 	 	 }  
 	 	 	 n e x t   =   n e x t . n e x t S i b l i n g ;  
 	 	 }  
 	 }  
 	 i f   ( t h i s . c a p t i o n )   {  
 	 	 t h i s . m a r g i n B o t t o m   + =   t h i s . s p a c e F o r C a p t i o n ;  
 	 }  
 	  
 } ,  
  
 w r i t e C a p t i o n   :   f u n c t i o n ( )   {  
 	 t r y   {  
 	 	 h s . s e t S t y l e s ( t h i s . w r a p p e r ,   {   w i d t h :   t h i s . w r a p p e r . o f f s e t W i d t h   + ' p x ' ,    
 	 	 	 h e i g h t :   t h i s . w r a p p e r . o f f s e t H e i g h t   + ' p x '   }   ) ; 	  
 	 	 h s . s e t S t y l e s ( t h i s . c a p t i o n ,   {   v i s i b i l i t y :   ' h i d d e n ' ,   m a r g i n T o p :   h s . s a f a r i   ?   0   :   ' - ' +   t h i s . y . s p a n   + ' p x ' } ) ;  
 	 	 t h i s . c a p t i o n . c l a s s N a m e   + =   '   h i g h s l i d e - d i s p l a y - b l o c k ' ;  
 	 	  
 	 	 v a r   h e i g h t ,   e x p   =   t h i s ;  
 	 	 i f   ( h s . i e   & &   ( h s . i e V e r s i o n ( )   <   6   | |   d o c u m e n t . c o m p a t M o d e   = =   ' B a c k C o m p a t ' ) )   {  
 	 	 	 h e i g h t   =   t h i s . c a p t i o n . o f f s e t H e i g h t ;  
 	 	 }   e l s e   {  
 	 	 	 v a r   t e m p   =   h s . c r e a t e E l e m e n t ( ' d i v ' ,   { i n n e r H T M L :   t h i s . c a p t i o n . i n n e r H T M L } ,    
 	 	 	 	 n u l l ,   n u l l ,   t r u e ) ;   / /   t o   g e t   h e i g h t  
 	 	 	 t h i s . c a p t i o n . i n n e r H T M L   =   ' ' ;  
 	 	 	 t h i s . c a p t i o n . a p p e n d C h i l d ( t e m p ) ; 	  
 	 	 	 h e i g h t   =   t h i s . c a p t i o n . c h i l d N o d e s [ 0 ] . o f f s e t H e i g h t ;  
 	 	 	 t h i s . c a p t i o n . i n n e r H T M L   =   t h i s . c a p t i o n . c h i l d N o d e s [ 0 ] . i n n e r H T M L ;  
 	 	 }  
 	 	 h s . s e t S t y l e s ( t h i s . c a p t i o n ,   {   o v e r f l o w :   ' h i d d e n ' ,   h e i g h t :   0 ,   z I n d e x :   2 ,   m a r g i n T o p :   0   } ) ;  
 	 	 t h i s . w r a p p e r . s t y l e . h e i g h t   =   ' a u t o ' ;  
 	 	  
 	 	 i f   ( h s . c a p t i o n S l i d e S p e e d )   {  
 	 	 	 v a r   s t e p   =   ( M a t h . r o u n d ( h e i g h t / 5 0 )   | |   1 )   *   h s . c a p t i o n S l i d e S p e e d ;  
 	 	 }   e l s e   {  
 	 	 	 t h i s . p l a c e C a p t i o n ( h e i g h t ,   1 ) ;  
 	 	 	 r e t u r n ;  
 	 	 }  
 	 	 f o r   ( v a r   h   =   h e i g h t   %   s t e p ,   t   =   0 ;   h   < =   h e i g h t ;   h   + =   s t e p ,   t   + =   1 0 )   {  
 	 	 	 ( f u n c t i o n ( ) {  
 	 	 	 	 v a r   p H   =   h ,   e n d   =   ( h   = =   h e i g h t )   ?   1   :   0 ;  
 	 	 	 	 s e t T i m e o u t (   f u n c t i o n ( )   {  
 	 	 	 	 	 e x p . p l a c e C a p t i o n ( p H ,   e n d ) ;  
 	 	 	 	 } ,   t ) ;  
 	 	 	 } ) ( ) ;  
 	 	 }  
 	 }   c a t c h   ( e )   { } 	  
 } ,  
  
 p l a c e C a p t i o n   :   f u n c t i o n ( h e i g h t ,   e n d )   {  
 	 i f   ( ! t h i s . c a p t i o n )   r e t u r n ;  
 	 t h i s . c a p t i o n . s t y l e . h e i g h t   =   h e i g h t   + ' p x ' ;  
 	 t h i s . c a p t i o n . s t y l e . v i s i b i l i t y   =   ' v i s i b l e ' ;  
 	 t h i s . y . s p a n   =   t h i s . w r a p p e r . o f f s e t H e i g h t   -   2   *   t h i s . o f f s e t B o r d e r H ;  
 	  
 	  
 	 v a r   o   =   t h i s . o b j O u t l i n e ;  
 	 i f   ( o )   {  
 	 	 o . t d [ 4 ] . s t y l e . h e i g h t   =   ( t h i s . w r a p p e r . o f f s e t H e i g h t   -   2   *   t h i s . o b j O u t l i n e . o f f s e t )   + ' p x ' ;  
 	 	 i f   ( o . h a s A l p h a I m a g e L o a d e r )   o . t d [ 3 ] . s t y l e . h e i g h t   =   o . t d [ 5 ] . s t y l e . h e i g h t   =   o . t d [ 4 ] . s t y l e . h e i g h t ;  
 	 }  
 	 i f   ( e n d )   t h i s . p r e p a r e N e x t O u t l i n e ( ) ;  
 } ,  
  
  
 s h o w H i d e E l e m e n t s   :   f u n c t i o n   ( t a g N a m e ,   v i s i b i l i t y ,   i m g P o s )   {  
 	 v a r   e l s   =   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 ( t a g N a m e ) ;  
 	 i f   ( e l s )   { 	 	 	  
 	 	 f o r   ( i   =   0 ;   i   <   e l s . l e n g t h ;   i + + )   {  
 	 	 	 i f   ( e l s [ i ] . n o d e N a m e   = =   t a g N a m e )   {      
 	 	 	 	 v a r   h i d d e n B y   =   e l s [ i ] . g e t A t t r i b u t e ( ' h i d d e n - b y ' ) ;  
 	 	 	 	 i f   ( v i s i b i l i t y   = =   ' v i s i b l e '   & &   h i d d e n B y )   {  
 	 	 	 	 	 h i d d e n B y   =   h i d d e n B y . r e p l a c e ( ' [ ' +   t h i s . k e y   + ' ] ' ,   ' ' ) ;  
 	 	 	 	 	 e l s [ i ] . s e t A t t r i b u t e ( ' h i d d e n - b y ' ,   h i d d e n B y ) ;  
 	 	 	 	 	 i f   ( ! h i d d e n B y )   e l s [ i ] . s t y l e . v i s i b i l i t y   =   ' v i s i b l e ' ;  
 	 	 	 	 }   e l s e   i f   ( v i s i b i l i t y   = =   ' h i d d e n ' )   {   / /   h i d e   i f   b e h i n d  
 	 	 	 	 	 v a r   e l P o s   =   h s . p o s i t i o n ( e l s [ i ] ) ;  
 	 	 	 	 	 e l P o s . w   =   e l s [ i ] . o f f s e t W i d t h ;  
 	 	 	 	 	 e l P o s . h   =   e l s [ i ] . o f f s e t H e i g h t ;  
 	 	 	 	  
 	 	 	 	 	  
 	 	 	 	 	 	 v a r   c l e a r s X   =   ( e l P o s . x   +   e l P o s . w   <   i m g P o s . x   | |   e l P o s . x   >   i m g P o s . x   +   i m g P o s . w ) ;  
 	 	 	 	 	 	 v a r   c l e a r s Y   =   ( e l P o s . y   +   e l P o s . h   <   i m g P o s . y   | |   e l P o s . y   >   i m g P o s . y   +   i m g P o s . h ) ;  
 	 	 	 	 	  
 	 	 	 	 	 v a r   w r a p p e r K e y   =   h s . g e t W r a p p e r K e y ( e l s [ i ] ) ;  
 	 	 	 	 	 i f   ( ! c l e a r s X   & &   ! c l e a r s Y   & &   w r a p p e r K e y   ! =   t h i s . k e y )   {   / /   e l e m e n t   f a l l s   b e h i n d   i m a g e  
 	 	 	 	 	 	 i f   ( ! h i d d e n B y )  
 	 	 	 	 	 	 	 e l s [ i ] . s e t A t t r i b u t e ( ' h i d d e n - b y ' ,   ' [ ' +   t h i s . k e y   + ' ] ' ) ;  
 	 	 	 	 	 	 e l s e   i f   ( ! h i d d e n B y . m a t c h ( ' [ ' +   t h i s . k e y   + ' ] ' ) )  
 	 	 	 	 	 	 	 e l s [ i ] . s e t A t t r i b u t e ( ' h i d d e n - b y ' ,   h i d d e n B y   +   ' [ ' +   t h i s . k e y   + ' ] ' ) ;  
 	 	 	 	 	 	 e l s [ i ] . s t y l e . v i s i b i l i t y   =   ' h i d d e n ' ;  
 	 	 	 	 	 }   e l s e   i f   ( h i d d e n B y   = =   ' [ ' +   t h i s . k e y   + ' ] '   | |   h s . f o c u s K e y   = =   w r a p p e r K e y )   {   / /   o n   m o v e  
 	 	 	 	 	 	 e l s [ i ] . s e t A t t r i b u t e ( ' h i d d e n - b y ' ,   ' ' ) ;  
 	 	 	 	 	 	 e l s [ i ] . s t y l e . v i s i b i l i t y   =   ' v i s i b l e ' ;  
 	 	 	 	 	 }   e l s e   i f   ( h i d d e n B y   & &   h i d d e n B y . m a t c h ( ' [ ' +   t h i s . k e y   + ' ] ' ) )   {  
 	 	 	 	 	 	 e l s [ i ] . s e t A t t r i b u t e ( ' h i d d e n - b y ' ,   h i d d e n B y . r e p l a c e ( ' [ ' +   t h i s . k e y   + ' ] ' ,   ' ' ) ) ;  
 	 	 	 	 	 }  
 	 	 	 	 }        
 	 	 	 }  
 	 	 }  
 	 }  
 } ,  
  
 f o c u s   :   f u n c t i o n ( )   {  
 	 t h i s . w r a p p e r . s t y l e . z I n d e x   =   h s . z I n d e x C o u n t e r + + ;  
 	 / /   b l u r   o t h e r s  
 	 f o r   ( i   =   0 ;   i   <   h s . e x p a n d e r s . l e n g t h ;   i + + )   {  
 	 	 i f   ( h s . e x p a n d e r s [ i ]   & &   i   = =   h s . f o c u s K e y )   {  
 	 	 	 v a r   b l u r E x p   =   h s . e x p a n d e r s [ i ] ;  
 	 	 	 b l u r E x p . c o n t e n t . c l a s s N a m e   + =   '   h i g h s l i d e - ' +   b l u r E x p . c o n t e n t T y p e   + ' - b l u r ' ;  
 	 	 	  
 	 	 	 i f   ( b l u r E x p . c a p t i o n )   {  
 	 	 	 	 b l u r E x p . c a p t i o n . c l a s s N a m e   + =   '   h i g h s l i d e - c a p t i o n - b l u r ' ;  
 	 	 	 }  
 	 	 	  
 	 	 	 i f   ( b l u r E x p . i s I m a g e )   {  
 	 	 	 	 b l u r E x p . c o n t e n t . s t y l e . c u r s o r   =   h s . i e   ?   ' h a n d '   :   ' p o i n t e r ' ;  
 	 	 	 	 b l u r E x p . c o n t e n t . t i t l e   =   h s . f o c u s T i t l e ; 	  
 	 	 	 }  
 	 	 }  
 	 }  
 	  
 	 / /   f o c u s   t h i s  
 	 i f   ( t h i s . o b j O u t l i n e )   t h i s . o b j O u t l i n e . t a b l e . s t y l e . z I n d e x    
 	 	 =   t h i s . w r a p p e r . s t y l e . z I n d e x ;  
 	  
 	 t h i s . c o n t e n t . c l a s s N a m e   =   ' h i g h s l i d e - ' +   t h i s . c o n t e n t T y p e ;  
 	  
 	 i f   ( t h i s . c a p t i o n )   {  
 	 	 t h i s . c a p t i o n . c l a s s N a m e   =   t h i s . c a p t i o n . c l a s s N a m e . r e p l a c e ( '   h i g h s l i d e - c a p t i o n - b l u r ' ,   ' ' ) ;  
 	 }  
 	  
 	 i f   ( t h i s . i s I m a g e )   {  
 	 	 t h i s . c o n t e n t . t i t l e   =   h s . r e s t o r e T i t l e ;  
 	 	  
 	 	 h s . s t y l e R e s t o r e C u r s o r   =   w i n d o w . o p e r a   ?   ' p o i n t e r '   :   ' u r l ( ' +   h s . g r a p h i c s D i r   +   h s . r e s t o r e C u r s o r   + ' ) ,   p o i n t e r ' ;  
 	 	 i f   ( h s . i e   & &   h s . i e V e r s i o n ( )   <   6 )   h s . s t y l e R e s t o r e C u r s o r   =   ' h a n d ' ;  
 	 	 t h i s . c o n t e n t . s t y l e . c u r s o r   =   h s . s t y l e R e s t o r e C u r s o r ;  
 	 }  
 	 h s . f o c u s K e y   =   t h i s . k e y ; 	  
 	 h s . a d d E v e n t L i s t e n e r ( d o c u m e n t ,   ' k e y d o w n ' ,   h s . k e y H a n d l e r ) ; 	  
 } ,  
  
 m o v e   :   f u n c t i o n   ( e )   {  
 	 t h i s . x . m i n   =   e . l e f t   +   e . d X ;  
 	 t h i s . y . m i n   =   e . t o p   +   e . d Y ;  
 	  
 	 h s . s e t S t y l e s ( t h i s . w r a p p e r ,   {   l e f t :   t h i s . x . m i n   + ' p x ' ,   t o p :   t h i s . y . m i n   + ' p x '   } ) ;  
 	  
 	 i f   ( t h i s . o b j O u t l i n e )  
 	 	 t h i s . o b j O u t l i n e . s e t P o s i t i o n ( t h i s ,   t h i s . x . m i n ,   t h i s . y . m i n ,   t h i s . x . s p a n ,   t h i s . y . s p a n ) ;  
 	  
 } ,  
  
 r e s i z e   :   f u n c t i o n   ( e )   {  
 	 t h i s . x . s p a n   =   e . w i d t h   +   e . d X ;  
 	 t h i s . y . s p a n   =   e . h e i g h t   +   e . d Y ;  
 	  
 	 i f   ( t h i s . x . s p a n   <   t h i s . m i n W i d t h )   t h i s . x . s p a n   =   t h i s . m i n W i d t h ;  
 	 i f   ( t h i s . y . s p a n   <   t h i s . m i n H e i g h t )   t h i s . y . s p a n   =   t h i s . m i n H e i g h t ;  
 	  
 	 v a r   d   =   t h i s . s c r o l l e r D i v ; 	  
 	 i f   ( t y p e o f   t h i s . w D i f f   = =   ' u n d e f i n e d ' )   {  
 	 	 t h i s . w D i f f   =   t h i s . i n n e r C o n t e n t . o f f s e t W i d t h   -   d . o f f s e t W i d t h ;  
 	 	 t h i s . h D i f f   =   t h i s . i n n e r C o n t e n t . o f f s e t H e i g h t   -   d . o f f s e t H e i g h t ;  
 	 }  
 	 h s . s e t S t y l e s ( d ,   {   w i d t h :   ( t h i s . x . s p a n   -   t h i s . w D i f f )   + ' p x ' ,    
 	 	 h e i g h t :   ( t h i s . y . s p a n   -   t h i s . h D i f f )   + ' p x '   } ) ;  
 	 	 	  
 	 h s . s e t S t y l e s ( t h i s . c o n t e n t ,   {   w i d t h :   t h i s . x . s p a n   + ' p x ' ,   h e i g h t :   t h i s . y . s p a n   + ' p x '   } ) ;  
 	  
 	 t h i s . m e d i u m C o n t e n t . s t y l e . w i d t h   =   ' a u t o ' ;  
 	 h s . s e t S t y l e s ( t h i s . b o d y ,   {   w i d t h :   ' a u t o ' ,   h e i g h t :   ' a u t o '   } ) ;  
 	  
 	  
 	 f o r   ( v a r   i   =   0 ;   i   <   t h i s . o v e r l a y s . l e n g t h ;   i + + )    
 	 	 t h i s . p o s i t i o n O v e r l a y ( t h i s . o v e r l a y s [ i ] ) ;  
 	 i f   ( t h i s . o b j O u t l i n e )  
 	 	 t h i s . o b j O u t l i n e . s e t P o s i t i o n ( t h i s ,   t h i s . x . m i n ,   t h i s . y . m i n ,   t h i s . x . s p a n ,   t h i s . y . s p a n ) ;  
 	  
 } ,  
  
 c l o s e   :   f u n c t i o n ( )   {  
 	 i f   ( t h i s . i s C l o s i n g   | |   ! t h i s . i s E x p a n d e d )   r e t u r n ;  
 	 t h i s . i s C l o s i n g   =   t r u e ;  
 	  
 	 h s . r e m o v e E v e n t L i s t e n e r ( d o c u m e n t ,   ' k e y d o w n ' ,   h s . k e y H a n d l e r ) ;  
 	  
 	 t r y   {  
 	 	 i f   ( t h i s . i s H t m l )   t h i s . h t m l P r e p a r e C l o s e ( ) ;  
 	 	  
 	 	 t h i s . c o n t e n t . s t y l e . c u r s o r   =   ' d e f a u l t ' ;  
 	 	  
 	 	 t h i s . c h a n g e S i z e (  
 	 	 	 0 ,  
 	 	 	 {  
 	 	 	 	 x :   t h i s . x . m i n ,  
 	 	 	 	 y :   t h i s . y . m i n ,  
 	 	 	 	 w :   t h i s . x . s p a n ,  
 	 	 	 	 h :   p a r s e I n t ( t h i s . c o n t e n t . s t y l e . h e i g h t ) ,  
 	 	 	 	 i m g W :   t h i s . x . i m g S p a n ,  
 	 	 	 	 o :   t h i s . o b j O u t l i n e   ?   t h i s . o b j O u t l i n e . o f f s e t   :   0  
 	 	 	 } ,  
 	 	 	 {  
 	 	 	 	 x :   t h i s . t h u m b L e f t   -   t h i s . o f f s e t B o r d e r W   +   t h i s . t h u m b O f f s e t B o r d e r W ,  
 	 	 	 	 y :   t h i s . t h u m b T o p   -   t h i s . o f f s e t B o r d e r H   +   t h i s . t h u m b O f f s e t B o r d e r H ,  
 	 	 	 	 w :   t h i s . t h u m b W i d t h ,  
 	 	 	 	 h :   t h i s . t h u m b H e i g h t ,  
 	 	 	 	 i m g W :   t h i s . t h u m b W i d t h ,  
 	 	 	 	 o :   h s . o u t l i n e S t a r t O f f s e t  
 	 	 	 } ,  
 	 	 	 h s . r e s t o r e D u r a t i o n ,  
 	 	 	 h s . r e s t o r e S t e p s  
 	 	 ) ;  
 	 	  
 	 }   c a t c h   ( e )   {   t h i s . a f t e r C l o s e ( ) ;   }    
 } ,  
  
 h t m l P r e p a r e C l o s e   :   f u n c t i o n ( )   {  
 	 i f   ( / M a c i n t o s h . + G e c k o / . t e s t ( n a v i g a t o r . u s e r A g e n t ) )   {   / /   b a d   r e d r a w s  
 	 	 i f   ( ! h s . m a s k )   h s . m a s k   =   h s . c r e a t e E l e m e n t ( ' d i v ' ,   n u l l ,    
 	 	 	 {   p o s i t i o n :   ' a b s o l u t e '   } ,   h s . c o n t a i n e r ) ;  
 	 	 h s . s e t S t y l e s ( h s . m a s k ,   {   w i d t h :   t h i s . x . s p a n   + ' p x ' ,   h e i g h t :   t h i s . y . s p a n   + ' p x ' ,    
 	 	 	 l e f t :   t h i s . x . m i n   + ' p x ' ,   t o p :   t h i s . y . m i n   + ' p x ' ,   d i s p l a y :   ' b l o c k '   } ) ; 	 	 	  
 	 }  
 	 i f   ( t h i s . s w f O b j e c t )   t r y   {   h s . $ ( t h i s . s w f O b j e c t . g e t A t t r i b u t e ( ' i d ' ) ) . S t o p P l a y ( ) ;   }   c a t c h   ( e )   { }  
 	  
 	 i f   ( t h i s . o b j e c t L o a d T i m e   = =   ' a f t e r '   & &   ! t h i s . p r e s e r v e C o n t e n t )   t h i s . d e s t r o y O b j e c t ( ) ; 	 	  
 	 i f   ( t h i s . s c r o l l e r D i v   & &   t h i s . s c r o l l e r D i v   ! =   t h i s . s c r o l l i n g C o n t e n t )    
 	 	 t h i s . s c r o l l e r D i v . s t y l e . o v e r f l o w   =   ' h i d d e n ' ;  
 } ,  
  
 d e s t r o y O b j e c t   :   f u n c t i o n   ( )   {  
 	 i f   ( h s . i e   & &   t h i s . i f r a m e )  
 	 	 t r y   {   t h i s . i f r a m e . c o n t e n t W i n d o w . d o c u m e n t . b o d y . i n n e r H T M L   =   ' ' ;   }   c a t c h   ( e )   { } 	  
 	 t h i s . b o d y . i n n e r H T M L   =   ' ' ;  
 } ,  
  
 s l e e p   :   f u n c t i o n ( )   {  
 	 i f   ( t h i s . o b j O u t l i n e )   t h i s . o b j O u t l i n e . t a b l e . c l a s s N a m e   =   ' h i g h s l i d e - d i s p l a y - n o n e ' ;  
 	 t h i s . w r a p p e r . c l a s s N a m e   + =   '   h i g h s l i d e - d i s p l a y - n o n e ' ;  
 	 h s . p u s h ( h s . s l e e p i n g ,   t h i s ) ;  
 } ,  
  
 a w a k e   :   f u n c t i o n ( )   {  
 	 h s . e x p a n d e r s [ t h i s . k e y ]   =   t h i s ;  
 	  
 	 i f   ( ! h s . a l l o w M u l t i p l e I n s t a n c e s   & & h s . f o c u s K e y   ! =   t h i s . k e y )   { 	  
 	 	 t r y   {   h s . e x p a n d e r s [ h s . f o c u s K e y ] . c l o s e ( ) ;   }   c a t c h   ( e ) { }  
 	 }  
 	  
 	 t h i s . w r a p p e r . c l a s s N a m e   =   t h i s . w r a p p e r . c l a s s N a m e . r e p l a c e ( / h i g h s l i d e - d i s p l a y - n o n e / ,   ' ' ) ;  
 	 v a r   z   =   h s . z I n d e x C o u n t e r + + ;  
 	 t h i s . w r a p p e r . s t y l e . z I n d e x   =   z ;  
 	 t h i s . i s C l o s i n g   =   f a l s e ;  
 	  
 	 i f   ( o   =   t h i s . o b j O u t l i n e )   {  
 	 	 i f   ( ! t h i s . o u t l i n e W h i l e A n i m a t i n g )   o . t a b l e . s t y l e . v i s i b i l i t y   =   ' h i d d e n ' ;  
 	 	 o . t a b l e . c l a s s N a m e   =   n u l l ;  
 	 	 o . t a b l e . s t y l e . z I n d e x   =   z ;  
 	 }  
 	 t h i s . s h o w ( ) ;  
 } ,  
  
 c r e a t e O v e r l a y   :   f u n c t i o n   ( o )   {  
 	 v a r   e l   =   o . o v e r l a y I d ;  
 	 i f   ( t y p e o f   e l   = =   ' s t r i n g ' )   e l   =   h s . g e t N o d e ( e l ) ;  
 	 i f   ( ! e l   | |   t y p e o f   e l   = =   ' s t r i n g ' )   r e t u r n ;  
 	  
 	  
 	 v a r   o v e r l a y   =   h s . c r e a t e E l e m e n t (  
 	 	 ' d i v ' ,  
 	 	 n u l l ,  
 	 	 {  
 	 	 	 ' l e f t '   :   0 ,  
 	 	 	 ' t o p '   :   0 ,  
 	 	 	 ' p o s i t i o n '   :   ' a b s o l u t e ' ,  
 	 	 	 ' z I n d e x '   :   3 ,  
 	 	 	 ' v i s i b i l i t y '   :   ' h i d d e n '  
 	 	 } ,  
 	 	 t h i s . w r a p p e r ,  
 	 	 t r u e  
 	 ) ;  
 	 i f   ( o . o p a c i t y )   h s . s e t S t y l e s ( e l ,   {   o p a c i t y :   o . o p a c i t y   } ) ;  
 	 e l . c l a s s N a m e   + =   '   h i g h s l i d e - d i s p l a y - b l o c k ' ;  
 	 o v e r l a y . a p p e n d C h i l d ( e l ) ; 	  
 	  
 	 o v e r l a y . h s P o s   =   o . p o s i t i o n ;  
 	 t h i s . p o s i t i o n O v e r l a y ( o v e r l a y ) ; 	  
 	  
 	 i f   ( o . h i d e O n M o u s e O u t )   o v e r l a y . s e t A t t r i b u t e ( ' h i d e O n M o u s e O u t ' ,   t r u e ) ;  
 	 i f   ( ! o . o p a c i t y )   o . o p a c i t y   =   1 ;  
 	 o v e r l a y . s e t A t t r i b u t e ( ' o p a c i t y ' ,   o . o p a c i t y ) ;  
 	 h s . f a d e ( o v e r l a y ,   0 ,   o . o p a c i t y ) ;  
 	  
 	 h s . p u s h ( t h i s . o v e r l a y s ,   o v e r l a y ) ;  
 } ,  
  
 p o s i t i o n O v e r l a y   :   f u n c t i o n ( o v e r l a y )   {  
 	 v a r   l e f t   =   t h i s . o f f s e t B o r d e r W ;  
 	 v a r   d L e f t   =   t h i s . x . s p a n   -   o v e r l a y . o f f s e t W i d t h ;  
 	 v a r   t o p   =   t h i s . o f f s e t B o r d e r H ;  
 	 v a r   d T o p   =   p a r s e I n t ( t h i s . c o n t e n t . s t y l e . h e i g h t )   -   o v e r l a y . o f f s e t H e i g h t ;  
 	  
 	 v a r   p   =   o v e r l a y . h s P o s   | |   ' c e n t e r   c e n t e r ' ;  
 	 i f   ( / ^ b o t t o m / . t e s t ( p ) )   t o p   + =   d T o p ;  
 	 i f   ( / ^ c e n t e r / . t e s t ( p ) )   t o p   + =   d T o p   /   2 ;  
 	 i f   ( / r i g h t $ / . t e s t ( p ) )   l e f t   + =   d L e f t ;  
 	 i f   ( / c e n t e r $ / . t e s t ( p ) )   l e f t   + =   d L e f t   /   2 ;  
 	 o v e r l a y . s t y l e . l e f t   =   l e f t   + ' p x ' ;  
 	 o v e r l a y . s t y l e . t o p   =   t o p   + ' p x ' ;  
 } ,  
  
 c r e a t e O v e r l a y s   :   f u n c t i o n ( )   {  
 	 f o r   ( i   =   0 ;   i   <   h s . o v e r l a y s . l e n g t h ;   i + + )   {  
 	 	 v a r   o   =   h s . o v e r l a y s [ i ] ;  
 	 	 i f   ( ( ! o . t h u m b n a i l I d   & &   ! o . s l i d e s h o w G r o u p )   | |   o . t h u m b n a i l I d   = =   t h i s . t h u m b s U s e r S e t I d  
 	 	 	 	 | |   o . s l i d e s h o w G r o u p   = = =   t h i s . s l i d e s h o w G r o u p )   {  
 	 	 	 i f   ( t h i s . i s I m a g e   | |   ( t h i s . i s H t m l   & &   o . u s e O n H t m l ) )  
 	 	 	 t h i s . c r e a t e O v e r l a y ( o ) ;  
 	 	 }  
 	 }  
 } ,  
  
  
 c r e a t e F u l l E x p a n d   :   f u n c t i o n   ( )   {  
 	 v a r   a   =   h s . c r e a t e E l e m e n t (  
 	 	 ' a ' ,  
 	 	 {  
 	 	 	 h r e f :   ' j a v a s c r i p t : h s . e x p a n d e r s [ ' +   t h i s . k e y   + ' ] . d o F u l l E x p a n d ( ) ; ' ,  
 	 	 	 t i t l e :   h s . f u l l E x p a n d T i t l e ,  
 	 	 	 c l a s s N a m e :   ' h i g h s l i d e - f u l l - e x p a n d '  
 	 	 }  
 	 ) ;  
 	  
 	 t h i s . f u l l E x p a n d L a b e l   =   a ;  
 	 t h i s . c r e a t e O v e r l a y ( {   o v e r l a y I d :   a ,   p o s i t i o n :   h s . f u l l E x p a n d P o s i t i o n ,    
 	 	 h i d e O n M o u s e O u t :   t r u e ,   o p a c i t y :   h s . f u l l E x p a n d O p a c i t y   } ) ;  
 } ,  
  
 d o F u l l E x p a n d   :   f u n c t i o n   ( )   {  
 	 t r y   { 	  
 	 	 h s . p u r g e ( t h i s . f u l l E x p a n d L a b e l ) ;  
 	 	 t h i s . f u l l E x p a n d L a b e l . p a r e n t N o d e . r e m o v e C h i l d ( t h i s . f u l l E x p a n d L a b e l ) ;  
 	 	 t h i s . f o c u s ( ) ;  
 	 	  
 	 	 t h i s . x . m i n   =   p a r s e I n t ( t h i s . w r a p p e r . s t y l e . l e f t )   -   ( t h i s . f u l l E x p a n d W i d t h   -   t h i s . c o n t e n t . w i d t h )   /   2 ;  
 	 	 i f   ( t h i s . x . m i n   <   h s . m a r g i n L e f t )   t h i s . x . m i n   =   h s . m a r g i n L e f t ; 	 	  
 	 	 t h i s . w r a p p e r . s t y l e . l e f t   =   t h i s . x . m i n   + ' p x ' ;  
 	 	  
 	 	 h s . s e t S t y l e s ( t h i s . c o n t e n t ,   {   w i d t h :   t h i s . f u l l E x p a n d W i d t h   + ' p x ' ,    
 	 	 	 h e i g h t :   t h i s . f u l l E x p a n d H e i g h t   + ' p x ' } ) ;  
 	 	  
 	 	 t h i s . x . s p a n   =   t h i s . f u l l E x p a n d W i d t h ;  
 	 	 t h i s . w r a p p e r . s t y l e . w i d t h   =   ( t h i s . x . s p a n   +   2 * t h i s . o f f s e t B o r d e r W )   + ' p x ' ;  
 	 	  
 	 	 t h i s . y . s p a n   =   t h i s . w r a p p e r . o f f s e t H e i g h t   -   2   *   t h i s . o f f s e t B o r d e r H ;  
 	 	  
 	 	 i f   ( t h i s . o b j O u t l i n e )  
 	 	 	 t h i s . o b j O u t l i n e . s e t P o s i t i o n ( t h i s ,   t h i s . x . m i n ,   t h i s . y . m i n ,   t h i s . x . s p a n ,   t h i s . y . s p a n ) ;  
 	 	  
 	 	 f o r   ( v a r   i   =   0 ;   i   <   t h i s . o v e r l a y s . l e n g t h ;   i + + )  
 	 	 	 t h i s . p o s i t i o n O v e r l a y ( t h i s . o v e r l a y s [ i ] ) ;  
 	 	  
 	 	 t h i s . r e d o S h o w H i d e ( ) ;  
 	 	  
 	 	  
 	  
 	 }   c a t c h   ( e )   {  
 	 	 w i n d o w . l o c a t i o n . h r e f   =   t h i s . c o n t e n t . s r c ;  
 	 }  
 } ,  
  
  
 / /   o n   e n d   m o v e   a n d   r e s i z e  
 r e d o S h o w H i d e   :   f u n c t i o n ( )   {  
 	 v a r   i m g P o s   =   {  
 	 	 x :   p a r s e I n t ( t h i s . w r a p p e r . s t y l e . l e f t )   -   2 0 ,    
 	 	 y :   p a r s e I n t ( t h i s . w r a p p e r . s t y l e . t o p )   -   2 0 ,    
 	 	 w :   t h i s . c o n t e n t . o f f s e t W i d t h   +   4 0 ,    
 	 	 h :   t h i s . c o n t e n t . o f f s e t H e i g h t   +   4 0    
 	 	 	 +   t h i s . s p a c e F o r C a p t i o n  
 	 } ;  
 	 i f   ( h s . h i d e S e l e c t s )   t h i s . s h o w H i d e E l e m e n t s ( ' S E L E C T ' ,   ' h i d d e n ' ,   i m g P o s ) ;  
 	 i f   ( h s . h i d e I f r a m e s )   t h i s . s h o w H i d e E l e m e n t s ( ' I F R A M E ' ,   ' h i d d e n ' ,   i m g P o s ) ;  
  
 } ,  
  
 w r a p p e r M o u s e H a n d l e r   :   f u n c t i o n   ( e )   {  
 	 i f   ( ! e )   e   =   w i n d o w . e v e n t ;  
 	 v a r   o v e r   =   / m o u s e o v e r / i . t e s t ( e . t y p e ) ;    
 	 i f   ( ! e . t a r g e t )   e . t a r g e t   =   e . s r c E l e m e n t ;   / /   i e  
 	 i f   ( ! e . r e l a t e d T a r g e t )   e . r e l a t e d T a r g e t   =    
 	 	 o v e r   ?   e . f r o m E l e m e n t   :   e . t o E l e m e n t ;   / /   i e  
 	 i f   ( h s . g e t E x p a n d e r ( e . r e l a t e d T a r g e t )   = =   t h i s   | |   h s . d r a g A r g s )   r e t u r n ;  
 	 f o r   ( i   =   0 ;   i   <   t h i s . o v e r l a y s . l e n g t h ;   i + + )   {  
 	 	 v a r   o   =   t h i s . o v e r l a y s [ i ] ;  
 	 	 i f   ( o . g e t A t t r i b u t e ( ' h i d e O n M o u s e O u t ' ) )   {  
 	 	 	 v a r   f r o m   =   o v e r   ?   0   :   o . g e t A t t r i b u t e ( ' o p a c i t y ' ) ,  
 	 	 	 	 t o   =   o v e r   ?   o . g e t A t t r i b u t e ( ' o p a c i t y ' )   :   0 ; 	 	 	  
 	 	 	 h s . f a d e ( o ,   f r o m ,   t o ) ;  
 	 	 }  
 	 }  
 } ,  
  
 a f t e r C l o s e   :   f u n c t i o n   ( )   {  
 	 t h i s . a . c l a s s N a m e   =   t h i s . a . c l a s s N a m e . r e p l a c e ( ' h i g h s l i d e - a c t i v e - a n c h o r ' ,   ' ' ) ;  
 	  
 	 i f   ( h s . h i d e S e l e c t s )   t h i s . s h o w H i d e E l e m e n t s ( ' S E L E C T ' ,   ' v i s i b l e ' ) ;  
 	 i f   ( h s . h i d e I f r a m e s )   t h i s . s h o w H i d e E l e m e n t s ( ' I F R A M E ' ,   ' v i s i b l e ' ) ; 	  
 	  
 	 i f   ( t h i s . i s H t m l   & &   t h i s . p r e s e r v e C o n t e n t )   t h i s . s l e e p ( ) ;  
 	 e l s e   {  
 	 	 i f   ( t h i s . o b j O u t l i n e   & &   t h i s . o u t l i n e W h i l e A n i m a t i n g )   t h i s . o b j O u t l i n e . d e s t r o y ( ) ;  
 	 	 h s . p u r g e ( t h i s . w r a p p e r ) ;  
 	 	 i f   ( h s . i e   & &   h s . i e V e r s i o n ( )   <   5 . 5 )   t h i s . w r a p p e r . i n n e r H T M L   =   ' ' ;   / /   c r a s h  
 	 	 e l s e   t h i s . w r a p p e r . p a r e n t N o d e . r e m o v e C h i l d ( t h i s . w r a p p e r ) ;  
 	 }  
 	 i f   ( h s . m a s k )   h s . m a s k . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 	 h s . e x p a n d e r s [ t h i s . k e y ]   =   n u l l ; 	 	  
 	 h s . c l e a n U p ( ) ;  
 }  
 } ;  
  
  
 / /   h s . A j a x   o b j e c t   p r o t o t y p e  
 h s . A j a x   =   f u n c t i o n   ( a ,   c o n t e n t ,   p r e )   {  
 	 t h i s . a   =   a ;  
 	 t h i s . c o n t e n t   =   c o n t e n t ;  
 	 t h i s . p r e   =   p r e ;   / /   p r e l o a d i n g  
 } ;  
  
 h s . A j a x . p r o t o t y p e   =   {  
 r u n   :   f u n c t i o n   ( )   {  
 	 t h i s . s r c   =   h s . g e t S r c ( t h i s . a ) ;  
 	 i f   ( t h i s . s r c . m a t c h ( ' # ' ) )   {  
 	 	 v a r   a r r   =   t h i s . s r c . s p l i t ( ' # ' ) ;  
 	 	 t h i s . s r c   =   a r r [ 0 ] ;  
 	 	 t h i s . i d   =   a r r [ 1 ] ;  
 	 }  
 	 i f   ( h s . c a c h e d G e t s [ t h i s . s r c ] )   {  
 	 	 t h i s . c a c h e d G e t   =   h s . c a c h e d G e t s [ t h i s . s r c ] ;  
 	 	 i f   ( t h i s . i d )   t h i s . g e t E l e m e n t C o n t e n t ( ) ;  
 	 	 e l s e   t h i s . l o a d H T M L ( ) ;  
 	 	 r e t u r n ;  
 	 }  
 	 t r y   {   t h i s . x m l H t t p   =   n e w   X M L H t t p R e q u e s t ( ) ;   }  
 	 c a t c h   ( e )   {  
 	 	 t r y   {   t h i s . x m l H t t p   =   n e w   A c t i v e X O b j e c t ( " M s x m l 2 . X M L H T T P " ) ;   }  
 	 	 c a t c h   ( e )   {  
 	 	 	 t r y   {   t h i s . x m l H t t p   =   n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) ;   }  
 	 	 	 c a t c h   ( e )   {   t h i s . o n E r r o r ( ) ;   }  
 	 	 }  
 	 }  
 	 v a r   p T h i s   =   t h i s ;  
 	 t h i s . x m l H t t p . o n r e a d y s t a t e c h a n g e   =   f u n c t i o n ( )   {  
 	 	 i f ( p T h i s . x m l H t t p . r e a d y S t a t e   = =   4 )   { 	  
 	 	 	 i f   ( p T h i s . i d )   p T h i s . g e t E l e m e n t C o n t e n t ( ) ;  
 	 	 	 e l s e   p T h i s . l o a d H T M L ( ) ;  
 	 	 }  
 	 } ;  
 	  
 	 t h i s . x m l H t t p . o p e n ( " G E T " ,   t h i s . s r c ,   t r u e ) ;  
 	 t h i s . x m l H t t p . s e n d ( n u l l ) ;  
 } ,  
  
 g e t E l e m e n t C o n t e n t   :   f u n c t i o n ( )   {  
 	 h s . g e n C o n t a i n e r ( ) ;  
 	 v a r   a t t r i b s   =   w i n d o w . o p e r a   ?   {   s r c :   t h i s . s r c   }   :   n u l l ;   / /   O p e r a   n e e d s   l o c a l   s r c  
 	 t h i s . i f r a m e   =   h s . c r e a t e E l e m e n t ( ' i f r a m e ' ,   a t t r i b s ,    
 	 	 {   p o s i t i o n :   ' a b s o l u t e ' ,   l e f t :   ' - 9 9 9 9 p x '   } ,   h s . c o n t a i n e r ) ;  
 	 	  
 	 t r y   {  
 	 	 t h i s . l o a d H T M L ( ) ;  
 	 }   c a t c h   ( e )   {   / /   O p e r a   s e c u r i t y  
 	 	 v a r   p T h i s   =   t h i s ;  
 	 	 s e t T i m e o u t ( f u n c t i o n ( )   { 	 p T h i s . l o a d H T M L ( ) ;   } ,   1 ) ;  
 	 }  
 } ,  
  
 l o a d H T M L   :   f u n c t i o n ( )   {  
 	 v a r   s   =   t h i s . c a c h e d G e t   | |   t h i s . x m l H t t p . r e s p o n s e T e x t ;  
 	 i f   ( t h i s . p r e )   h s . c a c h e d G e t s [ t h i s . s r c ]   =   s ;  
 	 i f   ( ! h s . i e   | |   h s . i e V e r s i o n ( )   > =   5 . 5 )   {  
 	 	 s   =   s . r e p l a c e ( / \ s / g ,   '   ' ) ;  
 	 	 i f   ( t h i s . i f r a m e )   {  
 	 	 	 s   =   s . r e p l a c e ( n e w   R e g E x p ( ' < l i n k [ ^ > ] * > ' ,   ' g i ' ) ,   ' ' ) ;  
 	 	 	 s   =   s . r e p l a c e ( n e w   R e g E x p ( ' < s c r i p t [ ^ > ] * > . * ? < / s c r i p t > ' ,   ' g i ' ) ,   ' ' ) ;  
 	 	 	 v a r   d o c   =   t h i s . i f r a m e . c o n t e n t D o c u m e n t   | |   t h i s . i f r a m e . c o n t e n t W i n d o w . d o c u m e n t ;  
 	 	 	 d o c . o p e n ( ) ;  
 	 	 	 d o c . w r i t e ( s ) ;  
 	 	 	 d o c . c l o s e ( ) ;  
 	 	 	 t r y   {   s   =   d o c . g e t E l e m e n t B y I d ( t h i s . i d ) . i n n e r H T M L ;   }   c a t c h   ( e )   {  
 	 	 	 	 t r y   {   s   =   t h i s . i f r a m e . d o c u m e n t . g e t E l e m e n t B y I d ( t h i s . i d ) . i n n e r H T M L ;   }   c a t c h   ( e )   { }   / /   o p e r a  
 	 	 	 }  
 	 	 	 h s . c o n t a i n e r . r e m o v e C h i l d ( t h i s . i f r a m e ) ;  
 	 	 }   e l s e   {  
 	 	 	 s   =   s . r e p l a c e ( n e w   R e g E x p ( ' ^ . * ? < b o d y [ ^ > ] * > ( . * ? ) < / b o d y > . * ? $ ' ,   ' i ' ) ,   ' $ 1 ' ) ;  
 	 	 }  
 	 	  
 	 }  
 	 h s . g e t E l e m e n t B y C l a s s ( t h i s . c o n t e n t ,   ' D I V ' ,   ' h i g h s l i d e - b o d y ' ) . i n n e r H T M L   =   s ;  
 	 t h i s . o n L o a d ( ) ;  
 }  
 } ;  
 / /   h i s t o r y  
 v a r   H s E x p a n d e r   =   h s . E x p a n d e r ;  
  
 / /   s e t   h a n d l e r s  
 h s . a d d E v e n t L i s t e n e r ( d o c u m e n t ,   ' m o u s e d o w n ' ,   h s . m o u s e C l i c k H a n d l e r ) ;  
 h s . a d d E v e n t L i s t e n e r ( d o c u m e n t ,   ' m o u s e u p ' ,   h s . m o u s e C l i c k H a n d l e r ) ;  
 h s . a d d E v e n t L i s t e n e r ( w i n d o w ,   ' l o a d ' ,   h s . p r e l o a d I m a g e s ) ;  
 h s . a d d E v e n t L i s t e n e r ( w i n d o w ,   ' l o a d ' ,   h s . p r e l o a d A j a x ) ; 
