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