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