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