ÿþ/ *  
   *   T o o l t i p   s c r i p t    
   *   p o w e r e d   b y   j Q u e r y   ( h t t p : / / w w w . j q u e r y . c o m )  
   *    
   *   w r i t t e n   b y   A l e n   G r a k a l i c   ( h t t p : / / c s s g l o b e . c o m )  
   *    
   *   f o r   m o r e   i n f o   v i s i t   h t t p : / / c s s g l o b e . c o m / p o s t / 1 6 9 5 / e a s i e s t - t o o l t i p - a n d - i m a g e - p r e v i e w - u s i n g - j q u e r y  
   *  
   * /  
    
  
  
 t h i s . t o o l t i p   =   f u n c t i o n ( ) { 	  
 	 / *   C O N F I G   * / 	 	  
 	 	 x O f f s e t   =   1 0 ;  
 	 	 y O f f s e t   =   2 0 ; 	 	  
 	 	 / /   t h e s e   2   v a r i a b l e   d e t e r m i n e   p o p u p ' s   d i s t a n c e   f r o m   t h e   c u r s o r  
 	 	 / /   y o u   m i g h t   w a n t   t o   a d j u s t   t o   g e t   t h e   r i g h t   r e s u l t 	 	  
 	 / *   E N D   C O N F I G   * / 	 	  
 	 $ ( " a . t o o l t i p " ) . h o v e r ( f u n c t i o n ( e ) { 	 	 	 	 	 	 	 	 	 	 	      
 	 	 t h i s . t   =   t h i s . t i t l e ;  
 	 	 t h i s . t i t l e   =   " " ; 	 	 	 	 	 	 	 	 	      
 	 	 $ ( " b o d y " ) . a p p e n d ( " < p   i d = ' t o o l t i p ' > " +   t h i s . t   + " < / p > " ) ;  
 	 	 $ ( " # t o o l t i p " )  
 	 	 	 . c s s ( " t o p " , ( e . p a g e Y   -   x O f f s e t )   +   " p x " )  
 	 	 	 . c s s ( " l e f t " , ( e . p a g e X   +   y O f f s e t )   +   " p x " )  
 	 	 	 . f a d e I n ( " f a s t " ) ; 	 	  
         } ,  
 	 f u n c t i o n ( ) {  
 	 	 t h i s . t i t l e   =   t h i s . t ; 	 	  
 	 	 $ ( " # t o o l t i p " ) . r e m o v e ( ) ;  
         } ) ; 	  
 	 $ ( " a . t o o l t i p " ) . m o u s e m o v e ( f u n c t i o n ( e ) {  
 	 	 $ ( " # t o o l t i p " )  
 	 	 	 . c s s ( " t o p " , ( e . p a g e Y   -   x O f f s e t )   +   " p x " )  
 	 	 	 . c s s ( " l e f t " , ( e . p a g e X   +   y O f f s e t )   +   " p x " ) ;  
 	 } ) ; 	 	 	  
 } ;  
  
  
  
 / /   s t a r t i n g   t h e   s c r i p t   o n   p a g e   l o a d  
 $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( ) {  
 	 t o o l t i p ( ) ;  
 } ) ; 
