ÿþ/ *  
   *   I m a g e   p r e v i e w   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 . i m a g e P r e v i e w   =   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   =   3 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 . p r e v i e w " ) . 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   =   " " ; 	  
 	 	 v a r   c   =   ( t h i s . t   ! =   " " )   ?   " < b r / > "   +   t h i s . t   :   " " ;  
 	 	 $ ( " b o d y " ) . a p p e n d ( " < p   i d = ' p r e v i e w ' > < i m g   s r c = ' " +   t h i s . h r e f   + " '   a l t = ' I m a g e   p r e v i e w '   / > " +   c   + " < / p > " ) ; 	 	 	 	 	 	 	 	    
 	 	 $ ( " # p r e v i e w " )  
 	 	 	 . 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 ; 	  
 	 	 $ ( " # p r e v i e w " ) . r e m o v e ( ) ;  
         } ) ; 	  
 	 $ ( " a . p r e v i e w " ) . m o u s e m o v e ( f u n c t i o n ( e ) {  
 	 	 $ ( " # p r e v i e w " )  
 	 	 	 . 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 ( ) {  
 	 i m a g e P r e v i e w ( ) ;  
 } ) ; 
