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