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