ÿþv a r   d o m   =   ( d o c u m e n t . g e t E l e m e n t B y I d )   ?   t r u e   :   f a l s e ;  
 v a r   n s 5   =   ( ( 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 ( " G e c k o " ) > - 1 )   & &   d o m )   ?   t r u e :   f a l s e ;  
 v a r   i e 5   =   ( ( 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 m )   ?   t r u e   :   f a l s e ;  
 v a r   n s 4   =   ( d o c u m e n t . l a y e r s   & &   ! d o m )   ?   t r u e   :   f a l s e ;  
 v a r   i e 4   =   ( d o c u m e n t . a l l   & &   ! d o m )   ?   t r u e   :   f a l s e ;  
 v a r   n o d y n   =   ( ! n s 5   & &   ! n s 4   & &   ! i e 4   & &   ! i e 5 )   ?   t r u e   :   f a l s e ;  
    
 v a r   o r i g W i d t h ,   o r i g H e i g h t ;  
 i f   ( n s 4 )   {  
 	 o r i g W i d t h   =   w i n d o w . i n n e r W i d t h ;   o r i g 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 . o n r e s i z e   =   f u n c t i o n ( )   {   i f   ( w i n d o w . i n n e r W i d t h   ! =   o r i g W i d t h   | |   w i n d o w . i n n e r H e i g h t   ! =   o r i g H e i g h t )   h i s t o r y . g o ( 0 ) ;   }  
 }  
  
 i f   ( n o d y n )   {    
 e v e n t   =   " n o p e "    
 }  
    
 v a r   t i p F o l l o w M o u s e =   t r u e ; 	  
    
 v a r   t i p W i d t h =   2 5 0 ;  
 v a r   o f f X =   1 0 ; 	    
 v a r   o f f Y =   1 0 ;    
 v a r   t i p F o n t F a m i l y =   " V e r d a n a ,   a r i a l ,   h e l v e t i c a ,   s a n s - s e r i f " ;  
 v a r   t i p F o n t S i z e =   " 9 p t " ;  
    
 v a r   t i p F o n t C o l o r =   " # 0 0 0 0 0 0 " ;  
 v a r   t i p B g C o l o r =   " # D D E C F F " ;    
 v a r   t i p B o r d e r C o l o r =   " # 0 0 0 0 8 0 " ;  
 v a r   t i p B o r d e r W i d t h =   1 ;  
 v a r   t i p B o r d e r S t y l e =   " r i d g e " ;  
 v a r   t i p P a d d i n g =   4 ;  
  
    
 v a r   m e s s a g e s   =   n e w   A r r a y ( ) ;  
    
 m e s s a g e s [ 0 ]   =   n e w   A r r a y ( ' N a m T r a M y . g i f ' , ' < b > T r ¡m   p h á t   l ¡i   t r u y Án   h ì n h   N a m   T r à   M y   -   à i   T T & P L T H   N a m   T r à   M y < / b > < b r > < b > C ô n g   s u ¥t : < / b > 5 0 0 W < b r > < b > K ê n h : < / b > U H F < b r > < b > V ù n g   p h ç  s ó n g : < / b > T r u n g   T â m   h u y Çn   l õ  N a m   T r à   M y ' , " # B 1 F F D 8 " ) ;  
 m e s s a g e s [ 1 ]   =   n e w   A r r a y ( ' P h u o c S o n . g i f ' , ' < s t r o n g > T r & # 7 8 4 1 ; m   p h á t   l & # 7 8 4 1 ; i   t r u y & # 7 8 7 3 ; n   h ì n h   P h & # 4 3 2 ; & # 7 8 9 9 ; c   S & # 4 1 7 ; n   -   & # 2 7 2 ; à i   T T & P L T H   P h & # 4 3 2 ; & # 7 8 9 9 ; c   S & # 4 1 7 ; n   < / s t r o n g > ( k & # 7 8 7 1 ;   h o & # 7 8 4 1 ; c h   2 0 0 9 ) < / b r > < / b r >     C ô n g   s u & # 7 8 4 5 ; t :   5 0 0 W < / b r >     K ê n h :   U H F < / b r >     V ù n g   p h & # 7 9 1 1 ;   s ó n g :   T h & # 7 8 8 3 ;   t r & # 7 8 4 5 ; n   K h â m   & # 2 7 2 ; & # 7 9 1 3 ; c   v à   c á c   x   l â n   c & # 7 8 5 3 ; n ' , " # F E D C D 0 " ) ;  
 m e s s a g e s [ 2 ]   =   n e w   A r r a y ( ' N a m G i a n g . g i f ' , ' < s t r o n g > T r & # 7 8 4 1 ; m   p h á t   l & # 7 8 4 1 ; i   t r u y & # 7 8 7 3 ; n   h ì n h   T h & # 7 8 4 1 ; n h   M & # 7 9 2 9 ;   -   & # 2 7 2 ; à i   T T & P L T H   N a m   G i a n g   < / s t r o n g > ( k & # 7 8 7 1 ;   h o & # 7 8 4 1 ; c h   2 0 0 9 ) < / b r > < / b r >     C ô n g   s u & # 7 8 4 5 ; t :   5 0 0 W < / b r >     K ê n h :   U H F < / b r >     V ù n g   p h & # 7 9 1 1 ;   s ó n g :   T h & # 7 8 8 3 ;   t r & # 7 8 4 5 ; n   T h & # 7 8 4 1 ; n h   M & # 7 9 2 9 ; ' , " # B 0 F F B 0 " ) ;  
 m e s s a g e s [ 3 ]   =   n e w   A r r a y ( ' T a y G i a n g . g i f ' , ' < s t r o n g > T r & # 7 8 4 1 ; m   p h á t   l & # 7 8 4 1 ; i   t r u y & # 7 8 7 3 ; n   h ì n h   T â y   G i a n g   -   & # 2 7 2 ; à i   T T & P L T H   T â y   G i a n g   < / s t r o n g > ( k & # 7 8 7 1 ;   h o & # 7 8 4 1 ; c h   2 0 0 9 ) < / b r > < / b r >     C ô n g   s u & # 7 8 4 5 ; t :   5 0 0 W < / b r >     K ê n h :   U H F < / b r >     V ù n g   p h & # 7 9 1 1 ;   s ó n g :   T r u n g   t â m   h u y & # 7 8 7 9 ; n   l & # 7 9 2 5 ;   T â y   G i a n g ' , " # E 8 D 0 F F " ) ;  
 m e s s a g e s [ 4 ]   =   n e w   A r r a y ( ' D o n g G i a n g . g i f ' , ' < s t r o n g > T r & # 7 8 4 1 ; m   p h á t   l & # 7 8 4 1 ; i   t r u y & # 7 8 7 3 ; n   h ì n h   P r a o   -   & # 2 7 2 ; à i   P T T H   & # 2 7 2 ; ô n g   G i a n g   < / s t r o n g > ( k & # 7 8 7 1 ;   h o & # 7 8 4 1 ; c h   2 0 0 9 ) < / b r > < / b r >     C ô n g   s u & # 7 8 4 5 ; t :   5 0 0 W < / b r >     K ê n h :   U H F < / b r >     V ù n g   p h & # 7 9 1 1 ;   s ó n g :   T h & # 7 8 8 3 ;   t r & # 7 8 4 5 ; n   P r a o   v à   c á c   x   l â n   c & # 7 8 5 3 ; n ' , " # F F F F C F " ) ;  
 m e s s a g e s [ 5 ]   =   n e w   A r r a y ( ' D a i L o c . g i f ' , ' < s t r o n g > T r & # 7 8 4 1 ; m   p h á t   l & # 7 8 4 1 ; i   t r u y & # 7 8 7 3 ; n   h ì n h   N ú i   L & # 7 9 0 3 ;   -   & # 2 7 2 ; à i   P T T H   & # 2 7 2 ; & # 7 8 4 1 ; i   L & # 7 8 9 7 ; c < / s t r o n g > < / b r > < / b r >     C ô n g   s u & # 7 8 4 5 ; t :   1 K W < / b r >     K ê n h :   3 7 - U H F < / b r >     V ù n g   p h & # 7 9 1 1 ;   s ó n g :   T â y   & # 2 7 2 ; & # 7 8 4 1 ; i   L & # 7 8 9 7 ; c ,   t â y   D u y   X u y ê n ,   k h o & # 7 8 4 3 ; n g   1 0 0 . 0 0 0   d â n ' , " # F E D 1 E 8 " ) ;  
 m e s s a g e s [ 6 ]   =   n e w   A r r a y ( ' D i e n B a n . g i f ' , ' < s t r o n g > T r & # 7 8 4 1 ; m   p h á t   l & # 7 8 4 1 ; i   t r u y & # 7 8 7 3 ; n   h ì n h   & # 2 7 2 ; i & # 7 8 7 9 ; n   N g & # 7 8 8 5 ; c < / s t r o n g > < / b r > < / b r >     C ô n g   s u & # 7 8 4 5 ; t :   2 K W < / b r >     K ê n h :   4 3 - U H F < / b r >     V ù n g   p h & # 7 9 1 1 ;   s ó n g :   & # 2 7 2 ; i & # 7 8 7 9 ; n   B à n ,   H & # 7 8 9 7 ; i   A n ,   & # 2 7 3 ; ô n g   & # 2 7 2 ; & # 7 8 4 1 ; i   L & # 7 8 9 7 ; c ,   & # 2 7 3 ; ô n g   D u y   X u y ê n ,   k h o & # 7 8 4 3 ; n g   4 0 0 . 0 0 0   d â n ' , " # F E F F B 1 " ) ;  
 m e s s a g e s [ 7 ]   =   n e w   A r r a y ( ' H o i A n . g i f ' , ' < s t r o n g > T h u   s ó n g   t & # 7 9 1 5 ;   t r & # 7 8 4 1 ; m   p h á t   s ó n g   & # 2 7 2 ; i & # 7 8 7 9 ; n   N g & # 7 8 8 5 ; c ' , " # F F D 0 F F " ) ;  
 m e s s a g e s [ 8 ]   =   n e w   A r r a y ( ' D u y X u y e n . g i f ' , ' < s t r o n g > T h u   s ó n g   t & # 7 9 1 5 ;   t r & # 7 8 4 1 ; m   p h á t   s ó n g   A n   H à   -   T P .   T a m   K & # 7 9 2 3 ;   v à   t r & # 7 8 4 1 ; m   p h á t   l & # 7 8 4 1 ; i   N ú i   L & # 7 9 0 3 ;   -   & # 2 7 2 ; & # 7 8 4 1 ; i   L & # 7 8 9 7 ; c ' , " # A 1 F E D 1 " ) ;  
 m e s s a g e s [ 9 ]   =   n e w   A r r a y ( ' N o n g S o n . g i f ' , ' < b > T r ¡m   p h á t   l ¡i   t r u y Án   h ì n h   N ô n g   S ¡n   -   à i   T T & P L T H   N ô n g   S ¡n ( k ¿  h o ¡c h   2 0 0 9 ) < / b > < b r > < b > C ô n g   s u ¥t : < / b > 5 0 0 W < b r > < b > K ê n h : < / b > U H F < b r > < b > V ù n g   p h ç  s ó n g : < / b > H u y Çn   N ô n g   S ¡n ' , " # F F D 8 A F " ) ;  
 m e s s a g e s [ 1 0 ]   =   n e w   A r r a y ( ' Q u e S o n . g i f ' , ' < s t r o n g > T r & # 7 8 4 1 ; m   p h á t   l & # 7 8 4 1 ; i   t r u y & # 7 8 7 3 ; n   h ì n h   Q u & # 7 8 7 1 ;   L & # 4 3 2 ; u   -   & # 2 7 2 ; à i   t r u y & # 7 8 7 3 ; n   h n h   T T & P L T H   H i & # 7 8 7 9 ; p   & # 2 7 2 ; & # 7 9 1 3 ; c < / s t r o n g > < / b r > < / b r >     C ô n g   s u & # 7 8 4 5 ; t :   3 0 0 W - V H F < / b r >     V ù n g   p h & # 7 9 1 1 ;   s ó n g :   Q u & # 7 8 7 1 ;   L & # 4 3 2 ; u   v à   c á c   x   p h í a   t â y   H i & # 7 8 7 9 ; p   & # 2 7 2 ; & # 7 9 1 3 ; c ' , " # C 0 D 6 F F " ) ;  
 m e s s a g e s [ 1 1 ]   =   n e w   A r r a y ( ' T h a n g B i n h . g i f ' , ' < s t r o n g > T h u   t & # 7 9 1 5 ;   t r & # 7 8 4 1 ; m   p h á t   s ó n g   A n   H à   -   T P .   T a m   K & # 7 9 2 3 ; < / s t r o n g > ' , " # F F D 8 A F " ) ;  
 m e s s a g e s [ 1 2 ]   =   n e w   A r r a y ( ' T a m K y . g i f ' , ' < s t r o n g > & # 2 7 2 ; à i   p h á t   s ó n g   A n   H à   -   T P .   T a m   K & # 7 9 2 3 ; < / s t r o n g > < / b r > < / b r >     C ô n g   s u & # 7 8 4 5 ; t :   1 0 K W < / b r > < / b r >     K ê n h   3 1 - U H F < / b r >     V ù n g   p h & # 7 9 1 1 ;   s ó n g :   C á c   h u y & # 7 8 7 9 ; n   & # 2 7 3 ; & # 7 8 9 1 ; n g   b & # 7 8 5 7 ; n g   Q u & # 7 8 4 3 ; n g   N a m   v à   c á c   h u y & # 7 8 7 9 ; n   p h í a   b & # 7 8 5 5 ; c   Q u & # 7 8 4 3 ; n g   N g i ' , " # F F D 1 F F " ) ;  
 m e s s a g e s [ 1 3 ]   =   n e w   A r r a y ( ' N u i T h a n h . g i f ' , ' < s t r o n g > T h u   t & # 7 9 1 5 ;   t r & # 7 8 4 1 ; m   p h á t   s ó n g   A n   H à   -   T P .   T a m   K & # 7 9 2 3 ; ' , " # F F E C B 1 " ) ;  
 m e s s a g e s [ 1 4 ]   =   n e w   A r r a y ( ' T i e n P h u o c . g i f ' , ' < s t r o n g > T r & # 7 8 4 1 ; m   p h á t   l & # 7 8 4 1 ; i   t r u y & # 7 8 7 3 ; n   h ì n h   T i ê n   P h & # 4 3 2 ; & # 7 8 9 9 ; c   -   & # 2 7 2 ; à i   T T & P L T H   T i ê n   P h & # 4 3 2 ; & # 7 8 9 9 ; c   < / s t r o n g > ( k & # 7 8 7 1 ;   h o & # 7 8 4 1 ; c h   2 0 0 9 ) < / b r > < / b r >     C ô n g   s u & # 7 8 4 5 ; t :   5 0 0 W < / b r >     K ê n h :   U H F < / b r >     V ù n g   p h & # 7 9 1 1 ;   s ó n g :   T h & # 7 8 8 3 ;   t r & # 7 8 4 5 ; n   T i ê n   K & # 7 9 2 3 ;   v à   c á c   x   l â n   c & # 7 8 5 3 ; n ' , " # D 3 F F 9 0 " ) ;  
 m e s s a g e s [ 1 5 ]   =   n e w   A r r a y ( ' B a c T r a M y . g i f ' , ' < s t r o n g > T r & # 7 8 4 1 ; m   p h á t   l & # 7 8 4 1 ; i   t r u y & # 7 8 7 3 ; n   h ì n h   B & # 7 8 5 5 ; c   T r à   M y   -   & # 2 7 2 ; à i   T T & P L T H   B & # 7 8 5 5 ; c   T r à   M y   < / s t r o n g > ( k & # 7 8 7 1 ;   h o & # 7 8 4 1 ; c h   2 0 0 9 ) < / b r > < / b r >     C ô n g   s u & # 7 8 4 5 ; t :   5 0 0 W < / b r >     K ê n h :   U H F < / b r >     V ù n g   p h & # 7 9 1 1 ;   s ó n g :   T h & # 7 8 8 3 ;   t r & # 7 8 4 5 ; n   T r à   M y   v à   c á c   x   l â n   c & # 7 8 5 3 ; n ' , " # C F D 0 F F " ) ;  
 m e s s a g e s [ 1 6 ]   =   n e w   A r r a y ( ' P h u N i n h . g i f ' , ' < s t r o n g > T h u   t & # 7 9 1 5 ;   t r & # 7 8 4 1 ; m   p h á t   s ó n g   A n   H à   -   T P .   T a m   K & # 7 9 2 3 ; < / s t r o n g > ' , " # F F B 0 A E " ) ;  
 m e s s a g e s [ 1 7 ]   =   n e w   A r r a y ( ' H i e p D u c . g i f ' , ' < s t r o n g > T r & # 7 8 4 1 ; m   p h á t   l & # 7 8 4 1 ; i   t r u y & # 7 8 7 3 ; n   h ì n h   H i & # 7 8 7 9 ; p   & # 2 7 2 ; & # 7 9 1 3 ; c   -   & # 2 7 2 ; à i   T T & P L T H   H i & # 7 8 7 9 ; p   & # 2 7 2 ; & # 7 9 1 3 ; c   < / s t r o n g > ( k & # 7 8 7 1 ;   h o & # 7 8 4 1 ; c h   2 0 0 9 ) < / b r > < / b r >     C ô n g   s u & # 7 8 4 5 ; t :   5 0 0 W < / b r >     K ê n h :   U H F < / b r >     V ù n g   p h & # 7 9 1 1 ;   s ó n g :   T h & # 7 8 8 3 ;   t r & # 7 8 4 5 ; n   T â n   A n   v à   c á c   x   p h í a   & # 2 7 3 ; ô n g   h u y & # 7 8 7 9 ; n   H i & # 7 8 7 9 ; p   & # 2 7 2 ; & # 7 9 1 3 ; c ' , " # F F F F 9 1 " ) ;  
 m e s s a g e s [ 1 8 ]   =   n e w   A r r a y ( ' Q u e L u u . g i f ' , ' < b > T r ¡m   p h á t   l ¡i   t r u y Án   h ì n h   Q u ¿  L °u   -   à i   T T & P T T H   H i Çp   éc < / b > < / b r > < b > C ô n g   s u ¥t : < / b >   3 0 0 W - V H F < b r > < b > V ù n g   p h ç  s ó n g : < / b >   Q u ¿  L °u   v à   c á c   x ã   p h í a   t â y   H i Çp   éc ' , " # F F F F 9 1 " ) ;  
 m e s s a g e s [ 1 9 ]   =   n e w   A r r a y ( ' B a N a . g i f ' , ' < b > T r ¡m   p h á t   l ¡i   t r u y Án   h ì n h   B à   N à < / b > < / b r > < b > C ô n g   s u ¥t : < / b >   2 K W - V H F < b r > < b > K ê n h : < / b > 3 5 - U H F < b r > < b > V ù n g   p h ç  s ó n g : < / b >   c á c   h u y Çn   p h í a   b ¯c   v à   ô n g   G i a n g   t Én h   Q u £n g   N a m   v à   m Ùt   s Ñ  v ù n g   c ça   T P   à   N µn g ' , " # F F F F F F " ) ;  
 / / m e s s a g e s [ 2 ]   =   n e w   A r r a y ( ' t e s t . g i f ' , ' T e s t   d e s c r i p t i o n ' , ' b l a c k ' , ' w h i t e ' ) ;  
  
 i f   ( d o c u m e n t . i m a g e s )   {  
 	 v a r   t h e I m g s   =   n e w   A r r a y ( ) ;  
 	 f o r   ( v a r   i = 0 ;   i < m e s s a g e s . l e n g t h ;   i + + )   {  
     	 t h e I m g s [ i ]   =   n e w   I m a g e ( ) ;  
 	 	 t h e I m g s [ i ] . s r c   =   m e s s a g e s [ i ] [ 0 ] ;  
     }  
 }  
  
    
 v a r   s t a r t S t r   =   ' < t a b l e   w i d t h = " '   +   t i p W i d t h   +   ' " > < t r > < t d   a l i g n = " c e n t e r "   w i d t h = " 1 0 0 % " > < i m g   s r c = " ' ;  
 v a r   m i d S t r   =   ' "   b o r d e r = " 0 " > < / t d > < / t r > < t r > < t d   v a l i g n = " t o p " > ' ;  
 v a r   e n d S t r   =   ' < / t d > < / t r > < / t a b l e > ' ;  
    
 v a r   t o o l t i p ,   t i p c s s ;  
 f u n c t i o n   i n i t T i p ( )   {  
 	 i f   ( n o d y n )   r e t u r n ;  
 	 t o o l t i p   =   ( n s 4 ) ?   d o c u m e n t . t i p D i v . d o c u m e n t :   ( i e 4 ) ?   d o c u m e n t . a l l [ ' t i p D i v ' ] :   ( i e 5 | | n s 5 ) ?   d o c u m e n t . g e t E l e m e n t B y I d ( ' t i p D i v ' ) :   n u l l ;  
 	 t i p c s s   =   ( n s 4 ) ?   d o c u m e n t . t i p D i v :   t o o l t i p . s t y l e ;  
 	 i f   ( i e 4 | | i e 5 | | n s 5 )   { 	    
 	 	 t i p c s s . w i d t h   =   t i p W i d t h + " p x " ;  
 	 	 t i p c s s . f o n t F a m i l y   =   t i p F o n t F a m i l y ;  
 	 	 t i p c s s . f o n t S i z e   =   t i p F o n t S i z e ;  
 	 	 t i p c s s . c o l o r   =   t i p F o n t C o l o r ;  
 	 	 t i p c s s . b a c k g r o u n d C o l o r   =   t i p B g C o l o r ;  
 	 	 t i p c s s . b o r d e r C o l o r   =   t i p B o r d e r C o l o r ;  
 	 	 t i p c s s . b o r d e r W i d t h   =   t i p B o r d e r W i d t h + " p x " ;  
 	 	 t i p c s s . p a d d i n g   =   t i p P a d d i n g + " p x " ;  
 	 	 t i p c s s . b o r d e r S t y l e   =   t i p B o r d e r S t y l e ;  
 	 }  
 	 i f   ( t o o l t i p & & t i p F o l l o w M o u s e )   {  
 	 	 i f   ( n s 4 )   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   =   t r a c k M o u s e ;  
 	 }  
 }  
  
 w i n d o w . o n l o a d   =   i n i t T i p ;  
  
 v a r   t 1 , t 2 ; 	    
 v a r   t i p O n   =   f a l s e ; 	    
 f u n c t i o n   d o T o o l t i p ( e v t , n u m )   {  
 	 i f   ( ! t o o l t i p )   r e t u r n ;  
 	 i f   ( t 1 )   c l e a r T i m e o u t ( t 1 ) ; 	 i f   ( t 2 )   c l e a r T i m e o u t ( t 2 ) ;  
 	 t i p O n   =   t r u e ;  
    
 	 i f   ( m e s s a g e s [ n u m ] [ 2 ] ) 	 v a r   c u r B g C o l o r   =   m e s s a g e s [ n u m ] [ 2 ] ;  
 	 e l s e   c u r B g C o l o r   =   t i p B g C o l o r ;  
 	 i f   ( m e s s a g e s [ n u m ] [ 3 ] ) 	 v a r   c u r F o n t C o l o r   =   m e s s a g e s [ n u m ] [ 3 ] ;  
 	 e l s e   c u r F o n t C o l o r   =   t i p F o n t C o l o r ;  
 	 i f   ( n s 4 )   {  
 	 	 v a r   t i p   =   ' < t a b l e   b g c o l o r = " '   +   t i p B o r d e r C o l o r   +   ' "   w i d t h = " '   +   t i p W i d t h   +   ' "   c e l l s p a c i n g = " 0 "   c e l l p a d d i n g = " '   +   t i p B o r d e r W i d t h   +   ' "   b o r d e r = " 0 " > < t r > < t d > < t a b l e   b g c o l o r = " '   +   c u r B g C o l o r   +   ' "   w i d t h = " 1 0 0 % "   c e l l s p a c i n g = " 0 "   c e l l p a d d i n g = " '   +   t i p P a d d i n g   +   ' "   b o r d e r = " 0 " > < t r > < t d > ' +   s t a r t S t r   +   ' i m a g e / '   +   m e s s a g e s [ n u m ] [ 0 ]   +   m i d S t r   +   ' < s p a n   s t y l e = " f o n t - f a m i l y : '   +   t i p F o n t F a m i l y   +   ' ;   f o n t - s i z e : '   +   t i p F o n t S i z e   +   ' ;   c o l o r : '   +   c u r F o n t C o l o r   +   ' ; " > '   +   m e s s a g e s [ n u m ] [ 1 ]   +   ' < / s p a n > '   +   e n d S t r   +   ' < / t d > < / t r > < / t a b l e > < / t d > < / t r > < / t a b l e > ' ;  
 	 	 t o o l t i p . w r i t e ( t i p ) ;  
 	 	 t o o l t i p . c l o s e ( ) ;  
 	 }   e l s e   i f   ( i e 4 | | i e 5 | | n s 5 )   {  
 	 	 v a r   t i p   =   s t a r t S t r   +   ' i m a g e / '   +   m e s s a g e s [ n u m ] [ 0 ]   +   m i d S t r   +   ' < s p a n   < s t r o n g   s t y l e = " f o n t - f a m i l y : '   +   t i p F o n t F a m i l y   +   ' ;   f o n t - s i z e : '   +   t i p F o n t S i z e   +   ' ;   c o l o r : '   +   c u r F o n t C o l o r   +   ' ; " > '   +   m e s s a g e s [ n u m ] [ 1 ]   +   ' < / s t r o n g > < / s p a n > '   +   e n d S t r ;  
 	 	 t i p c s s . b a c k g r o u n d C o l o r   =   c u r B g C o l o r ;  
 	   	 t o o l t i p . i n n e r H T M L   =   t i p ;  
 	 }  
 	 i f   ( ! t i p F o l l o w M o u s e )   p o s i t i o n T i p ( e v t ) ;  
 	 e l s e   t 1 = s e t T i m e o u t ( " t i p c s s . v i s i b i l i t y = ' v i s i b l e ' " , 1 0 0 ) ;  
 }  
  
 v a r   m o u s e X ,   m o u s e Y ;  
 f u n c t i o n   t r a c k M o u s e ( e v t )   {  
 	 m o u s e X   =   ( n s 4 | | n s 5 ) ?   e v t . p a g e X :   w i n d o w . 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   =   ( n s 4 | | n s 5 ) ?   e v t . p a g e Y :   w i n d o w . 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   ( t i p O n )   p o s i t i o n T i p ( e v t ) ;  
 }  
  
    
 f u n c t i o n   p o s i t i o n T i p ( e v t )   {  
 	 i f   ( ! t i p F o l l o w M o u s e )   {  
 	 	 m o u s e X   =   ( n s 4 | | n s 5 ) ?   e v t . p a g e X :   w i n d o w . 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   =   ( n s 4 | | n s 5 ) ?   e v t . p a g e Y :   w i n d o w . 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 ;  
 	 }  
    
 	 v a r   t p W d   =   ( n s 4 ) ?   t o o l t i p . w i d t h :   ( i e 4 | | i e 5 ) ?   t o o l t i p . c l i e n t W i d t h :   t o o l t i p . o f f s e t W i d t h ;  
 	 v a r   t p H t   =   ( n s 4 ) ?   t o o l t i p . h e i g h t :   ( i e 4 | | i e 5 ) ?   t o o l t i p . c l i e n t H e i g h t :   t o o l t i p . o f f s e t H e i g h t ;  
    
 	 v a r   w i n W d   =   ( n s 4 | | n s 5 ) ?   w i n d o w . i n n e r W i d t h - 2 0 + w i n d o w . p a g e X O f f s e t :   d o c u m e n t . b o d y . c l i e n t W i d t h + d o c u m e n t . b o d y . s c r o l l L e f t ;  
 	 v a r   w i n H t   =   ( n s 4 | | n s 5 ) ?   w i n d o w . i n n e r H e i g h t - 2 0 + w i n d o w . p a g e Y O f f s e t :   d o c u m e n t . b o d y . c l i e n t H e i g h t + d o c u m e n t . b o d y . s c r o l l T o p ;  
    
 	 i f   ( ( m o u s e X + o f f X + t p W d ) > w i n W d )    
 	 	 t i p c s s . l e f t   =   ( n s 4 ) ?   m o u s e X - ( t p W d + o f f X ) :   m o u s e X - ( t p W d + o f f X ) + " p x " ;  
 	 e l s e   t i p c s s . l e f t   =   ( n s 4 ) ?   m o u s e X + o f f X :   m o u s e X + o f f X + " p x " ;  
 	 i f   ( ( m o u s e Y + o f f Y + t p H t ) > w i n H t )    
 	 	 t i p c s s . t o p   =   ( n s 4 ) ?   w i n H t - ( t p H t + o f f Y ) :   w i n H t - ( t p H t + o f f Y ) + " p x " ;  
 	 e l s e   t i p c s s . t o p   =   ( n s 4 ) ?   m o u s e Y + o f f Y :   m o u s e Y + o f f Y + " p x " ;  
 	 i f   ( ! t i p F o l l o w M o u s e )   t 1 = s e t T i m e o u t ( " t i p c s s . v i s i b i l i t y = ' v i s i b l e ' " , 1 0 0 ) ;  
 }  
  
 f u n c t i o n   h i d e T i p ( )   {  
 	 i f   ( ! t o o l t i p )   r e t u r n ;  
 	 t 2 = s e t T i m e o u t ( " t i p c s s . v i s i b i l i t y = ' h i d d e n ' " , 1 0 0 ) ;  
 	 t i p O n   =   f a l s e ;  
 } 
