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