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