ÿþ/ *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
   *     T h i s   i s   t h e   m a s t e r   J a v a S c r i p t   f i l e   f o r   t h e   H T M L   H e l p   d o c u m e n t a t i o n .  
   *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
   *   A e n d e r u n g s d a t u m :   2 0 1 0 0 8 3 1 : 0 1 3 0  
   *   V e r s i o n :   1 . 0 . 1 1  
   *   V e r s i o n   O f f i c e H e l p :   8 . 0 . 0 7    
   *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
   * /  
  
 / *   T h e s e   f u n c t i o n s   ( d o S e c t i o n ,   n o S e c t i o n )   a r e   u s e d   t o   m a k e   s i d e b a r s   a p p e a r   a n d   d i s a p p e a r .  
 * /  
  
 v a r   c t B o t t o m   =   0 ;  
 v a r   c t L e f t       =   1 1 5 ;  
 v a r   c t R i g h t     =   8 0 ;  
 v a r   c t T o p   =   1 6 5 ;  
  
 f u n c t i o n   o p e n P o p u p ( w i d t h ,   h e i g h t ,   u r l )  
 {  
 	 w i n d o w . o p e n ( u r l ,   ' p o p u p ' ,   ' h e i g h t = '   +   h e i g h t   +   ' , w i d t h = '   +   w i d t h   +   ' , s t a t u s = n o , t o o l b a r = n o , m e n u b a r = n o , l o c a t i o n = n o ' ) ;  
 }  
  
 f u n c t i o n   i n i t M o u s e D o w n ( )    
 {  
     i f   ( w i n d o w . E v e n t )    
     {  
         d o c u m e n t . c a p t u r e E v e n t s ( E v e n t . M O U S E D O W N ) ;  
     }  
     d o c u m e n t . o n m o u s e d o w n   =   g e t M o u s e P o s i t i o n ;  
 }  
  
 f u n c t i o n   g e t M o u s e P o s i t i o n ( e )  
 {  
     m o u s e X   =   ( i s N a v )   ?   e . p a g e X   :   e v e n t . c l i e n t X   +   d o c u m e n t . b o d y . s c r o l l L e f t ;  
     m o u s e Y   =   ( i s N a v )   ?   e . p a g e Y   :   e v e n t . c l i e n t Y   +   d o c u m e n t . b o d y . s c r o l l T o p ;  
 }  
  
 f u n c t i o n   c a l c X P o s i t i o n ( m o u s e X ,   o b j e c t W i d t h ,   b o d y W i d t h )  
 {  
         v a r   x P o s i t i o n ;  
  
         i f (   ( p a r s e I n t ( m o u s e X ) + p a r s e I n t ( o b j e c t W i d t h ) )   >   p a r s e I n t ( b o d y W i d t h )   )  
         {  
                 i f ( ( p a r s e I n t ( m o u s e X ) - p a r s e I n t ( o b j e c t W i d t h ) ) > 0 )  
                         x P o s i t i o n = p a r s e I n t ( m o u s e X ) - p a r s e I n t ( o b j e c t W i d t h ) ;  
                 e l s e  
                 {  
                         v a r   x D i f f = ( p a r s e I n t ( m o u s e X ) + p a r s e I n t ( o b j e c t W i d t h ) ) - p a r s e I n t ( b o d y W i d t h ) ;  
                         i f ( p a r s e I n t ( x D i f f ) < p a r s e I n t ( m o u s e X ) )  
                                 x P o s i t i o n = p a r s e I n t ( m o u s e X ) - p a r s e I n t ( x D i f f ) - 1 5 ;  
                         e l s e  
                         {  
                                 x P o s i t i o n = 5 0 ;  
                                 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 ( " b o d y " ) . i t e m ( 0 ) . s e t A t t r i b u t e ( " s c r o l l " , " y e s " ) ;  
                         }  
                 }  
         }  
         e l s e  
                 x P o s i t i o n = p a r s e I n t ( m o u s e X ) ;  
  
         r e t u r n   x P o s i t i o n ;  
 }  
  
 f u n c t i o n   c a l c Y P o s i t i o n ( m o u s e Y ,   o b j e c t H e i g h t ,   b o d y H e i g h t )  
 {  
         v a r   y P o s i t i o n ;  
  
         i f (   ( p a r s e I n t ( m o u s e Y ) + p a r s e I n t ( o b j e c t H e i g h t ) )   >   p a r s e I n t ( b o d y H e i g h t )   )  
         {  
                 i f ( ( p a r s e I n t ( m o u s e Y ) - p a r s e I n t ( o b j e c t H e i g h t ) ) > 0 )  
                         y P o s i t i o n = p a r s e I n t ( m o u s e Y ) - p a r s e I n t ( o b j e c t H e i g h t ) ;  
                 e l s e  
                 {  
                         v a r   y D i f f = ( p a r s e I n t ( m o u s e Y ) + p a r s e I n t ( o b j e c t H e i g h t ) ) - p a r s e I n t ( b o d y H e i g h t ) ;  
                         i f ( p a r s e I n t ( y D i f f ) < p a r s e I n t ( m o u s e Y ) )  
                                 y P o s i t i o n = p a r s e I n t ( m o u s e Y ) - p a r s e I n t ( y D i f f ) - 1 5 ;  
                         e l s e  
                         {  
                                 y P o s i t i o n = 5 0 ;  
                                 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 ( " b o d y " ) . i t e m ( 0 ) . s e t A t t r i b u t e ( " s c r o l l " , " y e s " ) ;  
                         }  
                 }  
         }  
         e l s e  
                 y P o s i t i o n = p a r s e I n t ( m o u s e Y ) ;  
  
         r e t u r n   y P o s i t i o n ;  
 }  
  
 f u n c t i o n   o p e n P o p u p D i v ( f i l e ,   w i d t h ,   h e i g h t )  
 {  
 	 v a r   p o p u p   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p o p u p " ) ;  
  
         / / g e t   b o d y   d i m e n s i o n  
         v a r   b o d y W i d t h ;  
         v a r   b o d y H e i g h t ;  
         i f ( 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 ( " F i r e f o x " ) = = - 1 )  
         {  
                 b o d y W i d t h = 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 ( " b o d y " ) . i t e m ( 0 ) . o f f s e t W i d t h ;  
                 b o d y H e i g h t = d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " b o d y " ) . i t e m ( 0 ) . o f f s e t H e i g h t ;  
         }  
         e l s e  
         {  
                 b o d y W i d t h = w i n d o w . i n n e r W i d t h ;  
                 b o d y H e i g h t = w i n d o w . i n n e r H e i g h t ;  
         }  
  
         / / s e t   x   p o s i t i o n  
         p o p u p . s t y l e . l e f t   =   p a r s e I n t ( c a l c X P o s i t i o n ( m o u s e X , w i d t h , b o d y W i d t h ) ) ;  
  
         / / s e t   y   p o s i t i o n  
         p o p u p . s t y l e . t o p   =   p a r s e I n t ( c a l c Y P o s i t i o n ( m o u s e Y , h e i g h t , b o d y H e i g h t ) ) ;  
  
         p o p u p . s t y l e . w i d t h   =   w i d t h ;  
 	 p o p u p . s t y l e . h e i g h t   =   h e i g h t ;  
 	 p o p u p . i n n e r H T M L   =   " < i f r a m e   s t y l e = ' w i d t h :   "   +   ( w i d t h - 3 )   +   " p x ;   h e i g h t :   "   +   ( h e i g h t - 3 )   +   " p x '   s r c = ' "   +   f i l e   +   " ' > < / i f r a m e > " ;  
 	 p o p u p . s t y l e . d i s p l a y   =   " b l o c k " ;  
 }  
  
 f u n c t i o n   c l o s e P o p u p D i v ( )  
 {  
 	 v a r   p o p u p   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p o p u p " ) ;  
 	 p o p u p . s t y l e . d i s p l a y   =   " n o n e " ;  
         d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " b o d y " ) . i t e m ( 0 ) . s e t A t t r i b u t e ( " s c r o l l " , " n o " ) ;  
 }  
  
 f u n c t i o n   d o S e c t i o n   ( s e c N u m )  
 {  
 	 / / d i s p l a y   t h e   s e c t i o n   i f   i t ' s   n o t   d i s p l a y e d ;   h i d e   i t   i f   i t   i s   d i s p l a y e d  
 	 i f   ( s e c N u m . s t y l e . d i s p l a y = = " n o n e " )  
         {  
                 s e c N u m . s t y l e . d i s p l a y = " "  
         }  
 	 e l s e { s e c N u m . s t y l e . d i s p l a y = " n o n e " }  
 }  
  
 f u n c t i o n   n o S e c t i o n   ( s e c N u m )  
 {  
 	 / / r e m o v e   t h e   s e c t i o n   w h e n   u s e r   c l i c k s   i n   t h e   o p e n e d   D I V  
 	 i f   ( s e c N u m . s t y l e . d i s p l a y = = " " )  
         {  
                 s e c N u m . s t y l e . d i s p l a y = " n o n e "  
         }  
 }  
  
 / / u s e d   o n l y   i n   J A V A   p r o j e c t s  
 f u n c t i o n   e x p a n d D i v s A n d S p a n s _ j a v a V e r s i o n ( )  
 {  
         f o r   ( i = 1 ;   i < d o c u m e n t . a l l . l e n g t h ;   i + + )  
         {  
                 i f ( d o c u m e n t . a l l ( i ) . t a g N a m e = = " D I V "   & &   d o c u m e n t . a l l ( i ) . i d . i n d e x O f ( " e x p " ) ! = - 1 )  
                 {  
                         v a r   i n n e r T e x t = d o c u m e n t . a l l ( i ) . i n n e r H T M L ;  
                         i f ( i n n e r T e x t . i n d e x O f ( " m a r k e r " ) ! = - 1 )  
                         {  
                                 i f ( d o c u m e n t . a l l ( i ) . s t y l e . d i s p l a y = = " n o n e " )  
                                 {  
                                         v a r   i d D i v   =   d o c u m e n t . a l l ( i ) . i d ;  
                                         v a r   i d A r r o w   =   i d D i v . r e p l a c e ( " e x p " , " a r " ) ;  
                                                 d o E x p a n d ( i d D i v , i d A r r o w ) ;  
                                 }  
                         }  
                 }  
                 e l s e   i f ( d o c u m e n t . a l l ( i ) . t a g N a m e = = " S P A N "   & &   d o c u m e n t . a l l ( i ) . i d . i n d e x O f ( " e x p " ) ! = - 1 )  
                 {  
                         v a r   a r g s t r   =   l o c a t i o n . s e a r c h . s u b s t r i n g ( 1 ,   l o c a t i o n . s e a r c h . l e n g t h ) ;  
                         i f ( a r g s t r ! = n u l l   & &   a r g s t r . l e n g t h ! = 0 )  
                         {  
                                 i f ( a r g s t r . i n d e x O f ( " | " ) ! = - 1 )  
                                 {  
                                         v a r   a r g s   =   a r g s t r . s p l i t ( ' | ' ) ;  
                                         f o r ( v a r   j = 0 ; j < a r g s . l e n g t h ; j + + )  
                                         {  
                                                                 e x a m i n N o d e ( d o c u m e n t . a l l ( i ) , a r g s [ j ] , f a l s e ) ;  
                                         }  
                                 }  
                                 e l s e  
                                                         e x a m i n N o d e ( d o c u m e n t . a l l ( i ) , a r g s t r , f a l s e ) ;  
                         }  
  
                         v a r   i n n e r T e x t = d o c u m e n t . a l l ( i ) . i n n e r H T M L ;  
                         i f ( i n n e r T e x t . i n d e x O f ( " m a r k e r " ) ! = - 1 )  
                         {  
                                       i f ( d o c u m e n t . a l l ( i ) . s t y l e . d i s p l a y = = " n o n e " )  
                                       d o c u m e n t . a l l ( i ) . s t y l e . d i s p l a y = " i n l i n e " ;  
                         }  
                 }  
         }  
 }  
  
 / / u s e d   o n l y   i n   C H M   p r o j e c t  
 f u n c t i o n   c o l l a p s D i v s A n d S p a n s _ c h m V e r s i o n ( )  
 {  
 	 v a r   d e p t h   =   0 ;  
 	 f o r   ( i = 1 ;   i < d o c u m e n t . a l l . l e n g t h ;   i + + )  
 	 {  
 	 	 i f   ( d o c u m e n t . a l l ( i - 1 ) . c o n t a i n s ( d o c u m e n t . a l l ( i ) ) = = t r u e )  
 	 	 	 d e p t h   =   d e p t h   +   1 ;  
 	 	 e l s e  
 	 	 {  
 	 	 	 v a r   e l P a r e n t   =   d o c u m e n t . a l l ( i - 1 ) . p a r e n t E l e m e n t ;  
 	 	 	 f o r   (   ;   d e p t h > 0 ;   d e p t h - - )  
 	 	 	 {  
 	 	 	 	 i f   ( e l P a r e n t . c o n t a i n s ( d o c u m e n t . a l l ( i ) ) = = t r u e )  
 	 	 	 	 	 b r e a k ;  
 	 	 	 	 e l P a r e n t   =   e l P a r e n t . p a r e n t E l e m e n t ;  
 	 	 	 }  
 	 	 }  
 	 	 i f ( ( d o c u m e n t . a l l ( i ) . t a g N a m e = = " D I V "   | |   d o c u m e n t . a l l ( i ) . t a g N a m e = = " S P A N " )   & &   d o c u m e n t . a l l ( i ) . i d . i n d e x O f ( " e x p " ) ! = - 1 )  
 	 	 	 d o c u m e n t . a l l ( i ) . s t y l e . d i s p l a y = " n o n e " ;  
 	 }  
 }  
  
 / / u s e d   o n l y   i n   C H M   p r o j e c t  
 f u n c t i o n   e x p a n d D i v s A n d S p a n s _ c h m V e r s i o n ( )  
 {  
 	 v a r   d e p t h   =   0 ;  
 	 f o r   ( i = 1 ;   i < d o c u m e n t . a l l . l e n g t h ;   i + + )  
 	 {  
 	 	 i f   ( d o c u m e n t . a l l ( i - 1 ) . c o n t a i n s ( d o c u m e n t . a l l ( i ) ) = = t r u e )  
 	 	 	 d e p t h   =   d e p t h   +   1 ;  
 	 	 e l s e  
 	 	 {  
 	 	 	 v a r   e l P a r e n t   =   d o c u m e n t . a l l ( i - 1 ) . p a r e n t E l e m e n t ;  
 	 	 	 f o r   (   ;   d e p t h > 0 ;   d e p t h - - )  
 	 	 	 {  
 	 	 	 	 i f   ( e l P a r e n t . c o n t a i n s ( d o c u m e n t . a l l ( i ) ) = = t r u e )  
 	 	 	 	 	 b r e a k ;  
 	 	 	 	 e l P a r e n t   =   e l P a r e n t . p a r e n t E l e m e n t ;  
 	 	 	 }  
 	 	 }  
 	 	 i f ( d o c u m e n t . a l l ( i ) . t a g N a m e = = " D I V "   & &   d o c u m e n t . a l l ( i ) . i d . i n d e x O f ( " e x p " ) ! = - 1 )  
 	 	 {  
 	 	 	 v a r   i n n e r T e x t = d o c u m e n t . a l l ( i ) . i n n e r H T M L ;  
 	 	 	 i f ( i n n e r T e x t . i n d e x O f ( " F O N T " ) ! = - 1 )  
                         {  
                                 v a r   i d D i v   =   d o c u m e n t . a l l ( i ) . i d ;  
                                 v a r   i d A r r o w   =   i d D i v . r e p l a c e ( " e x p " , " a r " ) ;  
                                         d o E x p a n d ( i d D i v , i d A r r o w ) ;  
                         }  
                 }  
 	 	 e l s e   i f ( d o c u m e n t . a l l ( i ) . t a g N a m e = = " S P A N "   & &   d o c u m e n t . a l l ( i ) . i d . i n d e x O f ( " e x p " ) ! = - 1 )  
 	 	 {  
 	 	 	 v a r   i n n e r T e x t = d o c u m e n t . a l l ( i ) . i n n e r H T M L ;  
 	 	 	 i f ( i n n e r T e x t . i n d e x O f ( " F O N T " ) ! = - 1 )  
 	 	 	 	 d o c u m e n t . a l l ( i ) . s t y l e . d i s p l a y = " i n l i n e " ;  
 	 	 }  
 	 }  
 }  
  
 f u n c t i o n   d o E x p a n d ( i d , a r r o w N u m )  
 {  
         i f   ( a r r o w N u m = = ' i n l i n e ' )  
         {  
 	 	 i f   ( d o c u m e n t . a l l )  
                 {  
 	 	 	 i f ( d o c u m e n t . a l l [ i d ] . s t y l e . d i s p l a y = = ' n o n e ' )  
                         {  
 	 	 	 	 d o c u m e n t . a l l [ i d ] . s t y l e . d i s p l a y = ' i n l i n e ' ;  
 	 	 	 }  
 	 	 	 e l s e  
                         {  
 	 	 	 	 d o c u m e n t . a l l [ i d ] . s t y l e . d i s p l a y = ' n o n e ' ;  
 	 	 	 }  
 	 	 	 / / e v e n t . c a n c e l B u b b l e   =   t r u e ;  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }  
 	 	 e l s e   i f   ( d o c u m e n t . g e t E l e m e n t B y I d )  
                 {  
 	 	 	 i f ( d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . s t y l e . d i s p l a y = = ' n o n e ' )  
                         {  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . s t y l e . d i s p l a y = ' i n l i n e ' ;  
 	 	 	 }  
 	 	 	 e l s e  
                         {  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . s t y l e . d i s p l a y   = ' n o n e ' ;  
 	 	 	 }  
 	 	 	 / / e v e n t . c a n c e l B u b b l e   =   t r u e ;  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }  
 	 }  
 	 e l s e  
         {  
 	 	 i f   ( d o c u m e n t . a l l )  
                 {  
 	 	 	 i f ( d o c u m e n t . a l l [ i d ] . s t y l e . d i s p l a y = = ' n o n e ' )  
                         {  
 	 	 	 	 d o c u m e n t . a l l [ i d ] . s t y l e . d i s p l a y = ' ' ;  
 	 	 	 	 d o c u m e n t . a l l [ a r r o w N u m ] . s r c = " a r r o w d n . g i f "  
 	 	 	 }  
 	 	 	 e l s e  
                         {  
 	 	 	 	 d o c u m e n t . a l l [ i d ] . s t y l e . d i s p l a y = ' n o n e ' ;  
 	 	 	 	 d o c u m e n t . a l l [ a r r o w N u m ] . s r c = " a r r o w r t . g i f "  
 	 	 	 }  
 	 	 	 / / e v e n t . c a n c e l B u b b l e   =   t r u e ;  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }  
 	 	 e l s e   i f   ( d o c u m e n t . g e t E l e m e n t B y I d )  
                 {  
 	 	 	 i f ( d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . s t y l e . d i s p l a y = = ' n o n e ' )  
                         {  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . s t y l e . d i s p l a y = ' b l o c k ' ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( a r r o w N u m ) . s r c = " a r r o w d n . g i f "  
 	 	 	 }  
 	 	 	 e l s e  
                         {  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . s t y l e . d i s p l a y   = ' n o n e ' ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( a r r o w N u m ) . s r c = " a r r o w r t . g i f "  
 	 	 	 }  
 	 	 	 / / e v e n t . c a n c e l B u b b l e   =   t r u e ;  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }  
 	 }  
 }  
  
 f u n c t i o n   d o E x p a n d G r a f i k ( i d , a r r o w N u m )  
 {  
 	 i f   ( d o c u m e n t . a l l )  
         {  
                 i f ( d o c u m e n t . a l l [ i d ] . s t y l e . d i s p l a y = = ' n o n e ' )  
                 {  
                         d o c u m e n t . a l l [ i d ] . s t y l e . d i s p l a y = ' ' ;  
                         d o c u m e n t . a l l [ a r r o w N u m ] . s r c = " G r a f i k V e r b e r g e n . g i f "  
                 }  
                 e l s e  
                 {  
                         d o c u m e n t . a l l [ i d ] . s t y l e . d i s p l a y = ' n o n e ' ;  
                         d o c u m e n t . a l l [ a r r o w N u m ] . s r c = " G r a f i k A n z e i g e n . g i f "  
                 }  
                 e v e n t . c a n c e l B u b b l e   =   t r u e ;  
                 r e t u r n   f a l s e ;  
         }  
         e l s e   i f   ( d o c u m e n t . g e t E l e m e n t B y I d )  
         {  
                 i f ( d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . s t y l e . d i s p l a y = = ' n o n e ' )  
                 {  
                         d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . s t y l e . d i s p l a y = ' b l o c k ' ;  
                         d o c u m e n t . g e t E l e m e n t B y I d ( a r r o w N u m ) . s r c = " G r a f i k V e r b e r g e n . g i f "  
                 }  
                 e l s e  
                 {  
                         d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . s t y l e . d i s p l a y   = ' n o n e ' ;  
                         d o c u m e n t . g e t E l e m e n t B y I d ( a r r o w N u m ) . s r c = " G r a f i k A n z e i g e n . g i f "  
                 }  
                 / / e v e n t . c a n c e l B u b b l e   =   t r u e ;  
                 r e t u r n   f a l s e ;  
         }  
   }  
  
  
 / / O p e n A d r e s s ( )   s u c h t   e i n e n   A n k e r   i n   e i n e r   H t m l   D a t e i   u n d   s c h a l t e t  
 / / d e n   u m g e b e n d e n   A b s c h n i t t   s i c h t b a r  
 / / W e n n   d e r   A n k e r   n i c h t   i n   d e r   D a t e i   s t e h t ,   w i r d   T e x t a u s g a b e   a u f g e r u f e n  
  
 f u n c t i o n   O p e n A d r e s s ( )  
 {  
 	 A b s c h n i t t = l o c a t i o n . h a s h . s l i c e ( 1 ) ;  
 	 i f   ( A b s c h n i t t   = =   " " )  
 	 {  
 	 	 d o c u m e n t . w r i t e ( " < H 1 > < f o n t   c o l o r = # 3 1 3 6 8 0   s i z e = 5 > "   + d o c u m e n t . t i t l e , " < / f o n t > < / H 1 > " ) ;  
 	 	 d o c u m e n t . w r i t e ( " < p > D i e s   i s t   n u r   e i n   D u m m y - T e x t ,   d e r   i n   k e i n e r   H i l f e   e r s c h e i n t .   D e n   e i g e n t l i c h e   T e x t   d e r   F e h l e r h i l f e ,   a l s o   d e r   I n h a l t   d e r   D a t e i   < b > F e h l e r . d o c < / b > ,   k ö n n e n   S i e   n u r   ü b e r   d e n   A P I - T e s t   i m   H T M L - W o r k s h o p   p r ü f e n . < / p > " ) ;  
 	 }  
 	 e l s e  
 	 {  
 	 	 n = d o c u m e n t . a n c h o r s . l e n g t h ;  
 	 	 f o r ( i   =   0 ;   i   <   n ;   i + + )  
 	 	 {  
 	 	 	 i f ( d o c u m e n t . a n c h o r s [ i ] . n a m e   = =   A b s c h n i t t )  
 	 	 	 {  
 	 	 	 	 d o c u m e n t . a l l . t a g s ( " d i v " ) [ i ] . s t y l e . d i s p l a y = " " ;  
 	 	 	 	 b r e a k ;  
 	 	 	 }  
 	 	 	 i f ( i + 1   = =   n )  
 	 	 	 {  
 	 	 	 	 T e x t a u s g a b e ( A b s c h n i t t ) ;  
 	 	 	 }  
 	 	 }  
 	 }  
 }  
  
  
 / / T e x t a u s g a b e   d r u c k t   d i e   f e h l e n d e   Z i e l a n k e r - I D   ( = A b s c h n i t t )  
 / /   i n   e i n e   H t m l - D a t e i  
  
 f u n c t i o n   T e x t a u s g a b e ( A b s c h n i t t )  
 {  
 	 d o c u m e n t . w r i t e ( " < H 1 > < f o n t   c o l o r = # 3 1 3 6 8 0   s i z e = 5 > Z u   d i e s e m   T h e m a   s t e h t   I h n e n   k e i n e   H i l f e   z u r   V e r f ü g u n g < / f o n t > < / h 1 > " ) ;  
 	 d o c u m e n t . w r i t e ( " < P > B i t t e   b e n a c h r i c h t i g e n   S i e   u n s e r e   Q S - A b t e i l u n g   u n t e r   A n g a b e   d e r   I D   "   + A b s c h n i t t , " . < / p > " ) ;  
 	 d o c u m e n t . w r i t e ( ' < a   h r e f = " m a i l t o : s u p p o r t @ d o k a y . d e ? s u b j e c t = O n l i n e - A n b i n d u n g ! " > M a i l   a n   d i e   d o k a y   G m b H < / a > ' ) ;  
 }  
  
 / / T h e s e   f u n c t i o n s   c o n t r o l   t h e   b e h a v i o r   o f   t h e   h o m e p a g e   g o   a r r o w s .  
 f u n c t i o n   l i t e G o ( s p N o )  
 {  
 	 s p N o . s t y l e . b a c k g r o u n d = " # c c 0 0 3 3 " ;  
 	 s p N o . s t y l e . c o l o r = " # F F F F F F " ;  
 }  
  
 f u n c t i o n   l i t e O f f ( s p N o )  
 {  
 	 s p N o . s t y l e . b a c k g r o u n d = " t r a n s p a r e n t " ;  
 	 s p N o . s t y l e . c o l o r = " # 0 0 0 0 0 0 " ;  
 }  
  
 / / D i e s e   F u n k t i o n   i n i t i a l i s i e r t   d i e   A n z e i g e   i m   K o p f f r a m e  
  
 f u n c t i o n   I N I ( d u m m y )  
 {  
 	 s p Y e s = d u m m y ;  
 	 s p Y e s . s t y l e . f o n t S i z e = " 1 0 p t " ;  
 	 s p Y e s . s t y l e . c o l o r = " # 0 0 0 0 A F " ;  
 }  
  
 / / D i e s e   F u n k t i o n   m a r k i e r t   d e n   a n g e k l i c k t e n   L i n k   i m   K o p f f r a m e  
 / / u n d   h e b t   d i e   M a r k i e r u n g   d e s   z u l e t z t   a n g e k l i c k t e n   L i n k s   a u f  
  
 f u n c t i o n   l i t e O n O f f ( s p N o )  
 {  
 	 s p Y e s . s t y l e . f o n t S i z e = " 7 p t " ;  
 	 s p Y e s . s t y l e . c o l o r = " # 0 0 0 0 0 0 " ;  
 	 / / s p Y e s . s t y l e . b a c k g r o u n d = " t r a n s p a r e n t " ;  
 	 s p N o . s t y l e . f o n t S i z e = " 1 0 p t " ;  
 	 s p N o . s t y l e . c o l o r = " # 0 0 0 0 A F " ;  
 	 / / s p N o . s t y l e . b a c k g r o u n d = " # D E A F E 5 " ;  
 	 s p Y e s = s p N o ;  
 }  
  
 f u n c t i o n   I N I b a c k ( d u m m y )  
 {  
 	 / / s e n k r e c h t ( ) ;                                                 / / A u f r u f   d e r   F u n k t i o n ,   w e n n   s e n k r e c h t e   A u s r i c h t u n g   d e r   L i n k s   i m   K o p f t e i l   g e w ü n s c h t   i s t  
 	 I D = d u m m y ;  
 	 d o c u m e n t . a l l . t a g s ( " t a b l e " ) [ 0 ] . b a c k g r o u n d = " d i m m e d . g i f " ;  
 	 I D . b a c k g r o u n d = " b a c k g r o u n d . g i f " ;  
 }  
  
  
  
 f u n c t i o n   s e n k r e c h t ( )  
 {             	 / / a k t i v i e r t   d i e   s e n k r e c h t e   A u s r i c h t u n g   d e r   L i n k s   i m   K o p f t e i l  
  
 	 v a r   i = 0 ;                     	 / / L a u f v a r i a b l e = A n z a h l   d e r   T a b e l l e n z e l l e n  
 	 Z w i s c h e n e r g e b n i s = " " ; 	 / / s p e i c h e r t   d i e   g e s a m t e   s e k r e c h t e   T a b e l l e   a l s   S t r i n g  
 	 E n d T a g = " < / t d > < / t r > " ;  
  
 	 w h i l e ( i   <   d o c u m e n t . a l l . t a g s ( " t d " ) . l e n g t h )  
         {  
  
 	         G o = " g o " ; 	 	 / / E r z e u g t   A n f a n g s t a g :   T a b e l l e n z e i l e   u n d   - z e l l e  
 	         G o = G o . c o n c a t ( i + 1 ) ;  
 	         E n d P a r t i c l e = G o . c o n c a t ( ' " > ' ) ;  
 	         S t a r t P a r t i c l e = ' < t r   c l a s s = " K o p f " > < t d   I D = " ' ;  
 	         S t a r t T a g = S t a r t P a r t i c l e . c o n c a t ( E n d P a r t i c l e ) ;  
  
 	         Z u s a t z = d o c u m e n t . a l l . t a g s ( " t d " ) [ i ] . i n n e r H T M L ; 	 / / l i e s t   f ü r   j e d e   Z e l l e   a l l e s   z w i s c h e n   < t d > < / t d >  
 	         Z w i s c h e n e r g e b n i s = Z w i s c h e n e r g e b n i s . c o n c a t ( S t a r t T a g ) ; 	 / / N e u e r   A n f a n g s t a g   < t r   c l a s s . . .   m i t  
 	         Z w i s c h e n e r g e b n i s = Z w i s c h e n e r g e b n i s . c o n c a t ( Z u s a t z ) ; 	 / / d e m   I n h a l t   d e r   a l t e n   Z e l l e  
 	         Z w i s c h e n e r g e b n i s = Z w i s c h e n e r g e b n i s . c o n c a t ( E n d T a g ) ; 	 / / u n d   n e u e m   T a g   a m   E n d e   < / t d > < / t r >  
 	         i   =   i   +   1 ; 	 	 	 	 	 	 / / n ä c h s t e   T a b e l l e n z e l l e  
         }  
 	 T a b e l l e S t a r t = ' < t a b l e > ' ;  
 	 T a b e l l e E n d e = " < / t a b l e > " ;  
 	 Z w i s c h e n e r g e b n i s = T a b e l l e S t a r t . c o n c a t ( Z w i s c h e n e r g e b n i s ) ;  
 	 Z w i s c h e n e r g e b n i s = Z w i s c h e n e r g e b n i s . c o n c a t ( T a b e l l e E n d e ) ; 	 / / S c h r e i b t   d i e   n e u e   T a b e l l e   z w i s c h e n   T a b l e   T a g s  
 	 d o c u m e n t . a l l . t a g s ( " d i v " ) [ 0 ] . i n n e r H T M L = " " ; 	 	 / / l ö s c h t   d i e   a l t e   T a b e l l e   k o m p l e t t  
 	 d o c u m e n t . a l l . t a g s ( " d i v " ) [ 0 ] . i n s e r t A d j a c e n t H T M L ( " A f t e r B e g i n " , Z w i s c h e n e r g e b n i s ) ; 	 / / s e t z t   d i e   n e u e   T a b e l l e   k o m p l e t t   e i n  
 }  
  
  
 f u n c t i o n   b a c k g r o u n d ( s p B i l d )  
 {  
 	 s p I m g . b a c k g r o u n d = " t r a n s p a r e n t " ;  
 	 s p B i l d . b a c k g r o u n d = " b a c k g r o u n d . g i f " ;  
 	 s p I m g = s p B i l d ;  
 }  
  
 / / G l o s s a r f e n s t e r   f ü r   I n t r a n e t   u n d   I n t e r n e t   e r z e u g e n   ( I E   u n d   N C   6 . 2 )  
  
 v a r   v e r s i o n 4   =   ( n a v i g a t o r . a p p V e r s i o n . c h a r A t ( 0 )   > =   " 4 " ) ;  
 v a r   p o p u p H a n d l e ;  
 f u n c t i o n   c l o s e P o p u p ( )  
 {  
         i f ( p o p u p H a n d l e   ! =   n u l l   & &   ! p o p u p H a n d l e . c l o s e d )  
                 p o p u p H a n d l e . c l o s e ( )  
 }  
  
  
 f u n c t i o n   d i s p l a y P o p u p ( p o s i t i o n , u r l , n a m e , h e i g h t , w i d t h , e v n t )  
 {  
 / /   p o s i t i o n = 1   P O P U P :   m a k e s   s c r e e n   d i s p l a y   u p   a n d / o r   l e f t ,  
 / /         d o w n   a n d / o r   r i g h t  
 / /   d e p e n d i n g   o n   w h e r e   c u r s o r   f a l l s   a n d   s i z e   o f   w i n d o w   t o   o p e n  
 / /   p o s i t i o n = 2   C E N T E R :   m a k e s   s c r e e n   f a l l   i n   c e n t e r  
  
  
     v a r   p r o p e r t i e s   =   " t o o l b a r = 0 , l o c a t i o n = 0 , h e i g h t = " + h e i g h t  
     p r o p e r t i e s   =   p r o p e r t i e s + " , w i d t h = " + w i d t h  
  
     v a r   l e f t p r o p ,   t o p p r o p ,   s c r e e n X ,   s c r e e n Y ,   c u r s o r X ,   c u r s o r Y ,   p a d A m t  
  
     i f ( n a v i g a t o r . a p p N a m e   = =   " M i c r o s o f t   I n t e r n e t   E x p l o r e r " )  
     {  
         s c r e e n Y   =   d o c u m e n t . b o d y . o f f s e t H e i g h t  
         s c r e e n X   =   w i n d o w . s c r e e n . a v a i l W i d t h  
     }  
     e l s e  
     {  
         / / N a v i g a t o r   c o o r d i n a t e s  
         / / s c r e e n Y   =   w i n d o w . o u t e r H e i g h t  
         / / s c r e e n X   =   w i n d o w . o u t e r W i d t h  
         / / c h a n g e   m a d e   3 / 1 6 / 0 1   t o   w o r k   w i t h   N e t s c a p e :  
         s c r e e n Y   =   s c r e e n . h e i g h t ;  
         s c r e e n X   =   s c r e e n . w i d t h ;  
     }  
  
     i f ( p o s i t i o n   = =   1 )  
     {         / /   i f   P O P U P   n o t   C E N T E R  
         c u r s o r X   =   e v n t . s c r e e n X  
         c u r s o r Y   =   e v n t . s c r e e n Y  
         p a d A m t X   =   1 0  
         p a d A m t Y   =   1 0  
  
         i f ( ( c u r s o r Y   +   h e i g h t   +   p a d A m t Y )   >   s c r e e n Y )  
         {  
             / /   m a k e   s i z e s   a   n e g a t i v e   n u m b e r   t o   m o v e   l e f t / u p  
             p a d A m t Y   =   ( - 3 0 )   +   ( h e i g h t * - 1 ) ;  
  
             / /   i f   u p   o r   t o   l e f t ,   m a k e   3 0   a s   p a d d i n g   a m o u n t  
         }  
  
         i f ( ( c u r s o r X   +   w i d t h   +   p a d A m t X )   >   s c r e e n X )  
         {  
             p a d A m t X   =   ( - 3 0 )   +   ( w i d t h * - 1 ) ;  
             / /   i f   u p   o r   t o   l e f t ,   m a k e   3 0   a s   p a d d i n g   a m o u n t  
         }  
  
         i f ( n a v i g a t o r . a p p N a m e   = =   " M i c r o s o f t   I n t e r n e t   E x p l o r e r " )  
         {  
             l e f t p r o p   =   c u r s o r X   +   p a d A m t X  
             t o p p r o p   =   c u r s o r Y   +   p a d A m t Y  
         }  
         e l s e  
         {   / /   a d j u s t   N e t s c a p e   c o o r d i n a t e s   f o r   s c r o l l i n g  
             l e f t p r o p   =   ( c u r s o r X   -   p a g e X O f f s e t   +   p a d A m t X )  
             t o p p r o p   =   ( c u r s o r Y   -   p a g e Y O f f s e t   +   p a d A m t Y )  
         }  
     }  
     e l s e  
     { 	 / /   C E N T E R  
         l e f t v a r   =   ( s c r e e n X   -   w i d t h )   /   2  
         r i g h t v a r   =   ( s c r e e n Y   -   h e i g h t )   /   2  
  
         i f ( n a v i g a t o r . a p p N a m e   = =   " M i c r o s o f t   I n t e r n e t   E x p l o r e r " )  
         {  
             l e f t p r o p   =   l e f t v a r  
             t o p p r o p   =   r i g h t v a r  
         }  
         e l s e  
         {   / /   a d j u s t   N e t s c a p e   c o o r d i n a t e s   f o r   s c r o l l i n g  
             l e f t p r o p   =   ( l e f t v a r   -   p a g e X O f f s e t )  
             t o p p r o p   =   ( r i g h t v a r   -   p a g e Y O f f s e t )  
         }  
     }  
  
     i f ( e v n t   ! =   n u l l )  
     {  
         p r o p e r t i e s   =   p r o p e r t i e s + " , l e f t = " + l e f t p r o p  
         p r o p e r t i e s   =   p r o p e r t i e s + " , t o p = " + t o p p r o p  
     }  
  
     c l o s e P o p u p ( )  
     p o p u p H a n d l e   =   o p e n ( u r l , n a m e , p r o p e r t i e s )  
 }  
  
  
  
 / / B r o w s e r w e i c h e  
 i f   ( 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 ( " N e t s c a p e 6 " )   > =   0 )  
 {  
     d o c u m e n t . w r i t e ( ' < l i n k   r e l = " s t y l e s h e e t "   t y p e = " t e x t / c s s " ;   m e d i a = " s c r e e n "   h r e f = " S t y l e N C . c s s " > ' ) ;  
     d o c u m e n t . w r i t e ( ' < l i n k   r e l = " s t y l e s h e e t "   t y p e = " t e x t / c s s " ;   m e d i a = " p r i n t "   h r e f = " p r i n t N C . c s s " > ' ) ;  
 }  
  
 e l s e   i f   ( 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 ( " N e t s c a p e / 7 " )   > =   0 )  
 {  
     d o c u m e n t . w r i t e ( ' < l i n k   r e l = " s t y l e s h e e t "   t y p e = " t e x t / c s s " ;   m e d i a = " s c r e e n "   h r e f = " S t y l e N C . c s s " > ' ) ;  
     d o c u m e n t . w r i t e ( ' < l i n k   r e l = " s t y l e s h e e t "   t y p e = " t e x t / c s s " ;   m e d i a = " p r i n t "   h r e f = " p r i n t N C . c s s " > ' ) ;  
 }  
  
 e l s e   i f   ( 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 ( " M S I E " )   ! =   - 1 )  
 {  
     d o c u m e n t . w r i t e ( ' < l i n k   r e l = " s t y l e s h e e t "   t y p e = " t e x t / c s s " ;   m e d i a = " s c r e e n "   h r e f = " S t y l e I E . c s s " > ' ) ;  
     d o c u m e n t . w r i t e ( ' < l i n k   r e l = " s t y l e s h e e t "   t y p e = " t e x t / c s s " ;   m e d i a = " p r i n t "   h r e f = " p r i n t I E . c s s " > ' ) ;  
 }  
  
 e l s e   i f   ( 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 ( " M o z i l l a " )   ! =   - 1 )  
 {  
     d o c u m e n t . w r i t e ( ' < l i n k   r e l = " s t y l e s h e e t "   t y p e = " t e x t / c s s " ;   m e d i a = " s c r e e n "   h r e f = " S t y l e N C . c s s " > ' ) ;  
     d o c u m e n t . w r i t e ( ' < l i n k   r e l = " s t y l e s h e e t "   t y p e = " t e x t / c s s " ;   m e d i a = " p r i n t "   h r e f = " p r i n t N C . c s s " > ' ) ;  
 }  
  
  
 / / H e a d e r - B e r e i c h   z u r   N o n - S c r o l l i n g - A r e a   e r k l ä r e n  
  
 w i n d o w . o n l o a d   =   r e s i z e N S R w i n d o w ;  
 w i n d o w . o n r e s i z e =   r e s i z e N S R w i n d o w ;  
 w i n d o w . o n b e f o r e p r i n t =   s e t _ t o _ p r i n t ;  
 w i n d o w . o n a f t e r p r i n t =   r e s e t _ f o r m ;  
  
 f u n c t i o n   r e s i z e N S R w i n d o w ( )  
 {  
     i f ( d o c u m e n t . l a y e r s )  
     {  
         / / N N   4  
         N N 4 _ R e s i z e ( t r u e ) ;  
     }  
  
  
     i n i t M o u s e D o w n ( ) ;  
  
     / / u s e   i n   C H M   p r o j e c t ,   o t h e r w i s e   c o m m e n t  
     / / c o l l a p s D i v s A n d S p a n s _ c h m V e r s i o n ( ) ;  
     / / e x p a n d D i v s A n d S p a n s _ c h m V e r s i o n ( ) ;  
  
     / / u s e   i n   J A V A   p r o j e c t ,   o t h e r w i s e   c o m m e n t  
     / / e x p a n d D i v s A n d S p a n s _ j a v a V e r s i o n ( ) ;  
 }  
  
  
 f u n c t i o n   L a y e r ( )  
 {  
 	 d o c u m e n t . w r i t e ( " < d i v   s t y l e = ' b a c k g r o u n d - i m a g e :   u r l ( L a y e r . j s ) ' > " ) ;  
 }  
  
  
 f u n c t i o n   N N 4 _ R e s i z e ( f i r s t T i m e )  
 {  
         v a r   m a i n F r a m e   =   d o c u m e n t . l a y e r s . a l l C t ;  
         v a r   h e a d e r         =   d o c u m e n t . l a y e r s . n s r ;  
         v a r   c o n t e n t       =   d o c u m e n t . l a y e r s . t e x t ;  
  
         v a r   f W i d t h     =   0 ;  
         v a r   f H e i g h t   =   0 ;  
         v a r   h W i d t h     =   0 ;  
         v a r   h H e i g h t   =   0 ;  
         v a r   c W i d t h     =   0 ;  
         v a r   c H e i g h t   =   0 ;  
  
         i f   ( f i r s t T i m e )  
         {  
                 f W i d t h     =   w i n d o w . i n n e r W i d t h   -   2 6 ;  
                 f H e i g h t   =   w i n d o w . i n n e r H e i g h t   -   2 6 ;  
                 c W i d t h     =   f W i d t h   -   ( p a r s e I n t ( c t L e f t ) + p a r s e I n t ( c t R i g h t ) ) ;  
                 c H e i g h t   =   f H e i g h t   -   c t T o p ;  
                 h W i d t h     =   f W i d t h   -   3 0 ;  
         }  
         e l s e  
         {  
                 f W i d t h     =   w i n d o w . i n n e r W i d t h   -   1 1 6 ;  
                 f H e i g h t   =   w i n d o w . i n n e r H e i g h t   -   2 6 ;  
                 c W i d t h     =   f W i d t h   -   c t R i g h t ;  
                 c H e i g h t   =   f H e i g h t   -   1 0 0 ;  
                 h W i d t h     =   f W i d t h ;  
         }  
  
         m a i n F r a m e . s t y l e . w i d t h     =   f W i d t h ;  
         m a i n F r a m e . s t y l e . h e i g h t   =   f H e i g h t ;  
  
         i f ( c W i d t h > = 0 )  
         {  
             c o n t e n t . s t y l e . w i d t h   =   c W i d t h ;  
         }  
         e l s e  
         {  
             c o n t e n t . s t y l e . w i d t h   =   0 ;  
         }  
         i f ( c H e i g h t > = 0 )  
         {  
             c o n t e n t . s t y l e . h e i g h t   =   c H e i g h t ;  
         }  
         e l s e  
         {  
             c o n t e n t . s t y l e . h e i g h t   =   0 ;  
         }  
  
         h e a d e r . s t y l e . w i d t h           =   h W i d t h ;  
  
         i f   ( f i r s t T i m e )  
         	 s e t T i m e o u t ( " N N 4 _ R e s i z e ( f a l s e ) " , 1 ) ;  
  
         m a i n F r a m e   =   d o c u m e n t . l a y e r s . a l l C t ;  
         h e a d e r         =   d o c u m e n t . l a y e r s . n s r ;  
         c o n t e n t       =   d o c u m e n t . l a y e r s . t e x t ;  
 }  
  
 f u n c t i o n   N N 6 _ R e s i z e ( f i r s t T i m e )  
 {  
         v a r   m a i n 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 ( " a l l C t " ) ;  
         v a r   h e a d e r         =   d o c u m e n t . g e t E l e m e n t B y I d ( " n s r " ) ;  
         v a r   c o n t e n t       =   d o c u m e n t . g e t E l e m e n t B y I d ( " t e x t " ) ;  
  
         v a r   f W i d t h     =   0 ;  
         v a r   f H e i g h t   =   0 ;  
         v a r   h W i d t h     =   0 ;  
         v a r   h H e i g h t   =   0 ;  
         v a r   c W i d t h     =   0 ;  
         v a r   c H e i g h t   =   0 ;  
  
         i f   ( f i r s t T i m e )  
         {  
                 f W i d t h     =   w i n d o w . i n n e r W i d t h   -   2 6 ;  
                 f H e i g h t   =   w i n d o w . i n n e r H e i g h t   -   2 6 ;  
                 c W i d t h     =   f W i d t h   -   ( p a r s e I n t ( c t L e f t ) + p a r s e I n t ( c t R i g h t ) ) ;  
                 c H e i g h t   =   f H e i g h t   -   c t T o p ;  
                 h W i d t h     =   f W i d t h   -   3 0 ;  
         }  
         e l s e  
         {  
                 f W i d t h     =   w i n d o w . i n n e r W i d t h   -   4 ;  
                 f H e i g h t   =   w i n d o w . i n n e r H e i g h t   -   4 ;  
                 c W i d t h     =   f W i d t h   -   ( p a r s e I n t ( c t L e f t ) + p a r s e I n t ( c t R i g h t ) ) ;  
                 c H e i g h t   =   f H e i g h t   -   c t T o p ;  
                 h W i d t h     =   f W i d t h   -   3 0 ;  
         }  
  
         m a i n F r a m e . s t y l e . w i d t h     =   f W i d t h ;  
         m a i n F r a m e . s t y l e . h e i g h t   =   f H e i g h t ;  
  
         i f ( c W i d t h > = 0 )  
         {  
           c o n t e n t . s t y l e . w i d t h   =   c W i d t h ;  
         }  
         e l s e  
         {  
           c o n t e n t . s t y l e . w i d t h   =   0 ;  
         }  
         i f ( c H e i g h t > = 0 )  
         {  
           c o n t e n t . s t y l e . h e i g h t   =   c H e i g h t ;  
         }  
         e l s e  
         {  
           c o n t e n t . s t y l e . h e i g h t   =   0 ;  
         }  
  
         h e a d e r . s t y l e . w i d t h           =   h W i d t h ;  
  
         i f   ( f i r s t T i m e )  
                 s e t T i m e o u t ( " N N 6 _ R e s i z e ( f a l s e ) " , 1 ) ;  
 }  
  
 f u n c t i o n   I E _ R e s i z e ( )  
 {  
         v a r   m a i n F r a m e   =   d o c u m e n t . a l l . i t e m ( " a l l C t " ) ;  
         v a r   h e a d e r         =   d o c u m e n t . a l l . i t e m ( " n s r " ) ;  
         v a r   c o n t e n t       =   d o c u m e n t . a l l . i t e m ( " t e x t " ) ;  
  
         v a r   f W i d t h     =   0 ;  
         v a r   f H e i g h t   =   0 ;  
         v a r   h W i d t h     =   0 ;  
         v a r   h H e i g h t   =   0 ;  
         v a r   c W i d t h     =   0 ;  
         v a r   c H e i g h t   =   0 ;  
  
         f W i d t h     =   d o c u m e n t . b o d y . o f f s e t W i d t h ;  
         f H e i g h t   =   d o c u m e n t . b o d y . o f f s e t H e i g h t ;  
         c W i d t h     =   f W i d t h   -   5 ;  
         c H e i g h t   =   f H e i g h t   -   ( c t T o p   +   5 ) ;  
         h W i d t h     =   f W i d t h ;  
  
         / / m a i n F r a m e . s t y l e . w i d t h     =   f W i d t h ;  
         / / m a i n F r a m e . s t y l e . h e i g h t   =   f H e i g h t ;  
         c o n t e n t . s t y l e . t o p   =   c t T o p ;  
         i f ( c W i d t h > = 0 )  
         {  
           c o n t e n t . s t y l e . w i d t h   =   c W i d t h ;  
         }  
         e l s e  
         {  
           c o n t e n t . s t y l e . w i d t h   =   0 ;  
         }  
         i f ( c H e i g h t > = 0 )  
         {  
           c o n t e n t . s t y l e . h e i g h t   =   c H e i g h t ;  
         }  
         e l s e  
         {  
           c o n t e n t . s t y l e . h e i g h t   =   0 ;  
         }  
         h e a d e r . s t y l e . w i d t h           =   h W i d t h ;  
 }  
  
 / * f u n c t i o n   a c t u a l R e s i z e ( )   {  
     v a r   f W i d t h     =   0 ;  
     v a r   f H e i g h t   =   0 ;  
     v a r   h W i d t h     =   0 ;  
     v a r   h H e i g h t   =   0 ;  
     v a r   c W i d t h     =   0 ;  
     v a r   c H e i g h t   =   0 ;  
  
     v a r   m a i n F r a m e   =   n u l l ;  
     v a r   h e a d e r         =   n u l l ;  
     v a r   c o n t e n t       =   n u l l ;  
  
     i f ( d o c u m e n t . l a y e r s ) {  
         / / N N   4  
         m a i n F r a m e   =   d o c u m e n t . l a y e r s . a l l C t ;  
         h e a d e r         =   d o c u m e n t . l a y e r s . n s r ;  
         c o n t e n t       =   d o c u m e n t . l a y e r s . t e x t ;  
  
         f W i d t h     =   w i n d o w . i n n e r W i d t h   -   1 1 6 ;  
         f H e i g h t   =   w i n d o w . i n n e r H e i g h t   -   2 6 ;  
         c W i d t h     =   f W i d t h   -   c t R i g h t ;  
         c H e i g h t   =   f H e i g h t   -   1 0 0 ;  
         h W i d t h     =   f W i d t h ;  
     }  
  
     i f ( d o c u m e n t . a l l ) {  
         / / I E   b r o w s e r  
         m a i n F r a m e   =   d o c u m e n t . a l l . i t e m ( " a l l C t " ) ;  
         h e a d e r         =   d o c u m e n t . a l l . i t e m ( " n s r " ) ;  
         c o n t e n t       =   d o c u m e n t . a l l . i t e m ( " t e x t " ) ;  
  
         f W i d t h     =   d o c u m e n t . b o d y . o f f s e t W i d t h ;  
         f H e i g h t   =   d o c u m e n t . b o d y . o f f s e t H e i g h t ;  
         c W i d t h     =   f W i d t h   -   5 ;  
         c H e i g h t   =   f H e i g h t   -   ( c t T o p   +   5 ) ;  
         h W i d t h     =   f W i d t h ;  
     }  
  
     i f ( ! d o c u m e n t . a l l   & &   d o c u m e n t . g e t E l e m e n t B y I d ) {  
         / / N N   6  
         m a i n 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 ( " a l l C t " ) ;  
         h e a d e r         =   d o c u m e n t . g e t E l e m e n t B y I d ( " n s r " ) ;  
         c o n t e n t       =   d o c u m e n t . g e t E l e m e n t B y I d ( " t e x t " ) ;  
  
         f W i d t h     =   w i n d o w . i n n e r W i d t h   -   4 ;  
         f H e i g h t   =   w i n d o w . i n n e r H e i g h t   -   4 ;  
         c W i d t h     =   f W i d t h   -   ( c t L e f t + c t R i g h t ) ;  
         c H e i g h t   =   f H e i g h t   -   c t T o p ;  
         h W i d t h     =   f W i d t h   -   3 0 ;  
     }  
  
  
     m a i n F r a m e . s t y l e . w i d t h     =   f W i d t h ;  
     m a i n F r a m e . s t y l e . h e i g h t   =   f H e i g h t ;  
  
     i f ( c W i d t h > = 0 )   {  
       c o n t e n t . s t y l e . w i d t h   =   c W i d t h ;  
     }   e l s e   {  
       c o n t e n t . s t y l e . w i d t h   =   0 ;  
     }  
     i f ( c H e i g h t   > = 0 )   {  
       c o n t e n t . s t y l e . h e i g h t   =   c H e i g h t ;  
     }   e l s e   {  
       c o n t e n t . s t y l e . h e i g h t   =   0 ;  
   }  
  
     h e a d e r . s t y l e . w i d t h           =   h W i d t h ;  
  
 } * /  
  
 f u n c t i o n   s e t _ t o _ p r i n t ( ) {  
 	 v a r   i ;  
 	 i f   ( w i n d o w . t e x t )   {  
 	 	 d o c u m e n t . a l l . t e x t . s t y l e . h e i g h t   =   " a u t o " ;  
 	 }  
 	 f o r   ( i = 0 ;   i   <   d o c u m e n t . a l l . l e n g t h ;   i + + ) {  
 	 	 i f   ( d o c u m e n t . a l l [ i ] . t a g N a m e   = =   " B O D Y " )   {  
 	 	 	 d o c u m e n t . a l l [ i ] . s c r o l l   =   " a u t o " ;  
 	 	 }  
 / / 	 	 	 i f   ( d o c u m e n t . a l l [ i ] . t a g N a m e   = =   " A " )   {  
 / / 	 	 	 	 d o c u m e n t . a l l [ i ] . o u t e r H T M L   =   " < A   H R E F = ' ' > "   +   d o c u m e n t . a l l [ i ] . i n n e r H T M L   +   " < / a > " ;  
 / / 	 	 	 }  
 	 }  
 	 d o c u m e n t . a l l . t e x t . s t y l e . o v e r f l o w   =   " v i s i b l e " ;  
 	 / / d o c u m e n t . a l l . t e x t . s t y l e . o v e r f l o w   =   " a u t o " ;  
 }  
  
 / / * * * * * * * * * *   s e t   f o r   d i s p l a y   * * * * * * * * * * * *  
  
 f u n c t i o n   r e s e t _ f o r m ( ) {  
 	 d o c u m e n t . a l l . t e x t . s t y l e . o v e r f l o w   =   " a u t o " ;  
     d o c u m e n t . l o c a t i o n . r e l o a d ( ) ;  
 }  
  
  
 / / M i t   V o r s c h a u - G r a f i k e n   a r b e i t e n  
 f u n c t i o n   o p e n W i n (   w i n H e i g h t ,   w i n W i d t h ,   p i c S r c   ) {  
         n e w W i n   =   w i n d o w . o p e n ( ' ' ,   ' ' ,   ' h e i g h t = ' +   w i n H e i g h t   +   ' , w i d t h = ' +   w i n W i d t h   +   ' t o o l b a r s = n o ,   s c r o l l b a r s = y e s '   ) ;  
         n e w W i n . d o c u m e n t . w r i t e ( " < h e a d > < t i t l e > " +   p i c S r c   + " < / t i t l e > < / h e a d > " ) ;  
         n e w W i n . d o c u m e n t . w r i t e ( " < p   a l i g n = c e n t e r > " ) ;  
         n e w W i n . d o c u m e n t . w r i t e ( " < i m g   s r c = "   +   p i c S r c   +   " > " ) ;                         n e w W i n . d o c u m e n t . w r i t e ( " < b r > < b r > < f o r m > < i n p u t   t y p e = ' b u t t o n '   v a l u e = ' S c h l i e ß e n '   o n c l i c k = ' J a v a S c r i p t : w i n d o w . c l o s e ( ) ' > " ) ;  
         n e w W i n . d o c u m e n t . w r i t e ( " < / f o r m > < / p > " ) ;  
 }  
  
 / /   P o p u p s   m i t   M o u s e o v e r   a u s   F u ß n o t e   a b l e i t e n  
 i f   ( d o c u m e n t . l a y e r s )   { n a v i g a t o r . f a m i l y   =   " n n 4 " }  
 i f   ( d o c u m e n t . a l l )   { n a v i g a t o r . f a m i l y   =   " i e 4 " }  
 i f   ( w i n d o w . n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) . m a t c h ( " g e c k o " ) )   { n a v i g a t o r . f a m i l y   =   " g e c k o " }  
  
 o v e r d i v = " 0 " ;  
 f u n c t i o n   p o p L a y e r ( a )  
 {  
         i f ( ! d e s c a r r a y [ a ] )  
         {  
                 d e s c a r r a y [ a ] = " < f o n t   c o l o r = r e d > T h i s   p o p u p   ( # " + a + " )   i s n ' t   s e t u p   c o r r e c t l y   -   n e e d s   d e s c r i p t i o n < / f o n t > " ;  
         }  
         i f   ( n a v i g a t o r . f a m i l y   = =   " g e c k o " )  
         {  
                 p a d = " 0 " ;   b o r d = " 1   b o r d e r c o l o r = b l a c k " ;  
         }  
         e l s e  
         {  
                 p a d = " 1 " ;   b o r d = " 0 " ;  
         }  
         d e s c   =   	     " < t a b l e   c e l l s p a c i n g = 0   c e l l p a d d i n g = " + p a d + "   b o r d e r = " + b o r d + " > < t r > < t d > \ n "  
                 + " < t a b l e   c e l l s p a c i n g = 0   c e l l p a d d i n g = 3   b o r d e r = 0   w i d t h = 1 0 0 % > < t r > < t d > < f o n t   s i z e = - 1 > \ n "  
                 + d e s c a r r a y [ a ]  
                 + " \ n < / t d > < / t r > < / t a b l e > \ n "  
                 + " < / t d > < / t r > < / t a b l e > " ;  
  
         / / g e t   b o d y   d i m e n s i o n  
         v a r   b o d y W i d t h ;  
         v a r   b o d y H e i g h t ;  
         i f ( 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 ( " F i r e f o x " ) = = - 1 )  
         {  
                 b o d y W i d t h = 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 ( " b o d y " ) . i t e m ( 0 ) . o f f s e t W i d t h ;  
                 b o d y H e i g h t = d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " b o d y " ) . i t e m ( 0 ) . o f f s e t H e i g h t ;  
         }  
         e l s e  
         {  
                 b o d y W i d t h = w i n d o w . i n n e r W i d t h ;  
                 b o d y H e i g h t = w i n d o w . i n n e r H e i g h t ;  
         }  
  
         i f ( n a v i g a t o r . f a m i l y   = = " n n 4 " )  
         {  
                 d o c u m e n t . o b j e c t 1 . d o c u m e n t . w r i t e ( d e s c ) ;  
                 d o c u m e n t . o b j e c t 1 . d o c u m e n t . c l o s e ( ) ;  
  
                 d o c u m e n t . o b j e c t 1 . l e f t = x + 1 5 ;  
                 d o c u m e n t . o b j e c t 1 . t o p = y - 5 ;  
         }  
         e l s e   i f ( n a v i g a t o r . f a m i l y   = = " i e 4 " )  
         {  
                 d o c u m e n t . g e t E l e m e n t B y I d ( " o b j e c t 1 " ) . i n n e r H T M L = d e s c ;  
  
                 v a r   o b j e c t W i d t h = d o c u m e n t . g e t E l e m e n t B y I d ( " o b j e c t 1 " ) . o f f s e t W i d t h ;  
                 v a r   x P o s i t i o n = c a l c X P o s i t i o n ( x ,   o b j e c t W i d t h ,   b o d y W i d t h ) ;  
                 v a r   o b j e c t H e i g h t = d o c u m e n t . g e t E l e m e n t B y I d ( " o b j e c t 1 " ) . o f f s e t H e i g h t ;  
                 v a r   y P o s i t i o n = c a l c Y P o s i t i o n ( y ,   o b j e c t H e i g h t ,   b o d y H e i g h t ) ;  
  
                 d o c u m e n t . g e t E l e m e n t B y I d ( " o b j e c t 1 " ) . s t y l e . l e f t = p a r s e I n t ( x P o s i t i o n ) ;  
                 d o c u m e n t . g e t E l e m e n t B y I d ( " o b j e c t 1 " ) . s t y l e . t o p = p a r s e I n t ( y P o s i t i o n ) + 1 0 ;  
  
 / /                 d o c u m e n t . g e t E l e m e n t B y I d ( " o b j e c t 1 " ) . s t y l e . l e f t = x + 1 5 ;  
 / /                 d o c u m e n t . g e t E l e m e n t B y I d ( " o b j e c t 1 " ) . s t y l e . t o p = y + 1 4 5 ;  
         }  
         e l s e   i f ( n a v i g a t o r . f a m i l y   = = " g e c k o " ) / / m o z i l l a  
         {  
                 d o c u m e n t . g e t E l e m e n t B y I d ( " o b j e c t 1 " ) . i n n e r H T M L = d e s c ;  
  
                 v a r   o b j e c t W i d t h = d o c u m e n t . g e t E l e m e n t B y I d ( " o b j e c t 1 " ) . o f f s e t W i d t h ;  
                 v a r   x P o s i t i o n = c a l c X P o s i t i o n ( x ,   o b j e c t W i d t h ,   b o d y W i d t h ) ;  
                 v a r   o b j e c t H e i g h t = d o c u m e n t . g e t E l e m e n t B y I d ( " o b j e c t 1 " ) . o f f s e t H e i g h t ;  
                 v a r   y P o s i t i o n = c a l c Y P o s i t i o n ( y ,   o b j e c t H e i g h t ,   b o d y H e i g h t ) ;  
  
                 d o c u m e n t . g e t E l e m e n t B y I d ( " o b j e c t 1 " ) . s t y l e . l e f t = p a r s e I n t ( x P o s i t i o n ) ;  
                 d o c u m e n t . g e t E l e m e n t B y I d ( " o b j e c t 1 " ) . s t y l e . t o p = p a r s e I n t ( y P o s i t i o n ) ;  
  
 / /                 d o c u m e n t . g e t E l e m e n t B y I d ( " o b j e c t 1 " ) . s t y l e . l e f t = x + 1 5 ;  
 / /                 d o c u m e n t . g e t E l e m e n t B y I d ( " o b j e c t 1 " ) . s t y l e . t o p = y - 5 ;  
         }  
 }  
  
 f u n c t i o n   h i d e L a y e 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 ( " b o d y " ) . i t e m ( 0 ) . s e t A t t r i b u t e ( " s c r o l l " , " n o " ) ;  
         i f   ( o v e r d i v   = =   " 0 " )  
         {  
                 i f ( n a v i g a t o r . f a m i l y   = = " n n 4 " )  
                         e v a l ( d o c u m e n t . o b j e c t 1 . t o p = " - 5 0 0 " ) ;  
                 e l s e   i f ( n a v i g a t o r . f a m i l y   = = " i e 4 " )  
                         o b j e c t 1 . i n n e r H T M L = " " ;  
                 e l s e   i f ( n a v i g a t o r . f a m i l y   = = " g e c k o " )  
                 {  
                         d o c u m e n t . g e t E l e m e n t B y I d ( " o b j e c t 1 " ) . i n n e r H T M L = " " ;  
                         / / d o c u m e n t . g e t E l e m e n t B y I d ( " o b j e c t 1 " ) . s t y l e . t o p = " - 5 0 0 " ;  
                 }  
         }  
 }  
  
 v a r   i s N a v   =   ( n a v i g a t o r . a p p N a m e . i n d e x O f ( " N e t s c a p e " )   ! = - 1 ) ;  
 f u n c t i o n   h a n d l e r M M ( e )  
 {  
         x   =   ( i s N a v )   ?   e . p a g e X   :   e v e n t . c l i e n t X   +   d o c u m e n t . b o d y . s c r o l l L e f t ;  
         y   =   ( i s N a v )   ?   e . p a g e Y   :   e v e n t . c l i e n t Y   +   d o c u m e n t . b o d y . s c r o l l T o p ;  
 }  
  
 i f   ( i s N a v ) { d o c u m e n t . c a p t u r e E v e n t s ( E v e n t . M O U S E M O V E ) ; }  
 d o c u m e n t . o n m o u s e m o v e   =   h a n d l e r M M ;  
  
  
  
 / /   I n t e r p r e t i e r t   E i n t r a g   i n   H T M L - D a t e i e n   z u r   k o r r e k t e n   D a r s t e l l u n g   v o n   I n t r a n e t - D o k u m e n t a t a i o n e n  
  
 f u n c t i o n   s e l e k t i o n A k t u a l i s i e r e n _ p h p   ( s t r )   {  
 	 	 F r a m e n a m e   =   ' f r m C o n t r o l ' ;  
 	 	 s t r 2   =   s t r . s u b s t r i n g ( 0 ,   s t r . l a s t I n d e x O f ( " . " ) ) ;  
 	 	 u r l   =   ' p h p _ m e n u e . p h p ? s y n c = '   +   s t r 2 ;  
 	 	 / / a l e r t   ( ) ;  
 	 	 / / i f   ( t y p e o f   ( p a r e n t [ F r a m e n a m e ] . l o c a t i o n . h r e f )   ! =   " u n d e f i n e d " )  
 	 	 t r y 	 {  
 	 	 	 p a r e n t [ F r a m e n a m e ] . l o c a t i o n . h r e f   =   u r l ;  
 	 	 	 }  
 	 	 c a t c h ( e )  
 	 	 {  
 	 	 / / a l e r t   ( " x x x " ) ;  
 	 	 }  
 }    
  
  
 / / =   S T A R T   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
  
 / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
   *     V a r i a b l e n   f u e r   I m a g e s  
   *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -    
   * /  
 v a r   V I C O N D A T A     =   " j s _ m 1 . g i f " ;  
 v a r   V I C O N C L O S E   =   " j s _ m 2 . g i f " ;  
 v a r   V I C O N O P E N     =   " j s _ m 3 . g i f " ;  
  
 f u n c t i o n   s e l e k t i o n A k t u a l i s i e r e n _ j s   ( s t r )   {  
 	  
     t r y   {  
 	     v a r   n o d e I d   =   t o p . f r m C t l D a t a . d o c u m e n t . g e t E l e m e n t B y I d ( ' t o c ' ) ;  
     }   c a t c h   ( e )   {   }  
 	  
     t r y   {  
 	 	 / /   T O C - B a u m   p r ü f e n  
 	 	 v a r   n o d e I d   =   t o p . f r m C t l D a t a . d o c u m e n t . g e t E l e m e n t B y I d ( ' t o c ' ) ;  
 	 	 v a r   s p a n T a g   =   n o d e I d . g e t E l e m e n t s B y T a g N a m e ( ' s p a n ' ) ;  
  
 	 	 f o r ( v a r   i   =   0 ;   i   <   s p a n T a g . l e n g t h ;   i + + )   {  
 	 	 	 v a r   e r g e b n i s   =   s p a n T a g [ i ] . l a s t C h i l d . h r e f . s e a r c h ( s t r ) ;  
 	 	 	 i f   ( e r g e b n i s   ! =   - 1 )   {  
 	 	 	 	 / /   M a r k i e r u n g   s e t z e n  
 	 	 	 	 s p a n T a g [ i ] . c l a s s N a m e   =   " m a r k 5 " ;  
 	 	 	 	 / /   i m m e r   d e n   l e t z t e n   E i n t r a g   m a r k i e r e n  
 	 	 	 	 i f   ( i   ! =   0 )   {  
 	 	 	 	 	 s p a n T a g [ i - 1 ] . c l a s s N a m e   =   " m a r k N u l l " ;  
 	 	 	 	 }  
 	 	 	 	  
 	 	 	 	 / /   d i v - C o n t a i n e r   ö f f n e n  
 	 	 	 	 v a r   d i v O b j e k t   =   s p a n T a g [ i ] ;  
 	 	 	 	 o p e n C l o s e d D i v T a g s ( d i v O b j e k t ) ;  
  
 	 	 	 }   e l s e   {  
 	 	 	 	 s p a n T a g [ i ] . c l a s s N a m e   =   " m a r k N u l l " ;  
 	 	 	 }    
 	 	 }  
  
 	 	 / /   H i g h l i g h t e n   d e r   S u c h w o e r t e r  
 	 	 f _ m a r k ( ) ;  
  
 	 }   c a t c h   ( e )   {  
 	 	 r e t u r n ;  
 	 }  
     r e t u r n ;  
 }    
  
 f u n c t i o n   o p e n C l o s e d D i v T a g s ( o b j )   {  
 	  
 	 / /   A u s s t i e g   f a l l s   A n f a n g   d e r   D I V - T a g s   e r r r e i c h t   i s t  
 	 i f   ( o b j . p a r e n t N o d e . i d   = =   " t e x t " )   {  
 	   r e t u r n ;    
 	 }  
 	  
 	 i f   ( o b j . p a r e n t N o d e . c l a s s N a m e   = =   " c l o s e d " )   {  
 	 	 / /   d i v - T a g   ö f f n e n  
 	 	 o b j . p a r e n t N o d e . c l a s s N a m e   =   " o p e n " ;  
 	 	 / /   i m a g e s   s e t z e n   -   i m a g e   h a t   d i e   g l e i c h e   I d   w i e   d i v - T a g  
 	 	 v a r   i m g I d   =   o b j . p a r e n t N o d e . i d ;  
 	 	 i m g I d   =   i m g I d . r e p l a c e ( " d i v " ,   " i m g " ) ;  
 	 	 v a r   i m g T a g   =   t o p . f r m C t l D a t a . d o c u m e n t . g e t E l e m e n t B y I d ( i m g I d ) ;  
 	 	 i m g T a g . s r c   =   V I C O N O P E N ;  
 	 	  
 	 	 / /   r e k u r s i v e r   A u f r u f  
 	 	 o p e n C l o s e d D i v T a g s ( o b j . p a r e n t N o d e ) ;  
 	 }   e l s e   {  
 	 	 / /   r e k u r s i v e r   A u f r u f  
 	 	 o p e n C l o s e d D i v T a g s ( o b j . p a r e n t N o d e ) ;  
 	 }  
 	 r e t u r n ;  
 }  
  
 f u n c t i o n   f _ m a r k ( )   {  
 	  
 	 v a r   v a l u e   =   " " ;  
 	 v a r   c o l o r   =   0 ;  
 	 v a r   q u o t e   =   f a l s e ;  
 	  
     t r y   {  
         / /   B r o w s e r u n t e r s c h e i d u n g  
         i f   ( c h e c k b r o w s e r t y p N a m e ( ' f i r e f o x ' )   | |   c h e c k b r o w s e r t y p N a m e ( ' o p e r a ' )   | |   c h e c k b r o w s e r t y p N a m e ( ' s a f a r i ' ) )   {  
     	     v a r   s t r   =   t o p . f r a m e s [ ' f r m C o n t r o l ' ] . d o c u m e n t . f o r m s [ ' s u c h e x m l ' ] . q . v a l u e ;  
         }  
         e l s e   i f   ( c h e c k b r o w s e r t y p N a m e ( ' M S I E ' ) )   {  
             v a r   s t r   =   t o p . f r m C o n t r o l . s u c h e x m l . q . v a l u e ;  
 	 	 }  
     }   c a t c h   ( e )   {  
         r e t u r n ;  
     }  
      
 / /     i f ( s t r . i n d e x O f ( " \ " " )   > =   0 )   {  
 / /         / /   " s c h a r f e   S u c h e "   -   a l l e   A n f u e h r u n g s z e i c h e n   e r s e t z e n  
 / /         s t r   =   s t r . r e p l a c e ( / \ " / g ,   " " ) ;  
 / /         q u o t e   =   t r u e ;  
 / /     }   e l s e   {  
 / / 	 	 q u o t e   =   f a l s e ;  
 / /     }  
  
     / /   S o n d e r z e i c h e n   a u s   d e m   S u c h b e g r i f f   e n t f e r n e n  
     v a r   r e g e x   =   " " ;  
     r e g e x   =   / \ * | \ + | \ ? | \ . | \ ( | \ ) | \ [ | \ ] | \ { | \ } | \ / | \ | | \ ^ | \ - | \ \ | ' | : | ; | # | \ § | ! | = | % | , / g ;  
     s t r   =   s t r . r e p l a c e ( r e g e x ,   ' ' ) ;  
 	  
 	 / /   L i e f e r t   d i e   N u m m e r   e i n e s   U n i c o d e - Z e i c h e n s   z u r ü c k ,   d a s   i n   e i n e r   Z e i c h e n k e t t e    
 	 / /   a n   e i n e r   b e s t i m m t e n   P o s i t i o n   s t e h t .  
 	 f o r ( i = 0 ;   i < s t r . l e n g t h ;   i + + )   {  
 	 	 i f ( s t r . c h a r C o d e A t ( i )   > =   1 4 2 4 )   {  
 	 	 	 s t r   =   s t r . s u b s t r i n g ( 0 ,   i + 1 )   +   "   "   +   s t r . s u b s t r i n g ( i + 1 ,   s t r . l e n g t h ) ;  
 	 	 }  
     }  
  
     s t r   =   t r i m W h i t e s p a c e ( s t r ) ;  
     v a r   s u c h w e r t e   =   s t r . s p l i t ( "   " ) ;  
 	  
   	 v a r   c o n t e n t T e x t   =   t o p . f r m T o p i c . d o c u m e n t . g e t E l e m e n t B y I d ( ' t e x t ' ) ;  
     v a r   c o n t e n t P   =   c o n t e n t T e x t . g e t E l e m e n t s B y T a g N a m e ( ' p ' ) ;      
     v a r   c o n t e n t B   =   c o n t e n t T e x t . g e t E l e m e n t s B y T a g N a m e ( ' b ' ) ;  
     v a r   c o n t e n t A   =   c o n t e n t T e x 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   c o n t e n t U   =   c o n t e n t T e x t . g e t E l e m e n t s B y T a g N a m e ( ' u ' ) ;  
     v a r   c o n t e n t D i v   =   c o n t e n t T e x t . g e t E l e m e n t s B y T a g N a m e ( ' d i v ' ) ;  
 	 v a r   c o n t e n t S p a n   =   c o n t e n t T e x t . g e t E l e m e n t s B y T a g N a m e ( ' s p a n ' ) ;  
      
     v a r   c o n t e n t N s r   =   t o p . f r m T o p i c . d o c u m e n t . g e t E l e m e n t B y I d ( ' n s r ' ) ;  
     v a r   c o n t e n t N s r A   =   c o n t e n t N s r . g e t E l e m e n t s B y T a g N a m e ( ' a ' ) ;  
 	 v a r   c o n t e n t N s r H 1   =   c o n t e n t N s r . g e t E l e m e n t s B y T a g N a m e ( ' H 1 ' ) ;  
     v a r   c o n t e n t N s r H 2   =   c o n t e n t N s r . g e t E l e m e n t s B y T a g N a m e ( ' H 2 ' ) ;  
 	 v a r   c o n t e n t N s r H 3   =   c o n t e n t N s r . g e t E l e m e n t s B y T a g N a m e ( ' H 3 ' ) ;  
 	 v a r   c o n t e n t N s r H 4   =   c o n t e n t N s r . g e t E l e m e n t s B y T a g N a m e ( ' H 4 ' ) ;  
 	 v a r   c o n t e n t N s r H 5   =   c o n t e n t N s r . g e t E l e m e n t s B y T a g N a m e ( ' H 5 ' ) ;  
 	 v a r   c o n t e n t N s r H 6   =   c o n t e n t N s r . g e t E l e m e n t s B y T a g N a m e ( ' H 6 ' ) ;  
      
 	 f o r   ( v a r   i   =   0 ;   i   <   s u c h w e r t e . l e n g t h ;   i + + )   {  
 	  
 	 	 i f ( s u c h w e r t e [ i ] . i n d e x O f ( " \ " " )   > =   0 )   {  
 	 	 	 / /   " s c h a r f e   S u c h e "   -   a l l e   A n f u e h r u n g s z e i c h e n   e r s e t z e n  
 	 	 	 s u c h w e r t e [ i ]   =   s u c h w e r t e [ i ] . r e p l a c e ( / \ " / g ,   " " ) ;  
 	 	 	 q u o t e   =   t r u e ;  
 	 	 }   e l s e   {  
 	 	 	 q u o t e   =   f a l s e ;  
 	 	 }  
     	  
 	 	 / /   S u c h w o r t   s p e i c h e r n  
     	 v a l u e   =   s u c h w e r t e [ i ] ;  
     	 / /   S o n d e r z e i c h e n   $   i m   S u c h w o r t   m a s k i e r e n  
     	 v a l u e   =   v a l u e . r e p l a c e ( " $ " ,   ' \ \ $ ' ) ;  
     	  
     	 / /   h i e r   w i r d   d i e   m a x i m a l e   S t y l e a n z e i g e   f u e r s   M a r k i e r e n   a u f   4   g e s e t z t    
     	 i f   ( i   < =   3 )   {    
     	     c o l o r   =   i ;  
     	 }   e l s e   {  
     	     c o l o r   =   9 9 ;  
     	 }  
     	  
 	     / /   A l t e n   I n h a l t   a u s l e s e n  
 	     v a r   v _ c o n t e n t   =   t o p . f r m T o p i c . d o c u m e n t . g e t E l e m e n t B y I d ( ' t e x t ' ) ;  
         v a r   v _ o l d   =   v _ c o n t e n t . i n n e r H T M L ;  
     	  
 	     / /   E r s t m a l   e v t l .   v o r h a n d e n e   a l t e   M a r k i e r u n g e n   e n t f e r n e n  
 	     v a r   v _ p a t t e r n   =   n e w   R e g E x p ( ' < s p a n   c l a s s = " m a r k '   +   c o l o r   +   ' " > ( [ ^ < ] * ) < / s p a n > ' ,   ' g i ' ) ;  
 	     v a r   v _ n e w   =   v _ o l d . r e p l a c e ( v _ p a t t e r n ,   ' $ 1 ' ) ;  
     	  
 	     i f   ( v a l u e   ! =   ' ' )   {  
 	 	 	 / /   S c h a r f e   S u c h e   d e f i n i e r e n  
 	 	 	 i f   ( q u o t e )   {  
 	 	 	 	 / / v _ p a t t e r n     =   n e w   R e g E x p ( ' ( \ \ W ) ( '   +   v a l u e   +   ' ) ( \ \ W ) ' ,   ' g i ' ) ;  
 	 	 	 	 v _ p a t t e r n     =   n e w   R e g E x p ( ' ( \ \ b '   +   v a l u e   +   ' \ \ b ) ' ,   ' g i ' ) ;  
 	 	 	 	 / / v _ p a t t e r n     =   n e w   R e g E x p ( ' ( '   +   v a l u e   +   ' ) ' ,   ' g i ' ) ;  
 	 	 	 }   e l s e   {  
 	 	 	 	 i f   ( v a l u e . c h a r C o d e A t ( 0 )   < =   2 5 5 )   {  
 	 	 	 	 	 v _ p a t t e r n     =   n e w   R e g E x p ( ' ( \ \ b '   +   v a l u e   +   ' ) ' ,   ' g i ' ) ;  
 	 	 	 	 }   e l s e   i f   ( v a l u e . c h a r C o d e A t ( 0 )   > =   1 4 2 4 )   {  
 	 	 	 	 	 v _ p a t t e r n     =   n e w   R e g E x p ( ' ( \ \ B '   +   v a l u e   +   ' ) ' ,   ' g i ' ) ; 	  
 	 	 	 	 }  
 	 	 	 }  
 	          
 	         / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           *     I n   a l l e n   n s r - A - T a g s   n a c h   S u c h w o e r t e r n   s u c h e n   u n d   d i e   g e f u n d e n e n   W o e r t e r   m a r k i e r e n  
 	           *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           * /  
 	         h i g h l i g h t W o r d s ( c o n t e n t N s r A ,   v _ p a t t e r n ,   c o l o r ,   q u o t e ) ;  
 	          
 	         / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           *     I n   a l l e n   n s r - H 1 - T a g s   n a c h   S u c h w o e r t e r n   s u c h e n   u n d   d i e   g e f u n d e n e n   W o e r t e r   m a r k i e r e n  
 	           *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           * /  
 	         h i g h l i g h t W o r d s ( c o n t e n t N s r H 1 ,   v _ p a t t e r n ,   c o l o r ,   q u o t e ) ;  
 	 	 	  
 	 	 	 / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           *     I n   a l l e n   n s r - H 2 - T a g s   n a c h   S u c h w o e r t e r n   s u c h e n   u n d   d i e   g e f u n d e n e n   W o e r t e r   m a r k i e r e n  
 	           *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           * /  
 	         h i g h l i g h t W o r d s ( c o n t e n t N s r H 2 ,   v _ p a t t e r n ,   c o l o r ,   q u o t e ) ;  
 	          
 	         / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           *     I n   a l l e n   n s r - H 3 - T a g s   n a c h   S u c h w o e r t e r n   s u c h e n   u n d   d i e   g e f u n d e n e n   W o e r t e r   m a r k i e r e n  
 	           *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           * /  
 	         h i g h l i g h t W o r d s ( c o n t e n t N s r H 3 ,   v _ p a t t e r n ,   c o l o r ,   q u o t e ) ;  
  
 	 	 	 / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           *     I n   a l l e n   n s r - H 4 - T a g s   n a c h   S u c h w o e r t e r n   s u c h e n   u n d   d i e   g e f u n d e n e n   W o e r t e r   m a r k i e r e n  
 	           *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           * /  
 	         h i g h l i g h t W o r d s ( c o n t e n t N s r H 4 ,   v _ p a t t e r n ,   c o l o r ,   q u o t e ) ;  
 	 	  
 	 	 	 / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           *     I n   a l l e n   n s r - H 5 - T a g s   n a c h   S u c h w o e r t e r n   s u c h e n   u n d   d i e   g e f u n d e n e n   W o e r t e r   m a r k i e r e n  
 	           *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           * /  
 	         h i g h l i g h t W o r d s ( c o n t e n t N s r H 5 ,   v _ p a t t e r n ,   c o l o r ,   q u o t e ) ;  
  
 	 	 	 / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           *     I n   a l l e n   n s r - H 6 - T a g s   n a c h   S u c h w o e r t e r n   s u c h e n   u n d   d i e   g e f u n d e n e n   W o e r t e r   m a r k i e r e n  
 	           *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           * /  
 	         h i g h l i g h t W o r d s ( c o n t e n t N s r H 6 ,   v _ p a t t e r n ,   c o l o r ,   q u o t e ) ;  
  
 	         / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           *     I n   a l l e n   P - T a g s   n a c h   S u c h w o e r t e r n   s u c h e n   u n d   d i e   g e f u n d e n e n   W o e r t e r   m a r k i e r e n  
 	           *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           * /  
 	 	 	 h i g h l i g h t W o r d s ( c o n t e n t P ,   v _ p a t t e r n ,   c o l o r ,   q u o t e ) ;  
  
 	         / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           *     I n   a l l e n   B - T a g s   n a c h   S u c h w o e r t e r n   s u c h e n   u n d   d i e   g e f u n d e n e n   W o e r t e r   m a r k i e r e n  
 	           *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           * /  
 	         h i g h l i g h t W o r d s ( c o n t e n t B ,   v _ p a t t e r n ,   c o l o r ,   q u o t e ) ;  
  
 	         / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           *     I n   a l l e n   A - T a g s   n a c h   S u c h w o e r t e r n   s u c h e n   u n d   d i e   g e f u n d e n e n   W o e r t e r   m a r k i e r e n  
 	           *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           * /  
 	         h i g h l i g h t W o r d s ( c o n t e n t A ,   v _ p a t t e r n ,   c o l o r ,   q u o t e ) ;  
  
 	         / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           *     I n   a l l e n   U - T a g s   n a c h   S u c h w o e r t e r n   s u c h e n   u n d   d i e   g e f u n d e n e n   W o e r t e r   m a r k i e r e n  
 	           *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           * /  
 	         h i g h l i g h t W o r d s ( c o n t e n t U ,   v _ p a t t e r n ,   c o l o r ,   q u o t e ) ;  
  
 	 	 	 / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           *     I n   a l l e n   D I V - T a g s   n a c h   S u c h w o e r t e r n   s u c h e n   u n d   d i e   g e f u n d e n e n   W o e r t e r   m a r k i e r e n  
 	           *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           * /  
 	         h i g h l i g h t W o r d s ( c o n t e n t D i v ,   v _ p a t t e r n ,   c o l o r ,   q u o t e ) ;  
  
 	 	 	 / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           *     I n   g e s c h l o s s e n e n   T a g s   n a c h   S u c h w o e r t e r n   s u c h e n   u n d   B e r e i c h e   ö f f n e n  
 	           *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	           * /  
 	 	 	 o p e n G r o u p ( c o n t e n t D i v ,   " e x p a r a A u f " ,   " b l o c k " ,   v a l u e ) ;  
 	 	 	 o p e n G r o u p ( c o n t e n t D i v ,   " e x p a r a " ,   " i n l i n e " ,   v a l u e ) ;  
 	 	 	  
 	 	 	 o p e n G r o u p ( c o n t e n t S p a n ,   " e x p a r a A u f " ,   " b l o c k " ,   v a l u e ) ;  
 	 	 	 o p e n G r o u p ( c o n t e n t S p a n ,   " e x p a r a " ,   " i n l i n e " ,   v a l u e ) ;  
              
 	     }   / /   i f  
 	 }   / /   f o r  
 }  
  
 f u n c t i o n   o p e n G r o u p ( c o n t e n t T a g s ,   c l a s s n a m e ,   d i s p l a y t e x t ,   s u c h s t r i n g )   {  
  
 	 	 / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	 	   *     I n   g e s c h l o s s e n e n   T a g s   n a c h   S u c h w o e r t e r n   s u c h e n   u n d   B e r e i c h e   ö f f n e n  
 	 	   *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	 	   * /  
 	 	 f o r   ( v a r   p   =   0 ;   p   <   c o n t e n t T a g s . l e n g t h ;   p + + )   {  
 	 	 	 i f   ( c o n t e n t T a g s [ p ] . c l a s s N a m e   = =   c l a s s n a m e   & &   c o n t e n t T a g s [ p ] . i n n e r H T M L . t o L o w e r C a s e ( ) . s e a r c h ( s u c h s t r i n g . t o L o w e r C a s e ( ) )   ! =   - 1 )   {  
 	 	 	 	 c o n t e n t T a g s [ p ] . s t y l e . d i s p l a y   =   d i s p l a y t e x t ;  
 	 	 	 }  
 	 	 }  
 }  
  
 f u n c t i o n   h i g h l i g h t W o r d s ( c o n t e n t T a g s ,   v _ p a t t e r n ,   c o l o r ,   m _ q u o t e )   {  
  
 	 v a r   v _ n e w   =   " " ;  
 	 v a r   b O b j e c t   =   " " ;  
 	 v a r   b I m a g e   =   " " ;  
 	 v a r   b A n k e r   =   " " ;  
 	 v a r   b S c r i p t   =   " " ;  
 	 v a r   b E m b e d   =   " " ;  
 	  
 	 / /   S t y l e d a t e i   a u s l e s e n  
 	 v a r   s t y l e s h e e t   =   t o p . f r m C t l D a t a . d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( ' l i n k ' ) [ 0 ] . h r e f ;  
  
     f o r   ( v a r   i   =   0 ;   i   <   c o n t e n t T a g s . l e n g t h ;   i + + )   {  
         v _ n e w   =   c o n t e n t T a g s [ i ] . i n n e r H T M L ;  
  
         i f   ( v _ n e w   ! =   " " )   {  
 	 	 	 i f   ( v _ n e w . s e a r c h ( " & n b s p ;   " )   = =   - 1   & &   v _ n e w . s e a r c h ( " & n b s p ; " )   = =   - 1 )   {  
  
 	 	 	 	 v a r   s C h a r a c t e r   =   " " ;  
 	 	 	 	 v a r   s A l t W o r t   =   " " ;  
 	 	 	 	 v a r   s G a n z e r S a t z   =   " " ;  
 	 	 	 	 v a r   b T a g S t a r t   =   0 ;  
 	 	 	 	 v a r   b T a g E n d e   =   0 ;  
 	 	 	 	 v a r   b N e w W o r t   =   0 ;    
  
 	 	 	 	 f o r   ( v a r   k   =   0 ;   k   <   v _ n e w . l e n g t h ;   k + + )   {  
 	 	 	 	 	 s C h a r a c t e r   =   v _ n e w . s u b s t r i n g ( k ,   k + 1 ) ;  
 	 	 	 	 	 / / s C h a r a c t e r   =   t r i m W h i t e s p a c e ( s C h a r a c t e r ) ;  
 	 	 	 	 	 i f   ( s C h a r a c t e r   = =   " < " )   {  
 	 	 	 	 	 	 b T a g S t a r t   =   1 ;  
 	 	 	 	 	 }   e l s e   i f   ( s C h a r a c t e r   = =   " > " )   {  
 	 	 	 	 	 	 b T a g E n d e   =   1 ;  
 	 	 	 	 	 }   e l s e   i f   ( s C h a r a c t e r   = =   "   " )   {  
 	 	 	 	 	 	 b N e w W o r t   =   1 ;  
 	 	 	 	 	 }  
 	 	 	 	 	  
 	 	 	 	 	 i f   ( b N e w W o r t   = =   0   & &   b T a g S t a r t   = =   0   & &   b T a g E n d e   = =   0 )   {  
 	 	 	 	 	 	 s A l t W o r t   + =   s C h a r a c t e r ;  
 	 	 	 	 	 }   e l s e   i f   ( b N e w W o r t   = =   0   & &   b T a g S t a r t   = =   1   & &   b T a g E n d e   = =   0 )   {  
 	 	 	 	 	 	 / /   W o r t t e i l e   m a r k i e r e n  
 	 	 	 	 	 	 s G a n z e r S a t z   + =   s A l t W o r t . r e p l a c e ( v _ p a t t e r n ,   ' < s p a n   c l a s s = " m a r k '   +   c o l o r   +   ' " > $ 1 < / s p a n > < l i n k   r e l = " s t y l e s h e e t "   t y p e = " t e x t / c s s "   h r e f = " '   +   s t y l e s h e e t   +   ' " > ' )   +   "   " ;  
 	 	 	 	 	 	 s A l t W o r t   =   " < " ;  
 	 	 	 	 	 	 b N e w W o r t   =   1 ;  
 	 	 	 	 	 }   e l s e   i f   ( b N e w W o r t   = =   1   & &   b T a g S t a r t   = =   1   & &   b T a g E n d e   = =   0 )   {  
 	 	 	 	 	 	 s A l t W o r t   + =   s C h a r a c t e r ;  
 	 	 	 	 	 }   e l s e   i f   ( b N e w W o r t   = =   1   & &   b T a g S t a r t   = =   0   & &   b T a g E n d e   = =   0 )   {  
 	 	 	 	 	 	 / /   W o r t t e i l e   m a r k i e r e n  
 	 	 	 	 	 	 s G a n z e r S a t z   + =   s A l t W o r t . r e p l a c e ( v _ p a t t e r n ,   ' < s p a n   c l a s s = " m a r k '   +   c o l o r   +   ' " > $ 1 < / s p a n > < l i n k   r e l = " s t y l e s h e e t "   t y p e = " t e x t / c s s "   h r e f = " '   +   s t y l e s h e e t   +   ' " > ' )   +   "   " ;  
 	 	 	 	 	 	 s A l t W o r t   =   " " ;  
 	 	 	 	 	 	 b N e w W o r t   =   0 ;  
 	 	 	 	 	 }   e l s e   i f   ( b T a g S t a r t   = =   1   & &   b T a g E n d e   = =   1 )   {  
 	 	 	 	 	 	 s A l t W o r t   + =   s C h a r a c t e r ;  
 	 	 	 	 	 	 s G a n z e r S a t z   + =   s A l t W o r t ;  
 	 	 	 	 	 	 b T a g S t a r t   =   0 ;  
 	 	 	 	 	 	 b T a g E n d e   =   0 ;  
 	 	 	 	 	 	 b N e w W o r t   =   0 ;  
 	 	 	 	 	 	 s A l t W o r t   =   " " ;  
 	 	 	 	 	 }  
 	 	 	 	 }    
  
 	 	 	 	 i f   ( k   = =   v _ n e w . l e n g t h )   {  
 	 	 	 	 	 / /   W o r t t e i l e   m a r k i e r e n  
 	 	 	 	 	 s G a n z e r S a t z   + =   s A l t W o r t . r e p l a c e ( v _ p a t t e r n ,   ' < s p a n   c l a s s = " m a r k '   +   c o l o r   +   ' " > $ 1 < / s p a n > < l i n k   r e l = " s t y l e s h e e t "   t y p e = " t e x t / c s s "   h r e f = " '   +   s t y l e s h e e t   +   ' " > ' ) ;  
 	 	 	 	 	 s A l t W o r t   =   " " ;  
 	 	 	 	 	 b N e w W o r t   =   0 ;  
 	 	 	 	 }  
 	 	 	 	 	  
 	 	 	 	 i f   ( v _ n e w . l e n g t h   ! =   s G a n z e r S a t z . l e n g t h )   {  
 	 	 	 	 	 c o n t e n t T a g s [ i ] . i n n e r H T M L   =   s G a n z e r S a t z ; 	  
 	 	 	 	 }  
  
 	 	 	 }   / /   e n d   i f  
 	 	 }   / /   e n d   i f  
     }   / /   e n d   f o r  
     r e t u r n   c o n t e n t T a g s ;  
 }  
  
 f u n c t i o n   c h e c k b r o w s e r t y p N a m e ( n a m e )   {  
     v a r   a g e n t   =   n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) ;  
     i f   ( a g e n t . i n d e x O f ( n a m e . t o L o w e r C a s e ( ) ) > - 1 )   {  
         r e t u r n   t r u e ;  
     }      
     r e t u r n   f a l s e ;  
 }  
  
 f u n c t i o n   t r i m W h i t e s p a c e ( s t r i n g )   {  
 / *  
   *   D i e s e   F u n k t i o n   e n t f e r n t   ü b e r z ä h l i g e   L e e r z e i c h e n   a m   A n f a n g ,   E n d e  
   *   o d e r   a u c h   i n n e r h a l b   e i n e r   Z e i c h e n k e t t e .  
   * /  
  
     v a r   t m p   =   " " ;  
     v a r   s t r i n g L e n g t h   =   s t r i n g . l e n g t h ;  
  
     f o r   ( v a r   i   =   0 ;   i   <   s t r i n g . l e n g t h ;   i + + )   {  
         i f   ( ( s t r i n g . c h a r A t ( i )   ! =   '   ' )   & &   ( s t r i n g . c h a r A t ( i )   ! =   ' + ' ) )   {  
             t m p   + =   s t r i n g . c h a r A t ( i ) ;  
         }    
         e l s e   {  
             i f   ( t m p . l e n g t h   >   0 )   {  
                 i f   (   ( s t r i n g . c h a r A t ( i + 1 )   ! =   '   ' )   & &   ( s t r i n g . c h a r A t ( i )   ! =   ' + ' )   & &   ( i   ! =   s t r i n g . l e n g t h - 1 )   )   {  
                     t m p   + =   s t r i n g . c h a r A t ( i ) ;  
                 }  
             }  
         }  
     }  
     r e t u r n   t m p ;  
 }  
  
 / / =   E N D   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
  
  
  
 / /   I n t e r p r e t i e r t   E i n t r a g   i n   H T M L - D a t e i e n   z u r   k o r r e k t e n   D a r s t e l l u n g   v o n   I n t r a n e t - D o k u m e n t a t i o n e n  
 f u n c t i o n   s e l e k t i o n A k t u a l i s i e r e n ( s t r )   {  
     t r y   {  
         v a r   v a r F r a m e   =   t o p . f r a m e s . f r m C o n t r o l ;  
         i f   ( v a r F r a m e )   {  
             v a r   e l e m e n t   =   v a r 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 ( ' g e l a d e n ' ) ;  
             i f   ( e l e m e n t )   {  
                 v a r   v e r z   =   v a r 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 ( ' v e r z e i c h n i s ' ) ;  
                 i f   ( v e r z )   {  
                     i f   ( v e r z . i s A c t i v e ( ) )   {  
                         v e r z . s e t S e l e c t i o n ( s t r ) ;  
                     }   e l s e   {  
                         s e t T i m e o u t ( " s e l e k t i o n A k t u a l i s i e r e n ( ' " + s t r + " ' ) " ,   1 0 0 ) ;  
                     }  
                 }   e l s e   {  
                     a l e r t ( ' A p p l e t   e l e m e n t   n i c h t   g e f u n d e n   ! ! ' ) ;  
                 }  
             }  
         }  
     }   c a t c h   ( e )   { }  
  
       / / A u s l e s e n   d e r   B e g r i f f e  
       v a r   a r g s t r   =   l o c a t i o n . s e a r c h . s u b s t r i n g ( 1 ,   l o c a t i o n . s e a r c h . l e n g t h ) ;  
       v a r   a r g s   =   a r g s t r . s p l i t ( ' | ' ) ;  
       f o r ( v a r   i = 0 ; i < a r g s . l e n g t h ; i + + )  
       {  
           i f   ( a r g s [ i ]   ! =   " " )  
           {  
                   i f ( a r g s [ i ] . i n d e x O f ( " : " )   ! =   - 1 )  
                   {  
                           v a r   a r g = a r g s [ i ] . s p l i t ( ' : ' ) ;  
                           e x a m i n N o d e ( d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " b o d y " ) [ 0 ] ,   a r g [ 0 ] ,   f a l s e ) ;  
                   }  
                   e l s e  
                           e x a m i n N o d e ( d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " b o d y " ) [ 0 ] ,   a r g s [ i ] ,   f a l s e ) ;  
           }  
       }  
 }  
  
 f u n c t i o n   e x a m i n N o d e ( k n o t e n ,   a r g u m ,   o n e C h a r )  
 {  
     v a r   n o d e s   =   k n o t e n . c h i l d N o d e s . l e n g t h ;  
     f o r   ( v a r   i   =   0 ;   i   <   n o d e s ;   i + + )  
     {  
         i f   ( k n o t e n . c h i l d N o d e s [ i ] . d a t a ! = n u l l )  
         {  
             / / a l e r t ( k n o t e n . c h i l d N o d e s [ i ] . d a t a ) ;  
  
             v a r   n o d e T e x t   =   k n o t e n . c h i l d N o d e s [ i ] . d a t a ;  
             v a r   i s d i g i t   =   f a l s e ;  
  
             i f ( ( a r g u m . s u b s t r i n g ( 0 , 1 ) > =   ' 0 ' )   & &   ( a r g u m . s u b s t r i n g ( 0 , 1 ) < = ' 9 ' )   & &  
                   ( a r g u m . s u b s t r i n g ( a r g u m . l e n g t h - 1 ,   a r g u m . l e n g t h )   > =   ' 0 ' ) & &  
                   ( a r g u m . s u b s t r i n g ( a r g u m . l e n g t h - 1 ,   a r g u m . l e n g t h )   < =   ' 9 ' ) )  
             {  
                 i s d i g i t   =   t r u e ;  
             }  
             i f   ( n o d e T e x t . l e n g t h ! = 0 )  
             {  
                 i f ( ( a r g u m . l e n g t h   = =   1 ) & & ( a r g u m . c h a r C o d e A t ( 0 ) < 1 0 0 0 0 ) & & ( i s d i g i t   ! =   t r u e ) )  
                 {  
                       a r g u m =   "   "   +   a r g u m ;  
                       v a r   s u c h e = n e w   R e g E x p ( a r g u m ,   " g i " ) ;  
                       o n e C h a r   =   t r u e ;  
                 }  
                 e l s e  
                 {  
                       v a r   s u c h e = n e w   R e g E x p ( a r g u m ,   " g i " ) ;  
                 }  
                 v a r   e n t h a e l t = n o d e T e x t . s e a r c h ( s u c h e ) ;  
                 i f   ( e n t h a e l t ! = - 1 )  
                 {  
                     i f ( a r g u m . c h a r C o d e A t ( 0 ) > 1 0 0 0 0 )  
                               m a t c h   =   t r u e ;  
                     v a r   s 1   =   n o d e T e x t . s u b s t r i n g ( e n t h a e l t + a r g u m . l e n g t h ,   e n t h a e l t + a r g u m . l e n g t h + 1 ) ;  
                     i f   ( s 1   = =   " "   | |   s 1   = =   "   "   | |   s 1   = =   " . "   | |   s 1   = =   " , "   | |   s 1   = =   " ! "   | |   s 1   = =   " ? "   | |   s 1   = =   " : "   | |   s 1 = =   " \ " "   | |   s 1   = =   " ; "   | |   s 1   = =   " ) "   | |   s 1   = =   " % " )  
                     {  
                         v a r   m a t c h   =   f a l s e ;  
                         i f ( e n t h a e l t   = =   0 )  
                         {  
                         	 m a t c h   =   t r u e ;  
                         }  
                         e l s e   i f ( o n e C h a r   ! =   t r u e )  
                         {  
                             v a r   s 2   =   n o d e T e x t . s u b s t r i n g ( e n t h a e l t - 1 ,   e n t h a e l t ) ;  
                             i f   ( s 2   = =   " "   | |   s 2   = =   "   "   | |   s 2   = =   " . "   | |   s 2   = =   " , "   | |   s 2   = =   " ! "   | |   s 2   = =   " ? "   | |   s 2   = =   " : "   | |   s 2 = =   " \ " "   | |   s 2   = =   " / " | |   s 2   = =   " ; "   | |   s 2   = =   " ( " )  
                             {  
                                 m a t c h   =   t r u e ;  
                             }  
                         }  
                         e l s e  
                         {  
                         	 m a t c h   =   t r u e ;  
                         }  
                         i f   ( ( s 2   = =   " . "   | |   s 2   = =   " , "   | |   s 1   = =   " . "   | |   s 1   = =   " , " ) & &   ( i s d i g i t   = =   t r u e ) )  
                         {  
 	             	         m a t c h   =   f a l s e ;  
                         }  
                     }  
                         / / a l e r t ( " a r g u m = " + a r g u m + " \ n " + " s 1 = " + s 1 + " \ n " + " s 2 = " + s 2 + " \ n " + " m a t c h = " + m a t c h + " \ n " + " o n e C h a r = " + o n e C h a r + " \ n " + " i s d i g i t = " + i s d i g i t ) ;  
                     i f   ( m a t c h = = t r u e )  
                     {  
             	         v a r   h i g h l i g h t   =   d o c u m e n t . c r e a t e E l e m e n t ( " m a r k e r " ) ;  
               	         h i g h l i g h t . s t y l e . b a c k g r o u n d C o l o r = " A 0 A 0 A 0 " ;  
  
                         v a r   n o d e 2   =   k n o t e n . c h i l d N o d e s [ i ] . c l o n e N o d e ( f a l s e ) ;  
                         v a r   t e x t 0   =   n o d e T e x t . s u b s t r i n g ( 0 ,   e n t h a e l t ) ;   / / b e f o r e   h i g h l i g h t i n g   a r e a  
                         v a r   t e x t 1   =   d o c u m e n t . c r e a t e T e x t N o d e ( n o d e T e x t . s u b s t r i n g ( e n t h a e l t ,   e n t h a e l t + a r g u m . l e n g t h ) ) ;  
                         h i g h l i g h t . a p p e n d C h i l d ( t e x t 1 ) ;  
  
                         v a r   t e x t 2   =   n o d e T e x t . s u b s t r i n g ( e n t h a e l t   +   a r g u m . l e n g t h ,   n o d e T e x t . l e n g t h ) ;  
                         k n o t e n . c h i l d N o d e s [ i ] . d a t a = t e x t 0 ;  
                         n o d e 2 . d a t a = t e x t 2 ;  
                         i f   ( k n o t e n . c h i l d N o d e s . l e n g t h > i + 1 )  
                         {  
                                 k n o t e n . i n s e r t B e f o r e ( h i g h l i g h t ,   k n o t e n . c h i l d N o d e s [ i + 1 ] ) ;  
                         }  
                         e l s e  
                         {  
                             k n o t e n . a p p e n d C h i l d ( h i g h l i g h t ) ;  
                         }  
                         i f   ( k n o t e n . c h i l d N o d e s . l e n g t h > i + 2 )  
                         {  
                             k n o t e n . i n s e r t B e f o r e ( n o d e 2 ,   k n o t e n . c h i l d N o d e s [ i + 2 ] ) ;  
                         }  
                         e l s e  
                         {  
                             k n o t e n . a p p e n d C h i l d ( n o d e 2 ) ;  
                         }  
                     }  
                 }  
             }  
         }  
         i f   ( k n o t e n . c h i l d N o d e s [ i ] . h a s C h i l d N o d e s )  
         {  
             e x a m i n N o d e ( k n o t e n . c h i l d N o d e s [ i ] ,   a r g u m ,   o n e C h a r ) ;  
         }  
     }  
 }  
  
 / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
   *     P r i n t - F u n k t i o n  
   *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -    
   * /  
 f u n c t i o n   p a g e p r i n t ( )   {  
  
 	 i f   ( p a r e n t . f r m T o p i c   ! =   n u l l )   {  
 	 	 T o p i c   =   p a r e n t . f r m T o p i c  
 	 	 p a r e n t . f r m H e a d e r   =   n u l l  
 	 }  
 	 e l s e   {    
 	 	 T o p i c   =   w i n d o w  
 	 }  
 	 T o p i c . f o c u s ( ) ;  
          
 	 v a r   c o n t e n t T e x t   =   T o p i c . d o c u m e n t . g e t E l e m e n t B y I d ( ' t e x t ' ) ;  
 	 v a r   c o n t e n t D i v   =   c o n t e n t T e x t . g e t E l e m e n t s B y T a g N a m e ( ' d i v ' ) ;  
 	 v a r   c o n t e n t S p a n   =   c o n t e n t T e x t . g e t E l e m e n t s B y T a g N a m e ( ' s p a n ' ) ;  
 	  
 	 / /   A L L E   A u f k l a p p - B e r e i c h e   a u f k l a p p e n    
 	  
 	 / /   ' n o r m a l e '   A u f k l a p p - B e r e i c h e :   d i v   c l a s s = e x p a r a A u f  
 	 f o r   ( v a r   p   =   0 ;   p   <   c o n t e n t D i v . l e n g t h ;   p + + )   {  
 	 	 i f   ( c o n t e n t D i v [ p ] . c l a s s N a m e   = =   " e x p a r a A u f " )   {  
 	 	 	 c o n t e n t D i v [ p ] . s t y l e . d i s p l a y   =   " b l o c k " ;  
 	 	 }  
 	 }  
  
 	 / /   A u f k l a p p - G r a f i k e n :   d i v   c l a s s = e x p a r a  
 	 f o r   ( v a r   p   =   0 ;   p   <   c o n t e n t D i v . l e n g t h ;   p + + )   {  
 	 	 i f   ( c o n t e n t D i v [ p ] . c l a s s N a m e   = =   " e x p a r a " )   {  
 	 	 	 c o n t e n t D i v [ p ] . s t y l e . d i s p l a y   =   " b l o c k " ;  
 	 	 }  
 	 }  
  
 	 / /   I n l i n e - A u f k l a p p - B e r e i c h e :   s p a n   c l a s s = e x p a r a  
 	 f o r   ( v a r   p   =   0 ;   p   <   c o n t e n t S p a n . l e n g t h ;   p + + )   {  
 	 	 i f   ( c o n t e n t S p a n [ p ] . c l a s s N a m e   = =   " e x p a r a " )   {  
 	 	 	 c o n t e n t S p a n [ p ] . s t y l e . d i s p l a y   =   " " ;  
 	 	 }  
 	 }  
  
 	 T o p i c . f o c u s ( ) ;  
 	  
 	 / /   a k t u e l l e   S t y l e H o e h e   m e r k e n  
 	 v a r   t m p S c r o l l H o e h e   =   d o c u m e n t . a l l . t e x t . s t y l e . h e i g h t ;  
 	  
 	 T o p i c . p r i n t ( ) ;  
 	  
 	 / /   a k t u e l l e   S t y l e H o e h e   w i e d e r   z u o r d n e n  
 	 d o c u m e n t . a l l . t e x t . s t y l e . h e i g h t   =   t m p S c r o l l H o e h e ;  
 	  
 	 r e t u r n ;  
 }  
  
  
 / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
   *     H I G H S L I D E   S t a r t  
   *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -    
   * /  
    
 i f   ( ! h s )   {   v a r   h s   =   {  
 / /   L a n g u a g e   s t r i n g s  
 l a n g   :   {  
 	 c s s D i r e c t i o n :   ' l t r ' ,  
 	 l o a d i n g T e x t   :   ' ' ,  
 	 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 ' ,  
 	 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 ' ,  
 	 f u l l E x p a n d T i t l e   :   ' B i l d   i n   1 0 0 % - D a r s t e l l u n g ' ,  
 	 c r e d i t s T e x t   :   ' ' ,  
 	 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 ' ,  
 	 r e s t o r e T i t l e   :   ' B e n u t z e n   S i e   d i e   P f e i l t a s t e n ,   u m   d i e   B i l d e r   d e r   R e i h e   n a c h   a u f z u r u f e n . '  
 } ,  
 / /   S e e   h t t p : / / h i g h s l i d e . c o m / r e f   f o r   e x a m p l e s   o f   s e t t i n g s      
 g r a p h i c s D i r   :   ' g r a p h i c s / ' ,  
 e x p a n d C u r s o r   :   ' z o o m i n . c u r ' ,   / /   n u l l   d i s a b l e 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 u l l   d i s a b l e 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 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  
 l o a d i n g O p a c i t y   :   0 . 7 5 ,  
 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 ,  
 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  
 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  
 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 H r e f   :   ' h t t p : / / h i g h s l i d e . c o m / ' ,  
 c r e d i t s T a r g e t   :   ' _ s e l f ' ,  
 e n a b l e K e y L i s t e n e r   :   t r u e ,  
 o p e n e r T a g N a m e s   :   [ ' a ' ] ,   / /   A d d   m o r e   t o   a l l o w   s l i d e s h o w   i n d e x i n g  
  
 d r a g B y H e a d i n g :   t r u e ,  
 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  
 / /   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 ' ,  
 	 ' u s e B o x ' ,  
 	 ' 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 ' ,  
 	 ' 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 a p t i o n O v e r l a y ' ,  
 	 ' h e a d i n g I d ' ,  
 	 ' h e a d i n g T e x t ' ,  
 	 ' h e a d i n g E v a l ' ,  
 	 ' h e a d i n g O v e r l a y ' ,  
 	 ' c r e d i t s P o s i t i o n ' ,  
 	 ' d r a g B y H e a d i n g ' ,  
 	  
 	 ' w i d t h ' ,  
 	 ' h e i g h 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 ' ,  
 	 ' m a x W i d t h ' ,  
 	 ' m a x H e i g h t ' ,  
 	 ' s l i d e s h o w G r o u p ' ,  
 	 ' e a s i n g ' ,  
 	 ' e a s i n g C l o s e ' ,  
 	 ' f a d e I n O u t ' ,  
 	 ' s r c '  
 ] ,  
 o v e r l a y s   :   [ ] ,  
 i d C o u n t e r   :   0 ,  
 o P o s   :   {  
 	 x :   [ ' l e f t p a n e l ' ,   ' l e f t ' ,   ' c e n t e r ' ,   ' r i g h t ' ,   ' r i g h t p a n e l ' ] ,  
 	 y :   [ ' a b o v e ' ,   ' t o p ' ,   ' m i d d l e ' ,   ' b o t t o m ' ,   ' b e l o w ' ]  
 } ,  
 m o u s e :   { } ,  
 h e a d i n g O v e r l a y :   { } ,  
 c a p t i o n O v e r l a y :   { } ,  
 t i m e r s   :   [ ] ,  
  
 p e n d i n g O u t l i n e s   :   { } ,  
 c l o n e s   :   { } ,  
 o n R e a d y :   [ ] ,  
 u a V e r s i o n :   / T r i d e n t \ / 4 \ . 0 / . t e s t ( n a v i g a t o r . u s e r A g e n t )   ?   8   :  
 	 p a r s e F l o a t ( ( n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) . m a t c h (   / . + ( ? : r v | i t | r a | i e ) [ \ / :   ] ( [ \ d . ] + ) /   )   | |   [ 0 , ' 0 ' ] ) [ 1 ] ) ,  
 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   :   / S a f a r i / . t e s t ( n a v i g a t o r . u s e r A g e n t ) ,  
 g e c k o M a c   :   / M a c i n t o s h . + r v : 1 \ . [ 0 - 8 ] . + 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 ) ,  
  
 $   :   f u n c t i o n   ( i d )   {  
 	 i f   ( 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 . e x t e n d ( 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 ;  
 } ,  
  
 e x t e n d   :   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 ] ;  
 	 r e t u r n   e l ;  
 } ,  
  
 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 )   {  
 	 	 i f   ( h s . i e   & &   x   = =   ' o p a c i t y ' )   {  
 	 	 	 i f   ( s t y l e s [ x ]   >   0 . 9 9 )   e l . s t y l e . r e m o v e A t t r i b u t e ( ' f i l t e r ' ) ;  
 	 	 	 e l s e   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 ] ;  
 	 }  
 } ,  
 a n i m a t e :   f u n c t i o n ( e l ,   p r o p ,   o p t )   {  
 	 v a r   s t a r t ,  
 	 	 e n d ,  
 	 	 u n i t ;  
 	 i f   ( t y p e o f   o p t   ! =   ' o b j e c t '   | |   o p t   = = =   n u l l )   {  
 	 	 v a r   a r g s   =   a r g u m e n t s ;  
 	 	 o p t   =   {  
 	 	 	 d u r a t i o n :   a r g s [ 2 ] ,  
 	 	 	 e a s i n g :   a r g s [ 3 ] ,  
 	 	 	 c o m p l e t e :   a r g s [ 4 ]  
 	 	 } ;  
 	 }  
 	 i f   ( t y p e o f   o p t . d u r a t i o n   ! =   ' n u m b e r ' )   o p t . d u r a t i o n   =   2 5 0 ;  
 	 o p t . e a s i n g   =   M a t h [ o p t . e a s i n g ]   | |   M a t h . e a s e I n Q u a d ;  
 	 o p t . c u r A n i m   =   h s . e x t e n d ( { } ,   p r o p ) ;  
 	 f o r   ( v a r   n a m e   i n   p r o p )   {  
 	 	 v a r   e   =   n e w   h s . f x ( e l ,   o p t   ,   n a m e   ) ;  
 	 	  
 	 	 s t a r t   =   p a r s e F l o a t ( h s . c s s ( e l ,   n a m e ) )   | |   0 ;  
 	 	 e n d   =   p a r s e F l o a t ( p r o p [ n a m e ] ) ;  
 	 	 u n i t   =   n a m e   ! =   ' o p a c i t y '   ?   ' p x '   :   ' ' ;  
 	 	  
 	 	 e . c u s t o m (   s t a r t ,   e n d ,   u n i t   ) ;  
 	 } 	  
 } ,  
 c s s :   f u n c t i o n ( e l ,   p r o p )   {  
 	 i f   ( d o c u m e n t . d e f a u l t V i e w )   {  
 	 	 r e t u r n   d o c u m e n t . d e f a u l t V i e w . g e t C o m p u t e d S t y l e ( e l ,   n u l l ) . g e t P r o p e r t y V a l u e ( p r o p ) ;  
  
 	 }   e l s e   {  
 	 	 i f   ( p r o p   = =   ' o p a c i t y ' )   p r o p   =   ' f i l t e r ' ;  
 	 	 v a r   v a l   =   e l . c u r r e n t S t y l e [ p r o p . r e p l a c e ( / \ - ( \ w ) / g ,   f u n c t i o n   ( a ,   b ) {   r e t u r n   b . t o U p p e r C a s e ( ) ;   } ) ] ;  
 	 	 i f   ( p r o p   = =   ' f i l t e r ' )    
 	 	 	 v a l   =   v a l . r e p l a c e ( / a l p h a \ ( o p a c i t y = ( [ 0 - 9 ] + ) \ ) / ,    
 	 	 	 	 f u n c t i o n   ( a ,   b )   {   r e t u r n   b   /   1 0 0   } ) ;  
 	 	 r e t u r n   v a l   = = =   ' '   ?   1   :   v a l ;  
 	 }    
 } ,  
  
 g e t P a g e S i z e   :   f u n c t i o n   ( )   {  
 	 v a r   d   =   d o c u m e n t ,   w   =   w i n d o w ,   i e b o d y   =   d . c o m p a t M o d e   & &   d . c o m p a t M o d e   ! =   ' B a c k C o m p a t '    
 	 	 ?   d . d o c u m e n t E l e m e n t   :   d . 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 . 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 ;  
 	  
 	 h s . p a g e   =   {  
 	 	 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  
 	 }  
 } ,  
  
 g 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 ,   t y p e )   {  
 	 i f   ( ! a )   a   =   h s . c r e a t e E l e m e n t ( ' a ' ,   n u l l ,   {   d i s p l a y :   ' n o n e '   } ,   h s . c o n t a i n e r ) ;  
 	 i f   ( t y p e o f   a . g e t P a r a m s   = =   ' f u n c t i o n ' )   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 ;   }  
 } ,  
  
  
 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 ,  
 	 	 e x p a n d e r s   =   h s . e x p a n d e r s ,  
 	 	 e x p ,  
 	 	 z I n d e x ;  
 	 f o r   ( v a r   i   =   0 ;   i   <   e x p a n d e r s . l e n g t h ;   i + + )   {  
 	 	 e x p   =   e x p a n d e r s [ i ] ;  
 	 	 i f   ( e x p )   {  
 	 	 	 z I n d e x   =   e x p . w r a p p e r . s t y l e . z I n d e x ;  
 	 	 	 i f   ( z I n d e x   & &   z I n d e x   >   t o p Z )   {  
 	 	 	 	 t o p Z   =   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   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 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 ;  
 	 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 ]   :    
 	 	 ( t y p e o f   h s [ p a r a m ]   ! =   ' u n d e f i n e d '   ?   h s [ p a r a m ]   :   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 . 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 ) ;  
 	 }  
 } ,  
  
 d i s c a r d E l e m e n t   :   f u n c t i o n ( d )   {  
 	 i f   ( d )   h s . g a r b a g e B i n . a p p e n d C h i l d ( d ) ;  
 	 h s . g a r b a g e B i n . i n n e r H T M L   =   ' ' ;  
 } ,  
 t r a n s i t   :   f u n c t i o n   ( a d j ,   e x p )   {  
 	 v a r   l a s t   =   e x p   =   e x p   | |   h s . g e t E x p a n d e r ( ) ;  
 	 i f   ( h s . u p c o m i n g )   r e t u r n   f a l s e ;  
 	 e l s e   h s . l a s t   =   l a s t ;  
 	 t r y   {  
 	 	 h s . u p c o m i n g   =   a d j ;  
 	 	 a d j . o n c l i c k ( ) ;   	 	  
 	 }   c a t c h   ( e ) {  
 	 	 h s . l a s t   =   h s . u p c o m i n g   =   n u l l ;  
 	 }  
 	 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 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 ) ;  
 	 i f   ( e x p )   r e t u r n   h s . t r a n s i t ( e x p . g e t A d j a c e n t A n c h o r ( o p ) ,   e x p ) ;  
 	 e l 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   ( t y p e o f   e . t a r g e t . f o r m   ! =   ' u n d e f i n e d ' )   r e t u r n   t r u e ;   / /   f o r m   e l e m e n t   h a s   f o c u s  
 	 v a r   e x p   =   h s . g e t E x p a n d e r ( ) ;  
 	  
 	 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   7 0 :   / /   f  
 	 	 	 i f   ( e x p )   e x p . d o F u l l E x p a n d ( ) ;  
 	 	 	 r e t u r n   t r u e ;  
 	 	 c a s e   3 2 :   / /   S p a c 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   8 :     / /   B a c k s p a c e  
 	 	 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 ,   w i n d o w . o p e r a   ?   ' k e y p r e s s '   :   ' k e y d o w n ' ,   h s . k e y H a n d l e r ) ;  
 	 	 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 ;  
 	 	  
 	 	 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   ( e x p )   {  
 	 	 	 i f   ( o p   = =   0 )   {  
 	 	 	 	 e x p . c l o s e ( ) ;  
 	 	 	 }   e l s e   {  
 	 	 	 	 h s . p r e v i o u s O r N e x t ( e x p . k e y ,   o p ) ;  
 	 	 	 }  
 	 	 	 r e t u r n   f a 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 ,   h s . e x t e n d ( o v e r l a y ,   {   h s I d :   ' h s I d ' +   h s . i d C o u n t e r + +   }   ) ) ;  
 } ,  
  
  
 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 ,   e x p O n l y )   {  
 	 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   & &   r e . t e s t ( e l . i d ) )   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  
 	 i f   ( ! e x p O n l y )   {  
 	 	 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   ( v a 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 + + )   {  
 	 	 	 	 	 v a r   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 ;  
 	 	 }  
 	 }  
 	 r e t u r n   n u l l ;    
 } ,  
  
 g e t E x p a n d e r   :   f u n c t i o n   ( e l ,   e x p O n l y )   {  
 	 i f   ( t y p e o f   e l   = =   ' u n d e f i n e d ' )   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 ]   | |   n u l l ;  
 	 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 ]   | |   n u l 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 ,   e x p O n l y ) ]   | |   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 / ) ) ;  
 } ,  
  
 r e O r d e r   :   f u n c t i o n   ( )   {  
 	 f o r   ( v a 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 x p . i s C l o s i n g   | |   ! e x p . i s E x p a n d e d ) )   r e t u r n   t r u e ;  
 	 	  
 	 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   t r u e ;  
 	 	 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 . p o s ,   w i d t h :   e x p . x . s i z e ,   t o p :   e x p . y . p o s ,    
 	 	 	 	 h e i g h t :   e x p . y . s i z e ,   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   } ;  
 	 	 	  
 	 	 	  
 	 	 	 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   ( 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 . s t y l e R e s t o r e C u r s o r   & &   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   =   h s . d r a g A r g s . h a s D r a g g e d ;  
 	 	 	  
 	 	 	 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 . d o S h o w H i d e ( ' h i d d e n ' ) ;  
 	 	 	 }  
 	 	 	 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 ; 	 	  
 	 	 }  
 	 }  
 	 r e t u r n   f a l s e ;  
 } ,  
  
 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   t r u e ;  
 	 i f   ( ! e )   e   =   w i n d o w . e v e n t ;  
 	 v a r   a   =   h s . d r a g A r g s ,   e x p   =   a . e x p ;  
 	  
 	 a . d X   =   e . c l i e n t X   -   a . c l i c k X ;  
 	 a . d Y   =   e . c l i e n t Y   -   a . c l i c k Y ; 	  
 	  
 	 v a r   d i s t a n c e   =   M a t h . s q r t ( M a t h . p o w ( a . d X ,   2 )   +   M a t h . p o w ( a . d Y ,   2 ) ) ;  
 	 i f   ( ! a . h a s D r a g g e d )   a . h a s D r a g g e d   =   ( a . t y p e   ! =   ' i m a g e '   & &   d i s t a n c e   >   0 )  
 	 	 | |   ( d i s t a n c e   >   ( h s . d r a g S e n s i t i v i t y   | |   5 ) ) ;  
 	  
 	 i f   ( a . h a s D r a g g e d   & &   e . c l i e n t X   >   5   & &   e . c l i e n t Y   >   5 )   {  
 	 	  
 	 	 i f   ( a . t y p e   = =   ' r e s i z e ' )   e x p . r e s i z e ( a ) ;  
 	 	 e l s e   {  
 	 	 	 e x p . m o v e T o ( a . l e f t   +   a . d X ,   a . t o p   +   a . d Y ) ;  
 	 	 	 i f   ( a . 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 ' ;  
 	 	 }  
 	 }  
 	 r e t u r n   f a l s e ;  
 } ,  
  
 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 )   {  
 	 t r y   {  
 	 	 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   ( h s . i e )   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  
 	 	 v a r   e x p   =   h s . g e t E x p a n d e r ( e . t a r g e t ) ;  
 	 	 i f   ( ! e x p . i s E x p a n d e d )   r e t u r n ;  
 	 	 i f   ( ! e x p   | |   ! e . r e l a t e d T a r g e t   | |   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 r u e )   = =   e x p    
 	 	 	 | |   h s . d r a g A r g s )   r e t u r n ;  
 	 	 f o r   ( v a r   i   =   0 ;   i   <   e x p . o v e r l a y s . l e n g t h ;   i + + )   ( f u n c t i o n ( )   {  
 	 	 	 v a r   o   =   h s . $ ( ' h s I d ' +   e x p . o v e r l a y s [ i ] ) ;  
 	 	 	 i f   ( o   & &   o . h i d e O n M o u s e O u t )   {  
 	 	 	 	 i f   ( o v e r )   h s . s e t S t y l e s ( o ,   {   v i s i b i l i t y :   ' v i s i b l e ' ,   d i s p l a y :   ' '   } ) ;  
 	 	 	 	 h s . a n i m a t e ( o ,   {   o p a c i t y :   o v e r   ?   o . o p a c i t y   :   0   } ,   o . d u r ) ;  
 	 	 	 }  
 	 	 } ) ( ) ; 	  
 	 }   c a t c h   ( 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   ( e l   = =   d o c u m e n t   & &   e v e n t   = =   ' r e a d y ' )   h s . p u s h ( h s . o n R e a d y ,   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 ( )   {    
 	 	 	 i m g   =   n u l l ;  
 	 	 	 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 r   =   h s . g e t A n c h o r s ( ) ;  
 	 f o r   ( v a r   i   =   0 ;   i   <   a r r . i m a g e s . l e n g t h   & &   i   <   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 ;   i + + )   {  
 	 	 h s . p u s h ( h s . p r e l o a d T h e s e I m a g e s ,   h s . g e t S r c ( a r r . i m a g e s [ i ] ) ) ;  
 	 }  
 	  
 	 / /   p r e l o a d   o u t l i n e s  
 	 i f   ( h s . o u t l i n e T y p e ) 	 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 ) }   ) ;  
 	 e l s e  
 	  
 	 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  
 	 i f   ( h s . r e s t o r e 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   } ) ;  
 } ,  
  
  
 i n i t   :   f u n c t i o n   ( )   {  
 	 i f   ( ! h s . c o n t a i n e r )   {  
 	  
 	 	 h s . g e t P a g e S i z e ( ) ;  
 	 	 h s . i e L t 7   =   h s . i e   & &   h s . u a V e r s i o n   <   7 ;  
 	 	 f o r   ( v a r   x   i n   h s . l a n g D e f a u l t s )   {  
 	 	 	 i f   ( t y p e o f   h s [ x ]   ! =   ' u n d e f i n e d ' )   h s . l a n g [ x ]   =   h s [ x ] ;  
 	 	 	 e l s e   i f   ( t y p e o f   h s . l a n g [ x ]   = =   ' u n d e f i n e d '   & &   t y p e o f   h s . l a n g D e f a u l t s [ x ]   ! =   ' u n d e f i n e d ' )    
 	 	 	 	 h s . l a n g [ x ]   =   h s . l a n g D e f a u l t s [ x ] ;  
 	 	 }  
 	 	  
 	 	 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 ' ,   {  
 	 	 	 	 c l a s s N a m e :   ' h i g h s l i d e - c o n t a i n e r '  
 	 	 	 } ,   {  
 	 	 	 	 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 i r e c t i o n :   ' l t 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 a n g . l o a d i n g T i t l e ,  
 	 	 	 	 i n n e r H T M L :   h s . l a n g . l o a d i n g T e x t ,  
 	 	 	 	 h r e f :   ' j a v a s c r i p t : ; '  
 	 	 	 } ,   {  
 	 	 	 	 p o s i t i o n :   ' a b s o l u t e ' ,  
 	 	 	 	 t o p :   ' - 9 9 9 9 p x ' ,  
 	 	 	 	 o p a c i t y :   h s . l o a d i n g O p a c i t y ,  
 	 	 	 	 z I n d e x :   1  
 	 	 	 } ,   h s . c o n t a i n e r  
 	 	 ) ;  
 	 	 h s . g a r b a g e B i n   =   h s . c r e a t e E l e m e n t ( ' d i v ' ,   n u l l ,   {   d i s p l a y :   ' n o n e '   } ,   h s . c o n t a i n e r ) ;  
 	 	  
 	 	 / /   h t t p : / / w w w . r o b e r t p e n n e r . c o m / e a s i n g /    
 	 	 M a t h . l i n e a r T w e e n   =   f u n c t i o n   ( t ,   b ,   c ,   d )   {  
 	 	 	 r e t u r n   c * t / d   +   b ;  
 	 	 } ;  
 	 	 M a t h . e a s e I n Q u a d   =   f u n c t i o n   ( t ,   b ,   c ,   d )   {  
 	 	 	 r e t u r n   c * ( t / = d ) * t   +   b ;  
 	 	 } ;  
 	 	  
 	 	 h s . h i d e S e l e c t s   =   h s . i e L t 7 ;  
 	 	 h s . h i d e I f r a m e s   =   ( ( w i n d o w . o p e r a   & &   h s . u a 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 . u a V e r s i o n   <   5 . 5 ) ) ;  
 	 }  
 } ,  
 r e a d y   :   f u n c t i o n ( )   {  
 	 i f   ( h s . i s R e a d y )   r e t u r n ;  
 	 h s . i s R e a d y   =   t r u e ;  
 	  
 	 f o r   ( v a r   i   =   0 ;   i   <   h s . o n R e a d y . l e n g t h ;   i + + )   h s . o n R e a d y [ i ] ( ) ;  
 } ,  
  
 u p d a t e A n c h o r s   :   f u n c t i o n ( )   {  
 	 v a r   e l ,   e l s ,   a l l   =   [ ] ,   i m a g e s   =   [ ] , g r o u p s   =   { } ,   r e ;  
 	 	  
 	 f o r   ( v a r   i   =   0 ;   i   <   h s . o p e n e r T a g N a m e s . l e n g t h ;   i + + )   {  
 	 	 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 ( h s . o p e n e r T a g N a m e s [ i ] ) ;  
 	 	 f o r   ( v a r   j   =   0 ;   j   <   e l s . l e n g t h ;   j + + )   {  
 	 	 	 e l   =   e l s [ j ] ;  
 	 	 	 r e   =   h s . i s H s A n c h o r ( e l ) ;  
 	 	 	 i f   ( r e )   {  
 	 	 	 	 h s . p u s h ( a l l ,   e l ) ;  
 	 	 	 	 i f   ( r e [ 0 ]   = =   ' h s . e x p a n d ' )   h s . p u s h ( i m a g e s ,   e l ) ;  
 	 	 	 	 v a r   g   =   h s . g e t P a r a m ( e l ,   ' s l i d e s h o w G r o u p ' )   | |   ' n o n e ' ;  
 	 	 	 	 i f   ( ! g r o u p s [ g ] )   g r o u p s [ g ]   =   [ ] ;  
 	 	 	 	 h s . p u s h ( g r o u p s [ g ] ,   e l ) ;  
 	 	 	 }  
 	 	 }  
 	 }  
 	 h s . a n c h o r s   =   {   a l l :   a l l ,   g r o u p s :   g r o u p s ,   i m a g e s :   i m a g e s   } ;  
 	 r e t u r n   h s . a n c h o r s ;  
 	  
 } ,  
  
 g e t A n c h o r s   :   f u n c t i o n ( )   {  
 	 r e t u r n   h s . a n c h o r s   | |   h s . u p d a t e A n c h o r s ( ) ;  
 } ,  
  
  
 c l o s e   :   f u n c t i o n ( e l )   {  
 	 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 x p . c l o s 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 . f x   =   f u n c t i o n (   e l e m ,   o p t i o n s ,   p r o p   ) {  
 	 t h i s . o p t i o n s   =   o p t i o n s ;  
 	 t h i s . e l e m   =   e l e m ;  
 	 t h i s . p r o p   =   p r o p ;  
  
 	 i f   ( ! o p t i o n s . o r i g )   o p t i o n s . o r i g   =   { } ;  
 } ;  
 h s . f x . p r o t o t y p e   =   {  
 	 u p d a t e :   f u n c t i o n ( ) {  
 	 	 ( h s . f x . s t e p [ t h i s . p r o p ]   | |   h s . f x . s t e p . _ d e f a u l t ) ( t h i s ) ;  
 	 	  
 	 	 i f   ( t h i s . o p t i o n s . s t e p )  
 	 	 	 t h i s . o p t i o n s . s t e p . c a l l ( t h i s . e l e m ,   t h i s . n o w ,   t h i s ) ;  
  
 	 } ,  
 	 c u s t o m :   f u n c t i o n ( f r o m ,   t o ,   u n i t ) {  
 	 	 t h i s . s t a r t T i m e   =   ( n e w   D a t e ( ) ) . g e t T i m e ( ) ;  
 	 	 t h i s . s t a r t   =   f r o m ;  
 	 	 t h i s . e n d   =   t o ;  
 	 	 t h i s . u n i t   =   u n i t ; / /   | |   t h i s . u n i t   | |   " p x " ;  
 	 	 t h i s . n o w   =   t h i s . s t a r t ;  
 	 	 t h i s . p o s   =   t h i s . s t a t e   =   0 ;  
  
 	 	 v a r   s e l f   =   t h i s ;  
 	 	 f u n c t i o n   t ( g o t o E n d ) {  
 	 	 	 r e t u r n   s e l f . s t e p ( g o t o E n d ) ;  
 	 	 }  
  
 	 	 t . e l e m   =   t h i s . e l e m ;  
  
 	 	 i f   (   t ( )   & &   h s . t i m e r s . p u s h ( t )   = =   1   )   {  
 	 	 	 h s . t i m e r I d   =   s e t I n t e r v a l ( f u n c t i o n ( ) {  
 	 	 	 	 v a r   t i m e r s   =   h s . t i m e r s ;  
  
 	 	 	 	 f o r   (   v a r   i   =   0 ;   i   <   t i m e r s . l e n g t h ;   i + +   )  
 	 	 	 	 	 i f   (   ! t i m e r s [ i ] ( )   )  
 	 	 	 	 	 	 t i m e r s . s p l i c e ( i - - ,   1 ) ;  
  
 	 	 	 	 i f   (   ! t i m e r s . l e n g t h   )   {  
 	 	 	 	 	 c l e a r I n t e r v a l ( h s . t i m e r I d ) ;  
 	 	 	 	 }  
 	 	 	 } ,   1 3 ) ;  
 	 	 }  
 	 } ,  
 	 s t e p :   f u n c t i o n ( g o t o E n d ) {  
 	 	 v a r   t   =   ( n e w   D a t e ( ) ) . g e t T i m e ( ) ;  
 	 	 i f   (   g o t o E n d   | |   t   > =   t h i s . o p t i o n s . d u r a t i o n   +   t h i s . s t a r t T i m e   )   {  
 	 	 	 t h i s . n o w   =   t h i s . e n d ;  
 	 	 	 t h i s . p o s   =   t h i s . s t a t e   =   1 ;  
 	 	 	 t h i s . u p d a t e ( ) ;  
  
 	 	 	 t h i s . o p t i o n s . c u r A n i m [   t h i s . p r o p   ]   =   t r u e ;  
  
 	 	 	 v a r   d o n e   =   t r u e ;  
 	 	 	 f o r   (   v a r   i   i n   t h i s . o p t i o n s . c u r A n i m   )  
 	 	 	 	 i f   (   t h i s . o p t i o n s . c u r A n i m [ i ]   ! = =   t r u e   )  
 	 	 	 	 	 d o n e   =   f a l s e ;  
  
 	 	 	 i f   (   d o n e   )   {  
 	 	 	 	 i f   ( t h i s . o p t i o n s . c o m p l e t e )   t h i s . o p t i o n s . c o m p l e t e . c a l l ( t h i s . e l e m ) ;  
 	 	 	 }  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }   e l s e   {  
 	 	 	 v a r   n   =   t   -   t h i s . s t a r t T i m e ;  
 	 	 	 t h i s . s t a t e   =   n   /   t h i s . o p t i o n s . d u r a t i o n ;  
 	 	 	 t h i s . p o s   =   t h i s . o p t i o n s . e a s i n g ( n ,   0 ,   1 ,   t h i s . o p t i o n s . d u r a t i o n ) ;  
 	 	 	 t h i s . n o w   =   t h i s . s t a r t   +   ( ( t h i s . e n d   -   t h i s . s t a r t )   *   t h i s . p o s ) ;  
 	 	 	 t h i s . u p d a t e ( ) ;  
 	 	 }  
 	 	 r e t u r n   t r u e ;  
 	 }  
  
 } ;  
  
 h s . e x t e n d (   h s . f x ,   {  
 	 s t e p :   {  
  
 	 	 o p a c i t y :   f u n c t i o n ( f x ) {  
 	 	 	 h s . s e t S t y l e s ( f x . e l e m ,   {   o p a c i t y :   f x . n o w   } ) ;  
 	 	 } ,  
  
 	 	 _ d e f a u l t :   f u n c t i o n ( f x ) {  
 	 	 	 t r y   {  
 	 	 	 	 i f   (   f x . e l e m . s t y l e   & &   f x . e l e m . s t y l e [   f x . p r o p   ]   ! =   n u l l   )  
 	 	 	 	 	 f x . e l e m . s t y l e [   f x . p r o p   ]   =   f x . n o w   +   f x . u n i t ;  
 	 	 	 	 e l s e  
 	 	 	 	 	 f x . e l e m [   f x . p r o p   ]   =   f x . n o w ;  
 	 	 	 }   c a t c h   ( e )   { }  
 	 	 }  
 	 }  
 } ) ;  
  
 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 . u a 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 . i n i t ( ) ;  
 	 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 ' ,  
 	 	 	 w i d t h :   0  
 	 	 } ,  
 	 	 h s . c o n t a i n e r ,  
 	 	 t r u e  
 	 ) ;  
 	 v a r   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 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   + '   h i g h s l i d e - o u t l i n 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   +   ( h s . o u t l i n e 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 ' ,    
 	 	 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 ) ;  
 	 	 }  
 	 }  
 	 t h i s . g r a p h i c   =   n u l l ;  
 	 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 ] )   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 ] . d e s t r o y ( ) ;  
 	 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   ( p o s ,   o f f s e t ,   v i s ,   d u r ,   e a s i n g )   {  
 	 v a r   e x p   =   t h i s . e x p ,  
 	 	 s t l   =   e x p . w r a p p e r . s t y l e ,  
 	 	 o f f s e t   =   o f f s e t   | |   0 ,  
 	 	 p o s   =   p o s   | |   {  
 	 	 	 x :   e x p . x . p o s   +   o f f s e t ,  
 	 	 	 y :   e x p . y . p o s   +   o f f s e t ,  
 	 	 	 w :   e x p . x . g e t ( ' w s i z e ' )   -   2   *   o f f s e t ,  
 	 	 	 h :   e x p . y . g e t ( ' w s i z e ' )   -   2   *   o f f s e t  
 	 	 } ;  
 	 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   =   ( p o s . 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 ' ;  
 	 h s . s e t S t y l e s ( t h i s . t a b l e ,   {  
 	 	 l e f t :   ( p o s . x   -   t h i s . o f f s e t )   + ' p x ' ,  
 	 	 t o p :   ( p o s . y   -   t h i s . o f f s e t )   + ' p x ' ,  
 	 	 w i d t h :   ( p o s . w   +   2   *   t h i s . o f f s e t )   + ' p x '  
 	 } ) ;  
 	  
 	 p o s . w   - =   2   *   t h i s . o f f s e t ;  
 	 p o s . h   - =   2   *   t h i s . o f f s e t ;  
 	 h s . s e t S t y l e s   ( t h i s . t d [ 4 ] ,   {  
 	 	 w i d t h :   p o s . w   > =   0   ?   p o s . w   + ' p x '   :   0 ,  
 	 	 h e i g h t :   p o s . h   > =   0   ?   p o s . 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 . d i s c a r d E l e m e n t ( t h i s . t a b l e ) ;  
 }  
 } ;  
  
 h s . D i m e n s i o n   =   f u n c t i o n ( e x p ,   d i m )   {  
 	 t h i s . e x p   =   e x p ;  
 	 t h i s . d i m   =   d i m ;  
 	 t h i s . u c w h   =   d i m   = =   ' x '   ?   ' W i d t h '   :   ' H e i g h t ' ;  
 	 t h i s . w h   =   t h i s . u c w h . t o L o w e r C a s e ( ) ;  
 	 t h i s . u c l t   =   d i m   = =   ' x '   ?   ' L e f t '   :   ' T o p ' ;  
 	 t h i s . l t   =   t h i s . u c l t . t o L o w e r C a s e ( ) ;  
 	 t h i s . u c r b   =   d i m   = =   ' x '   ?   ' R i g h t '   :   ' B o t t o m ' ;  
 	 t h i s . r b   =   t h i s . u c r b . t o L o w e r C a s e ( ) ;  
 	 t h i s . p 1   =   t h i s . p 2   =   0 ;  
 } ;  
 h s . D i m e n s i o n . p r o t o t y p e   =   {  
 g e t   :   f u n c t i o n ( k e y )   {  
 	 s w i t c h   ( k e y )   {  
 	 	 c a s e   ' l o a d i n g P o s ' :  
 	 	 	 r e t u r n   t h i s . t p o s   +   t h i s . t b   +   ( t h i s . t   -   h s . l o a d i n g [ ' o f f s e t ' +   t h i s . u c w h ] )   /   2 ;  
 	 	 c a s e   ' w s i z e ' :  
 	 	 	 r e t u r n   t h i s . s i z e   +   2   *   t h i s . c b   +   t h i s . p 1   +   t h i s . p 2 ;  
 	 	 c a s e   ' f i t s i z e ' :  
 	 	 	 r e t u r n   t h i s . c l i e n t S i z e   -   t h i s . m a r g i n M i n   -   t h i s . m a r g i n M a x ;  
 	 	 c a s e   ' m a x s i z e ' :  
 	 	 	 r e t u r n   t h i s . g e t ( ' f i t s i z e ' )   -   2   *   t h i s . c b   -   t h i s . p 1   -   t h i s . p 2   ;  
 	 	 c a s e   ' o p o s ' :  
 	 	 	 r e t u r n   t h i s . p o s   -   ( t h i s . e x p . o u t l i n e   ?   t h i s . e x p . o u t l i n e . o f f s e t   :   0 ) ;  
 	 	 c a s e   ' o s i z e ' :  
 	 	 	 r e t u r n   t h i s . g e t ( ' w s i z e ' )   +   ( t h i s . e x p . o u t l i n e   ?   2 * t h i s . e x p . o u t l i n e . o f f s e t   :   0 ) ;  
 	 	 c a s e   ' i m g P a d ' :  
 	 	 	 r e t u r n   t h i s . i m g S i z e   ?   M a t h . r o u n d ( ( t h i s . s i z e   -   t h i s . i m g S i z e )   /   2 )   :   0 ;  
 	 	  
 	 }  
 } ,  
 c a l c B o r d e r s :   f u n c t i o n ( )   {  
 	 / /   c o r r e c t   f o r   b o r d e r s  
 	 t h i s . c b   =   ( t h i s . e x p . c o n t e n t [ ' o f f s e t ' +   t h i s . u c w h ]   -   t h i s . t )   /   2 ;  
 	  
 	 t h i s . m a r g i n M a x   =   h s [ ' m a r g i n ' +   t h i s . u c r b ] ;  
 } ,  
 c a l c T h u m b :   f u n c t i o n ( )   {  
 	 t h i s . t   =   t h i s . e x p . e l [ t h i s . w h ]   ?   p a r s e I n t ( t h i s . e x p . e l [ t h i s . w h ] )   :    
 	 	 t h i s . e x p . e l [ ' o f f s e t ' +   t h i s . u c w h ] ;  
 	 t h i s . t p o s   =   t h i s . e x p . t p o s [ t h i s . d i m ] ;  
 	 t h i s . t b   =   ( t h i s . e x p . e l [ ' o f f s e t ' +   t h i s . u c w h ]   -   t h i s . t )   /   2 ;  
 	 i f   ( t h i s . t p o s   = =   0   | |   t h i s . t p o s   = =   - 1 )   {  
 	 	 t h i s . t p o s   =   ( h s . p a g e [ t h i s . w h ]   /   2 )   +   h s . p a g e [ ' s c r o l l ' +   t h i s . u c l t ] ; 	 	  
 	 } ;  
 } ,  
 c a l c E x p a n d e d :   f u n c t i o n ( )   {  
 	 v a r   e x p   =   t h i s . e x p ;  
 	 t h i s . j u s t i f y   =   ' a u t o ' ;  
 	  
 	  
 	 / /   s i z e   a n d   p o s i t i o n  
 	 t h i s . p o s   =   t h i s . t p o s   -   t h i s . c b   +   t h i s . t b ;  
 	  
 	 i f   ( t h i s . d i m   = =   ' x ' )  
 	 	 e x p . m a x W i d t h   =   M a t h . m i n ( e x p . m a x W i d t h   | |   t h i s . f u l l ,   e x p . m a x H e i g h t   *   t h i s . f u l l   /   e x p . y . f u l l ) ;    
 	 	  
 	 t h i s . s i z e   =   M a t h . m i n ( t h i s . f u l l ,   e x p [ ' m a x ' +   t h i s . u c w h ]   | |   t h i s . f u l l ) ;  
 	 t h i s . m i n S i z e   =   e x p . a l l o w S i z e R e d u c t i o n   ?    
 	 	 M a t h . m i n ( e x p [ ' m i n ' +   t h i s . u c w h ] ,   t h i s . f u l l )   : t h i s . f u l l ;  
 	 i f   ( e x p . i s I m a g e   & &   e x p . u s e B o x ) 	 {  
 	 	 t h i s . s i z e   =   e x p [ t h i s . w h ] ;  
 	 	 t h i s . i m g S i z e   =   t h i s . f u l l ;  
 	 }  
 	 i f   ( t h i s . d i m   = =   ' x '   & &   h s . p a d T o M i n W i d t h )   t h i s . m i n S i z e   =   e x p . m i n W i d t h ;  
 	 t h i s . m a r g i n M i n   =   h s [ ' m a r g i n ' +   t h i s . u c l t ] ;  
 	 t h i s . s c r o l l   =   h s . p a g e [ ' s c r o l l ' +   t h i s . u c l t ] ;  
 	 t h i s . c l i e n t S i z e   =   h s . p a g e [ t h i s . w h ] ;  
 } ,  
 s e t S i z e :   f u n c t i o n ( i )   {  
 	 v a r   e x p   =   t h i s . e x p ;  
 	 i f   ( e x p . i s I m a g e   & &   ( e x p . u s e B o x   | |   h s . p a d T o M i n W i d t h ) )   {  
 	 	 t h i s . i m g S i z e   =   i ;  
 	 	 t h i s . s i z e   =   M a t h . m a x ( t h i s . s i z e ,   t h i s . i m g S i z e ) ;  
 	 	 e x p . c o n t e n t . s t y l e [ t h i s . l t ]   =   t h i s . g e t ( ' i m g P a d ' ) + ' p x ' ;  
 	 }   e l s e  
 	 t h i s . s i z e   =   i ;  
  
 	 e x p . c o n t e n t . s t y l e [ t h i s . w h ]   =   i   + ' p x ' ;  
 	 e x p . w r a p p e r . s t y l e [ t h i s . w h ]   =   t h i s . g e t ( ' w s i z e ' )   + ' p x ' ;  
 	 i f   ( e x p . o u t l i n e )   e x p . o u t l i n e . s e t P o s i t i o n ( ) ;  
 	 i f   ( t h i s . d i m   = =   ' x '   & &   e x p . o v e r l a y B o x )   e x p . s i z e O v e r l a y B o x ( t r u e ) ;  
 } ,  
 s e t P o s :   f u n c t i o n ( i )   {  
 	 t h i s . p o s   =   i ;  
 	 t h i s . e x p . w r a p p e r . s t y l e [ t h i s . l t ]   =   i   + ' p x ' ; 	  
 	  
 	 i f   ( t h i s . e x p . o u t l i n e )   t h i s . e x p . o u t l i n e . s e t P o s i t i o n ( ) ;  
 	  
 }  
 } ;  
  
 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 )   {  
 	 i f   ( d o c u m e n t . r e a d y S t a t e   & &   h s . i e   & &   ! h s . i s R e a d 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 ,   ' r e a d y ' ,   f u n c t i o n ( )   {  
 	 	 	 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 ,   c o n t e n t T y p e ) ;  
 	 	 } ) ;  
 	 	 r e t u r n ;  
 	 }    
 	 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 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 ;  
 	 t h i s . o v e r l a y s   =   [ ] ;  
 	 h s . i n i t ( ) ;  
 	 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   ( v a 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 ] ;  
 	 }  
 	 i f   ( ! t h i s . s r c )   t h i s . s r c   =   a . h r e f ;  
 	  
 	 / /   g e t   t h u m b  
 	 v a r   e l   =   ( p a r a m s   & &   p a r a m s . t h u m b n a i l I d )   ?   h s . $ ( p a r a m s . t h u m b n a i l I d )   :   a ;  
 	 e l   =   t h i s . t h u m b   =   e l . g e t E l e m e n t s B y T a g N a m e ( ' i m g ' ) [ 0 ]   | |   e l ;  
 	 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   ( v a 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  
 	 i f   ( ! h s . a l l o w S i m u l t a n e o u s L o a d i n g )   f o r   ( v a 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 [ 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 . u p c o m i n g )   {  
 	 	 i f   ( h s . e x p a n d e r s [ k e y - 1 ] )   h s . e x p a n d e r s [ k e y - 1 ] . c l o s e ( ) ;  
 	 	 i f   ( t y p e o f   h s . f o c u s K e y   ! =   ' u n d e f i n e d '   & &   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 ] . c l o s e ( ) ;  
 	 }  
 	  
 	 / /   i n i t i a t e   m e t r i c s  
 	 t h i s . e l   =   e l ;  
 	 t h i s . t p o s   =   h s . g e t P o s i t i o n ( e l ) ;  
 	 h s . g e t P a g e S i z e ( ) ;  
 	 v a r   x   =   t h i s . x   =   n e w   h s . D i m e n s i o n ( t h i s ,   ' x ' ) ;  
 	 x . c a l c T h u m b ( ) ;  
 	 v a r   y   =   t h i s . y   =   n e w   h s . D i m e n s i o n ( t h i s ,   ' y ' ) ;  
 	 y . c a l c T h u m b ( ) ;  
 	 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 :   ' h i g h s l i d e - w r a p p e r   ' +   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   + =   2  
 	 	 } ,   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   =   t h i s . w r a p p e r . o n m o u s e o u t   =   h s . w r a p p e r M o u s e H a n d l e r ;  
 	 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   ( ! 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   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   {  
 	 	 t h i s . s h o w 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 ' ] ( ) ;  
 	 	 	 }    
 	 	 ) ;  
 	 }  
 	 r e t u r n   t r u e ;  
 } ;  
  
 h s . E x p a n d e r . p r o t o t y p e   =   {  
 e r r o r   :   f u n c t i o n ( e )   {  
 	 / /   a l e r t   ( ' L i n e   ' +   e . l i n e N u m b e r   + ' :   ' +   e . m e s s a g e ) ;  
 	 w i n d o w . l o c a t i o n . h r e f   =   t h i s . s r c ;  
 } ,  
  
 c o n n e c t O u t l i n e   :   f u n c t i o n ( )   {  
 	 v a r   o u t l i n e   =   t h i s . o u t l i n e   =   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 ] ;  
 	 o u t l i n e . e x p   =   t h i s ;  
 	 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   -   1 ;  
 	 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 ;  
 } ,  
  
 s h o w 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 . l o a d i n g   =   h s . l o a d i n g ;  
 	 v a r   e x p   =   t h i s ;  
 	 t h i s . l o a d i n g . o n c l i c k   =   f u n c t i o n ( )   {  
 	 	 e x p . c a n c e l L o a d i n g ( ) ;  
 	 } ;  
 	 v a r   e x p   =   t h i s ,    
 	 	 l   =   t h i s . x . g e t ( ' l o a d i n g P o s ' )   + ' p x ' ,  
 	 	 t   =   t h i s . y . g e t ( ' l o a d i n g P o s ' )   + ' 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 )   h s . s e t S t y l e s ( e x p . l o a d i n g ,   {   l e f t :   l ,   t o p :   t ,   z I n d e x :   h s . z I n d e x C o u n t e r + +   } ) }  
 	 ,   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   ( )   {  
         	 i f   ( h s . e x p a n d e r s [ e x p . k e y ] )   e x p . c o n t e n t L o a d e d ( ) ;    
 	 } ;  
         i f   ( h s . b l o c k R i g h t C l i c k )   i m g . o n c o n t e x t m e n u   =   f u n c t i o n ( )   {   r e t u r n   f a l s 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 ' ;  
         h s . s e t S t y l e s ( i m g ,   {  
         	 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 o s i t i o n :   ' a b s o l u t e ' ,  
 	 	 m a x W i d t h :   ' 9 9 9 9 p x ' ,  
 	 	 z I n d e x :   3  
 	 } ) ;  
         i m g . t i t l e   =   h s . l a n g . 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 ) ;  
         i f   ( h s . i e   & &   h s . f l u s h I m g S i z e )   i m g . s r c   =   n u l l ;  
 	 i m g . s r c   =   t h i s . s r c ;  
 	  
 	 t h i s . s h o w L o a d i n g ( ) ;  
 } ,  
  
 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 ;  
 	 	 t h i s . c o n t e n t . o n l o a d   =   n u l l ;  
 	 	 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 ;  
 	 	 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 ;  
 	 	  
 	 	 v a r   x   =   t h i s . x ,   y   =   t h i s . y ;  
 	 	  
 	 	 i f   ( t h i s . l o a d i n g )   {  
 	 	 	 h s . s e t S t y l e s ( t h i s . l o a d i n g ,   {   t o p :   ' - 9 9 9 9 p x '   } ) ;  
 	 	 	 t h i s . l o a d i n g   =   n u l l ;  
 	 	 } 	  
 	 	 	 x . f u l l   =   t h i s . c o n t e n t . w i d t h ;  
 	 	 	 y . f u l l   =   t h i s . c o n t e n t . h e i g h t ;  
 	 	 	  
 	 	 	 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 :   x . t   + ' p x ' ,  
 	 	 	 	 h e i g h t :   y . t   + ' p x '  
 	 	 	 } ) ;  
 	 	 	 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 ) ;  
 	 	 	 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 ) ;  
 	 	  
 	 	 x . c a l c B o r d e r s ( ) ;  
 	 	 y . c a l c B o r d e r s ( ) ;  
 	 	  
 	 	 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 :   ( x . t p o s   +   x . t b   -   x . c b )   + ' p x ' ,  
 	 	 	 t o p :   ( y . t p o s   +   x . t b   -   y . c b )   + ' p x '  
 	 	 } ) ;  
 	 	 t h i s . g e t O v e r l a y s ( ) ;  
 	 	  
 	 	 v a r   r a t i o   =   x . f u l l   /   y . f u l l ;  
 	 	 x . c a l c E x p a n d e d ( ) ;  
 	 	 t h i s . j u s t i f y ( x ) ;  
 	 	  
 	 	 y . c a l c E x p a n d e d ( ) ;  
 	 	 t h i s . j u s t i f y ( y ) ;  
 	 	 i f   ( t h i s . o v e r l a y B o x )   t h i s . s i z e O v e r l a y B o x ( 0 ,   1 ) ;  
 	 	  
 	 	 i f   ( 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 . c o r r e c t R a t i o ( r a t i o ) ;  
 	 	 	 i f   ( t h i s . i s I m a g e   & &   t h i s . x . f u l l   >   ( t h i s . x . i m g S i z e   | |   t h i s . x . s i z e ) )   {  
 	 	 	 	 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 . o v e r l a y s . l e n g t h   = =   1 )   t h i s . s i z e O v e r l a y B o x ( ) ;  
 	 	 	 }  
 	 	 }  
 	 	 t h i s . s h o w ( ) ;  
 	 	  
 	 }   c a t c h   ( e )   {  
 	 	 t h i s . e r r o r ( e ) ;  
 	 }  
 } ,  
  
 j u s t i f y   :   f u n c t i o n   ( p ,   m o v e O n l y )   {  
 	 v a r   t g t A r r ,   t g t   =   p . t a r g e 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   =   p . e x p . a l l o w S i z e R e d u c t i o n ;  
 	 	 	 p . p o s   =   M a t h . r o u n d ( p . p o s   -   ( ( p . g e t ( ' w s i z e ' )   -   p . t )   /   2 ) ) ;  
 	 	 i f   ( p . p o s   <   p . s c r o l l   +   p . m a r g i n M i n )   {  
 	 	 	 p . p o s   =   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   ( ! m o v e O n l y   & &   p . s i z e   <   p . m i n S i z e )   {  
 	 	 	 p . s i z e   =   p . m i n S i z e ;  
 	 	 	 a l l o w R e d u c e   =   f a l s e ;  
 	 	 }  
 	 	 i f   ( p . p o s   +   p . g e t ( ' w s i z e ' )   >   p . s c r o l l   +   p . c l i e n t S i z e   -   p . m a r g i n M a x )   {  
 	 	 	 i f   ( ! m o v e O n l y   & &   h a s M o v e d M i n   & &   a l l o w R e d u c e )   {  
 	 	 	 	 p . s i z e   =   M a t h . m i n ( p . s i z e ,   p . g e t ( d i m   = =   ' y '   ?   ' f i t s i z e '   :   ' m a x s i z e ' ) ) ;  
 	 	 	 }   e l s e   i f   ( p . g e t ( ' w s i z e ' )   <   p . g e t ( ' f i t s i z e ' ) )   {  
 	 	 	 	 p . p o s   =   p . s c r o l l   +   p . c l i e n t S i z e   -   p . m a r g i n M a x   -   p . g e t ( ' w s i z e ' ) ;  
 	 	 	 }   e l s e   {   / /   i m a g e   l a r g e r   t h a n   v i e w p o r t  
 	 	 	 	 p . p o s   =   p . s c r o l l   +   p . m a r g i n M i n ;  
 	 	 	 	 i f   ( ! m o v e O n l y   & &   a l l o w R e d u c e )   p . s i z e   =   p . g e t ( d i m   = =   ' y '   ?   ' f i t s i z e '   :   ' m a x s i z e ' ) ;  
 	 	 	 } 	 	 	  
 	 	 }  
 	 	  
 	 	 i f   ( ! m o v e O n l y   & &   p . s i z e   <   p . m i n S i z e )   {  
 	 	 	 p . s i z e   =   p . m i n S i z e ;  
 	 	 	 a l l o w R e d u c e   =   f a l s e ;  
 	 	 }  
 	 	  
 	  
 	 	  
 	 i f   ( p . p o s   <   p . m a r g i n M i n )   {  
 	 	 v a r   t m p M i n   =   p . p o s ;  
 	 	 p . p o s   =   p . m a r g i n M i n ;    
 	 	  
 	 	 i f   ( a l l o w R e d u c e   & &   ! m o v e O n l y )   p . s i z e   =   p . s i z e   -   ( p . p o s   -   t m p M i n ) ;  
 	 	  
 	 }  
 } ,  
  
 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 ,    
 	 	 y   =   t h i s . y ,  
 	 	 c h a n g e d   =   f a l s e ,  
 	 	 x S i z e   =   M a t h . m i n ( x . f u l l ,   x . s i z e ) ,  
 	 	 y S i z e   =   M a t h . m i n ( y . f u l l ,   y . s i z e ) ,  
 	 	 u s e B o x   =   ( t h i s . u s e B o x   | |   h s . p a d T o M i n W i d t h ) ;  
 	  
 	 i f   ( x S i z e   /   y S i z e   >   r a t i o )   {   / /   w i d t h   g r e a t e r  
 	 	 x S i z e   =   y S i z e   *   r a t i o ;  
 	 	 i f   ( x S i z e   <   x . m i n S i z e )   {   / /   b e l o w   m i n W i d t h  
 	 	 	 x S i z e   =   x . m i n S i z e ;  
 	 	 	 y S i z e   =   x S i z e   /   r a t i o ;  
 	 	 }  
 	 	 c h a n g e d   =   t r u e ;  
 	  
 	 }   e l s e   i f   ( x S i z e   /   y S i z e   <   r a t i o )   {   / /   h e i g h t   g r e a t e r  
 	 	 y S i z e   =   x S i z e   /   r a t i o ;  
 	 	 c h a n g e d   =   t r u e ;  
 	 }  
 	  
 	 i f   ( h s . p a d T o M i n W i d t h   & &   x . f u l l   <   x . m i n S i z e )   {  
 	 	 x . i m g S i z e   =   x . f u l l ;  
 	 	 y . s i z e   =   y . i m g S i z e   =   y . f u l l ;  
 	 }   e l s e   i f   ( t h i s . u s e B o x )   {  
 	 	 x . i m g S i z e   =   x S i z e ;  
 	 	 y . i m g S i z e   =   y S i z e ;  
 	 }   e l s e   {  
 	 	 x . s i z e   =   x S i z e ;  
 	 	 y . s i z e   =   y S i z e ;  
 	 }  
 	 c h a n g e d   =   t h i s . f i t O v e r l a y B o x ( u s e B o x   ?   n u l l   :   r a t i o ,   c h a n g e d ) ;  
 	 i f   ( u s e B o x   & &   y . s i z e   <   y . i m g S i z e )   {  
 	 	 y . i m g S i z e   =   y . s i z e ;  
 	 	 x . i m g S i z e   =   y . s i z e   *   r a t i o ;  
 	 }  
 	 i f   ( c h a n g e d   | |   u s e B o x )   {  
 	 	 x . p o s   =   x . t p o s   -   x . c b   +   x . t b ;  
 	 	 x . m i n S i z e   =   x . s i z e ;  
 	 	 t h i s . j u s t i f y ( x ,   t r u e ) ;  
 	  
 	 	 y . p o s   =   y . t p o s   -   y . c b   +   y . t b ;  
 	 	 y . m i n S i z e   =   y . s i z e ;  
 	 	 t h i s . j u s t i f y ( y ,   t r u e ) ;  
 	 	 i f   ( t h i s . o v e r l a y B o x )   t h i s . s i z e O v e r l a y B o x ( ) ;  
 	 }  
 } ,  
 f i t O v e r l a y B o x   :   f u n c t i o n ( r a t i o ,   c h a n g e d )   {  
 	 v a r   x   =   t h i s . x ,   y   =   t h i s . y ;  
 	 i f   ( t h i s . o v e r l a y B o x )   {  
 	 	 w h i l e   ( y . s i z e   >   t h i s . m i n H e i g h t   & &   x . s i z e   >   t h i s . m i n W i d t h    
 	 	 	 	 & &     y . g e t ( ' w s i z e ' )   >   y . g e t ( ' f i t s i z e ' ) )   {  
 	 	 	 y . s i z e   - =   1 0 ;  
 	 	 	 i f   ( r a t i o )   x . s i z e   =   y . s i z e   *   r a t i o ;  
 	 	 	 t h i s . s i z e O v e r l a y B o x ( 0 ,   1 ) ;  
 	 	 	 c h a n g e d   =   t r u e ;  
 	 	 }  
 	 }  
 	 r e t u r n   c h a n g e d ;  
 } ,  
  
 s h o w   :   f u n c t i o n   ( )   {  
 	 v a r   x   =   t h i s . x ,   y   =   t h i s . y ;  
 	 t h i s . d o S h o w H i d e ( ' h i d d e n ' ) ;  
 	  
 	 / /   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 ,   {  
 	 	 	 w r a p p e r :   {  
 	 	 	 	 w i d t h   :   x . g e t ( ' w s i z e ' ) ,  
 	 	 	 	 h e i g h t   :   y . g e t ( ' w s i z e ' ) ,  
 	 	 	 	 l e f t :   x . p o s ,  
 	 	 	 	 t o p :   y . p o s  
 	 	 	 } ,  
 	 	 	 c o n t e n t :   {  
 	 	 	 	 l e f t :   x . p 1   +   x . g e t ( ' i m g P a d ' ) ,  
 	 	 	 	 t o p :   y . p 1   +   y . g e t ( ' i m g P a d ' ) ,  
 	 	 	 	 w i d t h : x . i m g S i z e   | | x . s i z e ,  
 	 	 	 	 h e i g h t : y . i m g S i z e   | | y . s i z e  
 	 	 	 }  
 	 	 } ,  
 	 	 h s . e x p a n d D u r a t i o n  
 	 ) ;  
 } ,  
  
 c h a n g e S i z e   :   f u n c t i o n ( u p ,   t o ,   d u r )   {  
 	  
 	 i f   ( t h i s . 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 )   {  
 	 	 i f   ( u p )   t h i s . o u t l i n e . s e t P o s i t i o n ( ) ;  
 	 	 e l s e   t h i s . o u t l i n e . d e s t r o y ( ) ;  
 	 }  
 	  
 	  
 	 i f   ( ! u p )   t h i s . d e s t r o y O v e r l a y s ( ) ;  
 	  
 	 v a r   e x p   =   t h i s ,  
 	 	 x   =   e x p . x ,  
 	 	 y   =   e x p . y ,  
 	 	 e a s i n g   =   t h i s . e a s i n g ;  
 	 i f   ( ! u p )   e a s i n g   =   t h i s . e a s i n g C l o s e   | |   e a s i n g ;  
 	 v a r   a f t e r   =   u p   ?  
 	 	 f u n c t i o n ( )   {  
 	 	 	 	  
 	 	 	 i f   ( e x p . o u t l i n e )   e x p . 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 " ;  
 	 	 	 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 E x p a n d ( ) ;  
 	 	 	 } ,   5 0 ) ;  
 	 	 }   :  
 	 	 f u n c t i o n ( )   {  
 	 	 	 e x p . a f t e r C l o s e ( ) ;  
 	 	 } ;  
 	 i f   ( u p )   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 :   x . t   + ' p x ' ,  
 	 	 h e i g h t :   y . t   + ' p x '  
 	 } ) ;  
 	 i f   ( t h i s . f a d e I n O u t )   {  
 	 	 h s . s e t S t y l e s ( t h i s . w r a p p e r ,   {   o p a c i t y :   u p   ?   0   :   1   } ) ;  
 	 	 h s . e x t e n d ( t o . w r a p p e r ,   {   o p a c i t y :   u p   } ) ;  
 	 }  
 	 h s . a n i m a t e (   t h i s . w r a p p e r ,   t o . w r a p p e r ,   {  
 	 	 d u r a t i o n :   d u r ,  
 	 	 e a s i n g :   e a s i n g ,  
 	 	 s t e p :   f u n c t i o n ( v a l ,   a r g s )   {  
 	 	 	 i f   ( e x p . o u t l i n e   & &   e x p . o u t l i n e W h i l e A n i m a t i n g   & &   a r g s . p r o p   = =   ' t o p ' )   {  
 	 	 	 	 v a r   f a c   =   u p   ?   a r g s . p o s   :   1   -   a r g s . p o s ;  
 	 	 	 	 v a r   p o s   =   {  
 	 	 	 	 	 w :   x . t   +   ( x . g e t ( ' w s i z e ' )   -   x . t )   *   f a c ,  
 	 	 	 	 	 h :   y . t   +   ( y . g e t ( ' w s i z e ' )   -   y . t )   *   f a c ,  
 	 	 	 	 	 x :   x . t p o s   +   ( x . p o s   -   x . t p o s )   *   f a c ,  
 	 	 	 	 	 y :   y . t p o s   +   ( y . p o s   -   y . t p o s )   *   f a c  
 	 	 	 	 } ;  
 	 	 	 	 e x p . o u t l i n e . s e t P o s i t i o n ( p o s ,   0 ,   1 ) ; 	 	 	 	  
 	 	 	 }  
 	 	 }  
 	 } ) ;  
 	 h s . a n i m a t e (   t h i s . c o n t e n t ,   t o . c o n t e n t ,   d u r ,   e a s i n g ,   a f t e r ) ;  
 	 i f   ( u p )   {  
 	 	 t h i s . w r a p p 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 . 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 ' ;  
 	 	 t h i s . 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 ' ;  
 	 }  
 } ,  
  
 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   ( h s . u p c o m i n g   & &   h s . u p c o m i n g   = =   t h i s . a )   h s . u p c o m i n g   =   n u l l ;  
 	 t h i s . p r e p a r e N e x t O u t l i n e ( ) ;  
 	 v a r   p   =   h s . p a g e ,   m X   =   h s . m o u s e . x   +   p . s c r o l l L e f t ,   m Y   =   h s . m o u s e . y   +   p . s c r o l l T o p ;  
 	 t h i s . m o u s e I s O v e r   =   t h i s . x . p o s   <   m X   & &   m X   <   t h i s . x . p o s   +   t h i s . x . g e t ( ' w s i z e ' )  
 	 	 & &   t h i s . y . p o s   <   m Y   & &   m Y   <   t h i s . y . p o s   +   t h i s . y . g e t ( ' w s i z e ' ) ; 	  
 	 i f   ( t h i s . o v e r l a y B o x )   t h i s . s h o w O v e r l a y s ( ) ;  
 	  
 } ,  
  
 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   =   t h i s . g e t A d j a c e n t A n c h o r ( 1 ) ;  
 	 i f   ( n e x t   & &   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 )   } ) ;  
 } ,  
  
  
 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 ( o p )   {  
 	 v a r   c u r r e n t   =   t h i s . g e t A n c h o r I n d e x ( ) ,   a s   =   h s . a n c h o r s . g r o u p s [ t h i s . s l i d e s h o w G r o u p   | |   ' n o n e ' ] ;  
 	  
 	 / * <   ?   i f   ( $ c f g - > s l i d e s h o w )   :   ? > s * /  
 	 i f   ( ! a s [ c u r r e n t   +   o p ]   & &   t h i s . s l i d e s h o w   & &   t h i s . s l i d e s h o w . r e p e a t )   {  
 	 	 i f   ( o p   = =   1 )   r e t u r n   a s [ 0 ] ;  
 	 	 e l s e   i f   ( o p   = =   - 1 )   r e t u r n   a s [ a s . l e n g t h - 1 ] ;  
 	 }  
 	 / * <   ?   e n d i f   ? > s * /  
 	 r e t u r n   a s [ c u r r e n t   +   o p ]   | |   n u l l ;  
 } ,  
  
 g e t A n c h o r I n d e x   :   f u n c t i o n ( )   {  
 	 v a r   a r r   =   h s . g e t A n c h o r s ( ) . g r o u p s [ t h i s . s l i d e s h o w G r o u p   | |   ' n o n e ' ] ;  
 	 i f   ( a r r )   f o r   ( v a r   i   =   0 ;   i   <   a r r . l e n g t h ;   i + + )   {  
 	 	 i f   ( a r r [ i ]   = =   t h i s . a )   r e t u r n   i ;    
 	 }  
 	 r e t u r n   n u l l ;  
 } ,  
  
  
 c a n c e l L o a d i n g   :   f u n c t i o n ( )   {  
 	 h s . d i s c a r d E l e m e n t   ( 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 ;  
 	 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   ( )   {  
 	 t h i s . 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 ,  
 	 	 t a r g e t :   h s . c r e d i t s T a r g e t ,  
 	 	 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 . l a n g . c r e d i t s T e x t ,  
 	 	 t i t l e :   h s . l a n g . 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 :   t h i s . c r e d i t s ,    
 	 	 p o s i t i o n :   t h i s . 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 I n l i n e   :   f u n c t i o n ( t y p e s ,   a d d O v e r l a y )   {  
 	 f o r   ( v a r   i   =   0 ;   i   <   t y p e s . l e n g t h ;   i + + )   {  
 	 	 v a r   t y p e   =   t y p e s [ i ] ,   s   =   n u l l ;  
 	 	 i f   ( ! t h i s [ t y p e   + ' 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 [ t y p e   + ' I d ' ]   =   t y p e   + ' - 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 [ t y p e   + ' I d ' ] )   t h i s [ t y p e ]   =   h s . g e t N o d e ( t h i s [ t y p e   + ' I d ' ] ) ;  
 	 	 i f   ( ! t h i s [ t y p e ]   & &   ! t h i s [ t y p e   + ' T e x t ' ]   & &   t h i s [ t y p e   + ' E v a l ' ] )   t r y   {  
 	 	 	 s   =   e v a l ( t h i s [ t y p e   + ' E v a l ' ] ) ;  
 	 	 }   c a t c h   ( e )   { }  
 	 	 i f   ( ! t h i s [ t y p e ]   & &   t h i s [ t y p e   + ' T e x t ' ] )   {  
 	 	 	 s   =   t h i s [ t y p e   + ' T e x t ' ] ;  
 	 	 }  
 	 	 i f   ( ! t h i s [ t y p e ]   & &   ! s )   {  
 	 	 	 t h i s [ t y p e ]   =   h s . g e t N o d e ( t h i s . a [ ' _ ' +   t y p e   +   ' I d ' ] ) ;  
 	 	 	 i f   ( ! t h i s [ t y p e ] )   {  
 	 	 	 	 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   ( ( n e w   R e g E x p ( ' h i g h s l i d e - ' +   t y p e ) ) . t e s t ( n e x t . c l a s s N a m e   | |   n u l l ) )   {  
 	 	 	 	 	 	 i f   ( ! n e x t . i d )   t h i s . a [ ' _ ' +   t y p e   +   ' I d ' ]   =   n e x t . i d   =   ' h s I d ' +   h s . i d C o u n t e r + + ;  
 	 	 	 	 	 	 t h i s [ t y p e ]   =   h s . g e t N o d e ( n e x t . i d ) ;  
 	 	 	 	 	 	 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 [ t y p e ]   & &   s )   t h i s [ t y p e ]   =   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 - ' +   t y p e ,   i n n e r H T M L :   s   }   ) ;  
 	 	  
 	 	 i f   ( a d d O v e r l a y   & &   t h i s [ t y p e ] )   {  
 	 	 	 v a r   o   =   {   p o s i t i o n :   ( t y p e   = =   ' h e a d i n g ' )   ?   ' a b o v e '   :   ' b e l o w '   } ;  
 	 	 	 f o r   ( v a r   x   i n   t h i s [ t y p e + ' O v e r l a y ' ] )   o [ x ]   =   t h i s [ t y p e + ' O v e r l a y ' ] [ x ] ;  
 	 	 	 o . o v e r l a y I d   =   t h i s [ t y p e ] ;  
 	 	 	 t h i s . c r e a t e O v e r l a y ( o ) ;  
 	 	 }  
 	 }  
 } ,  
  
  
 / /   o n   e n d   m o v e   a n d   r e s i z e  
 d o S h o w H i d e   :   f u n c t i o n ( v i s i b i l i t y )   {  
 	 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 i l i t y ) ;  
 	 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 i l i t y ) ;  
 	 i f   ( h s . g e c k o M a c )   t h i s . s h o w H i d e E l e m e n t s ( ' * ' ,   v i s i b i l i t y ) ;  
 } ,  
 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 )   {  
 	 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 ) ;  
 	 v a r   p r o p   =   t a g N a m e   = =   ' * '   ?   ' o v e r f l o w '   :   ' v i s i b i l i t y ' ;  
 	 f o r   ( v a r   i   =   0 ;   i   <   e l s . l e n g t h ;   i + + )   {  
 	 	 i f   ( p r o p   = =   ' v i s i b i l i t y '   | |   ( d o c u m e n t . d e f a u l t V i e w . g e t C o m p u t e d S t y l e (  
 	 	 	 	 e l s [ i ] ,   " " ) . g e t P r o p e r t y V a l u e ( ' o v e r f l o w ' )   = =   ' a u t o '  
 	 	 	 	 | |   e l s [ i ] . g e t A t t r i b u t e ( ' h i d d e n - b y ' )   ! =   n u l l ) )   {  
 	 	 	 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 [ p r o p ]   =   e l s [ i ] . o r i g P r o p ;  
 	 	 	 }   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 . g e t 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   <   t h i s . x . g e t ( ' o p o s ' )    
 	 	 	 	 	 	 | |   e l P o s . x   >   t h i s . x . g e t ( ' o p o s ' )   +   t h i s . x . g e t ( ' o s i z e ' ) ) ;  
 	 	 	 	 	 v a r   c l e a r s Y   =   ( e l P o s . y   +   e l P o s . h   <   t h i s . y . g e t ( ' o p o s ' )    
 	 	 	 	 	 	 | |   e l P o s . y   >   t h i s . y . g e t ( ' o p o s ' )   +   t h i s . y . g e t ( ' o s i z e ' ) ) ;  
 	 	 	 	 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 [ i ] . o r i g P r o p   =   e l s [ i ] . s t y l e [ p r o p ] ;  
 	 	 	 	 	 	 e l s [ i ] . s t y l e [ p r o p ]   =   ' h i d d e n ' ;  
 	 	 	 	 	 	  
 	 	 	 	 	 }   e l s e   i f   ( h i d d e n B y . i n d e x O f ( ' [ ' +   t h i s . k e y   + ' ] ' )   = =   - 1 )   {  
 	 	 	 	 	 	 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 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 )  
 	 	 	 	 	 	 & &   w r a p p e r K e y   ! =   t h i s . 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 [ p r o p ]   =   e l s [ i ] . o r i g P r o p   | |   ' ' ;  
 	 	 	 	 }   e l s e   i f   ( h i d d e n B y   & &   h i d d e n B y . i n d e x O f ( ' [ ' +   t h i s . k e y   + ' ] ' )   >   - 1 )   {  
 	 	 	 	 	 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   + =   2 ;  
 	 / /   b l u r   o t h e r s  
 	 f o r   ( v a 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 ' ;  
 	 	 	 	 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 . l a n g . 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 u t l i n e )   t h i s . 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   -   1 ;  
 	 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 ;  
 	 	 t h i s . c o n t e n t . t i t l e   =   h s . l a n g . r e s t o r e T i t l e ;  
 	 	  
 	 	 i f   ( h s . r e s t o r 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   =   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 . u a 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 ,   w i n d o w . o p e r a   ?   ' k e y p r e s s '   :   ' k e y d o w n ' ,   h s . k e y H a n d l e r ) ; 	  
 } ,  
 m o v e T o :   f u n c t i o n ( x ,   y )   {  
 	 t h i s . x . s e t P o s ( x ) ;  
 	 t h i s . y . s e t P o s ( y ) ;  
 } ,  
 r e s i z e   :   f u n c t i o n   ( e )   {  
 	 v a r   w ,   h ,   r   =   e . w i d t h   /   e . h e i g h t ;  
 	 w   =   M a t h . m a x ( e . w i d t h   +   e . d X ,   M a t h . m i n ( t h i s . m i n W i d t h ,   t h i s . x . f u l l ) ) ;  
 	 i f   ( t h i s . i s I m a g e   & &   M a t h . a b s ( w   -   t h i s . x . f u l l )   <   1 2 )   w   =   t h i s . x . f u l l ;  
 	 h   =   w   /   r ;  
 	 i f   ( h   <   M a t h . m i n ( t h i s . m i n H e i g h t ,   t h i s . y . f u l l ) )   {  
 	 	 h   =   M a t h . m i n ( t h i s . m i n H e i g h t ,   t h i s . y . f u l l ) ;  
 	 	 i f   ( t h i s . i s I m a g e )   w   =   h   *   r ;  
 	 }  
 	 t h i s . r e s i z e T o ( w ,   h ) ;  
 } ,  
 r e s i z e T o :   f u n c t i o n ( w ,   h )   {  
 	 t h i s . y . s e t S i z e ( h ) ;  
 	 t h i s . x . s e t S i z e ( w ) ;  
 	 t h i s . w r a p p e r . s t y l e . h e i g h t   =   t h i s . y . g e t ( ' w s i z e ' )   + ' p x ' ;  
 } ,  
  
 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 ,   w i n d o w . o p e r a   ?   ' k e y p r e s s '   :   ' k e y d o w n ' ,   h s . k e y H a n d l e r ) ;  
 	  
 	 t r y   {  
 	 	 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 ,   {  
 	 	 	 	 w r a p p e r :   {  
 	 	 	 	 	 w i d t h   :   t h i s . x . t ,  
 	 	 	 	 	 h e i g h t   :   t h i s . y . t ,  
 	 	 	 	 	 l e f t :   t h i s . x . t p o s   -   t h i s . x . c b   +   t h i s . x . t b ,  
 	 	 	 	 	 t o p :   t h i s . y . t p o s   -   t h i s . y . c b   +   t h i s . y . t b  
 	 	 	 	 } ,  
 	 	 	 	 c o n t e n t :   {  
 	 	 	 	 	 l e f t :   0 ,  
 	 	 	 	 	 t o p :   0 ,  
 	 	 	 	 	 w i d t h :   t h i s . x . t ,  
 	 	 	 	 	 h e i g h t :   t h i s . y . t  
 	 	 	 	 }  
 	 	 	 } ,   h s . r e s t o r e D u r a t i o n  
 	 	 ) ;  
 	 }   c a t c h   ( e )   {   t h i s . a f t e r C l o s e ( ) ;   }  
 } ,  
  
 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   ( o . h t m l )   e l   =   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 :   o . h t m 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 ;  
 	 e l . s t y l e . d i s p l a y   =   ' b l o c k ' ;  
 	 t h i s . g e n O v e r l a y B o x ( ) ;  
 	 v a r   w i d t h   =   o . w i d t h   & &   / ^ [ 0 - 9 ] + ( p x | % ) $ / . t e s t ( o . w i d t h )   ?   o . w i d t h   :   ' a u t o ' ;  
 	 i f   ( / ^ ( l e f t | r i g h t ) p a n e l $ / . t e s t ( o . p o s i t i o n )   & &   ! / ^ [ 0 - 9 ] + p x $ / . t e s t ( o . w i d t h ) )   w i d t h   =   ' 2 0 0 p x ' ;  
 	 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 ' ,   {  
 	 	 	 i d :   ' h s I d ' +   h s . i d C o u n t e r + + ,  
 	 	 	 h s I d :   o . h s I d  
 	 	 } ,   {  
 	 	 	 p o s i t i o n :   ' a b s o l u t e ' ,  
 	 	 	 v i s i b i l i t y :   ' h i d d e n ' ,  
 	 	 	 w i d t h :   w i d t h ,  
 	 	 	 d i r e c t i o n :   h s . l a n g . c s s D i r e c t i o n   | |   ' ' ,  
 	 	 	 o p a c i t y :   0  
 	 	 } , t h i s . o v e r l a y B o x ,  
 	 	 t r u e  
 	 ) ;  
 	  
 	 o v e r l a y . a p p e n d C h i l d ( e l ) ;  
 	 h s . e x t e n d ( o v e r l a y ,   {  
 	 	 o p a c i t y :   1 ,  
 	 	 o f f s e t X :   0 ,  
 	 	 o f f s e t Y :   0 ,  
 	 	 d u r :   ( o . f a d e   = = =   0   | |   o . f a d e   = = =   f a l s e   | |   ( o . f a d e   = =   2   & &   h s . i e ) )   ?   0   :   2 5 0  
 	 } ) ;  
 	 h s . e x t e n d ( o v e r l a y ,   o ) ;  
 	 	  
 	 i f   ( t h i s . g o t O v e r l a y s )   {  
 	 	 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 v e r l a y . h i d e O n M o u s e O u t   | |   t h i s . m o u s e I s O v e r )    
 	 	 	 h s . a n i m a t e ( o v e r l a y ,   {   o p a c i t y :   o v e r l a y . o p a c i t y   } ,   o v e r l a y . d u r ) ;  
 	 }  
 	 h s . p u s h ( t h i s . o v e r l a y s ,   h s . i d C o u n t e r   -   1 ) ;  
 } ,  
 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   p   =   o v e r l a y . p o s i t i o n   | |   ' m i d d l e   c e n t e r ' ,  
 	 	 o f f X   =   o v e r l a y . o f f s e t X ,  
 	 	 o f f Y   =   o v e r l a y . o f f s e t Y ;  
 	 i f   ( o v e r l a y . p a r e n t N o d e   ! =   t h i s . o v e r l a y B o x )   t h i s . o v e r l a y B o x . a p p e n d C h i l d ( o v e r l a y ) ;  
 	 i f   ( / l e f t $ / . t e s t ( p ) )   o v e r l a y . s t y l e . l e f t   =   o f f X   + ' p x ' ;    
 	  
 	 i f   ( / c e n t e r $ / . t e s t ( p ) ) 	 h s . s e t S t y l e s   ( o v e r l a y ,   {    
 	 	 l e f t :   ' 5 0 % ' ,  
 	 	 m a r g i n L e f t :   ( o f f X   -   M a t h . r o u n d ( o v e r l a y . o f f s e t W i d t h   /   2 ) )   + ' p x '  
 	 } ) ; 	  
 	  
 	 i f   ( / r i g h t $ / . t e s t ( p ) )   o v e r l a y . s t y l e . r i g h t   =   -   o f f X   + ' p x ' ;  
 	 	  
 	 i f   ( / ^ l e f t p a n e l $ / . t e s t ( p ) )   {    
 	 	 h s . s e t S t y l e s ( o v e r l a y ,   {  
 	 	 	 r i g h t :   ' 1 0 0 % ' ,  
 	 	 	 m a r g i n R i g h t :   t h i s . x . c b   + ' p x ' ,  
 	 	 	 t o p :   -   t h i s . y . c b   + ' p x ' ,  
 	 	 	 b o t t o m :   -   t h i s . y . c b   + ' p x ' ,  
 	 	 	 o v e r f l o w :   ' a u t o '  
 	 	 } ) ; 	 	    
 	 	 t h i s . x . p 1   =   o v e r l a y . o f f s e t W i d t h ;  
 	  
 	 }   e l s e   i f   ( / ^ r i g h t p a n e l $ / . t e s t ( p ) )   {  
 	 	 h s . s e t S t y l e s ( o v e r l a y ,   {  
 	 	 	 l e f t :   ' 1 0 0 % ' ,  
 	 	 	 m a r g i n L e f t :   t h i s . x . c b   + ' p x ' ,  
 	 	 	 t o p :   -   t h i s . y . c b   + ' p x ' ,  
 	 	 	 b o t t o m :   -   t h i s . y . c b   + ' p x ' ,  
 	 	 	 o v e r f l o w :   ' a u t o '  
 	 	 } ) ;  
 	 	 t h i s . x . p 2   =   o v e r l a y . o f f s e t W i d t h ;  
 	 }  
  
 	 i f   ( / ^ t o p / . t e s t ( p ) )   o v e r l a y . s t y l e . t o p   =   o f f Y   + ' p x ' ;    
 	 i f   ( / ^ m i d d l e / . t e s t ( p ) ) 	 h s . s e t S t y l e s   ( o v e r l a y ,   {    
 	 	 t o p :   ' 5 0 % ' ,    
 	 	 m a r g i n T o p :   ( o f f Y   -   M a t h . r o u n d ( o v e r l a y . o f f s e t H e i g h t   /   2 ) )   + ' p x '  
 	 } ) ; 	  
 	 i f   ( / ^ b o t t o m / . t e s t ( p ) )   o v e r l a y . s t y l e . b o t t o m   =   -   o f f Y   + ' p x ' ;  
 	 i f   ( / ^ a b o v e $ / . t e s t ( p ) )   {  
 	 	 h s . s e t S t y l e s ( o v e r l a y ,   {  
 	 	 	 l e f t :   ( -   t h i s . x . p 1   -   t h i s . x . c b )   + ' p x ' ,  
 	 	 	 r i g h t :   ( -   t h i s . x . p 2   -   t h i s . x . c b )   + ' p x ' ,  
 	 	 	 b o t t o m :   ' 1 0 0 % ' ,  
 	 	 	 m a r g i n B o t t o m :   t h i s . y . c b   + ' p x ' ,  
 	 	 	 w i d t h :   ' a u t o '  
 	 	 } ) ;  
 	 	 t h i s . y . p 1   =   o v e r l a y . o f f s e t H e i g h t ;  
 	  
 	 }   e l s e   i f   ( / ^ b e l o w $ / . t e s t ( p ) )   {  
 	 	 h s . s e t S t y l e s ( o v e r l a y ,   {  
 	 	 	 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 . p 1   -   t h i s . x . c b )   + ' p x ' ,  
 	 	 	 r i g h t :   ( -   t h i s . x . p 2   -   t h i s . x . c b )   + ' p x ' ,  
 	 	 	 t o p :   ' 1 0 0 % ' ,  
 	 	 	 m a r g i n T o p :   t h i s . y . c b   + ' p x ' ,  
 	 	 	 w i d t h :   ' a u t o '  
 	 	 } ) ;  
 	 	 t h i s . y . p 2   =   o v e r l a y . o f f s e t H e i g h t ;  
 	 	 o v e r l a y . s t y l e . p o s i t i o n   =   ' a b s o l u t e ' ;  
 	 }  
 } ,  
  
 g e t O v e r l a y s   :   f u n c t i o n ( )   { 	  
 	 t h i s . g e t I n l i n e ( [ ' h e a d i n g ' ,   ' c a p t i o n ' ] ,   t r u e ) ;  
 	 i f   ( t h i s . h e a d i n g   & &   t h i s . d r a g B y H e a d i n g )   t h i s . h e a d i n g . c l a s s N a m e   + =   '   h i g h s l i d e - m o v e ' ;  
 	 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 ( ) ;  
 	 f o r   ( v a 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 ] ,   t I d   =   o . t h u m b n a i l I d ,   s g   =   o . s l i d e s h o w G r o u p ;  
 	 	 i f   ( ( ! t I d   & &   ! s g )   | |   ( t I d   & &   t I d   = =   t h i s . t h u m b s U s e r S e t I d )  
 	 	 	 	 | |   ( s g   & &   s g   = = =   t h i s . s l i d e s h o w G r o u p ) )   {  
 	 	 	 t h i s . c r e a t e O v e r l a y ( o ) ;  
 	 	 }  
 	 }  
 	 v a r   o s   =   [ ] ;  
 	 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 + + )   {  
 	 	 v a r   o   =   h s . $ ( ' h s I d ' +   t h i s . o v e r l a y s [ i ] ) ;  
 	 	 i f   ( / p a n e l $ / . t e s t ( 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 ) ;  
 	 	 e l s e   h s . p u s h ( o s ,   o ) ;  
 	 }  
 	 f o r   ( v a r   i   =   0 ;   i   <   o 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 ( o s [ i ] ) ;  
 	 t h i s . g o t O v e r l a y s   =   t r u e ;  
 } ,  
 g e n O v e r l a y B o x   :   f u n c t i o n ( )   {  
 	 i f   ( ! t h i s . o v e r l a y B o x )   t h i s . o v e r l a y B o x   =   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 o s i t i o n   :   ' a b s o l u t e ' ,  
 	 	 	 w i d t h :   ( t h i s . x . s i z e   | |   ( t h i s . u s e B o x   ?   t h i s . w i d t h   :   n u l l )    
 	 	 	 	 | |   t h i s . x . f u l l )   + ' p x ' ,  
 	 	 	 h e i g h t :   ( t h i s . y . s i z e   | |   t h i s . y . f u l l )   + ' p x ' ,  
 	 	 	 v i s i b i l i t y   :   ' h i d d e n ' ,  
 	 	 	 o v e r f l o w   :   ' h i d d e n ' ,  
 	 	 	 z I n d e x   :   h s . i e   ?   4   :   ' a u t o '  
 	 	 } ,  
 	 	 h s . c o n t a i n e r ,  
 	 	 t r u e  
 	 ) ;  
 } ,  
 s i z e O v e r l a y B o x   :   f u n c t i o n ( d o W r a p p e r ,   d o P a n e l s )   {  
 	 v a r   o v e r l a y B o x   =   t h i s . o v e r l a y B o x ,    
 	 	 x   =   t h i s . x ,  
 	 	 y   =   t h i s . y ;  
 	 h s . s e t S t y l e s (   o v e r l a y B o x ,   {  
 	 	 w i d t h :   x . s i z e   + ' p x ' ,    
 	 	 h e i g h t :   y . s i z e   + ' p x '  
 	 } ) ;  
 	 i f   ( d o W r a p p e r   | |   d o P a n e l s )   {  
 	 	 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 + + )   {  
 	 	 	 v a r   o   =   h s . $ ( ' h s I d ' +   t h i s . o v e r l a y s [ i ] ) ;  
 	 	 	 v a r   i e 6   =   ( h s . i e L t 7   | |   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 ' ) ;  
 	 	 	 i f   ( o   & &   / ^ ( a b o v e | b e l o w ) $ / . t e s t ( o . p o s i t i o n ) )   {  
 	 	 	 	 i f   ( i e 6 )   {  
 	 	 	 	 	 o . s t y l e . w i d t h   =   ( o v e r l a y B o x . o f f s e t W i d t h   +   2   *   x . c b  
 	 	 	 	 	 	 +   x . p 1   +   x . p 2 )   + ' p x ' ;  
 	 	 	 	 }  
 	 	 	 	 y [ o . p o s i t i o n   = =   ' a b o v e '   ?   ' p 1 '   :   ' p 2 ' ]   =   o . o f f s e t H e i g h t ;  
 	 	 	 }  
 	 	 	 i f   ( o   & &   i e 6   & &   / ^ ( l e f t | r i g h t ) p a n e l $ / . t e s t ( o . p o s i t i o n ) )   {  
 	 	 	 	 o . s t y l e . h e i g h t   =   ( o v e r l a y B o x . o f f s e t H e i g h t   +   2 *   y . c b )   + ' p x ' ;  
 	 	 	 }  
 	 	 }  
 	 }  
 	 i f   ( d o W r a p p e r )   {  
 	 	 h s . s e t S t y l e s ( t h i s . c o n t e n t ,   {  
 	 	 	 t o p :   y . p 1   + ' p x '  
 	 	 } ) ;  
 	 	 h s . s e t S t y l e s ( o v e r l a y B o x ,   {  
 	 	 	 t o p :   ( y . p 1   +   y . c b )   + ' p x '  
 	 	 } ) ;  
 	 }  
 } ,  
  
 s h o w O v e r l a y s   :   f u n c t i o n ( )   {  
 	 v a r   b   =   t h i s . o v e r l a y B o x ;  
 	 b . c l a s s N a m e   =   ' ' ;  
 	 h s . s e t S t y l e s ( b ,   {  
 	 	 t o p :   ( t h i s . y . p 1   +   t h i s . y . c b )   + ' p x ' ,  
 	 	 l e f t :   ( t h i s . x . p 1   +   t h i s . x . c b )   + ' p x ' ,  
 	 	 o v e r f l o w   :   ' v i s i b l e '  
 	 } ) ;  
 	 i f   ( h s . s a f a r i )   b . 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 . w r a p p e r . a p p e n d C h i l d   ( b ) ;  
 	 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 + + )   {  
 	 	 v a r   o   =   h s . $ ( ' h s I d ' +   t h i s . o v e r l a y s [ i ] ) ;  
 	 	 o . s t y l e . z I n d e x   =   4 ;  
 	 	 i f   ( ! o . h i d e O n M o u s e O u t   | |   t h i s . m o u s e I s O v e r )   {  
 	 	 	 o . s t y l e . v i s i b i l i t y   =   ' v i s i b l e ' ;  
 	 	 	 h s . s e t S t y l e s ( o ,   {   v i s i b i l i t y :   ' v i s i b l e ' ,   d i s p l a y :   ' '   } ) ;  
 	 	 	 h s . a n i m a t e ( o ,   {   o p a c i t y :   o . o p a c i t y   } ,   o . d u r ) ;  
 	 	 }  
 	 }  
 } ,  
  
 d e s t r o y O v e r l a y s   :   f u n c t i o n ( )   {  
 	 i f   ( ! t h i s . o v e r l a y s . l e n g t h )   r e t u r n ;  
 	 h s . d i s c a r d E l e m e n t ( t h i s . o v e r l a y B o x ) ;  
 } ,  
  
  
  
 c r e a t e F u l l E x p a n d   :   f u n c t i o n   ( )   {  
 	 t h i s . f u l l E x p a n d L a b e l   =   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 . l a n g . 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 . c r e a t e O v e r l a y ( {    
 	 	 o v e r l a y I d :   t h i s . f u l l E x p a n d L a b e l ,    
 	 	 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   {  
 	 	 i f   ( t h i s . f u l l E x p a n d L a b e l )   h s . d i s c a r d E l e m e n t ( 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 ( ) ;  
 	 	 v a r   x S i z e   =   t h i s . x . s i z e ;  
 	 	 t h i s . r e s i z e T o ( t h i s . x . f u l l ,   t h i s . y . f u l l ) ;  
 	 	  
 	 	 v a r   x p o s   =   t h i s . x . p o s   -   ( t h i s . x . s i z e   -   x S i z e )   /   2 ;  
 	 	 i f   ( x p o s   <   h s . m a r g i n L e f t )   x p o s   =   h s . m a r g i n L e f t ;  
 	 	  
 	 	 t h i s . m o v e T o ( x p o s ,   t h i s . y . p o s ) ;  
 	 	 t h i s . d o S h o w H i d e ( ' h i d d e n ' ) ;  
 	  
 	 }   c a t c h   ( e )   {  
 	 	 t h i s . e r r o r ( e ) ;  
 	 }  
 } ,  
  
  
 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 ' ,   ' ' ) ;  
 	  
 	 t h i s . d o S h o w H i d e ( ' v i s i b l e ' ) ;  
 	 	 i f   ( t h i s . 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 u t l i n e . d e s t r o y ( ) ;  
 	  
 	 	 h s . d i s c a r d E l e m e n t ( 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 . r e O r d e r ( ) ;  
 }  
  
 } ;  
 h s . l a n g D e f a u l t s   =   h s . l a n g ;  
 / /   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 ;  
 i f   ( h s . i e )   {  
 	 ( f u n c t i o n   ( )   {  
 	 	 t r y   {  
 	 	 	 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 S c r o l l ( ' l e f t ' ) ;  
 	 	 }   c a t c h   ( e )   {  
 	 	 	 s e t T i m e o u t ( a r g u m e n t s . c a l l e e ,   5 0 ) ;  
 	 	 	 r e t u r n ;  
 	 	 }  
 	 	 h s . r e a d 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 ,   ' D O M C o n t e n t L o a d e d ' ,   h s . r e a d y ) ;  
 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 . r e a d y ) ;  
  
 / /   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 ,   ' r e a d y ' ,   f u n c t i o n ( )   {  
 	 i f   ( h s . e x p a n d C u r s o r )   {  
 	 	 v a r   s t y l e   =   h s . c r e a t e E l e m e n t ( ' s t y l e ' ,   {   t y p e :   ' t e x t / c s s '   } ,   n u l l ,    
 	 	 	 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 ( ' H E A D ' ) [ 0 ] ) ;  
 	 	 	  
 	 	 f u n c t i o n   a d d R u l e ( s e l ,   d e c )   { 	 	  
 	 	 	 i f   ( ! h s . i e )   {  
 	 	 	 	 s t y l e . a p p e n d C h i l d ( d o c u m e n t . c r e a t e T e x t N o d e ( s e l   +   "   { "   +   d e c   +   " } " ) ) ;  
 	 	 	 }   e l s e   {  
 	 	 	 	 v a r   l a s t   =   d o c u m e n t . s t y l e S h e e t s [ d o c u m e n t . s t y l e S h e e t s . l e n g t h   -   1 ] ;  
 	 	 	 	 i f   ( t y p e o f ( l a s t . a d d R u l e )   = =   " o b j e c t " )   l a s t . a d d R u l e ( s e l ,   d e c ) ;  
 	 	 	 }  
 	 	 }  
 	 	 f u n c t i o n   f i x ( p r o p )   {  
 	 	 	 r e t u r n   ' e x p r e s s i o n (   (   (   i g n o r e M e   =   d o c u m e n t . d o c u m e n t E l e m e n t . ' +   p r o p   +  
 	 	 	 	 '   ?   d o c u m e n t . d o c u m e n t E l e m e n t . ' +   p r o p   + '   :   d o c u m e n t . b o d y . ' +   p r o p   + '   )   )   +   \ ' p x \ '   ) ; ' ;  
 	 	 }  
 	 	 i f   ( h s . e x p a n d C u r s o r )   a d d R u l e   ( ' . h i g h s l i d e   i m g ' ,    
 	 	 	 ' c u r s o r :   u r l ( ' +   h s . g r a p h i c s D i r   +   h s . e x p a n d C u r s o r   + ' ) ,   p o i n t e r   ! i m p o r t a n t ; ' ) ;  
 	 }  
 } ) ;  
 h s . a d d E v e n t L i s t e n e r ( w i n d o w ,   ' r e s i z e ' ,   f u n c t i o n ( )   {  
 	 h s . g e t P a g e S i z 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 ' ,   f u n c t i o n ( e )   {  
 	 h s . m o u s e   =   {   x :   e . c l i e n t X ,   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 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 ( d o c u m e n t ,   ' r e a d y ' ,   h s . g e t A n c h o r 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 I m a g e s ) ;  
 }  
  
  
  
 / / S e m i - C l o s e - B u t t o n  
  
 h s . r e g i s t e r O v e r l a y ( {  
 	 h t m l :   ' < d i v   c l a s s = " c l o s e b u t t o n "   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 = " " > < / d i v > ' ,  
 	 p o s i t i o n :   ' t o p   r i g h t ' ,  
 	 f a d e :   2   / /   f a d i n g   t h e   s e m i - t r a n s p a r e n t   o v e r l a y   l o o k s   b a d   i n   I E  
 } ) ;  
  
 h s . g r a p h i c s D i r   =   ' g r a p h i c s / ' ;  
 h s . w r a p p e r C l a s s N a m e   =   ' b o r d e r l e s s ' ;  
  
 / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
   *     H I G H S L I D E   E n d e  
   *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -    
   * /  
  
 / /   f l v - P l a y e r   e i n b a u e n   ( P f a d e   i n   a b s o l u t e   P f a d e   u m w a n d e l n )   -   n u r   f ü r   C H M  
 f u n c t i o n   G e t C u r r D i r ( )   {  
     v a r   X ,   Y ,   s l ,   a ,   r a ,   d i r ;  
     r a   =   / : : / ;  
     a   =   l o c a t i o n . h r e f . s e a r c h ( r a ) ;  
     i f   ( a   < =   0 )       / / n o   a   C H M   -   r e t u r n   a n   e m p t y   s t r i n g  
         r e t u r n ( ' ' ) ;  
  
     / / f i n d   t h e   i n d e x   o f   t h e   f i r s t   c o l o n   i n   t h e   s t r i n g    
     r a   =   / : / ;  
     a   =   l o c a t i o n . h r e f . s e a r c h ( r a ) ;  
     i f   ( a   = =   2 )  
         X   =   1 4 ;     / / p r e f i x   =   m k : @ M S I T S t o r e :  
     e l s e  
         X   =   7 ;       / / p r e f i x   =   m s - i t s :    
  
     / / f i n d   l a s t   b a c k   s l a s h  
     s l   =   " \ \ " ;  
     Y   =   l o c a t i o n . h r e f . l a s t I n d e x O f ( s l ) ;  
     d i r   =   l o c a t i o n . h r e f . s u b s t r i n g ( X ,   Y ) ;  
  
     / / U n E s c a p e   p a t h   -   E G .   R e p l a c e   % 2 0   w i t h   s p a c e s  
     v a r   d i r 2   =   u n e s c a p e ( d i r )    
     r e t u r n ( d i r 2 ) ;  
     }  
 
