ÿþ/ *   C o p y r i g h t   B r i d g e l i n e   S o f t w a r e ,   I n c .   A n   u n p u b l i s h e d   w o r k   c r e a t e d   i n   2 0 1 0 .   A l l   r i g h t s   r e s e r v e d .   T h i s   s o f t w a r e   c o n t a i n s   t h e   c o n f i d e n t i a l   a n d   t r a d e   s e c r e t   i n f o r m a t i o n   o f   B r i d g e l i n e   S o f t w a r e ,   I n c .   ( " B r i d g e l i n e " ) .     C o p y i n g ,   d i s t r i b u t i o n   o r   d i s c l o s u r e   w i t h o u t   B r i d g e l i n e ' s   e x p r e s s   w r i t t e n   p e r m i s s i o n   i s   p r o h i b i t e d .   * / 
 
 / /   C u f o n   F o n t   R e g i s t r a t i o n 
 C u f o n . r e p l a c e ( ' h 1 . p a g e T i t l e ' ) ; 
 C u f o n . r e p l a c e ( ' h 2 ' ) ; 
 C u f o n . r e p l a c e ( ' l a b e l . s e c T i t l e ' ) ; 
 
 / /   J Q u e r y   P l u g i n   -   E q u a l i z e   C o l s   W e b L i n k :   h t t p : / / w w w . t o m d e a t e r . c o m  
 ( f u n c t i o n ( $ ) { $ . f n . e q u a l i z e C o l s = f u n c t i o n ( ) { v a r   h e i g h t = 0 , r e s e t = $ . b r o w s e r . m s i e ? " 1 % " : " a u t o " ; r e t u r n   t h i s . c s s ( " h e i g h t " , r e s e t ) . e a c h ( f u n c t i o n ( ) { h e i g h t = M a t h . m a x ( h e i g h t , t h i s . o f f s e t H e i g h t ) } ) . c s s ( " h e i g h t " , h e i g h t ) . e a c h ( f u n c t i o n ( ) { v a r   h = t h i s . o f f s e t H e i g h t ; i f ( h > h e i g h t ) { $ ( t h i s ) . c s s ( " h e i g h t " , h e i g h t - ( h - h e i g h t ) ) } } ) } } ) ( j Q u e r y ) ; 
  
 f u n c t i o n   s e a r c h S u b m i t C l i c k ( )   {          
         i f   ( t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h ' ) . v a l u e ) . l e n g t h   >   0 )  
                 w i n d o w . l o c a t i o n . a s s i g n ( ' / h o m e / s e a r c h - r e s u l t s ? k = '   +   d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h ' ) . v a l u e )  
         e l s e   {  
                 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h ' ) . v a l u e   =   " S e a r c h   N L C . . . " ;  
                 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h ' ) . s e l e c t ( ) ;  
         }  
 }  
  
 f u n c t i o n   s e a r c h S u b m i t E n t e r ( e )   {          
         v a r   i n t K e y   =   0 ;  
         i f   ( w i n d o w . e v e n t )  
                 i n t K e y   =   e . k e y C o d e ;  
         e l s e  
                 i n t K e y   =   e . w h i c h ;  
  
         i f   ( i n t K e y   = =   1 3 )   {  
  
                 i f   ( t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h ' ) . v a l u e ) . l e n g t h   >   0 )  
                         w i n d o w . l o c a t i o n . a s s i g n ( ' / h o m e / s e a r c h - r e s u l t s ? k = '   +   d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h ' ) . v a l u e )  
                 e l s e   {  
                         d o c u m e n t . g e t E l e m e n t B y I d ( ' A P P I _ s e a r c h T e r m ' ) . v a l u e   =   " S e a r c h   N L C . . . " ;  
                         d o c u m e n t . g e t E l e m e n t B y I d ( ' A P P I _ s e a r c h T e r m ' ) . s e l e c t ( ) ;  
                 }  
                 r e t u r n   f a l s e ;  
         }  
         r e t u r n   t r u e ;  
 }  
  
 / /   R e m o v e s   l e a d i n g   w h i t e s p a c e s  
 f u n c t i o n   L T r i m ( v a l u e )   {  
         v a r   r e   =   / \ s * ( ( \ S + \ s * ) * ) / ;  
         r e t u r n   v a l u e . r e p l a c e ( r e ,   " $ 1 " ) ;  
 }  
  
 / /   R e m o v e s   e n d i n g   w h i t e s p a c e s  
 f u n c t i o n   R T r i m ( v a l u e )   {  
         v a r   r e   =   / ( ( \ s * \ S + ) * ) \ s * / ;  
         r e t u r n   v a l u e . r e p l a c e ( r e ,   " $ 1 " ) ;  
 }  
  
 / /   R e m o v e s   l e a d i n g   a n d   e n d i n g   w h i t e s p a c e s  
 f u n c t i o n   t r i m ( v a l u e )   {  
         r e t u r n   L T r i m ( R T r i m ( v a l u e ) ) ;  
 }  
  
 / /   C l e a r   S e a r c h   T e x t f i e l d  
 $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( )   {  
       $ ( ' . f o r m - s e a r c h   i n p u t ' ) . e a c h ( f u n c t i o n ( )   {    
       v a r   d e f a u l t _ v a l u e   =   t h i s . v a l u e ;    
                 $ ( t h i s ) . f o c u s ( f u n c t i o n ( )   {  
                         i f ( t h i s . v a l u e   = =   d e f a u l t _ v a l u e )   {  
                                 t h i s . v a l u e   =   ' ' ;  
                         }  
                 } ) ;  
                 $ ( t h i s ) . b l u r ( f u n c t i o n ( )   {  
                       i f ( t h i s . v a l u e   = =   ' ' )   {  
                                 t h i s . v a l u e   =   d e f a u l t _ v a l u e ;  
                         }  
                 } ) ;  
         } ) ;  
 } ) ;  
 
