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