ÿþi f   ( t y p e o f   j Q u e r y   ! =   ' u n d e f i n e d ' )   {  
         j Q u e r y ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( $ )   {  
                 v a r   f i l e t y p e s   =   / \ . ( z i p | e x e | p d f | d o c * | x l s * | p p t * | m p 3 ) $ / i ;  
                 v a r   b a s e H r e f   =   ' ' ;  
                 i f   ( j Q u e r y ( ' b a s e ' ) . a t t r ( ' h r e f ' )   ! =   u n d e f i n e d )  
                         b a s e H r e f   =   j Q u e r y ( ' b a s e ' ) . a t t r ( ' h r e f ' ) ;  
                 j Q u e r y ( ' a ' ) . e a c h ( f u n c t i o n ( )   {  
                         v a r   h r e f   =   j Q u e r y ( t h i s ) . a t t r ( ' h r e f ' ) ;  
                         i f   ( h r e f   & &   ( h r e f . m a t c h ( / ^ h t t p s ? \ : / i ) )   & &   ( ! h r e f . m a t c h ( d o c u m e n t . d o m a i n ) ) )   {  
                                 j Q u e r y ( t h i s ) . c l i c k ( f u n c t i o n ( )   {  
                                         v a r   e x t L i n k   =   h r e f . r e p l a c e ( / ^ h t t p s ? \ : \ / \ / / i ,   ' ' ) ;  
                                         _ g a q . p u s h ( [ ' _ t r a c k E v e n t ' ,   ' E x t e r n a l ' ,   ' C l i c k ' ,   e x t L i n k ] ) ;  
                                         i f   ( j Q u e r y ( t h i s ) . a t t r ( ' t a r g e t ' )   ! =   u n d e f i n e d   & &   j Q u e r y ( t h i s ) . a t t r ( ' t a r g e t ' ) . t o L o w e r C a s e ( )   ! =   ' _ b l a n k ' )   {  
                                                 s e t T i m e o u t ( f u n c t i o n ( )   {   l o c a t i o n . h r e f   =   h r e f ;   } ,   2 0 0 ) ;  
                                                 r e t u r n   f a l s e ;  
                                         }  
                                 } ) ;  
                         }  
                         e l s e   i f   ( h r e f   & &   h r e f . m a t c h ( / ^ m a i l t o \ : / i ) )   {  
                                 j Q u e r y ( t h i s ) . c l i c k ( f u n c t i o n ( )   {  
                                         v a r   m a i l L i n k   =   h r e f . r e p l a c e ( / ^ m a i l t o \ : / i ,   ' ' ) ;  
                                         _ g a q . p u s h ( [ ' _ t r a c k E v e n t ' ,   ' E m a i l ' ,   ' C l i c k ' ,   m a i l L i n k ] ) ;  
                                 } ) ;  
                         }  
                         e l s e   i f   ( h r e f   & &   h r e f . m a t c h ( f i l e t y p e s ) )   {  
                                 j Q u e r y ( t h i s ) . c l i c k ( f u n c t i o n ( )   {  
                                         v a r   e x t e n s i o n   =   ( / [ . ] / . e x e c ( h r e f ) )   ?   / [ ^ . ] + $ / . e x e c ( h r e f )   :   u n d e f i n e d ;  
                                         v a r   f i l e P a t h   =   h r e f ;  
                                         _ g a q . p u s h ( [ ' _ t r a c k E v e n t ' ,   ' D o w n l o a d ' ,   ' C l i c k - '   +   e x t e n s i o n ,   f i l e P a t h ] ) ;  
                                         i f   ( j Q u e r y ( t h i s ) . a t t r ( ' t a r g e t ' )   ! =   u n d e f i n e d   & &   j Q u e r y ( t h i s ) . a t t r ( ' t a r g e t ' ) . t o L o w e r C a s e ( )   ! =   ' _ b l a n k ' )   {  
                                                 s e t T i m e o u t ( f u n c t i o n ( )   {   l o c a t i o n . h r e f   =   b a s e H r e f   +   h r e f ;   } ,   2 0 0 ) ;  
                                                 r e t u r n   f a l s e ;  
                                         }  
                                 } ) ;  
                         }  
                 } ) ;  
         } ) ;  
 }  
 
