ÿþv a r   c u r r L a n g = ' A ' ;  
 v a r   c o o k i e D o m a i n = ' . f i f a . c o m ' ;  
 v a r   b a s e U r l = ' h t t p : / / a r . f i f a . c o m ' ;  
 v a r   s i t e L a n g = ' a r ' ;  
 v a r   i d S p l i t L e n = 3 ;  
 v a r   n u m W o r d s C o m m e n t = 1 0 0 ;  
 v a r   c o m m e n t s P e r P a g e = 1 0 ;  
 ( f u n c t i o n ( )  
 {  
 v a r   l   =   t h i s ,   g ,   y   =   l . j Q u e r y ,   p   =   l . $ ,   o   =   l . j Q u e r y   =   l . $   =   f u n c t i o n ( E ,   F )   {   r e t u r n   n e w   o . f n . i n i t ( E ,   F )   } ,   D   =   / ^ [ ^ < ] * ( < ( . | \ s ) + > ) [ ^ > ] * $ | ^ # ( [ \ w - ] + ) $ / ,   f   =   / ^ . [ ^ : # \ [ \ . , ] * $ / ;   o . f n   =   o . p r o t o t y p e   =   {   i n i t :   f u n c t i o n ( E ,   H )   {   E   =   E   | |   d o c u m e n t ;   i f   ( E . n o d e T y p e )   {   t h i s [ 0 ]   =   E ;   t h i s . l e n g t h   =   1 ;   t h i s . c o n t e x t   =   E ;   r e t u r n   t h i s   }   i f   ( t y p e o f   E   = = =   " s t r i n g " )   {   v a r   G   =   D . e x e c ( E ) ;   i f   ( G   & &   ( G [ 1 ]   | |   ! H ) )   {   i f   ( G [ 1 ] )   {   E   =   o . c l e a n ( [ G [ 1 ] ] ,   H )   }   e l s e   {   v a r   I   =   d o c u m e n t . g e t E l e m e n t B y I d ( G [ 3 ] ) ;   i f   ( I   & &   I . i d   ! =   G [ 3 ] )   {   r e t u r n   o ( ) . f i n d ( E )   }   v a r   F   =   o ( I   | |   [ ] ) ;   F . c o n t e x t   =   d o c u m e n t ;   F . s e l e c t o r   =   E ;   r e t u r n   F   }   }   e l s e   {   r e t u r n   o ( H ) . f i n d ( E )   }   }   e l s e   {   i f   ( o . i s F u n c t i o n ( E ) )   {   r e t u r n   o ( d o c u m e n t ) . r e a d y ( E )   }   }   i f   ( E . s e l e c t o r   & &   E . c o n t e x t )   {   t h i s . s e l e c t o r   =   E . s e l e c t o r ;   t h i s . c o n t e x t   =   E . c o n t e x t   }   r e t u r n   t h i s . s e t A r r a y ( o . i s A r r a y ( E )   ?   E   :   o . m a k e A r r a y ( E ) )   } ,   s e l e c t o r :   " " ,   j q u e r y :   " 1 . 3 . 2 " ,   s i z e :   f u n c t i o n ( )   {   r e t u r n   t h i s . l e n g t h   } ,   g e t :   f u n c t i o n ( E )   {   r e t u r n   E   = = =   g   ?   A r r a y . p r o t o t y p e . s l i c e . c a l l ( t h i s )   :   t h i s [ E ]   } ,   p u s h S t a c k :   f u n c t i o n ( F ,   H ,   E )   {   v a r   G   =   o ( F ) ;   G . p r e v O b j e c t   =   t h i s ;   G . c o n t e x t   =   t h i s . c o n t e x t ;   i f   ( H   = = =   " f i n d " )   {   G . s e l e c t o r   =   t h i s . s e l e c t o r   +   ( t h i s . s e l e c t o r   ?   "   "   :   " " )   +   E   }   e l s e   {   i f   ( H )   {   G . s e l e c t o r   =   t h i s . s e l e c t o r   +   " . "   +   H   +   " ( "   +   E   +   " ) "   }   }   r e t u r n   G   } ,   s e t A r r a y :   f u n c t i o n ( E )   {   t h i s . l e n g t h   =   0 ;   A r r a y . p r o t o t y p e . p u s h . a p p l y ( t h i s ,   E ) ;   r e t u r n   t h i s   } ,   e a c h :   f u n c t i o n ( F ,   E )   {   r e t u r n   o . e a c h ( t h i s ,   F ,   E )   } ,   i n d e x :   f u n c t i o n ( E )   {   r e t u r n   o . i n A r r a y ( E   & &   E . j q u e r y   ?   E [ 0 ]   :   E ,   t h i s )   } ,   a t t r :   f u n c t i o n ( F ,   H ,   G )   {   v a r   E   =   F ;   i f   ( t y p e o f   F   = = =   " s t r i n g " )   {   i f   ( H   = = =   g )   {   r e t u r n   t h i s [ 0 ]   & &   o [ G   | |   " a t t r " ] ( t h i s [ 0 ] ,   F )   }   e l s e   {   E   =   { } ;   E [ F ]   =   H   }   }   r e t u r n   t h i s . e a c h ( f u n c t i o n ( I )   {   f o r   ( F   i n   E )   {   o . a t t r ( G   ?   t h i s . s t y l e   :   t h i s ,   F ,   o . p r o p ( t h i s ,   E [ F ] ,   G ,   I ,   F ) )   }   } )   } ,   c s s :   f u n c t i o n ( E ,   F )   {   i f   ( ( E   = =   " w i d t h "   | |   E   = =   " h e i g h t " )   & &   p a r s e F l o a t ( F )   <   0 )   {   F   =   g   }   r e t u r n   t h i s . a t t r ( E ,   F ,   " c u r C S S " )   } ,   t e x t :   f u n c t i o n ( F )   {   i f   ( t y p e o f   F   ! = =   " o b j e c t "   & &   F   ! =   n u l l )   {   r e t u r n   t h i s . e m p t y ( ) . a p p e n d ( ( t h i s [ 0 ]   & &   t h i s [ 0 ] . o w n e r D o c u m e n t   | |   d o c u m e n t ) . c r e a t e T e x t N o d e ( F ) )   }   v a r   E   =   " " ;   o . e a c h ( F   | |   t h i s ,   f u n c t i o n ( )   {   o . e a c h ( t h i s . c h i l d N o d e s ,   f u n c t i o n ( )   {   i f   ( t h i s . n o d e T y p e   ! =   8 )   {   E   + =   t h i s . n o d e T y p e   ! =   1   ?   t h i s . n o d e V a l u e   :   o . f n . t e x t ( [ t h i s ] )   }   } )   } ) ;   r e t u r n   E   } ,   w r a p A l l :   f u n c t i o n ( E )   {   i f   ( t h i s [ 0 ] )   {   v a r   F   =   o ( E ,   t h i s [ 0 ] . o w n e r D o c u m e n t ) . c l o n e ( ) ;   i f   ( t h i s [ 0 ] . p a r e n t N o d e )   {   F . i n s e r t B e f o r e ( t h i s [ 0 ] )   }   F . m a p ( f u n c t i o n ( )   {   v a r   G   =   t h i s ;   w h i l e   ( G . f i r s t C h i l d )   {   G   =   G . f i r s t C h i l d   }   r e t u r n   G   } ) . a p p e n d ( t h i s )   }   r e t u r n   t h i s   } ,   w r a p I n n e r :   f u n c t i o n ( E )   {   r e t u r n   t h i s . e a c h ( f u n c t i o n ( )   {   o ( t h i s ) . c o n t e n t s ( ) . w r a p A l l ( E )   } )   } ,   w r a p :   f u n c t i o n ( E )   {   r e t u r n   t h i s . e a c h ( f u n c t i o n ( )   {   o ( t h i s ) . w r a p A l l ( E )   } )   } ,   a p p e n d :   f u n c t i o n ( )   {   r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s ,   t r u e ,   f u n c t i o n ( E )   {   i f   ( t h i s . n o d e T y p e   = =   1 )   {   t h i s . a p p e n d C h i l d ( E )   }   } )   } ,   p r e p e n d :   f u n c t i o n ( )   {   r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s ,   t r u e ,   f u n c t i o n ( E )   {   i f   ( t h i s . n o d e T y p e   = =   1 )   {   t h i s . i n s e r t B e f o r e ( E ,   t h i s . f i r s t C h i l d )   }   } )   } ,   b e f o r e :   f u n c t i o n ( )   {   r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s ,   f a l s e ,   f u n c t i o n ( E )   {   t h i s . p a r e n t N o d e . i n s e r t B e f o r e ( E ,   t h i s )   } )   } ,   a f t e r :   f u n c t i o n ( )   {   r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s ,   f a l s e ,   f u n c t i o n ( E )   {   t h i s . p a r e n t N o d e . i n s e r t B e f o r e ( E ,   t h i s . n e x t S i b l i n g )   } )   } ,   e n d :   f u n c t i o n ( )   {   r e t u r n   t h i s . p r e v O b j e c t   | |   o ( [ ] )   } ,   p u s h :   [ ] . p u s h ,   s o r t :   [ ] . s o r t ,   s p l i c e :   [ ] . s p l i c e ,   f i n d :   f u n c t i o n ( E )   {   i f   ( t h i s . l e n g t h   = = =   1 )   {   v a r   F   =   t h i s . p u s h S t a c k ( [ ] ,   " f i n d " ,   E ) ;   F . l e n g t h   =   0 ;   o . f i n d ( E ,   t h i s [ 0 ] ,   F ) ;   r e t u r n   F   }   e l s e   {   r e t u r n   t h i s . p u s h S t a c k ( o . u n i q u e ( o . m a p ( t h i s ,   f u n c t i o n ( G )   {   r e t u r n   o . f i n d ( E ,   G )   } ) ) ,   " f i n d " ,   E )   }   } ,   c l o n e :   f u n c t i o n ( G )   {   v a r   E   =   t h i s . m a p ( f u n c t i o n ( )   {   i f   ( ! o . s u p p o r t . n o C l o n e E v e n t   & &   ! o . i s X M L D o c ( t h i s ) )   {   v a r   I   =   t h i s . o u t e r H T M L ;   i f   ( ! I )   {   v a r   J   =   t h i s . o w n e r D o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ;   J . a p p e n d C h i l d ( t h i s . c l o n e N o d e ( t r u e ) ) ;   I   =   J . i n n e r H T M L   }   r e t u r n   o . c l e a n ( [ I . r e p l a c e ( /   j Q u e r y \ d + = " ( ? : \ d + | n u l l ) " / g ,   " " ) . r e p l a c e ( / ^ \ s * / ,   " " ) ] ) [ 0 ]   }   e l s e   {   r e t u r n   t h i s . c l o n e N o d e ( t r u e )   }   } ) ;   i f   ( G   = = =   t r u e )   {   v a r   H   =   t h i s . f i n d ( " * " ) . a n d S e l f ( ) ,   F   =   0 ;   E . f i n d ( " * " ) . a n d S e l f ( ) . e a c h ( f u n c t i o n ( )   {   i f   ( t h i s . n o d e N a m e   ! = =   H [ F ] . n o d e N a m e )   {   r e t u r n   }   v a r   I   =   o . d a t a ( H [ F ] ,   " e v e n t s " ) ;   f o r   ( v a r   K   i n   I )   {   f o r   ( v a r   J   i n   I [ K ] )   {   o . e v e n t . a d d ( t h i s ,   K ,   I [ K ] [ J ] ,   I [ K ] [ J ] . d a t a )   }   }   F + +   } )   }   r e t u r n   E   } ,   f i l t e r :   f u n c t i o n ( E )   {   r e t u r n   t h i s . p u s h S t a c k ( o . i s F u n c t i o n ( E )   & &   o . g r e p ( t h i s ,   f u n c t i o n ( G ,   F )   {   r e t u r n   E . c a l l ( G ,   F )   } )   | |   o . m u l t i F i l t e r ( E ,   o . g r e p ( t h i s ,   f u n c t i o n ( F )   {   r e t u r n   F . n o d e T y p e   = = =   1   } ) ) ,   " f i l t e r " ,   E )   } ,   c l o s e s t :   f u n c t i o n ( E )   {   v a r   G   =   o . e x p r . m a t c h . P O S . t e s t ( E )   ?   o ( E )   :   n u l l ,   F   =   0 ;   r e t u r n   t h i s . m a p ( f u n c t i o n ( )   {   v a r   H   =   t h i s ;   w h i l e   ( H   & &   H . o w n e r D o c u m e n t )   {   i f   ( G   ?   G . i n d e x ( H )   >   - 1   :   o ( H ) . i s ( E ) )   {   o . d a t a ( H ,   " c l o s e s t " ,   F ) ;   r e t u r n   H   }   H   =   H . p a r e n t N o d e ;   F + +   }   } )   } ,   n o t :   f u n c t i o n ( E )   {   i f   ( t y p e o f   E   = = =   " s t r i n g " )   {   i f   ( f . t e s t ( E ) )   {   r e t u r n   t h i s . p u s h S t a c k ( o . m u l t i F i l t e r ( E ,   t h i s ,   t r u e ) ,   " n o t " ,   E )   }   e l s e   {   E   =   o . m u l t i F i l t e r ( E ,   t h i s )   }   }   v a r   F   =   E . l e n g t h   & &   E [ E . l e n g t h   -   1 ]   ! = =   g   & &   ! E . n o d e T y p e ;   r e t u r n   t h i s . f i l t e r ( f u n c t i o n ( )   {   r e t u r n   F   ?   o . i n A r r a y ( t h i s ,   E )   <   0   :   t h i s   ! =   E   } )   } ,   a d d :   f u n c t i o n ( E )   {   r e t u r n   t h i s . p u s h S t a c k ( o . u n i q u e ( o . m e r g e ( t h i s . g e t ( ) ,   t y p e o f   E   = = =   " s t r i n g "   ?   o ( E )   :   o . m a k e A r r a y ( E ) ) ) )   } ,   i s :   f u n c t i o n ( E )   {   r e t u r n   ! ! E   & &   o . m u l t i F i l t e r ( E ,   t h i s ) . l e n g t h   >   0   } ,   h a s C l a s s :   f u n c t i o n ( E )   {   r e t u r n   ! ! E   & &   t h i s . i s ( " . "   +   E )   } ,   v a l :   f u n c t i o n ( K )   {   i f   ( K   = = =   g )   {   v a r   E   =   t h i s [ 0 ] ;   i f   ( E )   {   i f   ( o . n o d e N a m e ( E ,   " o p t i o n " ) )   {   r e t u r n   ( E . a t t r i b u t e s . v a l u e   | |   { } ) . s p e c i f i e d   ?   E . v a l u e   :   E . t e x t   }   i f   ( o . n o d e N a m e ( E ,   " s e l e c t " ) )   {   v a r   I   =   E . s e l e c t e d I n d e x ,   L   =   [ ] ,   M   =   E . o p t i o n s ,   H   =   E . t y p e   = =   " s e l e c t - o n e " ;   i f   ( I   <   0 )   {   r e t u r n   n u l l   }   f o r   ( v a r   F   =   H   ?   I   :   0 ,   J   =   H   ?   I   +   1   :   M . l e n g t h ;   F   <   J ;   F + + )   {   v a r   G   =   M [ F ] ;   i f   ( G . s e l e c t e d )   {   K   =   o ( G ) . v a l ( ) ;   i f   ( H )   {   r e t u r n   K   }   L . p u s h ( K )   }   }   r e t u r n   L   }   r e t u r n   ( E . v a l u e   | |   " " ) . r e p l a c e ( / \ r / g ,   " " )   }   r e t u r n   g   }   i f   ( t y p e o f   K   = = =   " n u m b e r " )   {   K   + =   " "   }   r e t u r n   t h i s . e a c h ( f u n c t i o n ( )   {   i f   ( t h i s . n o d e T y p e   ! =   1 )   {   r e t u r n   }   i f   ( o . i s A r r a y ( K )   & &   / r a d i o | c h e c k b o x / . t e s t ( t h i s . t y p e ) )   {   t h i s . c h e c k e d   =   ( o . i n A r r a y ( t h i s . v a l u e ,   K )   > =   0   | |   o . i n A r r a y ( t h i s . n a m e ,   K )   > =   0 )   }   e l s e   {   i f   ( o . n o d e N a m e ( t h i s ,   " s e l e c t " ) )   {   v a r   N   =   o . m a k e A r r a y ( K ) ;   o ( " o p t i o n " ,   t h i s ) . e a c h ( f u n c t i o n ( )   {   t h i s . s e l e c t e d   =   ( o . i n A r r a y ( t h i s . v a l u e ,   N )   > =   0   | |   o . i n A r r a y ( t h i s . t e x t ,   N )   > =   0 )   } ) ;   i f   ( ! N . l e n g t h )   {   t h i s . s e l e c t e d I n d e x   =   - 1   }   }   e l s e   {   t h i s . v a l u e   =   K   }   }   } )   } ,   h t m l :   f u n c t i o n ( E )   {   r e t u r n   E   = = =   g   ?   ( t h i s [ 0 ]   ?   t h i s [ 0 ] . i n n e r H T M L . r e p l a c e ( /   j Q u e r y \ d + = " ( ? : \ d + | n u l l ) " / g ,   " " )   :   n u l l )   :   t h i s . e m p t y ( ) . a p p e n d ( E )   } ,   r e p l a c e W i t h :   f u n c t i o n ( E )   {   r e t u r n   t h i s . a f t e r ( E ) . r e m o v e ( )   } ,   e q :   f u n c t i o n ( E )   {   r e t u r n   t h i s . s l i c e ( E ,   + E   +   1 )   } ,   s l i c e :   f u n c t i o n ( )   {   r e t u r n   t h i s . p u s h S t a c k ( A r r a y . p r o t o t y p e . s l i c e . a p p l y ( t h i s ,   a r g u m e n t s ) ,   " s l i c e " ,   A r r a y . p r o t o t y p e . s l i c e . c a l l ( a r g u m e n t s ) . j o i n ( " , " ) )   } ,   m a p :   f u n c t i o n ( E )   {   r e t u r n   t h i s . p u s h S t a c k ( o . m a p ( t h i s ,   f u n c t i o n ( G ,   F )   {   r e t u r n   E . c a l l ( G ,   F ,   G )   } ) )   } ,   a n d S e l f :   f u n c t i o n ( )   {   r e t u r n   t h i s . a d d ( t h i s . p r e v O b j e c t )   } ,   d o m M a n i p :   f u n c t i o n ( J ,   M ,   L )   {   i f   ( t h i s [ 0 ] )   {   v a r   I   =   ( t h i s [ 0 ] . o w n e r D o c u m e n t   | |   t h i s [ 0 ] ) . c r e a t e D o c u m e n t F r a g m e n t ( ) ,   F   =   o . c l e a n ( J ,   ( t h i s [ 0 ] . o w n e r D o c u m e n t   | |   t h i s [ 0 ] ) ,   I ) ,   H   =   I . f i r s t C h i l d ;   i f   ( H )   {   f o r   ( v a r   G   =   0 ,   E   =   t h i s . l e n g t h ;   G   <   E ;   G + + )   {   L . c a l l ( K ( t h i s [ G ] ,   H ) ,   t h i s . l e n g t h   >   1   | |   G   >   0   ?   I . c l o n e N o d e ( t r u e )   :   I )   }   }   i f   ( F )   {   o . e a c h ( F ,   z )   }   }   r e t u r n   t h i s ;   f u n c t i o n   K ( N ,   O )   {   r e t u r n   M   & &   o . n o d e N a m e ( N ,   " t a b l e " )   & &   o . n o d e N a m e ( O ,   " t r " )   ?   ( N . g e t E l e m e n t s B y T a g N a m e ( " t b o d y " ) [ 0 ]   | |   N . a p p e n d C h i l d ( N . o w n e r D o c u m e n t . c r e a t e E l e m e n t ( " t b o d y " ) ) )   :   N   }   }   } ;   o . f n . i n i t . p r o t o t y p e   =   o . f n ;   f u n c t i o n   z ( E ,   F )   {   i f   ( F . s r c )   {   o . a j a x ( {   u r l :   F . s r c ,   a s y n c :   f a l s e ,   d a t a T y p e :   " s c r i p t "   } )   }   e l s e   {   o . g l o b a l E v a l ( F . t e x t   | |   F . t e x t C o n t e n t   | |   F . i n n e r H T M L   | |   " " )   }   i f   ( F . p a r e n t N o d e )   {   F . p a r e n t N o d e . r e m o v e C h i l d ( F )   }   }   f u n c t i o n   e ( )   {   r e t u r n   + n e w   D a t e   }   o . e x t e n d   =   o . f n . e x t e n d   =   f u n c t i o n ( )   {   v a r   J   =   a r g u m e n t s [ 0 ]   | |   { } ,   H   =   1 ,   I   =   a r g u m e n t s . l e n g t h ,   E   =   f a l s e ,   G ;   i f   ( t y p e o f   J   = = =   " b o o l e a n " )   {   E   =   J ;   J   =   a r g u m e n t s [ 1 ]   | |   { } ;   H   =   2   }   i f   ( t y p e o f   J   ! = =   " o b j e c t "   & &   ! o . i s F u n c t i o n ( J ) )   {   J   =   { }   }   i f   ( I   = =   H )   {   J   =   t h i s ;   - - H   }   f o r   ( ;   H   <   I ;   H + + )   {   i f   ( ( G   =   a r g u m e n t s [ H ] )   ! =   n u l l )   {   f o r   ( v a r   F   i n   G )   {   v a r   K   =   J [ F ] ,   L   =   G [ F ] ;   i f   ( J   = = =   L )   {   c o n t i n u e   }   i f   ( E   & &   L   & &   t y p e o f   L   = = =   " o b j e c t "   & &   ! L . n o d e T y p e )   {   J [ F ]   =   o . e x t e n d ( E ,   K   | |   ( L . l e n g t h   ! =   n u l l   ?   [ ]   :   { } ) ,   L )   }   e l s e   {   i f   ( L   ! = =   g )   {   J [ F ]   =   L   }   }   }   }   }   r e t u r n   J   } ;   v a r   b   =   / z - ? i n d e x | f o n t - ? w e i g h t | o p a c i t y | z o o m | l i n e - ? h e i g h t / i ,   q   =   d o c u m e n t . d e f a u l t V i e w   | |   { } ,   s   =   O b j e c t . p r o t o t y p e . t o S t r i n g ;   o . e x t e n d ( {   n o C o n f l i c t :   f u n c t i o n ( E )   {   l . $   =   p ;   i f   ( E )   {   l . j Q u e r y   =   y   }   r e t u r n   o   } ,   i s F u n c t i o n :   f u n c t i o n ( E )   {   r e t u r n   s . c a l l ( E )   = = =   " [ o b j e c t   F u n c t i o n ] "   } ,   i s A r r a y :   f u n c t i o n ( E )   {   r e t u r n   s . c a l l ( E )   = = =   " [ o b j e c t   A r r a y ] "   } ,   i s X M L D o c :   f u n c t i o n ( E )   {   r e t u r n   E . n o d e T y p e   = = =   9   & &   E . d o c u m e n t E l e m e n t . n o d e N a m e   ! = =   " H T M L "   | |   ! ! E . o w n e r D o c u m e n t   & &   o . i s X M L D o c ( E . o w n e r D o c u m e n t )   } ,   g l o b a l E v a l :   f u n c t i o n ( G )   {   i f   ( G   & &   / \ S / . t e s t ( G ) )   {   v a r   F   =   d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " h e a d " ) [ 0 ]   | |   d o c u m e n t . d o c u m e n t E l e m e n t ,   E   =   d o c u m e n t . c r e a t e E l e m e n t ( " s c r i p t " ) ;   E . t y p e   =   " t e x t / j a v a s c r i p t " ;   i f   ( o . s u p p o r t . s c r i p t E v a l )   {   E . a p p e n d C h i l d ( d o c u m e n t . c r e a t e T e x t N o d e ( G ) )   }   e l s e   {   E . t e x t   =   G   }   F . i n s e r t B e f o r e ( E ,   F . f i r s t C h i l d ) ;   F . r e m o v e C h i l d ( E )   }   } ,   n o d e N a m e :   f u n c t i o n ( F ,   E )   {   r e t u r n   F . n o d e N a m e   & &   F . n o d e N a m e . t o U p p e r C a s e ( )   = =   E . t o U p p e r C a s e ( )   } ,   e a c h :   f u n c t i o n ( G ,   K ,   F )   {   v a r   E ,   H   =   0 ,   I   =   G . l e n g t h ;   i f   ( F )   {   i f   ( I   = = =   g )   {   f o r   ( E   i n   G )   {   i f   ( K . a p p l y ( G [ E ] ,   F )   = = =   f a l s e )   {   b r e a k   }   }   }   e l s e   {   f o r   ( ;   H   <   I ;   )   {   i f   ( K . a p p l y ( G [ H + + ] ,   F )   = = =   f a l s e )   {   b r e a k   }   }   }   }   e l s e   {   i f   ( I   = = =   g )   {   f o r   ( E   i n   G )   {   i f   ( K . c a l l ( G [ E ] ,   E ,   G [ E ] )   = = =   f a l s e )   {   b r e a k   }   }   }   e l s e   {   f o r   ( v a r   J   =   G [ 0 ] ;   H   <   I   & &   K . c a l l ( J ,   H ,   J )   ! = =   f a l s e ;   J   =   G [ + + H ] )   {   }   }   }   r e t u r n   G   } ,   p r o p :   f u n c t i o n ( H ,   I ,   G ,   F ,   E )   {   i f   ( o . i s F u n c t i o n ( I ) )   {   I   =   I . c a l l ( H ,   F )   }   r e t u r n   t y p e o f   I   = = =   " n u m b e r "   & &   G   = =   " c u r C S S "   & &   ! b . t e s t ( E )   ?   I   +   " p x "   :   I   } ,   c l a s s N a m e :   {   a d d :   f u n c t i o n ( E ,   F )   {   o . e a c h ( ( F   | |   " " ) . s p l i t ( / \ s + / ) ,   f u n c t i o n ( G ,   H )   {   i f   ( E . n o d e T y p e   = =   1   & &   ! o . c l a s s N a m e . h a s ( E . c l a s s N a m e ,   H ) )   {   E . c l a s s N a m e   + =   ( E . c l a s s N a m e   ?   "   "   :   " " )   +   H   }   } )   } ,   r e m o v e :   f u n c t i o n ( E ,   F )   {   i f   ( E . n o d e T y p e   = =   1 )   {   E . c l a s s N a m e   =   F   ! = =   g   ?   o . g r e p ( E . c l a s s N a m e . s p l i t ( / \ s + / ) ,   f u n c t i o n ( G )   {   r e t u r n   ! o . c l a s s N a m e . h a s ( F ,   G )   } ) . j o i n ( "   " )   :   " "   }   } ,   h a s :   f u n c t i o n ( F ,   E )   {   r e t u r n   F   & &   o . i n A r r a y ( E ,   ( F . c l a s s N a m e   | |   F ) . t o S t r i n g ( ) . s p l i t ( / \ s + / ) )   >   - 1   }   } ,   s w a p :   f u n c t i o n ( H ,   G ,   I )   {   v a r   E   =   { } ;   f o r   ( v a r   F   i n   G )   {   E [ F ]   =   H . s t y l e [ F ] ;   H . s t y l e [ F ]   =   G [ F ]   }   I . c a l l ( H ) ;   f o r   ( v a r   F   i n   G )   {   H . s t y l e [ F ]   =   E [ F ]   }   } ,   c s s :   f u n c t i o n ( H ,   F ,   J ,   E )   {   i f   ( F   = =   " w i d t h "   | |   F   = =   " h e i g h t " )   {   v a r   L ,   G   =   {   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 " ,   d i s p l a y :   " b l o c k "   } ,   K   =   F   = =   " w i d t h "   ?   [ " L e f t " ,   " R i g h t " ]   :   [ " T o p " ,   " B o t t o m " ] ;   f u n c t i o n   I ( )   {   L   =   F   = =   " w i d t h "   ?   H . o f f s e t W i d t h   :   H . o f f s e t H e i g h t ;   i f   ( E   = = =   " b o r d e r " )   {   r e t u r n   }   o . e a c h ( K ,   f u n c t i o n ( )   {   i f   ( ! E )   {   L   - =   p a r s e F l o a t ( o . c u r C S S ( H ,   " p a d d i n g "   +   t h i s ,   t r u e ) )   | |   0   }   i f   ( E   = = =   " m a r g i n " )   {   L   + =   p a r s e F l o a t ( o . c u r C S S ( H ,   " m a r g i n "   +   t h i s ,   t r u e ) )   | |   0   }   e l s e   {   L   - =   p a r s e F l o a t ( o . c u r C S S ( H ,   " b o r d e r "   +   t h i s   +   " W i d t h " ,   t r u e ) )   | |   0   }   } )   }   i f   ( H . o f f s e t W i d t h   ! = =   0 )   {   I ( )   }   e l s e   {   o . s w a p ( H ,   G ,   I )   }   r e t u r n   M a t h . m a x ( 0 ,   M a t h . r o u n d ( L ) )   }   r e t u r n   o . c u r C S S ( H ,   F ,   J )   } ,   c u r C S S :   f u n c t i o n ( I ,   F ,   G )   {   v a r   L ,   E   =   I . s t y l e ;   i f   ( F   = =   " o p a c i t y "   & &   ! o . s u p p o r t . o p a c i t y )   {   L   =   o . a t t r ( E ,   " o p a c i t y " ) ;   r e t u r n   L   = =   " "   ?   " 1 "   :   L   }   i f   ( F . m a t c h ( / f l o a t / i ) )   {   F   =   w   }   i f   ( ! G   & &   E   & &   E [ F ] )   {   L   =   E [ F ]   }   e l s e   {   i f   ( q . g e t C o m p u t e d S t y l e )   {   i f   ( F . m a t c h ( / f l o a t / i ) )   {   F   =   " f l o a t "   }   F   =   F . r e p l a c e ( / ( [ A - Z ] ) / g ,   " - $ 1 " ) . t o L o w e r C a s e ( ) ;   v a r   M   =   q . g e t C o m p u t e d S t y l e ( I ,   n u l l ) ;   i f   ( M )   {   L   =   M . g e t P r o p e r t y V a l u e ( F )   }   i f   ( F   = =   " o p a c i t y "   & &   L   = =   " " )   {   L   =   " 1 "   }   }   e l s e   {   i f   ( I . c u r r e n t S t y l e )   {   v a r   J   =   F . r e p l a c e ( / \ - ( \ w ) / g ,   f u n c t i o n ( N ,   O )   {   r e t u r n   O . t o U p p e r C a s e ( )   } ) ;   L   =   I . c u r r e n t S t y l e [ F ]   | |   I . c u r r e n t S t y l e [ J ] ;   i f   ( ! / ^ \ d + ( p x ) ? $ / i . t e s t ( L )   & &   / ^ \ d / . t e s t ( L ) )   {   v a r   H   =   E . l e f t ,   K   =   I . r u n t i m e S t y l e . l e f t ;   I . r u n t i m e S t y l e . l e f t   =   I . c u r r e n t S t y l e . l e f t ;   E . l e f t   =   L   | |   0 ;   L   =   E . p i x e l L e f t   +   " p x " ;   E . l e f t   =   H ;   I . r u n t i m e S t y l e . l e f t   =   K   }   }   }   }   r e t u r n   L   } ,   c l e a n :   f u n c t i o n ( F ,   K ,   I )   {   K   =   K   | |   d o c u m e n t ;   i f   ( t y p e o f   K . c r e a t e E l e m e n t   = = =   " u n d e f i n e d " )   {   K   =   K . o w n e r D o c u m e n t   | |   K [ 0 ]   & &   K [ 0 ] . o w n e r D o c u m e n t   | |   d o c u m e n t   }   i f   ( ! I   & &   F . l e n g t h   = = =   1   & &   t y p e o f   F [ 0 ]   = = =   " s t r i n g " )   {   v a r   H   =   / ^ < ( \ w + ) \ s * \ / ? > $ / . e x e c ( F [ 0 ] ) ;   i f   ( H )   {   r e t u r n   [ K . c r e a t e E l e m e n t ( H [ 1 ] ) ]   }   }   v a r   G   =   [ ] ,   E   =   [ ] ,   L   =   K . c r e a t e E l e m e n t ( " d i v " ) ;   o . e a c h ( F ,   f u n c t i o n ( P ,   S )   {   i f   ( t y p e o f   S   = = =   " n u m b e r " )   {   S   + =   " "   }   i f   ( ! S )   {   r e t u r n   }   i f   ( t y p e o f   S   = = =   " s t r i n g " )   {   S   =   S . r e p l a c e ( / ( < ( \ w + ) [ ^ > ] * ? ) \ / > / g ,   f u n c t i o n ( U ,   V ,   T )   {   r e t u r n   T . m a t c h ( / ^ ( a b b r | b r | c o l | i m g | i n p u t | l i n k | m e t a | p a r a m | h r | a r e a | e m b e d ) $ / i )   ?   U   :   V   +   " > < / "   +   T   +   " > "   } ) ;   v a r   O   =   S . r e p l a c e ( / ^ \ s + / ,   " " ) . s u b s t r i n g ( 0 ,   1 0 ) . t o L o w e r C a s e ( ) ;   v a r   Q   =   ! O . i n d e x O f ( " < o p t " )   & &   [ 1 ,   " < s e l e c t   m u l t i p l e = ' m u l t i p l e ' > " ,   " < / s e l e c t > " ]   | |   ! O . i n d e x O f ( " < l e g " )   & &   [ 1 ,   " < f i e l d s e t > " ,   " < / f i e l d s e t > " ]   | |   O . m a t c h ( / ^ < ( t h e a d | t b o d y | t f o o t | c o l g | c a p ) / )   & &   [ 1 ,   " < t a b l e > " ,   " < / t a b l e > " ]   | |   ! O . i n d e x O f ( " < t r " )   & &   [ 2 ,   " < t a b l e > < t b o d y > " ,   " < / t b o d y > < / t a b l e > " ]   | |   ( ! O . i n d e x O f ( " < t d " )   | |   ! O . i n d e x O f ( " < t h " ) )   & &   [ 3 ,   " < t a b l e > < t b o d y > < t r > " ,   " < / t r > < / t b o d y > < / t a b l e > " ]   | |   ! O . i n d e x O f ( " < c o l " )   & &   [ 2 ,   " < t a b l e > < t b o d y > < / t b o d y > < c o l g r o u p > " ,   " < / c o l g r o u p > < / t a b l e > " ]   | |   ! o . s u p p o r t . h t m l S e r i a l i z e   & &   [ 1 ,   " d i v < d i v > " ,   " < / d i v > " ]   | |   [ 0 ,   " " ,   " " ] ;   L . i n n e r H T M L   =   Q [ 1 ]   +   S   +   Q [ 2 ] ;   w h i l e   ( Q [ 0 ] - - )   {   L   =   L . l a s t C h i l d   }   i f   ( ! o . s u p p o r t . t b o d y )   {   v a r   R   =   / < t b o d y / i . t e s t ( S ) ,   N   =   ! O . i n d e x O f ( " < t a b l e " )   & &   ! R   ?   L . f i r s t C h i l d   & &   L . f i r s t C h i l d . c h i l d N o d e s   :   Q [ 1 ]   = =   " < t a b l e > "   & &   ! R   ?   L . c h i l d N o d e s   :   [ ] ;   f o r   ( v a r   M   =   N . l e n g t h   -   1 ;   M   > =   0 ;   - - M )   {   i f   ( o . n o d e N a m e ( N [ M ] ,   " t b o d y " )   & &   ! N [ M ] . c h i l d N o d e s . l e n g t h )   {   N [ M ] . p a r e n t N o d e . r e m o v e C h i l d ( N [ M ] )   }   }   }   i f   ( ! o . s u p p o r t . l e a d i n g W h i t e s p a c e   & &   / ^ \ s / . t e s t ( S ) )   {   L . i n s e r t B e f o r e ( K . c r e a t e T e x t N o d e ( S . m a t c h ( / ^ \ s * / ) [ 0 ] ) ,   L . f i r s t C h i l d )   }   S   =   o . m a k e A r r a y ( L . c h i l d N o d e s )   }   i f   ( S . n o d e T y p e )   {   G . p u s h ( S )   }   e l s e   {   G   =   o . m e r g e ( G ,   S )   }   } ) ;   i f   ( I )   {   f o r   ( v a r   J   =   0 ;   G [ J ] ;   J + + )   {   i f   ( o . n o d e N a m e ( G [ J ] ,   " s c r i p t " )   & &   ( ! G [ J ] . t y p e   | |   G [ J ] . t y p e . t o L o w e r C a s e ( )   = = =   " t e x t / j a v a s c r i p t " ) )   {   E . p u s h ( G [ J ] . p a r e n t N o d e   ?   G [ J ] . p a r e n t N o d e . r e m o v e C h i l d ( G [ J ] )   :   G [ J ] )   }   e l s e   {   i f   ( G [ J ] . n o d e T y p e   = = =   1 )   {   G . s p l i c e . a p p l y ( G ,   [ J   +   1 ,   0 ] . c o n c a t ( o . m a k e A r r a y ( G [ J ] . g e t E l e m e n t s B y T a g N a m e ( " s c r i p t " ) ) ) )   }   I . a p p e n d C h i l d ( G [ J ] )   }   }   r e t u r n   E   }   r e t u r n   G   } ,   a t t r :   f u n c t i o n ( J ,   G ,   K )   {   i f   ( ! J   | |   J . n o d e T y p e   = =   3   | |   J . n o d e T y p e   = =   8 )   {   r e t u r n   g   }   v a r   H   =   ! o . i s X M L D o c ( J ) ,   L   =   K   ! = =   g ;   G   =   H   & &   o . p r o p s [ G ]   | |   G ;   i f   ( J . t a g N a m e )   {   v a r   F   =   / h r e f | s r c | s t y l e / . t e s t ( G ) ;   i f   ( G   = =   " s e l e c t e d "   & &   J . p a r e n t N o d e )   {   J . p a r e n t N o d e . s e l e c t e d I n d e x   }   i f   ( G   i n   J   & &   H   & &   ! F )   {   i f   ( L )   {   i f   ( G   = =   " t y p e "   & &   o . n o d e N a m e ( J ,   " i n p u t " )   & &   J . p a r e n t N o d e )   {   t h r o w   " t y p e   p r o p e r t y   c a n ' t   b e   c h a n g e d "   }   J [ G ]   =   K   }   i f   ( o . n o d e N a m e ( J ,   " f o r m " )   & &   J . g e t A t t r i b u t e N o d e ( G ) )   {   r e t u r n   J . g e t A t t r i b u t e N o d e ( G ) . n o d e V a l u e   }   i f   ( G   = =   " t a b I n d e x " )   {   v a r   I   =   J . g e t A t t r i b u t e N o d e ( " t a b I n d e x " ) ;   r e t u r n   I   & &   I . s p e c i f i e d   ?   I . v a l u e   :   J . n o d e N a m e . m a t c h ( / ( b u t t o n | i n p u t | o b j e c t | s e l e c t | t e x t a r e a ) / i )   ?   0   :   J . n o d e N a m e . m a t c h ( / ^ ( a | a r e a ) $ / i )   & &   J . h r e f   ?   0   :   g   }   r e t u r n   J [ G ]   }   i f   ( ! o . s u p p o r t . s t y l e   & &   H   & &   G   = =   " s t y l e " )   {   r e t u r n   o . a t t r ( J . s t y l e ,   " c s s T e x t " ,   K )   }   i f   ( L )   {   J . s e t A t t r i b u t e ( G ,   " "   +   K )   }   v a r   E   =   ! o . s u p p o r t . h r e f N o r m a l i z e d   & &   H   & &   F   ?   J . g e t A t t r i b u t e ( G ,   2 )   :   J . g e t A t t r i b u t e ( G ) ;   r e t u r n   E   = = =   n u l l   ?   g   :   E   }   i f   ( ! o . s u p p o r t . o p a c i t y   & &   G   = =   " o p a c i t y " )   {   i f   ( L )   {   J . z o o m   =   1 ;   J . f i l t e r   =   ( J . f i l t e r   | |   " " ) . r e p l a c e ( / a l p h a \ ( [ ^ ) ] * \ ) / ,   " " )   +   ( p a r s e I n t ( K )   +   " "   = =   " N a N "   ?   " "   :   " a l p h a ( o p a c i t y = "   +   K   *   1 0 0   +   " ) " )   }   r e t u r n   J . f i l t e r   & &   J . f i l t e r . i n d e x O f ( " o p a c i t y = " )   > =   0   ?   ( p a r s e F l o a t ( J . f i l t e r . m a t c h ( / o p a c i t y = ( [ ^ ) ] * ) / ) [ 1 ] )   /   1 0 0 )   +   " "   :   " "   }   G   =   G . r e p l a c e ( / - ( [ a - z ] ) / i g ,   f u n c t i o n ( M ,   N )   {   r e t u r n   N . t o U p p e r C a s e ( )   } ) ;   i f   ( L )   {   J [ G ]   =   K   }   r e t u r n   J [ G ]   } ,   t r i m :   f u n c t i o n ( E )   {   r e t u r n   ( E   | |   " " ) . r e p l a c e ( / ^ \ s + | \ s + $ / g ,   " " )   } ,   m a k e A r r a y :   f u n c t i o n ( G )   {   v a r   E   =   [ ] ;   i f   ( G   ! =   n u l l )   {   v a r   F   =   G . l e n g t h ;   i f   ( F   = =   n u l l   | |   t y p e o f   G   = = =   " s t r i n g "   | |   o . i s F u n c t i o n ( G )   | |   G . s e t I n t e r v a l )   {   E [ 0 ]   =   G   }   e l s e   {   w h i l e   ( F )   {   E [ - - F ]   =   G [ F ]   }   }   }   r e t u r n   E   } ,   i n A r r a y :   f u n c t i o n ( G ,   H )   {   f o r   ( v a r   E   =   0 ,   F   =   H . l e n g t h ;   E   <   F ;   E + + )   {   i f   ( H [ E ]   = = =   G )   {   r e t u r n   E   }   }   r e t u r n   - 1   } ,   m e r g e :   f u n c t i o n ( H ,   E )   {   v a r   F   =   0 ,   G ,   I   =   H . l e n g t h ;   i f   ( ! o . s u p p o r t . g e t A l l )   {   w h i l e   ( ( G   =   E [ F + + ] )   ! =   n u l l )   {   i f   ( G . n o d e T y p e   ! =   8 )   {   H [ I + + ]   =   G   }   }   }   e l s e   {   w h i l e   ( ( G   =   E [ F + + ] )   ! =   n u l l )   {   H [ I + + ]   =   G   }   }   r e t u r n   H   } ,   u n i q u e :   f u n c t i o n ( K )   {   v a r   F   =   [ ] ,   E   =   { } ;   t r y   {   f o r   ( v a r   G   =   0 ,   H   =   K . l e n g t h ;   G   <   H ;   G + + )   {   v a r   J   =   o . d a t a ( K [ G ] ) ;   i f   ( ! E [ J ] )   {   E [ J ]   =   t r u e ;   F . p u s h ( K [ G ] )   }   }   }   c a t c h   ( I )   {   F   =   K   }   r e t u r n   F   } ,   g r e p :   f u n c t i o n ( F ,   J ,   E )   {   v a r   G   =   [ ] ;   f o r   ( v a r   H   =   0 ,   I   =   F . l e n g t h ;   H   <   I ;   H + + )   {   i f   ( ! E   ! =   ! J ( F [ H ] ,   H ) )   {   G . p u s h ( F [ H ] )   }   }   r e t u r n   G   } ,   m a p :   f u n c t i o n ( E ,   J )   {   v a r   F   =   [ ] ;   f o r   ( v a r   G   =   0 ,   H   =   E . l e n g t h ;   G   <   H ;   G + + )   {   v a r   I   =   J ( E [ G ] ,   G ) ;   i f   ( I   ! =   n u l l )   {   F [ F . l e n g t h ]   =   I   }   }   r e t u r n   F . c o n c a t . a p p l y ( [ ] ,   F )   }   } ) ;   v a r   C   =   n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) ;   o . b r o w s e r   =   {   v e r s i o n :   ( C . m a t c h ( / . + ( ? : r v | i t | r a | i e ) [ \ / :   ] ( [ \ d . ] + ) / )   | |   [ 0 ,   " 0 " ] ) [ 1 ] ,   s a f a r i :   / w e b k i t / . t e s t ( C ) ,   o p e r a :   / o p e r a / . t e s t ( C ) ,   m s i e :   / m s i e / . t e s t ( C )   & &   ! / o p e r a / . t e s t ( C ) ,   m o z i l l a :   / m o z i l l a / . t e s t ( C )   & &   ! / ( c o m p a t i b l e | w e b k i t ) / . t e s t ( C )   } ;   o . e a c h ( {   p a r e n t :   f u n c t i o n ( E )   {   r e t u r n   E . p a r e n t N o d e   } ,   p a r e n t s :   f u n c t i o n ( E )   {   r e t u r n   o . d i r ( E ,   " p a r e n t N o d e " )   } ,   n e x t :   f u n c t i o n ( E )   {   r e t u r n   o . n t h ( E ,   2 ,   " n e x t S i b l i n g " )   } ,   p r e v :   f u n c t i o n ( E )   {   r e t u r n   o . n t h ( E ,   2 ,   " p r e v i o u s S i b l i n g " )   } ,   n e x t A l l :   f u n c t i o n ( E )   {   r e t u r n   o . d i r ( E ,   " n e x t S i b l i n g " )   } ,   p r e v A l l :   f u n c t i o n ( E )   {   r e t u r n   o . d i r ( E ,   " p r e v i o u s S i b l i n g " )   } ,   s i b l i n g s :   f u n c t i o n ( E )   {   r e t u r n   o . s i b l i n g ( E . p a r e n t N o d e . f i r s t C h i l d ,   E )   } ,   c h i l d r e n :   f u n c t i o n ( E )   {   r e t u r n   o . s i b l i n g ( E . f i r s t C h i l d )   } ,   c o n t e n t s :   f u n c t i o n ( E )   {   r e t u r n   o . n o d e N a m e ( E ,   " i f r a m e " )   ?   E . c o n t e n t D o c u m e n t   | |   E . c o n t e n t W i n d o w . d o c u m e n t   :   o . m a k e A r r a y ( E . c h i l d N o d e s )   }   } ,   f u n c t i o n ( E ,   F )   {   o . f n [ E ]   =   f u n c t i o n ( G )   {   v a r   H   =   o . m a p ( t h i s ,   F ) ;   i f   ( G   & &   t y p e o f   G   = =   " s t r i n g " )   {   H   =   o . m u l t i F i l t e r ( G ,   H )   }   r e t u r n   t h i s . p u s h S t a c k ( o . u n i q u e ( H ) ,   E ,   G )   }   } ) ;   o . e a c h ( {   a p p e n d T o :   " a p p e n d " ,   p r e p e n d T o :   " p r e p e n d " ,   i n s e r t B e f o r e :   " b e f o r e " ,   i n s e r t A f t e r :   " a f t e r " ,   r e p l a c e A l l :   " r e p l a c e W i t h "   } ,   f u n c t i o n ( E ,   F )   {   o . f n [ E ]   =   f u n c t i o n ( G )   {   v a r   J   =   [ ] ,   L   =   o ( G ) ;   f o r   ( v a r   K   =   0 ,   H   =   L . l e n g t h ;   K   <   H ;   K + + )   {   v a r   I   =   ( K   >   0   ?   t h i s . c l o n e ( t r u e )   :   t h i s ) . g e t ( ) ;   o . f n [ F ] . a p p l y ( o ( L [ K ] ) ,   I ) ;   J   =   J . c o n c a t ( I )   }   r e t u r n   t h i s . p u s h S t a c k ( J ,   E ,   G )   }   } ) ;   o . e a c h ( {   r e m o v e A t t r :   f u n c t i o n ( E )   {   o . a t t r ( t h i s ,   E ,   " " ) ;   i f   ( t h i s . n o d e T y p e   = =   1 )   {   t h i s . r e m o v e A t t r i b u t e ( E )   }   } ,   a d d C l a s s :   f u n c t i o n ( E )   {   o . c l a s s N a m e . a d d ( t h i s ,   E )   } ,   r e m o v e C l a s s :   f u n c t i o n ( E )   {   o . c l a s s N a m e . r e m o v e ( t h i s ,   E )   } ,   t o g g l e C l a s s :   f u n c t i o n ( F ,   E )   {   i f   ( t y p e o f   E   ! = =   " b o o l e a n " )   {   E   =   ! o . c l a s s N a m e . h a s ( t h i s ,   F )   }   o . c l a s s N a m e [ E   ?   " a d d "   :   " r e m o v e " ] ( t h i s ,   F )   } ,   r e m o v e :   f u n c t i o n ( E )   {   i f   ( ! E   | |   o . f i l t e r ( E ,   [ t h i s ] ) . l e n g t h )   {   o ( " * " ,   t h i s ) . a d d ( [ t h i s ] ) . e a c h ( f u n c t i o n ( )   {   o . e v e n t . r e m o v e ( t h i s ) ;   o . r e m o v e D a t a ( t h i s )   } ) ;   i f   ( t h i s . p a r e n t N o d e )   {   t h i s . p a r e n t N o d e . r e m o v e C h i l d ( t h i s )   }   }   } ,   e m p t y :   f u n c t i o n ( )   {   o ( t h i s ) . c h i l d r e n ( ) . r e m o v e ( ) ;   w h i l e   ( t h i s . f i r s t C h i l d )   {   t h i s . r e m o v e C h i l d ( t h i s . f i r s t C h i l d )   }   }   } ,   f u n c t i o n ( E ,   F )   {   o . f n [ E ]   =   f u n c t i o n ( )   {   r e t u r n   t h i s . e a c h ( F ,   a r g u m e n t s )   }   } ) ;   f u n c t i o n   j ( E ,   F )   {   r e t u r n   E [ 0 ]   & &   p a r s e I n t ( o . c u r C S S ( E [ 0 ] ,   F ,   t r u e ) ,   1 0 )   | |   0   }   v a r   h   =   " j Q u e r y "   +   e ( ) ,   v   =   0 ,   A   =   { } ;   o . e x t e n d ( {   c a c h e :   { } ,   d a t a :   f u n c t i o n ( F ,   E ,   G )   {   F   =   F   = =   l   ?   A   :   F ;   v a r   H   =   F [ h ] ;   i f   ( ! H )   {   H   =   F [ h ]   =   + + v   }   i f   ( E   & &   ! o . c a c h e [ H ] )   {   o . c a c h e [ H ]   =   { }   }   i f   ( G   ! = =   g )   {   o . c a c h e [ H ] [ E ]   =   G   }   r e t u r n   E   ?   o . c a c h e [ H ] [ E ]   :   H   } ,   r e m o v e D a t a :   f u n c t i o n ( F ,   E )   {   F   =   F   = =   l   ?   A   :   F ;   v a r   H   =   F [ h ] ;   i f   ( E )   {   i f   ( o . c a c h e [ H ] )   {   d e l e t e   o . c a c h e [ H ] [ E ] ;   E   =   " " ;   f o r   ( E   i n   o . c a c h e [ H ] )   {   b r e a k   }   i f   ( ! E )   {   o . r e m o v e D a t a ( F )   }   }   }   e l s e   {   t r y   {   d e l e t e   F [ h ]   }   c a t c h   ( G )   {   i f   ( F . r e m o v e A t t r i b u t e )   {   F . r e m o v e A t t r i b u t e ( h )   }   }   d e l e t e   o . c a c h e [ H ]   }   } ,   q u e u e :   f u n c t i o n ( F ,   E ,   H )   {   i f   ( F )   {   E   =   ( E   | |   " f x " )   +   " q u e u e " ;   v a r   G   =   o . d a t a ( F ,   E ) ;   i f   ( ! G   | |   o . i s A r r a y ( H ) )   {   G   =   o . d a t a ( F ,   E ,   o . m a k e A r r a y ( H ) )   }   e l s e   {   i f   ( H )   {   G . p u s h ( H )   }   }   }   r e t u r n   G   } ,   d e q u e u e :   f u n c t i o n ( H ,   G )   {   v a r   E   =   o . q u e u e ( H ,   G ) ,   F   =   E . s h i f t ( ) ;   i f   ( ! G   | |   G   = = =   " f x " )   {   F   =   E [ 0 ]   }   i f   ( F   ! = =   g )   {   F . c a l l ( H )   }   }   } ) ;   o . f n . e x t e n d ( {   d a t a :   f u n c t i o n ( E ,   G )   {   v a r   H   =   E . s p l i t ( " . " ) ;   H [ 1 ]   =   H [ 1 ]   ?   " . "   +   H [ 1 ]   :   " " ;   i f   ( G   = = =   g )   {   v a r   F   =   t h i s . t r i g g e r H a n d l e r ( " g e t D a t a "   +   H [ 1 ]   +   " ! " ,   [ H [ 0 ] ] ) ;   i f   ( F   = = =   g   & &   t h i s . l e n g t h )   {   F   =   o . d a t a ( t h i s [ 0 ] ,   E )   }   r e t u r n   F   = = =   g   & &   H [ 1 ]   ?   t h i s . d a t a ( H [ 0 ] )   :   F   }   e l s e   {   r e t u r n   t h i s . t r i g g e r ( " s e t D a t a "   +   H [ 1 ]   +   " ! " ,   [ H [ 0 ] ,   G ] ) . e a c h ( f u n c t i o n ( )   {   o . d a t a ( t h i s ,   E ,   G )   } )   }   } ,   r e m o v e D a t a :   f u n c t i o n ( E )   {   r e t u r n   t h i s . e a c h ( f u n c t i o n ( )   {   o . r e m o v e D a t a ( t h i s ,   E )   } )   } ,   q u e u e :   f u n c t i o n ( E ,   F )   {   i f   ( t y p e o f   E   ! = =   " s t r i n g " )   {   F   =   E ;   E   =   " f x "   }   i f   ( F   = = =   g )   {   r e t u r n   o . q u e u e ( t h i s [ 0 ] ,   E )   }   r e t u r n   t h i s . e a c h ( f u n c t i o n ( )   {   v a r   G   =   o . q u e u e ( t h i s ,   E ,   F ) ;   i f   ( E   = =   " f x "   & &   G . l e n g t h   = =   1 )   {   G [ 0 ] . c a l l ( t h i s )   }   } )   } ,   d e q u e u e :   f u n c t i o n ( E )   {   r e t u r n   t h i s . e a c h ( f u n c t i o n ( )   {   o . d e q u e u e ( t h i s ,   E )   } )   }   } ) ;  
 ( f u n c t i o n ( )   {   v a r   R   =   / ( ( ? : \ ( ( ? : \ ( [ ^ ( ) ] + \ ) | [ ^ ( ) ] + ) + \ ) | \ [ ( ? : \ [ [ ^ [ \ ] ] * \ ] | [ ' " ] [ ^ ' " ] * [ ' " ] | [ ^ [ \ ] ' " ] + ) + \ ] | \ \ . | [ ^   > + ~ , ( \ [ \ \ ] + ) + | [ > + ~ ] ) ( \ s * , \ s * ) ? / g ,   L   =   0 ,   H   =   O b j e c t . p r o t o t y p e . t o S t r i n g ;   v a r   F   =   f u n c t i o n ( Y ,   U ,   a b ,   a c )   {   a b   =   a b   | |   [ ] ;   U   =   U   | |   d o c u m e n t ;   i f   ( U . n o d e T y p e   ! = =   1   & &   U . n o d e T y p e   ! = =   9 )   {   r e t u r n   [ ]   }   i f   ( ! Y   | |   t y p e o f   Y   ! = =   " s t r i n g " )   {   r e t u r n   a b   }   v a r   Z   =   [ ] ,   W ,   a f ,   a i ,   T ,   a d ,   V ,   X   =   t r u e ;   R . l a s t I n d e x   =   0 ;   w h i l e   ( ( W   =   R . e x e c ( Y ) )   ! = =   n u l l )   {   Z . p u s h ( W [ 1 ] ) ;   i f   ( W [ 2 ] )   {   V   =   R e g E x p . r i g h t C o n t e x t ;   b r e a k   }   }   i f   ( Z . l e n g t h   >   1   & &   M . e x e c ( Y ) )   {   i f   ( Z . l e n g t h   = = =   2   & &   I . r e l a t i v e [ Z [ 0 ] ] )   {   a f   =   J ( Z [ 0 ]   +   Z [ 1 ] ,   U )   }   e l s e   {   a f   =   I . r e l a t i v e [ Z [ 0 ] ]   ?   [ U ]   :   F ( Z . s h i f t ( ) ,   U ) ;   w h i l e   ( Z . l e n g t h )   {   Y   =   Z . s h i f t ( ) ;   i f   ( I . r e l a t i v e [ Y ] )   {   Y   + =   Z . s h i f t ( )   }   a f   =   J ( Y ,   a f )   }   }   }   e l s e   {   v a r   a e   =   a c   ?   {   e x p r :   Z . p o p ( ) ,   s e t :   E ( a c ) }   :   F . f i n d ( Z . p o p ( ) ,   Z . l e n g t h   = = =   1   & &   U . p a r e n t N o d e   ?   U . p a r e n t N o d e   :   U ,   Q ( U ) ) ;   a f   =   F . f i l t e r ( a e . e x p r ,   a e . s e t ) ;   i f   ( Z . l e n g t h   >   0 )   {   a i   =   E ( a f )   }   e l s e   {   X   =   f a l s e   }   w h i l e   ( Z . l e n g t h )   {   v a r   a h   =   Z . p o p ( ) ,   a g   =   a h ;   i f   ( ! I . r e l a t i v e [ a h ] )   {   a h   =   " "   }   e l s e   {   a g   =   Z . p o p ( )   }   i f   ( a g   = =   n u l l )   {   a g   =   U   }   I . r e l a t i v e [ a h ] ( a i ,   a g ,   Q ( U ) )   }   }   i f   ( ! a i )   {   a i   =   a f   }   i f   ( ! a i )   {   t h r o w   " S y n t a x   e r r o r ,   u n r e c o g n i z e d   e x p r e s s i o n :   "   +   ( a h   | |   Y )   }   i f   ( H . c a l l ( a i )   = = =   " [ o b j e c t   A r r a y ] " )   {   i f   ( ! X )   {   a b . p u s h . a p p l y ( a b ,   a i )   }   e l s e   {   i f   ( U . n o d e T y p e   = = =   1 )   {   f o r   ( v a r   a a   =   0 ;   a i [ a a ]   ! =   n u l l ;   a a + + )   {   i f   ( a i [ a a ]   & &   ( a i [ a a ]   = = =   t r u e   | |   a i [ a a ] . n o d e T y p e   = = =   1   & &   K ( U ,   a i [ a a ] ) ) )   {   a b . p u s h ( a f [ a a ] )   }   }   }   e l s e   {   f o r   ( v a r   a a   =   0 ;   a i [ a a ]   ! =   n u l l ;   a a + + )   {   i f   ( a i [ a a ]   & &   a i [ a a ] . n o d e T y p e   = = =   1 )   {   a b . p u s h ( a f [ a a ] )   }   }   }   }   }   e l s e   {   E ( a i ,   a b )   }   i f   ( V )   {   F ( V ,   U ,   a b ,   a c ) ;   i f   ( G )   {   h a s D u p l i c a t e   =   f a l s e ;   a b . s o r t ( G ) ;   i f   ( h a s D u p l i c a t e )   {   f o r   ( v a r   a a   =   1 ;   a a   <   a b . l e n g t h ;   a a + + )   {   i f   ( a b [ a a ]   = = =   a b [ a a   -   1 ] )   {   a b . s p l i c e ( a a - - ,   1 )   }   }   }   }   }   r e t u r n   a b   } ;   F . m a t c h e s   =   f u n c t i o n ( T ,   U )   {   r e t u r n   F ( T ,   n u l l ,   n u l l ,   U )   } ;   F . f i n d   =   f u n c t i o n ( a a ,   T ,   a b )   {   v a r   Z ,   X ;   i f   ( ! a a )   {   r e t u r n   [ ]   }   f o r   ( v a r   W   =   0 ,   V   =   I . o r d e r . l e n g t h ;   W   <   V ;   W + + )   {   v a r   Y   =   I . o r d e r [ W ] ,   X ;   i f   ( ( X   =   I . m a t c h [ Y ] . e x e c ( a a ) ) )   {   v a r   U   =   R e g E x p . l e f t C o n t e x t ;   i f   ( U . s u b s t r ( U . l e n g t h   -   1 )   ! = =   " \ \ " )   {   X [ 1 ]   =   ( X [ 1 ]   | |   " " ) . r e p l a c e ( / \ \ / g ,   " " ) ;   Z   =   I . f i n d [ Y ] ( X ,   T ,   a b ) ;   i f   ( Z   ! =   n u l l )   {   a a   =   a a . r e p l a c e ( I . m a t c h [ Y ] ,   " " ) ;   b r e a k   }   }   }   }   i f   ( ! Z )   {   Z   =   T . g e t E l e m e n t s B y T a g N a m e ( " * " )   }   r e t u r n   {   s e t :   Z ,   e x p r :   a a }   } ;   F . f i l t e r   =   f u n c t i o n ( a d ,   a c ,   a g ,   W )   {   v a r   V   =   a d ,   a i   =   [ ] ,   a a   =   a c ,   Y ,   T ,   Z   =   a c   & &   a c [ 0 ]   & &   Q ( a c [ 0 ] ) ;   w h i l e   ( a d   & &   a c . l e n g t h )   {   f o r   ( v a r   a b   i n   I . f i l t e r )   {   i f   ( ( Y   =   I . m a t c h [ a b ] . e x e c ( a d ) )   ! =   n u l l )   {   v a r   U   =   I . f i l t e r [ a b ] ,   a h ,   a f ;   T   =   f a l s e ;   i f   ( a a   = =   a i )   {   a i   =   [ ]   }   i f   ( I . p r e F i l t e r [ a b ] )   {   Y   =   I . p r e F i l t e r [ a b ] ( Y ,   a a ,   a g ,   a i ,   W ,   Z ) ;   i f   ( ! Y )   {   T   =   a h   =   t r u e   }   e l s e   {   i f   ( Y   = = =   t r u e )   {   c o n t i n u e   }   }   }   i f   ( Y )   {   f o r   ( v a r   X   =   0 ;   ( a f   =   a a [ X ] )   ! =   n u l l ;   X + + )   {   i f   ( a f )   {   a h   =   U ( a f ,   Y ,   X ,   a a ) ;   v a r   a e   =   W   ^   ! ! a h ;   i f   ( a g   & &   a h   ! =   n u l l )   {   i f   ( a e )   {   T   =   t r u e   }   e l s e   {   a a [ X ]   =   f a l s e   }   }   e l s e   {   i f   ( a e )   {   a i . p u s h ( a f ) ;   T   =   t r u e   }   }   }   }   }   i f   ( a h   ! = =   g )   {   i f   ( ! a g )   {   a a   =   a i   }   a d   =   a d . r e p l a c e ( I . m a t c h [ a b ] ,   " " ) ;   i f   ( ! T )   {   r e t u r n   [ ]   }   b r e a k   }   }   }   i f   ( a d   = =   V )   {   i f   ( T   = =   n u l l )   {   t h r o w   " S y n t a x   e r r o r ,   u n r e c o g n i z e d   e x p r e s s i o n :   "   +   a d   }   e l s e   {   b r e a k   }   }   V   =   a d   }   r e t u r n   a a   } ;   v a r   I   =   F . s e l e c t o r s   =   {   o r d e r :   [ " I D " ,   " N A M E " ,   " T A G " ] ,   m a t c h :   {   I D :   / # ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F _ - ] | \ \ . ) + ) / ,   C L A S S :   / \ . ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F _ - ] | \ \ . ) + ) / ,   N A M E :   / \ [ n a m e = [ ' " ] * ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F _ - ] | \ \ . ) + ) [ ' " ] * \ ] / ,   A T T R :   / \ [ \ s * ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F _ - ] | \ \ . ) + ) \ s * ( ? : ( \ S ? = ) \ s * ( [ ' " ] * ) ( . * ? ) \ 3 | ) \ s * \ ] / ,   T A G :   / ^ ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ * _ - ] | \ \ . ) + ) / ,   C H I L D :   / : ( o n l y | n t h | l a s t | f i r s t ) - c h i l d ( ? : \ ( ( e v e n | o d d | [ \ d n + - ] * ) \ ) ) ? / ,   P O S :   / : ( n t h | e q | g t | l t | f i r s t | l a s t | e v e n | o d d ) ( ? : \ ( ( \ d * ) \ ) ) ? ( ? = [ ^ - ] | $ ) / ,   P S E U D O :   / : ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F _ - ] | \ \ . ) + ) ( ? : \ ( ( [ ' " ] * ) ( ( ? : \ ( [ ^ \ ) ] + \ ) | [ ^ \ 2 \ ( \ ) ] * ) + ) \ 2 \ ) ) ? /   } ,   a t t r M a p :   {   " c l a s s " :   " c l a s s N a m e " ,   " f o r " :   " h t m l F o r "   } ,   a t t r H a n d l e :   {   h r e f :   f u n c t i o n ( T )   {   r e t u r n   T . g e t A t t r i b u t e ( " h r e f " )   }   } ,   r e l a t i v e :   {   " + " :   f u n c t i o n ( a a ,   T ,   Z )   {   v a r   X   =   t y p e o f   T   = = =   " s t r i n g " ,   a b   =   X   & &   ! / \ W / . t e s t ( T ) ,   Y   =   X   & &   ! a b ;   i f   ( a b   & &   ! Z )   {   T   =   T . t o U p p e r C a s e ( )   }   f o r   ( v a r   W   =   0 ,   V   =   a a . l e n g t h ,   U ;   W   <   V ;   W + + )   {   i f   ( ( U   =   a a [ W ] ) )   {   w h i l e   ( ( U   =   U . p r e v i o u s S i b l i n g )   & &   U . n o d e T y p e   ! = =   1 )   {   }   a a [ W ]   =   Y   | |   U   & &   U . n o d e N a m e   = = =   T   ?   U   | |   f a l s e   :   U   = = =   T   }   }   i f   ( Y )   {   F . f i l t e r ( T ,   a a ,   t r u e )   }   } ,   " > " :   f u n c t i o n ( Z ,   U ,   a a )   {   v a r   X   =   t y p e o f   U   = = =   " s t r i n g " ;   i f   ( X   & &   ! / \ W / . t e s t ( U ) )   {   U   =   a a   ?   U   :   U . t o U p p e r C a s e ( ) ;   f o r   ( v a r   V   =   0 ,   T   =   Z . l e n g t h ;   V   <   T ;   V + + )   {   v a r   Y   =   Z [ V ] ;   i f   ( Y )   {   v a r   W   =   Y . p a r e n t N o d e ;   Z [ V ]   =   W . n o d e N a m e   = = =   U   ?   W   :   f a l s e   }   }   }   e l s e   {   f o r   ( v a r   V   =   0 ,   T   =   Z . l e n g t h ;   V   <   T ;   V + + )   {   v a r   Y   =   Z [ V ] ;   i f   ( Y )   {   Z [ V ]   =   X   ?   Y . p a r e n t N o d e   :   Y . p a r e n t N o d e   = = =   U   }   }   i f   ( X )   {   F . f i l t e r ( U ,   Z ,   t r u e )   }   }   } ,   " " :   f u n c t i o n ( W ,   U ,   Y )   {   v a r   V   =   L + + ,   T   =   S ;   i f   ( ! U . m a t c h ( / \ W / ) )   {   v a r   X   =   U   =   Y   ?   U   :   U . t o U p p e r C a s e ( ) ;   T   =   P   }   T ( " p a r e n t N o d e " ,   U ,   V ,   W ,   X ,   Y )   } ,   " ~ " :   f u n c t i o n ( W ,   U ,   Y )   {   v a r   V   =   L + + ,   T   =   S ;   i f   ( t y p e o f   U   = = =   " s t r i n g "   & &   ! U . m a t c h ( / \ W / ) )   {   v a r   X   =   U   =   Y   ?   U   :   U . t o U p p e r C a s e ( ) ;   T   =   P   }   T ( " p r e v i o u s S i b l i n g " ,   U ,   V ,   W ,   X ,   Y )   }   } ,   f i n d :   {   I D :   f u n c t i o n ( U ,   V ,   W )   {   i f   ( t y p e o f   V . g e t E l e m e n t B y I d   ! = =   " u n d e f i n e d "   & &   ! W )   {   v a r   T   =   V . g e t E l e m e n t B y I d ( U [ 1 ] ) ;   r e t u r n   T   ?   [ T ]   :   [ ]   }   } ,   N A M E :   f u n c t i o n ( V ,   Y ,   Z )   {   i f   ( t y p e o f   Y . g e t E l e m e n t s B y N a m e   ! = =   " u n d e f i n e d " )   {   v a r   U   =   [ ] ,   X   =   Y . g e t E l e m e n t s B y N a m e ( V [ 1 ] ) ;   f o r   ( v a r   W   =   0 ,   T   =   X . l e n g t h ;   W   <   T ;   W + + )   {   i f   ( X [ W ] . g e t A t t r i b u t e ( " n a m e " )   = = =   V [ 1 ] )   {   U . p u s h ( X [ W ] )   }   }   r e t u r n   U . l e n g t h   = = =   0   ?   n u l l   :   U   }   } ,   T A G :   f u n c t i o n ( T ,   U )   {   r e t u r n   U . g e t E l e m e n t s B y T a g N a m e ( T [ 1 ] )   }   } ,   p r e F i l t e r :   {   C L A S S :   f u n c t i o n ( W ,   U ,   V ,   T ,   Z ,   a a )   {   W   =   "   "   +   W [ 1 ] . r e p l a c e ( / \ \ / g ,   " " )   +   "   " ;   i f   ( a a )   {   r e t u r n   W   }   f o r   ( v a r   X   =   0 ,   Y ;   ( Y   =   U [ X ] )   ! =   n u l l ;   X + + )   {   i f   ( Y )   {   i f   ( Z   ^   ( Y . c l a s s N a m e   & &   ( "   "   +   Y . c l a s s N a m e   +   "   " ) . i n d e x O f ( W )   > =   0 ) )   {   i f   ( ! V )   {   T . p u s h ( Y )   }   }   e l s e   {   i f   ( V )   {   U [ X ]   =   f a l s e   }   }   }   }   r e t u r n   f a l s e   } ,   I D :   f u n c t i o n ( T )   {   r e t u r n   T [ 1 ] . r e p l a c e ( / \ \ / g ,   " " )   } ,   T A G :   f u n c t i o n ( U ,   T )   {   f o r   ( v a r   V   =   0 ;   T [ V ]   = = =   f a l s e ;   V + + )   {   }   r e t u r n   T [ V ]   & &   Q ( T [ V ] )   ?   U [ 1 ]   :   U [ 1 ] . t o U p p e r C a s e ( )   } ,   C H I L D :   f u n c t i o n ( T )   {   i f   ( T [ 1 ]   = =   " n t h " )   {   v a r   U   =   / ( - ? ) ( \ d * ) n ( ( ? : \ + | - ) ? \ d * ) / . e x e c ( T [ 2 ]   = =   " e v e n "   & &   " 2 n "   | |   T [ 2 ]   = =   " o d d "   & &   " 2 n + 1 "   | |   ! / \ D / . t e s t ( T [ 2 ] )   & &   " 0 n + "   +   T [ 2 ]   | |   T [ 2 ] ) ;   T [ 2 ]   =   ( U [ 1 ]   +   ( U [ 2 ]   | |   1 ) )   -   0 ;   T [ 3 ]   =   U [ 3 ]   -   0   }   T [ 0 ]   =   L + + ;   r e t u r n   T   } ,   A T T R :   f u n c t i o n ( X ,   U ,   V ,   T ,   Y ,   Z )   {   v a r   W   =   X [ 1 ] . r e p l a c e ( / \ \ / g ,   " " ) ;   i f   ( ! Z   & &   I . a t t r M a p [ W ] )   {   X [ 1 ]   =   I . a t t r M a p [ W ]   }   i f   ( X [ 2 ]   = = =   " ~ = " )   {   X [ 4 ]   =   "   "   +   X [ 4 ]   +   "   "   }   r e t u r n   X   } ,   P S E U D O :   f u n c t i o n ( X ,   U ,   V ,   T ,   Y )   {   i f   ( X [ 1 ]   = = =   " n o t " )   {   i f   ( X [ 3 ] . m a t c h ( R ) . l e n g t h   >   1   | |   / ^ \ w / . t e s t ( X [ 3 ] ) )   {   X [ 3 ]   =   F ( X [ 3 ] ,   n u l l ,   n u l l ,   U )   }   e l s e   {   v a r   W   =   F . f i l t e r ( X [ 3 ] ,   U ,   V ,   t r u e   ^   Y ) ;   i f   ( ! V )   {   T . p u s h . a p p l y ( T ,   W )   }   r e t u r n   f a l s e   }   }   e l s e   {   i f   ( I . m a t c h . P O S . t e s t ( X [ 0 ] )   | |   I . m a t c h . C H I L D . t e s t ( X [ 0 ] ) )   {   r e t u r n   t r u e   }   }   r e t u r n   X   } ,   P O S :   f u n c t i o n ( T )   {   T . u n s h i f t ( t r u e ) ;   r e t u r n   T   }   } ,   f i l t e r s :   {   e n a b l e d :   f u n c t i o n ( T )   {   r e t u r n   T . d i s a b l e d   = = =   f a l s e   & &   T . t y p e   ! = =   " h i d d e n "   } ,   d i s a b l e d :   f u n c t i o n ( T )   {   r e t u r n   T . d i s a b l e d   = = =   t r u e   } ,   c h e c k e d :   f u n c t i o n ( T )   {   r e t u r n   T . c h e c k e d   = = =   t r u e   } ,   s e l e c t e d :   f u n c t i o n ( T )   {   T . p a r e n t N o d e . s e l e c t e d I n d e x ;   r e t u r n   T . s e l e c t e d   = = =   t r u e   } ,   p a r e n t :   f u n c t i o n ( T )   {   r e t u r n   ! ! T . f i r s t C h i l d   } ,   e m p t y :   f u n c t i o n ( T )   {   r e t u r n   ! T . f i r s t C h i l d   } ,   h a s :   f u n c t i o n ( V ,   U ,   T )   {   r e t u r n   ! ! F ( T [ 3 ] ,   V ) . l e n g t h   } ,   h e a d e r :   f u n c t i o n ( T )   {   r e t u r n   / h \ d / i . t e s t ( T . n o d e N a m e )   } ,   t e x t :   f u n c t i o n ( T )   {   r e t u r n   " t e x t "   = = =   T . t y p e   } ,   r a d i o :   f u n c t i o n ( T )   {   r e t u r n   " r a d i o "   = = =   T . t y p e   } ,   c h e c k b o x :   f u n c t i o n ( T )   {   r e t u r n   " c h e c k b o x "   = = =   T . t y p e   } ,   f i l e :   f u n c t i o n ( T )   {   r e t u r n   " f i l e "   = = =   T . t y p e   } ,   p a s s w o r d :   f u n c t i o n ( T )   {   r e t u r n   " p a s s w o r d "   = = =   T . t y p e   } ,   s u b m i t :   f u n c t i o n ( T )   {   r e t u r n   " s u b m i t "   = = =   T . t y p e   } ,   i m a g e :   f u n c t i o n ( T )   {   r e t u r n   " i m a g e "   = = =   T . t y p e   } ,   r e s e t :   f u n c t i o n ( T )   {   r e t u r n   " r e s e t "   = = =   T . t y p e   } ,   b u t t o n :   f u n c t i o n ( T )   {   r e t u r n   " b u t t o n "   = = =   T . t y p e   | |   T . n o d e N a m e . t o U p p e r C a s e ( )   = = =   " B U T T O N "   } ,   i n p u t :   f u n c t i o n ( T )   {   r e t u r n   / i n p u t | s e l e c t | t e x t a r e a | b u t t o n / i . t e s t ( T . n o d e N a m e )   }   } ,   s e t F i l t e r s :   {   f i r s t :   f u n c t i o n ( U ,   T )   {   r e t u r n   T   = = =   0   } ,   l a s t :   f u n c t i o n ( V ,   U ,   T ,   W )   {   r e t u r n   U   = = =   W . l e n g t h   -   1   } ,   e v e n :   f u n c t i o n ( U ,   T )   {   r e t u r n   T   %   2   = = =   0   } ,   o d d :   f u n c t i o n ( U ,   T )   {   r e t u r n   T   %   2   = = =   1   } ,   l t :   f u n c t i o n ( V ,   U ,   T )   {   r e t u r n   U   <   T [ 3 ]   -   0   } ,   g t :   f u n c t i o n ( V ,   U ,   T )   {   r e t u r n   U   >   T [ 3 ]   -   0   } ,   n t h :   f u n c t i o n ( V ,   U ,   T )   {   r e t u r n   T [ 3 ]   -   0   = =   U   } ,   e q :   f u n c t i o n ( V ,   U ,   T )   {   r e t u r n   T [ 3 ]   -   0   = =   U   }   } ,   f i l t e r :   {   P S E U D O :   f u n c t i o n ( Z ,   V ,   W ,   a a )   {   v a r   U   =   V [ 1 ] ,   X   =   I . f i l t e r s [ U ] ;   i f   ( X )   {   r e t u r n   X ( Z ,   W ,   V ,   a a )   }   e l s e   {   i f   ( U   = = =   " c o n t a i n s " )   {   r e t u r n   ( Z . t e x t C o n t e n t   | |   Z . i n n e r T e x t   | |   " " ) . i n d e x O f ( V [ 3 ] )   > =   0   }   e l s e   {   i f   ( U   = = =   " n o t " )   {   v a r   Y   =   V [ 3 ] ;   f o r   ( v a r   W   =   0 ,   T   =   Y . l e n g t h ;   W   <   T ;   W + + )   {   i f   ( Y [ W ]   = = =   Z )   {   r e t u r n   f a l s e   }   }   r e t u r n   t r u e   }   }   }   } ,   C H I L D :   f u n c t i o n ( T ,   W )   {   v a r   Z   =   W [ 1 ] ,   U   =   T ;   s w i t c h   ( Z )   {   c a s e   " o n l y " :   c a s e   " f i r s t " :   w h i l e   ( U   =   U . p r e v i o u s S i b l i n g )   {   i f   ( U . n o d e T y p e   = = =   1 )   {   r e t u r n   f a l s e   }   }   i f   ( Z   = =   " f i r s t " )   {   r e t u r n   t r u e   }   U   =   T ;   c a s e   " l a s t " :   w h i l e   ( U   =   U . n e x t S i b l i n g )   {   i f   ( U . n o d e T y p e   = = =   1 )   {   r e t u r n   f a l s e   }   }   r e t u r n   t r u e ;   c a s e   " n t h " :   v a r   V   =   W [ 2 ] ,   a c   =   W [ 3 ] ;   i f   ( V   = =   1   & &   a c   = =   0 )   {   r e t u r n   t r u e   }   v a r   Y   =   W [ 0 ] ,   a b   =   T . p a r e n t N o d e ;   i f   ( a b   & &   ( a b . s i z c a c h e   ! = =   Y   | |   ! T . n o d e I n d e x ) )   {   v a r   X   =   0 ;   f o r   ( U   =   a b . f i r s t C h i l d ;   U ;   U   =   U . n e x t S i b l i n g )   {   i f   ( U . n o d e T y p e   = = =   1 )   {   U . n o d e I n d e x   =   + + X   }   }   a b . s i z c a c h e   =   Y   }   v a r   a a   =   T . n o d e I n d e x   -   a c ;   i f   ( V   = =   0 )   {   r e t u r n   a a   = =   0   }   e l s e   {   r e t u r n   ( a a   %   V   = =   0   & &   a a   /   V   > =   0 )   }   }   } ,   I D :   f u n c t i o n ( U ,   T )   {   r e t u r n   U . n o d e T y p e   = = =   1   & &   U . g e t A t t r i b u t e ( " i d " )   = = =   T   } ,   T A G :   f u n c t i o n ( U ,   T )   {   r e t u r n   ( T   = = =   " * "   & &   U . n o d e T y p e   = = =   1 )   | |   U . n o d e N a m e   = = =   T   } ,   C L A S S :   f u n c t i o n ( U ,   T )   {   r e t u r n   ( "   "   +   ( U . c l a s s N a m e   | |   U . g e t A t t r i b u t e ( " c l a s s " ) )   +   "   " ) . i n d e x O f ( T )   >   - 1   } ,   A T T R :   f u n c t i o n ( Y ,   W )   {   v a r   V   =   W [ 1 ] ,   T   =   I . a t t r H a n d l e [ V ]   ?   I . a t t r H a n d l e [ V ] ( Y )   :   Y [ V ]   ! =   n u l l   ?   Y [ V ]   :   Y . g e t A t t r i b u t e ( V ) ,   Z   =   T   +   " " ,   X   =   W [ 2 ] ,   U   =   W [ 4 ] ;   r e t u r n   T   = =   n u l l   ?   X   = = =   " ! = "   :   X   = = =   " = "   ?   Z   = = =   U   :   X   = = =   " * = "   ?   Z . i n d e x O f ( U )   > =   0   :   X   = = =   " ~ = "   ?   ( "   "   +   Z   +   "   " ) . i n d e x O f ( U )   > =   0   :   ! U   ?   Z   & &   T   ! = =   f a l s e   :   X   = = =   " ! = "   ?   Z   ! =   U   :   X   = = =   " ^ = "   ?   Z . i n d e x O f ( U )   = = =   0   :   X   = = =   " $ = "   ?   Z . s u b s t r ( Z . l e n g t h   -   U . l e n g t h )   = = =   U   :   X   = = =   " | = "   ?   Z   = = =   U   | |   Z . s u b s t r ( 0 ,   U . l e n g t h   +   1 )   = = =   U   +   " - "   :   f a l s e   } ,   P O S :   f u n c t i o n ( X ,   U ,   V ,   Y )   {   v a r   T   =   U [ 2 ] ,   W   =   I . s e t F i l t e r s [ T ] ;   i f   ( W )   {   r e t u r n   W ( X ,   V ,   U ,   Y )   }   }   }   } ;   v a r   M   =   I . m a t c h . P O S ;   f o r   ( v a r   O   i n   I . m a t c h )   {   I . m a t c h [ O ]   =   R e g E x p ( I . m a t c h [ O ] . s o u r c e   +   / ( ? ! [ ^ \ [ ] * \ ] ) ( ? ! [ ^ \ ( ] * \ ) ) / . s o u r c e )   }   v a r   E   =   f u n c t i o n ( U ,   T )   {   U   =   A r r a y . p r o t o t y p e . s l i c e . c a l l ( U ) ;   i f   ( T )   {   T . p u s h . a p p l y ( T ,   U ) ;   r e t u r n   T   }   r e t u r n   U   } ;   t r y   {   A r r a y . p r o t o t y p e . s l i c e . c a l l ( d o c u m e n t . d o c u m e n t E l e m e n t . c h i l d N o d e s )   }   c a t c h   ( N )   {   E   =   f u n c t i o n ( X ,   W )   {   v a r   U   =   W   | |   [ ] ;   i f   ( H . c a l l ( X )   = = =   " [ o b j e c t   A r r a y ] " )   {   A r r a y . p r o t o t y p e . p u s h . a p p l y ( U ,   X )   }   e l s e   {   i f   ( t y p e o f   X . l e n g t h   = = =   " n u m b e r " )   {   f o r   ( v a r   V   =   0 ,   T   =   X . l e n g t h ;   V   <   T ;   V + + )   {   U . p u s h ( X [ V ] )   }   }   e l s e   {   f o r   ( v a r   V   =   0 ;   X [ V ] ;   V + + )   {   U . p u s h ( X [ V ] )   }   }   }   r e t u r n   U   }   }   v a r   G ;   i f   ( d o c u m e n t . d o c u m e n t E l e m e n t . c o m p a r e D o c u m e n t P o s i t i o n )   {   G   =   f u n c t i o n ( U ,   T )   {   v a r   V   =   U . c o m p a r e D o c u m e n t P o s i t i o n ( T )   &   4   ?   - 1   :   U   = = =   T   ?   0   :   1 ;   i f   ( V   = = =   0 )   {   h a s D u p l i c a t e   =   t r u e   }   r e t u r n   V   }   }   e l s e   {   i f   ( " s o u r c e I n d e x "   i n   d o c u m e n t . d o c u m e n t E l e m e n t )   {   G   =   f u n c t i o n ( U ,   T )   {   v a r   V   =   U . s o u r c e I n d e x   -   T . s o u r c e I n d e x ;   i f   ( V   = = =   0 )   {   h a s D u p l i c a t e   =   t r u e   }   r e t u r n   V   }   }   e l s e   {   i f   ( d o c u m e n t . c r e a t e R a n g e )   {   G   =   f u n c t i o n ( W ,   U )   {   v a r   V   =   W . o w n e r D o c u m e n t . c r e a t e R a n g e ( ) ,   T   =   U . o w n e r D o c u m e n t . c r e a t e R a n g e ( ) ;   V . s e l e c t N o d e ( W ) ;   V . c o l l a p s e ( t r u e ) ;   T . s e l e c t N o d e ( U ) ;   T . c o l l a p s e ( t r u e ) ;   v a r   X   =   V . c o m p a r e B o u n d a r y P o i n t s ( R a n g e . S T A R T _ T O _ E N D ,   T ) ;   i f   ( X   = = =   0 )   {   h a s D u p l i c a t e   =   t r u e   }   r e t u r n   X   }   }   }   }   ( f u n c t i o n ( )   {   v a r   U   =   d o c u m e n t . c r e a t e E l e m e n t ( " f o r m " ) ,   V   =   " s c r i p t "   +   ( n e w   D a t e ) . g e t T i m e ( ) ;   U . i n n e r H T M L   =   " < i n p u t   n a m e = ' "   +   V   +   " ' / > " ;   v a r   T   =   d o c u m e n t . d o c u m e n t E l e m e n t ;   T . i n s e r t B e f o r e ( U ,   T . f i r s t C h i l d ) ;   i f   ( ! ! d o c u m e n t . g e t E l e m e n t B y I d ( V ) )   {   I . f i n d . I D   =   f u n c t i o n ( X ,   Y ,   Z )   {   i f   ( t y p e o f   Y . g e t E l e m e n t B y I d   ! = =   " u n d e f i n e d "   & &   ! Z )   {   v a r   W   =   Y . g e t E l e m e n t B y I d ( X [ 1 ] ) ;   r e t u r n   W   ?   W . i d   = = =   X [ 1 ]   | |   t y p e o f   W . g e t A t t r i b u t e N o d e   ! = =   " u n d e f i n e d "   & &   W . g e t A t t r i b u t e N o d e ( " i d " ) . n o d e V a l u e   = = =   X [ 1 ]   ?   [ W ]   :   g   :   [ ]   }   } ;   I . f i l t e r . I D   =   f u n c t i o n ( Y ,   W )   {   v a r   X   =   t y p e o f   Y . g e t A t t r i b u t e N o d e   ! = =   " u n d e f i n e d "   & &   Y . g e t A t t r i b u t e N o d e ( " i d " ) ;   r e t u r n   Y . n o d e T y p e   = = =   1   & &   X   & &   X . n o d e V a l u e   = = =   W   }   }   T . r e m o v e C h i l d ( U )   } ) ( ) ;   ( f u n c t i o n ( )   {   v a r   T   =   d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ;   T . a p p e n d C h i l d ( d o c u m e n t . c r e a t e C o m m e n t ( " " ) ) ;   i f   ( T . g e t E l e m e n t s B y T a g N a m e ( " * " ) . l e n g t h   >   0 )   {   I . f i n d . T A G   =   f u n c t i o n ( U ,   Y )   {   v a r   X   =   Y . g e t E l e m e n t s B y T a g N a m e ( U [ 1 ] ) ;   i f   ( U [ 1 ]   = = =   " * " )   {   v a r   W   =   [ ] ;   f o r   ( v a r   V   =   0 ;   X [ V ] ;   V + + )   {   i f   ( X [ V ] . n o d e T y p e   = = =   1 )   {   W . p u s h ( X [ V ] )   }   }   X   =   W   }   r e t u r n   X   }   }   T . i n n e r H T M L   =   " < a   h r e f = ' # ' > < / a > " ;   i f   ( T . f i r s t C h i l d   & &   t y p e o f   T . f i r s t C h i l d . g e t A t t r i b u t e   ! = =   " u n d e f i n e d "   & &   T . f i r s t C h i l d . g e t A t t r i b u t e ( " h r e f " )   ! = =   " # " )   {   I . a t t r H a n d l e . h r e f   =   f u n c t i o n ( U )   {   r e t u r n   U . g e t A t t r i b u t e ( " h r e f " ,   2 )   }   }   } ) ( ) ;   i f   ( d o c u m e n t . q u e r y S e l e c t o r A l l )   {   ( f u n c t i o n ( )   {   v a r   T   =   F ,   U   =   d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ;   U . i n n e r H T M L   =   " < p   c l a s s = ' T E S T ' > < / p > " ;   i f   ( U . q u e r y S e l e c t o r A l l   & &   U . q u e r y S e l e c t o r A l l ( " . T E S T " ) . l e n g t h   = = =   0 )   {   r e t u r n   }   F   =   f u n c t i o n ( Y ,   X ,   V ,   W )   {   X   =   X   | |   d o c u m e n t ;   i f   ( ! W   & &   X . n o d e T y p e   = = =   9   & &   ! Q ( X ) )   {   t r y   {   r e t u r n   E ( X . q u e r y S e l e c t o r A l l ( Y ) ,   V )   }   c a t c h   ( Z )   {   }   }   r e t u r n   T ( Y ,   X ,   V ,   W )   } ;   F . f i n d   =   T . f i n d ;   F . f i l t e r   =   T . f i l t e r ;   F . s e l e c t o r s   =   T . s e l e c t o r s ;   F . m a t c h e s   =   T . m a t c h e s   } ) ( )   }   i f   ( d o c u m e n t . g e t E l e m e n t s B y C l a s s N a m e   & &   d o c u m e n t . d o c u m e n t E l e m e n t . g e t E l e m e n t s B y C l a s s N a m e )   {   ( f u n c t i o n ( )   {   v a r   T   =   d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ;   T . i n n e r H T M L   =   " < d i v   c l a s s = ' t e s t   e ' > < / d i v > < d i v   c l a s s = ' t e s t ' > < / d i v > " ;   i f   ( T . g e t E l e m e n t s B y C l a s s N a m e ( " e " ) . l e n g t h   = = =   0 )   {   r e t u r n   }   T . l a s t C h i l d . c l a s s N a m e   =   " e " ;   i f   ( T . g e t E l e m e n t s B y C l a s s N a m e ( " e " ) . l e n g t h   = = =   1 )   {   r e t u r n   }   I . o r d e r . s p l i c e ( 1 ,   0 ,   " C L A S S " ) ;   I . f i n d . C L A S S   =   f u n c t i o n ( U ,   V ,   W )   {   i f   ( t y p e o f   V . g e t E l e m e n t s B y C l a s s N a m e   ! = =   " u n d e f i n e d "   & &   ! W )   {   r e t u r n   V . g e t E l e m e n t s B y C l a s s N a m e ( U [ 1 ] )   }   }   } ) ( )   }   f u n c t i o n   P ( U ,   Z ,   Y ,   a d ,   a a ,   a c )   {   v a r   a b   =   U   = =   " p r e v i o u s S i b l i n g "   & &   ! a c ;   f o r   ( v a r   W   =   0 ,   V   =   a d . l e n g t h ;   W   <   V ;   W + + )   {   v a r   T   =   a d [ W ] ;   i f   ( T )   {   i f   ( a b   & &   T . n o d e T y p e   = = =   1 )   {   T . s i z c a c h e   =   Y ;   T . s i z s e t   =   W   }   T   =   T [ U ] ;   v a r   X   =   f a l s e ;   w h i l e   ( T )   {   i f   ( T . s i z c a c h e   = = =   Y )   {   X   =   a d [ T . s i z s e t ] ;   b r e a k   }   i f   ( T . n o d e T y p e   = = =   1   & &   ! a c )   {   T . s i z c a c h e   =   Y ;   T . s i z s e t   =   W   }   i f   ( T . n o d e N a m e   = = =   Z )   {   X   =   T ;   b r e a k   }   T   =   T [ U ]   }   a d [ W ]   =   X   }   }   }   f u n c t i o n   S ( U ,   Z ,   Y ,   a d ,   a a ,   a c )   {   v a r   a b   =   U   = =   " p r e v i o u s S i b l i n g "   & &   ! a c ;   f o r   ( v a r   W   =   0 ,   V   =   a d . l e n g t h ;   W   <   V ;   W + + )   {   v a r   T   =   a d [ W ] ;   i f   ( T )   {   i f   ( a b   & &   T . n o d e T y p e   = = =   1 )   {   T . s i z c a c h e   =   Y ;   T . s i z s e t   =   W   }   T   =   T [ U ] ;   v a r   X   =   f a l s e ;   w h i l e   ( T )   {   i f   ( T . s i z c a c h e   = = =   Y )   {   X   =   a d [ T . s i z s e t ] ;   b r e a k   }   i f   ( T . n o d e T y p e   = = =   1 )   {   i f   ( ! a c )   {   T . s i z c a c h e   =   Y ;   T . s i z s e t   =   W   }   i f   ( t y p e o f   Z   ! = =   " s t r i n g " )   {   i f   ( T   = = =   Z )   {   X   =   t r u e ;   b r e a k   }   }   e l s e   {   i f   ( F . f i l t e r ( Z ,   [ T ] ) . l e n g t h   >   0 )   {   X   =   T ;   b r e a k   }   }   }   T   =   T [ U ]   }   a d [ W ]   =   X   }   }   }   v a r   K   =   d o c u m e n t . c o m p a r e D o c u m e n t P o s i t i o n   ?   f u n c t i o n ( U ,   T )   {   r e t u r n   U . c o m p a r e D o c u m e n t P o s i t i o n ( T )   &   1 6   }   :   f u n c t i o n ( U ,   T )   {   r e t u r n   U   ! = =   T   & &   ( U . c o n t a i n s   ?   U . c o n t a i n s ( T )   :   t r u e )   } ;   v a r   Q   =   f u n c t i o n ( T )   {   r e t u r n   T . n o d e T y p e   = = =   9   & &   T . d o c u m e n t E l e m e n t . n o d e N a m e   ! = =   " H T M L "   | |   ! ! T . o w n e r D o c u m e n t   & &   Q ( T . o w n e r D o c u m e n t )   } ;   v a r   J   =   f u n c t i o n ( T ,   a a )   {   v a r   W   =   [ ] ,   X   =   " " ,   Y ,   V   =   a a . n o d e T y p e   ?   [ a a ]   :   a a ;   w h i l e   ( ( Y   =   I . m a t c h . P S E U D O . e x e c ( T ) ) )   {   X   + =   Y [ 0 ] ;   T   =   T . r e p l a c e ( I . m a t c h . P S E U D O ,   " " )   }   T   =   I . r e l a t i v e [ T ]   ?   T   +   " * "   :   T ;   f o r   ( v a r   Z   =   0 ,   U   =   V . l e n g t h ;   Z   <   U ;   Z + + )   {   F ( T ,   V [ Z ] ,   W )   }   r e t u r n   F . f i l t e r ( X ,   W )   } ;   o . f i n d   =   F ;   o . f i l t e r   =   F . f i l t e r ;   o . e x p r   =   F . s e l e c t o r s ;   o . e x p r [ " : " ]   =   o . e x p r . f i l t e r s ;   F . s e l e c t o r s . f i l t e r s . h i d d e n   =   f u n c t i o n ( T )   {   r e t u r n   T . o f f s e t W i d t h   = = =   0   | |   T . o f f s e t H e i g h t   = = =   0   } ;   F . s e l e c t o r s . f i l t e r s . v i s i b l e   =   f u n c t i o n ( T )   {   r e t u r n   T . o f f s e t W i d t h   >   0   | |   T . o f f s e t H e i g h t   >   0   } ;   F . s e l e c t o r s . f i l t e r s . a n i m a t e d   =   f u n c t i o n ( T )   {   r e t u r n   o . g r e p ( o . t i m e r s ,   f u n c t i o n ( U )   {   r e t u r n   T   = = =   U . e l e m   } ) . l e n g t h   } ;   o . m u l t i F i l t e r   =   f u n c t i o n ( V ,   T ,   U )   {   i f   ( U )   {   V   =   " : n o t ( "   +   V   +   " ) "   }   r e t u r n   F . m a t c h e s ( V ,   T )   } ;   o . d i r   =   f u n c t i o n ( V ,   U )   {   v a r   T   =   [ ] ,   W   =   V [ U ] ;   w h i l e   ( W   & &   W   ! =   d o c u m e n t )   {   i f   ( W . n o d e T y p e   = =   1 )   {   T . p u s h ( W )   }   W   =   W [ U ]   }   r e t u r n   T   } ;   o . n t h   =   f u n c t i o n ( X ,   T ,   V ,   W )   {   T   =   T   | |   1 ;   v a r   U   =   0 ;   f o r   ( ;   X ;   X   =   X [ V ] )   {   i f   ( X . n o d e T y p e   = =   1   & &   + + U   = =   T )   {   b r e a k   }   }   r e t u r n   X   } ;   o . s i b l i n g   =   f u n c t i o n ( V ,   U )   {   v a r   T   =   [ ] ;   f o r   ( ;   V ;   V   =   V . n e x t S i b l i n g )   {   i f   ( V . n o d e T y p e   = =   1   & &   V   ! =   U )   {   T . p u s h ( V )   }   }   r e t u r n   T   } ;   r e t u r n ;   l . S i z z l e   =   F   } ) ( ) ;   o . e v e n t   =   {   a d d :   f u n c t i o n ( I ,   F ,   H ,   K )   {   i f   ( I . n o d e T y p e   = =   3   | |   I . n o d e T y p e   = =   8 )   {   r e t u r n   }   i f   ( I . s e t I n t e r v a l   & &   I   ! =   l )   {   I   =   l   }   i f   ( ! H . g u i d )   {   H . g u i d   =   t h i s . g u i d + +   }   i f   ( K   ! = =   g )   {   v a r   G   =   H ;   H   =   t h i s . p r o x y ( G ) ;   H . d a t a   =   K   }   v a r   E   =   o . d a t a ( I ,   " e v e n t s " )   | |   o . d a t a ( I ,   " e v e n t s " ,   { } ) ,   J   =   o . d a t a ( I ,   " h a n d l e " )   | |   o . d a t a ( I ,   " h a n d l e " ,   f u n c t i o n ( )   {   r e t u r n   t y p e o f   o   ! = =   " u n d e f i n e d "   & &   ! o . e v e n t . t r i g g e r e d   ?   o . e v e n t . h a n d l e . a p p l y ( a r g u m e n t s . c a l l e e . e l e m ,   a r g u m e n t s )   :   g   } ) ;   J . e l e m   =   I ;   o . e a c h ( F . s p l i t ( / \ s + / ) ,   f u n c t i o n ( M ,   N )   {   v a r   O   =   N . s p l i t ( " . " ) ;   N   =   O . s h i f t ( ) ;   H . t y p e   =   O . s l i c e ( ) . s o r t ( ) . j o i n ( " . " ) ;   v a r   L   =   E [ N ] ;   i f   ( o . e v e n t . s p e c i a l A l l [ N ] )   {   o . e v e n t . s p e c i a l A l l [ N ] . s e t u p . c a l l ( I ,   K ,   O )   }   i f   ( ! L )   {   L   =   E [ N ]   =   { } ;   i f   ( ! o . e v e n t . s p e c i a l [ N ]   | |   o . e v e n t . s p e c i a l [ N ] . s e t u p . c a l l ( I ,   K ,   O )   = = =   f a l s e )   {   i f   ( I . a d d E v e n t L i s t e n e r )   {   I . a d d E v e n t L i s t e n e r ( N ,   J ,   f a l s e )   }   e l s e   {   i f   ( I . a t t a c h E v e n t )   {   I . a t t a c h E v e n t ( " o n "   +   N ,   J )   }   }   }   }   L [ H . g u i d ]   =   H ;   o . e v e n t . g l o b a l [ N ]   =   t r u e   } ) ;   I   =   n u l l   } ,   g u i d :   1 ,   g l o b a l :   { } ,   r e m o v e :   f u n c t i o n ( K ,   H ,   J )   {   i f   ( K . n o d e T y p e   = =   3   | |   K . n o d e T y p e   = =   8 )   {   r e t u r n   }   v a r   G   =   o . d a t a ( K ,   " e v e n t s " ) ,   F ,   E ;   i f   ( G )   {   i f   ( H   = = =   g   | |   ( t y p e o f   H   = = =   " s t r i n g "   & &   H . c h a r A t ( 0 )   = =   " . " ) )   {   f o r   ( v a r   I   i n   G )   {   t h i s . r e m o v e ( K ,   I   +   ( H   | |   " " ) )   }   }   e l s e   {   i f   ( H . t y p e )   {   J   =   H . h a n d l e r ;   H   =   H . t y p e   }   o . e a c h ( H . s p l i t ( / \ s + / ) ,   f u n c t i o n ( M ,   O )   {   v a r   Q   =   O . s p l i t ( " . " ) ;   O   =   Q . s h i f t ( ) ;   v a r   N   =   R e g E x p ( " ( ^ | \ \ . ) "   +   Q . s l i c e ( ) . s o r t ( ) . j o i n ( " . * \ \ . " )   +   " ( \ \ . | $ ) " ) ;   i f   ( G [ O ] )   {   i f   ( J )   {   d e l e t e   G [ O ] [ J . g u i d ]   }   e l s e   {   f o r   ( v a r   P   i n   G [ O ] )   {   i f   ( N . t e s t ( G [ O ] [ P ] . t y p e ) )   {   d e l e t e   G [ O ] [ P ]   }   }   }   i f   ( o . e v e n t . s p e c i a l A l l [ O ] )   {   o . e v e n t . s p e c i a l A l l [ O ] . t e a r d o w n . c a l l ( K ,   Q )   }   f o r   ( F   i n   G [ O ] )   {   b r e a k   }   i f   ( ! F )   {   i f   ( ! o . e v e n t . s p e c i a l [ O ]   | |   o . e v e n t . s p e c i a l [ O ] . t e a r d o w n . c a l l ( K ,   Q )   = = =   f a l s e )   {   i f   ( K . r e m o v e E v e n t L i s t e n e r )   {   K . r e m o v e E v e n t L i s t e n e r ( O ,   o . d a t a ( K ,   " h a n d l e " ) ,   f a l s e )   }   e l s e   {   i f   ( K . d e t a c h E v e n t )   {   K . d e t a c h E v e n t ( " o n "   +   O ,   o . d a t a ( K ,   " h a n d l e " ) )   }   }   }   F   =   n u l l ;   d e l e t e   G [ O ]   }   }   } )   }   f o r   ( F   i n   G )   {   b r e a k   }   i f   ( ! F )   {   v a r   L   =   o . d a t a ( K ,   " h a n d l e " ) ;   i f   ( L )   {   L . e l e m   =   n u l l   }   o . r e m o v e D a t a ( K ,   " e v e n t s " ) ;   o . r e m o v e D a t a ( K ,   " h a n d l e " )   }   }   } ,   t r i g g e r :   f u n c t i o n ( I ,   K ,   H ,   E )   {   v a r   G   =   I . t y p e   | |   I ;   i f   ( ! E )   {   I   =   t y p e o f   I   = = =   " o b j e c t "   ?   I [ h ]   ?   I   :   o . e x t e n d ( o . E v e n t ( G ) ,   I )   :   o . E v e n t ( G ) ;   i f   ( G . i n d e x O f ( " ! " )   > =   0 )   {   I . t y p e   =   G   =   G . s l i c e ( 0 ,   - 1 ) ;   I . e x c l u s i v e   =   t r u e   }   i f   ( ! H )   {   I . s t o p P r o p a g a t i o n ( ) ;   i f   ( t h i s . g l o b a l [ G ] )   {   o . e a c h ( o . c a c h e ,   f u n c t i o n ( )   {   i f   ( t h i s . e v e n t s   & &   t h i s . e v e n t s [ G ] )   {   o . e v e n t . t r i g g e r ( I ,   K ,   t h i s . h a n d l e . e l e m )   }   } )   }   }   i f   ( ! H   | |   H . n o d e T y p e   = =   3   | |   H . n o d e T y p e   = =   8 )   {   r e t u r n   g   }   I . r e s u l t   =   g ;   I . t a r g e t   =   H ;   K   =   o . m a k e A r r a y ( K ) ;   K . u n s h i f t ( I )   }   I . c u r r e n t T a r g e t   =   H ;   v a r   J   =   o . d a t a ( H ,   " h a n d l e " ) ;   i f   ( J )   {   J . a p p l y ( H ,   K )   }   i f   ( ( ! H [ G ]   | |   ( o . n o d e N a m e ( H ,   " a " )   & &   G   = =   " c l i c k " ) )   & &   H [ " o n "   +   G ]   & &   H [ " o n "   +   G ] . a p p l y ( H ,   K )   = = =   f a l s e )   {   I . r e s u l t   =   f a l s e   }   i f   ( ! E   & &   H [ G ]   & &   ! I . i s D e f a u l t P r e v e n t e d ( )   & &   ! ( o . n o d e N a m e ( H ,   " a " )   & &   G   = =   " c l i c k " ) )   {   t h i s . t r i g g e r e d   =   t r u e ;   t r y   {   H [ G ] ( )   }   c a t c h   ( L )   {   }   }   t h i s . t r i g g e r e d   =   f a l s e ;   i f   ( ! I . i s P r o p a g a t i o n S t o p p e d ( ) )   {   v a r   F   =   H . p a r e n t N o d e   | |   H . o w n e r D o c u m e n t ;   i f   ( F )   {   o . e v e n t . t r i g g e r ( I ,   K ,   F ,   t r u e )   }   }   } ,   h a n d l e :   f u n c t i o n ( K )   {   v a r   J ,   E ;   K   =   a r g u m e n t s [ 0 ]   =   o . e v e n t . f i x ( K   | |   l . e v e n t ) ;   K . c u r r e n t T a r g e t   =   t h i s ;   v a r   L   =   K . t y p e . s p l i t ( " . " ) ;   K . t y p e   =   L . s h i f t ( ) ;   J   =   ! L . l e n g t h   & &   ! K . e x c l u s i v e ;   v a r   I   =   R e g E x p ( " ( ^ | \ \ . ) "   +   L . s l i c e ( ) . s o r t ( ) . j o i n ( " . * \ \ . " )   +   " ( \ \ . | $ ) " ) ;   E   =   ( o . d a t a ( t h i s ,   " e v e n t s " )   | |   { } ) [ K . t y p e ] ;   f o r   ( v a r   G   i n   E )   {   v a r   H   =   E [ G ] ;   i f   ( J   | |   I . t e s t ( H . t y p e ) )   {   K . h a n d l e r   =   H ;   K . d a t a   =   H . d a t a ;   v a r   F   =   H . a p p l y ( t h i s ,   a r g u m e n t s ) ;   i f   ( F   ! = =   g )   {   K . r e s u l t   =   F ;   i f   ( F   = = =   f a l s e )   {   K . p r e v e n t D e f a u l t ( ) ;   K . s t o p P r o p a g a t i o n ( )   }   }   i f   ( K . i s I m m e d i a t e P r o p a g a t i o n S t o p p e d ( ) )   {   b r e a k   }   }   }   } ,   p r o p s :   " a l t K e y   a t t r C h a n g e   a t t r N a m e   b u b b l e s   b u t t o n   c a n c e l a b l e   c h a r C o d e   c l i e n t X   c l i e n t Y   c t r l K e y   c u r r e n t T a r g e t   d a t a   d e t a i l   e v e n t P h a s e   f r o m E l e m e n t   h a n d l e r   k e y C o d e   m e t a K e y   n e w V a l u e   o r i g i n a l T a r g e t   p a g e X   p a g e Y   p r e v V a l u e   r e l a t e d N o d e   r e l a t e d T a r g e t   s c r e e n X   s c r e e n Y   s h i f t K e y   s r c E l e m e n t   t a r g e t   t o E l e m e n t   v i e w   w h e e l D e l t a   w h i c h " . s p l i t ( "   " ) ,   f i x :   f u n c t i o n ( H )   {   i f   ( H [ h ] )   {   r e t u r n   H   }   v a r   F   =   H ;   H   =   o . E v e n t ( F ) ;   f o r   ( v a r   G   =   t h i s . p r o p s . l e n g t h ,   J ;   G ;   )   {   J   =   t h i s . p r o p s [ - - G ] ;   H [ J ]   =   F [ J ]   }   i f   ( ! H . t a r g e t )   {   H . t a r g e t   =   H . s r c E l e m e n t   | |   d o c u m e n t   }   i f   ( H . t a r g e t . n o d e T y p e   = =   3 )   {   H . t a r g e t   =   H . t a r g e t . p a r e n t N o d e   }   i f   ( ! H . r e l a t e d T a r g e t   & &   H . f r o m E l e m e n t )   {   H . r e l a t e d T a r g e t   =   H . f r o m E l e m e n t   = =   H . t a r g e t   ?   H . t o E l e m e n t   :   H . f r o m E l e m e n t   }   i f   ( H . p a g e X   = =   n u l l   & &   H . c l i e n t X   ! =   n u l l )   {   v a r   I   =   d o c u m e n t . d o c u m e n t E l e m e n t ,   E   =   d o c u m e n t . b o d y ;   H . p a g e X   =   H . c l i e n t X   +   ( I   & &   I . s c r o l l L e f t   | |   E   & &   E . s c r o l l L e f t   | |   0 )   -   ( I . c l i e n t L e f t   | |   0 ) ;   H . p a g e Y   =   H . c l i e n t Y   +   ( I   & &   I . s c r o l l T o p   | |   E   & &   E . s c r o l l T o p   | |   0 )   -   ( I . c l i e n t T o p   | |   0 )   }   i f   ( ! H . w h i c h   & &   ( ( H . c h a r C o d e   | |   H . c h a r C o d e   = = =   0 )   ?   H . c h a r C o d e   :   H . k e y C o d e ) )   {   H . w h i c h   =   H . c h a r C o d e   | |   H . k e y C o d e   }   i f   ( ! H . m e t a K e y   & &   H . c t r l K e y )   {   H . m e t a K e y   =   H . c t r l K e y   }   i f   ( ! H . w h i c h   & &   H . b u t t o n )   {   H . w h i c h   =   ( H . b u t t o n   &   1   ?   1   :   ( H . b u t t o n   &   2   ?   3   :   ( H . b u t t o n   &   4   ?   2   :   0 ) ) )   }   r e t u r n   H   } ,   p r o x y :   f u n c t i o n ( F ,   E )   {   E   =   E   | |   f u n c t i o n ( )   {   r e t u r n   F . a p p l y ( t h i s ,   a r g u m e n t s )   } ;   E . g u i d   =   F . g u i d   =   F . g u i d   | |   E . g u i d   | |   t h i s . g u i d + + ;   r e t u r n   E   } ,   s p e c i a l :   {   r e a d y :   {   s e t u p :   B ,   t e a r d o w n :   f u n c t i o n ( )   {   }   }   } ,   s p e c i a l A l l :   {   l i v e :   {   s e t u p :   f u n c t i o n ( E ,   F )   {   o . e v e n t . a d d ( t h i s ,   F [ 0 ] ,   c )   } ,   t e a r d o w n :   f u n c t i o n ( G )   {   i f   ( G . l e n g t h )   {   v a r   E   =   0 ,   F   =   R e g E x p ( " ( ^ | \ \ . ) "   +   G [ 0 ]   +   " ( \ \ . | $ ) " ) ;   o . e a c h ( ( o . d a t a ( t h i s ,   " e v e n t s " ) . l i v e   | |   { } ) ,   f u n c t i o n ( )   {   i f   ( F . t e s t ( t h i s . t y p e ) )   {   E + +   }   } ) ;   i f   ( E   <   1 )   {   o . e v e n t . r e m o v e ( t h i s ,   G [ 0 ] ,   c )   }   }   }   } }   } ;   o . E v e n t   =   f u n c t i o n ( E )   {   i f   ( ! t h i s . p r e v e n t D e f a u l t )   {   r e t u r n   n e w   o . E v e n t ( E )   }   i f   ( E   & &   E . t y p e )   {   t h i s . o r i g i n a l E v e n t   =   E ;   t h i s . t y p e   =   E . t y p e   }   e l s e   {   t h i s . t y p e   =   E   }   t h i s . t i m e S t a m p   =   e ( ) ;   t h i s [ h ]   =   t r u e   } ;   f u n c t i o n   k ( )   {   r e t u r n   f a l s e   }   f u n c t i o n   u ( )   {   r e t u r n   t r u e   }   o . E v e n t . p r o t o t y p e   =   {   p r e v e n t D e f a u l t :   f u n c t i o n ( )   {   t h i s . i s D e f a u l t P r e v e n t e d   =   u ;   v a r   E   =   t h i s . o r i g i n a l E v e n t ;   i f   ( ! E )   {   r e t u r n   }   i f   ( E . p r e v e n t D e f a u l t )   {   E . p r e v e n t D e f a u l t ( )   }   E . r e t u r n V a l u e   =   f a l s e   } ,   s t o p P r o p a g a t i o n :   f u n c t i o n ( )   {   t h i s . i s P r o p a g a t i o n S t o p p e d   =   u ;   v a r   E   =   t h i s . o r i g i n a l E v e n t ;   i f   ( ! E )   {   r e t u r n   }   i f   ( E . s t o p P r o p a g a t i o n )   {   E . s t o p P r o p a g a t i o n ( )   }   E . c a n c e l B u b b l e   =   t r u e   } ,   s t o p I m m e d i a t e P r o p a g a t i o n :   f u n c t i o n ( )   {   t h i s . i s I m m e d i a t e P r o p a g a t i o n S t o p p e d   =   u ;   t h i s . s t o p P r o p a g a t i o n ( )   } ,   i s D e f a u l t P r e v e n t e d :   k ,   i s P r o p a g a t i o n S t o p p e d :   k ,   i s I m m e d i a t e P r o p a g a t i o n S t o p p e d :   k   } ;   v a r   a   =   f u n c t i o n ( F )   {   v a r   E   =   F . r e l a t e d T a r g e t ;   w h i l e   ( E   & &   E   ! =   t h i s )   {   t r y   {   E   =   E . p a r e n t N o d e   }   c a t c h   ( G )   {   E   =   t h i s   }   }   i f   ( E   ! =   t h i s )   {   F . t y p e   =   F . d a t a ;   o . e v e n t . h a n d l e . a p p l y ( t h i s ,   a r g u m e n t s )   }   } ;   o . e a c h ( {   m o u s e o v e r :   " m o u s e e n t e r " ,   m o u s e o u t :   " m o u s e l e a v e "   } ,   f u n c t i o n ( F ,   E )   {   o . e v e n t . s p e c i a l [ E ]   =   {   s e t u p :   f u n c t i o n ( )   {   o . e v e n t . a d d ( t h i s ,   F ,   a ,   E )   } ,   t e a r d o w n :   f u n c t i o n ( )   {   o . e v e n t . r e m o v e ( t h i s ,   F ,   a )   }   }   } ) ;   o . f n . e x t e n d ( {   b i n d :   f u n c t i o n ( F ,   G ,   E )   {   r e t u r n   F   = =   " u n l o a d "   ?   t h i s . o n e ( F ,   G ,   E )   :   t h i s . e a c h ( f u n c t i o n ( )   {   o . e v e n t . a d d ( t h i s ,   F ,   E   | |   G ,   E   & &   G )   } )   } ,   o n e :   f u n c t i o n ( G ,   H ,   F )   {   v a r   E   =   o . e v e n t . p r o x y ( F   | |   H ,   f u n c t i o n ( I )   {   o ( t h i s ) . u n b i n d ( I ,   E ) ;   r e t u r n   ( F   | |   H ) . a p p l y ( t h i s ,   a r g u m e n t s )   } ) ;   r e t u r n   t h i s . e a c h ( f u n c t i o n ( )   {   o . e v e n t . a d d ( t h i s ,   G ,   E ,   F   & &   H )   } )   } ,   u n b i n d :   f u n c t i o n ( F ,   E )   {   r e t u r n   t h i s . e a c h ( f u n c t i o n ( )   {   o . e v e n t . r e m o v e ( t h i s ,   F ,   E )   } )   } ,   t r i g g e r :   f u n c t i o n ( E ,   F )   {   r e t u r n   t h i s . e a c h ( f u n c t i o n ( )   {   o . e v e n t . t r i g g e r ( E ,   F ,   t h i s )   } )   } ,   t r i g g e r H a n d l e r :   f u n c t i o n ( E ,   G )   {   i f   ( t h i s [ 0 ] )   {   v a r   F   =   o . E v e n t ( E ) ;   F . p r e v e n t D e f a u l t ( ) ;   F . s t o p P r o p a g a t i o n ( ) ;   o . e v e n t . t r i g g e r ( F ,   G ,   t h i s [ 0 ] ) ;   r e t u r n   F . r e s u l t   }   } ,   t o g g l e :   f u n c t i o n ( G )   {   v a r   E   =   a r g u m e n t s ,   F   =   1 ;   w h i l e   ( F   <   E . l e n g t h )   {   o . e v e n t . p r o x y ( G ,   E [ F + + ] )   }   r e t u r n   t h i s . c l i c k ( o . e v e n t . p r o x y ( G ,   f u n c t i o n ( H )   {   t h i s . l a s t T o g g l e   =   ( t h i s . l a s t T o g g l e   | |   0 )   %   F ;   H . p r e v e n t D e f a u l t ( ) ;   r e t u r n   E [ t h i s . l a s t T o g g l e + + ] . a p p l y ( t h i s ,   a r g u m e n t s )   | |   f a l s e   } ) )   } ,   h o v e r :   f u n c t i o n ( E ,   F )   {   r e t u r n   t h i s . m o u s e e n t e r ( E ) . m o u s e l e a v e ( F )   } ,   r e a d y :   f u n c t i o n ( E )   {   B ( ) ;   i f   ( o . i s R e a d y )   {   E . c a l l ( d o c u m e n t ,   o )   }   e l s e   {   o . r e a d y L i s t . p u s h ( E )   }   r e t u r n   t h i s   } ,   l i v e :   f u n c t i o n ( G ,   F )   {   v a r   E   =   o . e v e n t . p r o x y ( F ) ;   E . g u i d   + =   t h i s . s e l e c t o r   +   G ;   o ( d o c u m e n t ) . b i n d ( i ( G ,   t h i s . s e l e c t o r ) ,   t h i s . s e l e c t o r ,   E ) ;   r e t u r n   t h i s   } ,   d i e :   f u n c t i o n ( F ,   E )   {   o ( d o c u m e n t ) . u n b i n d ( i ( F ,   t h i s . s e l e c t o r ) ,   E   ?   {   g u i d :   E . g u i d   +   t h i s . s e l e c t o r   +   F }   :   n u l l ) ;   r e t u r n   t h i s   }   } ) ;   f u n c t i o n   c ( H )   {   v a r   E   =   R e g E x p ( " ( ^ | \ \ . ) "   +   H . t y p e   +   " ( \ \ . | $ ) " ) ,   G   =   t r u e ,   F   =   [ ] ;   o . e a c h ( o . d a t a ( t h i s ,   " e v e n t s " ) . l i v e   | |   [ ] ,   f u n c t i o n ( I ,   J )   {   i f   ( E . t e s t ( J . t y p e ) )   {   v a r   K   =   o ( H . t a r g e t ) . c l o s e s t ( J . d a t a ) [ 0 ] ;   i f   ( K )   {   F . p u s h ( {   e l e m :   K ,   f n :   J   } )   }   }   } ) ;   F . s o r t ( f u n c t i o n ( J ,   I )   {   r e t u r n   o . d a t a ( J . e l e m ,   " c l o s e s t " )   -   o . d a t a ( I . e l e m ,   " c l o s e s t " )   } ) ;   o . e a c h ( F ,   f u n c t i o n ( )   {   i f   ( t h i s . f n . c a l l ( t h i s . e l e m ,   H ,   t h i s . f n . d a t a )   = = =   f a l s e )   {   r e t u r n   ( G   =   f a l s e )   }   } ) ;   r e t u r n   G   }   f u n c t i o n   i ( F ,   E )   {   r e t u r n   [ " l i v e " ,   F ,   E . r e p l a c e ( / \ . / g ,   " ` " ) . r e p l a c e ( /   / g ,   " | " ) ] . j o i n ( " . " )   }   o . e x t e n d ( {   i s R e a d y :   f a l s e ,   r e a d y L i s t :   [ ] ,   r e a d y :   f u n c t i o n ( )   {   i f   ( ! o . i s R e a d y )   {   o . i s R e a d y   =   t r u e ;   i f   ( o . r e a d y L i s t )   {   o . e a c h ( o . r e a d y L i s t ,   f u n c t i o n ( )   {   t h i s . c a l l ( d o c u m e n t ,   o )   } ) ;   o . r e a d y L i s t   =   n u l l   }   o ( d o c u m e n t ) . t r i g g e r H a n d l e r ( " r e a d y " )   }   }   } ) ;   v a r   x   =   f a l s e ;   f u n c t i o n   B ( )   {   i f   ( x )   {   r e t u r n   }   x   =   t r u e ;   i f   ( d o c u m e n t . a d d E v e n t L i s t e n e r )   {   d o c u m e n t . a d d E v e n t L i s t e n e r ( " D O M C o n t e n t L o a d e d " ,   f u n c t i o n ( )   {   d o c u m e n t . r e m o v e E v e n t L i s t e n e r ( " D O M C o n t e n t L o a d e d " ,   a r g u m e n t s . c a l l e e ,   f a l s e ) ;   o . r e a d y ( )   } ,   f a l s e )   }   e l s e   {   i f   ( d o c u m e n t . a t t a c h E v e n t )   {   d o c u m e n t . a t t a c h E v e n t ( " o n r e a d y s t a t e c h a n g e " ,   f u n c t i o n ( )   {   i f   ( d o c u m e n t . r e a d y S t a t e   = = =   " c o m p l e t e " )   {   d o c u m e n t . d e t a c h E v e n t ( " o n r e a d y s t a t e c h a n g e " ,   a r g u m e n t s . c a l l e e ) ;   o . r e a d y ( )   }   } ) ;   i f   ( d o c u m e n t . d o c u m e n t E l e m e n t . d o S c r o l l   & &   l   = =   l . t o p )   {   ( f u n c t i o n ( )   {   i f   ( o . i s R e a d y )   {   r e t u r n   }   t r y   {   d o c u m e n t . d o c u m e n t E l e m e n t . d o S c r o l l ( " l e f t " )   }   c a t c h   ( E )   {   s e t T i m e o u t ( a r g u m e n t s . c a l l e e ,   0 ) ;   r e t u r n   }   o . r e a d y ( )   } ) ( )   }   }   }   o . e v e n t . a d d ( l ,   " l o a d " ,   o . r e a d y )   }   o . e a c h ( ( " b l u r , f o c u s , l o a d , r e s i z e , s c r o l l , u n l o a d , c l i c k , d b l c l i c k , m o u s e d o w n , m o u s e u p , m o u s e m o v e , m o u s e o v e r , m o u s e o u t , m o u s e e n t e r , m o u s e l e a v e , c h a n g e , s e l e c t , s u b m i t , k e y d o w n , k e y p r e s s , k e y u p , e r r o r " ) . s p l i t ( " , " ) ,   f u n c t i o n ( F ,   E )   {   o . f n [ E ]   =   f u n c t i o n ( G )   {   r e t u r n   G   ?   t h i s . b i n d ( E ,   G )   :   t h i s . t r i g g e r ( E )   }   } ) ;   o ( l ) . b i n d ( " u n l o a d " ,   f u n c t i o n ( )   {   f o r   ( v a r   E   i n   o . c a c h e )   {   i f   ( E   ! =   1   & &   o . c a c h e [ E ] . h a n d l e )   {   o . e v e n t . r e m o v e ( o . c a c h e [ E ] . h a n d l e . e l e m )   }   }   } ) ;   ( f u n c t i o n ( )   {   o . s u p p o r t   =   { } ;   v a r   F   =   d o c u m e n t . d o c u m e n t E l e m e n t ,   G   =   d o c u m e n t . c r e a t e E l e m e n t ( " s c r i p t " ) ,   K   =   d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ,   J   =   " s c r i p t "   +   ( n e w   D a t e ) . g e t T i m e ( ) ;   K . s t y l e . d i s p l a y   =   " n o n e " ;   K . i n n e r H T M L   =   '     < l i n k / > < t a b l e > < / t a b l e > < a   h r e f = " / a "   s t y l e = " c o l o r : r e d ; f l o a t : l e f t ; o p a c i t y : . 5 ; " > a < / a > < s e l e c t > < o p t i o n > t e x t < / o p t i o n > < / s e l e c t > < o b j e c t > < p a r a m / > < / o b j e c t > ' ;   v a r   H   =   K . g e t E l e m e n t s B y T a g N a m e ( " * " ) ,   E   =   K . g e t E l e m e n t s B y T a g N a m e ( " a " ) [ 0 ] ;   i f   ( ! H   | |   ! H . l e n g t h   | |   ! E )   {   r e t u r n   }   o . s u p p o r t   =   {   l e a d i n g W h i t e s p a c e :   K . f i r s t C h i l d . n o d e T y p e   = =   3 ,   t b o d y :   ! K . g e t E l e m e n t s B y T a g N a m e ( " t b o d y " ) . l e n g t h ,   o b j e c t A l l :   ! ! K . g e t E l e m e n t s B y T a g N a m e ( " o b j e c t " ) [ 0 ] . g e t E l e m e n t s B y T a g N a m e ( " * " ) . l e n g t h ,   h t m l S e r i a l i z e :   ! ! K . g e t E l e m e n t s B y T a g N a m e ( " l i n k " ) . l e n g t h ,   s t y l e :   / r e d / . t e s t ( E . g e t A t t r i b u t e ( " s t y l e " ) ) ,   h r e f N o r m a l i z e d :   E . g e t A t t r i b u t e ( " h r e f " )   = = =   " / a " ,   o p a c i t y :   E . s t y l e . o p a c i t y   = = =   " 0 . 5 " ,   c s s F l o a t :   ! ! E . s t y l e . c s s F l o a t ,   s c r i p t E v a l :   f a l s e ,   n o C l o n e E v e n t :   t r u e ,   b o x M o d e l :   n u l l   } ;   G . t y p e   =   " t e x t / j a v a s c r i p t " ;   t r y   {   G . a p p e n d C h i l d ( d o c u m e n t . c r e a t e T e x t N o d e ( " w i n d o w . "   +   J   +   " = 1 ; " ) )   }   c a t c h   ( I )   {   }   F . i n s e r t B e f o r e ( G ,   F . f i r s t C h i l d ) ;   i f   ( l [ J ] )   {   o . s u p p o r t . s c r i p t E v a l   =   t r u e ;   d e l e t e   l [ J ]   }   F . r e m o v e C h i l d ( G ) ;   i f   ( K . a t t a c h E v e n t   & &   K . f i r e E v e n t )   {   K . a t t a c h E v e n t ( " o n c l i c k " ,   f u n c t i o n ( )   {   o . s u p p o r t . n o C l o n e E v e n t   =   f a l s e ;   K . d e t a c h E v e n t ( " o n c l i c k " ,   a r g u m e n t s . c a l l e e )   } ) ;   K . c l o n e N o d e ( t r u e ) . f i r e E v e n t ( " o n c l i c k " )   }   o ( f u n c t i o n ( )   {   v a r   L   =   d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ;   L . s t y l e . w i d t h   =   L . s t y l e . p a d d i n g L e f t   =   " 1 p x " ;   d o c u m e n t . b o d y . a p p e n d C h i l d ( L ) ;   o . b o x M o d e l   =   o . s u p p o r t . b o x M o d e l   =   L . o f f s e t W i d t h   = = =   2 ;   d o c u m e n t . b o d y . r e m o v e C h i l d ( L ) . s t y l e . d i s p l a y   =   " n o n e "   } )   } ) ( ) ;   v a r   w   =   o . s u p p o r t . c s s F l o a t   ?   " c s s F l o a t "   :   " s t y l e F l o a t " ;   o . p r o p s   =   {   " f o r " :   " h t m l F o r " ,   " c l a s s " :   " c l a s s N a m e " ,   " f l o a t " :   w ,   c s s F l o a t :   w ,   s t y l e F l o a t :   w ,   r e a d o n l y :   " r e a d O n l y " ,   m a x l e n g t h :   " m a x L e n g t h " ,   c e l l s p a c i n g :   " c e l l S p a c i n g " ,   r o w s p a n :   " r o w S p a n " ,   t a b i n d e x :   " t a b I n d e x "   } ;   o . f n . e x t e n d ( {   _ l o a d :   o . f n . l o a d ,   l o a d :   f u n c t i o n ( G ,   J ,   K )   {   i f   ( t y p e o f   G   ! = =   " s t r i n g " )   {   r e t u r n   t h i s . _ l o a d ( G )   }   v a r   I   =   G . i n d e x O f ( "   " ) ;   i f   ( I   > =   0 )   {   v a r   E   =   G . s l i c e ( I ,   G . l e n g t h ) ;   G   =   G . s l i c e ( 0 ,   I )   }   v a r   H   =   " G E T " ;   i f   ( J )   {   i f   ( o . i s F u n c t i o n ( J ) )   {   K   =   J ;   J   =   n u l l   }   e l s e   {   i f   ( t y p e o f   J   = = =   " o b j e c t " )   {   J   =   o . p a r a m ( J ) ;   H   =   " P O S T "   }   }   }   v a r   F   =   t h i s ;   o . a j a x ( {   u r l :   G ,   t y p e :   H ,   d a t a T y p e :   " h t m l " ,   d a t a :   J ,   c o m p l e t e :   f u n c t i o n ( M ,   L )   {   i f   ( L   = =   " s u c c e s s "   | |   L   = =   " n o t m o d i f i e d " )   {   F . h t m l ( E   ?   o ( " < d i v / > " ) . a p p e n d ( M . r e s p o n s e T e x t . r e p l a c e ( / < s c r i p t ( . | \ s ) * ? \ / s c r i p t > / g ,   " " ) ) . f i n d ( E )   :   M . r e s p o n s e T e x t )   }   i f   ( K )   {   F . e a c h ( K ,   [ M . r e s p o n s e T e x t ,   L ,   M ] )   }   }   } ) ;   r e t u r n   t h i s   } ,   s e r i a l i z e :   f u n c t i o n ( )   {   r e t u r n   o . p a r a m ( t h i s . s e r i a l i z e A r r a y ( ) )   } ,   s e r i a l i z e A r r a y :   f u n c t i o n ( )   {   r e t u r n   t h i s . m a p ( f u n c t i o n ( )   {   r e t u r n   t h i s . e l e m e n t s   ?   o . m a k e A r r a y ( t h i s . e l e m e n t s )   :   t h i s   } ) . f i l t e r ( f u n c t i o n ( )   {   r e t u r n   t h i s . n a m e   & &   ! t h i s . d i s a b l e d   & &   ( t h i s . c h e c k e d   | |   / s e l e c t | t e x t a r e a / i . t e s t ( t h i s . n o d e N a m e )   | |   / t e x t | h i d d e n | p a s s w o r d | s e a r c h / i . t e s t ( t h i s . t y p e ) )   } ) . m a p ( f u n c t i o n ( E ,   F )   {   v a r   G   =   o ( t h i s ) . v a l ( ) ;   r e t u r n   G   = =   n u l l   ?   n u l l   :   o . i s A r r a y ( G )   ?   o . m a p ( G ,   f u n c t i o n ( I ,   H )   {   r e t u r n   {   n a m e :   F . n a m e ,   v a l u e :   I }   } )   :   {   n a m e :   F . n a m e ,   v a l u e :   G }   } ) . g e t ( )   }   } ) ;   o . e a c h ( " a j a x S t a r t , a j a x S t o p , a j a x C o m p l e t e , a j a x E r r o r , a j a x S u c c e s s , a j a x S e n d " . s p l i t ( " , " ) ,   f u n c t i o n ( E ,   F )   {   o . f n [ F ]   =   f u n c t i o n ( G )   {   r e t u r n   t h i s . b i n d ( F ,   G )   }   } ) ;   v a r   r   =   e ( ) ;   o . e x t e n d ( {   g e t :   f u n c t i o n ( E ,   G ,   H ,   F )   {   i f   ( o . i s F u n c t i o n ( G ) )   {   H   =   G ;   G   =   n u l l   }   r e t u r n   o . a j a x ( {   t y p e :   " G E T " ,   u r l :   E ,   d a t a :   G ,   s u c c e s s :   H ,   d a t a T y p e :   F   } )   } ,   g e t S c r i p t :   f u n c t i o n ( E ,   F )   {   r e t u r n   o . g e t ( E ,   n u l l ,   F ,   " s c r i p t " )   } ,   g e t J S O N :   f u n c t i o n ( E ,   F ,   G )   {   r e t u r n   o . g e t ( E ,   F ,   G ,   " j s o n " )   } ,   p o s t :   f u n c t i o n ( E ,   G ,   H ,   F )   {   i f   ( o . i s F u n c t i o n ( G ) )   {   H   =   G ;   G   =   { }   }   r e t u r n   o . a j a x ( {   t y p e :   " P O S T " ,   u r l :   E ,   d a t a :   G ,   s u c c e s s :   H ,   d a t a T y p e :   F   } )   } ,   a j a x S e t u p :   f u n c t i o n ( E )   {   o . e x t e n d ( o . a j a x S e t t i n g s ,   E )   } ,   a j a x S e t t i n g s :   {   u r l :   l o c a t i o n . h r e f ,   g l o b a l :   t r u e ,   t y p e :   " G E T " ,   c o n t e n t T y p e :   " a p p l i c a t i o n / x - w w w - f o r m - u r l e n c o d e d " ,   p r o c e s s D a t a :   t r u e ,   a s y n c :   t r u e ,   x h r :   f u n c t i o n ( )   {   r e t u r n   l . A c t i v e X O b j e c t   ?   n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " )   :   n e w   X M L H t t p R e q u e s t ( )   } ,   a c c e p t s :   {   x m l :   " a p p l i c a t i o n / x m l ,   t e x t / x m l " ,   h t m l :   " t e x t / h t m l " ,   s c r i p t :   " t e x t / j a v a s c r i p t ,   a p p l i c a t i o n / j a v a s c r i p t " ,   j s o n :   " a p p l i c a t i o n / j s o n ,   t e x t / j a v a s c r i p t " ,   t e x t :   " t e x t / p l a i n " ,   _ d e f a u l t :   " * / * " }   } ,   l a s t M o d i f i e d :   { } ,   a j a x :   f u n c t i o n ( M )   {   M   =   o . e x t e n d ( t r u e ,   M ,   o . e x t e n d ( t r u e ,   { } ,   o . a j a x S e t t i n g s ,   M ) ) ;   v a r   W ,   F   =   / = \ ? ( & | $ ) / g ,   R ,   V ,   G   =   M . t y p e . t o U p p e r C a s e ( ) ;   i f   ( M . d a t a   & &   M . p r o c e s s D a t a   & &   t y p e o f   M . d a t a   ! = =   " s t r i n g " )   {   M . d a t a   =   o . p a r a m ( M . d a t a )   }   i f   ( M . d a t a T y p e   = =   " j s o n p " )   {   i f   ( G   = =   " G E T " )   {   i f   ( ! M . u r l . m a t c h ( F ) )   {   M . u r l   + =   ( M . u r l . m a t c h ( / \ ? / )   ?   " & "   :   " ? " )   +   ( M . j s o n p   | |   " c a l l b a c k " )   +   " = ? "   }   }   e l s e   {   i f   ( ! M . d a t a   | |   ! M . d a t a . m a t c h ( F ) )   {   M . d a t a   =   ( M . d a t a   ?   M . d a t a   +   " & "   :   " " )   +   ( M . j s o n p   | |   " c a l l b a c k " )   +   " = ? "   }   }   M . d a t a T y p e   =   " j s o n "   }   i f   ( M . d a t a T y p e   = =   " j s o n "   & &   ( M . d a t a   & &   M . d a t a . m a t c h ( F )   | |   M . u r l . m a t c h ( F ) ) )   {   W   =   " j s o n p "   +   r + + ;   i f   ( M . d a t a )   {   M . d a t a   =   ( M . d a t a   +   " " ) . r e p l a c e ( F ,   " = "   +   W   +   " $ 1 " )   }   M . u r l   =   M . u r l . r e p l a c e ( F ,   " = "   +   W   +   " $ 1 " ) ;   M . d a t a T y p e   =   " s c r i p t " ;   l [ W ]   =   f u n c t i o n ( X )   {   V   =   X ;   I ( ) ;   L ( ) ;   l [ W ]   =   g ;   t r y   {   d e l e t e   l [ W ]   }   c a t c h   ( Y )   {   }   i f   ( H )   {   H . r e m o v e C h i l d ( T )   }   }   }   i f   ( M . d a t a T y p e   = =   " s c r i p t "   & &   M . c a c h e   = =   n u l l )   {   M . c a c h e   =   f a l s e   }   i f   ( M . c a c h e   = = =   f a l s e   & &   G   = =   " G E T " )   {   v a r   E   =   e ( ) ;   v a r   U   =   M . u r l . r e p l a c e ( / ( \ ? | & ) _ = . * ? ( & | $ ) / ,   " $ 1 _ = "   +   E   +   " $ 2 " ) ;   M . u r l   =   U   +   ( ( U   = =   M . u r l )   ?   ( M . u r l . m a t c h ( / \ ? / )   ?   " & "   :   " ? " )   +   " _ = "   +   E   :   " " )   }   i f   ( M . d a t a   & &   G   = =   " G E T " )   {   M . u r l   + =   ( M . u r l . m a t c h ( / \ ? / )   ?   " & "   :   " ? " )   +   M . d a t a ;   M . d a t a   =   n u l l   }   i f   ( M . g l o b a l   & &   ! o . a c t i v e + + )   {   o . e v e n t . t r i g g e r ( " a j a x S t a r t " )   }   v a r   Q   =   / ^ ( \ w + : ) ? \ / \ / ( [ ^ \ / ? # ] + ) / . e x e c ( M . u r l ) ;   i f   ( M . d a t a T y p e   = =   " s c r i p t "   & &   G   = =   " G E T "   & &   Q   & &   ( Q [ 1 ]   & &   Q [ 1 ]   ! =   l o c a t i o n . p r o t o c o l   | |   Q [ 2 ]   ! =   l o c a t i o n . h o s t ) )   {   v a r   H   =   d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " h e a d " ) [ 0 ] ;   v a r   T   =   d o c u m e n t . c r e a t e E l e m e n t ( " s c r i p t " ) ;   T . s r c   =   M . u r l ;   i f   ( M . s c r i p t C h a r s e t )   {   T . c h a r s e t   =   M . s c r i p t C h a r s e t   }   i f   ( ! W )   {   v a r   O   =   f a l s e ;   T . o n l o a d   =   T . o n r e a d y s t a t e c h a n g e   =   f u n c t i o n ( )   {   i f   ( ! O   & &   ( ! t h i s . r e a d y S t a t e   | |   t h i s . r e a d y S t a t e   = =   " l o a d e d "   | |   t h i s . r e a d y S t a t e   = =   " c o m p l e t e " ) )   {   O   =   t r u e ;   I ( ) ;   L ( ) ;   T . o n l o a d   =   T . o n r e a d y s t a t e c h a n g e   =   n u l l ;   H . r e m o v e C h i l d ( T )   }   }   }   H . a p p e n d C h i l d ( T ) ;   r e t u r n   g   }   v a r   K   =   f a l s e ;   v a r   J   =   M . x h r ( ) ;   i f   ( M . u s e r n a m e )   {   J . o p e n ( G ,   M . u r l ,   M . a s y n c ,   M . u s e r n a m e ,   M . p a s s w o r d )   }   e l s e   {   J . o p e n ( G ,   M . u r l ,   M . a s y n c )   }   t r y   {   i f   ( M . d a t a )   {   J . s e t R e q u e s t H e a d e r ( " C o n t e n t - T y p e " ,   M . c o n t e n t T y p e )   }   i f   ( M . i f M o d i f i e d )   {   J . s e t R e q u e s t H e a d e r ( " I f - M o d i f i e d - S i n c e " ,   o . l a s t M o d i f i e d [ M . u r l ]   | |   " T h u ,   0 1   J a n   1 9 7 0   0 0 : 0 0 : 0 0   G M T " )   }   J . s e t R e q u e s t H e a d e r ( " X - R e q u e s t e d - W i t h " ,   " X M L H t t p R e q u e s t " ) ;   J . s e t R e q u e s t H e a d e r ( " A c c e p t " ,   M . d a t a T y p e   & &   M . a c c e p t s [ M . d a t a T y p e ]   ?   M . a c c e p t s [ M . d a t a T y p e ]   +   " ,   * / * "   :   M . a c c e p t s . _ d e f a u l t )   }   c a t c h   ( S )   {   }   i f   ( M . b e f o r e S e n d   & &   M . b e f o r e S e n d ( J ,   M )   = = =   f a l s e )   {   i f   ( M . g l o b a l   & &   !   - - o . a c t i v e )   {   o . e v e n t . t r i g g e r ( " a j a x S t o p " )   }   J . a b o r t ( ) ;   r e t u r n   f a l s e   }   i f   ( M . g l o b a l )   {   o . e v e n t . t r i g g e r ( " a j a x S e n d " ,   [ J ,   M ] )   }   v a r   N   =   f u n c t i o n ( X )   {   i f   ( J . r e a d y S t a t e   = =   0 )   {   i f   ( P )   {   c l e a r I n t e r v a l ( P ) ;   P   =   n u l l ;   i f   ( M . g l o b a l   & &   !   - - o . a c t i v e )   {   o . e v e n t . t r i g g e r ( " a j a x S t o p " )   }   }   }   e l s e   {   i f   ( ! K   & &   J   & &   ( J . r e a d y S t a t e   = =   4   | |   X   = =   " t i m e o u t " ) )   {   K   =   t r u e ;   i f   ( P )   {   c l e a r I n t e r v a l ( P ) ;   P   =   n u l l   }   R   =   X   = =   " t i m e o u t "   ?   " t i m e o u t "   :   ! o . h t t p S u c c e s s ( J )   ?   " e r r o r "   :   M . i f M o d i f i e d   & &   o . h t t p N o t M o d i f i e d ( J ,   M . u r l )   ?   " n o t m o d i f i e d "   :   " s u c c e s s " ;   i f   ( R   = =   " s u c c e s s " )   {   t r y   {   V   =   o . h t t p D a t a ( J ,   M . d a t a T y p e ,   M )   }   c a t c h   ( Z )   {   R   =   " p a r s e r e r r o r "   }   }   i f   ( R   = =   " s u c c e s s " )   {   v a r   Y ;   t r y   {   Y   =   J . g e t R e s p o n s e H e a d e r ( " L a s t - M o d i f i e d " )   }   c a t c h   ( Z )   {   }   i f   ( M . i f M o d i f i e d   & &   Y )   {   o . l a s t M o d i f i e d [ M . u r l ]   =   Y   }   i f   ( ! W )   {   I ( )   }   }   e l s e   {   o . h a n d l e E r r o r ( M ,   J ,   R )   }   L ( ) ;   i f   ( X )   {   J . a b o r t ( )   }   i f   ( M . a s y n c )   {   J   =   n u l l   }   }   }   } ;   i f   ( M . a s y n c )   {   v a r   P   =   s e t I n t e r v a l ( N ,   1 3 ) ;   i f   ( M . t i m e o u t   >   0 )   {   s e t T i m e o u t ( f u n c t i o n ( )   {   i f   ( J   & &   ! K )   {   N ( " t i m e o u t " )   }   } ,   M . t i m e o u t )   }   }   t r y   {   J . s e n d ( M . d a t a )   }   c a t c h   ( S )   {   o . h a n d l e E r r o r ( M ,   J ,   n u l l ,   S )   }   i f   ( ! M . a s y n c )   {   N ( )   }   f u n c t i o n   I ( )   {   i f   ( M . s u c c e s s )   {   M . s u c c e s s ( V ,   R )   }   i f   ( M . g l o b a l )   {   o . e v e n t . t r i g g e r ( " a j a x S u c c e s s " ,   [ J ,   M ] )   }   }   f u n c t i o n   L ( )   {   i f   ( M . c o m p l e t e )   {   M . c o m p l e t e ( J ,   R )   }   i f   ( M . g l o b a l )   {   o . e v e n t . t r i g g e r ( " a j a x C o m p l e t e " ,   [ J ,   M ] )   }   i f   ( M . g l o b a l   & &   !   - - o . a c t i v e )   {   o . e v e n t . t r i g g e r ( " a j a x S t o p " )   }   }   r e t u r n   J   } ,   h a n d l e E r r o r :   f u n c t i o n ( F ,   H ,   E ,   G )   {   i f   ( F . e r r o r )   {   F . e r r o r ( H ,   E ,   G )   }   i f   ( F . g l o b a l )   {   o . e v e n t . t r i g g e r ( " a j a x E r r o r " ,   [ H ,   F ,   G ] )   }   } ,   a c t i v e :   0 ,   h t t p S u c c e s s :   f u n c t i o n ( F )   {   t r y   {   r e t u r n   ! F . s t a t u s   & &   l o c a t i o n . p r o t o c o l   = =   " f i l e : "   | |   ( F . s t a t u s   > =   2 0 0   & &   F . s t a t u s   <   3 0 0 )   | |   F . s t a t u s   = =   3 0 4   | |   F . s t a t u s   = =   1 2 2 3   }   c a t c h   ( E )   {   }   r e t u r n   f a l s e   } ,   h t t p N o t M o d i f i e d :   f u n c t i o n ( G ,   E )   {   t r y   {   v a r   H   =   G . g e t R e s p o n s e H e a d e r ( " L a s t - M o d i f i e d " ) ;   r e t u r n   G . s t a t u s   = =   3 0 4   | |   H   = =   o . l a s t M o d i f i e d [ E ]   }   c a t c h   ( F )   {   }   r e t u r n   f a l s e   } ,   h t t p D a t a :   f u n c t i o n ( J ,   H ,   G )   {   v a r   F   =   J . g e t R e s p o n s e H e a d e r ( " c o n t e n t - t y p e " ) ,   E   =   H   = =   " x m l "   | |   ! H   & &   F   & &   F . i n d e x O f ( " x m l " )   > =   0 ,   I   =   E   ?   J . r e s p o n s e X M L   :   J . r e s p o n s e T e x t ;   i f   ( E   & &   I . d o c u m e n t E l e m e n t . t a g N a m e   = =   " p a r s e r e r r o r " )   {   t h r o w   " p a r s e r e r r o r "   }   i f   ( G   & &   G . d a t a F i l t e r )   {   I   =   G . d a t a F i l t e r ( I ,   H )   }   i f   ( t y p e o f   I   = = =   " s t r i n g " )   {   i f   ( H   = =   " s c r i p t " )   {   o . g l o b a l E v a l ( I )   }   i f   ( H   = =   " j s o n " )   {   I   =   l [ " e v a l " ] ( " ( "   +   I   +   " ) " )   }   }   r e t u r n   I   } ,   p a r a m :   f u n c t i o n ( E )   {   v a r   G   =   [ ] ;   f u n c t i o n   H ( I ,   J )   {   G [ G . l e n g t h ]   =   e n c o d e U R I C o m p o n e n t ( I )   +   " = "   +   e n c o d e U R I C o m p o n e n t ( J )   }   i f   ( o . i s A r r a y ( E )   | |   E . j q u e r y )   {   o . e a c h ( E ,   f u n c t i o n ( )   {   H ( t h i s . n a m e ,   t h i s . v a l u e )   } )   }   e l s e   {   f o r   ( v a r   F   i n   E )   {   i f   ( o . i s A r r a y ( E [ F ] ) )   {   o . e a c h ( E [ F ] ,   f u n c t i o n ( )   {   H ( F ,   t h i s )   } )   }   e l s e   {   H ( F ,   o . i s F u n c t i o n ( E [ F ] )   ?   E [ F ] ( )   :   E [ F ] )   }   }   }   r e t u r n   G . j o i n ( " & " ) . r e p l a c e ( / % 2 0 / g ,   " + " )   }   } ) ;   v a r   m   =   { } ,   n ,   d   =   [ [ " h e i g h t " ,   " m a r g i n T o p " ,   " m a r g i n B o t t o m " ,   " p a d d i n g T o p " ,   " p a d d i n g B o t t o m " ] ,   [ " w i d t h " ,   " m a r g i n L e f t " ,   " m a r g i n R i g h t " ,   " p a d d i n g L e f t " ,   " p a d d i n g R i g h t " ] ,   [ " o p a c i t y " ] ] ;   f u n c t i o n   t ( F ,   E )   {   v a r   G   =   { } ;   o . e a c h ( d . c o n c a t . a p p l y ( [ ] ,   d . s l i c e ( 0 ,   E ) ) ,   f u n c t i o n ( )   {   G [ t h i s ]   =   F   } ) ;   r e t u r n   G   }   o . f n . e x t e n d ( {   s h o w :   f u n c t i o n ( J ,   L )   {   i f   ( J )   {   r e t u r n   t h i s . a n i m a t e ( t ( " s h o w " ,   3 ) ,   J ,   L )   }   e l s e   {   f o r   ( v a r   H   =   0 ,   F   =   t h i s . l e n g t h ;   H   <   F ;   H + + )   {   v a r   E   =   o . d a t a ( t h i s [ H ] ,   " o l d d i s p l a y " ) ;   t h i s [ H ] . s t y l e . d i s p l a y   =   E   | |   " " ;   i f   ( o . c s s ( t h i s [ H ] ,   " d i s p l a y " )   = = =   " n o n e " )   {   v a r   G   =   t h i s [ H ] . t a g N a m e ,   K ;   i f   ( m [ G ] )   {   K   =   m [ G ]   }   e l s e   {   v a r   I   =   o ( " < "   +   G   +   "   / > " ) . a p p e n d T o ( " b o d y " ) ;   K   =   I . c s s ( " d i s p l a y " ) ;   i f   ( K   = = =   " n o n e " )   {   K   =   " b l o c k "   }   I . r e m o v e ( ) ;   m [ G ]   =   K   }   o . d a t a ( t h i s [ H ] ,   " o l d d i s p l a y " ,   K )   }   }   f o r   ( v a r   H   =   0 ,   F   =   t h i s . l e n g t h ;   H   <   F ;   H + + )   {   t h i s [ H ] . s t y l e . d i s p l a y   =   o . d a t a ( t h i s [ H ] ,   " o l d d i s p l a y " )   | |   " "   }   r e t u r n   t h i s   }   } ,   h i d e :   f u n c t i o n ( H ,   I )   {   i f   ( H )   {   r e t u r n   t h i s . a n i m a t e ( t ( " h i d e " ,   3 ) ,   H ,   I )   }   e l s e   {   f o r   ( v a r   G   =   0 ,   F   =   t h i s . l e n g t h ;   G   <   F ;   G + + )   {   v a r   E   =   o . d a t a ( t h i s [ G ] ,   " o l d d i s p l a y " ) ;   i f   ( ! E   & &   E   ! = =   " n o n e " )   {   o . d a t a ( t h i s [ G ] ,   " o l d d i s p l a y " ,   o . c s s ( t h i s [ G ] ,   " d i s p l a y " ) )   }   }   f o r   ( v a r   G   =   0 ,   F   =   t h i s . l e n g t h ;   G   <   F ;   G + + )   {   t h i s [ G ] . s t y l e . d i s p l a y   =   " n o n e "   }   r e t u r n   t h i s   }   } ,   _ t o g g l e :   o . f n . t o g g l e ,   t o g g l e :   f u n c t i o n ( G ,   F )   {   v a r   E   =   t y p e o f   G   = = =   " b o o l e a n " ;   r e t u r n   o . i s F u n c t i o n ( G )   & &   o . i s F u n c t i o n ( F )   ?   t h i s . _ t o g g l e . a p p l y ( t h i s ,   a r g u m e n t s )   :   G   = =   n u l l   | |   E   ?   t h i s . e a c h ( f u n c t i o n ( )   {   v a r   H   =   E   ?   G   :   o ( t h i s ) . i s ( " : h i d d e n " ) ;   o ( t h i s ) [ H   ?   " s h o w "   :   " h i d e " ] ( )   } )   :   t h i s . a n i m a t e ( t ( " t o g g l e " ,   3 ) ,   G ,   F )   } ,   f a d e T o :   f u n c t i o n ( E ,   G ,   F )   {   r e t u r n   t h i s . a n i m a t e ( {   o p a c i t y :   G   } ,   E ,   F )   } ,   a n i m a t e :   f u n c t i o n ( I ,   F ,   H ,   G )   {   v a r   E   =   o . s p e e d ( F ,   H ,   G ) ;   r e t u r n   t h i s [ E . q u e u e   = = =   f a l s e   ?   " e a c h "   :   " q u e u e " ] ( f u n c t i o n ( )   {   v a r   K   =   o . e x t e n d ( { } ,   E ) ,   M ,   L   =   t h i s . n o d e T y p e   = =   1   & &   o ( t h i s ) . i s ( " : h i d d e n " ) ,   J   =   t h i s ;   f o r   ( M   i n   I )   {   i f   ( I [ M ]   = =   " h i d e "   & &   L   | |   I [ M ]   = =   " s h o w "   & &   ! L )   {   r e t u r n   K . c o m p l e t e . c a l l ( t h i s )   }   i f   ( ( M   = =   " h e i g h t "   | |   M   = =   " w i d t h " )   & &   t h i s . s t y l e )   {   K . d i s p l a y   =   o . c s s ( t h i s ,   " d i s p l a y " ) ;   K . o v e r f l o w   =   t h i s . s t y l e . o v e r f l o w   }   }   i f   ( K . o v e r f l o w   ! =   n u l l )   {   t h i s . s t y l e . o v e r f l o w   =   " h i d d e n "   }   K . c u r A n i m   =   o . e x t e n d ( { } ,   I ) ;   o . e a c h ( I ,   f u n c t i o n ( O ,   S )   {   v a r   R   =   n e w   o . f x ( J ,   K ,   O ) ;   i f   ( / t o g g l e | s h o w | h i d e / . t e s t ( S ) )   {   R [ S   = =   " t o g g l e "   ?   L   ?   " s h o w "   :   " h i d e "   :   S ] ( I )   }   e l s e   {   v a r   Q   =   S . t o S t r i n g ( ) . m a t c h ( / ^ ( [ + - ] = ) ? ( [ \ d + - . ] + ) ( . * ) $ / ) ,   T   =   R . c u r ( t r u e )   | |   0 ;   i f   ( Q )   {   v a r   N   =   p a r s e F l o a t ( Q [ 2 ] ) ,   P   =   Q [ 3 ]   | |   " p x " ;   i f   ( P   ! =   " p x " )   {   J . s t y l e [ O ]   =   ( N   | |   1 )   +   P ;   T   =   ( ( N   | |   1 )   /   R . c u r ( t r u e ) )   *   T ;   J . s t y l e [ O ]   =   T   +   P   }   i f   ( Q [ 1 ] )   {   N   =   ( ( Q [ 1 ]   = =   " - = "   ?   - 1   :   1 )   *   N )   +   T   }   R . c u s t o m ( T ,   N ,   P )   }   e l s e   {   R . c u s t o m ( T ,   S ,   " " )   }   }   } ) ;   r e t u r n   t r u e   } )   } ,   s t o p :   f u n c t i o n ( F ,   E )   {   v a r   G   =   o . t i m e r s ;   i f   ( F )   {   t h i s . q u e u e ( [ ] )   }   t h i s . e a c h ( f u n c t i o n ( )   {   f o r   ( v a r   H   =   G . l e n g t h   -   1 ;   H   > =   0 ;   H - - )   {   i f   ( G [ H ] . e l e m   = =   t h i s )   {   i f   ( E )   {   G [ H ] ( t r u e )   }   G . s p l i c e ( H ,   1 )   }   }   } ) ;   i f   ( ! E )   {   t h i s . d e q u e u e ( )   }   r e t u r n   t h i s   }   } ) ;   o . e a c h ( {   s l i d e D o w n :   t ( " s h o w " ,   1 ) ,   s l i d e U p :   t ( " h i d e " ,   1 ) ,   s l i d e T o g g l e :   t ( " t o g g l e " ,   1 ) ,   f a d e I n :   {   o p a c i t y :   " s h o w "   } ,   f a d e O u t :   {   o p a c i t y :   " h i d e " }   } ,   f u n c t i o n ( E ,   F )   {   o . f n [ E ]   =   f u n c t i o n ( G ,   H )   {   r e t u r n   t h i s . a n i m a t e ( F ,   G ,   H )   }   } ) ;   o . e x t e n d ( {   s p e e d :   f u n c t i o n ( G ,   H ,   F )   {   v a r   E   =   t y p e o f   G   = = =   " o b j e c t "   ?   G   :   {   c o m p l e t e :   F   | |   ! F   & &   H   | |   o . i s F u n c t i o n ( G )   & &   G ,   d u r a t i o n :   G ,   e a s i n g :   F   & &   H   | |   H   & &   ! o . i s F u n c t i o n ( H )   & &   H   } ;   E . d u r a t i o n   =   o . f x . o f f   ?   0   :   t y p e o f   E . d u r a t i o n   = = =   " n u m b e r "   ?   E . d u r a t i o n   :   o . f x . s p e e d s [ E . d u r a t i o n ]   | |   o . f x . s p e e d s . _ d e f a u l t ;   E . o l d   =   E . c o m p l e t e ;   E . c o m p l e t e   =   f u n c t i o n ( )   {   i f   ( E . q u e u e   ! = =   f a l s e )   {   o ( t h i s ) . d e q u e u e ( )   }   i f   ( o . i s F u n c t i o n ( E . o l d ) )   {   E . o l d . c a l l ( t h i s )   }   } ;   r e t u r n   E   } ,   e a s i n g :   {   l i n e a r :   f u n c t i o n ( G ,   H ,   E ,   F )   {   r e t u r n   E   +   F   *   G   } ,   s w i n g :   f u n c t i o n ( G ,   H ,   E ,   F )   {   r e t u r n   ( ( - M a t h . c o s ( G   *   M a t h . P I )   /   2 )   +   0 . 5 )   *   F   +   E   }   } ,   t i m e r s :   [ ] ,   f x :   f u n c t i o n ( F ,   E ,   G )   {   t h i s . o p t i o n s   =   E ;   t h i s . e l e m   =   F ;   t h i s . p r o p   =   G ;   i f   ( ! E . o r i g )   {   E . o r i g   =   { }   }   }   } ) ;   o . f x . p r o t o t y p e   =   {   u p d a t e :   f u n c t i o n ( )   {   i f   ( t h i s . o p t i o n s . s t e p )   {   t h i s . o p t i o n s . s t e p . c a l l ( t h i s . e l e m ,   t h i s . n o w ,   t h i s )   }   ( o . f x . s t e p [ t h i s . p r o p ]   | |   o . f x . s t e p . _ d e f a u l t ) ( t h i s ) ;   i f   ( ( t h i s . p r o p   = =   " h e i g h t "   | |   t h i s . p r o p   = =   " w i d t h " )   & &   t h i s . e l e m . s t y l e )   {   t h i s . e l e m . s t y l e . d i s p l a y   =   " b l o c k "   }   } ,   c u r :   f u n c t i o n ( F )   {   i f   ( t h i s . e l e m [ t h i s . p r o p ]   ! =   n u l l   & &   ( ! t h i s . e l e m . s t y l e   | |   t h i s . e l e m . s t y l e [ t h i s . p r o p ]   = =   n u l l ) )   {   r e t u r n   t h i s . e l e m [ t h i s . p r o p ]   }   v a r   E   =   p a r s e F l o a t ( o . c s s ( t h i s . e l e m ,   t h i s . p r o p ,   F ) ) ;   r e t u r n   E   & &   E   >   - 1 0 0 0 0   ?   E   :   p a r s e F l o a t ( o . c u r C S S ( t h i s . e l e m ,   t h i s . p r o p ) )   | |   0   } ,   c u s t o m :   f u n c t i o n ( I ,   H ,   G )   {   t h i s . s t a r t T i m e   =   e ( ) ;   t h i s . s t a r t   =   I ;   t h i s . e n d   =   H ;   t h i s . u n i t   =   G   | |   t h i s . u n i t   | |   " p x " ;   t h i s . n o w   =   t h i s . s t a r t ;   t h i s . p o s   =   t h i s . s t a t e   =   0 ;   v a r   E   =   t h i s ;   f u n c t i o n   F ( J )   {   r e t u r n   E . s t e p ( J )   }   F . e l e m   =   t h i s . e l e m ;   i f   ( F ( )   & &   o . t i m e r s . p u s h ( F )   & &   ! n )   {   n   =   s e t I n t e r v a l ( f u n c t i o n ( )   {   v a r   K   =   o . t i m e r s ;   f o r   ( v a r   J   =   0 ;   J   <   K . l e n g t h ;   J + + )   {   i f   ( ! K [ J ] ( ) )   {   K . s p l i c e ( J - - ,   1 )   }   }   i f   ( ! K . l e n g t h )   {   c l e a r I n t e r v a l ( n ) ;   n   =   g   }   } ,   1 3 )   }   } ,   s h o w :   f u n c t i o n ( )   {   t h i s . o p t i o n s . o r i g [ t h i s . p r o p ]   =   o . a t t r ( t h i s . e l e m . s t y l e ,   t h i s . p r o p ) ;   t h i s . o p t i o n s . s h o w   =   t r u e ;   t h i s . c u s t o m ( t h i s . p r o p   = =   " w i d t h "   | |   t h i s . p r o p   = =   " h e i g h t "   ?   1   :   0 ,   t h i s . c u r ( ) ) ;   o ( t h i s . e l e m ) . s h o w ( )   } ,   h i d e :   f u n c t i o n ( )   {   t h i s . o p t i o n s . o r i g [ t h i s . p r o p ]   =   o . a t t r ( t h i s . e l e m . s t y l e ,   t h i s . p r o p ) ;   t h i s . o p t i o n s . h i d e   =   t r u e ;   t h i s . c u s t o m ( t h i s . c u r ( ) ,   0 )   } ,   s t e p :   f u n c t i o n ( H )   {   v a r   G   =   e ( ) ;   i f   ( H   | |   G   > =   t h i s . o p t i o n s . d u r a t i o n   +   t h i s . s t a r t T i m e )   {   t h i s . n o w   =   t h i s . e n d ;   t h i s . p o s   =   t h i s . s t a t e   =   1 ;   t h i s . u p d a t e ( ) ;   t h i s . o p t i o n s . c u r A n i m [ t h i s . p r o p ]   =   t r u e ;   v a r   E   =   t r u e ;   f o r   ( v a r   F   i n   t h i s . o p t i o n s . c u r A n i m )   {   i f   ( t h i s . o p t i o n s . c u r A n i m [ F ]   ! = =   t r u e )   {   E   =   f a l s e   }   }   i f   ( E )   {   i f   ( t h i s . o p t i o n s . d i s p l a y   ! =   n u l l )   {   t h i s . e l e m . s t y l e . o v e r f l o w   =   t h i s . o p t i o n s . o v e r f l o w ;   t h i s . e l e m . s t y l e . d i s p l a y   =   t h i s . o p t i o n s . d i s p l a y ;   i f   ( o . c s s ( t h i s . e l e m ,   " d i s p l a y " )   = =   " n o n e " )   {   t h i s . e l e m . s t y l e . d i s p l a y   =   " b l o c k "   }   }   i f   ( t h i s . o p t i o n s . h i d e )   {   o ( t h i s . e l e m ) . h i d e ( )   }   i f   ( t h i s . o p t i o n s . h i d e   | |   t h i s . o p t i o n s . s h o w )   {   f o r   ( v a r   I   i n   t h i s . o p t i o n s . c u r A n i m )   {   o . a t t r ( t h i s . e l e m . s t y l e ,   I ,   t h i s . o p t i o n s . o r i g [ I ] )   }   }   t h i s . o p t i o n s . c o m p l e t e . c a l l ( t h i s . e l e m )   }   r e t u r n   f a l s e   }   e l s e   {   v a r   J   =   G   -   t h i s . s t a r t T i m e ;   t h i s . s t a t e   =   J   /   t h i s . o p t i o n s . d u r a t i o n ;   t h i s . p o s   =   o . e a s i n g [ t h i s . o p t i o n s . e a s i n g   | |   ( o . e a s i n g . s w i n g   ?   " s w i n g "   :   " l i n e a r " ) ] ( t h i s . s t a t e ,   J ,   0 ,   1 ,   t h i s . o p t i o n s . d u r a t i o n ) ;   t h i s . n o w   =   t h i s . s t a r t   +   ( ( t h i s . e n d   -   t h i s . s t a r t )   *   t h i s . p o s ) ;   t h i s . u p d a t e ( )   }   r e t u r n   t r u e   }   } ;   o . e x t e n d ( o . f x ,   {   s p e e d s :   {   s l o w :   6 0 0 ,   f a s t :   2 0 0 ,   _ d e f a u l t :   4 0 0   } ,   s t e p :   {   o p a c i t y :   f u n c t i o n ( E )   {   o . a t t r ( E . e l e m . s t y l e ,   " o p a c i t y " ,   E . n o w )   } ,   _ d e f a u l t :   f u n c t i o n ( E )   {   i f   ( E . e l e m . s t y l e   & &   E . e l e m . s t y l e [ E . p r o p ]   ! =   n u l l )   {   E . e l e m . s t y l e [ E . p r o p ]   =   E . n o w   +   E . u n i t   }   e l s e   {   E . e l e m [ E . p r o p ]   =   E . n o w   }   }   }   } ) ;   i f   ( d o c u m e n t . d o c u m e n t E l e m e n t . g e t B o u n d i n g C l i e n t R e c t )   {   o . f n . o f f s e t   =   f u n c t i o n ( )   {   i f   ( ! t h i s [ 0 ] )   {   r e t u r n   {   t o p :   0 ,   l e f t :   0 }   }   i f   ( t h i s [ 0 ]   = = =   t h i s [ 0 ] . o w n e r D o c u m e n t . b o d y )   {   r e t u r n   o . o f f s e t . b o d y O f f s e t ( t h i s [ 0 ] )   }   v a r   G   =   t h i s [ 0 ] . g e t B o u n d i n g C l i e n t R e c t ( ) ,   J   =   t h i s [ 0 ] . o w n e r D o c u m e n t ,   F   =   J . b o d y ,   E   =   J . d o c u m e n t E l e m e n t ,   L   =   E . c l i e n t T o p   | |   F . c l i e n t T o p   | |   0 ,   K   =   E . c l i e n t L e f t   | |   F . c l i e n t L e f t   | |   0 ,   I   =   G . t o p   +   ( s e l f . p a g e Y O f f s e t   | |   o . b o x M o d e l   & &   E . s c r o l l T o p   | |   F . s c r o l l T o p )   -   L ,   H   =   G . l e f t   +   ( s e l f . p a g e X O f f s e t   | |   o . b o x M o d e l   & &   E . s c r o l l L e f t   | |   F . s c r o l l L e f t )   -   K ;   r e t u r n   {   t o p :   I ,   l e f t :   H }   }   }   e l s e   {   o . f n . o f f s e t   =   f u n c t i o n ( )   {   i f   ( ! t h i s [ 0 ] )   {   r e t u r n   {   t o p :   0 ,   l e f t :   0 }   }   i f   ( t h i s [ 0 ]   = = =   t h i s [ 0 ] . o w n e r D o c u m e n t . b o d y )   {   r e t u r n   o . o f f s e t . b o d y O f f s e t ( t h i s [ 0 ] )   }   o . o f f s e t . i n i t i a l i z e d   | |   o . o f f s e t . i n i t i a l i z e ( ) ;   v a r   J   =   t h i s [ 0 ] ,   G   =   J . o f f s e t P a r e n t ,   F   =   J ,   O   =   J . o w n e r D o c u m e n t ,   M ,   H   =   O . d o c u m e n t E l e m e n t ,   K   =   O . b o d y ,   L   =   O . d e f a u l t V i e w ,   E   =   L . g e t C o m p u t e d S t y l e ( J ,   n u l l ) ,   N   =   J . o f f s e t T o p ,   I   =   J . o f f s e t L e f t ;   w h i l e   ( ( J   =   J . p a r e n t N o d e )   & &   J   ! = =   K   & &   J   ! = =   H )   {   M   =   L . g e t C o m p u t e d S t y l e ( J ,   n u l l ) ;   N   - =   J . s c r o l l T o p ,   I   - =   J . s c r o l l L e f t ;   i f   ( J   = = =   G )   {   N   + =   J . o f f s e t T o p ,   I   + =   J . o f f s e t L e f t ;   i f   ( o . o f f s e t . d o e s N o t A d d B o r d e r   & &   ! ( o . o f f s e t . d o e s A d d B o r d e r F o r T a b l e A n d C e l l s   & &   / ^ t ( a b l e | d | h ) $ / i . t e s t ( J . t a g N a m e ) ) )   {   N   + =   p a r s e I n t ( M . b o r d e r T o p W i d t h ,   1 0 )   | |   0 ,   I   + =   p a r s e I n t ( M . b o r d e r L e f t W i d t h ,   1 0 )   | |   0   }   F   =   G ,   G   =   J . o f f s e t P a r e n t   }   i f   ( o . o f f s e t . s u b t r a c t s B o r d e r F o r O v e r f l o w N o t V i s i b l e   & &   M . o v e r f l o w   ! = =   " v i s i b l e " )   {   N   + =   p a r s e I n t ( M . b o r d e r T o p W i d t h ,   1 0 )   | |   0 ,   I   + =   p a r s e I n t ( M . b o r d e r L e f t W i d t h ,   1 0 )   | |   0   }   E   =   M   }   i f   ( E . p o s i t i o n   = = =   " r e l a t i v e "   | |   E . p o s i t i o n   = = =   " s t a t i c " )   {   N   + =   K . o f f s e t T o p ,   I   + =   K . o f f s e t L e f t   }   i f   ( E . p o s i t i o n   = = =   " f i x e d " )   {   N   + =   M a t h . m a x ( H . s c r o l l T o p ,   K . s c r o l l T o p ) ,   I   + =   M a t h . m a x ( H . s c r o l l L e f t ,   K . s c r o l l L e f t )   }   r e t u r n   {   t o p :   N ,   l e f t :   I }   }   }   o . o f f s e t   =   {   i n i t i a l i z e :   f u n c t i o n ( )   {   i f   ( t h i s . i n i t i a l i z e d )   {   r e t u r n   }   v a r   L   =   d o c u m e n t . b o d y ,   F   =   d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ,   H ,   G ,   N ,   I ,   M ,   E ,   J   =   L . s t y l e . m a r g i n T o p ,   K   =   ' < d i v   s t y l e = " p o s i t i o n : a b s o l u t e ; t o p : 0 ; l e f t : 0 ; m a r g i n : 0 ; b o r d e r : 5 p x   s o l i d   # 0 0 0 ; p a d d i n g : 0 ; w i d t h : 1 p x ; h e i g h t : 1 p x ; " > < d i v > < / d i v > < / d i v > < t a b l e   s t y l e = " p o s i t i o n : a b s o l u t e ; t o p : 0 ; l e f t : 0 ; m a r g i n : 0 ; b o r d e r : 5 p x   s o l i d   # 0 0 0 ; p a d d i n g : 0 ; w i d t h : 1 p x ; h e i g h t : 1 p x ; "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 " > < t r > < t d > < / t d > < / t r > < / t a b l e > ' ;   M   =   {   p o s i t i o n :   " a b s o l u t e " ,   t o p :   0 ,   l e f t :   0 ,   m a r g i n :   0 ,   b o r d e r :   0 ,   w i d t h :   " 1 p x " ,   h e i g h t :   " 1 p x " ,   v i s i b i l i t y :   " h i d d e n "   } ;   f o r   ( E   i n   M )   {   F . s t y l e [ E ]   =   M [ E ]   }   F . i n n e r H T M L   =   K ;   L . i n s e r t B e f o r e ( F ,   L . f i r s t C h i l d ) ;   H   =   F . f i r s t C h i l d ,   G   =   H . f i r s t C h i l d ,   I   =   H . n e x t S i b l i n g . f i r s t C h i l d . f i r s t C h i l d ;   t h i s . d o e s N o t A d d B o r d e r   =   ( G . o f f s e t T o p   ! = =   5 ) ;   t h i s . d o e s A d d B o r d e r F o r T a b l e A n d C e l l s   =   ( I . o f f s e t T o p   = = =   5 ) ;   H . s t y l e . o v e r f l o w   =   " h i d d e n " ,   H . s t y l e . p o s i t i o n   =   " r e l a t i v e " ;   t h i s . s u b t r a c t s B o r d e r F o r O v e r f l o w N o t V i s i b l e   =   ( G . o f f s e t T o p   = = =   - 5 ) ;   L . s t y l e . m a r g i n T o p   =   " 1 p x " ;   t h i s . d o e s N o t I n c l u d e M a r g i n I n B o d y O f f s e t   =   ( L . o f f s e t T o p   = = =   0 ) ;   L . s t y l e . m a r g i n T o p   =   J ;   L . r e m o v e C h i l d ( F ) ;   t h i s . i n i t i a l i z e d   =   t r u e   } ,   b o d y O f f s e t :   f u n c t i o n ( E )   {   o . o f f s e t . i n i t i a l i z e d   | |   o . o f f s e t . i n i t i a l i z e ( ) ;   v a r   G   =   E . o f f s e t T o p ,   F   =   E . o f f s e t L e f t ;   i f   ( o . o f f s e t . d o e s N o t I n c l u d e M a r g i n I n B o d y O f f s e t )   {   G   + =   p a r s e I n t ( o . c u r C S S ( E ,   " m a r g i n T o p " ,   t r u e ) ,   1 0 )   | |   0 ,   F   + =   p a r s e I n t ( o . c u r C S S ( E ,   " m a r g i n L e f t " ,   t r u e ) ,   1 0 )   | |   0   }   r e t u r n   {   t o p :   G ,   l e f t :   F }   }   } ;   o . f n . e x t e n d ( {   p o s i t i o n :   f u n c t i o n ( )   {   v a r   I   =   0 ,   H   =   0 ,   F ;   i f   ( t h i s [ 0 ] )   {   v a r   G   =   t h i s . o f f s e t P a r e n t ( ) ,   J   =   t h i s . o f f s e t ( ) ,   E   =   / ^ b o d y | h t m l $ / i . t e s t ( G [ 0 ] . t a g N a m e )   ?   {   t o p :   0 ,   l e f t :   0 }   :   G . o f f s e t ( ) ;   J . t o p   - =   j ( t h i s ,   " m a r g i n T o p " ) ;   J . l e f t   - =   j ( t h i s ,   " m a r g i n L e f t " ) ;   E . t o p   + =   j ( G ,   " b o r d e r T o p W i d t h " ) ;   E . l e f t   + =   j ( G ,   " b o r d e r L e f t W i d t h " ) ;   F   =   {   t o p :   J . t o p   -   E . t o p ,   l e f t :   J . l e f t   -   E . l e f t }   }   r e t u r n   F   } ,   o f f s e t P a r e n t :   f u n c t i o n ( )   {   v a r   E   =   t h i s [ 0 ] . o f f s e t P a r e n t   | |   d o c u m e n t . b o d y ;   w h i l e   ( E   & &   ( ! / ^ b o d y | h t m l $ / i . t e s t ( E . t a g N a m e )   & &   o . c s s ( E ,   " p o s i t i o n " )   = =   " s t a t i c " ) )   {   E   =   E . o f f s e t P a r e n t   }   r e t u r n   o ( E )   }   } ) ;   o . e a c h ( [ " L e f t " ,   " T o p " ] ,   f u n c t i o n ( F ,   E )   {   v a r   G   =   " s c r o l l "   +   E ;   o . f n [ G ]   =   f u n c t i o n ( H )   {   i f   ( ! t h i s [ 0 ] )   {   r e t u r n   n u l l   }   r e t u r n   H   ! = =   g   ?   t h i s . e a c h ( f u n c t i o n ( )   {   t h i s   = =   l   | |   t h i s   = =   d o c u m e n t   ?   l . s c r o l l T o ( ! F   ?   H   :   o ( l ) . s c r o l l L e f t ( ) ,   F   ?   H   :   o ( l ) . s c r o l l T o p ( ) )   :   t h i s [ G ]   =   H   } )   :   t h i s [ 0 ]   = =   l   | |   t h i s [ 0 ]   = =   d o c u m e n t   ?   s e l f [ F   ?   " p a g e Y O f f s e t "   :   " p a g e X O f f s e t " ]   | |   o . b o x M o d e l   & &   d o c u m e n t . d o c u m e n t E l e m e n t [ G ]   | |   d o c u m e n t . b o d y [ G ]   :   t h i s [ 0 ] [ G ]   }   } ) ;   o . e a c h ( [ " H e i g h t " ,   " W i d t h " ] ,   f u n c t i o n ( I ,   G )   {   v a r   E   =   I   ?   " L e f t "   :   " T o p " ,   H   =   I   ?   " R i g h t "   :   " B o t t o m " ,   F   =   G . t o L o w e r C a s e ( ) ;   o . f n [ " i n n e r "   +   G ]   =   f u n c t i o n ( )   {   r e t u r n   t h i s [ 0 ]   ?   o . c s s ( t h i s [ 0 ] ,   F ,   f a l s e ,   " p a d d i n g " )   :   n u l l   } ;   o . f n [ " o u t e r "   +   G ]   =   f u n c t i o n ( K )   {   r e t u r n   t h i s [ 0 ]   ?   o . c s s ( t h i s [ 0 ] ,   F ,   f a l s e ,   K   ?   " m a r g i n "   :   " b o r d e r " )   :   n u l l   } ;   v a r   J   =   G . t o L o w e r C a s e ( ) ;   o . f n [ J ]   =   f u n c t i o n ( K )   {   r e t u r n   t h i s [ 0 ]   = =   l   ?   d o c u m e n t . c o m p a t M o d e   = =   " C S S 1 C o m p a t "   & &   d o c u m e n t . d o c u m e n t E l e m e n t [ " c l i e n t "   +   G ]   | |   d o c u m e n t . b o d y [ " c l i e n t "   +   G ]   :   t h i s [ 0 ]   = =   d o c u m e n t   ?   M a t h . m a x ( d o c u m e n t . d o c u m e n t E l e m e n t [ " c l i e n t "   +   G ] ,   d o c u m e n t . b o d y [ " s c r o l l "   +   G ] ,   d o c u m e n t . d o c u m e n t E l e m e n t [ " s c r o l l "   +   G ] ,   d o c u m e n t . b o d y [ " o f f s e t "   +   G ] ,   d o c u m e n t . d o c u m e n t E l e m e n t [ " o f f s e t "   +   G ] )   :   K   = = =   g   ?   ( t h i s . l e n g t h   ?   o . c s s ( t h i s [ 0 ] ,   J )   :   n u l l )   :   t h i s . c s s ( J ,   t y p e o f   K   = = =   " s t r i n g "   ?   K   :   K   +   " p x " )   }   } )  
 } ) ( ) ;  
 / * C o r n e r * /  
 ( f u n c t i o n ( $ )   {   v a r   e x p r   =   ( f u n c t i o n ( )   {   v a r   d i v   =   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ;   t r y   {   d i v . s t y l e . s e t E x p r e s s i o n ( ' w i d t h ' ,   ' 0 + 0 ' )   }   c a t c h   ( e )   {   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   s z ( e l ,   p )   {   r e t u r n   p a r s e I n t ( $ . c s s ( e l ,   p ) )   | |   0   } ;   f u n c t i o n   h e x 2 ( s )   {   v a r   s   =   p a r s e I n t ( s ) . t o S t r i n g ( 1 6 ) ;   r e t u r n   ( s . l e n g t h   <   2 )   ?   ' 0 '   +   s   :   s   } ;   f u n c t i o n   g p c ( n o d e )   {   f o r   ( ;   n o d e   & &   n o d e . n o d e N a m e . t o L o w e r C a s e ( )   ! =   ' h t m l ' ;   n o d e   =   n o d e . p a r e n t N o d e )   {   v a r   v   =   $ . c s s ( n o d e ,   ' b a c k g r o u n d C o l o r ' ) ;   i f   ( v . i n d e x O f ( ' r g b ' )   > =   0 )   {   i f   ( $ . b r o w s e r . s a f a r i   & &   v   = =   ' r g b a ( 0 ,   0 ,   0 ,   0 ) ' )   c o n t i n u e ;   v a r   r g b   =   v . m a t c h ( / \ d + / g ) ;   r e t u r n   ' # '   +   h e x 2 ( r g b [ 0 ] )   +   h e x 2 ( r g b [ 1 ] )   +   h e x 2 ( r g b [ 2 ] )   }   i f   ( v   & &   v   ! =   ' t r a n s p a r e n t ' )   r e t u r n   v   }   r e t u r n   ' # f f f f f f '   } ;   f u n c t i o n   g e t W i d t h ( f x ,   i ,   w i d t h )   {   s w i t c h   ( f x )   {   c a s e   ' r o u n d ' :   r e t u r n   M a t h . r o u n d ( w i d t h   *   ( 1   -   M a t h . c o s ( M a t h . a s i n ( i   /   w i d t h ) ) ) ) ;   c a s e   ' c o o l ' :   r e t u r n   M a t h . r o u n d ( w i d t h   *   ( 1   +   M a t h . c o s ( M a t h . a s i n ( i   /   w i d t h ) ) ) ) ;   c a s e   ' s h a r p ' :   r e t u r n   M a t h . r o u n d ( w i d t h   *   ( 1   -   M a t h . c o s ( M a t h . a c o s ( i   /   w i d t h ) ) ) ) ;   c a s e   ' b i t e ' :   r e t u r n   M a t h . r o u n d ( w i d t h   *   ( M a t h . c o s ( M a t h . a s i n ( ( w i d t h   -   i   -   1 )   /   w i d t h ) ) ) ) ;   c a s e   ' s l i d e ' :   r e t u r n   M a t h . r o u n d ( w i d t h   *   ( M a t h . a t a n 2 ( i ,   w i d t h   /   i ) ) ) ;   c a s e   ' j u t ' :   r e t u r n   M a t h . r o u n d ( w i d t h   *   ( M a t h . a t a n 2 ( w i d t h ,   ( w i d t h   -   i   -   1 ) ) ) ) ;   c a s e   ' c u r l ' :   r e t u r n   M a t h . r o u n d ( w i d t h   *   ( M a t h . a t a n ( i ) ) ) ;   c a s e   ' t e a r ' :   r e t u r n   M a t h . r o u n d ( w i d t h   *   ( M a t h . c o s ( i ) ) ) ;   c a s e   ' w i c k e d ' :   r e t u r n   M a t h . r o u n d ( w i d t h   *   ( M a t h . t a n ( i ) ) ) ;   c a s e   ' l o n g ' :   r e t u r n   M a t h . r o u n d ( w i d t h   *   ( M a t h . s q r t ( i ) ) ) ;   c a s e   ' s c u l p t ' :   r e t u r n   M a t h . r o u n d ( w i d t h   *   ( M a t h . l o g ( ( w i d t h   -   i   -   1 ) ,   w i d t h ) ) ) ;   c a s e   ' d o g ' :   r e t u r n   ( i   &   1 )   ?   ( i   +   1 )   :   w i d t h ;   c a s e   ' d o g 2 ' :   r e t u r n   ( i   &   2 )   ?   ( i   +   1 )   :   w i d t h ;   c a s e   ' d o g 3 ' :   r e t u r n   ( i   &   3 )   ?   ( i   +   1 )   :   w i d t h ;   c a s e   ' f r a y ' :   r e t u r n   ( i   %   2 )   *   w i d t h ;   c a s e   ' n o t c h ' :   r e t u r n   w i d t h ;   c a s e   ' b e v e l ' :   r e t u r n   i   +   1   }   } ;   $ . f n . c o r n e r   =   f u n c t i o n ( o )   {   i f   ( t h i s . l e n g t h   = =   0 )   {   i f   ( ! $ . i s R e a d y   & &   t h i s . s e l e c t o r )   {   v a r   s   =   t h i s . s e l e c t o r ,   c   =   t h i s . c o n t e x t ;   $ ( f u n c t i o n ( )   {   $ ( s ,   c ) . c o r n e r ( o )   } )   }   r e t u r n   t h i s   }   o   =   ( o   | |   " " ) . t o L o w e r C a s e ( ) ;   v a r   k e e p   =   / k e e p / . t e s t ( o ) ;   v a r   c c   =   ( ( o . m a t c h ( / c c : ( # [ 0 - 9 a - f ] + ) / )   | |   [ ] ) [ 1 ] ) ;   v a r   s c   =   ( ( o . m a t c h ( / s c : ( # [ 0 - 9 a - f ] + ) / )   | |   [ ] ) [ 1 ] ) ;   v a r   w i d t h   =   p a r s e I n t ( ( o . m a t c h ( / ( \ d + ) p x / )   | |   [ ] ) [ 1 ] )   | |   1 0 ;   v a r   r e   =   / r o u n d | b e v e l | n o t c h | b i t e | c o o l | s h a r p | s l i d e | j u t | c u r l | t e a r | f r a y | w i c k e d | s c u l p t | l o n g | d o g 3 | d o g 2 | d o g / ;   v a r   f x   =   ( ( o . m a t c h ( r e )   | |   [ ' r o u n d ' ] ) [ 0 ] ) ;   v a r   e d g e s   =   {   T :   0 ,   B :   1   } ;   v a r   o p t s   =   {   T L :   / t o p | t l / . t e s t ( o ) ,   T R :   / t o p | t r / . t e s t ( o ) ,   B L :   / b o t t o m | b l / . t e s t ( o ) ,   B R :   / b o t t o m | b r / . t e s t ( o )   } ;   i f   ( ! o p t s . T L   & &   ! o p t s . T R   & &   ! o p t s . B L   & &   ! o p t s . B R )   o p t s   =   {   T L :   1 ,   T R :   1 ,   B L :   1 ,   B R :   1   } ;   v a r   s t r i p   =   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ;   s t r i p . s t y l e . o v e r f l o w   =   ' h i d d e n ' ;   s t r i p . s t y l e . h e i g h t   =   ' 1 p x ' ;   s t r i p . s t y l e . b a c k g r o u n d C o l o r   =   s c   | |   ' t r a n s p a r e n t ' ;   s t r i p . s t y l e . b o r d e r S t y l e   =   ' s o l i d ' ;   r e t u r n   t h i s . e a c h ( f u n c t i o n ( i n d e x )   {   v a r   p a d   =   {   T :   p a r s e I n t ( $ . c s s ( t h i s ,   ' p a d d i n g T o p ' ) )   | |   0 ,   R :   p a r s e I n t ( $ . c s s ( t h i s ,   ' p a d d i n g R i g h t ' ) )   | |   0 ,   B :   p a r s e I n t ( $ . c s s ( t h i s ,   ' p a d d i n g B o t t o m ' ) )   | |   0 ,   L :   p a r s e I n t ( $ . c s s ( t h i s ,   ' p a d d i n g L e f t ' ) )   | |   0   } ;   i f   ( t y p e o f   t h i s . s t y l e . z o o m   ! =   u n d e f i n e d )   t h i s . s t y l e . z o o m   =   1 ;   i f   ( ! k e e p )   t h i s . s t y l e . b o r d e r   =   ' n o n e ' ;   s t r i p . s t y l e . b o r d e r C o l o r   =   c c   | |   g p c ( t h i s . p a r e n t N o d e ) ;   v a r   c s s H e i g h t   =   $ . c u r C S S ( t h i s ,   ' h e i g h t ' ) ;   f o r   ( v a r   j   i n   e d g e s )   {   v a r   b o t   =   e d g e s [ j ] ;   i f   ( ( b o t   & &   ( o p t s . B L   | |   o p t s . B R ) )   | |   ( ! b o t   & &   ( o p t s . T L   | |   o p t s . T R ) ) )   {   s t r i p . s t y l e . b o r d e r S t y l e   =   ' n o n e   '   +   ( o p t s [ j   +   ' R ' ]   ?   ' s o l i d '   :   ' n o n e ' )   +   '   n o n e   '   +   ( o p t s [ j   +   ' L ' ]   ?   ' s o l i d '   :   ' n o n e ' ) ;   v a r   d   =   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ;   $ ( d ) . a d d C l a s s ( ' j q u e r y - c o r n e r ' ) ;   v a r   d s   =   d . s t y l e ;   b o t   ?   t h i s . a p p e n d C h i l d ( d )   :   t h i s . i n s e r t B e f o r e ( d ,   t h i s . f i r s t C h i l d ) ;   i f   ( b o t   & &   c s s H e i g h t   ! =   ' a u t o ' )   {   i f   ( $ . c s s ( t h i s ,   ' p o s i t i o n ' )   = =   ' s t a t i c ' )   t h i s . s t y l e . p o s i t i o n   =   ' r e l a t i v e ' ;   d s . p o s i t i o n   =   ' a b s o l u t e ' ;   d s . b o t t o m   =   d s . l e f t   =   d s . p a d d i n g   =   d s . m a r g i n   =   ' 0 ' ;   i f   ( e x p r )   d s . s e t E x p r e s s i o n ( ' w i d t h ' ,   ' t h i s . p a r e n t N o d e . o f f s e t W i d t h ' ) ;   e l s e   d s . w i d t h   =   ' 1 0 0 % '   }   e l s e   i f   ( ! b o t   & &   $ . b r o w s e r . m s i e )   {   i f   ( $ . c s s ( t h i s ,   ' p o s i t i o n ' )   = =   ' s t a t i c ' )   t h i s . s t y l e . p o s i t i o n   =   ' r e l a t i v e ' ;   d s . p o s i t i o n   =   ' a b s o l u t e ' ;   d s . t o p   =   d s . l e f t   =   d s . r i g h t   =   d s . p a d d i n g   =   d s . m a r g i n   =   ' 0 ' ;   i f   ( e x p r )   {   v a r   b w   =   s z ( t h i s ,   ' b o r d e r L e f t W i d t h ' )   +   s z ( t h i s ,   ' b o r d e r R i g h t W i d t h ' ) ;   d s . s e t E x p r e s s i o n ( ' w i d t h ' ,   ' t h i s . p a r e n t N o d e . o f f s e t W i d t h   -   '   +   b w   +   ' +   " p x " ' )   }   e l s e   d s . w i d t h   =   ' 1 0 0 % '   }   e l s e   {   d s . m a r g i n   =   ! b o t   ?   ' - '   +   p a d . T   +   ' p x   - '   +   p a d . R   +   ' p x   '   +   ( p a d . T   -   w i d t h )   +   ' p x   - '   +   p a d . L   +   ' p x '   :   ( p a d . B   -   w i d t h )   +   ' p x   - '   +   p a d . R   +   ' p x   - '   +   p a d . B   +   ' p x   - '   +   p a d . L   +   ' p x '   }   f o r   ( v a r   i   =   0 ;   i   <   w i d t h ;   i + + )   {   v a r   w   =   M a t h . m a x ( 0 ,   g e t W i d t h ( f x ,   i ,   w i d t h ) ) ;   v a r   e   =   s t r i p . c l o n e N o d e ( f a l s e ) ;   e . s t y l e . b o r d e r W i d t h   =   ' 0   '   +   ( o p t s [ j   +   ' R ' ]   ?   w   :   0 )   +   ' p x   0   '   +   ( o p t s [ j   +   ' L ' ]   ?   w   :   0 )   +   ' p x ' ;   b o t   ?   d . a p p e n d C h i l d ( e )   :   d . i n s e r t B e f o r e ( e ,   d . f i r s t C h i l d )   }   }   }   } )   } ;   $ . f n . u n c o r n e r   =   f u n c t i o n ( )   {   $ ( ' d i v . j q u e r y - c o r n e r ' ,   t h i s ) . r e m o v e ( ) ;   r e t u r n   t h i s   }   } ) ( j Q u e r y ) ;  
 / * h o v e r p u l s e * /  
 ( f u n c t i o n ( $ )   {   $ . f n . h o v e r p u l s e   =   f u n c t i o n ( o p t i o n s )   {   i f   ( t h i s . l e n g t h   = =   0 )   {   i f   ( ! $ . i s R e a d y   & &   t h i s . s e l e c t o r )   {   v a r   s   =   t h i s . s e l e c t o r ,   c   =   t h i s . c o n t e x t ;   $ ( f u n c t i o n ( )   {   $ ( s ,   c ) . h o v e r p u l s e ( o p t i o n s )   } )   }   r e t u r n   t h i s   }   v a r   o p t s   =   $ . e x t e n d ( { } ,   $ . f n . h o v e r p u l s e . d e f a u l t s ,   o p t i o n s ) ;   t h i s . p a r e n t ( ) . c s s ( {   p o s i t i o n :   ' r e l a t i v e '   } ) ;   t h i s . c s s ( {   p o s i t i o n :   ' a b s o l u t e ' ,   t o p :   0 ,   l e f t :   0   } ) ;   t h i s . e a c h ( f u n c t i o n ( )   {   v a r   $ t h i s   =   $ ( t h i s ) ;   v a r   w   =   $ t h i s . w i d t h ( ) ,   h   =   $ t h i s . h e i g h t ( ) ;   $ t h i s . d a t a ( ' h o v e r p u l s e . s i z e ' ,   {   w :   p a r s e I n t ( w ) ,   h :   p a r s e I n t ( h )   } )   } ) ;   r e t u r n   t h i s . h o v e r ( f u n c t i o n ( )   {   v a r   $ t h i s   =   $ ( t h i s ) ;   $ t h i s . p a r e n t ( ) . c s s ( ' z - i n d e x ' ,   o p t s . z I n d e x A c t i v e ) ;   v a r   s i z e   =   $ t h i s . d a t a ( ' h o v e r p u l s e . s i z e ' ) ;   v a r   w   =   s i z e . w ,   h   =   s i z e . h ;   $ t h i s . s t o p ( ) . a n i m a t e ( {   t o p :   ( ' - '   +   o p t s . s i z e   +   ' p x ' ) ,   l e f t :   ( ' - '   +   o p t s . s i z e   +   ' p x ' ) ,   h e i g h t :   ( h   +   2   *   o p t s . s i z e )   +   ' p x ' ,   w i d t h :   ( w   +   2   *   o p t s . s i z e )   +   ' p x '   } ,   o p t s . s p e e d )   } ,   f u n c t i o n ( )   {   v a r   $ t h i s   =   $ ( t h i s ) ;   v a r   s i z e   =   $ t h i s . d a t a ( ' h o v e r p u l s e . s i z e ' ) ;   v a r   w   =   s i z e . w ,   h   =   s i z e . h ;   $ t h i s . s t o p ( ) . a n i m a t e ( {   t o p :   0 ,   l e f t :   0 ,   h e i g h t :   ( h   +   ' p x ' ) ,   w i d t h :   ( w   +   ' p x ' )   } ,   o p t s . s p e e d ,   f u n c t i o n ( )   {   $ t h i s . p a r e n t ( ) . c s s ( ' z - i n d e x ' ,   o p t s . z I n d e x N o r m a l )   } )   } )   } ;   $ . f n . h o v e r p u l s e . d e f a u l t s   =   {   s i z e :   2 0 ,   s p e e d :   2 0 0 ,   z I n d e x A c t i v e :   1 0 0 ,   z I n d e x N o r m a l :   1 }   } ) ( j Q u e r y ) ;  
 v a r   $ j   =   j Q u e r y . n o C o n f l i c t ( ) ;  
 v a r   P r o t o t y p e   =   {   V e r s i o n :   ' 1 . 5 . 1 ' ,   B r o w s e r :   {   I E :   ! ! ( w i n d o w . a t t a c h E v e n t   & &   ! w i n d o w . o p e r a ) ,   O p e r a :   ! ! w i n d o w . o p e r a ,   W e b K i t :   n a v i g a t o r . u s e r A g e n t . i n d e x O f ( ' A p p l e W e b K i t / ' )   >   - 1 ,   G e c k o :   n a v i g a t o r . u s e r A g e n t . i n d e x O f ( ' G e c k o ' )   >   - 1   & &   n a v i g a t o r . u s e r A g e n t . i n d e x O f ( ' K H T M L ' )   = =   - 1   } ,   B r o w s e r F e a t u r e s :   {   X P a t h :   ! ! d o c u m e n t . e v a l u a t e ,   E l e m e n t E x t e n s i o n s :   ! ! w i n d o w . H T M L E l e m e n t ,   S p e c i f i c E l e m e n t E x t e n s i o n s :   ( d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) . _ _ p r o t o _ _   ! = =   d o c u m e n t . c r e a t e E l e m e n t ( ' f o r m ' ) . _ _ p r o t o _ _ )   } ,   S c r i p t F r a g m e n t :   ' < s c r i p t [ ^ > ] * > ( [ \ u 0 0 0 1 - \ u F F F F ] * ? ) < / s c r i p t > ' ,   J S O N F i l t e r :   / ^ \ / \ * - s e c u r e - \ s * ( . * ) \ s * \ * \ / \ s * $ / ,   e m p t y F u n c t i o n :   f u n c t i o n ( )   {   } ,   K :   f u n c t i o n ( x )   {   r e t u r n   x   }   } ;   v a r   C l a s s   =   {   c r e a t e :   f u n c t i o n ( )   {   r e t u r n   f u n c t i o n ( )   {   t h i s . i n i t i a l i z e . a p p l y ( t h i s ,   a r g u m e n t s )   }   }   } ;   v a r   A b s t r a c t   =   n e w   O b j e c t ( ) ;   O b j e c t . e x t e n d   =   f u n c t i o n ( a ,   b )   {   f o r   ( v a r   c   i n   b )   {   a [ c ]   =   b [ c ]   }   r e t u r n   a   } ;   O b j e c t . e x t e n d ( O b j e c t ,   {   i n s p e c t :   f u n c t i o n ( a )   {   t r y   {   i f   ( a   = = =   u n d e f i n e d )   r e t u r n   ' u n d e f i n e d ' ;   i f   ( a   = = =   n u l l )   r e t u r n   ' n u l l ' ;   r e t u r n   a . i n s p e c t   ?   a . i n s p e c t ( )   :   a . t o S t r i n g ( )   }   c a t c h   ( e )   {   i f   ( e   i n s t a n c e o f   R a n g e E r r o r )   r e t u r n   ' . . . ' ;   t h r o w   e ;   }   } ,   t o J S O N :   f u n c t i o n ( a )   {   v a r   b   =   t y p e o f   a ;   s w i t c h   ( b )   {   c a s e   ' u n d e f i n e d ' :   c a s e   ' f u n c t i o n ' :   c a s e   ' u n k n o w n ' :   r e t u r n ;   c a s e   ' b o o l e a n ' :   r e t u r n   a . t o S t r i n g ( )   }   i f   ( a   = = =   n u l l )   r e t u r n   ' n u l l ' ;   i f   ( a . t o J S O N )   r e t u r n   a . t o J S O N ( ) ;   i f   ( a . o w n e r D o c u m e n t   = = =   d o c u m e n t )   r e t u r n ;   v a r   c   =   [ ] ;   f o r   ( v a r   d   i n   a )   {   v a r   e   =   O b j e c t . t o J S O N ( a [ d ] ) ;   i f   ( e   ! = =   u n d e f i n e d )   c . p u s h ( d . t o J S O N ( )   +   ' :   '   +   e )   }   r e t u r n   ' { '   +   c . j o i n ( ' ,   ' )   +   ' } '   } ,   k e y s :   f u n c t i o n ( a )   {   v a r   b   =   [ ] ;   f o r   ( v a r   c   i n   a )   b . p u s h ( c ) ;   r e t u r n   b   } ,   v a l u e s :   f u n c t i o n ( a )   {   v a r   b   =   [ ] ;   f o r   ( v a r   c   i n   a )   b . p u s h ( a [ c ] ) ;   r e t u r n   b   } ,   c l o n e :   f u n c t i o n ( a )   {   r e t u r n   O b j e c t . e x t e n d ( { } ,   a )   }   } ) ;   F u n c t i o n . p r o t o t y p e . b i n d   =   f u n c t i o n ( )   {   v a r   a   =   t h i s ,   a r g s   =   $ A ( a r g u m e n t s ) ,   o b j e c t   =   a r g s . s h i f t ( ) ;   r e t u r n   f u n c t i o n ( )   {   r e t u r n   a . a p p l y ( o b j e c t ,   a r g s . c o n c a t ( $ A ( a r g u m e n t s ) ) )   }   } ;   F u n c t i o n . p r o t o t y p e . b i n d A s E v e n t L i s t e n e r   =   f u n c t i o n ( b )   {   v a r   c   =   t h i s ,   a r g s   =   $ A ( a r g u m e n t s ) ,   b   =   a r g s . s h i f t ( ) ;   r e t u r n   f u n c t i o n ( a )   {   r e t u r n   c . a p p l y ( b ,   [ a   | |   w i n d o w . e v e n t ] . c o n c a t ( a r g s ) )   }   } ;   O b j e c t . e x t e n d ( N u m b e r . p r o t o t y p e ,   {   t o C o l o r P a r t :   f u n c t i o n ( )   {   r e t u r n   t h i s . t o P a d d e d S t r i n g ( 2 ,   1 6 )   } ,   s u c c :   f u n c t i o n ( )   {   r e t u r n   t h i s   +   1   } ,   t i m e s :   f u n c t i o n ( a )   {   $ R ( 0 ,   t h i s ,   t r u e ) . e a c h ( a ) ;   r e t u r n   t h i s   } ,   t o P a d d e d S t r i n g :   f u n c t i o n ( a ,   b )   {   v a r   c   =   t h i s . t o S t r i n g ( b   | |   1 0 ) ;   r e t u r n   ' 0 ' . t i m e s ( a   -   c . l e n g t h )   +   c   } ,   t o J S O N :   f u n c t i o n ( )   {   r e t u r n   i s F i n i t e ( t h i s )   ?   t h i s . t o S t r i n g ( )   :   ' n u l l '   }   } ) ;   D a t e . p r o t o t y p e . t o J S O N   =   f u n c t i o n ( )   {   r e t u r n   ' " '   +   t h i s . g e t F u l l Y e a r ( )   +   ' - '   +   ( t h i s . g e t M o n t h ( )   +   1 ) . t o P a d d e d S t r i n g ( 2 )   +   ' - '   +   t h i s . g e t D a t e ( ) . t o P a d d e d S t r i n g ( 2 )   +   ' T '   +   t h i s . g e t H o u r s ( ) . t o P a d d e d S t r i n g ( 2 )   +   ' : '   +   t h i s . g e t M i n u t e s ( ) . t o P a d d e d S t r i n g ( 2 )   +   ' : '   +   t h i s . g e t S e c o n d s ( ) . t o P a d d e d S t r i n g ( 2 )   +   ' " '   } ;   v a r   T r y   =   {   t h e s e :   f u n c t i o n ( )   {   v a r   a ;   f o r   ( v a r   i   =   0 ,   l e n g t h   =   a r g u m e n t s . l e n g t h ;   i   <   l e n g t h ;   i + + )   {   v a r   b   =   a r g u m e n t s [ i ] ;   t r y   {   a   =   b ( ) ;   b r e a k   }   c a t c h   ( e )   {   }   }   r e t u r n   a   }   } ;   v a r   P e r i o d i c a l E x e c u t e r   =   C l a s s . c r e a t e ( ) ;   P e r i o d i c a l E x e c u t e r . p r o t o t y p e   =   {   i n i t i a l i z e :   f u n c t i o n ( a ,   b )   {   t h i s . c a l l b a c k   =   a ;   t h i s . f r e q u e n c y   =   b ;   t h i s . c u r r e n t l y E x e c u t i n g   =   f a l s e ;   t h i s . r e g i s t e r C a l l b a c k ( )   } ,   r e g i s t e r C a l l b a c k :   f u n c t i o n ( )   {   t h i s . t i m e r   =   s e t I n t e r v a l ( t h i s . o n T i m e r E v e n t . b i n d ( t h i s ) ,   t h i s . f r e q u e n c y   *   1 0 0 0 )   } ,   s t o p :   f u n c t i o n ( )   {   i f   ( ! t h i s . t i m e r )   r e t u r n ;   c l e a r I n t e r v a l ( t h i s . t i m e r ) ;   t h i s . t i m e r   =   n u l l   } ,   o n T i m e r E v e n t :   f u n c t i o n ( )   {   i f   ( ! t h i s . c u r r e n t l y E x e c u t i n g )   {   t r y   {   t h i s . c u r r e n t l y E x e c u t i n g   =   t r u e ;   t h i s . c a l l b a c k ( t h i s )   }   f i n a l l y   {   t h i s . c u r r e n t l y E x e c u t i n g   =   f a l s e   }   }   }   } ;   O b j e c t . e x t e n d ( S t r i n g ,   {   i n t e r p r e t :   f u n c t i o n ( a )   {   r e t u r n   a   = =   n u l l   ?   ' '   :   S t r i n g ( a )   } ,   s p e c i a l C h a r :   {   ' \ b ' :   ' \ \ b ' ,   ' \ t ' :   ' \ \ t ' ,   ' \ n ' :   ' \ \ n ' ,   ' \ f ' :   ' \ \ f ' ,   ' \ r ' :   ' \ \ r ' ,   ' \ \ ' :   ' \ \ \ \ ' }   } ) ;   O b j e c t . e x t e n d ( S t r i n g . p r o t o t y p e ,   {   g s u b :   f u n c t i o n ( a ,   b )   {   v a r   c   =   ' ' ,   s o u r c e   =   t h i s ,   m a t c h ;   b   =   a r g u m e n t s . c a l l e e . p r e p a r e R e p l a c e m e n t ( b ) ;   w h i l e   ( s o u r c e . l e n g t h   >   0 )   {   i f   ( m a t c h   =   s o u r c e . m a t c h ( a ) )   {   c   + =   s o u r c e . s l i c e ( 0 ,   m a t c h . i n d e x ) ;   c   + =   S t r i n g . i n t e r p r e t ( b ( m a t c h ) ) ;   s o u r c e   =   s o u r c e . s l i c e ( m a t c h . i n d e x   +   m a t c h [ 0 ] . l e n g t h )   }   e l s e   {   c   + =   s o u r c e ,   s o u r c e   =   ' '   }   }   r e t u r n   c   } ,   s u b :   f u n c t i o n ( b ,   c ,   d )   {   c   =   t h i s . g s u b . p r e p a r e R e p l a c e m e n t ( c ) ;   d   =   d   = = =   u n d e f i n e d   ?   1   :   d ;   r e t u r n   t h i s . g s u b ( b ,   f u n c t i o n ( a )   {   i f   ( - - d   <   0 )   r e t u r n   a [ 0 ] ;   r e t u r n   c ( a )   } )   } ,   s c a n :   f u n c t i o n ( a ,   b )   {   t h i s . g s u b ( a ,   b ) ;   r e t u r n   t h i s   } ,   t r u n c a t e :   f u n c t i o n ( a ,   b )   {   a   =   a   | |   3 0 ;   b   =   b   = = =   u n d e f i n e d   ?   ' . . . '   :   b ;   r e t u r n   t h i s . l e n g t h   >   a   ?   t h i s . s l i c e ( 0 ,   a   -   b . l e n g t h )   +   b   :   t h i s   } ,   s t r i p :   f u n c t i o n ( )   {   r e t u r n   t h i s . r e p l a c e ( / ^ \ s + / ,   ' ' ) . r e p l a c e ( / \ s + $ / ,   ' ' )   } ,   s t r i p T a g s :   f u n c t i o n ( )   {   r e t u r n   t h i s . r e p l a c e ( / < \ / ? [ ^ > ] + > / g i ,   ' ' )   } ,   s t r i p S c r i p t s :   f u n c t i o n ( )   {   r e t u r n   t h i s . r e p l a c e ( n e w   R e g E x p ( P r o t o t y p e . S c r i p t F r a g m e n t ,   ' i m g ' ) ,   ' ' )   } ,   e x t r a c t S c r i p t s :   f u n c t i o n ( )   {   v a r   b   =   n e w   R e g E x p ( P r o t o t y p e . S c r i p t F r a g m e n t ,   ' i m g ' ) ;   v a r   c   =   n e w   R e g E x p ( P r o t o t y p e . S c r i p t F r a g m e n t ,   ' i m ' ) ;   r e t u r n   ( t h i s . m a t c h ( b )   | |   [ ] ) . m a p ( f u n c t i o n ( a )   {   r e t u r n   ( a . m a t c h ( c )   | |   [ ' ' ,   ' ' ] ) [ 1 ]   } )   } ,   e v a l S c r i p t s :   f u n c t i o n ( )   {   r e t u r n   t h i s . e x t r a c t S c r i p t s ( ) . m a p ( f u n c t i o n ( a )   {   r e t u r n   e v a l ( a )   } )   } ,   e s c a p e H T M L :   f u n c t i o n ( )   {   v a r   a   =   a r g u m e n t s . c a l l e e ;   a . t e x t . d a t a   =   t h i s ;   r e t u r n   a . d i v . i n n e r H T M L   } ,   u n e s c a p e H T M L :   f u n c t i o n ( )   {   v a r   c   =   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ;   c . i n n e r H T M L   =   t h i s . s t r i p T a g s ( ) ;   r e t u r n   c . c h i l d N o d e s [ 0 ]   ?   ( c . c h i l d N o d e s . l e n g t h   >   1   ?   $ A ( c . c h i l d N o d e s ) . i n j e c t ( ' ' ,   f u n c t i o n ( a ,   b )   {   r e t u r n   a   +   b . n o d e V a l u e   } )   :   c . c h i l d N o d e s [ 0 ] . n o d e V a l u e )   :   ' '   } ,   t o Q u e r y P a r a m s :   f u n c t i o n ( e )   {   v a r   f   =   t h i s . s t r i p ( ) . m a t c h ( / ( [ ^ ? # ] * ) ( # . * ) ? $ / ) ;   i f   ( ! f )   r e t u r n   { } ;   r e t u r n   f [ 1 ] . s p l i t ( e   | |   ' & ' ) . i n j e c t ( { } ,   f u n c t i o n ( a ,   b )   {   i f   ( ( b   =   b . s p l i t ( ' = ' ) ) [ 0 ] )   {   v a r   c   =   d e c o d e U R I C o m p o n e n t ( b . s h i f t ( ) ) ;   v a r   d   =   b . l e n g t h   >   1   ?   b . j o i n ( ' = ' )   :   b [ 0 ] ;   i f   ( d   ! =   u n d e f i n e d )   d   =   d e c o d e U R I C o m p o n e n t ( d ) ;   i f   ( c   i n   a )   {   i f   ( a [ c ] . c o n s t r u c t o r   ! =   A r r a y )   a [ c ]   =   [ a [ c ] ] ;   a [ c ] . p u s h ( d )   }   e l s e   a [ c ]   =   d   }   r e t u r n   a   } )   } ,   t o A r r a y :   f u n c t i o n ( )   {   r e t u r n   t h i s . s p l i t ( ' ' )   } ,   s u c c :   f u n c t i o n ( )   {   r e t u r n   t h i s . s l i c e ( 0 ,   t h i s . l e n g t h   -   1 )   +   S t r i n g . f r o m C h a r C o d e ( t h i s . c h a r C o d e A t ( t h i s . l e n g t h   -   1 )   +   1 )   } ,   t i m e s :   f u n c t i o n ( a )   {   v a r   b   =   ' ' ;   f o r   ( v a r   i   =   0 ;   i   <   a ;   i + + )   b   + =   t h i s ;   r e t u r n   b   } ,   c a m e l i z e :   f u n c t i o n ( )   {   v a r   a   =   t h i s . s p l i t ( ' - ' ) ,   l e n   =   a . l e n g t h ;   i f   ( l e n   = =   1 )   r e t u r n   a [ 0 ] ;   v a r   b   =   t h i s . c h a r A t ( 0 )   = =   ' - '   ?   a [ 0 ] . c h a r A t ( 0 ) . t o U p p e r C a s e ( )   +   a [ 0 ] . s u b s t r i n g ( 1 )   :   a [ 0 ] ;   f o r   ( v a r   i   =   1 ;   i   <   l e n ;   i + + )   b   + =   a [ i ] . c h a r A t ( 0 ) . t o U p p e r C a s e ( )   +   a [ i ] . s u b s t r i n g ( 1 ) ;   r e t u r n   b   } ,   c a p i t a l i z e :   f u n c t i o n ( )   {   r e t u r n   t h i s . c h a r A t ( 0 ) . t o U p p e r C a s e ( )   +   t h i s . s u b s t r i n g ( 1 ) . t o L o w e r C a s e ( )   } ,   u n d e r s c o r e :   f u n c t i o n ( )   {   r e t u r n   t h i s . g s u b ( / : : / ,   ' / ' ) . g s u b ( / ( [ A - Z ] + ) ( [ A - Z ] [ a - z ] ) / ,   ' # { 1 } _ # { 2 } ' ) . g s u b ( / ( [ a - z \ d ] ) ( [ A - Z ] ) / ,   ' # { 1 } _ # { 2 } ' ) . g s u b ( / - / ,   ' _ ' ) . t o L o w e r C a s e ( )   } ,   d a s h e r i z e :   f u n c t i o n ( )   {   r e t u r n   t h i s . g s u b ( / _ / ,   ' - ' )   } ,   i n s p e c t :   f u n c t i o n ( c )   {   v a r   d   =   t h i s . g s u b ( / [ \ x 0 0 - \ x 1 f \ \ ] / ,   f u n c t i o n ( a )   {   v a r   b   =   S t r i n g . s p e c i a l C h a r [ a [ 0 ] ] ;   r e t u r n   b   ?   b   :   ' \ \ u 0 0 '   +   a [ 0 ] . c h a r C o d e A t ( ) . t o P a d d e d S t r i n g ( 2 ,   1 6 )   } ) ;   i f   ( c )   r e t u r n   ' " '   +   d . r e p l a c e ( / " / g ,   ' \ \ " ' )   +   ' " ' ;   r e t u r n   " ' "   +   d . r e p l a c e ( / ' / g ,   ' \ \ \ ' ' )   +   " ' "   } ,   t o J S O N :   f u n c t i o n ( )   {   r e t u r n   t h i s . i n s p e c t ( t r u e )   } ,   u n f i l t e r J S O N :   f u n c t i o n ( a )   {   r e t u r n   t h i s . s u b ( a   | |   P r o t o t y p e . J S O N F i l t e r ,   ' # { 1 } ' )   } ,   e v a l J S O N :   f u n c t i o n ( a )   {   v a r   b   =   t h i s . u n f i l t e r J S O N ( ) ;   t r y   {   i f   ( ! a   | |   ( n e w   R e g E x p ( ' ^ ( " ( \ \ \ \ . | [ ^ " \ \ \ \ \ \ n \ \ r ] ) '   +   ' * '   +   ' ? " | [ , : { } \ \ [ \ \ ] 0 - 9 . \ \ - + E a e f l n r - u   \ \ n \ \ r \ \ t ] ) + ? $ ' ) . t e s t ( b ) ) )   {   r e t u r n   e v a l ( ' ( '   +   b   +   ' ) ' )   }   }   c a t c h   ( e )   {   }   t h r o w   n e w   S y n t a x E r r o r ( ' B a d l y   f o r m e d   J S O N   s t r i n g :   '   +   t h i s . i n s p e c t ( ) ) ;   } ,   i n c l u d e :   f u n c t i o n ( a )   {   r e t u r n   t h i s . i n d e x O f ( a )   >   - 1   } ,   s t a r t s W i t h :   f u n c t i o n ( a )   {   r e t u r n   t h i s . i n d e x O f ( a )   = = =   0   } ,   e n d s W i t h :   f u n c t i o n ( a )   {   v a r   d   =   t h i s . l e n g t h   -   a . l e n g t h ;   r e t u r n   d   > =   0   & &   t h i s . l a s t I n d e x O f ( a )   = = =   d   } ,   e m p t y :   f u n c t i o n ( )   {   r e t u r n   t h i s   = =   ' '   } ,   b l a n k :   f u n c t i o n ( )   {   r e t u r n   / ^ \ s * $ / . t e s t ( t h i s )   }   } ) ;   i f   ( P r o t o t y p e . B r o w s e r . W e b K i t   | |   P r o t o t y p e . B r o w s e r . I E )   {   O b j e c t . e x t e n d ( S t r i n g . p r o t o t y p e ,   {   e s c a p e H T M L :   f u n c t i o n ( )   {   r e t u r n   t h i s . r e p l a c e ( / & / g ,   ' & a m p ; ' ) . r e p l a c e ( / < / g ,   ' & l t ; ' ) . r e p l a c e ( / > / g ,   ' & g t ; ' )   } ,   u n e s c a p e H T M L :   f u n c t i o n ( )   {   r e t u r n   t h i s . r e p l a c e ( / & a m p ; / g ,   ' & ' ) . r e p l a c e ( / & l t ; / g ,   ' < ' ) . r e p l a c e ( / & g t ; / g ,   ' > ' )   }   } )   }   S t r i n g . p r o t o t y p e . g s u b . p r e p a r e R e p l a c e m e n t   =   f u n c t i o n ( b )   {   i f   ( t y p e o f   b   = =   ' f u n c t i o n ' )   r e t u r n   b ;   v a r   c   =   n e w   T e m p l a t e ( b ) ;   r e t u r n   f u n c t i o n ( a )   {   r e t u r n   c . e v a l u a t e ( a )   }   } ;   S t r i n g . p r o t o t y p e . p a r s e Q u e r y   =   S t r i n g . p r o t o t y p e . t o Q u e r y P a r a m s ;   O b j e c t . e x t e n d ( S t r i n g . p r o t o t y p e . e s c a p e H T M L ,   {   d i v :   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ,   t e x t :   d o c u m e n t . c r e a t e T e x t N o d e ( ' ' )   } ) ;   w i t h   ( S t r i n g . p r o t o t y p e . e s c a p e H T M L )   d i v . a p p e n d C h i l d ( t e x t ) ;   v a r   T e m p l a t e   =   C l a s s . c r e a t e ( ) ;   T e m p l a t e . P a t t e r n   =   / ( ^ | . | \ r | \ n ) ( # \ { ( . * ? ) \ } ) / ;   T e m p l a t e . p r o t o t y p e   =   {   i n i t i a l i z e :   f u n c t i o n ( a ,   b )   {   t h i s . t e m p l a t e   =   a . t o S t r i n g ( ) ;   t h i s . p a t t e r n   =   b   | |   T e m p l a t e . P a t t e r n   } ,   e v a l u a t e :   f u n c t i o n ( c )   {   r e t u r n   t h i s . t e m p l a t e . g s u b ( t h i s . p a t t e r n ,   f u n c t i o n ( a )   {   v a r   b   =   a [ 1 ] ;   i f   ( b   = =   ' \ \ ' )   r e t u r n   a [ 2 ] ;   r e t u r n   b   +   S t r i n g . i n t e r p r e t ( c [ a [ 3 ] ] )   } )   }   } ;   v a r   $ b r e a k   =   { } ;   v a r   $ c o n t i n u e   =   n e w   E r r o r ( ' " t h r o w   $ c o n t i n u e "   i s   d e p r e c a t e d ,   u s e   " r e t u r n "   i n s t e a d ' ) ;   v a r   E n u m e r a b l e   =   {   e a c h :   f u n c t i o n ( b )   {   v a r   c   =   0 ;   t r y   {   t h i s . _ e a c h ( f u n c t i o n ( a )   {   b ( a ,   c + + )   } )   }   c a t c h   ( e )   {   i f   ( e   ! =   $ b r e a k )   t h r o w   e ;   }   r e t u r n   t h i s   } ,   e a c h S l i c e :   f u n c t i o n ( a ,   b )   {   v a r   c   =   - a ,   s l i c e s   =   [ ] ,   a r r a y   =   t h i s . t o A r r a y ( ) ;   w h i l e   ( ( c   + =   a )   <   a r r a y . l e n g t h )   s l i c e s . p u s h ( a r r a y . s l i c e ( c ,   c   +   a ) ) ;   r e t u r n   s l i c e s . m a p ( b )   } ,   a l l :   f u n c t i o n ( c )   {   v a r   d   =   t r u e ;   t h i s . e a c h ( f u n c t i o n ( a ,   b )   {   d   =   d   & &   ! ! ( c   | |   P r o t o t y p e . K ) ( a ,   b ) ;   i f   ( ! d )   t h r o w   $ b r e a k ;   } ) ;   r e t u r n   d   } ,   a n y :   f u n c t i o n ( c )   {   v a r   d   =   f a l s e ;   t h i s . e a c h ( f u n c t i o n ( a ,   b )   {   i f   ( d   =   ! ! ( c   | |   P r o t o t y p e . K ) ( a ,   b ) )   t h r o w   $ b r e a k ;   } ) ;   r e t u r n   d   } ,   c o l l e c t :   f u n c t i o n ( c )   {   v a r   d   =   [ ] ;   t h i s . e a c h ( f u n c t i o n ( a ,   b )   {   d . p u s h ( ( c   | |   P r o t o t y p e . K ) ( a ,   b ) )   } ) ;   r e t u r n   d   } ,   d e t e c t :   f u n c t i o n ( c )   {   v a r   d ;   t h i s . e a c h ( f u n c t i o n ( a ,   b )   {   i f   ( c ( a ,   b ) )   {   d   =   a ;   t h r o w   $ b r e a k ;   }   } ) ;   r e t u r n   d   } ,   f i n d A l l :   f u n c t i o n ( c )   {   v a r   d   =   [ ] ;   t h i s . e a c h ( f u n c t i o n ( a ,   b )   {   i f   ( c ( a ,   b ) )   d . p u s h ( a )   } ) ;   r e t u r n   d   } ,   g r e p :   f u n c t i o n ( d ,   e )   {   v a r   f   =   [ ] ;   t h i s . e a c h ( f u n c t i o n ( a ,   b )   {   v a r   c   =   a . t o S t r i n g ( ) ;   i f   ( c . m a t c h ( d ) )   f . p u s h ( ( e   | |   P r o t o t y p e . K ) ( a ,   b ) )   } ) ;   r e t u r n   f   } ,   i n c l u d e :   f u n c t i o n ( b )   {   v a r   c   =   f a l s e ;   t h i s . e a c h ( f u n c t i o n ( a )   {   i f   ( a   = =   b )   {   c   =   t r u e ;   t h r o w   $ b r e a k ;   }   } ) ;   r e t u r n   c   } ,   i n G r o u p s O f :   f u n c t i o n ( b ,   c )   {   c   =   c   = = =   u n d e f i n e d   ?   n u l l   :   c ;   r e t u r n   t h i s . e a c h S l i c e ( b ,   f u n c t i o n ( a )   {   w h i l e   ( a . l e n g t h   <   b )   a . p u s h ( c ) ;   r e t u r n   a   } )   } ,   i n j e c t :   f u n c t i o n ( c ,   d )   {   t h i s . e a c h ( f u n c t i o n ( a ,   b )   {   c   =   d ( c ,   a ,   b )   } ) ;   r e t u r n   c   } ,   i n v o k e :   f u n c t i o n ( b )   {   v a r   c   =   $ A ( a r g u m e n t s ) . s l i c e ( 1 ) ;   r e t u r n   t h i s . m a p ( f u n c t i o n ( a )   {   r e t u r n   a [ b ] . a p p l y ( a ,   c )   } )   } ,   m a x :   f u n c t i o n ( c )   {   v a r   d ;   t h i s . e a c h ( f u n c t i o n ( a ,   b )   {   a   =   ( c   | |   P r o t o t y p e . K ) ( a ,   b ) ;   i f   ( d   = =   u n d e f i n e d   | |   a   > =   d )   d   =   a   } ) ;   r e t u r n   d   } ,   m i n :   f u n c t i o n ( c )   {   v a r   d ;   t h i s . e a c h ( f u n c t i o n ( a ,   b )   {   a   =   ( c   | |   P r o t o t y p e . K ) ( a ,   b ) ;   i f   ( d   = =   u n d e f i n e d   | |   a   <   d )   d   =   a   } ) ;   r e t u r n   d   } ,   p a r t i t i o n :   f u n c t i o n ( c )   {   v a r   d   =   [ ] ,   f a l s e s   =   [ ] ;   t h i s . e a c h ( f u n c t i o n ( a ,   b )   {   ( ( c   | |   P r o t o t y p e . K ) ( a ,   b )   ?   d   :   f a l s e s ) . p u s h ( a )   } ) ;   r e t u r n   [ d ,   f a l s e s ]   } ,   p l u c k :   f u n c t i o n ( c )   {   v a r   d   =   [ ] ;   t h i s . e a c h ( f u n c t i o n ( a ,   b )   {   d . p u s h ( a [ c ] )   } ) ;   r e t u r n   d   } ,   r e j e c t :   f u n c t i o n ( c )   {   v a r   d   =   [ ] ;   t h i s . e a c h ( f u n c t i o n ( a ,   b )   {   i f   ( ! c ( a ,   b ) )   d . p u s h ( a )   } ) ;   r e t u r n   d   } ,   s o r t B y :   f u n c t i o n ( e )   {   r e t u r n   t h i s . m a p ( f u n c t i o n ( a ,   b )   {   r e t u r n   {   v a l u e :   a ,   c r i t e r i a :   e ( a ,   b ) }   } ) . s o r t ( f u n c t i o n ( c ,   d )   {   v a r   a   =   c . c r i t e r i a ,   b   =   d . c r i t e r i a ;   r e t u r n   a   <   b   ?   - 1   :   a   >   b   ?   1   :   0   } ) . p l u c k ( ' v a l u e ' )   } ,   t o A r r a y :   f u n c t i o n ( )   {   r e t u r n   t h i s . m a p ( )   } ,   z i p :   f u n c t i o n ( )   {   v a r   c   =   P r o t o t y p e . K ,   a r g s   =   $ A ( a r g u m e n t s ) ;   i f   ( t y p e o f   a r g s . l a s t ( )   = =   ' f u n c t i o n ' )   c   =   a r g s . p o p ( ) ;   v a r   d   =   [ t h i s ] . c o n c a t ( a r g s ) . m a p ( $ A ) ;   r e t u r n   t h i s . m a p ( f u n c t i o n ( a ,   b )   {   r e t u r n   c ( d . p l u c k ( b ) )   } )   } ,   s i z e :   f u n c t i o n ( )   {   r e t u r n   t h i s . t o A r r a y ( ) . l e n g t h   } ,   i n s p e c t :   f u n c t i o n ( )   {   r e t u r n   ' # < E n u m e r a b l e : '   +   t h i s . t o A r r a y ( ) . i n s p e c t ( )   +   ' > '   }   } ;   O b j e c t . e x t e n d ( E n u m e r a b l e ,   {   m a p :   E n u m e r a b l e . c o l l e c t ,   f i n d :   E n u m e r a b l e . d e t e c t ,   s e l e c t :   E n u m e r a b l e . f i n d A l l ,   m e m b e r :   E n u m e r a b l e . i n c l u d e ,   e n t r i e s :   E n u m e r a b l e . t o A r r a y   } ) ;   v a r   $ A   =   A r r a y . f r o m   =   f u n c t i o n ( a )   {   i f   ( ! a )   r e t u r n   [ ] ;   i f   ( a . t o A r r a y )   {   r e t u r n   a . t o A r r a y ( )   }   e l s e   {   v a r   b   =   [ ] ;   f o r   ( v a r   i   =   0 ,   l e n g t h   =   a . l e n g t h ;   i   <   l e n g t h ;   i + + )   b . p u s h ( a [ i ] ) ;   r e t u r n   b   }   } ;   i f   ( P r o t o t y p e . B r o w s e r . W e b K i t )   {   $ A   =   A r r a y . f r o m   =   f u n c t i o n ( a )   {   i f   ( ! a )   r e t u r n   [ ] ;   i f   ( ! ( t y p e o f   a   = =   ' f u n c t i o n '   & &   a   = =   ' [ o b j e c t   N o d e L i s t ] ' )   & &   a . t o A r r a y )   {   r e t u r n   a . t o A r r a y ( )   }   e l s e   {   v a r   b   =   [ ] ;   f o r   ( v a r   i   =   0 ,   l e n g t h   =   a . l e n g t h ;   i   <   l e n g t h ;   i + + )   b . p u s h ( a [ i ] ) ;   r e t u r n   b   }   }   }   O b j e c t . e x t e n d ( A r r a y . p r o t o t y p e ,   E n u m e r a b l e ) ;   i f   ( ! A r r a y . p r o t o t y p e . _ r e v e r s e )   A r r a y . p r o t o t y p e . _ r e v e r s e   =   A r r a y . p r o t o t y p e . r e v e r s e ;   O b j e c t . e x t e n d ( A r r a y . p r o t o t y p e ,   {   _ e a c h :   f u n c t i o n ( a )   {   f o r   ( v a r   i   =   0 ,   l e n g t h   =   t h i s . l e n g t h ;   i   <   l e n g t h ;   i + + )   a ( t h i s [ i ] )   } ,   c l e a r :   f u n c t i o n ( )   {   t h i s . l e n g t h   =   0 ;   r e t u r n   t h i s   } ,   f i r s t :   f u n c t i o n ( )   {   r e t u r n   t h i s [ 0 ]   } ,   l a s t :   f u n c t i o n ( )   {   r e t u r n   t h i s [ t h i s . l e n g t h   -   1 ]   } ,   c o m p a c t :   f u n c t i o n ( )   {   r e t u r n   t h i s . s e l e c t ( f u n c t i o n ( a )   {   r e t u r n   a   ! =   n u l l   } )   } ,   f l a t t e n :   f u n c t i o n ( )   {   r e t u r n   t h i s . i n j e c t ( [ ] ,   f u n c t i o n ( a ,   b )   {   r e t u r n   a . c o n c a t ( b   & &   b . c o n s t r u c t o r   = =   A r r a y   ?   b . f l a t t e n ( )   :   [ b ] )   } )   } ,   w i t h o u t :   f u n c t i o n ( )   {   v a r   b   =   $ A ( a r g u m e n t s ) ;   r e t u r n   t h i s . s e l e c t ( f u n c t i o n ( a )   {   r e t u r n   ! b . i n c l u d e ( a )   } )   } ,   i n d e x O f :   f u n c t i o n ( a )   {   f o r   ( v a r   i   =   0 ,   l e n g t h   =   t h i s . l e n g t h ;   i   <   l e n g t h ;   i + + )   i f   ( t h i s [ i ]   = =   a )   r e t u r n   i ;   r e t u r n   - 1   } ,   r e v e r s e :   f u n c t i o n ( a )   {   r e t u r n   ( a   ! = =   f a l s e   ?   t h i s   :   t h i s . t o A r r a y ( ) ) . _ r e v e r s e ( )   } ,   r e d u c e :   f u n c t i o n ( )   {   r e t u r n   t h i s . l e n g t h   >   1   ?   t h i s   :   t h i s [ 0 ]   } ,   u n i q :   f u n c t i o n ( d )   {   r e t u r n   t h i s . i n j e c t ( [ ] ,   f u n c t i o n ( a ,   b ,   c )   {   i f   ( 0   = =   c   | |   ( d   ?   a . l a s t ( )   ! =   b   :   ! a . i n c l u d e ( b ) ) )   a . p u s h ( b ) ;   r e t u r n   a   } )   } ,   c l o n e :   f u n c t i o n ( )   {   r e t u r n   [ ] . c o n c a t ( t h i s )   } ,   s i z e :   f u n c t i o n ( )   {   r e t u r n   t h i s . l e n g t h   } ,   i n s p e c t :   f u n c t i o n ( )   {   r e t u r n   ' [ '   +   t h i s . m a p ( O b j e c t . i n s p e c t ) . j o i n ( ' ,   ' )   +   ' ] '   } ,   t o J S O N :   f u n c t i o n ( )   {   v a r   c   =   [ ] ;   t h i s . e a c h ( f u n c t i o n ( a )   {   v a r   b   =   O b j e c t . t o J S O N ( a ) ;   i f   ( b   ! = =   u n d e f i n e d )   c . p u s h ( b )   } ) ;   r e t u r n   ' [ '   +   c . j o i n ( ' ,   ' )   +   ' ] '   }   } ) ;   A r r a y . p r o t o t y p e . t o A r r a y   =   A r r a y . p r o t o t y p e . c l o n e ;   f u n c t i o n   $ w ( a )   {   a   =   a . s t r i p ( ) ;   r e t u r n   a   ?   a . s p l i t ( / \ s + / )   :   [ ]   }   i f   ( P r o t o t y p e . B r o w s e r . O p e r a )   {   A r r a y . p r o t o t y p e . c o n c a t   =   f u n c t i o n ( )   {   v a r   a   =   [ ] ;   f o r   ( v a r   i   =   0 ,   l e n g t h   =   t h i s . l e n g t h ;   i   <   l e n g t h ;   i + + )   a . p u s h ( t h i s [ i ] ) ;   f o r   ( v a r   i   =   0 ,   l e n g t h   =   a r g u m e n t s . l e n g t h ;   i   <   l e n g t h ;   i + + )   {   i f   ( a r g u m e n t s [ i ] . c o n s t r u c t o r   = =   A r r a y )   {   f o r   ( v a r   j   =   0 ,   a r r a y L e n g t h   =   a r g u m e n t s [ i ] . l e n g t h ;   j   <   a r r a y L e n g t h ;   j + + )   a . p u s h ( a r g u m e n t s [ i ] [ j ] )   }   e l s e   {   a . p u s h ( a r g u m e n t s [ i ] )   }   }   r e t u r n   a   }   }   v a r   H a s h   =   f u n c t i o n ( a )   {   i f   ( a   i n s t a n c e o f   H a s h )   t h i s . m e r g e ( a ) ;   e l s e   O b j e c t . e x t e n d ( t h i s ,   a   | |   { } )   } ;   O b j e c t . e x t e n d ( H a s h ,   {   t o Q u e r y S t r i n g :   f u n c t i o n ( d )   {   v a r   e   =   [ ] ;   e . a d d   =   a r g u m e n t s . c a l l e e . a d d P a i r ;   t h i s . p r o t o t y p e . _ e a c h . c a l l ( d ,   f u n c t i o n ( b )   {   i f   ( ! b . k e y )   r e t u r n ;   v a r   c   =   b . v a l u e ;   i f   ( c   & &   t y p e o f   c   = =   ' o b j e c t ' )   {   i f   ( c . c o n s t r u c t o r   = =   A r r a y )   c . e a c h ( f u n c t i o n ( a )   {   e . a d d ( b . k e y ,   a )   } ) ;   r e t u r n   }   e . a d d ( b . k e y ,   c )   } ) ;   r e t u r n   e . j o i n ( ' & ' )   } ,   t o J S O N :   f u n c t i o n ( c )   {   v a r   d   =   [ ] ;   t h i s . p r o t o t y p e . _ e a c h . c a l l ( c ,   f u n c t i o n ( a )   {   v a r   b   =   O b j e c t . t o J S O N ( a . v a l u e ) ;   i f   ( b   ! = =   u n d e f i n e d )   d . p u s h ( a . k e y . t o J S O N ( )   +   ' :   '   +   b )   } ) ;   r e t u r n   ' { '   +   d . j o i n ( ' ,   ' )   +   ' } '   }   } ) ;   H a s h . t o Q u e r y S t r i n g . a d d P a i r   =   f u n c t i o n ( a ,   b ,   c )   {   a   =   e n c o d e U R I C o m p o n e n t ( a ) ;   i f   ( b   = = =   u n d e f i n e d )   t h i s . p u s h ( a ) ;   e l s e   t h i s . p u s h ( a   +   ' = '   +   ( b   = =   n u l l   ?   ' '   :   e n c o d e U R I C o m p o n e n t ( b ) ) )   } ;   O b j e c t . e x t e n d ( H a s h . p r o t o t y p e ,   E n u m e r a b l e ) ;   O b j e c t . e x t e n d ( H a s h . p r o t o t y p e ,   {   _ e a c h :   f u n c t i o n ( a )   {   f o r   ( v a r   b   i n   t h i s )   {   v a r   c   =   t h i s [ b ] ;   i f   ( c   & &   c   = =   H a s h . p r o t o t y p e [ b ] )   c o n t i n u e ;   v a r   d   =   [ b ,   c ] ;   d . k e y   =   b ;   d . v a l u e   =   c ;   a ( d )   }   } ,   k e y s :   f u n c t i o n ( )   {   r e t u r n   t h i s . p l u c k ( ' k e y ' )   } ,   v a l u e s :   f u n c t i o n ( )   {   r e t u r n   t h i s . p l u c k ( ' v a l u e ' )   } ,   m e r g e :   f u n c t i o n ( c )   {   r e t u r n   $ H ( c ) . i n j e c t ( t h i s ,   f u n c t i o n ( a ,   b )   {   a [ b . k e y ]   =   b . v a l u e ;   r e t u r n   a   } )   } ,   r e m o v e :   f u n c t i o n ( )   {   v a r   a ;   f o r   ( v a r   i   =   0 ,   l e n g t h   =   a r g u m e n t s . l e n g t h ;   i   <   l e n g t h ;   i + + )   {   v a r   b   =   t h i s [ a r g u m e n t s [ i ] ] ;   i f   ( b   ! = =   u n d e f i n e d )   {   i f   ( a   = = =   u n d e f i n e d )   a   =   b ;   e l s e   {   i f   ( a . c o n s t r u c t o r   ! =   A r r a y )   a   =   [ a ] ;   a . p u s h ( b )   }   }   d e l e t e   t h i s [ a r g u m e n t s [ i ] ]   }   r e t u r n   a   } ,   t o Q u e r y S t r i n g :   f u n c t i o n ( )   {   r e t u r n   H a s h . t o Q u e r y S t r i n g ( t h i s )   } ,   i n s p e c t :   f u n c t i o n ( )   {   r e t u r n   ' # < H a s h : { '   +   t h i s . m a p ( f u n c t i o n ( a )   {   r e t u r n   a . m a p ( O b j e c t . i n s p e c t ) . j o i n ( ' :   ' )   } ) . j o i n ( ' ,   ' )   +   ' } > '   } ,   t o J S O N :   f u n c t i o n ( )   {   r e t u r n   H a s h . t o J S O N ( t h i s )   }   } ) ;   f u n c t i o n   $ H ( a )   {   i f   ( a   i n s t a n c e o f   H a s h )   r e t u r n   a ;   r e t u r n   n e w   H a s h ( a )   } ;   i f   ( f u n c t i o n ( )   {   v a r   i   =   0 ,   T e s t   =   f u n c t i o n ( a )   {   t h i s . k e y   =   a   } ;   T e s t . p r o t o t y p e . k e y   =   ' f o o ' ;   f o r   ( v a r   b   i n   n e w   T e s t ( ' b a r ' ) )   i + + ;   r e t u r n   i   >   1   }   ( ) )   H a s h . p r o t o t y p e . _ e a c h   =   f u n c t i o n ( a )   {   v a r   b   =   [ ] ;   f o r   ( v a r   c   i n   t h i s )   {   v a r   d   =   t h i s [ c ] ;   i f   ( ( d   & &   d   = =   H a s h . p r o t o t y p e [ c ] )   | |   b . i n c l u d e ( c ) )   c o n t i n u e ;   b . p u s h ( c ) ;   v a r   e   =   [ c ,   d ] ;   e . k e y   =   c ;   e . v a l u e   =   d ;   a ( e )   }   } ;   O b j e c t R a n g e   =   C l a s s . c r e a t e ( ) ;   O b j e c t . e x t e n d ( O b j e c t R a n g e . p r o t o t y p e ,   E n u m e r a b l e ) ;   O b j e c t . e x t e n d ( O b j e c t R a n g e . p r o t o t y p e ,   {   i n i t i a l i z e :   f u n c t i o n ( a ,   b ,   c )   {   t h i s . s t a r t   =   a ;   t h i s . e n d   =   b ;   t h i s . e x c l u s i v e   =   c   } ,   _ e a c h :   f u n c t i o n ( a )   {   v a r   b   =   t h i s . s t a r t ;   w h i l e   ( t h i s . i n c l u d e ( b ) )   {   a ( b ) ;   b   =   b . s u c c ( )   }   } ,   i n c l u d e :   f u n c t i o n ( a )   {   i f   ( a   <   t h i s . s t a r t )   r e t u r n   f a l s e ;   i f   ( t h i s . e x c l u s i v e )   r e t u r n   a   <   t h i s . e n d ;   r e t u r n   a   < =   t h i s . e n d   }   } ) ;   v a r   $ R   =   f u n c t i o n ( a ,   b ,   c )   {   r e t u r n   n e w   O b j e c t R a n g e ( a ,   b ,   c )   } ;   v a r   A j a x   =   {   g e t T r a n s p o r t :   f u n c t i o n ( )   {   r e t u r n   T r y . t h e s e ( f u n c t i o n ( )   {   r e t u r n   n e w   X M L H t t p R e q u e s t ( )   } ,   f u n c t i o n ( )   {   r e t u r n   n e w   A c t i v e X O b j e c t ( ' M s x m l 2 . X M L H T T P ' )   } ,   f u n c t i o n ( )   {   r e t u r n   n e w   A c t i v e X O b j e c t ( ' M i c r o s o f t . X M L H T T P ' )   } )   | |   f a l s e   } ,   a c t i v e R e q u e s t C o u n t :   0   } ;   A j a x . R e s p o n d e r s   =   {   r e s p o n d e r s :   [ ] ,   _ e a c h :   f u n c t i o n ( a )   {   t h i s . r e s p o n d e r s . _ e a c h ( a )   } ,   r e g i s t e r :   f u n c t i o n ( a )   {   i f   ( ! t h i s . i n c l u d e ( a ) )   t h i s . r e s p o n d e r s . p u s h ( a )   } ,   u n r e g i s t e r :   f u n c t i o n ( a )   {   t h i s . r e s p o n d e r s   =   t h i s . r e s p o n d e r s . w i t h o u t ( a )   } ,   d i s p a t c h :   f u n c t i o n ( b ,   c ,   d ,   f )   {   t h i s . e a c h ( f u n c t i o n ( a )   {   i f   ( t y p e o f   a [ b ]   = =   ' f u n c t i o n ' )   {   t r y   {   a [ b ] . a p p l y ( a ,   [ c ,   d ,   f ] )   }   c a t c h   ( e )   {   }   }   } )   }   } ;   O b j e c t . e x t e n d ( A j a x . R e s p o n d e r s ,   E n u m e r a b l e ) ;   A j a x . R e s p o n d e r s . r e g i s t e r ( {   o n C r e a t e :   f u n c t i o n ( )   {   A j a x . a c t i v e R e q u e s t C o u n t + +   } ,   o n C o m p l e t e :   f u n c t i o n ( )   {   A j a x . a c t i v e R e q u e s t C o u n t - -   }   } ) ;   A j a x . B a s e   =   f u n c t i o n ( )   {   } ;   A j a x . B a s e . p r o t o t y p e   =   {   s e t O p t i o n s :   f u n c t i o n ( a )   {   t h i s . o p t i o n s   =   {   m e t h o d :   ' p o s t ' ,   a s y n c h r o n o u s :   t r u e ,   c o n t e n t T y p e :   ' a p p l i c a t i o n / x - w w w - f o r m - u r l e n c o d e d ' ,   e n c o d i n g :   ' U T F - 8 ' ,   p a r a m e t e r s :   ' '   } ;   O b j e c t . e x t e n d ( t h i s . o p t i o n s ,   a   | |   { } ) ;   t h i s . o p t i o n s . m e t h o d   =   t h i s . o p t i o n s . m e t h o d . t o L o w e r C a s e ( ) ;   i f   ( t y p e o f   t h i s . o p t i o n s . p a r a m e t e r s   = =   ' s t r i n g ' )   t h i s . o p t i o n s . p a r a m e t e r s   =   t h i s . o p t i o n s . p a r a m e t e r s . t o Q u e r y P a r a m s ( )   }   } ;   A j a x . R e q u e s t   =   C l a s s . c r e a t e ( ) ;   A j a x . R e q u e s t . E v e n t s   =   [ ' U n i n i t i a l i z e d ' ,   ' L o a d i n g ' ,   ' L o a d e d ' ,   ' I n t e r a c t i v e ' ,   ' C o m p l e t e ' ] ;   A j a x . R e q u e s t . p r o t o t y p e   =   O b j e c t . e x t e n d ( n e w   A j a x . B a s e ( ) ,   {   _ c o m p l e t e :   f a l s e ,   i n i t i a l i z e :   f u n c t i o n ( a ,   b )   {   t h i s . t r a n s p o r t   =   A j a x . g e t T r a n s p o r t ( ) ;   t h i s . s e t O p t i o n s ( b ) ;   t h i s . r e q u e s t ( a )   } ,   r e q u e s t :   f u n c t i o n ( a )   {   t h i s . u r l   =   a ;   t h i s . m e t h o d   =   t h i s . o p t i o n s . m e t h o d ;   v a r   b   =   O b j e c t . c l o n e ( t h i s . o p t i o n s . p a r a m e t e r s ) ;   i f   ( ! [ ' g e t ' ,   ' p o s t ' ] . i n c l u d e ( t h i s . m e t h o d ) )   {   b [ ' _ m e t h o d ' ]   =   t h i s . m e t h o d ;   t h i s . m e t h o d   =   ' p o s t '   }   t h i s . p a r a m e t e r s   =   b ;   i f   ( b   =   H a s h . t o Q u e r y S t r i n g ( b ) )   {   i f   ( t h i s . m e t h o d   = =   ' g e t ' )   t h i s . u r l   + =   ( t h i s . u r l . i n c l u d e ( ' ? ' )   ?   ' & '   :   ' ? ' )   +   b ;   e l s e   i f   ( / K o n q u e r o r | S a f a r i | K H T M L / . t e s t ( n a v i g a t o r . u s e r A g e n t ) )   b   + =   ' & _ = '   }   t r y   {   i f   ( t h i s . o p t i o n s . o n C r e a t e )   t h i s . o p t i o n s . o n C r e a t e ( t h i s . t r a n s p o r t ) ;   A j a x . R e s p o n d e r s . d i s p a t c h ( ' o n C r e a t e ' ,   t h i s ,   t h i s . t r a n s p o r t ) ;   t h i s . t r a n s p o r t . o p e n ( t h i s . m e t h o d . t o U p p e r C a s e ( ) ,   t h i s . u r l ,   t h i s . o p t i o n s . a s y n c h r o n o u s ) ;   i f   ( t h i s . o p t i o n s . a s y n c h r o n o u s )   s e t T i m e o u t ( f u n c t i o n ( )   {   t h i s . r e s p o n d T o R e a d y S t a t e ( 1 )   }   . b i n d ( t h i s ) ,   1 0 ) ;   t h i s . t r a n s p o r t . o n r e a d y s t a t e c h a n g e   =   t h i s . o n S t a t e C h a n g e . b i n d ( t h i s ) ;   t h i s . s e t R e q u e s t H e a d e r s ( ) ;   t h i s . b o d y   =   t h i s . m e t h o d   = =   ' p o s t '   ?   ( t h i s . o p t i o n s . p o s t B o d y   | |   b )   :   n u l l ;   t h i s . t r a n s p o r t . s e n d ( t h i s . b o d y ) ;   i f   ( ! t h i s . o p t i o n s . a s y n c h r o n o u s   & &   t h i s . t r a n s p o r t . o v e r r i d e M i m e T y p e )   t h i s . o n S t a t e C h a n g e ( )   }   c a t c h   ( e )   {   t h i s . d i s p a t c h E x c e p t i o n ( e )   }   } ,   o n S t a t e C h a n g e :   f u n c t i o n ( )   {   v a r   a   =   t h i s . t r a n s p o r t . r e a d y S t a t e ;   i f   ( a   >   1   & &   ! ( ( a   = =   4 )   & &   t h i s . _ c o m p l e t e ) )   t h i s . r e s p o n d T o R e a d y S t a t e ( t h i s . t r a n s p o r t . r e a d y S t a t e )   } ,   s e t R e q u e s t H e a d e r s :   f u n c t i o n ( )   {   v a r   b   =   {   ' X - R e q u e s t e d - W i t h ' :   ' X M L H t t p R e q u e s t ' ,   ' X - P r o t o t y p e - V e r s i o n ' :   P r o t o t y p e . V e r s i o n ,   ' A c c e p t ' :   ' t e x t / j a v a s c r i p t ,   t e x t / h t m l ,   a p p l i c a t i o n / x m l ,   t e x t / x m l ,   * / * '   } ;   i f   ( t h i s . m e t h o d   = =   ' p o s t ' )   {   b [ ' C o n t e n t - t y p e ' ]   =   t h i s . o p t i o n s . c o n t e n t T y p e   +   ( t h i s . o p t i o n s . e n c o d i n g   ?   ' ;   c h a r s e t = '   +   t h i s . o p t i o n s . e n c o d i n g   :   ' ' ) ;   i f   ( t h i s . t r a n s p o r t . o v e r r i d e M i m e T y p e   & &   ( n a v i g a t o r . u s e r A g e n t . m a t c h ( / G e c k o \ / ( \ d { 4 } ) / )   | |   [ 0 ,   2 0 0 5 ] ) [ 1 ]   <   2 0 0 5 )   b [ ' C o n n e c t i o n ' ]   =   ' c l o s e '   }   i f   ( t y p e o f   t h i s . o p t i o n s . r e q u e s t H e a d e r s   = =   ' o b j e c t ' )   {   v a r   c   =   t h i s . o p t i o n s . r e q u e s t H e a d e r s ;   i f   ( t y p e o f   c . p u s h   = =   ' f u n c t i o n ' )   f o r   ( v a r   i   =   0 ,   l e n g t h   =   c . l e n g t h ;   i   <   l e n g t h ;   i   + =   2 )   b [ c [ i ] ]   =   c [ i   +   1 ] ;   e l s e   $ H ( c ) . e a c h ( f u n c t i o n ( a )   {   b [ a . k e y ]   =   a . v a l u e   } )   }   f o r   ( v a r   d   i n   b )   t h i s . t r a n s p o r t . s e t R e q u e s t H e a d e r ( d ,   b [ d ] )   } ,   s u c c e s s :   f u n c t i o n ( )   {   r e t u r n   ! t h i s . t r a n s p o r t . s t a t u s   | |   ( t h i s . t r a n s p o r t . s t a t u s   > =   2 0 0   & &   t h i s . t r a n s p o r t . s t a t u s   <   3 0 0 )   } ,   r e s p o n d T o R e a d y S t a t e :   f u n c t i o n ( a )   {   v a r   b   =   A j a x . R e q u e s t . E v e n t s [ a ] ;   v a r   c   =   t h i s . t r a n s p o r t ,   j s o n   =   t h i s . e v a l J S O N ( ) ;   i f   ( b   = =   ' C o m p l e t e ' )   {   t r y   {   t h i s . _ c o m p l e t e   =   t r u e ;   ( t h i s . o p t i o n s [ ' o n '   +   t h i s . t r a n s p o r t . s t a t u s ]   | |   t h i s . o p t i o n s [ ' o n '   +   ( t h i s . s u c c e s s ( )   ?   ' S u c c e s s '   :   ' F a i l u r e ' ) ]   | |   P r o t o t y p e . e m p t y F u n c t i o n ) ( c ,   j s o n )   }   c a t c h   ( e )   {   t h i s . d i s p a t c h E x c e p t i o n ( e )   }   v a r   d   =   t h i s . g e t H e a d e r ( ' C o n t e n t - t y p e ' ) ;   i f   ( d   & &   d . s t r i p ( ) . m a t c h ( / ^ ( t e x t | a p p l i c a t i o n ) \ / ( x - ) ? ( j a v a | e c m a ) s c r i p t ( ; . * ) ? $ / i ) )   t h i s . e v a l R e s p o n s e ( )   }   t r y   {   ( t h i s . o p t i o n s [ ' o n '   +   b ]   | |   P r o t o t y p e . e m p t y F u n c t i o n ) ( c ,   j s o n ) ;   A j a x . R e s p o n d e r s . d i s p a t c h ( ' o n '   +   b ,   t h i s ,   c ,   j s o n )   }   c a t c h   ( e )   {   t h i s . d i s p a t c h E x c e p t i o n ( e )   }   i f   ( b   = =   ' C o m p l e t e ' )   {   t h i s . t r a n s p o r t . o n r e a d y s t a t e c h a n g e   =   P r o t o t y p e . e m p t y F u n c t i o n   }   } ,   g e t H e a d e r :   f u n c t i o n ( a )   {   t r y   {   r e t u r n   t h i s . t r a n s p o r t . g e t R e s p o n s e H e a d e r ( a )   }   c a t c h   ( e )   {   r e t u r n   n u l l   }   } ,   e v a l J S O N :   f u n c t i o n ( )   {   t r y   {   v a r   a   =   t h i s . g e t H e a d e r ( ' X - J S O N ' ) ;   r e t u r n   a   ?   a . e v a l J S O N ( )   :   n u l l   }   c a t c h   ( e )   {   r e t u r n   n u l l   }   } ,   e v a l R e s p o n s e :   f u n c t i o n ( )   {   t r y   {   r e t u r n   e v a l ( ( t h i s . t r a n s p o r t . r e s p o n s e T e x t   | |   ' ' ) . u n f i l t e r J S O N ( ) )   }   c a t c h   ( e )   {   t h i s . d i s p a t c h E x c e p t i o n ( e )   }   } ,   d i s p a t c h E x c e p t i o n :   f u n c t i o n ( a )   {   ( t h i s . o p t i o n s . o n E x c e p t i o n   | |   P r o t o t y p e . e m p t y F u n c t i o n ) ( t h i s ,   a ) ;   A j a x . R e s p o n d e r s . d i s p a t c h ( ' o n E x c e p t i o n ' ,   t h i s ,   a )   }   } ) ;   A j a x . U p d a t e r   =   C l a s s . c r e a t e ( ) ;   O b j e c t . e x t e n d ( O b j e c t . e x t e n d ( A j a x . U p d a t e r . p r o t o t y p e ,   A j a x . R e q u e s t . p r o t o t y p e ) ,   {   i n i t i a l i z e :   f u n c t i o n ( c ,   d ,   e )   {   t h i s . c o n t a i n e r   =   {   s u c c e s s :   ( c . s u c c e s s   | |   c ) ,   f a i l u r e :   ( c . f a i l u r e   | |   ( c . s u c c e s s   ?   n u l l   :   c ) )   } ;   t h i s . t r a n s p o r t   =   A j a x . g e t T r a n s p o r t ( ) ;   t h i s . s e t O p t i o n s ( e ) ;   v a r   f   =   t h i s . o p t i o n s . o n C o m p l e t e   | |   P r o t o t y p e . e m p t y F u n c t i o n ;   t h i s . o p t i o n s . o n C o m p l e t e   =   ( f u n c t i o n ( a ,   b )   {   t h i s . u p d a t e C o n t e n t ( ) ;   f ( a ,   b )   } ) . b i n d ( t h i s ) ;   t h i s . r e q u e s t ( d )   } ,   u p d a t e C o n t e n t :   f u n c t i o n ( )   {   v a r   a   =   t h i s . c o n t a i n e r [ t h i s . s u c c e s s ( )   ?   ' s u c c e s s '   :   ' f a i l u r e ' ] ;   v a r   b   =   t h i s . t r a n s p o r t . r e s p o n s e T e x t ;   i f   ( ! t h i s . o p t i o n s . e v a l S c r i p t s )   b   =   b . s t r i p S c r i p t s ( ) ;   i f   ( a   =   $ ( a ) )   {   i f   ( t h i s . o p t i o n s . i n s e r t i o n )   n e w   t h i s . o p t i o n s . i n s e r t i o n ( a ,   b ) ;   e l s e   a . u p d a t e ( b )   }   i f   ( t h i s . s u c c e s s ( ) )   {   i f   ( t h i s . o n C o m p l e t e )   s e t T i m e o u t ( t h i s . o n C o m p l e t e . b i n d ( t h i s ) ,   1 0 )   }   }   } ) ;   A j a x . P e r i o d i c a l U p d a t e r   =   C l a s s . c r e a t e ( ) ;   A j a x . P e r i o d i c a l U p d a t e r . p r o t o t y p e   =   O b j e c t . e x t e n d ( n e w   A j a x . B a s e ( ) ,   {   i n i t i a l i z e :   f u n c t i o n ( a ,   b ,   c )   {   t h i s . s e t O p t i o n s ( c ) ;   t h i s . o n C o m p l e t e   =   t h i s . o p t i o n s . o n C o m p l e t e ;   t h i s . f r e q u e n c y   =   ( t h i s . o p t i o n s . f r e q u e n c y   | |   2 ) ;   t h i s . d e c a y   =   ( t h i s . o p t i o n s . d e c a y   | |   1 ) ;   t h i s . u p d a t e r   =   { } ;   t h i s . c o n t a i n e r   =   a ;   t h i s . u r l   =   b ;   t h i s . s t a r t ( )   } ,   s t a r t :   f u n c t i o n ( )   {   t h i s . o p t i o n s . o n C o m p l e t e   =   t h i s . u p d a t e C o m p l e t e . b i n d ( t h i s ) ;   t h i s . o n T i m e r E v e n t ( )   } ,   s t o p :   f u n c t i o n ( )   {   t h i s . u p d a t e r . o p t i o n s . o n C o m p l e t e   =   u n d e f i n e d ;   c l e a r T i m e o u t ( t h i s . t i m e r ) ;   ( t h i s . o n C o m p l e t e   | |   P r o t o t y p e . e m p t y F u n c t i o n ) . a p p l y ( t h i s ,   a r g u m e n t s )   } ,   u p d a t e C o m p l e t e :   f u n c t i o n ( a )   {   i f   ( t h i s . o p t i o n s . d e c a y )   {   t h i s . d e c a y   =   ( a . r e s p o n s e T e x t   = =   t h i s . l a s t T e x t   ?   t h i s . d e c a y   *   t h i s . o p t i o n s . d e c a y   :   1 ) ;   t h i s . l a s t T e x t   =   a . r e s p o n s e T e x t   }   t h i s . t i m e r   =   s e t T i m e o u t ( t h i s . o n T i m e r E v e n t . b i n d ( t h i s ) ,   t h i s . d e c a y   *   t h i s . f r e q u e n c y   *   1 0 0 0 )   } ,   o n T i m e r E v e n t :   f u n c t i o n ( )   {   t h i s . u p d a t e r   =   n e w   A j a x . U p d a t e r ( t h i s . c o n t a i n e r ,   t h i s . u r l ,   t h i s . o p t i o n s )   }   } ) ;   f u n c t i o n   $ ( a )   {   i f   ( a r g u m e n t s . l e n g t h   >   1 )   {   f o r   ( v a r   i   =   0 ,   e l e m e n t s   =   [ ] ,   l e n g t h   =   a r g u m e n t s . l e n g t h ;   i   <   l e n g t h ;   i + + )   e l e m e n t s . p u s h ( $ ( a r g u m e n t s [ i ] ) ) ;   r e t u r n   e l e m e n t s   }   i f   ( t y p e o f   a   = =   ' s t r i n g ' )   a   =   d o c u m e n t . g e t E l e m e n t B y I d ( a ) ;   r e t u r n   E l e m e n t . e x t e n d ( a )   }   i f   ( P r o t o t y p e . B r o w s e r F e a t u r e s . X P a t h )   {   d o c u m e n t . _ g e t E l e m e n t s B y X P a t h   =   f u n c t i o n ( a ,   b )   {   v a r   c   =   [ ] ;   v a r   d   =   d o c u m e n t . e v a l u a t e ( a ,   $ ( b )   | |   d o c u m e n t ,   n u l l ,   X P a t h R e s u l t . O R D E R E D _ N O D E _ S N A P S H O T _ T Y P E ,   n u l l ) ;   f o r   ( v a r   i   =   0 ,   l e n g t h   =   d . s n a p s h o t L e n g t h ;   i   <   l e n g t h ;   i + + )   c . p u s h ( d . s n a p s h o t I t e m ( i ) ) ;   r e t u r n   c   } ;   d o c u m e n t . g e t E l e m e n t s B y C l a s s N a m e   =   f u n c t i o n ( a ,   b )   {   v a r   q   =   " . / / * [ c o n t a i n s ( c o n c a t ( '   ' ,   @ c l a s s ,   '   ' ) ,   '   "   +   a   +   "   ' ) ] " ;   r e t u r n   d o c u m e n t . _ g e t E l e m e n t s B y X P a t h ( q ,   b )   }   }   e l s e   {   d o c u m e n t . g e t E l e m e n t s B y C l a s s N a m e   =   f u n c t i o n ( a ,   b )   {   v a r   c   =   ( $ ( b )   | |   d o c u m e n t . b o d y ) . g e t E l e m e n t s B y T a g N a m e ( ' * ' ) ;   v a r   d   =   [ ] ,   c h i l d ;   f o r   ( v a r   i   =   0 ,   l e n g t h   =   c . l e n g t h ;   i   <   l e n g t h ;   i + + )   {   c h i l d   =   c [ i ] ;   i f   ( E l e m e n t . h a s C l a s s N a m e ( c h i l d ,   a ) )   d . p u s h ( E l e m e n t . e x t e n d ( c h i l d ) )   }   r e t u r n   d   }   }   i f   ( ! w i n d o w . E l e m e n t )   v a r   E l e m e n t   =   { } ;   E l e m e n t . e x t e n d   =   f u n c t i o n ( a )   {   v a r   F   =   P r o t o t y p e . B r o w s e r F e a t u r e s ;   i f   ( ! a   | |   ! a . t a g N a m e   | |   a . n o d e T y p e   = =   3   | |   a . _ e x t e n d e d   | |   F . S p e c i f i c E l e m e n t E x t e n s i o n s   | |   a   = =   w i n d o w )   r e t u r n   a ;   v a r   b   =   { } ,   t a g N a m e   =   a . t a g N a m e ,   c a c h e   =   E l e m e n t . e x t e n d . c a c h e ,   T   =   E l e m e n t . M e t h o d s . B y T a g ;   i f   ( ! F . E l e m e n t E x t e n s i o n s )   {   O b j e c t . e x t e n d ( b ,   E l e m e n t . M e t h o d s ) ,   O b j e c t . e x t e n d ( b ,   E l e m e n t . M e t h o d s . S i m u l a t e d )   }   i f   ( T [ t a g N a m e ] )   O b j e c t . e x t e n d ( b ,   T [ t a g N a m e ] ) ;   f o r   ( v a r   c   i n   b )   {   v a r   d   =   b [ c ] ;   i f   ( t y p e o f   d   = =   ' f u n c t i o n '   & &   ! ( c   i n   a ) )   a [ c ]   =   c a c h e . f i n d O r S t o r e ( d )   }   a . _ e x t e n d e d   =   P r o t o t y p e . e m p t y F u n c t i o n ;   r e t u r n   a   } ;   E l e m e n t . e x t e n d . c a c h e   =   {   f i n d O r S t o r e :   f u n c t i o n ( a )   {   r e t u r n   t h i s [ a ]   =   t h i s [ a ]   | |   f u n c t i o n ( )   {   r e t u r n   a . a p p l y ( n u l l ,   [ t h i s ] . c o n c a t ( $ A ( a r g u m e n t s ) ) )   }   }   } ;   E l e m e n t . M e t h o d s   =   {   v i s i b l e :   f u n c t i o n ( a )   {   r e t u r n   $ ( a ) . s t y l e . d i s p l a y   ! =   ' n o n e '   } ,   t o g g l e :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   E l e m e n t [ E l e m e n t . v i s i b l e ( a )   ?   ' h i d e '   :   ' s h o w ' ] ( a ) ;   r e t u r n   a   } ,   h i d e :   f u n c t i o n ( a )   {   $ ( a ) . s t y l e . d i s p l a y   =   ' n o n e ' ;   r e t u r n   a   } ,   s h o w :   f u n c t i o n ( a )   {   $ ( a ) . s t y l e . d i s p l a y   =   ' ' ;   r e t u r n   a   } ,   r e m o v e :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   a . p a r e n t N o d e . r e m o v e C h i l d ( a ) ;   r e t u r n   a   } ,   u p d a t e :   f u n c t i o n ( a ,   b )   {   b   =   t y p e o f   b   = =   ' u n d e f i n e d '   ?   ' '   :   b . t o S t r i n g ( ) ;   $ ( a ) . i n n e r H T M L   =   b . s t r i p S c r i p t s ( ) ;   s e t T i m e o u t ( f u n c t i o n ( )   {   b . e v a l S c r i p t s ( )   } ,   1 0 ) ;   r e t u r n   a   } ,   r e p l a c e :   f u n c t i o n ( a ,   b )   {   a   =   $ ( a ) ;   b   =   t y p e o f   b   = =   ' u n d e f i n e d '   ?   ' '   :   b . t o S t r i n g ( ) ;   i f   ( a . o u t e r H T M L )   {   a . o u t e r H T M L   =   b . s t r i p S c r i p t s ( )   }   e l s e   {   v a r   c   =   a . o w n e r D o c u m e n t . c r e a t e R a n g e ( ) ;   c . s e l e c t N o d e C o n t e n t s ( a ) ;   a . p a r e n t N o d e . r e p l a c e C h i l d ( c . c r e a t e C o n t e x t u a l F r a g m e n t ( b . s t r i p S c r i p t s ( ) ) ,   a )   }   s e t T i m e o u t ( f u n c t i o n ( )   {   b . e v a l S c r i p t s ( )   } ,   1 0 ) ;   r e t u r n   a   } ,   i n s p e c t :   f u n c t i o n ( d )   {   d   =   $ ( d ) ;   v a r   e   =   ' < '   +   d . t a g N a m e . t o L o w e r C a s e ( ) ;   $ H ( {   ' i d ' :   ' i d ' ,   ' c l a s s N a m e ' :   ' c l a s s '   } ) . e a c h ( f u n c t i o n ( a )   {   v a r   b   =   a . f i r s t ( ) ,   a t t r i b u t e   =   a . l a s t ( ) ;   v a r   c   =   ( d [ b ]   | |   ' ' ) . t o S t r i n g ( ) ;   i f   ( c )   e   + =   '   '   +   a t t r i b u t e   +   ' = '   +   c . i n s p e c t ( t r u e )   } ) ;   r e t u r n   e   +   ' > '   } ,   r e c u r s i v e l y C o l l e c t :   f u n c t i o n ( a ,   b )   {   a   =   $ ( a ) ;   v a r   c   =   [ ] ;   w h i l e   ( a   =   a [ b ] )   i f   ( a . n o d e T y p e   = =   1 )   c . p u s h ( E l e m e n t . e x t e n d ( a ) ) ;   r e t u r n   c   } ,   a n c e s t o r s :   f u n c t i o n ( a )   {   r e t u r n   $ ( a ) . r e c u r s i v e l y C o l l e c t ( ' p a r e n t N o d e ' )   } ,   d e s c e n d a n t s :   f u n c t i o n ( a )   {   r e t u r n   $ A ( $ ( a ) . g e t E l e m e n t s B y T a g N a m e ( ' * ' ) ) . e a c h ( E l e m e n t . e x t e n d )   } ,   f i r s t D e s c e n d a n t :   f u n c t i o n ( a )   {   a   =   $ ( a ) . f i r s t C h i l d ;   w h i l e   ( a   & &   a . n o d e T y p e   ! =   1 )   a   =   a . n e x t S i b l i n g ;   r e t u r n   $ ( a )   } ,   i m m e d i a t e D e s c e n d a n t s :   f u n c t i o n ( a )   {   i f   ( ! ( a   =   $ ( a ) . f i r s t C h i l d ) )   r e t u r n   [ ] ;   w h i l e   ( a   & &   a . n o d e T y p e   ! =   1 )   a   =   a . n e x t S i b l i n g ;   i f   ( a )   r e t u r n   [ a ] . c o n c a t ( $ ( a ) . n e x t S i b l i n g s ( ) ) ;   r e t u r n   [ ]   } ,   p r e v i o u s S i b l i n g s :   f u n c t i o n ( a )   {   r e t u r n   $ ( a ) . r e c u r s i v e l y C o l l e c t ( ' p r e v i o u s S i b l i n g ' )   } ,   n e x t S i b l i n g s :   f u n c t i o n ( a )   {   r e t u r n   $ ( a ) . r e c u r s i v e l y C o l l e c t ( ' n e x t S i b l i n g ' )   } ,   s i b l i n g s :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   r e t u r n   a . p r e v i o u s S i b l i n g s ( ) . r e v e r s e ( ) . c o n c a t ( a . n e x t S i b l i n g s ( ) )   } ,   m a t c h :   f u n c t i o n ( a ,   b )   {   i f   ( t y p e o f   b   = =   ' s t r i n g ' )   b   =   n e w   S e l e c t o r ( b ) ;   r e t u r n   b . m a t c h ( $ ( a ) )   } ,   u p :   f u n c t i o n ( a ,   b ,   c )   {   a   =   $ ( a ) ;   i f   ( a r g u m e n t s . l e n g t h   = =   1 )   r e t u r n   $ ( a . p a r e n t N o d e ) ;   v a r   d   =   a . a n c e s t o r s ( ) ;   r e t u r n   b   ?   S e l e c t o r . f i n d E l e m e n t ( d ,   b ,   c )   :   d [ c   | |   0 ]   } ,   d o w n :   f u n c t i o n ( a ,   b ,   c )   {   a   =   $ ( a ) ;   i f   ( a r g u m e n t s . l e n g t h   = =   1 )   r e t u r n   a . f i r s t D e s c e n d a n t ( ) ;   v a r   d   =   a . d e s c e n d a n t s ( ) ;   r e t u r n   b   ?   S e l e c t o r . f i n d E l e m e n t ( d ,   b ,   c )   :   d [ c   | |   0 ]   } ,   p r e v i o u s :   f u n c t i o n ( a ,   b ,   c )   {   a   =   $ ( a ) ;   i f   ( a r g u m e n t s . l e n g t h   = =   1 )   r e t u r n   $ ( S e l e c t o r . h a n d l e r s . p r e v i o u s E l e m e n t S i b l i n g ( a ) ) ;   v a r   d   =   a . p r e v i o u s S i b l i n g s ( ) ;   r e t u r n   b   ?   S e l e c t o r . f i n d E l e m e n t ( d ,   b ,   c )   :   d [ c   | |   0 ]   } ,   n e x t :   f u n c t i o n ( a ,   b ,   c )   {   a   =   $ ( a ) ;   i f   ( a r g u m e n t s . l e n g t h   = =   1 )   r e t u r n   $ ( S e l e c t o r . h a n d l e r s . n e x t E l e m e n t S i b l i n g ( a ) ) ;   v a r   d   =   a . n e x t S i b l i n g s ( ) ;   r e t u r n   b   ?   S e l e c t o r . f i n d E l e m e n t ( d ,   b ,   c )   :   d [ c   | |   0 ]   } ,   g e t E l e m e n t s B y S e l e c t o r :   f u n c t i o n ( )   {   v a r   a   =   $ A ( a r g u m e n t s ) ,   e l e m e n t   =   $ ( a . s h i f t ( ) ) ;   r e t u r n   S e l e c t o r . f i n d C h i l d E l e m e n t s ( e l e m e n t ,   a )   } ,   g e t E l e m e n t s B y C l a s s N a m e :   f u n c t i o n ( a ,   b )   {   r e t u r n   d o c u m e n t . g e t E l e m e n t s B y C l a s s N a m e ( b ,   a )   } ,   r e a d A t t r i b u t e :   f u n c t i o n ( a ,   b )   {   a   =   $ ( a ) ;   i f   ( P r o t o t y p e . B r o w s e r . I E )   {   i f   ( ! a . a t t r i b u t e s )   r e t u r n   n u l l ;   v a r   t   =   E l e m e n t . _ a t t r i b u t e T r a n s l a t i o n s ;   i f   ( t . v a l u e s [ b ] )   r e t u r n   t . v a l u e s [ b ] ( a ,   b ) ;   i f   ( t . n a m e s [ b ] )   b   =   t . n a m e s [ b ] ;   v a r   c   =   a . a t t r i b u t e s [ b ] ;   r e t u r n   c   ?   c . n o d e V a l u e   :   n u l l   }   r e t u r n   a . g e t A t t r i b u t e ( b )   } ,   g e t H e i g h t :   f u n c t i o n ( a )   {   r e t u r n   $ ( a ) . g e t D i m e n s i o n s ( ) . h e i g h t   } ,   g e t W i d t h :   f u n c t i o n ( a )   {   r e t u r n   $ ( a ) . g e t D i m e n s i o n s ( ) . w i d t h   } ,   c l a s s N a m e s :   f u n c t i o n ( a )   {   r e t u r n   n e w   E l e m e n t . C l a s s N a m e s ( a )   } ,   h a s C l a s s N a m e :   f u n c t i o n ( a ,   b )   {   i f   ( ! ( a   =   $ ( a ) ) )   r e t u r n ;   v a r   c   =   a . c l a s s N a m e ;   i f   ( c . l e n g t h   = =   0 )   r e t u r n   f a l s e ;   i f   ( c   = =   b   | |   c . m a t c h ( n e w   R e g E x p ( " ( ^ | \ \ s ) "   +   b   +   " ( \ \ s | $ ) " ) ) )   r e t u r n   t r u e ;   r e t u r n   f a l s e   } ,   a d d C l a s s N a m e :   f u n c t i o n ( a ,   b )   {   i f   ( ! ( a   =   $ ( a ) ) )   r e t u r n ;   E l e m e n t . c l a s s N a m e s ( a ) . a d d ( b ) ;   r e t u r n   a   } ,   r e m o v e C l a s s N a m e :   f u n c t i o n ( a ,   b )   {   i f   ( ! ( a   =   $ ( a ) ) )   r e t u r n ;   E l e m e n t . c l a s s N a m e s ( a ) . r e m o v e ( b ) ;   r e t u r n   a   } ,   t o g g l e C l a s s N a m e :   f u n c t i o n ( a ,   b )   {   i f   ( ! ( a   =   $ ( a ) ) )   r e t u r n ;   E l e m e n t . c l a s s N a m e s ( a ) [ a . h a s C l a s s N a m e ( b )   ?   ' r e m o v e '   :   ' a d d ' ] ( b ) ;   r e t u r n   a   } ,   o b s e r v e :   f u n c t i o n ( )   {   E v e n t . o b s e r v e . a p p l y ( E v e n t ,   a r g u m e n t s ) ;   r e t u r n   $ A ( a r g u m e n t s ) . f i r s t ( )   } ,   s t o p O b s e r v i n g :   f u n c t i o n ( )   {   E v e n t . s t o p O b s e r v i n g . a p p l y ( E v e n t ,   a r g u m e n t s ) ;   r e t u r n   $ A ( a r g u m e n t s ) . f i r s t ( )   } ,   c l e a n W h i t e s p a c e :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   v a r   b   =   a . f i r s t C h i l d ;   w h i l e   ( b )   {   v a r   c   =   b . n e x t S i b l i n g ;   i f   ( b . n o d e T y p e   = =   3   & &   ! / \ S / . t e s t ( b . n o d e V a l u e ) )   a . r e m o v e C h i l d ( b ) ;   b   =   c   }   r e t u r n   a   } ,   e m p t y :   f u n c t i o n ( a )   {   r e t u r n   $ ( a ) . i n n e r H T M L . b l a n k ( )   } ,   d e s c e n d a n t O f :   f u n c t i o n ( a ,   b )   {   a   =   $ ( a ) ,   b   =   $ ( b ) ;   w h i l e   ( a   =   a . p a r e n t N o d e )   i f   ( a   = =   b )   r e t u r n   t r u e ;   r e t u r n   f a l s e   } ,   s c r o l l T o :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   v a r   b   =   P o s i t i o n . c u m u l a t i v e O f f s e t ( a ) ;   w i n d o w . s c r o l l T o ( b [ 0 ] ,   b [ 1 ] ) ;   r e t u r n   a   } ,   g e t S t y l e :   f u n c t i o n ( a ,   b )   {   a   =   $ ( a ) ;   b   =   b   = =   ' f l o a t '   ?   ' c s s F l o a t '   :   b . c a m e l i z e ( ) ;   v a r   c   =   a . s t y l e [ b ] ;   i f   ( ! c )   {   v a r   d   =   d o c u m e n t . d e f a u l t V i e w . g e t C o m p u t e d S t y l e ( a ,   n u l l ) ;   c   =   d   ?   d [ b ]   :   n u l l   }   i f   ( b   = =   ' o p a c i t y ' )   r e t u r n   c   ?   p a r s e F l o a t ( c )   :   1 . 0 ;   r e t u r n   c   = =   ' a u t o '   ?   n u l l   :   c   } ,   g e t O p a c i t y :   f u n c t i o n ( a )   {   r e t u r n   $ ( a ) . g e t S t y l e ( ' o p a c i t y ' )   } ,   s e t S t y l e :   f u n c t i o n ( a ,   b ,   c )   {   a   =   $ ( a ) ;   v a r   d   =   a . s t y l e ;   f o r   ( v a r   e   i n   b )   i f   ( e   = =   ' o p a c i t y ' )   a . s e t O p a c i t y ( b [ e ] ) ;   e l s e   d [ ( e   = =   ' f l o a t '   | |   e   = =   ' c s s F l o a t ' )   ?   ( d . s t y l e F l o a t   = = =   u n d e f i n e d   ?   ' c s s F l o a t '   :   ' s t y l e F l o a t ' )   :   ( c   ?   e   :   e . c a m e l i z e ( ) ) ]   =   b [ e ] ;   r e t u r n   a   } ,   s e t O p a c i t y :   f u n c t i o n ( a ,   b )   {   a   =   $ ( a ) ;   a . s t y l e . o p a c i t y   =   ( b   = =   1   | |   b   = = =   ' ' )   ?   ' '   :   ( b   <   0 . 0 0 0 0 1 )   ?   0   :   b ;   r e t u r n   a   } ,   g e t D i m e n s i o n s :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   v a r   b   =   $ ( a ) . g e t S t y l e ( ' d i s p l a y ' ) ;   i f   ( b   ! =   ' n o n e '   & &   b   ! =   n u l l )   r e t u r n   {   w i d t h :   a . o f f s e t W i d t h ,   h e i g h t :   a . o f f s e t H e i g h t   } ;   v a r   c   =   a . s t y l e ;   v a r   d   =   c . v i s i b i l i t y ;   v a r   e   =   c . p o s i t i o n ;   v a r   f   =   c . d i s p l a y ;   c . v i s i b i l i t y   =   ' h i d d e n ' ;   c . p o s i t i o n   =   ' a b s o l u t e ' ;   c . d i s p l a y   =   ' b l o c k ' ;   v a r   g   =   a . c l i e n t W i d t h ;   v a r   h   =   a . c l i e n t H e i g h t ;   c . d i s p l a y   =   f ;   c . p o s i t i o n   =   e ;   c . v i s i b i l i t y   =   d ;   r e t u r n   {   w i d t h :   g ,   h e i g h t :   h }   } ,   m a k e P o s i t i o n e d :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   v a r   b   =   E l e m e n t . g e t S t y l e ( a ,   ' p o s i t i o n ' ) ;   i f   ( b   = =   ' s t a t i c '   | |   ! b )   {   a . _ m a d e P o s i t i o n e d   =   t r u e ;   a . s t y l e . p o s i t i o n   =   ' r e l a t i v e ' ;   i f   ( w i n d o w . o p e r a )   {   a . s t y l e . t o p   =   0 ;   a . s t y l e . l e f t   =   0   }   }   r e t u r n   a   } ,   u n d o P o s i t i o n e d :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   i f   ( a . _ m a d e P o s i t i o n e d )   {   a . _ m a d e P o s i t i o n e d   =   u n d e f i n e d ;   a . s t y l e . p o s i t i o n   =   a . s t y l e . t o p   =   a . s t y l e . l e f t   =   a . s t y l e . b o t t o m   =   a . s t y l e . r i g h t   =   ' '   }   r e t u r n   a   } ,   m a k e C l i p p i n g :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   i f   ( a . _ o v e r f l o w )   r e t u r n   a ;   a . _ o v e r f l o w   =   a . s t y l e . o v e r f l o w   | |   ' a u t o ' ;   i f   ( ( E l e m e n t . g e t S t y l e ( a ,   ' o v e r f l o w ' )   | |   ' v i s i b l e ' )   ! =   ' h i d d e n ' )   a . s t y l e . o v e r f l o w   =   ' h i d d e n ' ;   r e t u r n   a   } ,   u n d o C l i p p i n g :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   i f   ( ! a . _ o v e r f l o w )   r e t u r n   a ;   a . s t y l e . o v e r f l o w   =   a . _ o v e r f l o w   = =   ' a u t o '   ?   ' '   :   a . _ o v e r f l o w ;   a . _ o v e r f l o w   =   n u l l ;   r e t u r n   a   }   } ;   O b j e c t . e x t e n d ( E l e m e n t . M e t h o d s ,   {   c h i l d O f :   E l e m e n t . M e t h o d s . d e s c e n d a n t O f ,   c h i l d E l e m e n t s :   E l e m e n t . M e t h o d s . i m m e d i a t e D e s c e n d a n t s   } ) ;   i f   ( P r o t o t y p e . B r o w s e r . O p e r a )   {   E l e m e n t . M e t h o d s . _ g e t S t y l e   =   E l e m e n t . M e t h o d s . g e t S t y l e ;   E l e m e n t . M e t h o d s . g e t S t y l e   =   f u n c t i o n ( a ,   b )   {   s w i t c h   ( b )   {   c a s e   ' l e f t ' :   c a s e   ' t o p ' :   c a s e   ' r i g h t ' :   c a s e   ' b o t t o m ' :   i f   ( E l e m e n t . _ g e t S t y l e ( a ,   ' p o s i t i o n ' )   = =   ' s t a t i c ' )   r e t u r n   n u l l ;   d e f a u l t :   r e t u r n   E l e m e n t . _ g e t S t y l e ( a ,   b )   }   }   }   e l s e   i f   ( P r o t o t y p e . B r o w s e r . I E )   {   E l e m e n t . M e t h o d s . g e t S t y l e   =   f u n c t i o n ( a ,   b )   {   a   =   $ ( a ) ;   b   =   ( b   = =   ' f l o a t '   | |   b   = =   ' c s s F l o a t ' )   ?   ' s t y l e F l o a t '   :   b . c a m e l i z e ( ) ;   v a r   c   =   a . s t y l e [ b ] ;   i f   ( ! c   & &   a . c u r r e n t S t y l e )   c   =   a . c u r r e n t S t y l e [ b ] ;   i f   ( b   = =   ' o p a c i t y ' )   {   i f   ( c   =   ( a . g e t S t y l e ( ' f i l t e r ' )   | |   ' ' ) . m a t c h ( / a l p h a \ ( o p a c i t y = ( . * ) \ ) / ) )   i f   ( c [ 1 ] )   r e t u r n   p a r s e F l o a t ( c [ 1 ] )   /   1 0 0 ;   r e t u r n   1 . 0   }   i f   ( c   = =   ' a u t o ' )   {   i f   ( ( b   = =   ' w i d t h '   | |   b   = =   ' h e i g h t ' )   & &   ( a . g e t S t y l e ( ' d i s p l a y ' )   ! =   ' n o n e ' ) )   r e t u r n   a [ ' o f f s e t '   +   b . c a p i t a l i z e ( ) ]   +   ' p x ' ;   r e t u r n   n u l l   }   r e t u r n   c   } ;   E l e m e n t . M e t h o d s . s e t O p a c i t y   =   f u n c t i o n ( a ,   b )   {   a   =   $ ( a ) ;   v a r   c   =   a . g e t S t y l e ( ' f i l t e r ' ) ,   s t y l e   =   a . s t y l e ;   i f   ( b   = =   1   | |   b   = = =   ' ' )   {   s t y l e . f i l t e r   =   c . r e p l a c e ( / a l p h a \ ( [ ^ \ ) ] * \ ) / g i ,   ' ' ) ;   r e t u r n   a   }   e l s e   i f   ( b   <   0 . 0 0 0 0 1 )   b   =   0 ;   s t y l e . f i l t e r   =   c . r e p l a c e ( / a l p h a \ ( [ ^ \ ) ] * \ ) / g i ,   ' ' )   +   ' a l p h a ( o p a c i t y = '   +   ( b   *   1 0 0 )   +   ' ) ' ;   r e t u r n   a   } ;   E l e m e n t . M e t h o d s . u p d a t e   =   f u n c t i o n ( b ,   c )   {   b   =   $ ( b ) ;   c   =   t y p e o f   c   = =   ' u n d e f i n e d '   ?   ' '   :   c . t o S t r i n g ( ) ;   v a r   d   =   b . t a g N a m e . t o U p p e r C a s e ( ) ;   i f   ( [ ' T H E A D ' ,   ' T B O D Y ' ,   ' T R ' ,   ' T D ' ] . i n c l u d e ( d ) )   {   v a r   e   =   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ;   s w i t c h   ( d )   {   c a s e   ' T H E A D ' :   c a s e   ' T B O D Y ' :   e . i n n e r H T M L   =   ' < t a b l e > < t b o d y > '   +   c . s t r i p S c r i p t s ( )   +   ' < / t b o d y > < / t a b l e > ' ;   d e p t h   =   2 ;   b r e a k ;   c a s e   ' T R ' :   e . i n n e r H T M L   =   ' < t a b l e > < t b o d y > < t r > '   +   c . s t r i p S c r i p t s ( )   +   ' < / t r > < / t b o d y > < / t a b l e > ' ;   d e p t h   =   3 ;   b r e a k ;   c a s e   ' T D ' :   e . i n n e r H T M L   =   ' < t a b l e > < t b o d y > < t r > < t d > '   +   c . s t r i p S c r i p t s ( )   +   ' < / t d > < / t r > < / t b o d y > < / t a b l e > ' ;   d e p t h   =   4   }   $ A ( b . c h i l d N o d e s ) . e a c h ( f u n c t i o n ( a )   {   b . r e m o v e C h i l d ( a )   } ) ;   d e p t h . t i m e s ( f u n c t i o n ( )   {   e   =   e . f i r s t C h i l d   } ) ;   $ A ( e . c h i l d N o d e s ) . e a c h ( f u n c t i o n ( a )   {   b . a p p e n d C h i l d ( a )   } )   }   e l s e   {   b . i n n e r H T M L   =   c . s t r i p S c r i p t s ( )   }   s e t T i m e o u t ( f u n c t i o n ( )   {   c . e v a l S c r i p t s ( )   } ,   1 0 ) ;   r e t u r n   b   }   }   e l s e   i f   ( P r o t o t y p e . B r o w s e r . G e c k o )   {   E l e m e n t . M e t h o d s . s e t O p a c i t y   =   f u n c t i o n ( a ,   b )   {   a   =   $ ( a ) ;   a . s t y l e . o p a c i t y   =   ( b   = =   1 )   ?   0 . 9 9 9 9 9 9   :   ( b   = = =   ' ' )   ?   ' '   :   ( b   <   0 . 0 0 0 0 1 )   ?   0   :   b ;   r e t u r n   a   }   }   E l e m e n t . _ a t t r i b u t e T r a n s l a t i o n s   =   {   n a m e s :   {   c o l s p a n :   " c o l S p a n " ,   r o w s p a n :   " r o w S p a n " ,   v a l i g n :   " v A l i g n " ,   d a t e t i m e :   " d a t e T i m e " ,   a c c e s s k e y :   " a c c e s s K e y " ,   t a b i n d e x :   " t a b I n d e x " ,   e n c t y p e :   " e n c T y p e " ,   m a x l e n g t h :   " m a x L e n g t h " ,   r e a d o n l y :   " r e a d O n l y " ,   l o n g d e s c :   " l o n g D e s c "   } ,   v a l u e s :   {   _ g e t A t t r :   f u n c t i o n ( a ,   b )   {   r e t u r n   a . g e t A t t r i b u t e ( b ,   2 )   } ,   _ f l a g :   f u n c t i o n ( a ,   b )   {   r e t u r n   $ ( a ) . h a s A t t r i b u t e ( b )   ?   b   :   n u l l   } ,   s t y l e :   f u n c t i o n ( a )   {   r e t u r n   a . s t y l e . c s s T e x t . t o L o w e r C a s e ( )   } ,   t i t l e :   f u n c t i o n ( a )   {   v a r   b   =   a . g e t A t t r i b u t e N o d e ( ' t i t l e ' ) ;   r e t u r n   b . s p e c i f i e d   ?   b . n o d e V a l u e   :   n u l l   }   }   } ;   ( f u n c t i o n ( )   {   O b j e c t . e x t e n d ( t h i s ,   {   h r e f :   t h i s . _ g e t A t t r ,   s r c :   t h i s . _ g e t A t t r ,   t y p e :   t h i s . _ g e t A t t r ,   d i s a b l e d :   t h i s . _ f l a g ,   c h e c k e d :   t h i s . _ f l a g ,   r e a d o n l y :   t h i s . _ f l a g ,   m u l t i p l e :   t h i s . _ f l a g   } )   } ) . c a l l ( E l e m e n t . _ a t t r i b u t e T r a n s l a t i o n s . v a l u e s ) ;   E l e m e n t . M e t h o d s . S i m u l a t e d   =   {   h a s A t t r i b u t e :   f u n c t i o n ( a ,   b )   {   v a r   t   =   E l e m e n t . _ a t t r i b u t e T r a n s l a t i o n s ,   n o d e ;   b   =   t . n a m e s [ b ]   | |   b ;   n o d e   =   $ ( a ) . g e t A t t r i b u t e N o d e ( b ) ;   r e t u r n   n o d e   & &   n o d e . s p e c i f i e d   }   } ;   E l e m e n t . M e t h o d s . B y T a g   =   { } ;   O b j e c t . e x t e n d ( E l e m e n t ,   E l e m e n t . M e t h o d s ) ;   i f   ( ! P r o t o t y p e . B r o w s e r F e a t u r e s . E l e m e n t E x t e n s i o n s   & &   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) . _ _ p r o t o _ _ )   {   w i n d o w . H T M L E l e m e n t   =   { } ;   w i n d o w . H T M L E l e m e n t . p r o t o t y p e   =   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) . _ _ p r o t o _ _ ;   P r o t o t y p e . B r o w s e r F e a t u r e s . E l e m e n t E x t e n s i o n s   =   t r u e   }   E l e m e n t . h a s A t t r i b u t e   =   f u n c t i o n ( a ,   b )   {   i f   ( a . h a s A t t r i b u t e )   r e t u r n   a . h a s A t t r i b u t e ( b ) ;   r e t u r n   E l e m e n t . M e t h o d s . S i m u l a t e d . h a s A t t r i b u t e ( a ,   b )   } ;   E l e m e n t . a d d M e t h o d s   =   f u n c t i o n ( g )   {   v a r   F   =   P r o t o t y p e . B r o w s e r F e a t u r e s ,   T   =   E l e m e n t . M e t h o d s . B y T a g ;   i f   ( ! g )   {   O b j e c t . e x t e n d ( F o r m ,   F o r m . M e t h o d s ) ;   O b j e c t . e x t e n d ( F o r m . E l e m e n t ,   F o r m . E l e m e n t . M e t h o d s ) ;   O b j e c t . e x t e n d ( E l e m e n t . M e t h o d s . B y T a g ,   {   " F O R M " :   O b j e c t . c l o n e ( F o r m . M e t h o d s ) ,   " I N P U T " :   O b j e c t . c l o n e ( F o r m . E l e m e n t . M e t h o d s ) ,   " S E L E C T " :   O b j e c t . c l o n e ( F o r m . E l e m e n t . M e t h o d s ) ,   " T E X T A R E A " :   O b j e c t . c l o n e ( F o r m . E l e m e n t . M e t h o d s )   } )   }   i f   ( a r g u m e n t s . l e n g t h   = =   2 )   {   v a r   h   =   g ;   g   =   a r g u m e n t s [ 1 ]   }   i f   ( ! h )   O b j e c t . e x t e n d ( E l e m e n t . M e t h o d s ,   g   | |   { } ) ;   e l s e   {   i f   ( h . c o n s t r u c t o r   = =   A r r a y )   h . e a c h ( e x t e n d ) ;   e l s e   e x t e n d ( h )   }   f u n c t i o n   e x t e n d ( a )   {   a   =   a . t o U p p e r C a s e ( ) ;   i f   ( ! E l e m e n t . M e t h o d s . B y T a g [ a ] )   E l e m e n t . M e t h o d s . B y T a g [ a ]   =   { } ;   O b j e c t . e x t e n d ( E l e m e n t . M e t h o d s . B y T a g [ a ] ,   g )   }   f u n c t i o n   c o p y ( a ,   b ,   c )   {   c   =   c   | |   f a l s e ;   v a r   d   =   E l e m e n t . e x t e n d . c a c h e ;   f o r   ( v a r   e   i n   a )   {   v a r   f   =   a [ e ] ;   i f   ( ! c   | |   ! ( e   i n   b ) )   b [ e ]   =   d . f i n d O r S t o r e ( f )   }   }   f u n c t i o n   f i n d D O M C l a s s ( a )   {   v a r   b ;   v a r   c   =   {   " O P T G R O U P " :   " O p t G r o u p " ,   " T E X T A R E A " :   " T e x t A r e a " ,   " P " :   " P a r a g r a p h " ,   " F I E L D S E T " :   " F i e l d S e t " ,   " U L " :   " U L i s t " ,   " O L " :   " O L i s t " ,   " D L " :   " D L i s t " ,   " D I R " :   " D i r e c t o r y " ,   " H 1 " :   " H e a d i n g " ,   " H 2 " :   " H e a d i n g " ,   " H 3 " :   " H e a d i n g " ,   " H 4 " :   " H e a d i n g " ,   " H 5 " :   " H e a d i n g " ,   " H 6 " :   " H e a d i n g " ,   " Q " :   " Q u o t e " ,   " I N S " :   " M o d " ,   " D E L " :   " M o d " ,   " A " :   " A n c h o r " ,   " I M G " :   " I m a g e " ,   " C A P T I O N " :   " T a b l e C a p t i o n " ,   " C O L " :   " T a b l e C o l " ,   " C O L G R O U P " :   " T a b l e C o l " ,   " T H E A D " :   " T a b l e S e c t i o n " ,   " T F O O T " :   " T a b l e S e c t i o n " ,   " T B O D Y " :   " T a b l e S e c t i o n " ,   " T R " :   " T a b l e R o w " ,   " T H " :   " T a b l e C e l l " ,   " T D " :   " T a b l e C e l l " ,   " F R A M E S E T " :   " F r a m e S e t " ,   " I F R A M E " :   " I F r a m e "   } ;   i f   ( c [ a ] )   b   =   ' H T M L '   +   c [ a ]   +   ' E l e m e n t ' ;   i f   ( w i n d o w [ b ] )   r e t u r n   w i n d o w [ b ] ;   b   =   ' H T M L '   +   a   +   ' E l e m e n t ' ;   i f   ( w i n d o w [ b ] )   r e t u r n   w i n d o w [ b ] ;   b   =   ' H T M L '   +   a . c a p i t a l i z e ( )   +   ' E l e m e n t ' ;   i f   ( w i n d o w [ b ] )   r e t u r n   w i n d o w [ b ] ;   w i n d o w [ b ]   =   { } ;   w i n d o w [ b ] . p r o t o t y p e   =   d o c u m e n t . c r e a t e E l e m e n t ( a ) . _ _ p r o t o _ _ ;   r e t u r n   w i n d o w [ b ]   }   i f   ( F . E l e m e n t E x t e n s i o n s )   {   c o p y ( E l e m e n t . M e t h o d s ,   H T M L E l e m e n t . p r o t o t y p e ) ;   c o p y ( E l e m e n t . M e t h o d s . S i m u l a t e d ,   H T M L E l e m e n t . p r o t o t y p e ,   t r u e )   }   i f   ( F . S p e c i f i c E l e m e n t E x t e n s i o n s )   {   f o r   ( v a r   i   i n   E l e m e n t . M e t h o d s . B y T a g )   {   v a r   j   =   f i n d D O M C l a s s ( i ) ;   i f   ( t y p e o f   j   = =   " u n d e f i n e d " )   c o n t i n u e ;   c o p y ( T [ i ] ,   j . p r o t o t y p e )   }   }   O b j e c t . e x t e n d ( E l e m e n t ,   E l e m e n t . M e t h o d s ) ;   d e l e t e   E l e m e n t . B y T a g   } ;   v a r   T o g g l e   =   {   d i s p l a y :   E l e m e n t . t o g g l e   } ;   A b s t r a c t . I n s e r t i o n   =   f u n c t i o n ( a )   {   t h i s . a d j a c e n c y   =   a   } ;   A b s t r a c t . I n s e r t i o n . p r o t o t y p e   =   {   i n i t i a l i z e :   f u n c t i o n ( a ,   b )   {   t h i s . e l e m e n t   =   $ ( a ) ;   t h i s . c o n t e n t   =   b . s t r i p S c r i p t s ( ) ;   i f   ( t h i s . a d j a c e n c y   & &   t h i s . e l e m e n t . i n s e r t A d j a c e n t H T M L )   {   t r y   {   t h i s . e l e m e n t . i n s e r t A d j a c e n t H T M L ( t h i s . a d j a c e n c y ,   t h i s . c o n t e n t )   }   c a t c h   ( e )   {   v a r   c   =   t h i s . e l e m e n t . t a g N a m e . t o U p p e r C a s e ( ) ;   i f   ( [ ' T B O D Y ' ,   ' T R ' ] . i n c l u d e ( c ) )   {   t h i s . i n s e r t C o n t e n t ( t h i s . c o n t e n t F r o m A n o n y m o u s T a b l e ( ) )   }   e l s e   {   t h r o w   e ;   }   }   }   e l s e   {   t h i s . r a n g e   =   t h i s . e l e m e n t . o w n e r D o c u m e n t . c r e a t e R a n g e ( ) ;   i f   ( t h i s . i n i t i a l i z e R a n g e )   t h i s . i n i t i a l i z e R a n g e ( ) ;   t h i s . i n s e r t C o n t e n t ( [ t h i s . r a n g e . c r e a t e C o n t e x t u a l F r a g m e n t ( t h i s . c o n t e n t ) ] )   }   s e t T i m e o u t ( f u n c t i o n ( )   {   b . e v a l S c r i p t s ( )   } ,   1 0 )   } ,   c o n t e n t F r o m A n o n y m o u s T a b l e :   f u n c t i o n ( )   {   v a r   a   =   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ;   a . i n n e r H T M L   =   ' < t a b l e > < t b o d y > '   +   t h i s . c o n t e n t   +   ' < / t b o d y > < / t a b l e > ' ;   r e t u r n   $ A ( a . c h i l d N o d e s [ 0 ] . c h i l d N o d e s [ 0 ] . c h i l d N o d e s )   }   } ;   v a r   I n s e r t i o n   =   n e w   O b j e c t ( ) ;   I n s e r t i o n . B e f o r e   =   C l a s s . c r e a t e ( ) ;   I n s e r t i o n . B e f o r e . p r o t o t y p e   =   O b j e c t . e x t e n d ( n e w   A b s t r a c t . I n s e r t i o n ( ' b e f o r e B e g i n ' ) ,   {   i n i t i a l i z e R a n g e :   f u n c t i o n ( )   {   t h i s . r a n g e . s e t S t a r t B e f o r e ( t h i s . e l e m e n t )   } ,   i n s e r t C o n t e n t :   f u n c t i o n ( b )   {   b . e a c h ( ( f u n c t i o n ( a )   {   t h i s . e l e m e n t . p a r e n t N o d e . i n s e r t B e f o r e ( a ,   t h i s . e l e m e n t )   } ) . b i n d ( t h i s ) )   }   } ) ;   I n s e r t i o n . T o p   =   C l a s s . c r e a t e ( ) ;   I n s e r t i o n . T o p . p r o t o t y p e   =   O b j e c t . e x t e n d ( n e w   A b s t r a c t . I n s e r t i o n ( ' a f t e r B e g i n ' ) ,   {   i n i t i a l i z e R a n g e :   f u n c t i o n ( )   {   t h i s . r a n g e . s e l e c t N o d e C o n t e n t s ( t h i s . e l e m e n t ) ;   t h i s . r a n g e . c o l l a p s e ( t r u e )   } ,   i n s e r t C o n t e n t :   f u n c t i o n ( b )   {   b . r e v e r s e ( f a l s e ) . e a c h ( ( f u n c t i o n ( a )   {   t h i s . e l e m e n t . i n s e r t B e f o r e ( a ,   t h i s . e l e m e n t . f i r s t C h i l d )   } ) . b i n d ( t h i s ) )   }   } ) ;   I n s e r t i o n . B o t t o m   =   C l a s s . c r e a t e ( ) ;   I n s e r t i o n . B o t t o m . p r o t o t y p e   =   O b j e c t . e x t e n d ( n e w   A b s t r a c t . I n s e r t i o n ( ' b e f o r e E n d ' ) ,   {   i n i t i a l i z e R a n g e :   f u n c t i o n ( )   {   t h i s . r a n g e . s e l e c t N o d e C o n t e n t s ( t h i s . e l e m e n t ) ;   t h i s . r a n g e . c o l l a p s e ( t h i s . e l e m e n t )   } ,   i n s e r t C o n t e n t :   f u n c t i o n ( b )   {   b . e a c h ( ( f u n c t i o n ( a )   {   t h i s . e l e m e n t . a p p e n d C h i l d ( a )   } ) . b i n d ( t h i s ) )   }   } ) ;   I n s e r t i o n . A f t e r   =   C l a s s . c r e a t e ( ) ;   I n s e r t i o n . A f t e r . p r o t o t y p e   =   O b j e c t . e x t e n d ( n e w   A b s t r a c t . I n s e r t i o n ( ' a f t e r E n d ' ) ,   {   i n i t i a l i z e R a n g e :   f u n c t i o n ( )   {   t h i s . r a n g e . s e t S t a r t A f t e r ( t h i s . e l e m e n t )   } ,   i n s e r t C o n t e n t :   f u n c t i o n ( b )   {   b . e a c h ( ( f u n c t i o n ( a )   {   t h i s . e l e m e n t . p a r e n t N o d e . i n s e r t B e f o r e ( a ,   t h i s . e l e m e n t . n e x t S i b l i n g )   } ) . b i n d ( t h i s ) )   }   } ) ;   E l e m e n t . C l a s s N a m e s   =   C l a s s . c r e a t e ( ) ;   E l e m e n t . C l a s s N a m e s . p r o t o t y p e   =   {   i n i t i a l i z e :   f u n c t i o n ( a )   {   t h i s . e l e m e n t   =   $ ( a )   } ,   _ e a c h :   f u n c t i o n ( b )   {   t h i s . e l e m e n t . c l a s s N a m e . s p l i t ( / \ s + / ) . s e l e c t ( f u n c t i o n ( a )   {   r e t u r n   a . l e n g t h   >   0   } ) . _ e a c h ( b )   } ,   s e t :   f u n c t i o n ( a )   {   t h i s . e l e m e n t . c l a s s N a m e   =   a   } ,   a d d :   f u n c t i o n ( a )   {   i f   ( t h i s . i n c l u d e ( a ) )   r e t u r n ;   t h i s . s e t ( $ A ( t h i s ) . c o n c a t ( a ) . j o i n ( '   ' ) )   } ,   r e m o v e :   f u n c t i o n ( a )   {   i f   ( ! t h i s . i n c l u d e ( a ) )   r e t u r n ;   t h i s . s e t ( $ A ( t h i s ) . w i t h o u t ( a ) . j o i n ( '   ' ) )   } ,   t o S t r i n g :   f u n c t i o n ( )   {   r e t u r n   $ A ( t h i s ) . j o i n ( '   ' )   }   } ;   O b j e c t . e x t e n d ( E l e m e n t . C l a s s N a m e s . p r o t o t y p e ,   E n u m e r a b l e ) ;   v a r   S e l e c t o r   =   C l a s s . c r e a t e ( ) ;   S e l e c t o r . p r o t o t y p e   =   {   i n i t i a l i z e :   f u n c t i o n ( a )   {   t h i s . e x p r e s s i o n   =   a . s t r i p ( ) ;   t h i s . c o m p i l e M a t c h e r ( )   } ,   c o m p i l e M a t c h e r :   f u n c t i o n ( )   {   i f   ( P r o t o t y p e . B r o w s e r F e a t u r e s . X P a t h   & &   ! ( / \ [ [ \ w - ] * ? : / ) . t e s t ( t h i s . e x p r e s s i o n ) )   r e t u r n   t h i s . c o m p i l e X P a t h M a t c h e r ( ) ;   v a r   e   =   t h i s . e x p r e s s i o n ,   p s   =   S e l e c t o r . p a t t e r n s ,   h   =   S e l e c t o r . h a n d l e r s ,   c   =   S e l e c t o r . c r i t e r i a ,   l e ,   p ,   m ;   i f   ( S e l e c t o r . _ c a c h e [ e ] )   {   t h i s . m a t c h e r   =   S e l e c t o r . _ c a c h e [ e ] ;   r e t u r n   }   t h i s . m a t c h e r   =   [ " t h i s . m a t c h e r   =   f u n c t i o n ( r o o t )   { " ,   " v a r   r   =   r o o t ,   h   =   S e l e c t o r . h a n d l e r s ,   c   =   f a l s e ,   n ; " ] ;   w h i l e   ( e   & &   l e   ! =   e   & &   ( / \ S / ) . t e s t ( e ) )   {   l e   =   e ;   f o r   ( v a r   i   i n   p s )   {   p   =   p s [ i ] ;   i f   ( m   =   e . m a t c h ( p ) )   {   t h i s . m a t c h e r . p u s h ( t y p e o f   c [ i ]   = =   ' f u n c t i o n '   ?   c [ i ] ( m )   :   n e w   T e m p l a t e ( c [ i ] ) . e v a l u a t e ( m ) ) ;   e   =   e . r e p l a c e ( m [ 0 ] ,   ' ' ) ;   b r e a k   }   }   }   t h i s . m a t c h e r . p u s h ( " r e t u r n   h . u n i q u e ( n ) ; \ n } " ) ;   e v a l ( t h i s . m a t c h e r . j o i n ( ' \ n ' ) ) ;   S e l e c t o r . _ c a c h e [ t h i s . e x p r e s s i o n ]   =   t h i s . m a t c h e r   } ,   c o m p i l e X P a t h M a t c h e r :   f u n c t i o n ( )   {   v a r   e   =   t h i s . e x p r e s s i o n ,   p s   =   S e l e c t o r . p a t t e r n s ,   x   =   S e l e c t o r . x p a t h ,   l e ,   m ;   i f   ( S e l e c t o r . _ c a c h e [ e ] )   {   t h i s . x p a t h   =   S e l e c t o r . _ c a c h e [ e ] ;   r e t u r n   }   t h i s . m a t c h e r   =   [ ' . / / * ' ] ;   w h i l e   ( e   & &   l e   ! =   e   & &   ( / \ S / ) . t e s t ( e ) )   {   l e   =   e ;   f o r   ( v a r   i   i n   p s )   {   i f   ( m   =   e . m a t c h ( p s [ i ] ) )   {   t h i s . m a t c h e r . p u s h ( t y p e o f   x [ i ]   = =   ' f u n c t i o n '   ?   x [ i ] ( m )   :   n e w   T e m p l a t e ( x [ i ] ) . e v a l u a t e ( m ) ) ;   e   =   e . r e p l a c e ( m [ 0 ] ,   ' ' ) ;   b r e a k   }   }   }   t h i s . x p a t h   =   t h i s . m a t c h e r . j o i n ( ' ' ) ;   S e l e c t o r . _ c a c h e [ t h i s . e x p r e s s i o n ]   =   t h i s . x p a t h   } ,   f i n d E l e m e n t s :   f u n c t i o n ( a )   {   a   =   a   | |   d o c u m e n t ;   i f   ( t h i s . x p a t h )   r e t u r n   d o c u m e n t . _ g e t E l e m e n t s B y X P a t h ( t h i s . x p a t h ,   a ) ;   r e t u r n   t h i s . m a t c h e r ( a )   } ,   m a t c h :   f u n c t i o n ( a )   {   r e t u r n   t h i s . f i n d E l e m e n t s ( d o c u m e n t ) . i n c l u d e ( a )   } ,   t o S t r i n g :   f u n c t i o n ( )   {   r e t u r n   t h i s . e x p r e s s i o n   } ,   i n s p e c t :   f u n c t i o n ( )   {   r e t u r n   " # < S e l e c t o r : "   +   t h i s . e x p r e s s i o n . i n s p e c t ( )   +   " > "   }   } ;   O b j e c t . e x t e n d ( S e l e c t o r ,   {   _ c a c h e :   { } ,   x p a t h :   {   d e s c e n d a n t :   " / / * " ,   c h i l d :   " / * " ,   a d j a c e n t :   " / f o l l o w i n g - s i b l i n g : : * [ 1 ] " ,   l a t e r S i b l i n g :   ' / f o l l o w i n g - s i b l i n g : : * ' ,   t a g N a m e :   f u n c t i o n ( m )   {   i f   ( m [ 1 ]   = =   ' * ' )   r e t u r n   ' ' ;   r e t u r n   " [ l o c a l - n a m e ( ) = ' "   +   m [ 1 ] . t o L o w e r C a s e ( )   +   " '   o r   l o c a l - n a m e ( ) = ' "   +   m [ 1 ] . t o U p p e r C a s e ( )   +   " ' ] "   } ,   c l a s s N a m e :   " [ c o n t a i n s ( c o n c a t ( '   ' ,   @ c l a s s ,   '   ' ) ,   '   # { 1 }   ' ) ] " ,   i d :   " [ @ i d = ' # { 1 } ' ] " ,   a t t r P r e s e n c e :   " [ @ # { 1 } ] " ,   a t t r :   f u n c t i o n ( m )   {   m [ 3 ]   =   m [ 5 ]   | |   m [ 6 ] ;   r e t u r n   n e w   T e m p l a t e ( S e l e c t o r . x p a t h . o p e r a t o r s [ m [ 2 ] ] ) . e v a l u a t e ( m )   } ,   p s e u d o :   f u n c t i o n ( m )   {   v a r   h   =   S e l e c t o r . x p a t h . p s e u d o s [ m [ 1 ] ] ;   i f   ( ! h )   r e t u r n   ' ' ;   i f   ( t y p e o f   h   = = =   ' f u n c t i o n ' )   r e t u r n   h ( m ) ;   r e t u r n   n e w   T e m p l a t e ( S e l e c t o r . x p a t h . p s e u d o s [ m [ 1 ] ] ) . e v a l u a t e ( m )   } ,   o p e r a t o r s :   {   ' = ' :   " [ @ # { 1 } = ' # { 3 } ' ] " ,   ' ! = ' :   " [ @ # { 1 } ! = ' # { 3 } ' ] " ,   ' ^ = ' :   " [ s t a r t s - w i t h ( @ # { 1 } ,   ' # { 3 } ' ) ] " ,   ' $ = ' :   " [ s u b s t r i n g ( @ # { 1 } ,   ( s t r i n g - l e n g t h ( @ # { 1 } )   -   s t r i n g - l e n g t h ( ' # { 3 } ' )   +   1 ) ) = ' # { 3 } ' ] " ,   ' * = ' :   " [ c o n t a i n s ( @ # { 1 } ,   ' # { 3 } ' ) ] " ,   ' ~ = ' :   " [ c o n t a i n s ( c o n c a t ( '   ' ,   @ # { 1 } ,   '   ' ) ,   '   # { 3 }   ' ) ] " ,   ' | = ' :   " [ c o n t a i n s ( c o n c a t ( ' - ' ,   @ # { 1 } ,   ' - ' ) ,   ' - # { 3 } - ' ) ] "   } ,   p s e u d o s :   {   ' f i r s t - c h i l d ' :   ' [ n o t ( p r e c e d i n g - s i b l i n g : : * ) ] ' ,   ' l a s t - c h i l d ' :   ' [ n o t ( f o l l o w i n g - s i b l i n g : : * ) ] ' ,   ' o n l y - c h i l d ' :   ' [ n o t ( p r e c e d i n g - s i b l i n g : : *   o r   f o l l o w i n g - s i b l i n g : : * ) ] ' ,   ' e m p t y ' :   " [ c o u n t ( * )   =   0   a n d   ( c o u n t ( t e x t ( ) )   =   0   o r   t r a n s l a t e ( t e x t ( ) ,   '   \ t \ r \ n ' ,   ' ' )   =   ' ' ) ] " ,   ' c h e c k e d ' :   " [ @ c h e c k e d ] " ,   ' d i s a b l e d ' :   " [ @ d i s a b l e d ] " ,   ' e n a b l e d ' :   " [ n o t ( @ d i s a b l e d ) ] " ,   ' n o t ' :   f u n c t i o n ( m )   {   v a r   e   =   m [ 6 ] ,   p   =   S e l e c t o r . p a t t e r n s ,   x   =   S e l e c t o r . x p a t h ,   l e ,   m ,   v ;   v a r   a   =   [ ] ;   w h i l e   ( e   & &   l e   ! =   e   & &   ( / \ S / ) . t e s t ( e ) )   {   l e   =   e ;   f o r   ( v a r   i   i n   p )   {   i f   ( m   =   e . m a t c h ( p [ i ] ) )   {   v   =   t y p e o f   x [ i ]   = =   ' f u n c t i o n '   ?   x [ i ] ( m )   :   n e w   T e m p l a t e ( x [ i ] ) . e v a l u a t e ( m ) ;   a . p u s h ( " ( "   +   v . s u b s t r i n g ( 1 ,   v . l e n g t h   -   1 )   +   " ) " ) ;   e   =   e . r e p l a c e ( m [ 0 ] ,   ' ' ) ;   b r e a k   }   }   }   r e t u r n   " [ n o t ( "   +   a . j o i n ( "   a n d   " )   +   " ) ] "   } ,   ' n t h - c h i l d ' :   f u n c t i o n ( m )   {   r e t u r n   S e l e c t o r . x p a t h . p s e u d o s . n t h ( " ( c o u n t ( . / p r e c e d i n g - s i b l i n g : : * )   +   1 )   " ,   m )   } ,   ' n t h - l a s t - c h i l d ' :   f u n c t i o n ( m )   {   r e t u r n   S e l e c t o r . x p a t h . p s e u d o s . n t h ( " ( c o u n t ( . / f o l l o w i n g - s i b l i n g : : * )   +   1 )   " ,   m )   } ,   ' n t h - o f - t y p e ' :   f u n c t i o n ( m )   {   r e t u r n   S e l e c t o r . x p a t h . p s e u d o s . n t h ( " p o s i t i o n ( )   " ,   m )   } ,   ' n t h - l a s t - o f - t y p e ' :   f u n c t i o n ( m )   {   r e t u r n   S e l e c t o r . x p a t h . p s e u d o s . n t h ( " ( l a s t ( )   +   1   -   p o s i t i o n ( ) )   " ,   m )   } ,   ' f i r s t - o f - t y p e ' :   f u n c t i o n ( m )   {   m [ 6 ]   =   " 1 " ;   r e t u r n   S e l e c t o r . x p a t h . p s e u d o s [ ' n t h - o f - t y p e ' ] ( m )   } ,   ' l a s t - o f - t y p e ' :   f u n c t i o n ( m )   {   m [ 6 ]   =   " 1 " ;   r e t u r n   S e l e c t o r . x p a t h . p s e u d o s [ ' n t h - l a s t - o f - t y p e ' ] ( m )   } ,   ' o n l y - o f - t y p e ' :   f u n c t i o n ( m )   {   v a r   p   =   S e l e c t o r . x p a t h . p s e u d o s ;   r e t u r n   p [ ' f i r s t - o f - t y p e ' ] ( m )   +   p [ ' l a s t - o f - t y p e ' ] ( m )   } ,   n t h :   f u n c t i o n ( c ,   m )   {   v a r   d ,   f o r m u l a   =   m [ 6 ] ,   p r e d i c a t e ;   i f   ( f o r m u l a   = =   ' e v e n ' )   f o r m u l a   =   ' 2 n + 0 ' ;   i f   ( f o r m u l a   = =   ' o d d ' )   f o r m u l a   =   ' 2 n + 1 ' ;   i f   ( d   =   f o r m u l a . m a t c h ( / ^ ( \ d + ) $ / ) )   r e t u r n   ' [ '   +   c   +   " =   "   +   d [ 1 ]   +   ' ] ' ;   i f   ( d   =   f o r m u l a . m a t c h ( / ^ ( - ? \ d * ) ? n ( ( [ + - ] ) ( \ d + ) ) ? / ) )   {   i f   ( d [ 1 ]   = =   " - " )   d [ 1 ]   =   - 1 ;   v a r   a   =   d [ 1 ]   ?   N u m b e r ( d [ 1 ] )   :   1 ;   v a r   b   =   d [ 2 ]   ?   N u m b e r ( d [ 2 ] )   :   0 ;   p r e d i c a t e   =   " [ ( ( # { f r a g m e n t }   -   # { b } )   m o d   # { a }   =   0 )   a n d   "   +   " ( ( # { f r a g m e n t }   -   # { b } )   d i v   # { a }   > =   0 ) ] " ;   r e t u r n   n e w   T e m p l a t e ( p r e d i c a t e ) . e v a l u a t e ( {   f r a g m e n t :   c ,   a :   a ,   b :   b   } )   }   }   }   } ,   c r i t e r i a :   {   t a g N a m e :   ' n   =   h . t a g N a m e ( n ,   r ,   " # { 1 } " ,   c ) ;     c   =   f a l s e ; ' ,   c l a s s N a m e :   ' n   =   h . c l a s s N a m e ( n ,   r ,   " # { 1 } " ,   c ) ;   c   =   f a l s e ; ' ,   i d :   ' n   =   h . i d ( n ,   r ,   " # { 1 } " ,   c ) ;         c   =   f a l s e ; ' ,   a t t r P r e s e n c e :   ' n   =   h . a t t r P r e s e n c e ( n ,   r ,   " # { 1 } " ) ;   c   =   f a l s e ; ' ,   a t t r :   f u n c t i o n ( m )   {   m [ 3 ]   =   ( m [ 5 ]   | |   m [ 6 ] ) ;   r e t u r n   n e w   T e m p l a t e ( ' n   =   h . a t t r ( n ,   r ,   " # { 1 } " ,   " # { 3 } " ,   " # { 2 } " ) ;   c   =   f a l s e ; ' ) . e v a l u a t e ( m )   } ,   p s e u d o :   f u n c t i o n ( m )   {   i f   ( m [ 6 ] )   m [ 6 ]   =   m [ 6 ] . r e p l a c e ( / " / g ,   ' \ \ " ' ) ;   r e t u r n   n e w   T e m p l a t e ( ' n   =   h . p s e u d o ( n ,   " # { 1 } " ,   " # { 6 } " ,   r ,   c ) ;   c   =   f a l s e ; ' ) . e v a l u a t e ( m )   } ,   d e s c e n d a n t :   ' c   =   " d e s c e n d a n t " ; ' ,   c h i l d :   ' c   =   " c h i l d " ; ' ,   a d j a c e n t :   ' c   =   " a d j a c e n t " ; ' ,   l a t e r S i b l i n g :   ' c   =   " l a t e r S i b l i n g " ; '   } ,   p a t t e r n s :   {   l a t e r S i b l i n g :   n e w   R e g E x p ( ' ^ \ \ s '   +   ' * '   +   ' ~ \ \ s * ' ) ,   c h i l d :   n e w   R e g E x p ( ' ^ \ \ s '   +   ' * '   +   ' > \ \ s * ' ) ,   a d j a c e n t :   n e w   R e g E x p ( ' ^ \ \ s '   +   ' * '   +   ' \ \ + \ \ s * ' ) ,   d e s c e n d a n t :   / ^ \ s / ,   t a g N a m e :   n e w   R e g E x p ( ' ^ \ \ s * '   +   ' ( \ \ '   +   ' * | [ \ \ w \ \ - ] + ) ( \ \ b | $ ) ? ' ) ,   i d :   n e w   R e g E x p ( ' ^ # ( [ \ \ w \ \ - \ \ '   +   ' * ] + ) ( \ \ b | $ ) ' ) ,   c l a s s N a m e :   n e w   R e g E x p ( ' ^ \ \ . ( [ \ \ w \ \ - \ \ '   +   ' * ] + ) ( \ \ b | $ ) ' ) ,   p s e u d o :   n e w   R e g E x p ( ' ^ : ( ( f i r s t | l a s t | n t h | n t h - l a s t | o n l y ) ( - c h i l d | - o f - t y p e ) | e m p t y | c h e c k e d | ( e n | d i s ) a b l e d | n o t ) ( \ \ ( ( . * ? ) \ \ ) ) ? ( \ \ b | $ | \ \ s | | ( ? = : ) ) ' ) ,   a t t r P r e s e n c e :   n e w   R e g E x p ( ' ^ \ \ [ ( [ \ \ w ] + ) \ \ ] ' ) ,   a t t r :   n e w   R e g E x p ( ' \ \ [ ( ( ? : [ \ \ w - ] * : ) ? [ \ \ w - ] + ) \ \ s * ( ? : ( [ ! ^ $ * ~ | ] ? = ) \ \ s * ( ( [ \ ' " ] ) ( [ ^ \ \ ] ] * ? ) \ \ 4 | ( [ ^ \ ' " ] [ ^ \ \ ] ] * ? ) ) ) ? \ \ ] ' )   } ,   h a n d l e r s :   {   c o n c a t :   f u n c t i o n ( a ,   b )   {   f o r   ( v a r   i   =   0 ,   n o d e ;   n o d e   =   b [ i ] ;   i + + )   a . p u s h ( n o d e ) ;   r e t u r n   a   } ,   m a r k :   f u n c t i o n ( a )   {   f o r   ( v a r   i   =   0 ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   n o d e . _ c o u n t e d   =   t r u e ;   r e t u r n   a   } ,   u n m a r k :   f u n c t i o n ( a )   {   f o r   ( v a r   i   =   0 ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   n o d e . _ c o u n t e d   =   u n d e f i n e d ;   r e t u r n   a   } ,   i n d e x :   f u n c t i o n ( a ,   b ,   c )   {   a . _ c o u n t e d   =   t r u e ;   i f   ( b )   {   f o r   ( v a r   d   =   a . c h i l d N o d e s ,   i   =   d . l e n g t h   -   1 ,   j   =   1 ;   i   > =   0 ;   i - - )   {   n o d e   =   d [ i ] ;   i f   ( n o d e . n o d e T y p e   = =   1   & &   ( ! c   | |   n o d e . _ c o u n t e d ) )   n o d e . n o d e I n d e x   =   j + +   }   }   e l s e   {   f o r   ( v a r   i   =   0 ,   j   =   1 ,   d   =   a . c h i l d N o d e s ;   n o d e   =   d [ i ] ;   i + + )   i f   ( n o d e . n o d e T y p e   = =   1   & &   ( ! c   | |   n o d e . _ c o u n t e d ) )   n o d e . n o d e I n d e x   =   j + +   }   } ,   u n i q u e :   f u n c t i o n ( a )   {   i f   ( a . l e n g t h   = =   0 )   r e t u r n   a ;   v a r   b   =   [ ] ,   n ;   f o r   ( v a r   i   =   0 ,   l   =   a . l e n g t h ;   i   <   l ;   i + + )   i f   ( ! ( n   =   a [ i ] ) . _ c o u n t e d )   {   n . _ c o u n t e d   =   t r u e ;   b . p u s h ( E l e m e n t . e x t e n d ( n ) )   }   r e t u r n   S e l e c t o r . h a n d l e r s . u n m a r k ( b )   } ,   d e s c e n d a n t :   f u n c t i o n ( a )   {   v a r   h   =   S e l e c t o r . h a n d l e r s ;   f o r   ( v a r   i   =   0 ,   r e s u l t s   =   [ ] ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   h . c o n c a t ( r e s u l t s ,   n o d e . g e t E l e m e n t s B y T a g N a m e ( ' * ' ) ) ;   r e t u r n   r e s u l t s   } ,   c h i l d :   f u n c t i o n ( a )   {   v a r   h   =   S e l e c t o r . h a n d l e r s ;   f o r   ( v a r   i   =   0 ,   r e s u l t s   =   [ ] ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   {   f o r   ( v a r   j   =   0 ,   c h i l d r e n   =   [ ] ,   c h i l d ;   c h i l d   =   n o d e . c h i l d N o d e s [ j ] ;   j + + )   i f   ( c h i l d . n o d e T y p e   = =   1   & &   c h i l d . t a g N a m e   ! =   ' ! ' )   r e s u l t s . p u s h ( c h i l d )   }   r e t u r n   r e s u l t s   } ,   a d j a c e n t :   f u n c t i o n ( a )   {   f o r   ( v a r   i   =   0 ,   r e s u l t s   =   [ ] ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   {   v a r   b   =   t h i s . n e x t E l e m e n t S i b l i n g ( n o d e ) ;   i f   ( b )   r e s u l t s . p u s h ( b )   }   r e t u r n   r e s u l t s   } ,   l a t e r S i b l i n g :   f u n c t i o n ( a )   {   v a r   h   =   S e l e c t o r . h a n d l e r s ;   f o r   ( v a r   i   =   0 ,   r e s u l t s   =   [ ] ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   h . c o n c a t ( r e s u l t s ,   E l e m e n t . n e x t S i b l i n g s ( n o d e ) ) ;   r e t u r n   r e s u l t s   } ,   n e x t E l e m e n t S i b l i n g :   f u n c t i o n ( a )   {   w h i l e   ( a   =   a . n e x t S i b l i n g )   i f   ( a . n o d e T y p e   = =   1 )   r e t u r n   a ;   r e t u r n   n u l l   } ,   p r e v i o u s E l e m e n t S i b l i n g :   f u n c t i o n ( a )   {   w h i l e   ( a   =   a . p r e v i o u s S i b l i n g )   i f   ( a . n o d e T y p e   = =   1 )   r e t u r n   a ;   r e t u r n   n u l l   } ,   t a g N a m e :   f u n c t i o n ( a ,   b ,   c ,   d )   {   c   =   c . t o U p p e r C a s e ( ) ;   v a r   e   =   [ ] ,   h   =   S e l e c t o r . h a n d l e r s ;   i f   ( a )   {   i f   ( d )   {   i f   ( d   = =   " d e s c e n d a n t " )   {   f o r   ( v a r   i   =   0 ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   h . c o n c a t ( e ,   n o d e . g e t E l e m e n t s B y T a g N a m e ( c ) ) ;   r e t u r n   e   }   e l s e   a   =   t h i s [ d ] ( a ) ;   i f   ( c   = =   " * " )   r e t u r n   a   }   f o r   ( v a r   i   =   0 ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   i f   ( n o d e . t a g N a m e . t o U p p e r C a s e ( )   = =   c )   e . p u s h ( n o d e ) ;   r e t u r n   e   }   e l s e   r e t u r n   b . g e t E l e m e n t s B y T a g N a m e ( c )   } ,   i d :   f u n c t i o n ( a ,   b ,   c ,   d )   {   v a r   e   =   $ ( c ) ,   h   =   S e l e c t o r . h a n d l e r s ;   i f   ( ! a   & &   b   = =   d o c u m e n t )   r e t u r n   e   ?   [ e ]   :   [ ] ;   i f   ( a )   {   i f   ( d )   {   i f   ( d   = =   ' c h i l d ' )   {   f o r   ( v a r   i   =   0 ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   i f   ( e . p a r e n t N o d e   = =   n o d e )   r e t u r n   [ e ]   }   e l s e   i f   ( d   = =   ' d e s c e n d a n t ' )   {   f o r   ( v a r   i   =   0 ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   i f   ( E l e m e n t . d e s c e n d a n t O f ( e ,   n o d e ) )   r e t u r n   [ e ]   }   e l s e   i f   ( d   = =   ' a d j a c e n t ' )   {   f o r   ( v a r   i   =   0 ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   i f   ( S e l e c t o r . h a n d l e r s . p r e v i o u s E l e m e n t S i b l i n g ( e )   = =   n o d e )   r e t u r n   [ e ]   }   e l s e   a   =   h [ d ] ( a )   }   f o r   ( v a r   i   =   0 ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   i f   ( n o d e   = =   e )   r e t u r n   [ e ] ;   r e t u r n   [ ]   }   r e t u r n   ( e   & &   E l e m e n t . d e s c e n d a n t O f ( e ,   b ) )   ?   [ e ]   :   [ ]   } ,   c l a s s N a m e :   f u n c t i o n ( a ,   b ,   c ,   d )   {   i f   ( a   & &   d )   a   =   t h i s [ d ] ( a ) ;   r e t u r n   S e l e c t o r . h a n d l e r s . b y C l a s s N a m e ( a ,   b ,   c )   } ,   b y C l a s s N a m e :   f u n c t i o n ( a ,   b ,   c )   {   i f   ( ! a )   a   =   S e l e c t o r . h a n d l e r s . d e s c e n d a n t ( [ b ] ) ;   v a r   d   =   '   '   +   c   +   '   ' ;   f o r   ( v a r   i   =   0 ,   r e s u l t s   =   [ ] ,   n o d e ,   n o d e C l a s s N a m e ;   n o d e   =   a [ i ] ;   i + + )   {   n o d e C l a s s N a m e   =   n o d e . c l a s s N a m e ;   i f   ( n o d e C l a s s N a m e . l e n g t h   = =   0 )   c o n t i n u e ;   i f   ( n o d e C l a s s N a m e   = =   c   | |   ( '   '   +   n o d e C l a s s N a m e   +   '   ' ) . i n c l u d e ( d ) )   r e s u l t s . p u s h ( n o d e )   }   r e t u r n   r e s u l t s   } ,   a t t r P r e s e n c e :   f u n c t i o n ( a ,   b ,   c )   {   v a r   d   =   [ ] ;   f o r   ( v a r   i   =   0 ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   i f   ( E l e m e n t . h a s A t t r i b u t e ( n o d e ,   c ) )   d . p u s h ( n o d e ) ;   r e t u r n   d   } ,   a t t r :   f u n c t i o n ( a ,   b ,   c ,   d ,   e )   {   i f   ( ! a )   a   =   b . g e t E l e m e n t s B y T a g N a m e ( " * " ) ;   v a r   f   =   S e l e c t o r . o p e r a t o r s [ e ] ,   r e s u l t s   =   [ ] ;   f o r   ( v a r   i   =   0 ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   {   v a r   g   =   E l e m e n t . r e a d A t t r i b u t e ( n o d e ,   c ) ;   i f   ( g   = = =   n u l l )   c o n t i n u e ;   i f   ( f ( g ,   d ) )   r e s u l t s . p u s h ( n o d e )   }   r e t u r n   r e s u l t s   } ,   p s e u d o :   f u n c t i o n ( a ,   b ,   c ,   d ,   e )   {   i f   ( a   & &   e )   a   =   t h i s [ e ] ( a ) ;   i f   ( ! a )   a   =   d . g e t E l e m e n t s B y T a g N a m e ( " * " ) ;   r e t u r n   S e l e c t o r . p s e u d o s [ b ] ( a ,   c ,   d )   }   } ,   p s e u d o s :   {   ' f i r s t - c h i l d ' :   f u n c t i o n ( a ,   b ,   c )   {   f o r   ( v a r   i   =   0 ,   r e s u l t s   =   [ ] ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   {   i f   ( S e l e c t o r . h a n d l e r s . p r e v i o u s E l e m e n t S i b l i n g ( n o d e ) )   c o n t i n u e ;   r e s u l t s . p u s h ( n o d e )   }   r e t u r n   r e s u l t s   } ,   ' l a s t - c h i l d ' :   f u n c t i o n ( a ,   b ,   c )   {   f o r   ( v a r   i   =   0 ,   r e s u l t s   =   [ ] ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   {   i f   ( S e l e c t o r . h a n d l e r s . n e x t E l e m e n t S i b l i n g ( n o d e ) )   c o n t i n u e ;   r e s u l t s . p u s h ( n o d e )   }   r e t u r n   r e s u l t s   } ,   ' o n l y - c h i l d ' :   f u n c t i o n ( a ,   b ,   c )   {   v a r   h   =   S e l e c t o r . h a n d l e r s ;   f o r   ( v a r   i   =   0 ,   r e s u l t s   =   [ ] ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   i f   ( ! h . p r e v i o u s E l e m e n t S i b l i n g ( n o d e )   & &   ! h . n e x t E l e m e n t S i b l i n g ( n o d e ) )   r e s u l t s . p u s h ( n o d e ) ;   r e t u r n   r e s u l t s   } ,   ' n t h - c h i l d ' :   f u n c t i o n ( a ,   b ,   c )   {   r e t u r n   S e l e c t o r . p s e u d o s . n t h ( a ,   b ,   c )   } ,   ' n t h - l a s t - c h i l d ' :   f u n c t i o n ( a ,   b ,   c )   {   r e t u r n   S e l e c t o r . p s e u d o s . n t h ( a ,   b ,   c ,   t r u e )   } ,   ' n t h - o f - t y p e ' :   f u n c t i o n ( a ,   b ,   c )   {   r e t u r n   S e l e c t o r . p s e u d o s . n t h ( a ,   b ,   c ,   f a l s e ,   t r u e )   } ,   ' n t h - l a s t - o f - t y p e ' :   f u n c t i o n ( a ,   b ,   c )   {   r e t u r n   S e l e c t o r . p s e u d o s . n t h ( a ,   b ,   c ,   t r u e ,   t r u e )   } ,   ' f i r s t - o f - t y p e ' :   f u n c t i o n ( a ,   b ,   c )   {   r e t u r n   S e l e c t o r . p s e u d o s . n t h ( a ,   " 1 " ,   c ,   f a l s e ,   t r u e )   } ,   ' l a s t - o f - t y p e ' :   f u n c t i o n ( a ,   b ,   c )   {   r e t u r n   S e l e c t o r . p s e u d o s . n t h ( a ,   " 1 " ,   c ,   t r u e ,   t r u e )   } ,   ' o n l y - o f - t y p e ' :   f u n c t i o n ( a ,   b ,   c )   {   v a r   p   =   S e l e c t o r . p s e u d o s ;   r e t u r n   p [ ' l a s t - o f - t y p e ' ] ( p [ ' f i r s t - o f - t y p e ' ] ( a ,   b ,   c ) ,   b ,   c )   } ,   g e t I n d i c e s :   f u n c t i o n ( a ,   b ,   d )   {   i f   ( a   = =   0 )   r e t u r n   b   >   0   ?   [ b ]   :   [ ] ;   r e t u r n   $ R ( 1 ,   d ) . i n j e c t ( [ ] ,   f u n c t i o n ( c ,   i )   {   i f   ( 0   = =   ( i   -   b )   %   a   & &   ( i   -   b )   /   a   > =   0 )   c . p u s h ( i ) ;   r e t u r n   c   } )   } ,   n t h :   f u n c t i o n ( c ,   d ,   e ,   f ,   g )   {   i f   ( c . l e n g t h   = =   0 )   r e t u r n   [ ] ;   i f   ( d   = =   ' e v e n ' )   d   =   ' 2 n + 0 ' ;   i f   ( d   = =   ' o d d ' )   d   =   ' 2 n + 1 ' ;   v a r   h   =   S e l e c t o r . h a n d l e r s ,   r e s u l t s   =   [ ] ,   i n d e x e d   =   [ ] ,   m ;   h . m a r k ( c ) ;   f o r   ( v a r   i   =   0 ,   n o d e ;   n o d e   =   c [ i ] ;   i + + )   {   i f   ( ! n o d e . p a r e n t N o d e . _ c o u n t e d )   {   h . i n d e x ( n o d e . p a r e n t N o d e ,   f ,   g ) ;   i n d e x e d . p u s h ( n o d e . p a r e n t N o d e )   }   }   i f   ( d . m a t c h ( / ^ \ d + $ / ) )   {   d   =   N u m b e r ( d ) ;   f o r   ( v a r   i   =   0 ,   n o d e ;   n o d e   =   c [ i ] ;   i + + )   i f   ( n o d e . n o d e I n d e x   = =   d )   r e s u l t s . p u s h ( n o d e )   }   e l s e   i f   ( m   =   d . m a t c h ( / ^ ( - ? \ d * ) ? n ( ( [ + - ] ) ( \ d + ) ) ? / ) )   {   i f   ( m [ 1 ]   = =   " - " )   m [ 1 ]   =   - 1 ;   v a r   a   =   m [ 1 ]   ?   N u m b e r ( m [ 1 ] )   :   1 ;   v a r   b   =   m [ 2 ]   ?   N u m b e r ( m [ 2 ] )   :   0 ;   v a r   k   =   S e l e c t o r . p s e u d o s . g e t I n d i c e s ( a ,   b ,   c . l e n g t h ) ;   f o r   ( v a r   i   =   0 ,   n o d e ,   l   =   k . l e n g t h ;   n o d e   =   c [ i ] ;   i + + )   {   f o r   ( v a r   j   =   0 ;   j   <   l ;   j + + )   i f   ( n o d e . n o d e I n d e x   = =   k [ j ] )   r e s u l t s . p u s h ( n o d e )   }   }   h . u n m a r k ( c ) ;   h . u n m a r k ( i n d e x e d ) ;   r e t u r n   r e s u l t s   } ,   ' e m p t y ' :   f u n c t i o n ( a ,   b ,   c )   {   f o r   ( v a r   i   =   0 ,   r e s u l t s   =   [ ] ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   {   i f   ( n o d e . t a g N a m e   = =   ' ! '   | |   ( n o d e . f i r s t C h i l d   & &   ! n o d e . i n n e r H T M L . m a t c h ( / ^ \ s * $ / ) ) )   c o n t i n u e ;   r e s u l t s . p u s h ( n o d e )   }   r e t u r n   r e s u l t s   } ,   ' n o t ' :   f u n c t i o n ( a ,   b ,   c )   {   v a r   h   =   S e l e c t o r . h a n d l e r s ,   s e l e c t o r T y p e ,   m ;   v a r   d   =   n e w   S e l e c t o r ( b ) . f i n d E l e m e n t s ( c ) ;   h . m a r k ( d ) ;   f o r   ( v a r   i   =   0 ,   r e s u l t s   =   [ ] ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   i f   ( ! n o d e . _ c o u n t e d )   r e s u l t s . p u s h ( n o d e ) ;   h . u n m a r k ( d ) ;   r e t u r n   r e s u l t s   } ,   ' e n a b l e d ' :   f u n c t i o n ( a ,   b ,   c )   {   f o r   ( v a r   i   =   0 ,   r e s u l t s   =   [ ] ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   i f   ( ! n o d e . d i s a b l e d )   r e s u l t s . p u s h ( n o d e ) ;   r e t u r n   r e s u l t s   } ,   ' d i s a b l e d ' :   f u n c t i o n ( a ,   b ,   c )   {   f o r   ( v a r   i   =   0 ,   r e s u l t s   =   [ ] ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   i f   ( n o d e . d i s a b l e d )   r e s u l t s . p u s h ( n o d e ) ;   r e t u r n   r e s u l t s   } ,   ' c h e c k e d ' :   f u n c t i o n ( a ,   b ,   c )   {   f o r   ( v a r   i   =   0 ,   r e s u l t s   =   [ ] ,   n o d e ;   n o d e   =   a [ i ] ;   i + + )   i f   ( n o d e . c h e c k e d )   r e s u l t s . p u s h ( n o d e ) ;   r e t u r n   r e s u l t s   }   } ,   o p e r a t o r s :   {   ' = ' :   f u n c t i o n ( a ,   v )   {   r e t u r n   a   = =   v   } ,   ' ! = ' :   f u n c t i o n ( a ,   v )   {   r e t u r n   a   ! =   v   } ,   ' ^ = ' :   f u n c t i o n ( a ,   v )   {   r e t u r n   a . s t a r t s W i t h ( v )   } ,   ' $ = ' :   f u n c t i o n ( a ,   v )   {   r e t u r n   a . e n d s W i t h ( v )   } ,   ' * = ' :   f u n c t i o n ( a ,   v )   {   r e t u r n   a . i n c l u d e ( v )   } ,   ' ~ = ' :   f u n c t i o n ( a ,   v )   {   r e t u r n   ( '   '   +   a   +   '   ' ) . i n c l u d e ( '   '   +   v   +   '   ' )   } ,   ' | = ' :   f u n c t i o n ( a ,   v )   {   r e t u r n   ( ' - '   +   a . t o U p p e r C a s e ( )   +   ' - ' ) . i n c l u d e ( ' - '   +   v . t o U p p e r C a s e ( )   +   ' - ' )   }   } ,   m a t c h E l e m e n t s :   f u n c t i o n ( a ,   b )   {   v a r   c   =   n e w   S e l e c t o r ( b ) . f i n d E l e m e n t s ( ) ,   h   =   S e l e c t o r . h a n d l e r s ;   h . m a r k ( c ) ;   f o r   ( v a r   i   =   0 ,   r e s u l t s   =   [ ] ,   e l e m e n t ;   e l e m e n t   =   a [ i ] ;   i + + )   i f   ( e l e m e n t . _ c o u n t e d )   r e s u l t s . p u s h ( e l e m e n t ) ;   h . u n m a r k ( c ) ;   r e t u r n   r e s u l t s   } ,   f i n d E l e m e n t :   f u n c t i o n ( a ,   b ,   c )   {   i f   ( t y p e o f   b   = =   ' n u m b e r ' )   {   c   =   b ;   b   =   f a l s e   }   r e t u r n   S e l e c t o r . m a t c h E l e m e n t s ( a ,   b   | |   ' * ' ) [ c   | |   0 ]   } ,   f i n d C h i l d E l e m e n t s :   f u n c t i o n ( a ,   b )   {   v a r   c   =   b . j o i n ( ' , ' ) ,   b   =   [ ] ;   c . s c a n ( / ( ( [ \ w # : . ~ > + ( ) \ s - ] + | \ * | \ [ . * ? \ ] ) + ) \ s * ( , | $ ) / ,   f u n c t i o n ( m )   {   b . p u s h ( m [ 1 ] . s t r i p ( ) )   } ) ;   v a r   d   =   [ ] ,   h   =   S e l e c t o r . h a n d l e r s ;   f o r   ( v a r   i   =   0 ,   l   =   b . l e n g t h ,   s e l e c t o r ;   i   <   l ;   i + + )   {   s e l e c t o r   =   n e w   S e l e c t o r ( b [ i ] . s t r i p ( ) ) ;   h . c o n c a t ( d ,   s e l e c t o r . f i n d E l e m e n t s ( a ) )   }   r e t u r n   ( l   >   1 )   ?   h . u n i q u e ( d )   :   d   }   } ) ;   f u n c t i o n   $ $ ( )   {   r e t u r n   S e l e c t o r . f i n d C h i l d E l e m e n t s ( d o c u m e n t ,   $ A ( a r g u m e n t s ) )   }   v a r   F o r m   =   {   r e s e t :   f u n c t i o n ( a )   {   $ ( a ) . r e s e t ( ) ;   r e t u r n   a   } ,   s e r i a l i z e E l e m e n t s :   f u n c t i o n ( d ,   e )   {   v a r   f   =   d . i n j e c t ( { } ,   f u n c t i o n ( a ,   b )   {   i f   ( ! b . d i s a b l e d   & &   b . n a m e )   {   v a r   c   =   b . n a m e ,   v a l u e   =   $ ( b ) . g e t V a l u e ( ) ;   i f   ( v a l u e   ! =   n u l l )   {   i f   ( c   i n   a )   {   i f   ( a [ c ] . c o n s t r u c t o r   ! =   A r r a y )   a [ c ]   =   [ a [ c ] ] ;   a [ c ] . p u s h ( v a l u e )   }   e l s e   a [ c ]   =   v a l u e   }   }   r e t u r n   a   } ) ;   r e t u r n   e   ?   f   :   H a s h . t o Q u e r y S t r i n g ( f )   }   } ;   F o r m . M e t h o d s   =   {   s e r i a l i z e :   f u n c t i o n ( a ,   b )   {   r e t u r n   F o r m . s e r i a l i z e E l e m e n t s ( F o r m . g e t E l e m e n t s ( a ) ,   b )   } ,   g e t E l e m e n t s :   f u n c t i o n ( c )   {   r e t u r n   $ A ( $ ( c ) . g e t E l e m e n t s B y T a g N a m e ( ' * ' ) ) . i n j e c t ( [ ] ,   f u n c t i o n ( a ,   b )   {   i f   ( F o r m . E l e m e n t . S e r i a l i z e r s [ b . t a g N a m e . t o L o w e r C a s e ( ) ] )   a . p u s h ( E l e m e n t . e x t e n d ( b ) ) ;   r e t u r n   a   } )   } ,   g e t I n p u t s :   f u n c t i o n ( a ,   b ,   c )   {   a   =   $ ( a ) ;   v a r   d   =   a . g e t E l e m e n t s B y T a g N a m e ( ' i n p u t ' ) ;   i f   ( ! b   & &   ! c )   r e t u r n   $ A ( d ) . m a p ( E l e m e n t . e x t e n d ) ;   f o r   ( v a r   i   =   0 ,   m a t c h i n g I n p u t s   =   [ ] ,   l e n g t h   =   d . l e n g t h ;   i   <   l e n g t h ;   i + + )   {   v a r   e   =   d [ i ] ;   i f   ( ( b   & &   e . t y p e   ! =   b )   | |   ( c   & &   e . n a m e   ! =   c ) )   c o n t i n u e ;   m a t c h i n g I n p u t s . p u s h ( E l e m e n t . e x t e n d ( e ) )   }   r e t u r n   m a t c h i n g I n p u t s   } ,   d i s a b l e :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   F o r m . g e t E l e m e n t s ( a ) . i n v o k e ( ' d i s a b l e ' ) ;   r e t u r n   a   } ,   e n a b l e :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   F o r m . g e t E l e m e n t s ( a ) . i n v o k e ( ' e n a b l e ' ) ;   r e t u r n   a   } ,   f i n d F i r s t E l e m e n t :   f u n c t i o n ( b )   {   r e t u r n   $ ( b ) . g e t E l e m e n t s ( ) . f i n d ( f u n c t i o n ( a )   {   r e t u r n   a . t y p e   ! =   ' h i d d e n '   & &   ! a . d i s a b l e d   & &   [ ' i n p u t ' ,   ' s e l e c t ' ,   ' t e x t a r e a ' ] . i n c l u d e ( a . t a g N a m e . t o L o w e r C a s e ( ) )   } )   } ,   f o c u s F i r s t E l e m e n t :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   a . f i n d F i r s t E l e m e n t ( ) . a c t i v a t e ( ) ;   r e t u r n   a   } ,   r e q u e s t :   f u n c t i o n ( a ,   b )   {   a   =   $ ( a ) ,   b   =   O b j e c t . c l o n e ( b   | |   { } ) ;   v a r   c   =   b . p a r a m e t e r s ;   b . p a r a m e t e r s   =   a . s e r i a l i z e ( t r u e ) ;   i f   ( c )   {   i f   ( t y p e o f   c   = =   ' s t r i n g ' )   c   =   c . t o Q u e r y P a r a m s ( ) ;   O b j e c t . e x t e n d ( b . p a r a m e t e r s ,   c )   }   i f   ( a . h a s A t t r i b u t e ( ' m e t h o d ' )   & &   ! b . m e t h o d )   b . m e t h o d   =   a . m e t h o d ;   r e t u r n   n e w   A j a x . R e q u e s t ( a . r e a d A t t r i b u t e ( ' a c t i o n ' ) ,   b )   }   } ;   F o r m . E l e m e n t   =   {   f o c u s :   f u n c t i o n ( a )   {   $ ( a ) . f o c u s ( ) ;   r e t u r n   a   } ,   s e l e c t :   f u n c t i o n ( a )   {   $ ( a ) . s e l e c t ( ) ;   r e t u r n   a   }   } ;   F o r m . E l e m e n t . M e t h o d s   =   {   s e r i a l i z e :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   i f   ( ! a . d i s a b l e d   & &   a . n a m e )   {   v a r   b   =   a . g e t V a l u e ( ) ;   i f   ( b   ! =   u n d e f i n e d )   {   v a r   c   =   { } ;   c [ a . n a m e ]   =   b ;   r e t u r n   H a s h . t o Q u e r y S t r i n g ( c )   }   }   r e t u r n   ' '   } ,   g e t V a l u e :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   v a r   b   =   a . t a g N a m e . t o L o w e r C a s e ( ) ;   r e t u r n   F o r m . E l e m e n t . S e r i a l i z e r s [ b ] ( a )   } ,   c l e a r :   f u n c t i o n ( a )   {   $ ( a ) . v a l u e   =   ' ' ;   r e t u r n   a   } ,   p r e s e n t :   f u n c t i o n ( a )   {   r e t u r n   $ ( a ) . v a l u e   ! =   ' '   } ,   a c t i v a t e :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   t r y   {   a . f o c u s ( ) ;   i f   ( a . s e l e c t   & &   ( a . t a g N a m e . t o L o w e r C a s e ( )   ! =   ' i n p u t '   | |   ! [ ' b u t t o n ' ,   ' r e s e t ' ,   ' s u b m i t ' ] . i n c l u d e ( a . t y p e ) ) )   a . s e l e c t ( )   }   c a t c h   ( e )   {   }   r e t u r n   a   } ,   d i s a b l e :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   a . b l u r ( ) ;   a . d i s a b l e d   =   t r u e ;   r e t u r n   a   } ,   e n a b l e :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   a . d i s a b l e d   =   f a l s e ;   r e t u r n   a   }   } ;   v a r   F i e l d   =   F o r m . E l e m e n t ;   v a r   $ F   =   F o r m . E l e m e n t . M e t h o d s . g e t V a l u e ;   F o r m . E l e m e n t . S e r i a l i z e r s   =   {   i n p u t :   f u n c t i o n ( a )   {   s w i t c h   ( a . t y p e . t o L o w e r C a s e ( ) )   {   c a s e   ' c h e c k b o x ' :   c a s e   ' r a d i o ' :   r e t u r n   F o r m . E l e m e n t . S e r i a l i z e r s . i n p u t S e l e c t o r ( a ) ;   d e f a u l t :   r e t u r n   F o r m . E l e m e n t . S e r i a l i z e r s . t e x t a r e a ( a )   }   } ,   i n p u t S e l e c t o r :   f u n c t i o n ( a )   {   r e t u r n   a . c h e c k e d   ?   a . v a l u e   :   n u l l   } ,   t e x t a r e a :   f u n c t i o n ( a )   {   r e t u r n   a . v a l u e   } ,   s e l e c t :   f u n c t i o n ( a )   {   r e t u r n   t h i s [ a . t y p e   = =   ' s e l e c t - o n e '   ?   ' s e l e c t O n e '   :   ' s e l e c t M a n y ' ] ( a )   } ,   s e l e c t O n e :   f u n c t i o n ( a )   {   v a r   b   =   a . s e l e c t e d I n d e x ;   r e t u r n   b   > =   0   ?   t h i s . o p t i o n V a l u e ( a . o p t i o n s [ b ] )   :   n u l l   } ,   s e l e c t M a n y :   f u n c t i o n ( a )   {   v a r   b ,   l e n g t h   =   a . l e n g t h ;   i f   ( ! l e n g t h )   r e t u r n   n u l l ;   f o r   ( v a r   i   =   0 ,   b   =   [ ] ;   i   <   l e n g t h ;   i + + )   {   v a r   c   =   a . o p t i o n s [ i ] ;   i f   ( c . s e l e c t e d )   b . p u s h ( t h i s . o p t i o n V a l u e ( c ) )   }   r e t u r n   b   } ,   o p t i o n V a l u e :   f u n c t i o n ( a )   {   r e t u r n   E l e m e n t . e x t e n d ( a ) . h a s A t t r i b u t e ( ' v a l u e ' )   ?   a . v a l u e   :   a . t e x t   }   } ;   A b s t r a c t . T i m e d O b s e r v e r   =   f u n c t i o n ( )   {   } ;   A b s t r a c t . T i m e d O b s e r v e r . p r o t o t y p e   =   {   i n i t i a l i z e :   f u n c t i o n ( a ,   b ,   c )   {   t h i s . f r e q u e n c y   =   b ;   t h i s . e l e m e n t   =   $ ( a ) ;   t h i s . c a l l b a c k   =   c ;   t h i s . l a s t V a l u e   =   t h i s . g e t V a l u e ( ) ;   t h i s . r e g i s t e r C a l l b a c k ( )   } ,   r e g i s t e r C a l l b a c k :   f u n c t i o n ( )   {   s e t I n t e r v a l ( t h i s . o n T i m e r E v e n t . b i n d ( t h i s ) ,   t h i s . f r e q u e n c y   *   1 0 0 0 )   } ,   o n T i m e r E v e n t :   f u n c t i o n ( )   {   v a r   a   =   t h i s . g e t V a l u e ( ) ;   v a r   b   =   ( ' s t r i n g '   = =   t y p e o f   t h i s . l a s t V a l u e   & &   ' s t r i n g '   = =   t y p e o f   a   ?   t h i s . l a s t V a l u e   ! =   a   :   S t r i n g ( t h i s . l a s t V a l u e )   ! =   S t r i n g ( a ) ) ;   i f   ( b )   {   t h i s . c a l l b a c k ( t h i s . e l e m e n t ,   a ) ;   t h i s . l a s t V a l u e   =   a   }   }   } ;   F o r m . E l e m e n t . O b s e r v e r   =   C l a s s . c r e a t e ( ) ;   F o r m . E l e m e n t . O b s e r v e r . p r o t o t y p e   =   O b j e c t . e x t e n d ( n e w   A b s t r a c t . T i m e d O b s e r v e r ( ) ,   {   g e t V a l u e :   f u n c t i o n ( )   {   r e t u r n   F o r m . E l e m e n t . g e t V a l u e ( t h i s . e l e m e n t )   }   } ) ;   F o r m . O b s e r v e r   =   C l a s s . c r e a t e ( ) ;   F o r m . O b s e r v e r . p r o t o t y p e   =   O b j e c t . e x t e n d ( n e w   A b s t r a c t . T i m e d O b s e r v e r ( ) ,   {   g e t V a l u e :   f u n c t i o n ( )   {   r e t u r n   F o r m . s e r i a l i z e ( t h i s . e l e m e n t )   }   } ) ;   A b s t r a c t . E v e n t O b s e r v e r   =   f u n c t i o n ( )   {   } ;   A b s t r a c t . E v e n t O b s e r v e r . p r o t o t y p e   =   {   i n i t i a l i z e :   f u n c t i o n ( a ,   b )   {   t h i s . e l e m e n t   =   $ ( a ) ;   t h i s . c a l l b a c k   =   b ;   t h i s . l a s t V a l u e   =   t h i s . g e t V a l u e ( ) ;   i f   ( t h i s . e l e m e n t . t a g N a m e . t o L o w e r C a s e ( )   = =   ' f o r m ' )   t h i s . r e g i s t e r F o r m C a l l b a c k s ( ) ;   e l s e   t h i s . r e g i s t e r C a l l b a c k ( t h i s . e l e m e n t )   } ,   o n E l e m e n t E v e n t :   f u n c t i o n ( )   {   v a r   a   =   t h i s . g e t V a l u e ( ) ;   i f   ( t h i s . l a s t V a l u e   ! =   a )   {   t h i s . c a l l b a c k ( t h i s . e l e m e n t ,   a ) ;   t h i s . l a s t V a l u e   =   a   }   } ,   r e g i s t e r F o r m C a l l b a c k s :   f u n c t i o n ( )   {   F o r m . g e t E l e m e n t s ( t h i s . e l e m e n t ) . e a c h ( t h i s . r e g i s t e r C a l l b a c k . b i n d ( t h i s ) )   } ,   r e g i s t e r C a l l b a c k :   f u n c t i o n ( a )   {   i f   ( a . t y p e )   {   s w i t c h   ( a . t y p e . t o L o w e r C a s e ( ) )   {   c a s e   ' c h e c k b o x ' :   c a s e   ' r a d i o ' :   E v e n t . o b s e r v e ( a ,   ' c l i c k ' ,   t h i s . o n E l e m e n t E v e n t . b i n d ( t h i s ) ) ;   b r e a k ;   d e f a u l t :   E v e n t . o b s e r v e ( a ,   ' c h a n g e ' ,   t h i s . o n E l e m e n t E v e n t . b i n d ( t h i s ) ) ;   b r e a k   }   }   }   } ;   F o r m . E l e m e n t . E v e n t O b s e r v e r   =   C l a s s . c r e a t e ( ) ;   F o r m . E l e m e n t . E v e n t O b s e r v e r . p r o t o t y p e   =   O b j e c t . e x t e n d ( n e w   A b s t r a c t . E v e n t O b s e r v e r ( ) ,   {   g e t V a l u e :   f u n c t i o n ( )   {   r e t u r n   F o r m . E l e m e n t . g e t V a l u e ( t h i s . e l e m e n t )   }   } ) ;   F o r m . E v e n t O b s e r v e r   =   C l a s s . c r e a t e ( ) ;   F o r m . E v e n t O b s e r v e r . p r o t o t y p e   =   O b j e c t . e x t e n d ( n e w   A b s t r a c t . E v e n t O b s e r v e r ( ) ,   {   g e t V a l u e :   f u n c t i o n ( )   {   r e t u r n   F o r m . s e r i a l i z e ( t h i s . e l e m e n t )   }   } ) ;   i f   ( ! w i n d o w . E v e n t )   {   v a r   E v e n t   =   n e w   O b j e c t ( )   }   O b j e c t . e x t e n d ( E v e n t ,   {   K E Y _ B A C K S P A C E :   8 ,   K E Y _ T A B :   9 ,   K E Y _ R E T U R N :   1 3 ,   K E Y _ E S C :   2 7 ,   K E Y _ L E F T :   3 7 ,   K E Y _ U P :   3 8 ,   K E Y _ R I G H T :   3 9 ,   K E Y _ D O W N :   4 0 ,   K E Y _ D E L E T E :   4 6 ,   K E Y _ H O M E :   3 6 ,   K E Y _ E N D :   3 5 ,   K E Y _ P A G E U P :   3 3 ,   K E Y _ P A G E D O W N :   3 4 ,   e l e m e n t :   f u n c t i o n ( a )   {   r e t u r n   $ ( a . t a r g e t   | |   a . s r c E l e m e n t )   } ,   i s L e f t C l i c k :   f u n c t i o n ( a )   {   r e t u r n   ( ( ( a . w h i c h )   & &   ( a . w h i c h   = =   1 ) )   | |   ( ( a . b u t t o n )   & &   ( a . b u t t o n   = =   1 ) ) )   } ,   p o i n t e r X :   f u n c t i o n ( a )   {   r e t u r n   a . p a g e X   | |   ( a . c l i e n t X   +   ( d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l L e f t   | |   d o c u m e n t . b o d y . s c r o l l L e f t ) )   } ,   p o i n t e r Y :   f u n c t i o n ( a )   {   r e t u r n   a . p a g e Y   | |   ( a . c l i e n t Y   +   ( d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p   | |   d o c u m e n t . b o d y . s c r o l l T o p ) )   } ,   s t o p :   f u n c t i o n ( a )   {   i f   ( a . p r e v e n t D e f a u l t )   {   a . p r e v e n t D e f a u l t ( ) ;   a . s t o p P r o p a g a t i o n ( )   }   e l s e   {   a . r e t u r n V a l u e   =   f a l s e ;   a . c a n c e l B u b b l e   =   t r u e   }   } ,   f i n d E l e m e n t :   f u n c t i o n ( a ,   b )   {   v a r   c   =   E v e n t . e l e m e n t ( a ) ;   w h i l e   ( c . p a r e n t N o d e   & &   ( ! c . t a g N a m e   | |   ( c . t a g N a m e . t o U p p e r C a s e ( )   ! =   b . t o U p p e r C a s e ( ) ) ) )   c   =   c . p a r e n t N o d e ;   r e t u r n   c   } ,   o b s e r v e r s :   f a l s e ,   _ o b s e r v e A n d C a c h e :   f u n c t i o n ( a ,   b ,   c ,   d )   {   i f   ( ! t h i s . o b s e r v e r s )   t h i s . o b s e r v e r s   =   [ ] ;   i f   ( a . a d d E v e n t L i s t e n e r )   {   t h i s . o b s e r v e r s . p u s h ( [ a ,   b ,   c ,   d ] ) ;   a . a d d E v e n t L i s t e n e r ( b ,   c ,   d )   }   e l s e   i f   ( a . a t t a c h E v e n t )   {   t h i s . o b s e r v e r s . p u s h ( [ a ,   b ,   c ,   d ] ) ;   a . a t t a c h E v e n t ( ' o n '   +   b ,   c )   }   } ,   u n l o a d C a c h e :   f u n c t i o n ( )   {   i f   ( ! E v e n t . o b s e r v e r s )   r e t u r n ;   f o r   ( v a r   i   =   0 ,   l e n g t h   =   E v e n t . o b s e r v e r s . l e n g t h ;   i   <   l e n g t h ;   i + + )   {   E v e n t . s t o p O b s e r v i n g . a p p l y ( t h i s ,   E v e n t . o b s e r v e r s [ i ] ) ;   E v e n t . o b s e r v e r s [ i ] [ 0 ]   =   n u l l   }   E v e n t . o b s e r v e r s   =   f a l s e   } ,   o b s e r v e :   f u n c t i o n ( a ,   b ,   c ,   d )   {   a   =   $ ( a ) ;   d   =   d   | |   f a l s e ;   i f   ( b   = =   ' k e y p r e s s '   & &   ( P r o t o t y p e . B r o w s e r . W e b K i t   | |   a . a t t a c h E v e n t ) )   b   =   ' k e y d o w n ' ;   E v e n t . _ o b s e r v e A n d C a c h e ( a ,   b ,   c ,   d )   } ,   s t o p O b s e r v i n g :   f u n c t i o n ( a ,   b ,   c ,   d )   {   a   =   $ ( a ) ;   d   =   d   | |   f a l s e ;   i f   ( b   = =   ' k e y p r e s s '   & &   ( P r o t o t y p e . B r o w s e r . W e b K i t   | |   a . a t t a c h E v e n t ) )   b   =   ' k e y d o w n ' ;   i f   ( a . r e m o v e E v e n t L i s t e n e r )   {   a . r e m o v e E v e n t L i s t e n e r ( b ,   c ,   d )   }   e l s e   i f   ( a . d e t a c h E v e n t )   {   t r y   {   a . d e t a c h E v e n t ( ' o n '   +   b ,   c )   }   c a t c h   ( e )   {   }   }   }   } ) ;   i f   ( P r o t o t y p e . B r o w s e r . I E )   E v e n t . o b s e r v e ( w i n d o w ,   ' u n l o a d ' ,   E v e n t . u n l o a d C a c h e ,   f a l s e ) ;   v a r   P o s i t i o n   =   {   i n c l u d e S c r o l l O f f s e t s :   f a l s e ,   p r e p a r e :   f u n c t i o n ( )   {   t h i s . d e l t a X   =   w i n d o w . p a g e X O f f s e t   | |   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l L e f t   | |   d o c u m e n t . b o d y . s c r o l l L e f t   | |   0 ;   t h i s . d e l t a Y   =   w i n d o w . p a g e Y O f f s e t   | |   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p   | |   d o c u m e n t . b o d y . s c r o l l T o p   | |   0   } ,   r e a l O f f s e t :   f u n c t i o n ( a )   {   v a r   b   =   0 ,   v a l u e L   =   0 ;   d o   {   b   + =   a . s c r o l l T o p   | |   0 ;   v a l u e L   + =   a . s c r o l l L e f t   | |   0 ;   a   =   a . p a r e n t N o d e   }   w h i l e   ( a ) ;   r e t u r n   [ v a l u e L ,   b ]   } ,   c u m u l a t i v e O f f s e t :   f u n c t i o n ( a )   {   v a r   b   =   0 ,   v a l u e L   =   0 ;   d o   {   b   + =   a . o f f s e t T o p   | |   0 ;   v a l u e L   + =   a . o f f s e t L e f t   | |   0 ;   a   =   a . o f f s e t P a r e n t   }   w h i l e   ( a ) ;   r e t u r n   [ v a l u e L ,   b ]   } ,   p o s i t i o n e d O f f s e t :   f u n c t i o n ( a )   {   v a r   b   =   0 ,   v a l u e L   =   0 ;   d o   {   b   + =   a . o f f s e t T o p   | |   0 ;   v a l u e L   + =   a . o f f s e t L e f t   | |   0 ;   a   =   a . o f f s e t P a r e n t ;   i f   ( a )   {   i f   ( a . t a g N a m e   = =   ' B O D Y ' )   b r e a k ;   v a r   p   =   E l e m e n t . g e t S t y l e ( a ,   ' p o s i t i o n ' ) ;   i f   ( p   = =   ' r e l a t i v e '   | |   p   = =   ' a b s o l u t e ' )   b r e a k   }   }   w h i l e   ( a ) ;   r e t u r n   [ v a l u e L ,   b ]   } ,   o f f s e t P a r e n t :   f u n c t i o n ( a )   {   i f   ( a . o f f s e t P a r e n t )   r e t u r n   a . o f f s e t P a r e n t ;   i f   ( a   = =   d o c u m e n t . b o d y )   r e t u r n   a ;   w h i l e   ( ( a   =   a . p a r e n t N o d e )   & &   a   ! =   d o c u m e n t . b o d y )   i f   ( E l e m e n t . g e t S t y l e ( a ,   ' p o s i t i o n ' )   ! =   ' s t a t i c ' )   r e t u r n   a ;   r e t u r n   d o c u m e n t . b o d y   } ,   w i t h i n :   f u n c t i o n ( a ,   x ,   y )   {   i f   ( t h i s . i n c l u d e S c r o l l O f f s e t s )   r e t u r n   t h i s . w i t h i n I n c l u d i n g S c r o l l o f f s e t s ( a ,   x ,   y ) ;   t h i s . x c o m p   =   x ;   t h i s . y c o m p   =   y ;   t h i s . o f f s e t   =   t h i s . c u m u l a t i v e O f f s e t ( a ) ;   r e t u r n   ( y   > =   t h i s . o f f s e t [ 1 ]   & &   y   <   t h i s . o f f s e t [ 1 ]   +   a . o f f s e t H e i g h t   & &   x   > =   t h i s . o f f s e t [ 0 ]   & &   x   <   t h i s . o f f s e t [ 0 ]   +   a . o f f s e t W i d t h )   } ,   w i t h i n I n c l u d i n g S c r o l l o f f s e t s :   f u n c t i o n ( a ,   x ,   y )   {   v a r   b   =   t h i s . r e a l O f f s e t ( a ) ;   t h i s . x c o m p   =   x   +   b [ 0 ]   -   t h i s . d e l t a X ;   t h i s . y c o m p   =   y   +   b [ 1 ]   -   t h i s . d e l t a Y ;   t h i s . o f f s e t   =   t h i s . c u m u l a t i v e O f f s e t ( a ) ;   r e t u r n   ( t h i s . y c o m p   > =   t h i s . o f f s e t [ 1 ]   & &   t h i s . y c o m p   <   t h i s . o f f s e t [ 1 ]   +   a . o f f s e t H e i g h t   & &   t h i s . x c o m p   > =   t h i s . o f f s e t [ 0 ]   & &   t h i s . x c o m p   <   t h i s . o f f s e t [ 0 ]   +   a . o f f s e t W i d t h )   } ,   o v e r l a p :   f u n c t i o n ( a ,   b )   {   i f   ( ! a )   r e t u r n   0 ;   i f   ( a   = =   ' v e r t i c a l ' )   r e t u r n   ( ( t h i s . o f f s e t [ 1 ]   +   b . o f f s e t H e i g h t )   -   t h i s . y c o m p )   /   b . o f f s e t H e i g h t ;   i f   ( a   = =   ' h o r i z o n t a l ' )   r e t u r n   ( ( t h i s . o f f s e t [ 0 ]   +   b . o f f s e t W i d t h )   -   t h i s . x c o m p )   /   b . o f f s e t W i d t h   } ,   p a g e :   f u n c t i o n ( a )   {   v a r   b   =   0 ,   v a l u e L   =   0 ;   v a r   c   =   a ;   d o   {   b   + =   c . o f f s e t T o p   | |   0 ;   v a l u e L   + =   c . o f f s e t L e f t   | |   0 ;   i f   ( c . o f f s e t P a r e n t   = =   d o c u m e n t . b o d y )   i f   ( E l e m e n t . g e t S t y l e ( c ,   ' p o s i t i o n ' )   = =   ' a b s o l u t e ' )   b r e a k   }   w h i l e   ( c   =   c . o f f s e t P a r e n t ) ;   c   =   a ;   d o   {   i f   ( ! w i n d o w . o p e r a   | |   c . t a g N a m e   = =   ' B O D Y ' )   {   b   - =   c . s c r o l l T o p   | |   0 ;   v a l u e L   - =   c . s c r o l l L e f t   | |   0   }   }   w h i l e   ( c   =   c . p a r e n t N o d e ) ;   r e t u r n   [ v a l u e L ,   b ]   } ,   c l o n e :   f u n c t i o n ( a ,   b )   {   v a r   c   =   O b j e c t . e x t e n d ( {   s e t L e f t :   t r u e ,   s e t T o p :   t r u e ,   s e t W i d t h :   t r u e ,   s e t H e i g h t :   t r u e ,   o f f s e t T o p :   0 ,   o f f s e t L e f t :   0   } ,   a r g u m e n t s [ 2 ]   | |   { } ) ;   a   =   $ ( a ) ;   v a r   p   =   P o s i t i o n . p a g e ( a ) ;   b   =   $ ( b ) ;   v a r   d   =   [ 0 ,   0 ] ;   v a r   e   =   n u l l ;   i f   ( E l e m e n t . g e t S t y l e ( b ,   ' p o s i t i o n ' )   = =   ' a b s o l u t e ' )   {   e   =   P o s i t i o n . o f f s e t P a r e n t ( b ) ;   d   =   P o s i t i o n . p a g e ( e )   }   i f   ( e   = =   d o c u m e n t . b o d y )   {   d [ 0 ]   - =   d o c u m e n t . b o d y . o f f s e t L e f t ;   d [ 1 ]   - =   d o c u m e n t . b o d y . o f f s e t T o p   }   i f   ( c . s e t L e f t )   b . s t y l e . l e f t   =   ( p [ 0 ]   -   d [ 0 ]   +   c . o f f s e t L e f t )   +   ' p x ' ;   i f   ( c . s e t T o p )   b . s t y l e . t o p   =   ( p [ 1 ]   -   d [ 1 ]   +   c . o f f s e t T o p )   +   ' p x ' ;   i f   ( c . s e t W i d t h )   b . s t y l e . w i d t h   =   a . o f f s e t W i d t h   +   ' p x ' ;   i f   ( c . s e t H e i g h t )   b . s t y l e . h e i g h t   =   a . o f f s e t H e i g h t   +   ' p x '   } ,   a b s o l u t i z e :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   i f   ( a . s t y l e . p o s i t i o n   = =   ' a b s o l u t e ' )   r e t u r n ;   P o s i t i o n . p r e p a r e ( ) ;   v a r   b   =   P o s i t i o n . p o s i t i o n e d O f f s e t ( a ) ;   v a r   c   =   b [ 1 ] ;   v a r   d   =   b [ 0 ] ;   v a r   e   =   a . c l i e n t W i d t h ;   v a r   f   =   a . c l i e n t H e i g h t ;   a . _ o r i g i n a l L e f t   =   d   -   p a r s e F l o a t ( a . s t y l e . l e f t   | |   0 ) ;   a . _ o r i g i n a l T o p   =   c   -   p a r s e F l o a t ( a . s t y l e . t o p   | |   0 ) ;   a . _ o r i g i n a l W i d t h   =   a . s t y l e . w i d t h ;   a . _ o r i g i n a l H e i g h t   =   a . s t y l e . h e i g h t ;   a . s t y l e . p o s i t i o n   =   ' a b s o l u t e ' ;   a . s t y l e . t o p   =   c   +   ' p x ' ;   a . s t y l e . l e f t   =   d   +   ' p x ' ;   a . s t y l e . w i d t h   =   e   +   ' p x ' ;   a . s t y l e . h e i g h t   =   f   +   ' p x '   } ,   r e l a t i v i z e :   f u n c t i o n ( a )   {   a   =   $ ( a ) ;   i f   ( a . s t y l e . p o s i t i o n   = =   ' r e l a t i v e ' )   r e t u r n ;   P o s i t i o n . p r e p a r e ( ) ;   a . s t y l e . p o s i t i o n   =   ' r e l a t i v e ' ;   v a r   b   =   p a r s e F l o a t ( a . s t y l e . t o p   | |   0 )   -   ( a . _ o r i g i n a l T o p   | |   0 ) ;   v a r   c   =   p a r s e F l o a t ( a . s t y l e . l e f t   | |   0 )   -   ( a . _ o r i g i n a l L e f t   | |   0 ) ;   a . s t y l e . t o p   =   b   +   ' p x ' ;   a . s t y l e . l e f t   =   c   +   ' p x ' ;   a . s t y l e . h e i g h t   =   a . _ o r i g i n a l H e i g h t ;   a . s t y l e . w i d t h   =   a . _ o r i g i n a l W i d t h   }   } ;   i f   ( P r o t o t y p e . B r o w s e r . W e b K i t )   {   P o s i t i o n . c u m u l a t i v e O f f s e t   =   f u n c t i o n ( a )   {   v a r   b   =   0 ,   v a l u e L   =   0 ;   d o   {   b   + =   a . o f f s e t T o p   | |   0 ;   v a l u e L   + =   a . o f f s e t L e f t   | |   0 ;   i f   ( a . o f f s e t P a r e n t   = =   d o c u m e n t . b o d y )   i f   ( E l e m e n t . g e t S t y l e ( a ,   ' p o s i t i o n ' )   = =   ' a b s o l u t e ' )   b r e a k ;   a   =   a . o f f s e t P a r e n t   }   w h i l e   ( a ) ;   r e t u r n   [ v a l u e L ,   b ]   }   }   E l e m e n t . a d d M e t h o d s ( ) ;  
  
 v a r   c s s _ b r o w s e r _ s e l e c t o r = f u n c t i o n ( )   {  
 v a r   t = t h i s ;  
 v a r   u a = n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) ;  
 v a r   i s = f u n c t i o n ( x ) {   r e t u r n   u a . i n d e x O f ( x ) ! = - 1 ; } ;  
 v a r   h = d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( ' h t m l ' ) [ 0 ]  
 v a r   b = ( u a . i n d e x O f ( " o p e r a / 9 " ) > - 1 ) ? ' o p e r a   o p e r a 9 ' :  
 ( u a . i n d e x O f ( " o p e r a   8 " ) > - 1 ) ? ' o p e r a   o p e r a 8 ' :  
 ( u a . i n d e x O f ( " o p e r a   7 " ) > - 1 ) ? ' o p e r a   o p e r a 7 ' :  
 ( u a . i n d e x O f ( " m s i e   8 " ) > - 1 ) ? ' i e   i e 8   i e 7 ' :  
 ( u a . i n d e x O f ( " m s i e   7 " ) > - 1 ) ? ' i e   i e 7 ' :  
 ( u a . i n d e x O f ( " m s i e   6 " ) > - 1 ) ? ' i e   i e 6 ' :  
 ( u a . i n d e x O f ( " m s i e   5 . 5 " ) > - 1 ) ? ' i e   i e 5 5 ' :  
 ( u a . i n d e x O f ( " m s i e   5 . 2 3 " ) > - 1 ) ? ' i e   i e 5 2 3 ' :  
 ( u a . i n d e x O f ( " m s i e   5 . 0 " ) > - 1 ) ? ' i e   i e 5 ' :  
 ( u a . i n d e x O f ( " c h r o m e " ) > - 1 ) ? ' s a f a r i   c h r o m e ' :  
 ( u a . i n d e x O f ( " s a f a r i " ) > - 1 & & u a . i n d e x O f ( " v e r s i o n / 4 . " ) > - 1 & & u a . i n d e x O f ( " v e r s i o n / 4 . " ) < u a . i n d e x O f ( " s a f a r i " ) )   ?   ' s a f a r i   s a f a r i 4   s a f a r i 3 ' :  
 ( u a . i n d e x O f ( " s a f a r i " ) > - 1 & & u a . i n d e x O f ( " v e r s i o n / 3 . " ) > - 1 & & u a . i n d e x O f ( " v e r s i o n / 3 . " ) < u a . i n d e x O f ( " s a f a r i " ) )   ?   ' s a f a r i   s a f a r i 3 ' :  
 ( u a . i n d e x O f ( " s a f a r i " ) > - 1 )   ?   ' s a f a r i   s a f a r i 2 ' :  
 ( u a . i n d e x O f ( " s e a m o n k e y " ) > - 1 ) ? ' s e a m o n k e y   g e c k o ' :  
 ( u a . i n d e x O f ( " n e t s c a p e " ) > - 1 ) ? ' n e t s c a p e   g e c k o ' :  
 ( u a . i n d e x O f ( " f i r e f o x / 1 " ) > - 1 ) ? ' f i r e f o x   f f 1   g e c k o ' :  
 ( u a . i n d e x O f ( " f i r e f o x / 2 " ) > - 1 ) ? ' f i r e f o x   f f 2   g e c k o ' :  
 ( u a . i n d e x O f ( " f i r e f o x / 3 " ) > - 1 ) ? ' f i r e f o x   f f 3   g e c k o ' :  
 ( u a . i n d e x O f ( " g e c k o " ) > - 1 ) ? ' g e c k o ' : ' ' ,  
 o s = ( i s ( ' x 1 1 ' ) | | i s ( ' l i n u x ' ) ) ? '   l i n u x ' :  
 i s ( ' m a c ' ) ? '   m a c ' :  
 i s ( ' w i n ' ) ? '   w i n ' : ' ' ;  
 v a r   c = b + o s + '   j s ' ;  
 h . c l a s s N a m e   + =   h . c l a s s N a m e ? '   ' + c : c ;  
 t . v e r = n a v i g a t o r . a p p V e r s i o n  
 ; t . a g e n t = n a v i g a t o r . u s e r A g e n t ;  
 t . m a c = u a . i n d e x O f ( " m a c " ) > - 1 ;  
 t . p c = u a . i n d e x O f ( " w i n " ) > - 1 ;  
 t . o p e r a = u a . i n d e x O f ( " o p e r a " ) > - 1 ;  
 t . o p e r a 9 = u a . i n d e x O f ( " o p e r a / 9 " ) > - 1 ;  
 t . o p e r a 8 = u a . i n d e x O f ( " o p e r a   8 " ) > - 1 ;  
 t . o p e r a 7 = u a . i n d e x O f ( " o p e r a   7 " ) > - 1 ;  
 t . i e 7 = ( u a . i n d e x O f ( " m s i e   7 " ) > - 1 & & ! t . o p e r a ) ? 1 : 0 ;  
 t . i e 7 = t . i e 8 = ( u a . i n d e x O f ( " m s i e   8 " ) > - 1 & & ! t . o p e r a )   ?   1 : 0 ;  
 t . i e 6 = ( u a . i n d e x O f ( " m s i e   6 " ) > - 1 & & ! t . o p e r a )   ?   1 : 0 ;  
 t . i e 5 5   = ( u a . i n d e x O f ( " m s i e   5 . 5 " ) > - 1 & & ! t . o p e r a ) ? 1 : 0 ;  
 t . i e 5 2 3   = ( u a . i n d e x O f ( " m s i e   5 . 2 3 " ) > - 1 ) ? 1 : 0 ;  
 t . i e 4   = ( u a . i n d e x O f ( " m s i e   4 " ) > - 1 ) ? 1 : 0 ;  
 t . i e 3   = ( u a . i n d e x O f ( " m s i e   3 " ) > - 1 ) ? 1 : 0 ;  
 t . i e 5   = ( u a . i n d e x O f ( " m s i e   5 . 0 " ) > - 1 & & ! t . i e 5 5 & & ! t . i e 5 2 3 ) ? 1 : 0 ;  
 t . n s 7 1 = ( u a . i n d e x O f ( " n e t s c a p e / 7 . 1 " ) > - 1 ) ? 1 : 0 ;  
 t . s a f a r i 4 = ( u a . i n d e x O f ( " s a f a r i " ) > - 1 & & u a . i n d e x O f ( " v e r s i o n / 4 . " ) > - 1 & & u a . i n d e x O f ( " v e r s i o n / 4 . " ) < u a . i n d e x O f ( " s a f a r i " ) )   ?   1 : 0 ;  
 t . s a f a r i 3 = ( u a . i n d e x O f ( " s a f a r i " ) > - 1 & & u a . i n d e x O f ( " v e r s i o n / 3 . " ) > - 1 & & u a . i n d e x O f ( " v e r s i o n / 3 . " ) < u a . i n d e x O f ( " s a f a r i " ) )   ?   1 : 0 ;  
 t . s a f a r i 2 = ( u a . i n d e x O f ( " s a f a r i " ) > - 1 & & u a . i n d e x O f ( " v e r s i o n / " ) = = - 1 )   ?   1 : 0 ;  
 t . c h r o m e = ( u a . i n d e x O f ( " c h r o m e " ) > - 1 ) ? 1 : 0 ;  
 t . s a f a r i = ( t . s a f a r i 2 | | t . s a f a r i 3 | | t . s a f a r i 4 ) ;  
 t . i e = ( t . i e 8 | | t . i e 7 | | t . i e 5 5 | | t . i e 5 | | t . i e 6 | | t . i e 5 2 3 | | t . i e 4 | | t . i e 3 ) ;  
 t . g e c k o = ( u a . i n d e x O f ( " g e c k o " ) > - 1   & ! t . i e ) ? 1 : 0 ;  
 t . n s = ( t . n s 7 1 ) ;  
 t . i e O l d = ( t . i e 5 5 | | t . i e 5 | | t . i e 5 2 3 | | t . i e 4 | | t . i e 3 ) ;  
 t . a j a x a w a r e   = ( t . o p e r a | | t . i e 8 | | t . i e 7 | | t . i e 6 | | t . s a f a r i | | t . g e c k o | | t . c h r o m e ) ? 1 : 0  
 } ( ) ;  
  
 i f ( t y p e o f   d e c o n c e p t = = " u n d e f i n e d " ) {  
 v a r   d e c o n c e p t = n e w   O b j e c t ( ) ;  
 }  
 i f ( t y p e o f   d e c o n c e p t . u t i l = = " u n d e f i n e d " ) {  
 d e c o n c e p t . u t i l = n e w   O b j e c t ( ) ;  
 }  
 i f ( t y p e o f   d e c o n c e p t . S W F O b j e c t U t i l = = " u n d e f i n e d " ) {  
 d e c o n c e p t . S W F O b j e c t U t i l = n e w   O b j e c t ( ) ;  
 }  
 d e c o n c e p t . S W F O b j e c t = f u n c t i o n ( _ 1 , i d , w , h , _ 5 , c , _ 7 , _ 8 , _ 9 , _ a , _ b ) {  
 i f ( ! d o c u m e n t . g e t E l e m e n t B y I d ) {  
 r e t u r n ;  
 }  
 t h i s . D E T E C T _ K E Y = _ b ? _ b : " d e t e c t f l a s h " ;  
 t h i s . s k i p D e t e c t = d e c o n c e p t . u t i l . g e t R e q u e s t P a r a m e t e r ( t h i s . D E T E C T _ K E Y ) ;  
 t h i s . p a r a m s = n e w   O b j e c t ( ) ;  
 t h i s . v a r i a b l e s = n e w   O b j e c t ( ) ;  
 t h i s . a t t r i b u t e s = n e w   A r r a y ( ) ;  
 i f ( _ 1 ) {  
 t h i s . s e t A t t r i b u t e ( " s w f " , _ 1 ) ;  
 }  
 i f ( i d ) {  
 t h i s . s e t A t t r i b u t e ( " i d " , i d ) ;  
 }  
 i f ( w ) {  
 t h i s . s e t A t t r i b u t e ( " w i d t h " , w ) ;  
 }  
 i f ( h ) {  
 t h i s . s e t A t t r i b u t e ( " h e i g h t " , h ) ;  
 }  
 i f ( _ 5 ) {  
 t h i s . s e t A t t r i b u t e ( " v e r s i o n " , n e w   d e c o n c e p t . P l a y e r V e r s i o n ( _ 5 . t o S t r i n g ( ) . s p l i t ( " . " ) ) ) ;  
 }  
 t h i s . i n s t a l l e d V e r = d e c o n c e p t . S W F O b j e c t U t i l . g e t P l a y e r V e r s i o n ( ) ;  
 i f ( ! w i n d o w . o p e r a & & d o c u m e n t . a l l & & t h i s . i n s t a l l e d V e r . m a j o r > 7 ) {  
 d e c o n c e p t . S W F O b j e c t . d o P r e p U n l o a d = t r u e ;  
 }  
 i f ( c ) {  
 t h i s . a d d P a r a m ( " b g c o l o r " , c ) ;  
 }  
 v a r   q = _ 7 ? _ 7 : " h i g h " ;  
 t h i s . a d d P a r a m ( " q u a l i t y " , q ) ;  
 i f ( _ 8 + " " ! = " " ) {  
 t h i s . a d d P a r a m ( " b a s e " , _ 8 ) ;  
 }  
 t h i s . s e t A t t r i b u t e ( " u s e E x p r e s s I n s t a l l " , f a l s e ) ;  
 t h i s . s e t A t t r i b u t e ( " d o E x p r e s s I n s t a l l " , f a l s e ) ;  
 v a r   _ d = ( _ 9 ) ? _ 9 : w i n d o w . l o c a t i o n ;  
 t h i s . s e t A t t r i b u t e ( " x i R e d i r e c t U r l " , _ d ) ;  
 t h i s . s e t A t t r i b u t e ( " r e d i r e c t U r l " , " " ) ;  
 i f ( _ a ) {  
 t h i s . s e t A t t r i b u t e ( " r e d i r e c t U r l " , _ a ) ;  
 }  
 } ;  
 d e c o n c e p t . S W F O b j e c t . p r o t o t y p e = { u s e E x p r e s s I n s t a l l : f u n c t i o n ( _ e ) {  
 t h i s . x i S W F P a t h = ! _ e ? " e x p r e s s i n s t a l l . s w f " : _ e ;  
 t h i s . s e t A t t r i b u t e ( " u s e E x p r e s s I n s t a l l " , t r u e ) ;  
 } , s e t A t t r i b u t e : f u n c t i o n ( _ f , _ 1 0 ) {  
 t h i s . a t t r i b u t e s [ _ f ] = _ 1 0 ;  
 } , g e t A t t r i b u t e : f u n c t i o n ( _ 1 1 ) {  
 r e t u r n   t h i s . a t t r i b u t e s [ _ 1 1 ] ;  
 } , a d d P a r a m : f u n c t i o n ( _ 1 2 , _ 1 3 ) {  
 t h i s . p a r a m s [ _ 1 2 ] = _ 1 3 ;  
 } , g e t P a r a m s : f u n c t i o n ( ) {  
 r e t u r n   t h i s . p a r a m s ;  
 } , a d d V a r i a b l e : f u n c t i o n ( _ 1 4 , _ 1 5 ) {  
 t h i s . v a r i a b l e s [ _ 1 4 ] = _ 1 5 ;  
 } , g e t V a r i a b l e : f u n c t i o n ( _ 1 6 ) {  
 r e t u r n   t h i s . v a r i a b l e s [ _ 1 6 ] ;  
 } , g e t V a r i a b l e s : f u n c t i o n ( ) {  
 r e t u r n   t h i s . v a r i a b l e s ;  
 } , g e t V a r i a b l e P a i r s : f u n c t i o n ( ) {  
 v a r   _ 1 7 = n e w   A r r a y ( ) ;  
 v a r   k e y ;  
 v a r   _ 1 9 = t h i s . g e t V a r i a b l e s ( ) ;  
 f o r ( k e y   i n   _ 1 9 ) {  
 _ 1 7 [ _ 1 7 . l e n g t h ] = k e y + " = " + _ 1 9 [ k e y ] ;  
 }  
 r e t u r n   _ 1 7 ;  
 } , g e t S W F H T M L : f u n c t i o n ( ) {  
 v a r   _ 1 a = " " ;  
 i f ( n a v i g a t o r . p l u g i n s & & n a v i g a t o r . m i m e T y p e s & & n a v i g a t o r . m i m e T y p e s . l e n g t h ) {  
 i f ( t h i s . g e t A t t r i b u t e ( " d o E x p r e s s I n s t a l l " ) ) {  
 t h i s . a d d V a r i a b l e ( " M M p l a y e r T y p e " , " P l u g I n " ) ;  
 t h i s . s e t A t t r i b u t e ( " s w f " , t h i s . x i S W F P a t h ) ;  
 }  
 _ 1 a = " < e m b e d   t y p e = \ " a p p l i c a t i o n / x - s h o c k w a v e - f l a s h \ "   s r c = \ " " + t h i s . g e t A t t r i b u t e ( " s w f " ) + " \ "   w i d t h = \ " " + t h i s . g e t A t t r i b u t e ( " w i d t h " ) + " \ "   h e i g h t = \ " " + t h i s . g e t A t t r i b u t e ( " h e i g h t " ) + " \ "   s t y l e = \ " " + t h i s . g e t A t t r i b u t e ( " s t y l e " ) + " \ " " ;  
 _ 1 a + = "   i d = \ " " + t h i s . g e t A t t r i b u t e ( " i d " ) + " \ "   n a m e = \ " " + t h i s . g e t A t t r i b u t e ( " i d " ) + " \ "   " ;  
 v a r   _ 1 b = t h i s . g e t P a r a m s ( ) ;  
 f o r ( v a r   k e y   i n   _ 1 b ) {  
 _ 1 a + = [ k e y ] + " = \ " " + _ 1 b [ k e y ] + " \ "   " ;  
 }  
 v a r   _ 1 d = t h i s . g e t V a r i a b l e P a i r s ( ) . j o i n ( " & " ) ;  
 i f ( _ 1 d . l e n g t h > 0 ) {  
 _ 1 a + = " f l a s h v a r s = \ " " + _ 1 d + " \ " " ;  
 }  
 _ 1 a + = " / > " ;  
 } e l s e {  
 i f ( t h i s . g e t A t t r i b u t e ( " d o E x p r e s s I n s t a l l " ) ) {  
 t h i s . a d d V a r i a b l e ( " M M p l a y e r T y p e " , " A c t i v e X " ) ;  
 t h i s . s e t A t t r i b u t e ( " s w f " , t h i s . x i S W F P a t h ) ;  
 }  
 _ 1 a = " < o b j e c t   i d = \ " " + t h i s . g e t A t t r i b u t e ( " i d " ) + " \ "   c l a s s i d = \ " c l s i d : D 2 7 C D B 6 E - A E 6 D - 1 1 c f - 9 6 B 8 - 4 4 4 5 5 3 5 4 0 0 0 0 \ "   w i d t h = \ " " + t h i s . g e t A t t r i b u t e ( " w i d t h " ) + " \ "   h e i g h t = \ " " + t h i s . g e t A t t r i b u t e ( " h e i g h t " ) + " \ "   s t y l e = \ " " + t h i s . g e t A t t r i b u t e ( " s t y l e " ) + " \ " > " ;  
 _ 1 a + = " < p a r a m   n a m e = \ " m o v i e \ "   v a l u e = \ " " + t h i s . g e t A t t r i b u t e ( " s w f " ) + " \ "   / > " ;  
 v a r   _ 1 b = t h i s . g e t P a r a m s ( ) ;  
 f o r ( v a r   k e y   i n   _ 1 b ) {  
 _ 1 a + = " < p a r a m   n a m e = \ " " + k e y + " \ "   v a l u e = \ " " + _ 1 b [ k e y ] + " \ "   / > " ;  
 }  
 v a r   _ 1 d = t h i s . g e t V a r i a b l e P a i r s ( ) . j o i n ( " & " ) ;  
 i f ( _ 1 d . l e n g t h > 0 ) {  
 _ 1 a + = " < p a r a m   n a m e = \ " f l a s h v a r s \ "   v a l u e = \ " " + _ 1 d + " \ "   / > " ;  
 }  
 _ 1 a + = " < / o b j e c t > " ;  
 }  
 r e t u r n   _ 1 a ;  
 } , w r i t e : f u n c t i o n ( _ 1 e ) {  
 i f ( t h i s . g e t A t t r i b u t e ( " u s e E x p r e s s I n s t a l l " ) ) {  
 v a r   _ 1 f = n e w   d e c o n c e p t . P l a y e r V e r s i o n ( [ 6 , 0 , 6 5 ] ) ;  
 i f ( t h i s . i n s t a l l e d V e r . v e r s i o n I s V a l i d ( _ 1 f ) & & ! t h i s . i n s t a l l e d V e r . v e r s i o n I s V a l i d ( t h i s . g e t A t t r i b u t e ( " v e r s i o n " ) ) ) {  
 t h i s . s e t A t t r i b u t e ( " d o E x p r e s s I n s t a l l " , t r u e ) ;  
 t h i s . a d d V a r i a b l e ( " M M r e d i r e c t U R L " , e s c a p e ( t h i s . g e t A t t r i b u t e ( " x i R e d i r e c t U r l " ) ) ) ;  
 d o c u m e n t . t i t l e = d o c u m e n t . t i t l e . s l i c e ( 0 , 4 7 ) + "   -   F l a s h   P l a y e r   I n s t a l l a t i o n " ;  
 t h i s . a d d V a r i a b l e ( " M M d o c t i t l e " , d o c u m e n t . t i t l e ) ;  
 }  
 }  
 i f ( t h i s . s k i p D e t e c t | | t h i s . g e t A t t r i b u t e ( " d o E x p r e s s I n s t a l l " ) | | t h i s . i n s t a l l e d V e r . v e r s i o n I s V a l i d ( t h i s . g e t A t t r i b u t e ( " v e r s i o n " ) ) ) {  
 v a r   n = ( t y p e o f   _ 1 e = = " s t r i n g " ) ? d o c u m e n t . g e t E l e m e n t B y I d ( _ 1 e ) : _ 1 e ;  
 n . i n n e r H T M L = t h i s . g e t S W F H T M L ( ) ;  
 r e t u r n   t r u e ;  
 } e l s e {  
 i f ( t h i s . g e t A t t r i b u t e ( " r e d i r e c t U r l " ) ! = " " ) {  
 d o c u m e n t . l o c a t i o n . r e p l a c e ( t h i s . g e t A t t r i b u t e ( " r e d i r e c t U r l " ) ) ;  
 }  
 }  
 r e t u r n   f a l s e ;  
 } } ;  
 d e c o n c e p t . S W F O b j e c t U t i l . g e t P l a y e r V e r s i o n = f u n c t i o n ( ) {  
 v a r   _ 2 1 = n e w   d e c o n c e p t . P l a y e r V e r s i o n ( [ 0 , 0 , 0 ] ) ;  
 i f ( n a v i g a t o r . p l u g i n s & & n a v i g a t o r . m i m e T y p e s . l e n g t h ) {  
 v a r   x = n a v i g a t o r . p l u g i n s [ " S h o c k w a v e   F l a s h " ] ;  
 i f ( x & & x . d e s c r i p t i o n ) {  
 _ 2 1 = n e w   d e c o n c e p t . P l a y e r V e r s i o n ( x . d e s c r i p t i o n . r e p l a c e ( / ( [ a - z A - Z ] | \ s ) + / , " " ) . r e p l a c e ( / ( \ s + r | \ s + b [ 0 - 9 ] + ) / , " . " ) . s p l i t ( " . " ) ) ;  
 }  
 } e l s e {  
 i f ( 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 . u s e r A g e n t . i n d e x O f ( " W i n d o w s   C E " ) > = 0 ) {  
 v a r   a x o = 1 ;  
 v a r   _ 2 4 = 3 ;  
 w h i l e ( a x o ) {  
 t r y {  
 _ 2 4 + + ;  
 a x o = n e w   A c t i v e X O b j e c t ( " S h o c k w a v e F l a s h . S h o c k w a v e F l a s h . " + _ 2 4 ) ;  
 _ 2 1 = n e w   d e c o n c e p t . P l a y e r V e r s i o n ( [ _ 2 4 , 0 , 0 ] ) ;  
 }  
 c a t c h ( e ) {  
 a x o = n u l l ;  
 }  
 }  
 } e l s e {  
 t r y {  
 v a r   a x o = n e w   A c t i v e X O b j e c t ( " S h o c k w a v e F l a s h . S h o c k w a v e F l a s h . 7 " ) ;  
 }  
 c a t c h ( e ) {  
 t r y {  
 v a r   a x o = n e w   A c t i v e X O b j e c t ( " S h o c k w a v e F l a s h . S h o c k w a v e F l a s h . 6 " ) ;  
 _ 2 1 = n e w   d e c o n c e p t . P l a y e r V e r s i o n ( [ 6 , 0 , 2 1 ] ) ;  
 a x o . A l l o w S c r i p t A c c e s s = " a l w a y s " ;  
 }  
 c a t c h ( e ) {  
 i f ( _ 2 1 . m a j o r = = 6 ) {  
 r e t u r n   _ 2 1 ;  
 }  
 }  
 t r y {  
 a x o = n e w   A c t i v e X O b j e c t ( " S h o c k w a v e F l a s h . S h o c k w a v e F l a s h " ) ;  
 }  
 c a t c h ( e ) {  
 }  
 }  
 i f ( a x o ! = n u l l ) {  
 _ 2 1 = n e w   d e c o n c e p t . P l a y e r V e r s i o n ( a x o . G e t V a r i a b l e ( " $ v e r s i o n " ) . s p l i t ( "   " ) [ 1 ] . s p l i t ( " , " ) ) ;  
 }  
 }  
 }  
 r e t u r n   _ 2 1 ;  
 } ;  
 d e c o n c e p t . P l a y e r V e r s i o n = f u n c t i o n ( _ 2 5 ) {  
 t h i s . m a j o r = _ 2 5 [ 0 ] ! = n u l l ? p a r s e I n t ( _ 2 5 [ 0 ] ) : 0 ;  
 t h i s . m i n o r = _ 2 5 [ 1 ] ! = n u l l ? p a r s e I n t ( _ 2 5 [ 1 ] ) : 0 ;  
 t h i s . r e v = _ 2 5 [ 2 ] ! = n u l l ? p a r s e I n t ( _ 2 5 [ 2 ] ) : 0 ;  
 } ;  
 d e c o n c e p t . P l a y e r V e r s i o n . p r o t o t y p e . v e r s i o n I s V a l i d = f u n c t i o n ( f v ) {  
 i f ( t h i s . m a j o r < f v . m a j o r ) {  
 r e t u r n   f a l s e ;  
 }  
 i f ( t h i s . m a j o r > f v . m a j o r ) {  
 r e t u r n   t r u e ;  
 }  
 i f ( t h i s . m i n o r < f v . m i n o r ) {  
 r e t u r n   f a l s e ;  
 }  
 i f ( t h i s . m i n o r > f v . m i n o r ) {  
 r e t u r n   t r u e ;  
 }  
 i f ( t h i s . r e v < f v . r e v ) {  
 r e t u r n   f a l s e ;  
 }  
 r e t u r n   t r u e ;  
 } ;  
 d e c o n c e p t . u t i l = { g e t R e q u e s t P a r a m e t e r : f u n c t i o n ( _ 2 7 ) {  
 v a r   q = d o c u m e n t . l o c a t i o n . s e a r c h | | d o c u m e n t . l o c a t i o n . h a s h ;  
 i f ( _ 2 7 = = n u l l ) {  
 r e t u r n   q ;  
 }  
 i f ( q ) {  
 v a r   _ 2 9 = q . s u b s t r i n g ( 1 ) . s p l i t ( " & " ) ;  
 f o r ( v a r   i = 0 ; i < _ 2 9 . l e n g t h ; i + + ) {  
 i f ( _ 2 9 [ i ] . s u b s t r i n g ( 0 , _ 2 9 [ i ] . i n d e x O f ( " = " ) ) = = _ 2 7 ) {  
 r e t u r n   _ 2 9 [ i ] . s u b s t r i n g ( ( _ 2 9 [ i ] . i n d e x O f ( " = " ) + 1 ) ) ;  
 }  
 }  
 }  
 r e t u r n   " " ;  
 } } ;  
 d e c o n c e p t . S W F O b j e c t U t i l . c l e a n u p S W F s = f u n c t i o n ( ) {  
 v a r   _ 2 b = d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " O B J E C T " ) ;  
 f o r ( v a r   i = _ 2 b . l e n g t h - 1 ; i > = 0 ; i - - ) {  
 _ 2 b [ i ] . s t y l e . d i s p l a y = " n o n e " ;  
 f o r ( v a r   x   i n   _ 2 b [ i ] ) {  
 i f ( t y p e o f   _ 2 b [ i ] [ x ] = = " f u n c t i o n " ) {  
 _ 2 b [ i ] [ x ] = f u n c t i o n ( ) {  
 } ;  
 }  
 }  
 }  
 } ;  
 i f ( d e c o n c e p t . S W F O b j e c t . d o P r e p U n l o a d ) {  
 i f ( ! d e c o n c e p t . u n l o a d S e t ) {  
 d e c o n c e p t . S W F O b j e c t U t i l . p r e p U n l o a d = f u n c t i o n ( ) {  
 _ _ f l a s h _ u n l o a d H a n d l e r = f u n c t i o n ( ) {  
 } ;  
 _ _ f l a s h _ s a v e d U n l o a d H a n d l e r = f u n c t i o n ( ) {  
 } ;  
 w i n d o w . a t t a c h E v e n t ( " o n u n l o a d " , d e c o n c e p t . S W F O b j e c t U t i l . c l e a n u p S W F s ) ;  
 } ;  
 w i n d o w . a t t a c h E v e n t ( " o n b e f o r e u n l o a d " , d e c o n c e p t . S W F O b j e c t U t i l . p r e p U n l o a d ) ;  
 d e c o n c e p t . u n l o a d S e t = t r u e ;  
 }  
 }  
 i f ( ! d o c u m e n t . g e t E l e m e n t B y I d & & d o c u m e n t . a l l ) {  
 d o c u m e n t . g e t E l e m e n t B y I d = f u n c t i o n ( i d ) {  
 r e t u r n   d o c u m e n t . a l l [ i d ] ;  
 } ;  
 }  
 v a r   g e t Q u e r y P a r a m V a l u e = d e c o n c e p t . u t i l . g e t R e q u e s t P a r a m e t e r ;  
 v a r   F l a s h O b j e c t = d e c o n c e p t . S W F O b j e c t ;  
 v a r   S W F O b j e c t = d e c o n c e p t . S W F O b j e c t ;  
  
 v a r   _ O b j e c t B r o w s e r s = C l a s s . c r e a t e ( ) ;  
 _ O b j e c t B r o w s e r s . p r o t o t y p e = {  
 i n i t i a l i z e : f u n c t i o n ( )  
 {  
 t h i s . o b a = n e w   A r r a y ( ) ;  
 t h i s . o b h = n e w   A r r a y ( ) ;  
 } ,  
 a d d : f u n c t i o n ( o b )  
 {  
 t h i s . o b a . p u s h ( o b ) ;  
 } ,  
 s t o r e : f u n c t i o n ( b n a m e , o b )  
 {  
 v a r   x = t h i s . g e t B r o w s e r P a i r ( b n a m e ) ;  
 i f ( x ) x . o b = o b ; e l s e   t h i s . o b h . p u s h ( { b n a m e : b n a m e , o b : o b } ) ;  
 } ,  
 g e t B r o w s e r P a i r : f u n c t i o n ( b n a m e )  
 {  
 f o r   ( v a r   i = 0 ; i < t h i s . o b h . l e n g t h ; i + + )  
 i f ( t h i s . o b h [ i ] . b n a m e = = b n a m e ) r e t u r n   t h i s . o b h [ i ] ;  
 r e t u r n   n u l l ;  
 } ,  
 g e t B r o w s e r : f u n c t i o n ( b n a m e )  
 {  
 f o r   ( v a r   i = 0 ; i < t h i s . o b h . l e n g t h ; i + + )  
 i f ( t h i s . o b h [ i ] . b n a m e = = b n a m e ) r e t u r n   t h i s . o b h [ i ] . o b ;  
 r e t u r n   n u l l ;  
 } ,  
 s t o p A l l : f u n c t i o n ( ) { t h i s . o b a . e a c h ( f u n c t i o n ( n ) { n . s t o p ( ) ; } ) ; } ,  
 m o v e L e f t : f u n c t i o n ( b n a m e ) { t r y { t h i s . g e t B r o w s e r ( b n a m e ) . m o v e L e f t ( ) ; } c a t c h ( e ) { } } ,  
 m o v e R i g h t : f u n c t i o n ( b n a m e ) { t r y { t h i s . g e t B r o w s e r ( b n a m e ) . m o v e R i g h t ( ) ; } c a t c h ( e ) { } } ,  
 m o v e T o : f u n c t i o n ( b n a m e , i ) { t r y { t h i s . g e t B r o w s e r ( b n a m e ) . m o v e T o ( i ) ; } c a t c h ( e ) { } }  
 }  
 v a r   O b j e c t B r o w s e r s = n e w   _ O b j e c t B r o w s e r s ( ) ;  
 v a r   B a s e O b j e c t B r o w s e r = C l a s s . c r e a t e ( ) ;  
 B a s e O b j e c t B r o w s e r . p r o t o t y p e = {  
 b a s e I n i t : f u n c t i o n ( l e f t A r r o w I D , r i g h t A r r o w I D , b u l l e t I D ) {  
 v a r   t = t h i s ;  
 t . f i r s t I n t = 1 0 ;  
 t . o t h I n t = 1 0 ;  
 t . s t a t e = 0  
 t . e = n e w   A r r a y ( ) ;  
 t . e C = 0 ;  
 t . c = 0 ;  
 t . a r r o w L = l e f t A r r o w I D ;  
 t . a r r o w R = r i g h t A r r o w I D ;  
 t . b u l l e t = b u l l e t I D ;  
 O b j e c t B r o w s e r s . a d d ( t ) ;  
 } ,  
 o n T i m e r : f u n c t i o n ( ) {  
 v a r   t = t h i s ;  
 t . m o v e N e x t ( ) ;  
 i f ( t h i s . s t a t e = = 1 )  
 {  
 t . p e . s t o p ( ) ;  
 t . s t a t e = 2 ;  
 t . p e = n e w   P e r i o d i c a l E x e c u t e r ( t . o n T i m e r . b i n d ( t ) , t . o t h I n t ) ;  
 t . p e . o b = t ;  
 }  
 } ,  
 s t a r t : f u n c t i o n ( ) {  
 v a r   t = t h i s ;  
 t . p e = n e w   P e r i o d i c a l E x e c u t e r ( t . o n T i m e r . b i n d ( t ) , t . f i r s t I n t ) ;  
 t . p e . o b = t ;  
 t . s t a t e = 1  
 v a r   s = 0 ;  
 i f ( a r g u m e n t s & & a r g u m e n t s . l e n g t h > 0 )   s = a r g u m e n t s [ 0 ] ;  
 i f ( s = = - 1 ) s = M a t h . c e i l ( M a t h . r a n d o m ( ) * ( t . e C - 1 ) ) ;  
 t . c = s ;  
 t . m o v e E l e m e n t ( ) ;  
 } ,  
 s t o p : f u n c t i o n ( ) { t h i s . p e . s t o p ( ) ; } ,  
 m o v e R i g h t : f u n c t i o n ( i ) {  
 v a r   t = t h i s ;  
 t . p e . s t o p ( ) ;  
 t . c + + ;  
 i f ( t . c > = t . e C ) t . c = 0 ;  
 t . m o v e E l e m e n t ( ) ;  
 } ,  
 m o v e L e f t : f u n c t i o n ( i d x ) {  
 v a r   t = t h i s ;  
 t . p e . s t o p ( ) ;  
 t . c - - ;  
 i f ( t . c < 0 ) t . c = t . e C - 1 ;  
 t . m o v e E l e m e n t ( ) ;  
 } ,  
 m o v e T o : f u n c t i o n ( i ) {  
 v a r   t = t h i s ;  
 t . p e . s t o p ( ) ;  
 t . c = i ;  
 t . m o v e E l e m e n t ( ) ;  
 } ,  
 m o v e N e x t : f u n c t i o n ( ) {  
 v a r   t = t h i s ;  
 t . c + + ;  
 i f ( t . c > = t . e C ) t . c = 0 ;  
 t . m o v e E l e m e n t ( ) ;  
 } ,  
 r e f r e s h C o n t r o l s : f u n c t i o n ( ) {  
 v a r   t = t h i s ;  
 f o r   ( v a r   l = 0 ; l < t . e C ; l + + )   $ ( t . b u l l e t + l ) . c l a s s N a m e = ' ' ;  
 $ ( t . b u l l e t + t . c ) . c l a s s N a m e = ' n b S e l ' ;  
 }  
 } ;  
 A r t i c l e P h o t o B r o w s e r = C l a s s . c r e a t e ( ) ;  
 O b j e c t . e x t e n d ( O b j e c t . e x t e n d ( A r t i c l e P h o t o B r o w s e r . p r o t o t y p e , B a s e O b j e c t B r o w s e r . p r o t o t y p e ) , {  
 i n i t i a l i z e : f u n c t i o n ( i I D , c I D , l A I D , r A I D , b I D , u I D )   {  
 v a r   t = t h i s ;  
 t . b a s e I n i t ( l A I D , r A I D , b I D ) ;  
 t . i m g = i I D ;  
 t . c r e d i t = c I D ;  
 t . u r l P i c = u I D ;  
 } ,  
 a d d E l e m e n t : f u n c t i o n ( s r c , h , w , a l t , c , u )   {  
 t h i s . e C = t h i s . e . p u s h ( {   s r c : s r c , h : h , w : w , a l t : a l t , c : c , u : u   } ) ;  
 } ,  
 m o v e E l e m e n t : f u n c t i o n ( )   {  
 v a r   t = t h i s ;  
 v a r   e l = t . e [ t . c ] ;  
 $ ( t . i m g ) . s r c = u n e s c a p e ( e l . s r c ) ;  
 $ ( t . i m g ) . h e i g h t = e l . h ;  
 $ ( t . i m g ) . w i d t h = e l . w ;  
 $ ( t . i m g ) . a l t = u n e s c a p e ( e l . a l t ) ;  
 $ ( t . c r e d i t ) . u p d a t e ( e l . c ) ;  
 i f ( $ ( t . u r l P i c ) ! = u n d e f i n e d )  
 $ ( t . u r l P i c ) . h r e f = u n e s c a p e ( e l . u ) ;  
 t . r e f r e s h C o n t r o l s ( ) ;  
 }  
 } ) ;  
 N e w s B r o w s e r = C l a s s . c r e a t e ( ) ;  
 O b j e c t . e x t e n d ( O b j e c t . e x t e n d ( N e w s B r o w s e r . p r o t o t y p e , B a s e O b j e c t B r o w s e r . p r o t o t y p e ) , {  
 i n i t i a l i z e : f u n c t i o n ( p S , n C , c I D , l I D , r I D , b I D ) {  
 v a r   t = t h i s ;  
 t . b a s e I n i t ( l I D , r I D , b I D ) ;  
 t . c I D = c I D ;  
 t . p S = p S ;  
 t . e C = ( ( ( n C % t . p S ) = = 1 ? n C - 1 : n C ) / t . p S ) + ( ( n C % t . p S ) = = 1 ? 1 : 0 ) ;  
 } ,  
 a d d E l e m e n t : f u n c t i o n ( ) { } ,  
 m o v e E l e m e n t : f u n c t i o n ( ) {  
 v a r   t = t h i s ;  
 v a r   x h t m l = ' ' ;  
 v a r   i , b = t . c * t . p S ;  
 f o r ( i = 0 ; i < t . p S ; i + + ) {  
 t r y   { x h t m l + = " < l i > " + $ ( ' n e w s R o l l e r E ' + ( i + b ) ) . i n n e r H T M L + " < / l i > " ; } c a t c h ( e ) { } }  
 $ ( t . c I D ) . u p d a t e ( x h t m l ) ;  
 t . r e f r e s h C o n t r o l s ( ) ;  
 }  
 } ) ;  
 P h o t o B r o w s e r = C l a s s . c r e a t e ( ) ;  
 O b j e c t . e x t e n d ( O b j e c t . e x t e n d ( P h o t o B r o w s e r . p r o t o t y p e , B a s e O b j e c t B r o w s e r . p r o t o t y p e ) , {  
 i n i t i a l i z e : f u n c t i o n ( p S , n C , c I D , l I D , r I D , b I D ) {  
 v a r   t = t h i s ;  
 t . b a s e I n i t ( l I D , r I D , b I D ) ;  
 t . c I D = c I D ;  
 t . p S = p S ;  
 t . e C = ( ( ( n C % t . p S ) = = 1 ? n C - 1 : n C ) / t . p S ) + ( ( n C % t . p S ) = = 1 ? 1 : 0 ) ;  
 } ,  
 a d d E l e m e n t : f u n c t i o n ( ) { } ,  
 m o v e E l e m e n t : f u n c t i o n ( ) {  
 v a r   t = t h i s ;  
 v a r   x h t m l = ' ' ;  
 v a r   i , b = t . c * t . p S ;  
 f o r ( i = 0 ; i < t . p S ; i + + ) {  
 t r y   { x h t m l + = " < l i > " + $ ( ' p h o t o R o l l e r E ' + ( i + b ) ) . i n n e r H T M L + " < / l i > " ; } c a t c h ( e ) { } }  
 $ ( t . c I D ) . u p d a t e ( x h t m l ) ;  
 t . r e f r e s h C o n t r o l s ( ) ;  
 }  
 } ) ;  
 f u n c t i o n   p a g e N a v i g a t e ( s t , p s )  
 {  
 v a r   b U = d o c u m e n t . l o c a t i o n . p a t h n a m e ;  
 v a r   p a g e = p a r s e I n t ( p s , 1 0 ) - 1 ; v a r   p N = " , p a g e = " ; v a r   b = b U . i n d e x O f ( p N ) ; v a r   n I , o I , n L ;  
 i f ( b > 0 ) { o I = p a r s e I n t ( b U . s u b s t r i n g ( b + p N . l e n g t h , b U . l a s t I n d e x O f ( ' . ' ) ) , 1 0 ) ; }  
 e l s e { o I = 1 ; b = b U . i n d e x O f ( ' . h t m ' ) }  
 n I = o I + p a r s e I n t ( s t , 1 0 ) ; i f ( n I < = 0 ) n I = 1 ; n L = b U . s u b s t r i n g ( 0 , b ) ;  
 i f ( n I > 1 ) n L + = p N + n I + ' . h t m x ' ; e l s e   n L + = ' . h t m l ' ; w i n d o w . l o c a t i o n . h r e f = n L ;  
 }  
  
 v a r   H a s h L i s t e n e r = C l a s s . c r e a t e ( ) ;  
 H a s h L i s t e n e r . p r o t o t y p e = {  
 g e t H a s h : f u n c t i o n ( ) {  
 t r y { r e t u r n   l o c a t i o n . h a s h . s u b s t r i n g ( 1 ) } c a t c h   ( e ) { r e t u r n   ' ' ; }  
 } ,  
 i n i t i a l i z e : f u n c t i o n ( ) {  
 v a r   t = t h i s ;  
 t . l = n e w   A r r a y ( ) ;  
 t . c E = f a l s e ;  
 t . h = t . g e t H a s h ( ) ;  
 t . t m = s e t I n t e r v a l ( t . o n T i m e r . b i n d ( t ) , 2 0 0 ) ;  
 } ,  
 a d d L i s t n e r : f u n c t i o n ( l f ) {  
 t h i s . l . p u s h ( l f ) ;  
 } ,  
 o n T i m e r : f u n c t i o n ( ) {  
 v a r   t = t h i s ;  
 i f ( ! t . c E ) { t r y   { i f ( t . h ! = t . g e t H a s h ( ) & & t . g e t H a s h ( ) ! = ' ' ) { t . h = t . g e t H a s h ( ) ; t . c E = t r u e ; t . l . e a c h ( f u n c t i o n ( n ) { n ( t . h ) ; } ) ; } }   f i n a l l y   { t . c E = f a l s e ; } }  
 }  
 }  
 v a r   H a s h U p d a t e r = C l a s s . c r e a t e ( ) ;  
 H a s h U p d a t e r . p r o t o t y p e = {  
 i n i t i a l i z e : f u n c t i o n ( t I D , b u i l d P a t h F u n c , b e f o r e C h a n g e F u n c , o p t , a f t e r C h a n g e F u n c ) {  
 v a r   t = t h i s ;  
 t . t I D = t I D ;  
 t . b P F = b u i l d P a t h F u n c ;  
 t . b C F = b e f o r e C h a n g e F u n c ;  
 t . a C F = a f t e r C h a n g e F u n c ;  
 t . o p t = o p t ;  
 t . h e l = n e w   A r r a y ( ) ;  
 } ,  
 a d d H a s h : f u n c t i o n ( h ) { t h i s . h e l . p u s h ( h ) ; } ,  
 o n H a s h : f u n c t i o n ( h )   {  
 v a r   t = t h i s ;  
 t . h = h ;  
 t r y { t . b C F ( t ) ; } c a t c h ( e ) { } ;  
 v a r   u = t . b P F ( h , t ) ;  
 i f ( u = = n u l l | | u = = u n d e f i n e d | | u . l e n g t h = = 0 )   r e t u r n ;  
 n e w   A j a x . U p d a t e r ( { s u c c e s s : t . t I D } , u , { m e t h o d : ' g e t ' , e v a l S c r i p t s : t r u e , o n C o m p l e t e : t . o n C o m p l e t e . b i n d ( t ) } ) ;  
 } ,  
 o n C o m p l e t e : f u n c t i o n ( )   {  
 t r y { t h i s . a C F ( t h i s ) ; }  
 c a t c h   ( e )   { }  
 } ,  
 c h e c k H a s h : f u n c t i o n ( h )   {  
 f o r   ( v a r   i = 0 ; i < t h i s . h e l . l e n g t h ; i + + )  
 i f ( t h i s . h e l [ i ] = = h ) r e t u r n   t r u e ;  
 r e t u r n   f a l s e ;  
 } ,  
 s t a r t : f u n c t i o n ( s H )   {  
 v a r   t = t h i s ;  
 t . h l = n e w   H a s h L i s t e n e r ( ) ;  
 t . h l . a d d L i s t n e r ( t . o n H a s h . b i n d ( t ) ) ;  
 v a r   h = t . h l . g e t H a s h ( ) ;  
 i f ( ( h = = = u n d e f i n e d | | h = = n u l l | | h = = ' ' ) & & t . h e l . l e n g t h > 1 )  
 {  
 i f ( s H ! = n u l l & & s H ! = u n d e f i n e d & & s H . l e n g t h > 0 )  
 h = s H ;  
 e l s e  
 {  
 v a r   i = M a t h . c e i l ( ( ( M a t h . r a n d o m ( ) + 0 . 1 ) * t . h e l . l e n g t h ) - 1 ) ;  
 i f ( i < 0 | | i > = t . h e l . l e n g t h )   i = 0 ;  
 h   = t . h e l [ i ] ;  
 }  
 } e l s e   i f ( ( h = = = u n d e f i n e d | | h = = n u l l | | h = = ' ' ) & & t . h e l . l e n g t h = = 1 )  
 {  
 h = t . h e l [ 0 ] ;  
 }  
 t r y { t . b C F ( t ) ; } c a t c h ( e ) { } ;  
 t . o n H a s h ( h ) ;  
 }  
 }  
  
 v a r   C o o k i e = {  
 s e t R a w : f u n c t i o n ( n , v , d a y s T o E x p , p g ) {  
 v a r   e x = ' ' ;  
 t r y { i f ( g e t U O p t ( ' p l ' ) ! = ' 1 ' ) {  
 i f ( d a y s T o E x p ! = u n d e f i n e d ) {  
 v a r   d = n e w   D a t e ( ) ;  
 d . s e t T i m e ( d . g e t T i m e ( ) + ( 8 6 4 0 0 0 0 0 * p a r s e F l o a t ( d a y s T o E x p ) ) ) ;  
 e x = ' ; e x p i r e s = ' + d . t o G M T S t r i n g ( ) ; } }  
 } c a t c h ( e ) { }  
 i f ( p g ! = u n d e f i n e d ) { i f ( p g ! = ' . ' ) e x + = ' ; p a t h = ' + p g ; }  
 e l s e   { e x + = ' ; p a t h = / ' ; }  
 i f ( c o o k i e D o m a i n ! = = u n d e f i n e d & & c o o k i e D o m a i n ! = n u l l & & c o o k i e D o m a i n ! = ' ' )  
 e x   + = " ; d o m a i n = " + c o o k i e D o m a i n ;  
 r e t u r n ( d o c u m e n t . c o o k i e = e s c a p e ( n ) + ' = ' + ( v | | ' ' ) + e x ) ;  
 } ,  
 s e t : f u n c t i o n ( n , v , d a y s T o E x p , p g ) {  
 r e t u r n   t h i s . s e t R a w ( n , e s c a p e ( v | | ' ' ) , d a y s T o E x p , p g ) ;  
 } ,  
 g e t : f u n c t i o n ( n ) {  
 v a r   c = d o c u m e n t . c o o k i e . m a t c h ( n e w   R e g E x p ( ' ( ^ | ; ) \ \ s * ' + e s c a p e ( n ) + ' = ( [ ^ ; \ \ s ] * ) ' ) ) ;  
 r e t u r n ( c ? u n e s c a p e ( c [ 2 ] ) : n u l l ) ;  
 } ,  
 e r a s e : f u n c t i o n ( n , p g ) {  
 v a r   c = C o o k i e . g e t ( n ) | | t r u e ;  
 C o o k i e . s e t ( n , ' ' , - 1 , p g ) ;  
 r e t u r n   c ;  
 } ,  
 a c c e p t : f u n c t i o n ( ) {  
 i f ( t y p e o f ( n a v i g a t o r . c o o k i e E n a b l e d ) = = ' b o o l e a n ' ) { r e t u r n   n a v i g a t o r . c o o k i e E n a b l e d ; }  
 C o o k i e . s e t ( ' _ t ' , ' 1 ' ) ; r e t u r n ( C o o k i e . e r a s e ( ' _ t ' ) = = = ' 1 ' ) ;  
 }  
 } ;  
  
 v a r   b L o g g e d I n = f a l s e ;  
 v a r   b N e e d A u t e n t i c a t i o n = f a l s e ;  
 f u n c t i o n   i n i t A u t e n t i c a t i o n ( b A u t h N e e d e d )   {   b N e e d A u t e n t i c a t i o n = b A u t h N e e d e d ; }  
 f u n c t i o n   l o g i n ( )   {  
 v a r   c = C o o k i e . g e t ( ' F I F A C o m C l u b ' ) ;  
 b L o g g e d I n = f a l s e ;  
 i f ( c ! = n u l l & & c ! = = u n d e f i n e d )  
 {  
 t r y { i f ( c . t o Q u e r y P a r a m s ( ) . u n . l e n g t h > 0 ) b L o g g e d I n = t r u e }  
 c a t c h ( e ) { }  
 }  
 i f ( ! b L o g g e d I n )   {  
 t r y {  
 $ ( ' a u t _ n o t S I ' ) . s h o w ( ) ;  
 }   c a t c h ( e )   { }  
 r e t u r n ;  
 }  
 t r y   {  
 $ ( ' c u r r U s e r ' ) . u p d a t e ( c . t o Q u e r y P a r a m s ( ) . u n ) ;  
 $ ( ' a u t _ S I ' ) . s h o w ( ) ;  
 $ ( ' a u t _ n o t S I ' ) . h i d e ( ) ;  
 }   c a t c h ( e )   { }  
 c h a n g e A b s L i n k ( ' # n a v B a r B o t t o m ' , ' / t h e c l u b / i n d e x . h t m l ' , ' / t h e c l u b / m y p r o f i l e / i n d e x . h t m x ' ) ;  
 v a r   w = C o o k i e . g e t ( ' w a r n e d ' ) ;  
 i f ( w = = n u l l | | w = = u n d e f i n e d | | w ! = " t r u e " )   {  
 c h e c k I f W a r n e d ( ) ;  
 }  
 }  
 f u n c t i o n   c h e c k I f W a r n e d ( )   {  
 $ j . g e t J S O N ( " / t h e c l u b / c h e c k e d u i d . t x t " , f u n c t i o n ( d a t a )   {  
 t r y   {  
 i f ( d a t a . w a r n e d . i n d e x O f ( C o o k i e . g e t ( ' F I F A C o m C l u b ' ) . t o Q u e r y P a r a m s ( ) . i d ) ! = - 1 )   {  
 w i n d o w . l o c a t i o n . h r e f = ' / t h e c l u b / t o o l s / c h a n g e s c r e e n n a m e . h t m x ? r e d i r e c t = '   +   w i n d o w . l o c a t i o n ;  
 }  
 }   c a t c h   ( e )   {   }  
 } ) ;  
 }  
 f u n c t i o n   r e d i r e c t T o C h a n g e S c r e e n n a m e ( o r i g i n a l R e s p o n s e )  
 {  
 i f ( o r i g i n a l R e s p o n s e . r e s p o n s e T e x t = = 1 )  
 {  
 w i n d o w . l o c a t i o n . h r e f = ' / u s e r s / p r o f i l e / c h a n g e s c r e e n n a m e . h t m x ' ;  
 }  
 }  
 f u n c t i o n   l o g o u t ( ) {  
 C o o k i e . e r a s e ( ' F I F A C o m C l u b ' ) ;  
 C o o k i e . e r a s e ( ' w a r n e d ' ) ;  
 b L o g g e d I n = f a l s e ;  
 t r y   {  
 $ ( ' a u t _ S I ' ) . h i d e ( ) ;  
 $ ( ' a u t _ n o t S I ' ) . s h o w ( ) ;  
 $ ( ' c u r r U s e r ' ) . u p d a t e ( '   ' ) ;  
 }   c a t c h ( e )   { }  
 c h a n g e A b s L i n k ( ' # n a v B a r B o t t o m ' , ' / t h e c l u b / m y p r o f i l e / i n d e x . h t m x ' , ' / t h e c l u b / i n d e x . h t m l ' ) ;  
 i f ( b N e e d A u t e n t i c a t i o n )  
 d o c u m e n t . l o c a t i o n . h r e f = " / " ;  
 e l s e  
 d o c u m e n t . l o c a t i o n . h r e f = d o c u m e n t . l o c a t i o n . h r e f ;  
 }  
 f u n c t i o n   l o g o u t B a r ( )   {  
 C o o k i e . e r a s e ( ' F I F A C o m C l u b ' ) ;  
 C o o k i e . e r a s e ( ' w a r n e d ' ) ;  
 b L o g g e d I n = f a l s e ;  
 t r y   {  
 $ ( ' a u t _ S I ' ) . h i d e ( ) ;  
 $ ( ' p L o g i n ' ) . h i d e ( ) ;  
 $ ( ' L o g g e d ' ) . h i d e ( ) ;  
 $ ( ' n o L o g g e d ' ) . s h o w ( ) ;  
 $ ( ' l n k L o g g e d ' ) . h i d e ( ) ;  
 }   c a t c h ( e )   { }  
 c h a n g e A b s L i n k ( ' # n a v B a r B o t t o m ' , ' / t h e c l u b / m y p r o f i l e / i n d e x . h t m x ' , ' / t h e c l u b / i n d e x . h t m l ' ) ;  
 i f ( b N e e d A u t e n t i c a t i o n )  
 d o c u m e n t . l o c a t i o n . h r e f = " / " ;  
 e l s e  
 d o c u m e n t . l o c a t i o n . h r e f = d o c u m e n t . l o c a t i o n . h r e f ;  
 }  
 f u n c t i o n   f o r c e L o g o u t ( ) {  
 C o o k i e . e r a s e ( ' F I F A C o m C l u b ' ) ;  
 b L o g g e d I n = f a l s e ;  
 t r y   {  
 $ ( ' a u t _ S I ' ) . h i d e ( ) ;  
 $ ( ' a u t _ n o t S I ' ) . s h o w ( ) ;  
 $ ( ' c u r r U s e r ' ) . u p d a t e ( '   ' ) ;  
 }   c a t c h   ( e )   {   }  
 }  
 f u n c t i o n   g e t U O p t ( o p t )  
 {  
 v a r   c = C o o k i e . g e t ( ' F I F A C o m C l u b ' ) ;  
 i f ( c = = n u l l | | c = = u n d e f i n e d )   r e t u r n   ' ' ;  
 v a r   v = e v a l ( ' c . t o Q u e r y P a r a m s ( ) . ' + o p t ) ;  
 i f ( v = = n u l l | | v = = u n d e f i n e d )   r e t u r n   ' ' ;  
 r e t u r n   v ;  
 }  
 f u n c t i o n   m y f i f a c o m ( )   {  
 i f ( g e t U O p t ( ' u n ' ) = = ' ' )   {  
 $ ( ' m y f i f a c o m ' ) . a d d C l a s s N a m e ( ' l o g i n t e a s e r ' ) ;  
 $ ( ' m f c ' ) . h i d e ( ) ;  
 $ ( ' m f c N O ' ) . s h o w ( ) ;  
 n e w   A j a x . U p d a t e r ( {   s u c c e s s : ' m f c N O '   } , ' / u s e r s / l i b r a r y / _ l o g i n t e a s e r . h t m l ' , {   m e t h o d : ' g e t ' , e v a l S c r i p t s : t r u e   } ) ;  
 r e t u r n ;  
 }  
 i f ( ( g e t U O p t ( ' m 1 ' )   +   ' ' ) . l e n g t h < 3 & & ( g e t U O p t ( ' m 2 ' )   +   ' ' ) . l e n g t h < 3 & & ( g e t U O p t ( ' m 3 ' )   +   ' ' ) . l e n g t h < 3 & & ( g e t U O p t ( ' n 1 ' )   +   ' ' ) . l e n g t h < 3 & & ( g e t U O p t ( ' n 2 ' )   +   ' ' ) . l e n g t h < 3 & & ( g e t U O p t ( ' n 3 ' )   +   ' ' ) . l e n g t h < 3 )   {  
 $ ( ' m y f i f a c o m ' ) . a d d C l a s s N a m e ( ' l o g i n t e a s e r ' ) ;  
 $ ( ' m f c ' ) . h i d e ( ) ;  
 $ ( ' m f c N O ' ) . s h o w ( ) ;  
 n e w   A j a x . U p d a t e r ( {   s u c c e s s : ' m f c N O '   } , ' / u s e r s / l i b r a r y / _ p e r s o n a l i z e t e a s e r . h t m l ' , {   m e t h o d : ' g e t ' , e v a l S c r i p t s : t r u e   } ) ;  
 r e t u r n ;  
 }  
 v a r   h = ' ' ; v a r   m = ' ' ;  
 i f ( g e t U O p t ( ' m 1 ' ) . l e n g t h = = 3 )   {   h   + =   m f c M A l i ( g e t U O p t ( ' m 1 ' ) ) ; i f ( m = = ' ' )   m = g e t U O p t ( ' m 1 ' ) ; }  
 i f ( g e t U O p t ( ' m 2 ' ) . l e n g t h = = 3 )   {   h   + =   m f c M A l i ( g e t U O p t ( ' m 2 ' ) ) ; i f ( m = = ' ' )   m = g e t U O p t ( ' m 2 ' ) ; }  
 i f ( g e t U O p t ( ' m 3 ' ) . l e n g t h = = 3 )   {   h   + =   m f c M A l i ( g e t U O p t ( ' m 3 ' ) ) ; i f ( m = = ' ' )   m = g e t U O p t ( ' m 3 ' ) ; }  
 i f ( m ! = ' ' )   {   $ ( ' m f c M A N a v ' ) . u p d a t e ( ' < u l > '   +   h   +   ' < / u l > ' ) ; m f c M A C h a n g e ( m ) ; }  
 h = ' ' ; m = ' ' ;  
 i f ( g e t U O p t ( ' n 1 ' ) . l e n g t h = = 3 )   {   h   + =   m f c N L l i ( g e t U O p t ( ' n 1 ' ) ) ; i f ( m = = ' ' )   m = g e t U O p t ( ' n 1 ' ) ; }  
 i f ( g e t U O p t ( ' n 2 ' ) . l e n g t h = = 3 )   {   h   + =   m f c N L l i ( g e t U O p t ( ' n 2 ' ) ) ; i f ( m = = ' ' )   m = g e t U O p t ( ' n 2 ' ) ; }  
 i f ( g e t U O p t ( ' n 3 ' ) . l e n g t h = = 3 )   {   h   + =   m f c N L l i ( g e t U O p t ( ' n 3 ' ) ) ; i f ( m = = ' ' )   m = g e t U O p t ( ' n 3 ' ) ; }  
 i f ( m ! = ' ' )   {   $ ( ' m f c N L N a v ' ) . u p d a t e ( ' < u l > '   +   h   +   ' < / u l > ' ) ; m f c N L C h a n g e ( m ) ; }  
 $ ( ' m f c N O ' ) . h i d e ( ) ;  
 $ ( ' m y f i f a c o m ' ) . r e m o v e C l a s s N a m e ( ' l o g i n t e a s e r ' ) ;  
 $ ( ' m f c ' ) . s h o w ( ) ;  
 i f ( g e t U O p t ( ' m 1 ' ) . l e n g t h = = 3 )  
 $ ( g e t U O p t ( ' m 1 ' ) ) . a d d C l a s s N a m e ( ' c u r r e n t ' ) ;  
 i f ( g e t U O p t ( ' n 1 ' ) . l e n g t h = = 3 )  
 $ ( ' n '   +   g e t U O p t ( ' n 1 ' ) ) . a d d C l a s s N a m e ( ' c u r r e n t ' ) ;  
 t r y   {   n e w   A j a x . R e q u e s t ( ' / u s e r d a t a / g a m e s / w o r l d c u p f a n t a s y f o o t b a l l / '   +   g e t U O p t ( ' a c ' )   +   ' . t x t ' , {   m e t h o d : ' g e t ' , o n C o m p l e t e : s h o w W C F P o i n t s   } ) ; }   c a t c h   ( e )   {   }  
 t r y   {   n e w   A j a x . R e q u e s t ( ' / u s e r d a t a / g a m e s / w o r l d c u p p r e d i c t o r / '   +   g e t U O p t ( ' a c ' )   +   ' . t x t ' , {   m e t h o d : ' g e t ' , o n C o m p l e t e : s h o w W C P P o i n t s   } ) ; }   c a t c h   ( e )   {   }  
 t r y   {   n e w   A j a x . R e q u e s t ( ' / u s e r d a t a / g a m e s / w o r l d l e a g u e s p r e d i c t o r / '   +   g e t U O p t ( ' a c ' )   +   ' . t x t ' , {   m e t h o d : ' g e t ' , o n C o m p l e t e : s h o w W L P o i n t s   } ) ; }   c a t c h   ( e )   {   }  
 }  
 f u n c t i o n   m f c M A l i ( v )  
 { v a r   i = ' < i m g   s r c = \ ' / i m g m l / f l a g s / s / ' + v + ' . g i f \ '   h e i g h t = " 1 3 "   w i d t h = " 1 9 "   a l t = " ' + v + ' "   / > '  
 r e t u r n   ' < l i   i d = " ' +   v   + ' " > < a   h r e f = " j a v a s c r i p t : m f c M A C h a n g e ( \ ' ' + v + ' \ ' ) " > < s p a n > ' + v + ' < / s p a n > ' + i + ' < / a > < / l i > '  
 }  
 f u n c t i o n   m f c N L l i ( v )  
 { v a r   i = ' < i m g   s r c = \ ' / i m g m l / f l a g s / s / ' + v + ' . g i f \ '   h e i g h t = " 1 3 "   w i d t h = " 1 9 "   a l t = " ' + v + ' "   / > '  
 r e t u r n   ' < l i   i d = " n ' +   v   + ' " > < a   h r e f = " j a v a s c r i p t : m f c N L C h a n g e ( \ ' ' + v + ' \ ' ) " > < s p a n > ' + v + ' < / s p a n > ' + i + ' < / a > < / l i > '  
 }  
 f u n c t i o n   m f c M A C h a n g e ( m )  
 {  
 t r y { $ ( g e t U O p t ( ' m 1 ' ) ) . r e m o v e C l a s s N a m e ( ' c u r r e n t ' ) ; } c a t c h ( e ) { }  
 t r y { $ ( g e t U O p t ( ' m 2 ' ) ) . r e m o v e C l a s s N a m e ( ' c u r r e n t ' ) ; } c a t c h ( e ) { }  
 t r y { $ ( g e t U O p t ( ' m 3 ' ) ) . r e m o v e C l a s s N a m e ( ' c u r r e n t ' ) ; } c a t c h ( e ) { }  
 $ ( m ) . a d d C l a s s N a m e ( ' c u r r e n t ' ) ; n e w   A j a x . U p d a t e r ( { s u c c e s s : ' m f c M A C o n t ' } , ' / a s s o c i a t i o n s / a s s o c i a t i o n = ' + m + ' / l i b r a r y / _ m y f i f a c l u b . h t m l ' , { m e t h o d : ' g e t ' } ) ; }  
 f u n c t i o n   m f c N L C h a n g e ( m )  
 {  
 t r y { $ ( ' n ' + g e t U O p t ( ' n 1 ' ) ) . r e m o v e C l a s s N a m e ( ' c u r r e n t ' ) ; } c a t c h ( e ) { }  
 t r y { $ ( ' n ' + g e t U O p t ( ' n 2 ' ) ) . r e m o v e C l a s s N a m e ( ' c u r r e n t ' ) ; } c a t c h ( e ) { }  
 t r y { $ ( ' n ' + g e t U O p t ( ' n 3 ' ) ) . r e m o v e C l a s s N a m e ( ' c u r r e n t ' ) ; } c a t c h ( e ) { }  
 $ ( ' n ' + m ) . a d d C l a s s N a m e ( ' c u r r e n t ' ) ; n e w   A j a x . U p d a t e r ( { s u c c e s s : ' m f c N L C o n t ' } , ' / a s s o c i a t i o n s / a s s o c i a t i o n = ' + m + ' / l i b r a r y / _ m y f i f a c l u b n a t l e a g u e . h t m l ' , { m e t h o d : ' g e t ' } ) ; }  
 f u n c t i o n   s h o w W C F P o i n t s ( o r i g i n a l R e q u e s t )  
 {  
 t r y { v a r   j = e v a l ( ' ( ' + o r i g i n a l R e q u e s t . r e s p o n s e T e x t + ' ) ' )  
 $ ( ' w c f P o s i t i o n ' ) . u p d a t e ( j . r a n k ) ;  
 $ ( ' w c f P o i n t s ' ) . u p d a t e ( j . p o i n t s ) ;  
 $ ( ' w c F a n t a s y ' ) . s h o w ( ) ; } c a t c h ( e ) { }  
 }  
 f u n c t i o n   s h o w W C P P o i n t s ( o r i g i n a l R e q u e s t )  
 {  
 t r y { v a r   j = e v a l ( ' ( ' + o r i g i n a l R e q u e s t . r e s p o n s e T e x t + ' ) ' )  
 $ ( ' w c p P o s i t i o n ' ) . u p d a t e ( j . r a n k ) ;  
 $ ( ' w c p P o i n t s ' ) . u p d a t e ( j . p o i n t s ) ;  
 $ ( ' w c P r e d i c t o r ' ) . s h o w ( ) ; } c a t c h ( e ) { }  
 }  
 f u n c t i o n   s h o w W L P o i n t s ( o r i g i n a l R e q u e s t )  
 {  
 t r y { v a r   j = e v a l ( ' ( ' + o r i g i n a l R e q u e s t . r e s p o n s e T e x t + ' ) ' )  
 $ ( ' w l p P o s i t i o n ' ) . u p d a t e ( j . r a n k ) ;  
 $ ( ' w l p P o i n t s ' ) . u p d a t e ( j . p o i n t s ) ;  
 $ ( ' w l P r e d i c t o r ' ) . s h o w ( ) ; } c a t c h ( e ) { }  
 }  
 f u n c t i o n   s h o w F I W C P o i n t s ( o r i g i n a l R e q u e s t )  
 {  
 t r y {  
 v a r   j = e v a l ( ' ( ' + o r i g i n a l R e q u e s t . r e s p o n s e T e x t + ' ) ' )  
 i f ( j . r ) {  
 $ ( ' m f c F I W C P o s i t i o n ' ) . u p d a t e ( j . r ) ;  
 $ ( ' m f c F I W C P o i n t s ' ) . u p d a t e ( j . p ) ;  
 $ ( ' m f c F I W C ' ) . s h o w ( ) ;  
 }  
 } c a t c h ( e ) { }  
 }  
 f u n c t i o n   m y f i f a c o m W f ( )  
 {  
 i f ( g e t U O p t ( ' u n ' ) = = ' ' ) { $ ( ' m f c ' ) . h i d e ( ) ; $ ( ' m f c N O ' ) . s h o w ( ) ; $ ( ' d C o m m ' ) . s h o w ( ) ; n e w   A j a x . U p d a t e r ( { s u c c e s s : ' m f c N O ' } , ' / w o r l d f o o t b a l l / c l u b f o o t b a l l / _ M A _ f i x t u r e s r e s u l t s . h t m l ' , { m e t h o d : ' g e t ' , e v a l S c r i p t s : t r u e } ) ; r e t u r n ; }  
 $ ( ' d C o m m ' ) . h i d e ( )  
 i f ( g e t U O p t ( ' n 1 ' ) = = ' ' | | g e t U O p t ( ' n 2 ' ) = = ' ' | | g e t U O p t ( ' n 3 ' ) = = ' ' )  
 { $ ( ' d C o m m ' ) . s h o w ( ) }  
 $ ( ' m f c ' ) . s h o w ( ) ;  
 v a r   h = ' ' ; v a r   m = ' ' ;  
 i f ( g e t U O p t ( ' n 1 ' ) . l e n g t h = = 3 ) { h + = m f c M A l i W f ( g e t U O p t ( ' n 1 ' ) ) ; i f ( m = = ' ' ) m = g e t U O p t ( ' n 1 ' ) ; }  
 i f ( g e t U O p t ( ' n 2 ' ) . l e n g t h = = 3 ) { h + = m f c M A l i W f ( g e t U O p t ( ' n 2 ' ) ) ; i f ( m = = ' ' ) m = g e t U O p t ( ' n 2 ' ) ; }  
 i f ( g e t U O p t ( ' n 3 ' ) . l e n g t h = = 3 ) { h + = m f c M A l i W f ( g e t U O p t ( ' n 3 ' ) ) ; i f ( m = = ' ' ) m = g e t U O p t ( ' n 3 ' ) ; }  
 i f ( m ! = ' ' ) { $ ( ' m f c M A N a v ' ) . u p d a t e ( ' < u l > ' + h + ' < / u l > ' ) ; m f c M A C h a n g e W f ( m ) ; }  
 h = ' ' ; m = ' ' ;  
 $ ( ' m f c N O ' ) . h i d e ( ) ;  
 }  
 f u n c t i o n   m f c M A l i W f ( v )  
 { v a r   i = ' < i m g   s r c = \ ' / i m g m l / f l a g s / s / ' + v + ' . g i f \ '   h e i g h t = " 1 3 "   w i d t h = " 1 9 "   a l t = " ' + v + ' "   / > '  
 r e t u r n   ' < l i   i d = " ' +   v   + ' " > < a   h r e f = " j a v a s c r i p t : m f c M A C h a n g e W f ( \ ' ' + v + ' \ ' ) " > < s p a n > ' + v + ' < / s p a n > ' + i + ' < / a > < / l i > '  
 }  
 f u n c t i o n   m f c M A C h a n g e W f ( m )  
 { $ ( g e t U O p t ( ' n 1 ' ) ) . r e m o v e C l a s s N a m e ( ' c u r r e n t ' ) ;  
 $ ( g e t U O p t ( ' n 2 ' ) ) . r e m o v e C l a s s N a m e ( ' c u r r e n t ' ) ;  
 $ ( g e t U O p t ( ' n 3 ' ) ) . r e m o v e C l a s s N a m e ( ' c u r r e n t ' ) ;  
 $ ( m ) . a d d C l a s s N a m e ( ' c u r r e n t ' ) ; n e w   A j a x . U p d a t e r ( {   s u c c e s s : ' m f c M A C o n t '   } , ' / w o r l d f o o t b a l l / c l u b f o o t b a l l / a s s o c i a t i o n = '   +   m   +   ' / _ M A _ f i x t u r e s r e s u l t s . h t m l ' , {   m e t h o d : ' g e t '   } ) ;  
 }  
 v a r   M y C l u b R H N = {  
 i n i t : f u n c t i o n ( )   {  
 i f ( g e t U O p t ( ' u n ' ) = = ' ' )   {  
 }   e l s e   i f ( g e t U O p t ( ' p l ' ) = = ' 1 ' )   {  
 $ j ( ' # m y f i f a c o m _ n o l o g i n   # t e a s e r T i t l e ' ) . h i d e ( ) ;  
 v a r   a v a t a r U r l = " / u s e r d a t a / "   +   s p l i t R e s o u r c e I d ( g e t U O p t ( ' i d ' ) , 3 )   +   " / a v a t a r _ 2 4 . p n g " ;  
 $ j ( ' # m y f i f a c o m _ n o l o g i n   . m y A v a t a r ' ) . h t m l ( " < d i v > < i m g   s r c = ' "   +   a v a t a r U r l   +   " '   / > < / d i v > " ) ;  
 $ j ( ' # m y f i f a c o m _ n o l o g i n   . m y N a m e ' ) . h t m l ( g e t U O p t ( ' u n ' ) ) ;  
 $ j ( ' # m y f i f a c o m _ n o l o g i n   . m y C o u n t r y ' ) . h t m l ( g e t U O p t ( ' c t ' ) ) ;  
 $ j ( ' # m y f i f a c o m _ n o l o g i n   . m y P r o f i l e ' ) . s h o w ( ) ;  
 $ j ( ' # m y f i f a c o m _ n o l o g i n   a # t a k e T h e T o u r ' ) . h i d e ( ) ;  
 $ j ( ' # m y f i f a c o m _ n o l o g i n   a # a c t i v a t i o n ' ) . s h o w ( ) ;  
 }   e l s e   {  
 $ j ( ' # m y f i f a c o m _ n o l o g i n ' ) . h i d e ( ) ;  
 v a r   a v a t a r U r l = " / u s e r d a t a / "   +   s p l i t R e s o u r c e I d ( g e t U O p t ( ' i d ' ) , 3 )   +   " / a v a t a r _ 2 4 . p n g " ;  
 $ j ( ' # m y f i f a c o m _ c o n t e n t   . m y A v a t a r ' ) . h t m l ( " < d i v > < i m g   s r c = ' "   +   a v a t a r U r l   +   " '   / > < / d i v > " ) ;  
 $ j ( ' # m y f i f a c o m _ c o n t e n t   . m y N a m e ' ) . h t m l ( g e t U O p t ( ' u n ' ) ) ;  
 $ j ( ' # m y f i f a c o m _ c o n t e n t   . m y C o u n t r y ' ) . h t m l ( g e t U O p t ( ' c t ' ) ) ;  
 $ j ( ' # m y f i f a c o m _ n o l o g i n   . m y P r o f i l e ' ) . s h o w ( ) ;  
 $ j ( ' # m y f i f a c o m _ c o n t e n t   # m y G a m e s ' ) . l o a d ( ' / l i b r a r y / h o m e / _ m y g a m e s . h t m x ' ) ;  
 i f ( ( g e t U O p t ( ' m 1 ' )   +   ' ' ) . l e n g t h < 3 & & ( g e t U O p t ( ' m 2 ' )   +   ' ' ) . l e n g t h < 3 & & ( g e t U O p t ( ' m 3 ' )   +   ' ' ) . l e n g t h < 3 )  
 M y C l u b R H N . t o l I n i t ( ' m 1 ' , g e t U O p t ( ' c t ' ) ) ;  
 e l s e  
 M y C l u b R H N . t o l I n i t ( ' m 1 ' ) ; M y C l u b R H N . t o l I n i t ( ' m 2 ' ) ; M y C l u b R H N . t o l I n i t ( ' m 3 ' ) ;  
 i f ( ( g e t U O p t ( ' n 1 ' )   +   ' ' ) . l e n g t h < 3 & & ( g e t U O p t ( ' n 2 ' )   +   ' ' ) . l e n g t h < 3 & & ( g e t U O p t ( ' n 3 ' )   +   ' ' ) . l e n g t h < 3 )  
 M y C l u b R H N . t o l I n i t ( ' n 1 ' , g e t U O p t ( ' c t ' ) ) ;  
 e l s e  
 M y C l u b R H N . t o l I n i t ( ' n 1 ' ) ; M y C l u b R H N . t o l I n i t ( ' n 2 ' ) ; M y C l u b R H N . t o l I n i t ( ' n 3 ' ) ;  
 M y C l u b R H N . t o l S e l e c t ( ' t ' ) ;  
 $ j ( ' # m y f i f a c o m _ c o n t e n t   # m y C l u b N e w s   . i C ' ) . l o a d ( ' / t h e c l u b / l i b r a r y / _ c l u b n e w s h p . h t m l ' ) ;  
 $ j ( ' # m y f i f a c o m _ c o n t e n t ' ) . s h o w ( ) ;  
 v a r   p o l l = $ j ( ' . i e   d i v . p o l l C o n t a i n e r   . i C   d i v ' ) ;  
 i f ( p o l l . s i z e ( ) > 0 )   {  
 p o l l . h i d e ( 1 , f u n c t i o n ( )   {   p o l l . s h o w ( ) ; } ) ;  
 }  
 }  
 } ,  
 t o l I n i t : f u n c t i o n ( s t r I d , i d )   {  
 i f ( i d = = n u l l | | i d = = ' ' )  
 i d = g e t U O p t ( s t r I d ) ;  
 i f ( i d . l e n g t h ! = 3 )   {  
 $ j ( ' l i # '   +   s t r I d ) . h i d e ( ) ;  
 }   e l s e   {  
 v a r   l n k = $ j ( ' l i # '   +   s t r I d   +   '   a ' ) ;  
 l n k . h t m l ( " < i m g   w i d t h = ' 1 9 '   h e i g h t = ' 1 3 '   s r c = ' / i m g m l / f l a g s / s / "   +   i d   +   " . g i f ' > < s p a n > "   +   i d   +   " < / s p a n > " ) ;  
 l n k . a t t r ( ' h r e f ' , " j a v a s c r i p t : M y C l u b R H N . t o l U p d a t e ( ' "   +   s t r I d   +   " ' , ' "   +   i d   +   " ' ) ; " ) ;  
 i f ( s t r I d = = ' m 1 ' | | s t r I d = = ' n 1 ' )  
 M y C l u b R H N . t o l U p d a t e ( s t r I d , i d ) ;  
 }  
 } ,  
 t o l U p d a t e : f u n c t i o n ( s t r I d , i d )   {  
 i f ( s t r I d = = " m 1 " | | s t r I d = = " m 2 " | | s t r I d = = " m 3 " )   {  
 $ j ( ' # m y T e a m s F l a g s   l i ' ) . r e m o v e C l a s s ( ' c u r r e n t ' ) ;  
 $ j ( ' # m y T e a m s F l a g s   l i # '   +   s t r I d ) . a d d C l a s s ( ' c u r r e n t ' ) ;  
 $ j ( ' # m y T e a m s ' ) . l o a d ( ' / a s s o c i a t i o n s / a s s o c i a t i o n = '   +   i d   +   ' / l i b r a r y / _ m y f i f a c l u b . h t m l ' ) ;  
 }   e l s e   i f ( s t r I d = = " n 1 " | | s t r I d = = " n 2 " | | s t r I d = = " n 3 " )   {  
 $ j ( ' # m y L e a g u e s F l a g s   l i ' ) . r e m o v e C l a s s ( ' c u r r e n t ' ) ;  
 $ j ( ' # m y L e a g u e s F l a g s   l i # '   +   s t r I d ) . a d d C l a s s ( ' c u r r e n t ' ) ;  
 $ j ( ' # m y L e a g u e s ' ) . l o a d ( ' / a s s o c i a t i o n s / a s s o c i a t i o n = '   +   i d   +   ' / l i b r a r y / _ m y f i f a c l u b n a t l e a g u e . h t m l ' ) ;  
 }  
 } ,  
 t o l S e l e c t : f u n c t i o n ( o p t )   {  
 i f ( o p t = = ' l ' )   {  
 $ j ( ' # t o l _ t ' ) . r e m o v e C l a s s ( ' c u r r e n t ' ) ;  
 $ j ( ' # t o l _ l ' ) . a d d C l a s s ( ' c u r r e n t ' ) ;  
 $ j ( ' # m y T e a m s F l a g s ' ) . h i d e ( ) ;  
 $ j ( ' # m y L e a g u e s F l a g s ' ) . s h o w ( ) ;  
 $ j ( ' # m y T e a m s ' ) . h i d e ( ) ;  
 $ j ( ' # m y L e a g u e s ' ) . s h o w ( ) ;  
 }   e l s e   {  
 $ j ( ' # t o l _ t ' ) . a d d C l a s s ( ' c u r r e n t ' ) ;  
 $ j ( ' # t o l _ l ' ) . r e m o v e C l a s s ( ' c u r r e n t ' ) ;  
 $ j ( ' # m y T e a m s F l a g s ' ) . s h o w ( ) ;  
 $ j ( ' # m y L e a g u e s F l a g s ' ) . h i d e ( ) ;  
 $ j ( ' # m y T e a m s ' ) . s h o w ( ) ;  
 $ j ( ' # m y L e a g u e s ' ) . h i d e ( ) ;  
 }  
 } ,  
 s h o w G a m e R e s u l t s : f u n c t i o n ( s e r v i c e , d a t a f i l e )   {  
 n e w   A j a x . R e q u e s t ( d a t a f i l e , {  
 m e t h o d : ' g e t ' ,  
 o n S u c c e s s : f u n c t i o n ( o r i g i n a l R e q u e s t )   {  
 t r y   {  
 v a r   j = e v a l ( ' ( '   +   o r i g i n a l R e q u e s t . r e s p o n s e T e x t   +   ' ) ' )  
 $ ( s e r v i c e   +   ' P o i n t s ' ) . u p d a t e ( j . p o i n t s ) ;  
 $ ( s e r v i c e   +   ' R a n k ' ) . u p d a t e ( j . r a n k ) ;  
 v a r   p e r f o r m a n c e = N u m b e r ( j . l a s t _ r a n k )   -   N u m b e r ( j . r a n k ) ;  
 i f ( p e r f o r m a n c e > 0 )   {  
 $ ( s e r v i c e   +   ' P e r f o r m a n c e ' ) . u p d a t e ( ' ( < s p a n   s t y l e = " c o l o r : g r e e n " > + '   +   p e r f o r m a n c e   +   ' < / s p a n > ) ' ) ;  
 }   e l s e   i f ( p e r f o r m a n c e < 0 )   {  
 $ ( s e r v i c e   +   ' P e r f o r m a n c e ' ) . u p d a t e ( ' ( < s p a n   s t y l e = " c o l o r : r e d " > '   +   p e r f o r m a n c e   +   ' < / s p a n > ) ' ) ;  
 }  
 $ ( ' m y G a m e _ '   +   s e r v i c e   +   ' S c o r e ' ) . s h o w ( ) ;  
 }   c a t c h   ( e )   {   }  
 }  
 } ) ;  
 }  
 }  
 f u n c t i o n   o p P o p u p ( m o d e )   {  
 i f ( m o d e = = ' l o g g e d ' )   {  
 $ ( ' p o p u p _ l o g i n ' ) . s h o w ( ) ;  
 $ ( ' p L o g i n ' ) . s h o w ( ) ;  
 $ ( ' q l L o g g e d ' ) . s h o w ( ) ;  
 $ ( ' a _ u p L o g g e d ' ) . s h o w ( ) ;  
 $ ( ' i _ u p L o g g e d ' ) . s h o w ( ) ;  
 $ ( ' a _ d o w n L o g g e d ' ) . h i d e ( ) ;  
 $ ( ' i _ d o w n L o g g e d ' ) . h i d e ( ) ;  
 $ ( ' l n k L o g g e d ' ) . a d d C l a s s N a m e ( ' c u r r e n t ' ) ;  
 $ ( ' l n k L o g g e d ' ) . r e m o v e C l a s s N a m e ( ' l n k ' ) ;  
 $ ( ' l n k L o g g e d ' ) . r e m o v e C l a s s N a m e ( ' l o g g e d ' ) ;  
 r e t u r n ;  
 }  
 $ ( ' p o p u p _ l o g i n ' ) . s h o w ( ) ;  
 $ ( ' p L o g i n ' ) . s h o w ( ) ;  
 $ ( ' a _ d o w n ' ) . h i d e ( ) ;  
 $ ( ' i _ d o w n ' ) . h i d e ( ) ;  
 $ ( ' a _ u p ' ) . s h o w ( ) ;  
 $ ( ' i _ u p ' ) . s h o w ( ) ;  
 $ ( ' l o g i n T h e c l u b ' ) . s h o w ( ) ;  
 $ ( ' l n k L o g ' ) . a d d C l a s s N a m e ( ' c u r r e n t ' ) ;  
 $ ( ' l n k L o g ' ) . r e m o v e C l a s s N a m e ( ' l n k ' ) ;  
 }  
 f u n c t i o n   c l P o p u p ( m o d e )   {  
 i f ( m o d e = = ' l o g g e d ' )   {  
 $ ( ' p o p u p _ l o g i n ' ) . h i d e ( ) ;  
 $ ( ' p L o g i n ' ) . h i d e ( ) ;  
 $ ( ' a _ d o w n L o g g e d ' ) . s h o w ( ) ;  
 $ ( ' i _ d o w n L o g g e d ' ) . s h o w ( ) ;  
 $ ( ' a _ u p L o g g e d ' ) . h i d e ( ) ;  
 $ ( ' i _ u p L o g g e d ' ) . h i d e ( ) ;  
 $ ( ' l n k L o g g e d ' ) . r e m o v e C l a s s N a m e ( ' c u r r e n t ' ) ;  
 $ ( ' l n k L o g g e d ' ) . a d d C l a s s N a m e ( ' l n k ' ) ;  
 r e t u r n ;  
 }  
 t r y   {  
 $ ( ' p o p u p _ l o g i n ' ) . h i d e ( ) ;  
 $ ( ' p L o g i n ' ) . h i d e ( ) ;  
 $ ( ' a _ d o w n ' ) . s h o w ( ) ;  
 $ ( ' i _ d o w n ' ) . s h o w ( ) ;  
 $ ( ' a _ u p ' ) . h i d e ( ) ;  
 $ ( ' i _ u p ' ) . h i d e ( ) ;  
 $ ( ' l n k L o g ' ) . r e m o v e C l a s s N a m e ( ' c u r r e n t ' ) ;  
 $ ( ' l n k L o g ' ) . a d d C l a s s N a m e ( ' l n k ' ) ;  
 }   c a t c h   ( e )   {   }  
 }  
 f u n c t i o n   o n L o g i n ( )   {  
 v a r   c = C o o k i e . g e t ( ' F I F A C o m C l u b ' ) ;  
 b L o g g e d I n = f a l s e ;  
 i f ( c ! = n u l l & & c ! = = u n d e f i n e d )   {  
 t r y   {   i f ( c . t o Q u e r y P a r a m s ( ) . u n . l e n g t h > 0 )   b L o g g e d I n = t r u e ; $ ( ' L o g g e d ' ) . h i d e ( ) ; }  
 c a t c h   ( e )   {   }  
 }  
 i f ( ! b L o g g e d I n )  
 {   $ ( ' a u t _ S I ' ) . h i d e ( ) ;  
 $ ( ' L o g g e d ' ) . h i d e ( ) ;  
 $ ( ' n o L o g g e d ' ) . s h o w ( ) ;  
 r e t u r n ;  
 }  
 $ ( ' n o L o g g e d ' ) . h i d e ( ) ;  
 $ ( ' L o g g e d ' ) . s h o w ( ) ;  
 $ ( ' p o p u p _ l o g i n ' ) . h i d e ( ) ;  
 $ ( ' c U s e r ' ) . u p d a t e ( c . t o Q u e r y P a r a m s ( ) . u n ) ;  
 $ ( ' c U s e r 2 ' ) . u p d a t e ( c . t o Q u e r y P a r a m s ( ) . u n ) ;  
 c h a n g e A b s L i n k ( ' # n a v B a r B o t t o m ' , ' / t h e c l u b / i n d e x . h t m l ' , ' / t h e c l u b / m y p r o f i l e / i n d e x . h t m x ' ) ;  
 i f ( $ j ( " # l e v e l 1 . t h e C l u b H e a d e r " ) . s i z e ( ) > 0 )   {  
 $ ( " l e v e l 1 " ) . o n c l i c k = " " ;  
 $ j ( " # l e v e l 1 . t h e C l u b H e a d e r " ) . c l i c k ( f u n c t i o n ( )   {   d o c u m e n t . l o c a t i o n . h r e f = ' / t h e c l u b / m y p r o f i l e / i n d e x . h t m x ' ; } ) ;  
 $ j ( " # l e v 1 M e n u   a [ h r e f $ = ' / t h e c l u b / i n d e x . h t m l ' ] " ) . a t t r ( " h r e f " , " / t h e c l u b / m y p r o f i l e / i n d e x . h t m x " ) ;  
 }  
 v a r   w = C o o k i e . g e t ( ' w a r n e d ' ) ;  
 i f ( w = = n u l l | | w = = u n d e f i n e d | | w ! = " t r u e " )   {  
 c h e c k I f W a r n e d ( ) ;  
 }  
 r e t u r n ;  
 }  
 f u n c t i o n   c l e a n L o g i n ( )   {  
 t r y   {  
 v a r   e = $ ( ' c p _ e m a i l ' ) ;  
 i f ( e . h a s C l a s s N a m e ( ' t o c l e a n ' ) )   {  
 e . r e m o v e C l a s s N a m e ( ' t o c l e a n ' ) ;  
 e . v a l u e = ' ' ;  
 }  
 v a r   p = $ ( ' c p _ p a s s w o r d ' ) ;  
 i f ( p . h a s C l a s s N a m e ( ' t o c l e a n ' ) )   {  
 p . r e m o v e C l a s s N a m e ( ' t o c l e a n ' ) ;  
 p . v a l u e = ' ' ;  
 }  
 }   c a t c h   ( e x c )   {   }  
 }  
 f u n c t i o n   c h a n g e A b s L i n k ( s e l , o l d U , n e w U )   {  
 t r y   {  
 v a r   e l = $ j ( s e l   +   '   a [ h r e f $ = '   +   o l d U   +   ' ] ' ) ;  
 v a r   u = e l . a t t r ( ' h r e f ' ) ;  
 u = u . s u b s t r i n g ( 0 , u . i n d e x O f ( o l d U ) )   +   n e w U ;  
 e l . a t t r ( ' h r e f ' , u ) ;  
 }   c a t c h ( e )   { }  
 }  
  
 f u n c t i o n   s p l i t R e s o u r c e I d ( i d , s p l i t L e n )   {  
 v a r   r e t = ' ' ;  
 i d = i d . t o S t r i n g ( ) ;  
 i f ( i d ! = ' ' )   {  
 f o r   ( v a r   i = 0 ; i < ( i d . l e n g t h   -   i d . l e n g t h   %   s p l i t L e n )   /   s p l i t L e n ; i + + )   {  
 r e t   + =   i d . s u b s t r ( i   *   s p l i t L e n , s p l i t L e n )   +   ' / ' ;  
 }  
 i f ( i   *   s p l i t L e n < i d . l e n g t h )   r e t   + =   i d . s u b s t r ( i   *   s p l i t L e n )   +   ' / ' ;  
 r e t = r e t . s l i c e ( 0 , - 1 ) ;  
 }  
 r e t u r n   r e t ;  
 }  
 v a r   R a t i n g = {  
 i d : 0 ,  
 r t : 0 ,  
 i d t y p e : 0 ,  
 i n i t : f u n c t i o n ( e l e m e n t I D , v i d e o M o d e )   {  
 t h i s . i d = e l e m e n t I D ;  
 t h i s . i d t y p e = 0 ;  
 t h i s . v i d e o M o d e = ( v i d e o M o d e = = = u n d e f i n e d | | v i d e o M o d e = = n u l l )   ?   f a l s e : v i d e o M o d e ;  
 v a r   u = " / n e w s c e n t r e / r a t i n g / n e w s / "   +   s p l i t R e s o u r c e I d ( t h i s . i d , i d S p l i t L e n )   +   " / v o t e s . x m l ? r n d = "   +   M a t h . r a n d o m ( ) ;  
 v a r   a = n e w   A j a x . R e q u e s t ( u , {   m e t h o d : ' g e t ' , o n C o m p l e t e : R a t i n g . o n C a l l B a c k   } ) ;  
 } ,  
 i n i t F G : f u n c t i o n ( e l e m e n t I D , v i d e o M o d e , l a n g )   {  
 t h i s . i d = e l e m e n t I D ;  
 t h i s . i d t y p e = 1 ;  
 t h i s . v i d e o M o d e = ( v i d e o M o d e = = = u n d e f i n e d | | v i d e o M o d e = = n u l l )   ?   f a l s e : v i d e o M o d e ;  
 v a r   u ;  
 i f ( l a n g = = ' a r ' )   {  
 u = " / n e w s c e n t r e / r a t i n g / _ f g , i d = "   +   t h i s . i d   +   " . x m l ? r n d = "   +   M a t h . r a n d o m ( ) ;  
 }  
 e l s e   {  
 u = " / n e w s c e n t r e / r a t i n g / p h o t o / "   +   s p l i t R e s o u r c e I d ( t h i s . i d , i d S p l i t L e n )   +   " / v o t e s . x m l ? r n d = "   +   M a t h . r a n d o m ( ) ;  
 }  
 v a r   a = n e w   A j a x . R e q u e s t ( u , {   m e t h o d : ' g e t ' , o n C o m p l e t e : R a t i n g . o n C a l l B a c k   } ) ;  
 } ,  
 i n i t V D : f u n c t i o n ( e l e m e n t I D , v i d e o M o d e )   {  
 t h i s . i d = e l e m e n t I D ;  
 t h i s . i d t y p e = 2 ;  
 t h i s . v i d e o M o d e = ( v i d e o M o d e = = = u n d e f i n e d | | v i d e o M o d e = = n u l l )   ?   f a l s e : v i d e o M o d e ;  
 v a r   u = " / n e w s c e n t r e / r a t i n g / v i d e o / "   +   s p l i t R e s o u r c e I d ( t h i s . i d , i d S p l i t L e n )   +   " / v o t e s . x m l ? r n d = "   +   M a t h . r a n d o m ( ) ;  
 v a r   a = n e w   A j a x . R e q u e s t ( u , {   m e t h o d : ' g e t ' , o n C o m p l e t e : R a t i n g . o n C a l l B a c k   } ) ;  
 } ,  
 i s A l r e a d y R a t e d : f u n c t i o n ( )   {  
 v a r   c = C o o k i e . g e t ( " r a t e " ) ;  
 i f ( c = = n u l l )   r e t u r n   f a l s e ;  
 v a r   v = e v a l ( ' c . t o Q u e r y P a r a m s ( ) . v '   +   t h i s . i d ) ;  
 r e t u r n   ( v = = 1 ) ;  
 } ,  
 r a t e : f u n c t i o n ( i d x )   {  
 i f ( t h i s . i d > 0 & & i d x > 0 & & t h i s . i s A l r e a d y R a t e d ( ) )   r e t u r n ;  
 v a r   u = " / n e w s c e n t r e / r a t i n g / r n d = "   +   M a t h . r a n d o m ( )   +   " / _ , i d = "   +   t h i s . i d   +   " . h t m x ? t = "   +   t h i s . i d t y p e   +   " & v = "   +   i d x ;  
 v a r   a = n e w   A j a x . R e q u e s t ( u , {   m e t h o d : ' g e t ' , o n C o m p l e t e : R a t i n g . o n C a l l B a c k , a s y n c h r o n o u s : f a l s e   } ) ;  
 i f ( i d x = = 0 )   r e t u r n ;  
 v a r   c = C o o k i e . g e t ( " r a t e " ) ;  
 i f ( c ! = n u l l )   {   c   + =   ' & ' ; }   e l s e   {   c = ' ' ; }  
 c   + =   ' v '   +   t h i s . i d   +   ' = 1 ' ;  
 C o o k i e . s e t ( ' r a t e ' , c , 1 , ' . ' ) ;  
 w A n a l y t i c s . o n R a t i n g S u b m i s s i o n ( ) ;  
 } ,  
 o n C a l l B a c k : f u n c t i o n ( o r i g i n a l R e s p o n s e )   {  
 i f ( o r i g i n a l R e s p o n s e . r e s p o n s e T e x t = = ' ' )   r e t u r n ;  
 R a t i n g . r t = p a r s e F l o a t ( o r i g i n a l R e s p o n s e . r e s p o n s e T e x t . t o Q u e r y P a r a m s ( ) . a v g ) ;  
 v a r   t x = o r i g i n a l R e s p o n s e . r e s p o n s e T e x t . t o Q u e r y P a r a m s ( ) . t e x t ;  
 R a t i n g . u n h o v e r ( ) ;  
 $ j ( ' # v o t e R e s u l t s ' ) . h t m l ( t x . g s u b ( " ' " , " " ) ) ;  
 R a t i n g . u n h o v e r T o p ( ) ;  
 $ j ( ' # v o t e R e s u l t s T o p ' ) . h t m l ( t x . g s u b ( " ' " , " " ) ) ;  
 } ,  
 g e t I c o n P a t h : f u n c t i o n ( i c o n )   {  
 i f ( t h i s . v i d e o M o d e )  
 r e t u r n   " / i m g m l / v i d e o p l a y e r / "   +   i c o n ;  
 e l s e  
 r e t u r n   " / i m g m l / i c o n s / "   +   i c o n ;  
 } ,  
 h o v e r : f u n c t i o n ( i d x )   {  
 i f ( t h i s . i s A l r e a d y R a t e d ( ) )   r e t u r n ;  
 v a r   i ;  
 f o r   ( i = 1 ; i < = 5 ; i + + )   {  
 v a r   s r c = t h i s . g e t I c o n P a t h ( " s t a r v . g i f " ) ;  
 i f ( i < = i d x )   s r c = t h i s . g e t I c o n P a t h ( " s t a r v s . g i f " ) ;  
 $ j ( " # s t a r _ "   +   i ) . a t t r ( " s r c " , s r c ) ;  
 }  
 } ,  
 h o v e r T o p : f u n c t i o n ( i d x )   {  
 i f ( t h i s . i s A l r e a d y R a t e d ( ) )   r e t u r n ;  
 v a r   i ;  
 f o r   ( i = 1 ; i < = 5 ; i + + )   {  
 v a r   s r c = t h i s . g e t I c o n P a t h ( " s t a r v . g i f " ) ;  
 i f ( i < = i d x )   s r c = t h i s . g e t I c o n P a t h ( " s t a r v s . g i f " ) ;  
 $ j ( " # s t a r T o p _ "   +   i ) . a t t r ( " s r c " , s r c ) ;  
 }  
 } ,  
 u n h o v e r : f u n c t i o n ( )   {  
 v a r   i ;  
 f o r   ( i = 1 ; i < = 5 ; i + + )   {  
 v a r   i m = ( M a t h . r o u n d ( t h i s . r t ) > = i )   ?   " s t a r 1 . g i f " : " s t a r 0 . g i f " ;  
 $ j ( " # s t a r _ "   +   i ) . a t t r ( " s r c " , t h i s . g e t I c o n P a t h ( i m ) ) ;  
 }  
 } ,  
 u n h o v e r T o p : f u n c t i o n ( )   {  
 v a r   i ;  
 f o r   ( i = 1 ; i < = 5 ; i + + )   {  
 v a r   i m = ( M a t h . r o u n d ( t h i s . r t ) > = i )   ?   " s t a r 1 . g i f " : " s t a r 0 . g i f " ;  
 $ j ( " # s t a r T o p _ "   +   i ) . a t t r ( " s r c " , t h i s . g e t I c o n P a t h ( i m ) ) ;  
 }  
 }  
 }  
 v a r   C o m m e n t = {  
 n e w s I d : 0 ,  
 n C o m m e n t s : 0 , n P a r e n t s : 0 , n P a g e s : 1 , c u r r P a g e : 1 ,  
 a u t o O p e n F o r m : f a l s e ,  
 i n i t : f u n c t i o n ( n e w s I d , l a t e s t )   {  
 t h i s . n e w s I d = n e w s I d ;  
 i f ( l a t e s t = = u n d e f i n e d )   {  
 v a r   u = " / n e w s c e n t r e / c o m m e n t / "   +   s p l i t R e s o u r c e I d ( t h i s . n e w s I d , i d S p l i t L e n )   +   " / i n d e x . h t m l " ;  
 v a r   a = n e w   A j a x . R e q u e s t ( u , {   m e t h o d : ' g e t ' , o n C o m p l e t e : C o m m e n t . d i s p l a y C o m m e n t s F i r s t   } ) ;  
 }  
 i f ( C o m m e n t . a u t o O p e n F o r m )   {  
 i f ( b L o g g e d I n )   {  
 C o m m e n t . a d d C o m m e n t s ( C o m m e n t . n e w s I d ) ;  
 }  
 C o m m e n t . a u t o O p e n F o r m = f a l s e ;  
 }  
 } ,  
 p a g e N a v U p d a t e : f u n c t i o n ( )   {  
 v a r   p a g e s T o S h o w = 7 ;  
 v a r   s t a r t , e n d ;  
 v a r   h a l f = M a t h . f l o o r ( p a g e s T o S h o w   /   2 ) ;  
 i f ( p a g e s T o S h o w > = C o m m e n t . n P a g e s )   {  
 s t a r t = 1 ;  
 e n d = C o m m e n t . n P a g e s ;  
 }   e l s e   i f ( C o m m e n t . c u r r P a g e < = h a l f )   {  
 s t a r t = 1 ;  
 e n d = p a g e s T o S h o w ;  
 }   e l s e   i f ( C o m m e n t . c u r r P a g e > = C o m m e n t . n P a g e s   -   h a l f )   {  
 s t a r t = C o m m e n t . n P a g e s   -   p a g e s T o S h o w ;  
 e n d = C o m m e n t . n P a g e s ;  
 }   e l s e   {  
 s t a r t = C o m m e n t . c u r r P a g e   -   h a l f ;  
 e n d = C o m m e n t . c u r r P a g e   +   h a l f ;  
 }  
 v a r   b u f = " " ;  
 i f ( s t a r t > 1 )   {  
 b u f   + =   " < a   h r e f = ' j a v a s c r i p t : C o m m e n t . c h a n g e P a g e ( 1 ) ' > 1 < / a > " ;  
 i f ( s t a r t > 2 )   {  
 b u f   + =   " < s p a n > . . . < / s p a n > " ;  
 }  
 }  
 f o r   ( v a r   i = s t a r t ; i < = e n d ; i + + )   {  
 i f ( i = = C o m m e n t . c u r r P a g e )   {  
 b u f   + =   " < s p a n   c l a s s = ' c u r r ' > "   +   C o m m e n t . c u r r P a g e   +   " < / s p a n > " ;  
 }   e l s e   {  
 b u f   + =   " < a   h r e f = ' j a v a s c r i p t : C o m m e n t . c h a n g e P a g e ( "   +   i   +   " ) ' > "   +   i   +   " < / a > " ;  
 }  
 }  
 i f ( e n d < C o m m e n t . n P a g e s )   {  
 i f ( e n d < C o m m e n t . n P a g e s   -   1 )   {  
 b u f   + =   " < s p a n > . . . < / s p a n > " ;  
 }  
 b u f   + =   " < a   h r e f = ' j a v a s c r i p t : C o m m e n t . c h a n g e P a g e ( "   +   C o m m e n t . n P a g e s   +   " ) ' > "   +   C o m m e n t . n P a g e s   +   " < / a > " ;  
 }  
 $ j ( " # c V i e w A l l " ) . h t m l ( b u f ) ;  
 } ,  
 c h a n g e P a g e : f u n c t i o n ( n e w P a g e )   {  
 C o m m e n t . c u r r P a g e = n e w P a g e ;  
 i f ( n e w P a g e = = 1 )   {  
 v a r   u = " / n e w s c e n t r e / c o m m e n t / "   +   s p l i t R e s o u r c e I d ( t h i s . n e w s I d , i d S p l i t L e n )   +   " / i n d e x . h t m l " ;  
 v a r   a = n e w   A j a x . R e q u e s t ( u , {   m e t h o d : ' g e t ' , o n C o m p l e t e : C o m m e n t . d i s p l a y C o m m e n t s F i r s t   } ) ;  
 }   e l s e   {  
 v a r   p a g e I d = C o m m e n t . n P a g e s   -   n e w P a g e   +   1 ;  
 v a r   u = " / n e w s c e n t r e / c o m m e n t / "   +   s p l i t R e s o u r c e I d ( t h i s . n e w s I d , i d S p l i t L e n )   +   " / p a g e = "   +   p a g e I d   +   " . h t m l " ;  
 v a r   a = n e w   A j a x . R e q u e s t ( u , {   m e t h o d : ' g e t ' , o n C o m p l e t e : C o m m e n t . d i s p l a y C o m m e n t s   } ) ;  
 }  
 } ,  
 d i s p l a y C o m m e n t s F i r s t : f u n c t i o n ( o r i g i n a l R e s p o n s e )   {  
 v a r   d = $ ( ' c o m m e n t s _ '   +   C o m m e n t . n e w s I d ) ;  
 d . u p d a t e ( o r i g i n a l R e s p o n s e . r e s p o n s e T e x t ) ;  
 i f ( o r i g i n a l R e s p o n s e . r e s p o n s e T e x t = = ' ' )   {  
 $ ( ' l i s t C o m m e n t ' ) . h i d e ( ) ;  
 }   e l s e   {  
 C o m m e n t . n C o m m e n t s = p a r s e I n t ( $ j ( " . t o t a l C   s p a n " ) . t e x t ( ) ) ;  
 C o m m e n t . n P a r e n t s = p a r s e I n t ( $ j ( " . t o t a l P " ) . t e x t ( ) ) ;  
 i f ( C o m m e n t . n P a r e n t s > c o m m e n t s P e r P a g e )   {  
 i f ( C o m m e n t . n P a r e n t s   %   c o m m e n t s P e r P a g e = = 0  
 | | C o m m e n t . n P a r e n t s   %   c o m m e n t s P e r P a g e > c o m m e n t s P e r P a g e   /   2 )   {  
 C o m m e n t . n P a g e s = M a t h . c e i l ( C o m m e n t . n P a r e n t s   /   c o m m e n t s P e r P a g e ) ;  
 }   e l s e   {  
 C o m m e n t . n P a g e s = M a t h . c e i l ( C o m m e n t . n P a r e n t s   /   c o m m e n t s P e r P a g e )   -   1 ;  
 }  
 C o m m e n t . p a g e N a v U p d a t e ( ) ;  
 }   e l s e   {  
 C o m m e n t . n P a g e s = 1 ;  
 }  
 }  
 } ,  
 d i s p l a y C o m m e n t s : f u n c t i o n ( o r i g i n a l R e s p o n s e )   {  
 v a r   d = $ ( ' c o m m e n t s _ '   +   C o m m e n t . n e w s I d ) ;  
 d . u p d a t e ( o r i g i n a l R e s p o n s e . r e s p o n s e T e x t ) ;  
 $ j ( " . t o t a l C   s p a n " ) . t e x t ( C o m m e n t . n C o m m e n t s ) ;  
 C o m m e n t . p a g e N a v U p d a t e ( ) ;  
 } ,  
 t o g g l e R e p l i e s : f u n c t i o n ( p I d , h i g l i g h t e d )   {  
 v a r   l ;  
 i f ( h i g l i g h t e d )   {  
 l = $ j ( " # c h _ "   +   p I d   +   "   . c _ r e p l i e s C o u n t " ) ;  
 }   e l s e   {  
 l = $ j ( " # c _ "   +   p I d   +   "   . c _ r e p l i e s C o u n t " ) ;  
 }  
 i f ( l . h a s C l a s s ( " c l o s e d " ) )   {  
 l . r e m o v e C l a s s ( " c l o s e d " ) ;  
 }   e l s e   {  
 l . a d d C l a s s ( " c l o s e d " ) ;  
 }  
 i f ( h i g l i g h t e d )   {  
 $ j ( " # c h _ r e p l i e s _ "   +   p I d ) . t o g g l e ( ) ;  
 }   e l s e   {  
 $ j ( " # c _ r e p l i e s _ "   +   p I d ) . t o g g l e ( ) ;  
 }  
 } ,  
 r e p l y T o C o m m e n t : f u n c t i o n ( i d , h i g l i g h t e d )   {  
 C o m m e n t . c l o s e C o m m e n t s F o r m ( ) ;  
 v a r   u = ' / t h e c l u b / t o o l s / c o m m e n t / n e w s i d = '   +   C o m m e n t . n e w s I d   +   ' / _ c o m m e n t . h t m l ' ;  
 i f ( b L o g g e d I n )  
 $ j . g e t ( u , f u n c t i o n ( d a t a )   {  
 i f ( h i g l i g h t e d )   {  
 $ j ( " # r e p l y h _ "   +   i d ) . h t m l ( d a t a ) . s h o w ( ) ;  
 }   e l s e   {  
 $ j ( " # r e p l y _ "   +   i d ) . h t m l ( d a t a ) . s h o w ( ) ;  
 }  
 } ) ;  
 e l s e   {  
 v a r   r u = d o c u m e n t . l o c a t i o n . p a t h n a m e   +   ' # i n s e r t c o m m e n t ' ;  
 d o c u m e n t . l o c a t i o n . h r e f = ' / t h e c l u b / i n d e x . h t m l ? r e d i r e c t = '   +   e s c a p e ( r u )  
 }  
 } ,  
 a d d C o m m e n t s : f u n c t i o n ( n e w s i d , l i b r a r y )   {  
 C o m m e n t . c l o s e C o m m e n t s F o r m ( ) ;  
 v a r   u ;  
 i f ( l i b r a r y )   {  
 v a r   u = ' / t h e c l u b / t o o l s / c o m m e n t / n e w s i d = '   +   n e w s i d   +   ' / '   +   l i b r a r y ;  
 }  
 e l s e   {  
 v a r   u = ' / t h e c l u b / t o o l s / c o m m e n t / n e w s i d = '   +   n e w s i d   +   ' / _ c o m m e n t . h t m l ' ;  
 }  
 i f ( b L o g g e d I n )  
 v a r   a = n e w   A j a x . R e q u e s t ( u , {   m e t h o d : ' g e t ' , o n C o m p l e t e : C o m m e n t . d i s p l a y C o m m e n t s F o r m   } ) ;  
 e l s e   {  
 v a r   r u = d o c u m e n t . l o c a t i o n . p a t h n a m e   +   ' # i n s e r t c o m m e n t ' ;  
 d o c u m e n t . l o c a t i o n . h r e f = ' / t h e c l u b / i n d e x . h t m l ? r e d i r e c t = '   +   e s c a p e ( r u )  
 }  
 } ,  
 a d d M O M C o m m e n t s : f u n c t i o n ( n e w s i d )   {  
 C o m m e n t . c l o s e C o m m e n t s F o r m ( ) ;  
 v a r   u = ' / t h e c l u b / t o o l s / c o m m e n t / n e w s i d = '   +   n e w s i d   +   ' / _ m o m c o m m e n t s . h t m l ' ;  
 i f ( b L o g g e d I n )  
 v a r   a = n e w   A j a x . R e q u e s t ( u , {   m e t h o d : ' g e t ' , o n C o m p l e t e : C o m m e n t . d i s p l a y C o m m e n t s F o r m   } ) ;  
 e l s e   {  
 v a r   r u = d o c u m e n t . l o c a t i o n . p a t h n a m e   +   ' # i n s e r t c o m m e n t ' ;  
 d o c u m e n t . l o c a t i o n . h r e f = ' / t h e c l u b / i n d e x . h t m l ? r e d i r e c t = '   +   e s c a p e ( r u )  
 }  
 } ,  
 a d d C o m m e n t s H Y S : f u n c t i o n ( n e w s i d )   {  
 v a r   u = ' / f a n f e s t / t o o l s / n e w s i d = '   +   n e w s i d   +   ' / _ h y s c o m m e n t . h t m l ' ;  
 i f ( b L o g g e d I n )   {  
 v a r   a = n e w   A j a x . R e q u e s t ( u , {   m e t h o d : ' g e t ' , o n C o m p l e t e : C o m m e n t . d i s p l a y C o m m e n t s F o r m   } ) ;  
 }  
 e l s e   {  
 v a r   r u = d o c u m e n t . l o c a t i o n . p a t h n a m e   +   ' # i n s e r t c o m m e n t ' ;  
 d o c u m e n t . l o c a t i o n . h r e f = ' / t h e c l u b / i n d e x . h t m l ? r e d i r e c t = '   +   e s c a p e ( r u )  
 }  
 } ,  
 d i s p l a y C o m m e n t s F o r m : f u n c t i o n ( o r i g i n a l R e s p o n s e )   {  
 v a r   d = $ ( ' f o r m _ c o m m e n t s _ '   +   C o m m e n t . n e w s I d ) ;  
 d . u p d a t e ( o r i g i n a l R e s p o n s e . r e s p o n s e T e x t ) ;  
 $ ( ' f o r m _ c o m m e n t s _ '   +   C o m m e n t . n e w s I d ) . s h o w ( ) ;  
 } ,  
 s u b m i t C o m m e n t s : f u n c t i o n ( l i n k O b j )   {  
 i f ( $ ( ' c _ c o m m e n t ' ) . v a l u e . l e n g t h > 1 )   {  
 $ ( ' b t n _ p o s t N e w s C o m m e n t ' ) . d i s a b l e d = t r u e ;  
 v a r   p = $ j ( " # f _ c o m m e n t " ) . p a r e n t ( ) . a t t r ( " i d " ) ;  
 v a r   u ;  
 i f ( p . i n d e x O f ( " r e p l y _ " ) = = 0 )   {  
 u = " / t h e c l u b / t o o l s / c o m m e n t / _ c o m m e n t . h t m x ? b t n _ S a v e = s a v e & n = "   +   t h i s . n e w s I d   +   " & p = "   +   p . s u b s t r i n g ( 6 )   +   " & c _ c o m m e n t = "   +   e s c a p e ( $ ( ' c _ c o m m e n t ' ) . v a l u e ) ;  
 }   e l s e   i f ( p . i n d e x O f ( " r e p l y h _ " ) = = 0 )   {  
 u = " / t h e c l u b / t o o l s / c o m m e n t / _ c o m m e n t . h t m x ? b t n _ S a v e = s a v e & n = "   +   t h i s . n e w s I d   +   " & p = "   +   p . s u b s t r i n g ( 7 )   +   " & c _ c o m m e n t = "   +   e s c a p e ( $ ( ' c _ c o m m e n t ' ) . v a l u e ) ;  
 }   e l s e   {  
 u = " / t h e c l u b / t o o l s / c o m m e n t / _ c o m m e n t . h t m x ? b t n _ S a v e = s a v e & n = "   +   t h i s . n e w s I d   +   " & c _ c o m m e n t = "   +   e s c a p e ( $ ( ' c _ c o m m e n t ' ) . v a l u e ) ;  
 }  
 v a r   a = n e w   A j a x . R e q u e s t ( e n c o d e U R I ( u ) , {   m e t h o d : ' g e t ' , o n C o m p l e t e : C o m m e n t . o n S a v e C o m m e n t s   } ) ;  
 w A n a l y t i c s . o n C o m m e n t S u b m i s s i o n ( l i n k O b j ) ;  
 }  
 } ,  
 o n S a v e C o m m e n t s : f u n c t i o n ( o r i g i n a l R e s p o n s e )   {  
 i f ( o r i g i n a l R e s p o n s e . r e s p o n s e T e x t . i n d e x O f ( ' e r r o r ' ) ! = - 1 )   {  
 v a r   s = ' < d i v   c l a s s = " c o m m e n t E r r o r " > < d i v   c l a s s = " c E I C " > ' ;  
 s   + =   o r i g i n a l R e s p o n s e . r e s p o n s e T e x t . t o Q u e r y P a r a m s ( ) . e r r o r . g s u b ( ' \ ' ' , ' ' ) ;  
 s   + =   ' < / d i v > < / d i v > '  
 v a r   d = $ j ( ' # f o r m _ c o m m e n t s _ '   +   C o m m e n t . n e w s I d ) ;  
 i f ( d . c s s ( " d i s p l a y " ) = = " n o n e " )   {  
 d = $ j ( " . r e p l y F o r m : v i s i b l e " ) ;  
 }  
 d . h t m l ( s ) ;  
 }  
 e l s e   i f ( o r i g i n a l R e s p o n s e . r e s p o n s e T e x t . i n d e x O f ( ' w a r n i n g ' ) ! = - 1 )   {  
 v a r   s = ' < d i v   c l a s s = " c o m m e n t W a r n " > < d i v   c l a s s = " c E I C " > ' ;  
 s   + =   o r i g i n a l R e s p o n s e . r e s p o n s e T e x t . t o Q u e r y P a r a m s ( ) . w a r n i n g . g s u b ( ' \ ' ' , ' ' ) ;  
 s   + =   ' < / d i v > < / d i v > '  
 v a r   d = $ j ( ' # f o r m _ c o m m e n t s _ '   +   C o m m e n t . n e w s I d ) ;  
 i f ( d . c s s ( " d i s p l a y " ) = = " n o n e " )   {  
 d = $ j ( " . r e p l y F o r m : v i s i b l e " ) ;  
 }  
 d . h t m l ( s ) ;  
 }  
 e l s e   {  
 C o m m e n t . c l o s e C o m m e n t s F o r m ( ) ;  
 v a r   u = " / n e w s c e n t r e / a l l c o m m e n t / "   +   s p l i t R e s o u r c e I d ( t h i s . n e w s I d , i d S p l i t L e n )   +   " / i n d e x . h t m l " ;  
 v a r   a = n e w   A j a x . R e q u e s t ( u , {   m e t h o d : ' g e t ' , o n C o m p l e t e : C o m m e n t . d i s p l a y C o m m e n t s   } ) ;  
 }  
 } ,  
 c l o s e C o m m e n t s F o r m : f u n c t i o n ( )   {  
 $ j ( ' # f o r m _ c o m m e n t s _ '   +   C o m m e n t . n e w s I d ) . h t m l ( "   " ) . h i d e ( ) ;  
 $ j ( ' . r e p l y F o r m ' ) . h t m l ( "   " ) . h i d e ( ) ;  
 } ,  
 t e x t L i m i t : f u n c t i o n ( o b j )   {  
 v a r   l e n = o b j . v a l u e . s p l i t ( / [ \ s ] + / ) ;  
 i f ( l e n . l e n g t h > 0 )   {  
 i f ( n u m W o r d s C o m m e n t   -   ( l e n . l e n g t h   -   1 ) > = 0 )   {  
 $ ( ' c _ c o u n t ' ) . v a l u e = n u m W o r d s C o m m e n t   -   ( l e n . l e n g t h   -   1 ) ;  
 }  
 e l s e  
 $ ( ' c _ c o u n t ' ) . v a l u e = 0 ;  
 }  
 c o u n t e r = l e n . l e n g t h   -   1 ;  
 i f ( l e n . l e n g t h > n u m W o r d s C o m m e n t )   {  
 o b j v a l u e = o b j . v a l u e . s p l i t ( / [ \ s ] + / ) ;  
 v a r   n e w v a l = ' ' ;  
 f o r   ( v a r   m = 0 ; m < n u m W o r d s C o m m e n t ; m + + )   {  
 n e w v a l   + =   o b j v a l u e [ m ]   +   '   ' ;  
 }  
 o b j . v a l u e = ' ' ;  
 o b j . v a l u e = n e w v a l ;  
 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   n u m C o m m e n t s ( ) {  
 v a r   n c o m m e n t s = $ j ( " . t o t a l C   s p a n " ) . t e x t ( ) ;  
 i f ( n c o m m e n t s . l e n g t h = = 0 )   n c o m m e n t s = $ j ( " # d u m m y C o m m   . c o u n t   s p a n " ) . t e x t ( ) ;  
 $ j ( " # f r m C o m m e n t s   s p a n " ) . t e x t ( n c o m m e n t s ) ;  
 }  
 v a r   C o m m e n t M a n a g e r = {  
 i n i t : f u n c t i o n ( i d )   {  
 v a r   u 2 = " / n e w s c e n t r e / c o m m e n t / "   +   s p l i t R e s o u r c e I d ( i d , i d S p l i t L e n )   +   " / h i g h l i g h t e d . h t m l " ;  
 $ j ( ' # c o m m T a b 2 ' ) . l o a d ( u 2 , f u n c t i o n ( d a t a )   {  
 i f ( d a t a . t o S t r i n g ( ) . l e n g t h > 3 )   {  
 C o m m e n t M a n a g e r . s t a r t T a b ( ) ;  
 }  
 } ) ;  
 }  
 , s t a r t T a b : f u n c t i o n ( )   {  
 $ j ( ' # c o m m T a b 2 a ' ) . s h o w ( ) ;  
 $ j ( ' . t a b s ' ) . r e m o v e C l a s s ( ' s i n g l e T a b ' ) ;  
 i f ( w i n d o w . l o c a t i o n . h r e f . s p l i t ( ' # ' ) [ 1 ] = = ' h i g h l i g h t e d ' )  
 t h i s . s w i t c h T a b ( 2 ) ;  
 e l s e   i f ( w i n d o w . l o c a t i o n . h r e f . s p l i t ( ' # ' ) [ 1 ] = = ' i n s e r t V i d C o m ' )   {  
 t h i s . s w i t c h T a b ( 1 ) ;  
 }   e l s e   {  
 t h i s . s w i t c h T a b ( 1 ) ;  
 }  
 }  
 , s w i t c h T a b : f u n c t i o n ( i d )   {  
 i f ( i d = = 1 )   {  
 $ j ( ' # c o m m T a b 1 ' ) . s h o w ( ) ;  
 $ j ( ' # c o m m T a b 2 ' ) . h i d e ( ) ;  
 $ j ( ' . t a b s ' ) . r e m o v e C l a s s ( ' t a b s D u e ' ) ;  
 $ j ( ' . c o m m F r m ' ) . s h o w ( ) ;  
 }   e l s e   {  
 $ j ( ' # c o m m T a b 2 ' ) . s h o w ( ) ;  
 $ j ( ' # c o m m T a b 1 ' ) . h i d e ( ) ;  
 $ j ( ' . t a b s ' ) . a d d C l a s s ( ' t a b s D u e ' ) ;  
 $ j ( ' . c o m m F r m ' ) . h i d e ( ) ;  
 }  
 }  
 }  
 v a r   C o m m e n t P r e v i e w = {  
 i n i t : f u n c t i o n ( i d , n u m C o m m e n t s )   {  
 v a r   u r l = " / n e w s c e n t r e / c o m m e n t / "   +   s p l i t R e s o u r c e I d ( i d , i d S p l i t L e n )   +   " / i n d e x . h t m l " ;  
 $ j ( " # c o m m P r e v i e w C o n t a i n e r " ) . l o a d ( u r l , f u n c t i o n ( )   {  
 v a r   n c = $ j ( " . t o t a l C   s p a n " ) . h t m l ( ) ;  
 i f ( n c & & n c > 0 )   {  
 $ j ( " # c o m m P r e v i e w C o n t a i n e r   . t i t l e , # c o m m P r e v i e w C o n t a i n e r   . c _ r e p l i e s C o u n t , # c o m m P r e v i e w C o n t a i n e r   . c _ r e p l i e s , # c o m m P r e v i e w C o n t a i n e r   . r e p l y F o r m , # c o m m P r e v i e w C o n t a i n e r   . c _ r e p l y " ) . r e m o v e ( ) ;  
 i f ( n u m C o m m e n t s )   {  
 $ j ( " # c o m m P r e v i e w C o n t a i n e r   . c o m m e n t : g t ( "   +   ( n u m C o m m e n t s   -   1 )   +   " ) " ) . r e m o v e ( ) ;  
 }  
 $ j ( " . n u m   # c o m m e n t s N u m " ) . h t m l ( $ j ( " . n u m   # c o m m e n t s N u m " ) . h t m l ( ) . r e p l a c e ( / 0 / , n c ) ) ;  
 $ j ( " # a l l C o m m e n t s " ) . s h o w ( ) ;  
 }   e l s e   {  
 $ j ( " # c o m m P r e v i e w C o n t a i n e r " ) . h i d e ( ) ;  
 $ j ( " # n o C o m m e n t s " ) . s h o w ( ) ;  
 }  
 $ j ( " # c V i e w A l l " ) . r e m o v e ( ) ;  
 $ j ( " # c o m m P r e v i e w C o n t a i n e r   . t o t a l C " ) . r e m o v e ( ) ;  
 } ) ;  
 }  
 }  
  
 v a r   n e w P o l l = {  
 L o a d : f u n c t i o n ( i d , p i d )   {  
 v a r   d = ' d y n a m i c _ '   +   i d ;  
 i f ( n e w P o l l . h a s V o t e d ( p i d ) = = f a l s e )   {  
 v a r   u = ' / t h e c l u b / p o l l s / p o l l i d = '   +   i d   +   ' / v o t e . h t m l '  
 n e w   A j a x . U p d a t e r ( d , u , {   m e t h o d : ' g e t '   } ) ;  
 }   e l s e   {  
 n e w P o l l . V i e w R e s u l t ( i d , p i d ) ;  
 }  
 }  
 , V i e w R e s u l t : f u n c t i o n ( i d , p i d )   {  
 v a r   b C a n V o t e = ( n e w P o l l . h a s V o t e d ( p i d ) = = f a l s e ) ;  
 $ j ( ' # d y n a m i c _ '   +   i d ) . l o a d ( ' / t h e c l u b / p o l l s / p o l l i d = '   +   i d   +   ' / r e s u l t . h t m l ' , n u l l , f u n c t i o n ( )   {  
 i f ( b C a n V o t e )   {  
 $ j ( ' . p o l l R e t u r n T o V o t e ' ) . s h o w ( ) ;  
 }   e l s e   {  
 $ j ( ' . p o l l R e t u r n T o V o t e ' ) . h i d e ( ) ;  
 }  
 } ) ;  
 }  
 , V i e w R e s u l t L a n g : f u n c t i o n ( l a n g , n V o t e s )   {  
 $ j ( ' . p o l l R e s W r a p p e r ' ) . h i d e ( ) ;  
 $ j ( ' . p o l l R e s W r a p p e r . l a n g _ '   +   l a n g ) . s h o w ( ) ;  
 $ j ( ' . p o l l A n s w e r N a v i g a t i o n   l i . c u r r e n t ' ) . r e m o v e C l a s s ( ' c u r r e n t ' ) ;  
 $ j ( ' . p o l l A n s w e r N a v i g a t i o n   l i . l a n g _ '   +   l a n g ) . a d d C l a s s ( ' c u r r e n t ' ) ;  
 }  
 , V o t e : f u n c t i o n ( i d )   {  
 v a r   f = $ ( ' f _ p o l l '   +   i d )  
 v a r   d = ' d y n a m i c _ '   +   i d ;  
 v a r   b V = f a l s e ;  
 f o r   ( v a r   i = 0 ; i < f . i _ a n s w e r s . l e n g t h ; i + + )   {  
 i f ( f . i _ a n s w e r s [ i ] . c h e c k e d )  
 b V = t r u e ;  
 }  
 i f ( ! b V )   {  
 a l e r t ( f . m e s s a g e . v a l u e ) ;  
 r e t u r n   f a l s e ;  
 }  
 n e w   A j a x . U p d a t e r ( d , ' / t h e c l u b / p o l l s / p o l l i d = '   +   i d   +   ' / v o t e . h t m x ' , {   m e t h o d : ' p o s t ' , p a r a m e t e r s : f . s e r i a l i z e ( )   } ) ;  
 }  
 , h a s V o t e d : f u n c t i o n ( i d )   {  
 v a r   p v = C o o k i e . g e t ( ' p v ' ) ;  
 i f ( p v & & p v . i n d e x O f ( ' | '   +   i d   +   ' | ' ) > = 0 )   {  
 r e t u r n   t r u e ;  
 }   e l s e   {  
 v a r   c = C o o k i e . g e t ( ' p o l l '   +   i d ) ;  
 i f ( c )   {  
 r e t u r n   t r u e ;  
 }   e l s e   {  
 r e t u r n   f a l s e ;  
 }  
 }  
 }  
 }  
 v a r   p o l l P u s k a s = {  
 V o t e : f u n c t i o n ( i d , v o t e )   {  
 $ j . g e t ( ' / c l a s s i c f o o t b a l l / a w a r d s / p u s k a s a w a r d / v o t e . h t m x ? p o l l I d = '   +   i d   +   ' & s t r A n w e r I d = '   +   v o t e   +   ' & b t n _ v o t e = b t n _ v o t e ' ) ;  
 $ j ( ' . p u s k a s V i d e o s   . b t n V o t e ' ) . h i d e ( ) ;  
 $ j ( ' . p u s k a s V o t e d   h 1 ' ) . r e m o v e ( ) ; / /   u g l y , i   k n o w . . .  
 $ j ( ' . p u s k a s V o t e d ' ) . s h o w ( ) ;  
 } ,  
 L o a d : f u n c t i o n ( i d )   {  
 v a r   d = ' d y n a m i c _ '   +   i d ;  
 v a r   c = C o o k i e . g e t ( ' p o l l '   +   i d ) ;  
 v a r   u ;  
 i f ( c = = = u n d e f i n e d | | c = = n u l l | | c = = ' ' )   {  
 $ j ( ' . p u s k a s V i d e o s   . b t n V o t e ' ) . s h o w ( ) ;  
 }   e l s e   {  
 $ j ( ' . p u s k a s V o t e d   h 1 ' ) . r e m o v e ( ) ; / /   u g l y , i   k n o w . . .  
 $ j ( ' . p u s k a s V o t e d ' ) . s h o w ( ) ;  
 }  
 }  
 }  
  
 i f ( p a r e n t . f r a m e s . l e n g t h > 0 )   {  
 t o p . l o c a t i o n . h r e f = s e l f . l o c a t i o n . h r e f ;  
 }  
 f u n c t i o n   s e t C S S ( t i t l e )   {  
 $ j ( " l i n k [ t i t l e = ' "   +   t i t l e   +   " ' ] " ) . e a c h ( f u n c t i o n ( )   {  
 t h i s . d i s a b l e d = f a l s e  
 } ) ;  
 $ j ( " l i n k [ t i t l e ! = ' "   +   t i t l e   +   " ' ] " ) . e a c h ( f u n c t i o n ( )   {  
 i f ( $ j ( t h i s ) . a t t r ( " t i t l e " ) )   t h i s . d i s a b l e d = t r u e ;  
 } ) ;  
 C o o k i e . s e t ( ' a c c e s s F I F A ' , t i t l e , 3 6 5 , ' / ' ) ;  
 }  
 f u n c t i o n   s w i t c h C S S ( )  
 {  
 v a r   t = C o o k i e . g e t ( ' a c c e s s F I F A ' ) ;  
 i f ( t = = = u n d e f i n e d | | t = = n u l l | | t = = ' ' )  
 t = ' s t a n d a r d ' ;  
 i f ( t = = ' s t a n d a r d ' )  
 t = ' a c c e s s i b l e ' ;  
 e l s e  
 t = ' s t a n d a r d ' ;  
 s e t C S S ( t ) ;  
 }  
 v a r   o p e n C S S = f u n c t i o n ( )  
 {  
 v a r   t = C o o k i e . g e t ( ' a c c e s s F I F A ' ) ;  
 i f ( t = = = u n d e f i n e d | | t = = n u l l | | t = = ' ' )  
 t = ' s t a n d a r d ' ;  
 i f ( t h i s . i e O l d )  
 t = ' a c c e s s i b l e ' ;  
 s e t C S S ( t ) ;  
 } ( ) ;  
 v a r   h b x P a g e N a m e = ' ' , h b x C o n t e n t C a t e g o r y = ' ' , b H b x F T = t r u e ;  
 f u n c t i o n   s e t H B X P a r a m e t e r s ( p n , c c ) {  
 h b x P a g e N a m e = p n ; h b x C o n t e n t C a t e g o r y = c c ;  
 }  
 f u n c t i o n   i n v o k e A j a x H B X P a g e V i e w ( )  
 {  
 i f ( ! b H b x F T )  
 i n v o k e H B X P a g e V i e w ( h b x P a g e N a m e , h b x C o n t e n t C a t e g o r y ) ;  
 b H b x F T = f a l s e ;  
 }  
 f u n c t i o n   i n v o k e H B X P a g e V i e w ( )   {  
 i f ( h b x P a g e N a m e ! = ' ' & & h b x C o n t e n t C a t e g o r y ! = ' ' )   _ h b P a g e V i e w ( h b x P a g e N a m e , h b x C o n t e n t C a t e g o r y ) ;  
 }  
 f u n c t i o n   _ h b P a g e V i e w S p o n s o r e d ( p n , c c , s p ) {  
 i f ( p n ! = ' ' & & c c ! = ' ' )   _ h b P a g e V i e w ( p n , c c ) ;  
 }  
 f u n c t i o n   g e t H o s t N a m e ( )   {   v a r   s = d o c u m e n t . l o c a t i o n . h r e f ; s = s . r e p l a c e ( / ( ^ [ a - z A - z 0 - 9 ] * : \ / \ / ) / , ' ' ) ; s = s . r e p l a c e ( / ( \ / . * ) / , ' ' ) ; r e t u r n   s ; }  
 f u n c t i o n   g e t U r l P a r a m s ( )   { v a r   s = d o c u m e n t . l o c a t i o n . h r e f ; i f ( s . i n d e x O f ( ' ? ' ) ! = - 1 )   r e t u r n   s . s u b s t r i n g ( s . i n d e x O f ( ' ? ' ) + 1 ) ; i f ( s . i n d e x O f ( ' # ' ) ! = - 1 )   r e t u r n   s . s u b s t r i n g ( s . i n d e x O f ( ' # ' ) + 1 ) ; r e t u r n   ' ' ; }  
 f u n c t i o n   f n C l e a r I n p u t ( i n p , o t ) { i f ( i n p . v a l u e . t o L o w e r C a s e ( ) = = o t . t o L o w e r C a s e ( ) )   i n p . v a l u e = ' ' ; }  
 f u n c t i o n   w m a c ( ) { $ j ( ' # w M A ' ) . h i d e ( ) ; }  
 f u n c t i o n   w m a o ( ) {  
 i f ( j Q u e r y . t r i m ( $ j ( ' # w M A ' ) . t e x t ( ) ) = = " " )  
 $ j ( ' # w M A ' ) . l o a d ( " / l i b r a r y / h o m e / _ c o u n t r i e s l i s t . h t m l " , f u n c t i o n ( ) { $ j ( ' # w M A ' ) . t o g g l e ( ) ; } ) ;  
 e l s e  
 $ j ( ' # w M A ' ) . t o g g l e ( ) ;  
 }  
 f u n c t i o n   w p O p e n ( u )   {  
 w i n d o w . l o c a t i o n = u ;  
 r e t u r n   t r u e ;  
 }  
 f u n c t i o n   w p o p e n l o w e r ( u )   {  
 r e t u r n   w p O p e n ( u ) ;  
 }  
 f u n c t i o n   o p e n P o p u p ( u , h , w ) { w i n d o w . o p e n ( u , ' p o p u p ' , ' w i d t h = ' + w + ' , h e i g h t = ' + h + ' , r e s i z a b l e = n o , s c r o l l b a r s = n o , l o c a t i o n = n o , m e n u b a r = n o , s t a t u s = n o , t o o l b a r = n o ' ) }  
 f u n c t i o n   m c O p e n ( u )  
 {  
 v a r   h = ' h e i g h t = 7 0 5 ' ;  
 w i n d o w . o p e n ( u , ' p o p u p ' , ' w i d t h = 7 7 0 , ' + h + ' , r e s i z a b l e = n o , s c r o l l b a r s = n o , l o c a t i o n = n o , m e n u b a r = n o , s t a t u s = n o , t o o l b a r = n o ' ) ;  
 }  
 f u n c t i o n   m c W C Q O p e n ( u )   {  
 w i n d o w . o p e n ( u , ' p o p u p ' , ' w i d t h = 8 8 5 , h e i g h t = 7 0 5 , r e s i z a b l e = n o , s c r o l l b a r s = n o , l o c a t i o n = n o , m e n u b a r = n o , s t a t u s = n o , t o o l b a r = n o ' ) ;  
 }  
 f u n c t i o n   m c F r i e n d O p e n ( u )   {  
 w i n d o w . o p e n ( u , ' p o p u p ' , ' w i d t h = 8 8 5 , h e i g h t = 7 5 8 , r e s i z a b l e = n o , s c r o l l b a r s = n o , l o c a t i o n = n o , m e n u b a r = n o , s t a t u s = n o , t o o l b a r = n o ' ) ;  
 }  
 f u n c t i o n   m c F C C O p e n ( u )  
 {  
 d o c u m e n t . l o c a t i o n . h r e f = u ;  
 }  
 f u n c t i o n   r e s i z e F W C Q F l a s h P o p U p ( d i v I d , h , w , r e s i z e T y p e )   {  
 v a r   u a = n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) ;  
 v a r   h N e w , w N e w ;  
 i f ( r e s i z e T y p e = = ' 1 ' )   {  
 $ ( ' p r e l m a t c h c a s t ' ) . s e t S t y l e ( { v i s i b i l i t y : ' v i s i b l e ' } ) ;  
 }  
 e l s e   {  
 $ ( ' p r e l m a t c h c a s t ' ) . s e t S t y l e ( { v i s i b i l i t y : ' h i d d e n ' } ) ;  
 }  
 i f ( u a . i n d e x O f ( " c h r o m e " ) > - 1 )   {  
 i f ( r e s i z e T y p e = = ' 1 ' )   w i n d o w . r e s i z e T o ( N u m b e r ( w ) + N u m b e r ( 1 0 ) , 7 6 0 ) ; e l s e   w i n d o w . r e s i z e T o ( N u m b e r ( w ) + N u m b e r ( 5 ) , 1 3 5 ) ;  
 r e t u r n ;  
 }  
 i f ( u a . i n d e x O f ( " m s i e   6 " ) > - 1 )   {  
 i f ( r e s i z e T y p e = = ' 1 ' )   w i n d o w . r e s i z e T o ( N u m b e r ( w ) + N u m b e r ( 1 0 ) , 7 4 5 ) ; e l s e   w i n d o w . r e s i z e T o ( N u m b e r ( w ) , 1 2 0 ) ;  
 r e t u r n ;  
 }  
 v a r   o = $ ( ' r e s i z e R e f e r e n c e ' ) ;  
 w i n d o w . r e s i z e T o ( w , h ) ;  
 v a r   h D i f f = m c F W C Q s t a r t H   -   o . c l i e n t H e i g h t ;  
 v a r   w D i f f = m c F W C Q s t a r t W   -   o . c l i e n t W i d t h ;  
 v a r   h D i f f m i n = m c F W C Q s t a r t H m i n   -   o . c l i e n t H e i g h t ;  
 v a r   w D i f f m i n = m c F W C Q s t a r t W m i n   -   o . c l i e n t W i d t h ;  
 i f ( r e s i z e T y p e = = ' 1 ' )   {  
 h N e w = N u m b e r ( h )   +   N u m b e r ( h D i f f ) ;  
 w N e w = N u m b e r ( w )   +   N u m b e r ( w D i f f ) ;  
 w i n d o w . r e s i z e T o ( w N e w , h N e w ) ;  
 }  
 e l s e   i f ( r e s i z e T y p e = = ' 2 ' )   {  
 h N e w = N u m b e r ( h )   +   N u m b e r ( h D i f f m i n - 2 0 ) ;  
 w N e w = N u m b e r ( w )   +   N u m b e r ( w D i f f m i n ) ;  
 w i n d o w . r e s i z e T o ( w N e w , h N e w ) ;  
 }  
 }  
 f u n c t i o n   d c O p e n ( ) { w i n d o w . o p e n ( ' / l i v e / c o m p e t i t i o n s / w o r l d c u p / p r e l i m i n a r y d r a w / d r a w c a s t . h t m l ' , ' p o p u p ' , ' w i d t h = 8 8 5 , h e i g h t = 7 0 0 , r e s i z a b l e = n o , s c r o l l b a r s = n o , l o c a t i o n = n o , m e n u b a r = n o , s t a t u s = n o , t o o l b a r = n o ' ) ; }  
 v a r   T a b = {  
 i d : ' ' ,  
 t a b : 0 ,  
 C h a n g e : f u n c t i o n ( i d , u r l , t a b )  
 {  
 T a b . i d = i d ;  
 T a b . t a b = t a b ;  
 v a r   p = $ ( i d ) ;  
 v a r   a = n e w   A j a x . U p d a t e r ( { s u c c e s s : i d + ' _ c o n t e n t ' } , u r l , { m e t h o d : ' g e t ' , e v a l S c r i p t s : t r u e , o n C o m p l e t e : T a b . R e f r e s h ( ) } ) ;  
 } ,  
 R e f r e s h : f u n c t i o n ( )  
 {  
 v a r   d = $ ( t h i s . i d ) . d e s c e n d a n t s ( ) ;  
 f o r ( i = 0 ; i < d . l e n g t h ; i + + ) { t r y   { $ ( d [ i ] . i d ) . r e m o v e C l a s s N a m e ( ' c u r r e n t ' ) ; i f ( d [ i ] . i d = = t h i s . i d + ' _ ' + t h i s . t a b ) $ ( d [ i ] . i d ) . a d d C l a s s N a m e ( ' c u r r e n t ' ) ; } c a t c h ( e ) { } }  
 }  
 }  
 f u n c t i o n   t o g g l e I m g ( o b j , i m g 1 , i m g 2 ) {  
 i f ( o b j . s r c . i n d e x O f ( i m g 1 ) > 0 ) {  
 o b j . s r c = i m g 2 ;  
 }   e l s e   {  
 o b j . s r c = i m g 1 ;  
 }  
 }  
 f u n c t i o n   c u r r M e n u I t e m ( i d , p a t h )  
 {  
 i f ( $ j ( i d ) . l e n g t h > 0 )  
 {  
 i f ( p a t h = = ' ' | | p a t h = = u n d e f i n e d ) {  
 p a t h = d o c u m e n t . l o c a t i o n . p a t h n a m e ;  
 }  
 v a r   m e n u I t e m E l e m e n t s = $ j ( i d   +   "   [ h r e f ^ = ' "   + p a t h + " ' ] " ) ;  
 i f ( m e n u I t e m E l e m e n t s ! = = u n d e f i n e d & & m e n u I t e m E l e m e n t s ! = n u l l & & m e n u I t e m E l e m e n t s . l e n g t h = = 1 )  
 {  
 i f ( m e n u I t e m E l e m e n t s . p a r e n t s ( " . l e v 2 M e n u M o r e " ) . l e n g t h > 0 )   r e t u r n ;  
 m e n u I t e m E l e m e n t s . a d d C l a s s ( " c u r r e n t " ) ;  
 m e n u I t e m E l e m e n t s . p a r e n t s ( " l i " ) . a d d C l a s s ( " c u r r e n t " ) ;  
 }  
 e l s e  
 {  
 p a t h = p a t h . s u b s t r i n g ( 0 , p a t h . l a s t I n d e x O f ( " / " ) ) ;  
 i f ( p a t h . l e n g t h = = 0 )  
 {  
 r e t u r n ;  
 }  
 c u r r M e n u I t e m ( i d , p a t h ) ;  
 }  
 }  
 } ;  
 f u n c t i o n   c u r r M e n u I t e m S e l e c t ( i d , u r l t o s e l e c t )   {  
 v a r   i , u ;  
 t r y   {  
 i f ( $ ( i d ) )   {  
 f o r ( i = 0 ; i < $ ( i d ) . c h i l d N o d e s . l e n g t h ; i + + ) {  
 u = S t r i n g ( $ ( i d ) . c h i l d N o d e s [ i ] . i n n e r H T M L . m a t c h ( / h r e f = " [ ^ " ] * " / ) ) ;  
 u = u . r e p l a c e ( / h r e f = | " / i g , ' ' ) ;  
 i f ( u r l t o s e l e c t . m a t c h ( u ) & & u ! = ' ' ) {  
 E l e m e n t . a d d C l a s s N a m e ( $ ( i d ) . c h i l d N o d e s [ i ] , ' c u r r e n t ' ) ;  
 r e t u r n ;  
 }  
 }  
 }  
 } c a t c h ( e ) { }  
 }  
 v a r   A j a x I n c l u d e r = C l a s s . c r e a t e ( ) ;  
 A j a x I n c l u d e r . p r o t o t y p e   =  
 {  
 i n i t i a l i z e : f u n c t i o n ( u r l )  
 {  
 n e w   A j a x . U p d a t e r ( ' a j a x i n c l u d e d ' , u r l ) ;  
 }  
 } ;  
 f u n c t i o n   c h e c k T o S ( )  
 {  
 v a r   a c c e p t _ t o s _ a y q = $ ( ' c _ a g r e e ' ) . c h e c k e d ;  
 i f ( a c c e p t _ t o s _ a y q ) {  
 C o m m e n t . s u b m i t C o m m e n t s ( )  
 $ ( ' d _ e r r P a n e l C o m m e n t s ' ) . h i d e ( ) ; r e t u r n   t r u e ;  
 }  
 e l s e   {  
 $ ( ' d _ e r r P a n e l C o m m e n t s ' ) . s h o w ( ) ; $ ( ' d _ e r r P a n e l C o m m e n t s ' ) . f o c u s ( ) ; w i n d o w . s c r o l l T o ( 0 , 0 ) ; r e t u r n   f a l s e ;  
 }  
 }  
 f u n c t i o n   W F T i c k e r O n L e a g u e S e l e c t ( n a t ) {  
 d o c u m e n t . l o c a t i o n . h r e f = " / w o r l d f o o t b a l l / w o r l d m a t c h c e n t r e / i n d e x . h t m l # " + n a t ;  
 }  
 f u n c t i o n   c u r r M e n u I t e m C C ( i d ) {  
 t r y {  
 i f ( $ ( i d ) ) {  
 v a r   p = d o c u m e n t . l o c a t i o n . p a t h n a m e ;  
 f o r ( i = 0 ; i < $ ( i d ) . c h i l d N o d e s . l e n g t h ; i + + ) {  
 v a r   u = S t r i n g ( $ ( i d ) . c h i l d N o d e s [ i ] . i n n e r H T M L . m a t c h ( / h r e f = " [ ^ " ] * " / ) ) ;  
 u = u . r e p l a c e ( / h r e f = | " / i g , ' ' ) ;  
 i f ( p . m a t c h ( u ) ) {  
 E l e m e n t . a d d C l a s s N a m e ( $ ( i d ) . c h i l d N o d e s [ i ] , ' c u r r e n t ' ) ;  
 E l e m e n t . a d d C l a s s N a m e ( $ ( i d ) . c h i l d N o d e s [ $ ( i d ) . c h i l d N o d e s . l e n g t h - 1 ] , ' l a s t ' ) ;  
 E l e m e n t . a d d C l a s s N a m e ( $ ( i d ) . c h i l d N o d e s [ i - 1 ] , ' p r e c u r r e n t ' ) ;  
 r e t u r n ;  
 }  
 }  
 }  
 } c a t c h ( e ) { }   }  
 f u n c t i o n   p r i n t A n d G o B a c k ( )   {  
 w i n d o w . p r i n t ( ) ; w i n d o w . c l o s e ( ) ;  
 }  
 f u n c t i o n   o p e n W i d g e t ( n a m e )   {  
 c l o s e W i d g e t ( ) ;  
 $ j ( " # "   +   n a m e ) . a n i m a t e ( {   o p a c i t y : " s h o w " , t o p : " 1 0 0 " , l e f t : " 2 5 0 "   } , " f a s t " ) ;  
 }  
 f u n c t i o n   c l o s e W i d g e t ( )   {  
 $ j ( " . w i d g e t F l a s h B o x " ) . a n i m a t e ( {   o p a c i t y : " h i d e " , t o p : " 0 " , l e f t : " 2 5 0 "   } , " f a s t " ) ;  
 }  
 f u n c t i o n   o p e n W i d g e t W C ( n a m e )   {  
 c l o s e W i d g e t ( ) ;  
 $ j ( " # "   +   n a m e ) . a n i m a t e ( {   o p a c i t y : " s h o w " , t o p : " 0 " , l e f t : " 0 "   } , " f a s t " ) ;  
 }  
 f u n c t i o n   c l o s e W i d g e t W C ( )   {  
 $ j ( " . w i d g e t F l a s h B o x " ) . a n i m a t e ( {   o p a c i t y : " h i d e " , t o p : " - 1 0 0 " , l e f t : " 0 "   } , " f a s t " ) ;  
 }  
 f u n c t i o n   o p e n D u b a i S i t e ( )   {  
 w i n d o w . o p e n ( " h t t p : / / w w w . f i f a . c o m / f l a s h / b e a c h s o c c e r w o r l d c u p / d u b a i 2 0 0 9 / i n d e x . h t m l " , " d u b a i 2 0 0 9 " , " l o c a t i o n = 0 , m e n u b a r = 0 , s c r o l l b a r s = 0 , r e s i z a b l e = 0 , w i d t h = 1 0 5 0 , h e i g h t = 6 7 0 " ) ;  
 }  
 f u n c t i o n   c e n t e r C a r o u s e l L i n k s ( )   {  
 v a r   _ l i s t W _ w i d t h = $ j ( ' . c e n t e r > . q L > u l ' ) . p a r e n t ( " . q L I n l i n e " ) . o u t e r W i d t h ( ) ;  
 v a r   _ l i s t _ w i d t h = 0 ;  
 $ j ( ' . c e n t e r > . q L > u l > l i ' ) . e a c h ( f u n c t i o n ( )   {  
 _ l i s t _ w i d t h   + =   $ j ( t h i s ) . o u t e r W i d t h ( t r u e ) ;  
 } ) ;  
 v a r   _ s c r o l l _ l e f t = $ j ( w i n d o w ) . s c r o l l L e f t ( ) ;  
 v a r   _ u l _ l e f t = ( ( _ l i s t W _ w i d t h   -   _ l i s t _ w i d t h )   /   2 )   +   _ s c r o l l _ l e f t ;  
 $ j ( ' . c e n t e r > . q L > u l ' ) . c s s ( {   ' p o s i t i o n ' : ' a b s o l u t e ' , ' l e f t ' : _ u l _ l e f t   +   " p x " , ' w i d t h ' : _ l i s t _ w i d t h   +   " p x "   } ) ;  
 r e t u r n   t h i s ;  
 }  
 $ j ( d o c u m e n t ) . r e a d y ( c e n t e r C a r o u s e l L i n k s ) ;  
  
 v a r   F o r m V a l i d a t e = C l a s s . c r e a t e ( ) ;  
 F o r m V a l i d a t e . p r o t o t y p e = {  
 i n i t i a l i z e : f u n c t i o n ( p )  
 {  
 t h i s . p a r a m s = p ;  
 f o r ( i = 0 ; i < p . l e n g t h ; i + + )  
 {  
 v a r   e = p [ i ] ;  
 i f ( t h i s . i s R e q u i r e d ( e ) )  
 $ ( e . l a b e l ) . a d d C l a s s N a m e ( ' r e q u i r e d ' ) ;  
 }  
 t h i s . e r L i s t = n e w   A r r a y ( ) ;  
 t h i s . e r r C l a s s = ' v a l i d a t e E r r o r ' ;  
 } ,  
 c h e c k S p e c i a l C h a r a c t e r : f u n c t i o n ( v , c h k S p e c i a l )  
 {  
 i f ( ! c h k S p e c i a l )   r e t u r n   f a l s e ;  
 v a r   p = n e w   R e g E x p ( " [ ^ A - Z a - z _ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö Ø Ù Ú Û Ü Ý ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ø ù ú û ü ý þ ÿ  	
 !"#$%'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~0 - 9 . \ \ ' \ \ . \ \ - ] " , " g " ) ;  
 p a t m a t c h = p . t e s t ( v ) ;  
 r e t u r n   p a t m a t c h ;  
 } ,  
 c h e c k T e x t : f u n c t i o n ( i d , r e q u i r e d , c h k S p e c i a l , m i n L , m a x L )  
 {  
 i f ( m i n L < 0 )   m i n L = 0 ;  
 i f ( r e q u i r e d & & m i n L < 1 )   m i n L = 1 ;  
 v a r   v = $ F ( i d ) ;  
 i f ( r e q u i r e d )  
 {  
 i f ( v = = n u l l | | v = = u n d e f i n e d )  
 r e t u r n   f a l s e ;  
 e l s e  
 {  
 i f ( v . l e n g t h < m i n L ) r e t u r n   f a l s e ;  
 i f ( v . l e n g t h > m a x L ) r e t u r n   f a l s e ;  
 i f ( t h i s . c h e c k S p e c i a l C h a r a c t e r ( v , c h k S p e c i a l ) ) r e t u r n   f a l s e ;  
 }  
 }  
 e l s e  
 {  
 i f ( v ! = n u l l & & v ! = u n d e f i n e d & & v . l e n g t h > 0 )  
 {  
 i f ( v . l e n g t h > m a x L ) r e t u r n   f a l s e ;  
 i f ( t h i s . c h e c k S p e c i a l C h a r a c t e r ( v , c h k S p e c i a l ) ) r e t u r n   f a l s e ;  
 }  
 }  
 r e t u r n   t r u e ;  
 } ,  
 c h e c k N u m b e r : f u n c t i o n ( i d , r e q u i r e d , o n l y I n t , m i n V , m a x V )  
 {  
 v a r   v = $ F ( i d ) ;  
 i f ( r e q u i r e d | | v . l e n g t h > 0 )  
 {  
 i f ( v = = u n d e f i n e d | | v = = n u l l | | i s N a N ( v ) | | v ! = p a r s e F l o a t ( v ) )  
 r e t u r n   f a l s e ;  
 e l s e  
 {  
 i f ( o n l y I n t & & ( p a r s e I n t ( v ) ! = v | | v . i n d e x O f ( ' . ' ) ! = - 1 ) )   r e t u r n   f a l s e ;  
 i f ( v < m i n V )   r e t u r n   f a l s e ;  
 i f ( v > m a x V )   r e t u r n   f a l s e ;  
 }  
 }  
 r e t u r n   t r u e ;  
 } ,  
 c h e c k E m a i l : f u n c t i o n ( i d , r e q u i r e d )  
 {  
 v a r   v = $ F ( i d ) ;  
 v a r   m o r e E x t = n e w   A r r a y ( " i n f o " , " a e r o " , " m u s e u m " , " n a m e " ) ;  
 i f ( r e q u i r e d | | v . l e n g t h > 0 )  
 {  
 v a r   p = n e w   R e g E x p ( " ^ ( \ \ w | - | \ \ . ) + @ ( \ \ w | - | \ \ . ) + \ \ . [ a - z ] { 2 , 3 } $ " , " i " ) ;  
 p M a t c h = p . t e s t ( v ) ;  
 i f ( p M a t c h )  
 r e t u r n   t r u e ;  
 e l s e  
 {  
 f o r ( v a r   i = 0 ; i < m o r e E x t . l e n g t h ; i + + )  
 {  
 p . c o m p i l e ( " ^ ( \ \ w | - | \ \ . ) + @ ( \ \ w | - | \ \ . ) + \ \ . "   +   m o r e E x t [ i ]   + " $ " ) ;  
 p M a t c h = p . t e s t ( v ) ;  
 i f ( p M a t c h )  
 r e t u r n   t r u e ;  
 }  
 }  
 r e t u r n   f a l s e ;  
 }  
 r e t u r n   t r u e ;  
 } ,  
 c h e c k E m a i l S t r i n g : f u n c t i o n ( e m a i l A d d r e s s )  
 {  
 v a r   p = n e w   R e g E x p ( " ^ ( \ \ w | - | \ \ . ) + @ ( \ \ w | - | \ \ . ) + \ \ . [ a - z ] { 2 , 3 } $ " , " i " ) ;  
 r e t u r n   p . t e s t ( e m a i l A d d r e s s ) ;  
 } ,  
 c h e c k D a t e : f u n c t i o n ( i d D , i d M , i d Y )  
 {  
 v a r   v D = $ F ( i d D ) ;  
 v a r   v M = $ F ( i d M ) ;  
 v a r   v Y = $ F ( i d Y ) ;  
 v a r   v = v D + ' / ' + v M + ' / ' + v Y ;  
 v a r   r e =   / ( \ d { 1 , 2 } ) ( - | \ / ) + ( \ d { 1 , 2 } ) ( - | \ / ) + ( \ d { 4 } | \ d { 2 } ) / ;  
 i f ( ! r e . t e s t ( v ) )  
 r e t u r n   f a l s e ;  
 v a r   r e s = n u l l ;  
 i f ( v . m a t c h ( / \ - / ) ! = n u l l )  
 r e s = v . s p l i t ( / \ - / ) ;  
 e l s e  
 r e s = v . s p l i t ( / \ / / ) ;  
 i f ( r e s ! = n u l l )  
 {  
 i f ( r e s . l e n g t h ! = 3 )   r e t u r n   f a l s e ;  
 v a r   d = n e w   D a t e ( v Y , v M - 1 , v D ) ;  
 i f ( d . g e t D a t e ( ) ! = v D | | d . g e t M o n t h ( ) ! = v M - 1 | | d . g e t F u l l Y e a r ( ) ! = v Y )   r e t u r n   f a l s e ;  
 r e t u r n   t r u e ;  
 }  
 r e t u r n   f a l s e ;  
 } ,  
 c h e c k C o m p a r e : f u n c t i o n ( e )  
 {  
 i f ( e . i d C o m p a r e = = n u l l | | e . i d C o m p a r e = = u n d e f i n e d )   r e t u r n   t r u e ;  
 i f ( $ F ( e . i d ) ! = $ F ( e . i d C o m p a r e ) )   r e t u r n   f a l s e ;  
 r e t u r n   t r u e ;  
 } ,  
 c h e c k O p t i o n : f u n c t i o n ( i d )  
 {  
 i f ( $ ( i d ) . s e l e c t e d I n d e x > 0 )   r e t u r n   t r u e ;  
 r e t u r n   f a l s e ;  
 } ,  
 i s R e q u i r e d : f u n c t i o n ( e )  
 {  
 i f ( e . r e q u i r e d = = n u l l | | e . r e q u i r e d = = u n d e f i n e d )   r e t u r n   t r u e ;  
 r e t u r n   e . r e q u i r e d ;  
 } ,  
 m i n : f u n c t i o n ( e )  
 {  
 i f ( e . m i n = = n u l l | | e . m i n = = u n d e f i n e d )   r e t u r n   N u m b e r . M I N _ V A L U E ;  
 r e t u r n   e . m i n ;  
 } ,  
 m a x : f u n c t i o n ( e )  
 {  
 i f ( e . m a x = = n u l l | | e . m a x = = u n d e f i n e d )   r e t u r n   N u m b e r . M A X _ V A L U E ;  
 r e t u r n   e . m a x ;  
 } ,  
 s e t E r r o r : f u n c t i o n ( e )  
 {  
 v a r   t = t h i s ;  
 t . v a l i d = f a l s e ;  
 t . e r L i s t . p u s h ( e . m e s s a g e ) ;  
 t r y   {  
 i f ( ! $ ( e . l a b e l ) . h a s C l a s s N a m e ( t . e r r C l a s s ) )   $ ( e . l a b e l ) . a d d C l a s s N a m e ( t . e r r C l a s s )  
 i f ( e . t y p e = = ' d a t e ' ) {  
 i f ( ! $ ( e . i d D ) . h a s C l a s s N a m e ( t . e r r C l a s s ) )   $ ( e . i d D ) . a d d C l a s s N a m e ( t . e r r C l a s s )  
 i f ( ! $ ( e . i d M ) . h a s C l a s s N a m e ( t . e r r C l a s s ) )   $ ( e . i d M ) . a d d C l a s s N a m e ( t . e r r C l a s s )  
 i f ( ! $ ( e . i d Y ) . h a s C l a s s N a m e ( t . e r r C l a s s ) )   $ ( e . i d Y ) . a d d C l a s s N a m e ( t . e r r C l a s s )  
 } e l s e  
 i f ( ! $ ( e . i d ) . h a s C l a s s N a m e ( t . e r r C l a s s ) )   $ ( e . i d ) . a d d C l a s s N a m e ( t . e r r C l a s s )  
 }  
 c a t c h ( e ) { } ;  
 } ,  
 s e t E r r o r C o m p a r e : f u n c t i o n ( e )  
 {  
 v a r   t = t h i s ;  
 t . v a l i d = f a l s e ;  
 t . e r L i s t . p u s h ( e . m e s s a g e C o m p a r e ) ;  
 t r y   {  
 i f ( ! $ ( e . l a b e l ) . h a s C l a s s N a m e ( t . e r r C l a s s ) )   $ ( e . l a b e l ) . a d d C l a s s N a m e ( t . e r r C l a s s )  
 i f ( ! $ ( e . i d ) . h a s C l a s s N a m e ( t . e r r C l a s s ) )   $ ( e . i d ) . a d d C l a s s N a m e ( t . e r r C l a s s )  
 i f ( ! $ ( e . i d C o m p a r e ) . h a s C l a s s N a m e ( t . e r r C l a s s ) )   $ ( e . i d C o m p a r e ) . a d d C l a s s N a m e ( t . e r r C l a s s )  
 i f ( ! $ ( e . l a b e l C o m p a r e ) . h a s C l a s s N a m e ( t . e r r C l a s s ) )   $ ( e . l a b e l C o m p a r e ) . a d d C l a s s N a m e ( t . e r r C l a s s )  
 }  
 c a t c h ( e ) { } ;  
 } ,  
 c l e a n E r r o r : f u n c t i o n ( e )  
 {  
 v a r   t = t h i s ;  
 t r y  
 {  
 i f ( $ ( e . l a b e l ) . h a s C l a s s N a m e ( t . e r r C l a s s ) )   $ ( e . l a b e l ) . r e m o v e C l a s s N a m e ( t . e r r C l a s s )  
 i f ( e . t y p e = = ' d a t e ' ) {  
 i f ( $ ( e . i d D ) . h a s C l a s s N a m e ( t . e r r C l a s s ) )   $ ( e . i d D ) . r e m o v e C l a s s N a m e ( t . e r r C l a s s )  
 i f ( $ ( e . i d M ) . h a s C l a s s N a m e ( t . e r r C l a s s ) )   $ ( e . i d M ) . r e m o v e C l a s s N a m e ( t . e r r C l a s s )  
 i f ( $ ( e . i d Y ) . h a s C l a s s N a m e ( t . e r r C l a s s ) )   $ ( e . i d Y ) . r e m o v e C l a s s N a m e ( t . e r r C l a s s )  
 } e l s e  
 i f ( $ ( e . i d ) . h a s C l a s s N a m e ( t . e r r C l a s s ) )   $ ( e . i d ) . r e m o v e C l a s s N a m e ( t . e r r C l a s s )  
 }  
 c a t c h ( e ) { } ;  
 } ,  
 a d d E r r o r M e s s a g e : f u n c t i o n ( m s g )  
 {  
 t h i s . e r L i s t . p u s h ( m s g ) ;  
 } ,  
 s e t E r r o r C l a s s : f u n c t i o n ( i d )  
 {  
 i f ( ! $ ( i d ) . h a s C l a s s N a m e ( t h i s . e r r C l a s s ) )   $ ( i d ) . a d d C l a s s N a m e ( t h i s . e r r C l a s s )  
 } ,  
 r e s e t E r r o r C l a s s : f u n c t i o n ( i d )  
 {  
 i f ( $ ( i d ) . h a s C l a s s N a m e ( t h i s . e r r C l a s s ) )   $ ( i d ) . r e m o v e C l a s s N a m e ( t h i s . e r r C l a s s )  
 } ,  
 s e t E r r o r S t a t e : f u n c t i o n ( )  
 {  
 t h i s . v a l i d = f a l s e ;  
 } ,  
 g e t V a l i d a t i o n S t a t u s : f u n c t i o n ( )  
 {  
 r e t u r n   t h i s . v a l i d ;  
 } ,  
 g e t V a l i d a t i o n E r r o r L i s t : f u n c t i o n ( )  
 {  
 v a r   e l = t h i s . e r L i s t ;  
 i f ( e l = = n u l l | | e l = = u n d e f i n e d | | e l . l e n g t h = = 0 )   r e t u r n   ' ' ;  
 v a r   t = ' < u l > ' ;  
 f o r   ( i = 0 ; i < e l . l e n g t h ; i + + )  
 t   + = ' < l i > ' + e l [ i ] + ' < / l i > ' ;  
 t + = ' < / u l > ' ;  
 r e t u r n   t ;  
 } ,  
 v a l i d a t e : f u n c t i o n ( )  
 {  
 v a r   t = t h i s ;  
 v a r   p = t . p a r a m s ;  
 t . v a l i d = t r u e ;  
 t . e r L i s t = n e w   A r r a y ( ) ;  
 f o r ( i = 0 ; i < p . l e n g t h ; i + + )  
 {  
 v a r   e = p [ i ] ;  
 s w i t c h   ( e . t y p e )  
 {  
 c a s e   ' t e x t ' :  
 {  
 i f ( ! t . c h e c k T e x t ( e . i d , t . i s R e q u i r e d ( e ) , t r u e , t . m i n ( e ) , t . m a x ( e ) ) )   t . s e t E r r o r ( e )  
 e l s e   i f ( ! t . c h e c k C o m p a r e ( e ) )   t . s e t E r r o r C o m p a r e ( e )  
 e l s e  
 t . c l e a n E r r o r ( e ) ;  
 }  
 b r e a k ;  
 c a s e   ' a n y - t e x t ' :  
 {  
 i f ( ! t . c h e c k T e x t ( e . i d , t . i s R e q u i r e d ( e ) , f a l s e , t . m i n ( e ) , t . m a x ( e ) ) )   t . s e t E r r o r ( e )  
 e l s e   i f ( ! t . c h e c k C o m p a r e ( e ) )   t . s e t E r r o r C o m p a r e ( e )  
 e l s e  
 t . c l e a n E r r o r ( e ) ;  
 }  
 b r e a k ;  
 c a s e   ' i n t ' :  
 {  
 i f ( ! t . c h e c k N u m b e r ( e . i d , t . i s R e q u i r e d ( e ) , t r u e , t . m i n ( e ) , t . m a x ( e ) ) )   t . s e t E r r o r ( e )  
 e l s e   i f ( ! t . c h e c k C o m p a r e ( e ) )   t . s e t E r r o r C o m p a r e ( e )  
 e l s e  
 t . c l e a n E r r o r ( e ) ;  
 }  
 b r e a k ;  
 c a s e   ' n u m b e r ' :  
 {  
 i f ( ! t . c h e c k N u m b e r ( e . i d , t . i s R e q u i r e d ( e ) , f a l s e , t . m i n ( e ) , t . m a x ( e ) ) )   t . s e t E r r o r ( e )  
 e l s e   i f ( ! t . c h e c k C o m p a r e ( e ) )   t . s e t E r r o r C o m p a r e ( e )  
 e l s e  
 t . c l e a n E r r o r ( e ) ;  
 }  
 b r e a k ;  
 c a s e   ' d a t e ' :  
 {  
 i f ( t . i s R e q u i r e d ( e ) & & ( ! t . c h e c k D a t e ( e . i d D , e . i d M , e . i d Y ) ) )   t . s e t E r r o r ( e )  
 e l s e   i f ( ! t . c h e c k C o m p a r e ( e ) )   t . s e t E r r o r C o m p a r e ( e )  
 e l s e  
 t . c l e a n E r r o r ( e ) ;  
 }  
 b r e a k ;  
 c a s e   ' e m a i l ' :  
 {  
 i f ( ! t . c h e c k E m a i l ( e . i d , t . i s R e q u i r e d ( e ) ) )   t . s e t E r r o r ( e )  
 e l s e   i f ( ! t . c h e c k C o m p a r e ( e ) )   t . s e t E r r o r C o m p a r e ( e )  
 e l s e  
 t . c l e a n E r r o r ( e ) ;  
 }  
 b r e a k ;  
 c a s e   ' o p t i o n ' :  
 {  
 i f ( t . i s R e q u i r e d ( e ) & & ( ! t . c h e c k O p t i o n ( e . i d ) ) )   t . s e t E r r o r ( e )  
 e l s e  
 t . c l e a n E r r o r ( e ) ;  
 }  
 b r e a k ;  
 c a s e   ' c h e c k ' :  
 {  
 i f ( ! t . i s R e q u i r e d ( e ) )  
 {  
 i f ( $ F ( e . i d ) = = n u l l )   t . s e t E r r o r ( e )  
 e l s e  
 t . c l e a n E r r o r ( e )  
 }  
 e l s e  
 t . c l e a n E r r o r ( e ) ;  
 }  
 b r e a k ;  
 }  
 }  
 r e t u r n   t . v a l i d ;  
 }  
 }  
  
 v a r   E m a i l = {  
 i d N e w s : ' ' ,  
 d : ' ' ,  
 d M s g : ' ' ,  
 v i e w F r m E m a i l : f u n c t i o n ( n e w s i d , d N , b N )   {  
 i f ( E m a i l . d ! = ' ' )   {  
 $ ( E m a i l . d ) . h i d e ( ) ;  
 $ ( ' e m a i l F r m ' ) . r e m o v e C l a s s N a m e ( ' c u r r e n t ' ) ;  
 E m a i l . d = ' ' ;  
 r e t u r n ;  
 }  
 E m a i l . i d N e w s = n e w s i d ;  
 E m a i l . d = d N ;  
 v a r   u = ' / t h e c l u b / t o o l s / e m a i l / n e w s / _ e m a i l . h t m l ' ;  
 v a r   a = n e w   A j a x . R e q u e s t ( u , {   m e t h o d : ' g e t ' , e v a l S c r i p t s : t r u e , o n C o m p l e t e : E m a i l . d i s p l a y F r m E m a i l   } ) ;  
 i f ( b N ! = u n d e f i n e d )   {  
 $ ( ' e m a i l F r m ' ) . a d d C l a s s N a m e ( ' c u r r e n t ' ) ;  
 B o o k m a r k s . d = b N ;  
 B o o k m a r k s . h i d e B o o k m a r k s ( ) ;  
 }  
 } ,  
 h i d e F r m E m a i l : f u n c t i o n ( )   {  
 $ ( E m a i l . d ) . h i d e ( ) ;  
 E m a i l . d = ' ' ;  
 $ ( ' e m a i l F r m ' ) . r e m o v e C l a s s N a m e ( ' c u r r e n t ' ) ;  
 } ,  
 v i e w F r m E m a i l G e n e r i c : f u n c t i o n ( d N , n e w s T a g , e m a i l T i t l e , m o d e , c o n f i r m a t i o n )   {  
 i f ( E m a i l . d ! = ' ' )  
 $ ( E m a i l . d ) . h i d e ( ) ;  
 E m a i l . d = d N ;  
 v a r   u = ' / t h e c l u b / t o o l s / e m a i l / g e n e r i c e m a i l / _ e m a i l . h t m x ? c _ t a g n e w s b o d y = '   +   n e w s T a g   +   ' & c _ t i t l e = '   +   e m a i l T i t l e   +   ' & c _ m o d e = '   +   m o d e   +   ' & c _ c o n f i r m M s g = '   +   c o n f i r m a t i o n ;  
 v a r   a = n e w   A j a x . R e q u e s t ( u , {   m e t h o d : ' g e t ' , e v a l S c r i p t s : t r u e , o n C o m p l e t e : E m a i l . d i s p l a y F r m E m a i l   } ) ;  
 } ,  
 d i s p l a y F r m E m a i l : f u n c t i o n ( o r i g i n a l R e s p o n s e )   {  
 $ ( E m a i l . d ) . u p d a t e ( o r i g i n a l R e s p o n s e . r e s p o n s e T e x t ) ;  
 v a r   f e = $ ( ' c _ f r o m ' ) ;  
 v a r   f n = $ ( ' c _ f r o m n a m e ' ) ;  
 v a r   c = C o o k i e . g e t ( ' F I F A C o m C l u b ' ) ;  
 i f ( c ! = n u l l & & c ! = = u n d e f i n e d & & f e ! = = u n d e f i n e d & & f e ! = n u l l & & f n ! = = u n d e f i n e d & & f n ! = n u l l )   {  
 f n . v a l u e = c . t o Q u e r y P a r a m s ( ) . u n ;  
 f e . v a l u e = c . t o Q u e r y P a r a m s ( ) . e m ;  
 }  
 $ ( ' c _ u r l n ' ) . v a l u e = d o c u m e n t . l o c a t i o n . h r e f ;  
 $ ( ' e m a i l S u b j e c t T X T ' ) . i n n e r H T M L = n e w s T i t l e S t r i n g ;  
 $ ( E m a i l . d ) . s h o w ( ) ;  
 } ,  
 s e n d E m a i l : f u n c t i o n ( i d N e w s )   {  
 E m a i l . c l e a r A l l E r r o r s ( ) ;  
 i f ( ( $ ( ' c _ f r o m ' ) . v a l u e = = ' ' ) | | ( $ ( ' c _ f r o m n a m e ' ) . v a l u e = = ' ' ) | | ( $ ( ' c _ t o ' ) . v a l u e = = ' ' ) | | ( $ ( ' c _ m e s s a g e ' ) . v a l u e = = ' ' ) )  
 {   $ ( ' c _ e r r o r M s g ' ) . s h o w ( ) ; r e t u r n ; }  
 v a r   f r m = n e w   F o r m V a l i d a t e ( n e w   A r r a y ( 0 ) ) ;  
 i f ( ! f r m . c h e c k E m a i l ( ' c _ f r o m ' , t r u e ) )   {  
 i f ( $ ( ' c _ e r r o r M s g E m a i l F r o m ' ) ! = n u l l )   {   $ ( ' c _ e r r o r M s g E m a i l F r o m ' ) . s h o w ( ) ; }  
 r e t u r n ;  
 }  
 v a r   s t r T o = $ F ( ' c _ t o ' ) ;  
 i f ( s t r T o . l a s t I n d e x O f ( ' , ' ) = = s t r T o . l e n g t h   -   1 )   {  
 s t r T o = s t r T o . s u b s t r i n g ( 0 , s t r T o . l e n g t h   -   1 ) ;  
 $ ( ' c _ t o ' ) . v a l u e = s t r T o ;  
 }  
 v a r   t o A r r = s t r T o . s p l i t ( ' , ' ) ;  
 f o r   ( v a r   i = 0 ; i < t o A r r . l e n g t h ; i + + )   {  
 i f ( ! f r m . c h e c k E m a i l S t r i n g ( t o A r r [ i ] ) )   {  
 i f ( $ ( ' c _ e r r o r M s g E m a i l T o ' ) ! = n u l l )   {   $ ( ' c _ e r r o r M s g E m a i l T o ' ) . s h o w ( ) ; }  
 r e t u r n ;  
 }  
 }  
 i f ( i d N e w s ! = ' ' )  
 {   v a r   u = ' / t h e c l u b / t o o l s / e m a i l / n e w s / n e w s i d = '   +   E m a i l . i d N e w s   +   ' / _ e m a i l . h t m x '   }  
 e l s e  
 {   v a r   u = " / t h e c l u b / t o o l s / e m a i l / g e n e r i c e m a i l / _ e m a i l . h t m x " ; }  
 v a r   a = n e w   A j a x . U p d a t e r ( ' f r m E m a i l ' , e n c o d e U R I ( u ) , {   m e t h o d : ' p o s t ' , p a r a m e t e r s : $ ( ' f _ s e n d E m a i l ' ) . s e r i a l i z e ( ) , e v a l S c r i p t s : t r u e   } ) ;  
 } ,  
 c l s F o r m : f u n c t i o n ( )   {  
 $ ( E m a i l . d ) . h i d e ( ) ;  
 $ ( ' e m a i l F r m ' ) . r e m o v e C l a s s N a m e ( ' c u r r e n t ' ) ;  
 E m a i l . d = ' ' ;  
 r e t u r n ;  
 } ,  
 c l e a r A l l E r r o r s : f u n c t i o n ( )   {  
 $ ( ' c _ e r r o r M s g ' ) . h i d e ( ) ;  
 i f ( $ ( ' c _ e r r o r M s g E m a i l F r o m ' ) ! = n u l l )   {   $ ( ' c _ e r r o r M s g E m a i l F r o m ' ) . h i d e ( ) ; }  
 i f ( $ ( ' c _ e r r o r M s g E m a i l T o ' ) ! = n u l l )   {   $ ( ' c _ e r r o r M s g E m a i l T o ' ) . h i d e ( ) ; }  
 } ,  
 o p e n P h o t o E m a i l D i a l o g : f u n c t i o n ( n e w s i d , d N )   {  
 i f ( E m a i l . d ! = ' ' )  
 $ ( E m a i l . d ) . h i d e ( ) ;  
 E m a i l . i d N e w s = n e w s i d ;  
 E m a i l . d = d N ;  
 v a r   u = ' / t h e c l u b / t o o l s / e m a i l / p h o t o s / p h o t o i d = '   +   E m a i l . i d N e w s   +   ' / _ e m a i l . h t m l ' ;  
 v a r   a = n e w   A j a x . R e q u e s t ( u , {   m e t h o d : ' g e t ' , e v a l S c r i p t s : t r u e , o n C o m p l e t e : E m a i l . d i s p l a y F r m E m a i l   } ) ;  
 } ,  
 s e n d P h o t o E m a i l : f u n c t i o n ( )   {  
 E m a i l . c l e a r A l l E r r o r s ( ) ;  
 i f ( ( $ ( ' c _ f r o m ' ) . v a l u e = = ' ' ) | | ( $ ( ' c _ f r o m n a m e ' ) . v a l u e = = ' ' ) | | ( $ ( ' c _ t o ' ) . v a l u e = = ' ' ) | | ( $ ( ' c _ m e s s a g e ' ) . v a l u e = = ' ' ) )  
 {   $ ( ' c _ e r r o r M s g ' ) . s h o w ( ) ; r e t u r n ; }  
 v a r   f r m = n e w   F o r m V a l i d a t e ( n e w   A r r a y ( 0 ) ) ;  
 i f ( ! f r m . c h e c k E m a i l ( ' c _ f r o m ' , t r u e ) )   {  
 i f ( $ ( ' c _ e r r o r M s g E m a i l F r o m ' ) ! = n u l l )   {   $ ( ' c _ e r r o r M s g E m a i l F r o m ' ) . s h o w ( ) ; }  
 r e t u r n ;  
 }  
 v a r   s t r T o = $ F ( ' c _ t o ' ) ;  
 i f ( s t r T o . l a s t I n d e x O f ( ' , ' ) = = s t r T o . l e n g t h   -   1 )   {  
 s t r T o = s t r T o . s u b s t r i n g ( 0 , s t r T o . l e n g t h   -   1 ) ;  
 $ ( ' c _ t o ' ) . v a l u e = s t r T o ;  
 }  
 v a r   t o A r r = s t r T o . s p l i t ( ' , ' ) ;  
 f o r   ( v a r   i = 0 ; i < t o A r r . l e n g t h ; i + + )   {  
 i f ( ! f r m . c h e c k E m a i l S t r i n g ( t o A r r [ i ] ) )   {  
 i f ( $ ( ' c _ e r r o r M s g E m a i l T o ' ) ! = n u l l )   {   $ ( ' c _ e r r o r M s g E m a i l T o ' ) . s h o w ( ) ; }  
 r e t u r n ;  
 }  
 }  
 v a r   u = ' / t h e c l u b / t o o l s / e m a i l / p h o t o s / p h o t o i d = '   +   E m a i l . i d N e w s   +   ' / _ e m a i l . h t m x ? '   +   $ ( ' f _ s e n d E m a i l ' ) . s e r i a l i z e ( )  
 v a r   a = n e w   A j a x . U p d a t e r ( ' f r m E m a i l ' , e n c o d e U R I ( u ) , {   m e t h o d : ' g e t ' , e v a l S c r i p t s : t r u e   } ) ;  
 } ,  
 m e d i c a l F i e l d V a l i d a t e : f u n c t i o n ( )   {  
 E m a i l . c l e a r A l l E r r o r s ( ) ;  
 i f ( ( $ ( ' a f m c _ l a s t N a m e ' ) . v a l u e = = ' ' ) | | ( $ ( ' a f m c _ f i r s t N a m e ' ) . v a l u e = = ' ' ) | | ( $ ( ' a f m c _ t i t l e ' ) . v a l u e = = ' ' ) | | ( $ ( ' a f m c _ p r o f e s s i o n ' ) . v a l u e = = ' ' ) | | ( $ ( ' a f m c _ i n s t i t u t i o n ' ) . v a l u e = = ' ' ) | | ( $ ( ' a f m c _ m a i l i n g A d r e s s ' ) . v a l u e = = ' ' ) | | ( $ ( ' a f m c _ c i t y Z i p C o d e ' ) . v a l u e = = ' ' ) | | ( $ ( ' a f m c _ c o u n t r y ' ) . v a l u e = = ' ' ) | | ( $ ( ' a f m c _ e m a i l ' ) . v a l u e = = ' ' ) | | ( $ ( ' a f m c _ m o b i l e ' ) . v a l u e = = ' ' ) | | ( $ ( ' a f m c _ d a y t i m e T e l ' ) . v a l u e = = ' ' ) )   {  
 $ ( ' c _ e r r o r M s g ' ) . s h o w ( ) ; $ ( ' c _ e r r o r M s g M a i l ' ) . h i d e ( ) ; s c r o l l ( 0 , 0 ) ; r e t u r n ;  
 }  
 i f ( $ ( ' a f m c _ e m a i l ' ) . v a l u e ! = ' ' & & ! E m a i l . c h e c k E m a i l ( ' a f m c _ e m a i l ' , t r u e ) )   {  
 $ ( ' c _ e r r o r M s g M a i l ' ) . s h o w ( ) ; $ ( ' c _ e r r o r M s g ' ) . h i d e ( ) ; s c r o l l ( 0 , 0 ) ;  
 r e t u r n ;  
 }  
 v a r   u = ' / a b o u t f i f a / d e v e l o p i n g / m e d i c a l / f o o t b a l l m e d i c i n e c o n f e r e n c e / _ r e g i s t r a t i o n . h t m x ? '   +   $ ( ' a f m _ s e n d E m a i l ' ) . s e r i a l i z e ( ) ;  
 w i n d o w . l o c a t i o n . h r e f = u ;  
 r e t u r n   t r u e ;  
 } ,  
 c h e c k E m a i l : f u n c t i o n ( i d , r e q u i r e d )   {  
 v a r   v = $ F ( i d ) ;  
 v a r   m o r e E x t = n e w   A r r a y ( " i n f o " , " a e r o " , " m u s e u m " , " n a m e " ) ;  
 i f ( r e q u i r e d | | v . l e n g t h > 0 )   {  
 v a r   p = n e w   R e g E x p ( " ^ ( \ \ w | - | \ \ . ) + @ ( \ \ w | - | \ \ . ) + \ \ . [ a - z ] { 2 , 3 } $ " , " i " ) ;  
 p M a t c h = p . t e s t ( v ) ;  
 i f ( p M a t c h )  
 r e t u r n   t r u e ;  
 e l s e   {  
 f o r   ( v a r   i = 0 ; i < m o r e E x t . l e n g t h ; i + + )   {  
 p . c o m p i l e ( " ^ ( \ \ w | - | \ \ . ) + @ ( \ \ w | - | \ \ . ) + \ \ . "   +   m o r e E x t [ i ]   +   " $ " ) ;  
 p M a t c h = p . t e s t ( v ) ;  
 i f ( p M a t c h )  
 r e t u r n   t r u e ;  
 }  
 }  
 r e t u r n   f a l s e ;  
 }  
 r e t u r n   t r u e ;  
 }  
 }  
  
 v a r   D B C l i c k O r d = M a t h . r a n d o m ( ) * 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ;  
 v a r   D B C l i c k T i l e = 0 ;  
 v a r   D B C l i c k K e y V a l u e s = g e t D B C l i c k K e y V a l u e s ( ) ;  
 f u n c t i o n   g e t D B C l i c k K e y V a l u e s ( )   {  
 v a r   m = d o c u m e n t . l o c a t i o n . p a t h n a m e . m a t c h ( / [ ^ / ] * = [ ^ / | ^ \ . ] * / g ) ;  
 i f ( m ! = n u l l ) {  
 r e t u r n   m . t o S t r i n g ( ) . r e p l a c e ( ' , ' , ' ; ' ) + ' ; ' ;  
 }   r e t u r n   ' ' ;  
 }  
  
 v a r   t z c = {  
 t F m t : ' d d / M M / y y   H H : m m ' ,  
 t C l s : ' m a t c h T i m e C o n v e r t i b l e ' ,  
 i n i t i a l i z e d : f a l s e ,  
 i n i t : f u n c t i o n ( s F o r m a t )   {  
 i f ( s F o r m a t ! = = u n d e f i n e d & & s F o r m a t ! = n u l l & & s F o r m a t ! = ' ' )   t z c . t F m t = s F o r m a t ;  
 t z c . i n i t i a l i z e d = t r u e ;  
 v a r   c = C o o k i e . g e t ( ' T Z C ' ) ;  
 i f ( c ! = = u n d e f i n e d & & c ! = n u l l & & c = = ' 1 ' )  
 t z c . c l i e n t T i m e ( ) ;  
 e l s e  
 t z c . l o c a l T i m e ( ) ;  
 } ,  
 r e f r e s h A f t e r A j a x : f u n c t i o n ( )   {  
 i f ( t z c . i n i t i a l i z e d ! = t r u e )   r e t u r n ;  
 v a r   c = C o o k i e . g e t ( ' T Z C ' ) ;  
 i f ( c ! = = u n d e f i n e d & & c ! = n u l l & & c = = ' 1 ' )  
 t z c . c l i e n t T i m e ( ) ;  
 e l s e  
 t z c . l o c a l T i m e ( ) ;  
 } ,  
 l o c a l T i m e : f u n c t i o n ( )   {  
 $ ( ' t z c L o c a l ' ) . s h o w ( ) ;  
 $ ( ' t z c C l i e n t ' ) . h i d e ( ) ;  
 v a r   m t s = d o c u m e n t . g e t E l e m e n t s B y C l a s s N a m e ( t z c . t C l s ) ;  
 m t s . e a c h ( f u n c t i o n ( m t )   {  
 i f ( m t . r e a d A t t r i b u t e ( ' t i t l e ' ) ! = n u l l & & m t . r e a d A t t r i b u t e ( ' t i t l e ' ) . l e n g t h > 0 )   {  
 v a r   s = m t . r e a d A t t r i b u t e ( ' t i t l e ' ) . s p l i t ( ' , ' )  
 i f ( s . l e n g t h > 0 )   {  
 m t . u p d a t e ( s [ 0 ] ) ;  
 m t . r e m o v e C l a s s N a m e ( ' T Z C c l i e n t ' ) ;  
 }  
 }  
 } ) ;  
 C o o k i e . s e t ( ' T Z C ' , ' 0 ' , 3 6 5 , ' / ' ) ;  
 } ,  
 c l i e n t T i m e : f u n c t i o n ( )   {  
 $ ( ' t z c C l i e n t ' ) . s h o w ( ) ;  
 $ ( ' t z c L o c a l ' ) . h i d e ( ) ;  
 v a r   m t s = d o c u m e n t . g e t E l e m e n t s B y C l a s s N a m e ( t z c . t C l s ) ;  
 m t s . e a c h ( f u n c t i o n ( m t )   {  
 i f ( m t . r e a d A t t r i b u t e ( ' t i t l e ' ) ! = n u l l & & m t . r e a d A t t r i b u t e ( ' t i t l e ' ) . l e n g t h > 0 )   {  
 v a r   s = m t . r e a d A t t r i b u t e ( ' t i t l e ' ) . s p l i t ( ' , ' )  
 i f ( s . l e n g t h > 0 )   {  
 v a r   t = t z c . f o r m a t D a t e ( t z c . d e c o d e U T C ( s [ 1 ] ) ) ;  
 m t . u p d a t e ( t ) ;  
 m t . a d d C l a s s N a m e ( ' T Z C c l i e n t ' ) ;  
 }  
 }  
 } ) ;  
 C o o k i e . s e t ( ' T Z C ' , ' 1 ' , 3 6 5 , ' / ' ) ;  
 } ,  
 p a d S t r i n g : f u n c t i o n ( s , l , p c )   {   w h i l e   ( s . l e n g t h < l )   {   s = p c   +   s   } ; r e t u r n   s ; } ,  
 f o r m a t D a t e : f u n c t i o n ( d )   {  
 v a r   _ d = t z c . p a d S t r i n g ( d . g e t D a t e ( ) . t o S t r i n g ( ) , 2 , ' 0 ' ) , _ M = t z c . p a d S t r i n g ( ( d . g e t M o n t h ( )   +   1 ) . t o S t r i n g ( ) , 2 , ' 0 ' ) , _ y = t z c . p a d S t r i n g ( ( d . g e t F u l l Y e a r ( )   %   1 0 0 0 ) . t o S t r i n g ( ) , 2 , ' 0 ' ) , _ h = t z c . p a d S t r i n g ( d . g e t H o u r s ( ) . t o S t r i n g ( ) , 2 , ' 0 ' ) , _ m = t z c . p a d S t r i n g ( d . g e t M i n u t e s ( ) . t o S t r i n g ( ) , 2 , ' 0 ' ) ;  
 i f ( t z c . t F m t = = ' d d / M M / y y   H H : m m ' )   r e t u r n   _ d   +   ' / '   +   _ M   +   ' / '   +   _ y   +   '   '   +   _ h   +   ' : '   +   _ m ;  
 i f ( t z c . t F m t = = ' d d / M M   H H : m m ' )   r e t u r n   _ d   +   ' / '   +   _ M   +   '   '   +   _ h   +   ' : '   +   _ m ;  
 i f ( t z c . t F m t = = ' H H : m m ' )   r e t u r n   _ h   +   ' : '   +   _ m ;  
 i f ( t z c . t F m t = = ' d d / M M / y y ' )   r e t u r n   _ d   +   ' / '   +   _ M   +   ' / '   +   _ y ;  
 r e t u r n   _ d   +   ' / '   +   _ M   +   ' / '   +   _ y   +   '   '   +   _ h   +   ' : '   +   _ m ;  
 } ,  
 d e c o d e U T C : f u n c t i o n ( n )   {  
 v a r   _ m = n   %   1 0 0 , _ h = M a t h . f l o o r ( n   /   1 0 0 )   %   1 0 0 , _ d = M a t h . f l o o r ( n   /   1 0 0 0 0 )   %   1 0 0 , _ M = ( M a t h . f l o o r ( n   /   1 0 0 0 0 0 0 )   %   1 0 0 )   -   1 , _ y = M a t h . f l o o r ( n   /   1 0 0 0 0 0 0 0 0 ) , _ d t = n e w   D a t e ( ) ;  
 _ d t . s e t T i m e ( D a t e . U T C ( _ y , _ M , _ d , _ h , _ m ) ) ; r e t u r n   _ d t  
 }  
 }  
  
 v a r   H 2 H L o a d e r = C l a s s . c r e a t e ( ) ;  
 H 2 H L o a d e r . p r o t o t y p e   =  
 {  
 s e l e c t E l e m e n t : 0 ,  
 a j a x U r l : ' ' ,  
 h o m e I d : 0 ,  
 a w a y I d : 0 ,  
 i n i t i a l i z e : f u n c t i o n ( u r l , h o m e I d , a w a y I d )   {  
 t h i s . s e l e c t E l e m e n t = $ ( ' h 2 h b o x _ s e l e c t ' ) ;  
 t h i s . a j a x U r l = u r l ;  
 i f ( h o m e I d )   {  
 t h i s . h o m e I d = h o m e I d ;  
 t h i s . a w a y I d = a w a y I d ;  
 t h i s . _ t e a m S e l e c t H a n d l e r ( ) ;  
 }  
 e l s e   {  
 E v e n t . o b s e r v e ( t h i s . s e l e c t E l e m e n t , ' c h a n g e ' , t h i s . _ t e a m S e l e c t H a n d l e r . b i n d A s E v e n t L i s t e n e r ( t h i s ) ) ;  
 t h i s . _ s e l e c t R a n d o m T e a m ( ) ;  
 }  
 } ,  
 _ t e a m S e l e c t H a n d l e r : f u n c t i o n ( )   {  
 n e w   A j a x . U p d a t e r ( ' h 2 h b o x _ d a t a ' , t h i s . _ b u i l d A j a x U r l ( ) , {   m e t h o d : ' g e t '   } ) ;  
 } ,  
 _ s e l e c t R a n d o m T e a m : f u n c t i o n ( )   {  
 o p t i o n s N u m = t h i s . s e l e c t E l e m e n t . o p t i o n s . l e n g t h ;  
 r a n d o m I n d e x = M a t h . r o u n d ( ( M a t h . r a n d o m ( )   *   1 0 0 ) )   %   o p t i o n s N u m ;  
 t h i s . s e l e c t E l e m e n t . s e l e c t e d I n d e x = r a n d o m I n d e x ;  
 t h i s . _ t e a m S e l e c t H a n d l e r ( ) ;  
 } ,  
 _ b u i l d A j a x U r l : f u n c t i o n ( )   {  
 v a r   u r l = t h i s . a j a x U r l ;  
 i f ( t h i s . h o m e I d = = 0 )   {  
 v a r   u r l = u r l . r e p l a c e ( ' { 1 } ' , $ F ( ' c u r T e a m T r i ' ) ) ;  
 v a r   u r l = u r l . r e p l a c e ( ' { 2 } ' , t h i s . s e l e c t E l e m e n t . v a l u e ) ;  
 }  
 e l s e   {  
 v a r   u r l = u r l . r e p l a c e ( ' { 1 } ' , t h i s . h o m e I d ) ;  
 v a r   u r l = u r l . r e p l a c e ( ' { 2 } ' , t h i s . a w a y I d ) ;  
 }  
 r e t u r n   u r l ;  
 }  
 } ;  
 v a r   P l S l i d e r = C l a s s . c r e a t e ( ) ;  
 P l S l i d e r . p r o t o t y p e   =  
 {  
 v i s i b l e E l e m e n t s : 4 ,  
 c u r r S t a r t E l e m e n t : - 1 ,  
 i n i t i a l i z e : f u n c t i o n ( n u m T o S h o w )  
 {  
 t h i s . v i s i b l e E l e m e n t s = n u m T o S h o w ;  
 t h i s . c u r r S t a r t E l e m e n t = $ $ ( ' # p l a y e r S t a t i s t i c I D   . l i s t P l a y e r   l i . s e l e c t e d ' ) [ 0 ] ;  
 E v e n t . o b s e r v e ( $ ( ' u l L i s t P l a y e r s ' ) , ' m o u s e o v e r ' , f u n c t i o n ( ) {   $ $ ( ' # u l L i s t P l a y e r s   l i . c u r ' ) [ 0 ] . r e m o v e C l a s s N a m e ( ' s e l e c t e d ' ) } ) ;  
 E v e n t . o b s e r v e ( $ ( ' u l L i s t P l a y e r s ' ) , ' m o u s e o u t ' , f u n c t i o n ( ) {   $ $ ( ' # u l L i s t P l a y e r s   l i . c u r ' ) [ 0 ] . a d d C l a s s N a m e ( ' s e l e c t e d ' ) } ) ;  
 i f ( ! w i n d o w . X M L H t t p R e q u e s t )   / / h a c k   f o r   d e t e c t i n g   i e 6  
 {  
 $ $ ( ' # p l a y e r S t a t i s t i c I D   . l i s t P l a y e r   l i ' ) . e a c h ( f u n c t i o n ( e )  
 {  
 E v e n t . o b s e r v e ( e , ' m o u s e o v e r ' , f u n c t i o n ( )   { E l e m e n t . a d d C l a s s N a m e ( e , ' i e s e l e c t e d ' ) ; } ) ;  
 E v e n t . o b s e r v e ( e , ' m o u s e o u t ' , f u n c t i o n ( )   { E l e m e n t . r e m o v e C l a s s N a m e ( e , ' i e s e l e c t e d ' ) ; } ) ;  
 } ) ;  
 }  
 } ,  
 n e x t : f u n c t i o n ( )  
 {  
 v a r   n e x t H i d d e n E l = t h i s . c u r r S t a r t E l e m e n t . n e x t ( ' l i . h i d d e n ' ) ;  
 v a r   n e x t C u r r E l = t h i s . c u r r S t a r t E l e m e n t . n e x t ( ' l i ' ) ;  
 i f ( n e x t H i d d e n E l ! = u n d e f i n e d )  
 {  
 n e x t H i d d e n E l . r e m o v e C l a s s N a m e ( ' h i d d e n ' ) ;  
 t h i s . c u r r S t a r t E l e m e n t . a d d C l a s s N a m e ( ' h i d d e n ' ) ;  
 t h i s . c u r r S t a r t E l e m e n t . r e m o v e C l a s s N a m e ( ' s e l e c t e d ' ) ;  
 t h i s . c u r r S t a r t E l e m e n t . r e m o v e C l a s s N a m e ( ' c u r ' ) ;  
 n e x t C u r r E l . a d d C l a s s N a m e ( ' s e l e c t e d ' ) ;  
 n e x t C u r r E l . a d d C l a s s N a m e ( ' c u r ' ) ;  
 t h i s . c u r r S t a r t E l e m e n t = n e x t C u r r E l ;  
 }  
 } ,  
 p r e v : f u n c t i o n ( )  
 {  
 v a r   p r e v H i d d e n E l = t h i s . c u r r S t a r t E l e m e n t . p r e v i o u s ( ' l i . h i d d e n ' ) ;  
 v a r   l a s t V i s i b l e E l = t h i s . c u r r S t a r t E l e m e n t . n e x t ( ' l i ' , t h i s . v i s i b l e E l e m e n t s   - 2 ) ;  
 i f ( p r e v H i d d e n E l ! = u n d e f i n e d )  
 {  
 p r e v H i d d e n E l . r e m o v e C l a s s N a m e ( ' h i d d e n ' ) ;  
 p r e v H i d d e n E l . a d d C l a s s N a m e ( ' s e l e c t e d ' ) ;  
 p r e v H i d d e n E l . a d d C l a s s N a m e ( ' c u r ' ) ;  
 l a s t V i s i b l e E l . a d d C l a s s N a m e ( ' h i d d e n ' ) ;  
 t h i s . c u r r S t a r t E l e m e n t . r e m o v e C l a s s N a m e ( ' s e l e c t e d ' ) ;  
 t h i s . c u r r S t a r t E l e m e n t . r e m o v e C l a s s N a m e ( ' c u r ' ) ;  
 t h i s . c u r r S t a r t E l e m e n t = p r e v H i d d e n E l ;  
 }  
 }  
 } ;  
  
 v a r   B o o k m a r k s = {  
 d : ' ' ,  
 v i e w F r m B o o k m a r k s : f u n c t i o n ( d N , e N )   {  
 S h a r i n g T o o l s . g i g y a S o c i a l i z e ( ) ;  
 } ,  
 h i d e B o o k m a r k s : f u n c t i o n ( )   {  
 $ ( B o o k m a r k s . d ) . i n n e r H T M L = '   ' ;  
 B o o k m a r k s . d = ' ' ;  
 $ ( ' b o o k m a r k s F r m ' ) . r e m o v e C l a s s N a m e ( ' c u r r e n t ' ) ;  
 } ,  
 s e t B o o k m a r k s : f u n c t i o n ( )   {  
 $ ( ' f a c e b o o k ' ) . h r e f = ' h t t p : / / w w w . f a c e b o o k . c o m / s h a r e r . p h p ? u = '   +   d o c u m e n t . l o c a t i o n ;  
 $ ( ' d i g g ' ) . h r e f = ' h t t p : / / d i g g . c o m / s u b m i t ? u r l = '   +   d o c u m e n t . l o c a t i o n   +   ' & a m p ; t i t l e = '   +   d o c u m e n t . t i t l e . r e p l a c e ( ' F I F A . c o m   -   ' , ' ' ) ;  
 $ ( ' d e l i c i o u s ' ) . h r e f = ' h t t p : / / d e l . i c i o . u s / p o s t ? u r l = '   +   d o c u m e n t . l o c a t i o n   +   ' & a m p ; t i t l e = '   +   d o c u m e n t . t i t l e . r e p l a c e ( ' F I F A . c o m   -   ' , ' ' ) ;  
 $ ( ' s t u m b l e u p o n ' ) . h r e f = ' h t t p : / / w w w . s t u m b l e u p o n . c o m / s u b m i t ? u r l = '   +   d o c u m e n t . l o c a t i o n   +   ' & a m p ; t i t l e = '   +   d o c u m e n t . t i t l e . r e p l a c e ( ' F I F A . c o m   -   ' , ' ' ) ;  
 $ ( ' r e d d i t ' ) . h r e f = ' h t t p : / / r e d d i t . c o m / s u b m i t ? u r l = '   +   d o c u m e n t . l o c a t i o n   +   ' & a m p ; t i t l e = '   +   d o c u m e n t . t i t l e . r e p l a c e ( ' F I F A . c o m   -   ' , ' ' ) ;  
 }  
 }  
 v a r   S h a r i n g T o o l s = {  
 s h o w S o c i a l S h a r i n g : f u n c t i o n ( )   {  
 S h a r i n g T o o l s . f a c e b o o k L i k e ( ) ;  
 } ,  
 f a c e b o o k L i k e : f u n c t i o n ( )   {  
 $ j ( " # s o c i a l S h a r i n g T o o l s " ) . a p p e n d ( ' < d i v   i d = " f a c e b o o k L i k e T o o l " > < i f r a m e   s c r o l l i n g = " n o "   h e i g h t = " 2 2 "   f r a m e b o r d e r = " 0 "   w i d t h = " 9 0 "   s r c = " h t t p : / / w w w . f a c e b o o k . c o m / p l u g i n s / l i k e . p h p ? h r e f = '   +   e n c o d e U R I C o m p o n e n t ( b a s e U r l   +   w i n d o w . l o c a t i o n . p a t h n a m e . r e p l a c e ( ' c o m m e n t s . h t m l ' , ' i n d e x . h t m l ' ) )   +   ' & a m p ; l a y o u t = b u t t o n _ c o u n t & a m p ; s h o w _ f a c e s = f a l s e & a m p ; w i d t h = 2 0 0 & a m p ; a c t i o n = l i k e & a m p ; f o n t & a m p ; c o l o r s c h e m e = l i g h t & a m p ; h e i g h t = 2 1 "   a l l o w T r a n s p a r e n c y = " t r u e " > < / i f r a m e > < / d i v > ' ) ;  
 } ,  
 t w e e t M e M e : f u n c t i o n ( )   {  
 $ j ( " # s o c i a l S h a r i n g T o o l s " ) . h t m l ( ' < d i v   i d = " t w e e t M e M e T o o l " > < i f r a m e   s c r o l l i n g = " n o "   h e i g h t = " 2 0 "   f r a m e b o r d e r = " 0 "   w i d t h = " 9 0 "   s r c = " h t t p : / / a p i . t w e e t m e m e . c o m / b u t t o n . j s ? u r l = '   +   e n c o d e U R I C o m p o n e n t ( b a s e U r l   +   w i n d o w . l o c a t i o n . p a t h n a m e . r e p l a c e ( ' c o m m e n t s . h t m l ' , ' i n d e x . h t m l ' ) )   +   ' & a m p ; s t y l e = c o m p a c t "   a l l o w T r a n s p a r e n c y = " t r u e " > < / i f r a m e > < / d i v > ' ) ; / / & a m p ; s o u r c e = f i f a c o m  
 } ,  
 g i g y a S o c i a l i z e : f u n c t i o n ( )   {  
 $ j . g e t S c r i p t ( " h t t p : / / c d n . g i g y a . c o m / J S / s o c i a l i z e . j s " , f u n c t i o n ( )   {  
 v a r   c o n f = {   A P I K e y : ' 2 _ c H w l A M G W p m u W H O g T 1 s J j f x z A 5 W _ u 6 A P w t H a S v 8 T j N d f F S d - X l e 5 F Y m T 3 f d Z E w h - c '   } ;  
 v a r   a c t = n e w   g i g y a . s e r v i c e s . s o c i a l i z e . U s e r A c t i o n ( ) ;  
 a c t . s e t U s e r M e s s a g e ( ' ' ) ;  
 a c t . s e t T i t l e ( d o c u m e n t . t i t l e ) ;  
 a c t . s e t L i n k B a c k ( b a s e U r l   +   w i n d o w . l o c a t i o n . p a t h n a m e   +   ' ? c i d = s h a r e _ g i g y a s o c i a l i z e ' ) ;  
 a c t . s e t D e s c r i p t i o n ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d e s c r i p t i o n ' ) [ 0 ] . c o n t e n t ) ;  
 t r y   {  
 a c t . a d d M e d i a I t e m ( {  
 t y p e : ' i m a g e ' ,  
 s r c : ' h t t p : / / w w w . f i f a . c o m / m m / '   +   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' t h u m b ' ) [ 0 ] . c o n t e n t ,  
 h r e f : b a s e U r l   +   w i n d o w . l o c a t i o n . p a t h n a m e   +   ' ? c i d = s h a r e _ g i g y a s o c i a l i z e '  
 } ) ;  
 }   c a t c h   ( e )   {   } ;  
 v a r   p a r a m s = {  
 u s e r A c t i o n : a c t ,  
 d i s a b l e d P r o v i d e r s : " l i n k e d i n " ,  
 s h o w M o r e B u t t o n : " t r u e "  
 } ;  
 g i g y a . s e r v i c e s . s o c i a l i z e . s h o w S h a r e U I ( c o n f , p a r a m s ) ;  
 } ) ;  
 }  
 }  
  
 v a r   T a b l e S o r t a b l e = C l a s s . c r e a t e ( ) ;  
 T a b l e S o r t a b l e . p r o t o t y p e   =  
 {  
 D A T E _ R E : / ^ ( \ d \ d ? ) [ \ / \ . - ] ( \ d \ d ? ) [ \ / \ . - ] ( ( \ d \ d ) ? \ d \ d ) $ / ,  
 i n i t i a l i z e : f u n c t i o n ( i d )  
 {  
 i d = i d | | ' ' ;  
 v a r   t a b l e = $ ( i d ) ;  
 i f ( ! t a b l e )   r e t u r n ;  
 t h i s . m a k e S o r t a b l e ( t a b l e ) ;  
 } ,  
 m a k e S o r t a b l e : f u n c t i o n ( t a b l e )   {  
 i f ( t a b l e . g e t E l e m e n t s B y T a g N a m e ( ' t h e a d ' ) . l e n g t h = = 0 )  
 {  
 t h e = d o c u m e n t . c r e a t e E l e m e n t ( ' t h e a d ' ) ;  
 t h e . a p p e n d C h i l d ( t a b l e . r o w s [ 0 ] ) ;  
 t a b l e . i n s e r t B e f o r e ( t h e , t a b l e . f i r s t C h i l d ) ;  
 }  
 i f ( t a b l e . t H e a d = = n u l l )   t a b l e . t H e a d = t a b l e . g e t E l e m e n t s B y T a g N a m e ( ' t h e a d ' ) [ 0 ] ;  
 i f ( t a b l e . t H e a d . r o w s . l e n g t h ! = 1 )   r e t u r n ; / /   c a n ' t   c o p e   w i t h   t w o   h e a d e r   r o w s  
 h e a d r o w = t a b l e . t H e a d . r o w s [ 0 ] . c e l l s ;  
 f o r   ( v a r   i = 0 ; i < h e a d r o w . l e n g t h ; i + + )  
 {  
 i f ( ! $ ( h e a d r o w [ i ] ) . h a s C l a s s N a m e ( ' s o r t t a b l e _ n o s o r t ' ) )  
 {  
 m t c h = h e a d r o w [ i ] . c l a s s N a m e . m a t c h ( / \ b s o r t t a b l e _ ( [ a - z 0 - 9 ] + ) \ b / ) ;  
 i f ( m t c h )   {   o v e r r i d e = m t c h [ 1 ] ; }  
 i f ( m t c h & & t y p e o f   t h i s [ " s o r t _ " + o v e r r i d e ] = = ' f u n c t i o n ' )  
 {  
 h e a d r o w [ i ] . s o r t t a b l e _ s o r t f u n c t i o n = s o r t t a b l e [ " s o r t _ " + o v e r r i d e ] ;  
 }  
 e l s e  
 {  
 h e a d r o w [ i ] . s o r t t a b l e _ s o r t f u n c t i o n = t h i s . g u e s s T y p e ( t a b l e , i ) ;  
 }  
 h e a d r o w [ i ] . s o r t t a b l e _ c o l u m n i n d e x = i ;  
 t h i s . s o r t t a b l e _ t b o d y = t a b l e . t B o d i e s [ 0 ] ;  
 h e a d r o w [ i ] . s e t S t y l e ( { c u r s o r : ' p o i n t e r ' } ) ;  
 v a r   m e =   t h i s ;  
 E v e n t . o b s e r v e ( h e a d r o w [ i ] , " c l i c k " ,  
 f u n c t i o n ( e v t )  
 {  
 v a r   t a r g e t = E v e n t . e l e m e n t ( e v t ) ;  
 i f ( t a r g e t . t a g N a m e . t o L o w e r C a s e ( ) ! = ' t h ' )  
 t a r g e t = t a r g e t . u p ( ' t h ' ) ;  
 i f ( t a r g e t . h a s C l a s s N a m e ( ' s o r t t a b l e _ s o r t e d ' ) )  
 {  
 m e . r e v e r s e ( m e . s o r t t a b l e _ t b o d y ) ;  
 t a r g e t . r e m o v e C l a s s N a m e ( ' s o r t t a b l e _ s o r t e d ' ) ;  
 t a r g e t . a d d C l a s s N a m e ( ' s o r t t a b l e _ s o r t e d _ r e v e r s e ' ) ;  
 t a r g e t . r e m o v e C h i l d ( $ ( ' s o r t t a b l e _ s o r t f w d i n d ' ) ) ;  
 s o r t r e v i n d = d o c u m e n t . c r e a t e E l e m e n t ( ' s p a n ' ) ;  
 s o r t r e v i n d . i d = ' s o r t t a b l e _ s o r t r e v i n d ' ;  
 s o r t r e v i n d . i n n e r H T M L = ' ‘!' ;  
 t a r g e t . a p p e n d C h i l d ( s o r t r e v i n d ) ;  
 r e t u r n ;  
 }  
 i f ( t a r g e t . h a s C l a s s N a m e ( ' s o r t t a b l e _ s o r t e d _ r e v e r s e ' ) )  
 {  
 m e . r e v e r s e ( m e . s o r t t a b l e _ t b o d y ) ;  
 t a r g e t . r e m o v e C l a s s N a m e ( ' s o r t t a b l e _ s o r t e d _ r e v e r s e ' ) ;  
 t a r g e t . a d d C l a s s N a m e ( ' s o r t t a b l e _ s o r t e d ' ) ;  
 t a r g e t . r e m o v e C h i l d ( $ ( ' s o r t t a b l e _ s o r t r e v i n d ' ) ) ;  
 s o r t f w d i n d = d o c u m e n t . c r e a t e E l e m e n t ( ' s p a n ' ) ;  
 s o r t f w d i n d . i d = ' s o r t t a b l e _ s o r t f w d i n d ' ;  
 s o r t f w d i n d . i n n e r H T M L = ' “!' ;  
 t a r g e t . a p p e n d C h i l d ( s o r t f w d i n d ) ;  
 r e t u r n ;  
 }  
 t h e a d r o w = t a r g e t . p a r e n t N o d e ;  
 $ A ( t h e a d r o w . c h i l d N o d e s ) . e a c h ( f u n c t i o n ( c e l l )  
 {  
 i f ( c e l l . n o d e T y p e = = 1 )  
 {   / /   a n   e l e m e n t  
 c e l l . r e m o v e C l a s s N a m e ( ' s o r t t a b l e _ s o r t e d _ r e v e r s e ' ) ;  
 c e l l . r e m o v e C l a s s N a m e ( ' s o r t t a b l e _ s o r t e d ' ) ;  
 }  
 } ) ;  
 s o r t f w d i n d   = $ ( ' s o r t t a b l e _ s o r t f w d i n d ' ) ;  
 i f ( s o r t f w d i n d )   {   s o r t f w d i n d . p a r e n t N o d e . r e m o v e C h i l d ( s o r t f w d i n d ) ; }  
 s o r t r e v i n d = $ ( ' s o r t t a b l e _ s o r t r e v i n d ' ) ;  
 i f ( s o r t r e v i n d )   {   s o r t r e v i n d . p a r e n t N o d e . r e m o v e C h i l d ( s o r t r e v i n d ) ; }  
 t a r g e t . a d d C l a s s N a m e ( '   s o r t t a b l e _ s o r t e d ' ) ;  
 s o r t f w d i n d = d o c u m e n t . c r e a t e E l e m e n t ( ' s p a n ' ) ;  
 s o r t f w d i n d . i d = " s o r t t a b l e _ s o r t f w d i n d " ;  
 s o r t f w d i n d . i n n e r H T M L   = ' “!' ;  
 t a r g e t . a p p e n d C h i l d ( s o r t f w d i n d ) ;  
 r o w _ a r r a y = [ ] ;  
 c o l = t a r g e t . s o r t t a b l e _ c o l u m n i n d e x ;  
 r o w s = m e . s o r t t a b l e _ t b o d y . r o w s ;  
 f o r   ( v a r   j = 0 ; j < r o w s . l e n g t h ; j + + )  
 {  
 r o w _ a r r a y [ r o w _ a r r a y . l e n g t h ] = [ m e . g e t I n n e r T e x t ( r o w s [ j ] . c e l l s [ c o l ] ) , r o w s [ j ] ] ;  
 }  
 r o w _ a r r a y . s o r t ( t a r g e t . s o r t t a b l e _ s o r t f u n c t i o n ) ;  
 t b = m e . s o r t t a b l e _ t b o d y ;  
 f o r   ( v a r   j = 0 ; j < r o w _ a r r a y . l e n g t h ; j + + )  
 {  
 v a r   a R o w = $ ( r o w _ a r r a y [ j ] [ 1 ] ) ;  
 i f ( j % 2 = = 0 )  
 {  
 a R o w . r e m o v e C l a s s N a m e ( ' e v e n ' ) ;  
 a R o w . a d d C l a s s N a m e ( ' o d d ' ) ;  
 }  
 e l s e  
 {  
 a R o w . r e m o v e C l a s s N a m e ( ' o d d ' ) ;  
 a R o w . a d d C l a s s N a m e ( ' e v e n ' ) ;  
 }  
 t b . a p p e n d C h i l d ( a R o w ) ;  
 }  
 d e l e t e   r o w _ a r r a y ;  
 } ) ;  
 }  
 }  
 } ,  
 g u e s s T y p e : f u n c t i o n ( t a b l e , c o l u m n )   {  
 s o r t f n = t h i s . s o r t _ a l p h a ;  
 f o r   ( v a r   i = 0 ; i < t a b l e . t B o d i e s [ 0 ] . r o w s . l e n g t h ; i + + )  
 {  
 t e x t = t h i s . g e t I n n e r T e x t ( t a b l e . t B o d i e s [ 0 ] . r o w s [ i ] . c e l l s [ c o l u m n ] ) ;  
 i f ( t e x t ! = ' ' )  
 {  
 i f ( t e x t . m a t c h ( / ^ - ? [ £ $ ¤ ] ? [ \ d , . ] + % ? $ / ) )  
 {  
 r e t u r n   t h i s . s o r t _ n u m e r i c ;  
 }  
 p o s s d a t e = t e x t . m a t c h ( t h i s . D A T E _ R E )  
 i f ( p o s s d a t e )  
 {  
 f i r s t = p a r s e I n t ( p o s s d a t e [ 1 ] ) ;  
 s e c o n d = p a r s e I n t ( p o s s d a t e [ 2 ] ) ;  
 i f ( f i r s t > 1 2 )  
 {  
 r e t u r n   t h i s . s o r t _ d d m m ;  
 }  
 e l s e   i f ( s e c o n d > 1 2 )  
 {  
 r e t u r n   t h i s . s o r t _ m m d d ;  
 }  
 e l s e  
 {  
 s o r t f n = t h i s . s o r t _ d d m m ;  
 }  
 }  
 }  
 }  
 r e t u r n   s o r t f n ;  
 } ,  
 g e t I n n e r T e x t : f u n c t i o n ( n o d e )  
 {  
 h a s I n p u t s = ( t y p e o f   n o d e . g e t E l e m e n t s B y T a g N a m e = = ' f u n c t i o n ' ) & &  
 n o d e . g e t E l e m e n t s B y T a g N a m e ( ' i n p u t ' ) . l e n g t h ;  
 i f ( n o d e . g e t A t t r i b u t e ( " s o r t t a b l e _ c u s t o m k e y " ) ! = n u l l )  
 {  
 r e t u r n   n o d e . g e t A t t r i b u t e ( " s o r t t a b l e _ c u s t o m k e y " ) ;  
 }  
 e l s e   i f ( t y p e o f   n o d e . t e x t C o n t e n t ! = ' u n d e f i n e d ' & & ! h a s I n p u t s )  
 {  
 r e t u r n   n o d e . t e x t C o n t e n t . r e p l a c e ( / ^ \ s + | \ s + $ / g , ' ' ) ;  
 }  
 e l s e   i f ( t y p e o f   n o d e . i n n e r T e x t ! = ' u n d e f i n e d ' & & ! h a s I n p u t s )  
 {  
 r e t u r n   n o d e . i n n e r T e x t . r e p l a c e ( / ^ \ s + | \ s + $ / g , ' ' ) ;  
 }  
 e l s e   i f ( t y p e o f   n o d e . t e x t ! = ' u n d e f i n e d ' & & ! h a s I n p u t s )  
 {  
 r e t u r n   n o d e . t e x t . r e p l a c e ( / ^ \ s + | \ s + $ / g , ' ' ) ;  
 }  
 e l s e  
 {  
 s w i t c h   ( n o d e . n o d e T y p e )  
 {  
 c a s e   3 :  
 i f ( n o d e . n o d e N a m e . t o L o w e r C a s e ( ) = = ' i n p u t ' )  
 {  
 r e t u r n   n o d e . v a l u e . r e p l a c e ( / ^ \ s + | \ s + $ / g , ' ' ) ;  
 }  
 c a s e   4 :  
 r e t u r n   n o d e . n o d e V a l u e . r e p l a c e ( / ^ \ s + | \ s + $ / g , ' ' ) ;  
 b r e a k ;  
 c a s e   1 :  
 c a s e   1 1 :  
 v a r   i n n e r T e x t = ' ' ;  
 f o r   ( v a r   i = 0 ; i < n o d e . c h i l d N o d e s . l e n g t h ; i + + )  
 {  
 i n n e r T e x t   + =   t h i s . g e t I n n e r T e x t ( n o d e . c h i l d N o d e s [ i ] ) ;  
 }  
 r e t u r n   i n n e r T e x t . r e p l a c e ( / ^ \ s + | \ s + $ / g , ' ' ) ;  
 b r e a k ;  
 d e f a u l t :  
 r e t u r n   ' ' ;  
 }  
 }  
 } ,  
 r e v e r s e : f u n c t i o n ( t b o d y )  
 {  
 n e w r o w s = [ ] ;  
 f o r   ( v a r   i = 0 ; i < t b o d y . r o w s . l e n g t h ; i + + )  
 {  
 n e w r o w s [ n e w r o w s . l e n g t h ] = t b o d y . r o w s [ i ] ;  
 }  
 f o r   ( v a r   i = n e w r o w s . l e n g t h - 1 ; i > = 0 ; i - - )  
 {  
 t b o d y . a p p e n d C h i l d ( n e w r o w s [ i ] ) ;  
 }  
 d e l e t e   n e w r o w s ;  
 } ,  
 s o r t _ n u m e r i c : f u n c t i o n ( a , b )  
 {  
 a a = p a r s e F l o a t ( a [ 0 ] . r e p l a c e ( / [ ^ 0 - 9 . - ] / g , ' ' ) ) ;  
 i f ( i s N a N ( a a ) )   a a = 0 ;  
 b b = p a r s e F l o a t ( b [ 0 ] . r e p l a c e ( / [ ^ 0 - 9 . - ] / g , ' ' ) ) ;  
 i f ( i s N a N ( b b ) )   b b = 0 ;  
 r e t u r n   a a - b b ;  
 } ,  
 s o r t _ a l p h a : f u n c t i o n ( a , b )  
 {  
 i f ( a [ 0 ] = = b [ 0 ] )   r e t u r n   0 ;  
 i f ( a [ 0 ] < b [ 0 ] )   r e t u r n   - 1 ;  
 r e t u r n   1 ;  
 } ,  
 s o r t _ d d m m : f u n c t i o n ( a , b )  
 {  
 m t c h = a [ 0 ] . m a t c h ( s o r t t a b l e . D A T E _ R E ) ;  
 y = m t c h [ 3 ] ; m = m t c h [ 2 ] ; d = m t c h [ 1 ] ;  
 i f ( m . l e n g t h = = 1 )   m = ' 0 ' + m ;  
 i f ( d . l e n g t h = = 1 )   d = ' 0 ' + d ;  
 d t 1 = y + m + d ;  
 m t c h = b [ 0 ] . m a t c h ( s o r t t a b l e . D A T E _ R E ) ;  
 y = m t c h [ 3 ] ; m = m t c h [ 2 ] ; d = m t c h [ 1 ] ;  
 i f ( m . l e n g t h = = 1 )   m = ' 0 ' + m ;  
 i f ( d . l e n g t h = = 1 )   d = ' 0 ' + d ;  
 d t 2 = y + m + d ;  
 i f ( d t 1 = = d t 2 )   r e t u r n   0 ;  
 i f ( d t 1 < d t 2 )   r e t u r n   - 1 ;  
 r e t u r n   1 ;  
 } ,  
 s o r t _ m m d d : f u n c t i o n ( a , b )  
 {  
 m t c h = a [ 0 ] . m a t c h ( s o r t t a b l e . D A T E _ R E ) ;  
 y = m t c h [ 3 ] ; d = m t c h [ 2 ] ; m = m t c h [ 1 ] ;  
 i f ( m . l e n g t h = = 1 )   m = ' 0 ' + m ;  
 i f ( d . l e n g t h = = 1 )   d = ' 0 ' + d ;  
 d t 1 = y + m + d ;  
 m t c h = b [ 0 ] . m a t c h ( s o r t t a b l e . D A T E _ R E ) ;  
 y = m t c h [ 3 ] ; d = m t c h [ 2 ] ; m = m t c h [ 1 ] ;  
 i f ( m . l e n g t h = = 1 )   m = ' 0 ' + m ;  
 i f ( d . l e n g t h = = 1 )   d = ' 0 ' + d ;  
 d t 2 = y + m + d ;  
 i f ( d t 1 = = d t 2 )   r e t u r n   0 ;  
 i f ( d t 1 < d t 2 )   r e t u r n   - 1 ;  
 r e t u r n   1 ;  
 } ,  
 s h a k e r _ s o r t : f u n c t i o n ( l i s t , c o m p _ f u n c )  
 {  
 v a r   b = 0 ;  
 v a r   t = l i s t . l e n g t h   -   1 ;  
 v a r   s w a p = t r u e ;  
 w h i l e ( s w a p )  
 {  
 s w a p = f a l s e ;  
 f o r ( v a r   i = b ; i < t ; + + i )   {  
 i f ( c o m p _ f u n c ( l i s t [ i ] , l i s t [ i + 1 ] ) > 0 )   {  
 v a r   q = l i s t [ i ] ; l i s t [ i ] = l i s t [ i + 1 ] ; l i s t [ i + 1 ] = q ;  
 s w a p = t r u e ;  
 }  
 }   / /   f o r  
 t - - ;  
 i f ( ! s w a p )   b r e a k ;  
 f o r ( v a r   i = t ; i > b ; - - i )  
 {  
 i f ( c o m p _ f u n c ( l i s t [ i ] , l i s t [ i - 1 ] ) < 0 )  
 {  
 v a r   q = l i s t [ i ] ; l i s t [ i ] = l i s t [ i - 1 ] ; l i s t [ i - 1 ] = q ;  
 s w a p = t r u e ;  
 }  
 }  
 b + + ;  
 }  
 }  
 }  
  
 v a r   u r l ;  
 v a r   m a s c o t = {  
 V o t e M a s c o t : f u n c t i o n ( i d , p ) {  
 v a r   f = $ ( ' f _ p o l l ' + i d ) ;  
 v a r   d = ' d y n a m i c _ ' + i d ;  
 v a r   b V = f a l s e ;  
 u r l = p ;  
 f o r   ( v a r   i = 0 ; i < f . i _ a n s w e r s . l e n g t h ; i + + )  
 {  
 i f ( f . i _ a n s w e r s [ i ] . c h e c k e d )  
 b V = t r u e ;  
 }  
 i f ( ! b V )  
 {  
 a l e r t ( f . m e s s a g e . v a l u e ) ;  
 r e t u r n   f a l s e ;  
 }  
 n e w   A j a x . U p d a t e r ( d , u r l + ' v o t e . h t m x ' , { m e t h o d : ' p o s t ' , p a r a m e t e r s : f . s e r i a l i z e ( ) } ) ;  
 } ,  
 V i e w R O R e s u l t M a s c o t : f u n c t i o n ( i d , l a n g ) {  
 v a r   d = ' d y n a m i c _ ' + i d ;  
 v a r   l = ' ' ; i f ( l a n g ! = = u n d e f i n e d & & l a n g ! = n u l l & & l a n g ! = ' ' )   l = ' / l a n g u a g e = ' + l a n g ;  
 n e w   A j a x . U p d a t e r ( d , u r l + ' r e s u l t . h t m l ' , { m e t h o d : ' g e t ' } ) ;  
 } ,  
 L o a d M a s c o t : f u n c t i o n ( i d , p ) {  
 u r l = p  
 v a r   d = ' d y n a m i c _ ' + i d ;  
 v a r   c = C o o k i e . g e t ( ' p o l l ' + i d ) ;  
 v a r   u = u r l + ' r e s u l t . h t m l ' ;  
 i f ( c = = = u n d e f i n e d | | c = = n u l l | | c = = ' ' )  
 u = u r l + ' v o t e . h t m l '  
 n e w   A j a x . U p d a t e r ( d , u , { m e t h o d : ' g e t ' } ) ;  
 }  
 }  
  
 v a r   T u r f S e a r c h = {  
 i n i t F o r m : f u n c t i o n ( )   {  
 v a r   q s = l o c a t i o n . s e a r c h ;  
 v a r   a r r = q s . p a r s e Q u e r y ( ) ;  
 i f ( a r r . f u > 0 )   {   $ j ( " # u s e r " ) . v a l ( a r r . f u ) ; }  
 i f ( a r r . c f > 0 )   {   $ j ( " # c o n f e d e r a t i o n " ) . v a l ( a r r . c f ) ; }  
 i f ( a r r . s t > 0 )   {   $ j ( " # s t a r " ) . v a l ( a r r . s t ) ; }  
 i f ( a r r . f u > 0 | | a r r . c f > 0 | | a r r . s t > 0 )   {  
 T u r f S e a r c h . d o S e a r c h ( ) ;  
 }  
 }  
 , d o S e a r c h : f u n c t i o n ( )   {  
 $ j ( ' # l o a d i n g ' ) . i n s e r t B e f o r e ( ' # t u r f S e a r c h R e s u l t s P a n e ' ) . a j a x S t a r t ( f u n c t i o n ( )   {   $ j ( ' # t u r f S e a r c h S u b m i t ' ) . a t t r ( ' d i s a b l e d ' , ' d i s a b l e d ' ) ; $ j ( ' # t u r f S e a r c h R e s u l t s P a n e ' ) . h i d e ( ) ; $ j ( t h i s ) . s h o w ( ) ; } ) . a j a x S t o p ( f u n c t i o n ( )   {   $ j ( ' # t u r f S e a r c h S u b m i t ' ) . r e m o v e A t t r ( ' d i s a b l e d ' ) ; $ j ( t h i s ) . h i d e ( ) ; } ) ;  
 v a r   c c = $ F ( ' c o u n t r y ' ) ;  
 v a r   l c = $ F ( ' l i c e n c e e ' ) ;  
 v a r   c f = $ F ( ' c o n f e d e r a t i o n ' ) ;  
 v a r   s t = $ F ( ' s t a r ' ) ;  
 v a r   f u = $ F ( ' u s e r ' ) ;  
 v a r   a n = $ F ( ' a u t h N u m b e r ' ) ;  
 v a r   q s = ' ' ;  
 i f ( c f ! = = u n d e f i n e d & & c f ! = n u l l & & c f ! = ' ' )  
 q s   + =   ' c f = '   +   c f   +   ' & ' ;  
 i f ( c c ! = = u n d e f i n e d & & c c ! = n u l l & & c c ! = ' ' )  
 q s   + =   ' c c = '   +   c c   +   ' & ' ;  
 i f ( l c ! = = u n d e f i n e d & & l c ! = n u l l & & l c ! = ' ' )  
 q s   + =   ' l c = '   +   l c   +   ' & ' ;  
 i f ( s t ! = = u n d e f i n e d & & s t ! = n u l l & & s t ! = ' ' )  
 q s   + =   ' s t = '   +   s t   +   ' & ' ;  
 i f ( f u ! = = u n d e f i n e d & & f u ! = n u l l & & f u ! = ' ' )  
 q s   + =   ' f u = '   +   f u   +   ' & ' ;  
 i f ( a n ! = = u n d e f i n e d & & a n ! = n u l l & & a n ! = ' ' )  
 q s   + =   ' a n = '   +   a n   +   ' & ' ;  
 v a r   u = ' / a b o u t f i f a / d e v e l o p i n g / p i t c h e q u i p m e n t / f o o t b a l l t u r f / _ t u r f s e a r c h r e s u l t s . h t m x ? '   +   q s ;  
 $ j . g e t ( u , f u n c t i o n ( d a t a )   {  
 $ j ( " # t u r f S e a r c h R e s u l t s P a n e " ) . r e p l a c e W i t h ( d a t a ) ;  
 } ) ;  
 }  
 }  
  
 v a r   q T e a m s = {   R S A : 4 3 8 8 3 ,  
 A L G : 4 3 8 4 3 ,  
 C M R : 4 3 8 4 9 ,  
 C I V : 4 3 8 5 4 ,  
 G H A : 4 3 8 6 0 ,  
 N G A : 4 3 8 7 6 ,  
 A U S : 4 3 9 7 6 ,  
 J P N : 4 3 8 1 9 ,  
 P R K : 4 3 8 2 1 ,  
 K O R : 4 3 8 2 2 ,  
 D E N : 4 3 9 4 1 ,  
 E N G : 4 3 9 4 2 ,  
 F R A : 4 3 9 4 6 ,  
 G E R : 4 3 9 4 8 ,  
 G R E : 4 3 9 4 9 ,  
 I T A : 4 3 9 5 4 ,  
 N E D : 4 3 9 6 0 ,  
 P O R : 4 3 9 6 3 ,  
 S R B : 1 9 0 2 4 6 5 ,  
 S V K : 4 4 0 0 2 ,  
 S V N : 4 3 9 6 8 ,  
 E S P : 4 3 9 6 9 ,  
 S U I : 4 3 9 7 1 ,  
 H O N : 4 3 9 0 9 ,  
 M E X : 4 3 9 1 1 ,  
 U S A : 4 3 9 2 1 ,  
 A R G : 4 3 9 2 2 ,  
 B R A : 4 3 9 2 4 ,  
 C H I : 4 3 9 2 5 ,  
 P A R : 4 3 9 2 8 ,  
 U R U : 4 3 9 3 0 ,  
 N Z L : 4 3 9 7 8  
 } ;  
 $ j ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( )  
 {  
 t r y {  
 v a r   a r V e r s i o n = n a v i g a t o r . a p p V e r s i o n . s p l i t ( " M S I E " )  
 v a r   v e r s i o n = p a r s e F l o a t ( a r V e r s i o n [ 1 ] )  
 i f ( ( v e r s i o n > = 5 . 5 ) & & ( v e r s i o n < 7 ) )  
 {  
 f o r   ( v a r   i = 0 ; i < d o c u m e n t . i m a g e s . l e n g t h ; i + + )  
 {  
 v a r   i m g = d o c u m e n t . i m a g e s [ i ]  
 v a r   i m g N a m e = i m g . s r c . t o U p p e r C a s e ( )  
 i f ( i m g N a m e . s u b s t r i n g ( i m g N a m e . l e n g t h   -   3 , i m g N a m e . l e n g t h ) = = " P N G " )  
 {  
 v a r   i m g I D = ( i m g . i d )   ?   " i d = ' "   +   i m g . i d   +   " '   " : " "  
 v a r   i m g C l a s s = ( i m g . c l a s s N a m e )   ?   " c l a s s = ' "   +   i m g . c l a s s N a m e   +   " '   " : " "  
 v a r   i m g T i t l e = ( i m g . t i t l e )   ?   " t i t l e = ' "   +   i m g . t i t l e   +   " '   " : " t i t l e = ' "   +   i m g . a l t   +   " '   "  
 v a r   i m g S t y l e = " d i s p l a y : i n l i n e - b l o c k ; "   +   i m g . s t y l e . c s s T e x t  
 i f ( i m g . a l i g n = = " l e f t " )   i m g S t y l e = " f l o a t : l e f t ; "   +   i m g S t y l e  
 i f ( i m g . a l i g n = = " r i g h t " )   i m g S t y l e = " f l o a t : r i g h t ; "   +   i m g S t y l e  
 i f ( i m g . p a r e n t E l e m e n t . h r e f )   i m g S t y l e = " c u r s o r : h a n d ; "   +   i m g S t y l e  
 v a r   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  
 +   "   s t y l e = \ " "   +   " w i d t h : "   +   i m g . w i d t h   +   " p x ; h e i g h t : "   +   i m g . h e i g h t   +   " p x ; "   +   i m g 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 m g . s r c   +   " \ ' , s i z i n g M e t h o d = ' s c a l e ' ) ; \ " > < / s p a n > "  
 i m g . o u t e r H T M L = s t r N e w H T M L  
 i = i   -   1  
 }  
 }  
 }  
 } c a t c h   ( e )   { }  
 } ) ;  
 v a r   p a g e r e d i r e c t = {  
 g o T o P a g e : f u n c t i o n ( p a g e )   {  
 l o c a t i o n . h r e f = p a g e ;  
 }  
 } ;  
 v a r   F W C L o g i n M o d u l e = {  
 m y G a m e s L o a d e d : f a l s e  
 , p a r t n e r S i t e : f a l s e  
 , i n i t : f u n c t i o n ( p a r t n e r )   {  
 i f ( p a r t n e r = = = t r u e )   F W C L o g i n M o d u l e . p a r t n e r S i t e = t r u e ;  
 v a r   c = C o o k i e . g e t ( ' F I F A C o m C l u b ' ) ;  
 b L o g g e d I n = f a l s e ;  
 i f ( c ! = n u l l & & c ! = = u n d e f i n e d )   {  
 t r y   {   i f ( c . t o Q u e r y P a r a m s ( ) . u n . l e n g t h > 0 )   b L o g g e d I n = t r u e ; }  
 c a t c h   ( e )   {   }  
 }  
 i f ( ! b L o g g e d I n )   {  
 $ j ( " # n o L o g g e d " ) . s h o w ( ) ;  
 $ j ( " # L o g g e d " ) . h i d e ( ) ;  
 }   e l s e   {  
 $ j ( " # n o L o g g e d " ) . h i d e ( ) ;  
 $ j ( " . f w c _ c l u b " ) . a d d C l a s s ( ' l o g g e d ' ) ;  
 $ j ( " # m y F w c N a m e   a " ) . t e x t ( c . t o Q u e r y P a r a m s ( ) . u n ) ;  
 v a r   a v a t a r U r l = b a s e U r l   +   " / u s e r d a t a / "   +   s p l i t R e s o u r c e I d ( g e t U O p t ( ' i d ' ) , 3 )   +   " / a v a t a r _ 5 0 . p n g " ;  
 $ j ( " # m y F w c A v a t a r   a " ) . h t m l ( " < i m g   s r c = ' "   +   a v a t a r U r l   +   " '   h e i g h t = ' 5 0 '   w i d t h = ' 5 0 ' / > " ) ;  
 $ j ( " # m y F w c N a m e   a , # m y F w c A v a t a r   a " ) . a t t r ( " h r e f " , b a s e U r l   +   " / t h e c l u b / m y p r o f i l e / i n d e x . h t m x " ) ;  
 v a r   t 1 = c . t o Q u e r y P a r a m s ( ) . m 1 ;  
 i f ( t 1 . l e n g t h > 0 )   {  
 F W C L o g i n M o d u l e . b i n d T e a m ( 1 , t 1 ) ;  
 }   e l s e   {  
 $ j ( " # m y F w c T e a m " ) . h i d e ( ) ;  
 }  
 $ j ( " # L o g g e d " ) . s h o w ( ) ;  
 c h a n g e A b s L i n k ( ' # f w c _ l e v 0 m e n u ' , b a s e U r l   +   ' / t h e c l u b / i n d e x . h t m l ' , b a s e U r l   +   ' / t h e c l u b / m y p r o f i l e / i n d e x . h t m x ' ) ;  
 }  
 }  
 , b i n d T e a m : f u n c t i o n ( i , c o d e )   {  
 i f ( c o d e . l e n g t h > 0 )   {  
 i f ( q T e a m s [ c o d e ] ! = u n d e f i n e d )  
 $ j ( " # m y F w c T e a m " ) . h t m l ( ' < a   h r e f = " '   +   b a s e U r l   +   ' / w o r l d c u p / t e a m s / t e a m = '   +   q T e a m s [ c o d e ]   +   ' / i n d e x . h t m l " > < i m g   w i d t h = " 4 0 "   h e i g h t = " 3 5 "   t i t l e = " '   +   c o d e   +   ' "   a l t = " '   +   c o d e   +   ' "   s r c = " '   +   b a s e U r l   +   ' / i m g m l / f l a g s / r e f l e c t e d / m / '   +   c o d e   +   ' . p n g " / > < s p a n > '   +   c o d e   +   ' < / s p a n > < / a > ' ) ;  
 e l s e  
 $ j ( " # m y F w c T e a m " ) . h t m l ( ' < a   h r e f = " '   +   b a s e U r l   +   ' / w o r l d c u p / p r e l i m i n a r i e s / t e a m s / m a = '   +   c o d e   +   ' / i n d e x . h t m l " > < i m g   w i d t h = " 3 0 "   h e i g h t = " 2 0 "   t i t l e = " '   +   c o d e   +   ' "   a l t = " '   +   c o d e   +   ' "   s r c = " '   +   b a s e U r l   +   ' / i m g m l / f l a g s / x m / '   +   c o d e   +   ' . g i f " / > < s p a n > '   +   c o d e   +   ' < / s p a n > < / a > ' ) ;  
 }  
 e l s e   {  
 $ j ( " # m y F w c T e a m "   +   i ) . h i d e ( ) ;  
 }  
 }  
 , l o g i n P o p u p : f u n c t i o n ( )   {  
 i f ( $ j ( ' # l o g i n R e g i s t e r ' ) . h a s C l a s s ( " o p e n " ) )   {  
 $ j ( ' # l o g i n R e g i s t e r ' ) . r e m o v e C l a s s ( " o p e n " ) ;  
 $ j ( ' # l o g i n R e g i s t e r   # F w c L o g i n P o p u p ' ) . h i d e ( ) ;  
 }   e l s e   {  
 $ j ( ' # l o g i n R e g i s t e r ' ) . a d d C l a s s ( " o p e n " ) ;  
 $ j ( ' # l o g i n R e g i s t e r   # F w c L o g i n P o p u p ' ) . s h o w ( ) ;  
 }  
 }  
 , l o g g e d P o p u p : f u n c t i o n ( )   {  
 i f ( $ j ( ' # m y A c t i v i t i e s ' ) . h a s C l a s s ( " o p e n " ) )   {  
 $ j ( ' # m y A c t i v i t i e s ' ) . r e m o v e C l a s s ( " o p e n " ) ;  
 $ j ( ' # m y F w c P r o f i l e   # F w c L o g g e d P o p u p ' ) . h i d e ( ) ;  
 }   e l s e   {  
 $ j ( ' # m y A c t i v i t i e s ' ) . a d d C l a s s ( " o p e n " ) ;  
 $ j ( ' # m y F w c P r o f i l e   # F w c L o g g e d P o p u p ' ) . s h o w ( ) ;  
 i f ( ! F W C L o g i n M o d u l e . p a r t n e r S i t e & & ! F W C L o g i n M o d u l e . m y G a m e s L o a d e d )   {  
 F W C L o g i n M o d u l e . m y G a m e s L o a d e d = t r u e ;  
 $ j ( " # F w c L o g g e d P o p u p   # g a m e s " ) . l o a d ( " / t h e c l u b / l i b r a r y / c o m m o n / _ m y g a m e s . h t m x " , f u n c t i o n ( )   {  
 $ j ( ' # m y G a m e s A c c o r d i o n ' ) . a p p e n d ( " < d t   c l a s s = ' b o t t o m ' > < d i v > < / d i v > < / d t > < d d > < / d d > " ) ;  
 v a r   d t h = 0 ;  
 $ j ( ' # m y G a m e s A c c o r d i o n   d t ' ) . e a c h ( f u n c t i o n ( )   {   d t h   + =   $ j ( t h i s ) . h e i g h t ( )   } ) ;  
 $ j ( ' # m y G a m e s A c c o r d i o n   d d ' ) . h e i g h t ( $ j ( ' # m y G a m e s A c c o r d i o n ' ) . h e i g h t ( )   -   d t h ) ;  
 $ j ( ' # m y G a m e s A c c o r d i o n   d t : f i r s t   a ' ) . a d d C l a s s ( " c u r r e n t " ) ;  
 $ j ( ' # m y G a m e s A c c o r d i o n   d d : f i r s t ' ) . s h o w ( ) ;  
 $ j ( ' # m y G a m e s A c c o r d i o n   d d : n o t ( : f i r s t ) ' ) . h i d e ( ) ;  
 $ j ( ' # m y G a m e s A c c o r d i o n   d t   a ' ) . c l i c k ( f u n c t i o n ( )   {  
 i f ( ! $ j ( t h i s ) . h a s C l a s s ( " c u r r e n t " ) )   {  
 $ j ( ' # m y G a m e s A c c o r d i o n   d d ' ) . s l i d e U p ( ) ;  
 $ j ( t h i s ) . p a r e n t ( ) . n e x t ( ) . s l i d e D o w n ( ) ;  
 $ j ( ' # m y G a m e s A c c o r d i o n   d t   a . c u r r e n t ' ) . r e m o v e C l a s s ( " c u r r e n t " ) ;  
 $ j ( t h i s ) . a d d C l a s s ( " c u r r e n t " ) ;  
 }  
 r e t u r n   f a l s e ;  
 } ) ;  
 } ) ;  
 }  
 }  
 }  
 , l o g o u t : f u n c t i o n ( )   {  
 C o o k i e . e r a s e ( ' F I F A C o m C l u b ' ) ;  
 C o o k i e . e r a s e ( ' w a r n e d ' ) ;  
 b L o g g e d I n = f a l s e ;  
 $ j ( " # n o L o g g e d " ) . s h o w ( ) ;  
 $ j ( " # L o g g e d " ) . h i d e ( ) ;  
 c h a n g e A b s L i n k ( ' # f w c _ l e v 0 m e n u ' , b a s e U r l   +   ' / t h e c l u b / m y p r o f i l e / i n d e x . h t m x ' , b a s e U r l   +   ' / t h e c l u b / i n d e x . h t m l ' ) ;  
 i f ( b N e e d A u t e n t i c a t i o n )  
 d o c u m e n t . l o c a t i o n . h r e f = " / " ;  
 e l s e  
 d o c u m e n t . l o c a t i o n . h r e f = d o c u m e n t . l o c a t i o n . h r e f ;  
 i f ( $ j ( " # n r _ t a b s " ) . h a s C l a s s ( " b g T a b M y T e a m " ) )   {  
 N e w s R e a d e r . s h o w M y T e a m ( ) ;  
 }  
 }  
 }  
 v a r   N e w s R e a d e r   =  
 {  
 o p t i o n s : u n d e f i n e d  
 , n e w s : u n d e f i n e d  
 , v i d e o s : u n d e f i n e d  
 , p h o t o s : u n d e f i n e d  
 , m y t e a m : u n d e f i n e d  
 , u r l V i d e o s : u n d e f i n e d  
 , u r l P h o t o s : u n d e f i n e d  
 , u r l M y T e a m : u n d e f i n e d  
 , i n i t : f u n c t i o n ( o p t , u r l V i d e o s , u r l P h o t o s )  
 {  
 N e w s R e a d e r . o p t i o n s = o p t ;  
 N e w s R e a d e r . u r l V i d e o s = u r l V i d e o s ;  
 N e w s R e a d e r . u r l P h o t o s = u r l P h o t o s ;  
 N e w s R e a d e r . n e w s = $ j ( ' # f w c _ h p N R D e t a i l C o n t a i n e r ' ) . h t m l ( ) ;  
 $ j ( ' # f w c _ h p n e w s r e a d e r   # f w c _ n e w s r e a d e r W r a p p e r   . e m p t y ' ) . r e m o v e ( ) ;  
 $ j ( ' # f w c _ h p N R D e t a i l C o n t a i n e r ' ) . s h o w ( ) ;  
 $ j ( ' # f w c _ h p N R D e t a i l C o n t a i n e r ' ) . g a l l e r y V i e w ( N e w s R e a d e r . o p t i o n s ) ;  
 }  
 , s h o w N e w s : f u n c t i o n ( m o d e )  
 {  
 $ j ( ' # f w c _ h p N R D e t a i l C o n t a i n e r ' ) . h t m l ( N e w s R e a d e r . n e w s ) ;  
 $ j ( d o c u m e n t ) . s t o p T i m e ( " t r a n s i t i o n " ) ;  
 $ j ( ' # f w c _ h p N R D e t a i l C o n t a i n e r ' ) . s h o w ( ) ;  
 $ j ( ' # f w c _ h p N R D e t a i l C o n t a i n e r ' ) . g a l l e r y V i e w ( N e w s R e a d e r . o p t i o n s ) ;  
 $ j ( ' . n h   h 3 ' ) . a t t r ( ' c l a s s ' , ' ' ) ;  
 $ j ( ' . n h   h 3 ' ) . a d d C l a s s ( ' n e w s ' ) ;  
 $ j ( ' # n r _ t a b s ' ) . a t t r ( ' c l a s s ' , ' ' ) ;  
 $ j ( ' # n r _ t a b s ' ) . a d d C l a s s ( ' b g T a b N e w s ' ) ;  
 t r y   {  
 m n g H P M a t c h D e t a i l . d e s e l e c t A l l ( ) ;  
 i f ( ! m o d e )   $ j ( ' # f w c H P M a t c h l i s t ' ) . l o a d ( ' / L i v e / C o m p e t i t i o n s / w o r l d c u p / _ h p t o u r n a m e n t . h t m l ' ) ;  
 }  
 c a t c h   ( e )   {   }  
 }  
 , s h o w V i d e o s : f u n c t i o n ( )  
 {  
 i f ( N e w s R e a d e r . v i d e o s ! = ' l o a d i n g ' )  
 {  
 i f ( N e w s R e a d e r . v i d e o s = = = u n d e f i n e d )  
 {  
 N e w s R e a d e r . v i d e o s = ' l o a d i n g ' ;  
 $ j . g e t ( N e w s R e a d e r . u r l V i d e o s , f u n c t i o n ( d a t a )   {   N e w s R e a d e r . v i d e o s = d a t a ; N e w s R e a d e r . s h o w V i d e o s ( ) ; } ) ;  
 }  
 e l s e  
 {  
 $ j ( ' # f w c _ h p N R D e t a i l C o n t a i n e r ' ) . r e p l a c e W i t h ( N e w s R e a d e r . v i d e o s ) ;  
 $ j ( d o c u m e n t ) . s t o p T i m e ( " t r a n s i t i o n " ) ;  
 $ j ( ' # f w c _ h p N R D e t a i l C o n t a i n e r ' ) . s h o w ( ) ;  
 $ j ( ' # f w c _ h p N R D e t a i l C o n t a i n e r ' ) . g a l l e r y V i e w ( N e w s R e a d e r . o p t i o n s ) ;  
 $ j ( ' . n h   h 3 ' ) . a t t r ( ' c l a s s ' , ' ' ) ;  
 $ j ( ' . n h   h 3 ' ) . a d d C l a s s ( ' v i d e o ' ) ;  
 $ j ( ' # n r _ t a b s ' ) . a t t r ( ' c l a s s ' , ' ' ) ;  
 $ j ( ' # n r _ t a b s ' ) . a d d C l a s s ( ' b g T a b V i d e o ' ) ;  
 t r y   {  
 m n g H P M a t c h D e t a i l . d e s e l e c t A l l ( ) ;  
 $ j ( ' # f w c H P M a t c h l i s t ' ) . l o a d ( ' / L i v e / C o m p e t i t i o n s / w o r l d c u p / _ h p t o u r n a m e n t . h t m l ' ) ;  
 }  
 c a t c h   ( e )   {   }  
 }  
 }  
 }  
 , s h o w P h o t o s : f u n c t i o n ( )  
 {  
 i f ( N e w s R e a d e r . p h o t o s ! = ' l o a d i n g ' )  
 {  
 i f ( N e w s R e a d e r . p h o t o s = = = u n d e f i n e d )  
 {  
 N e w s R e a d e r . p h o t o s = ' l o a d i n g ' ;  
 $ j . g e t ( N e w s R e a d e r . u r l P h o t o s , f u n c t i o n ( d a t a )   {   N e w s R e a d e r . p h o t o s = d a t a ; N e w s R e a d e r . s h o w P h o t o s ( ) ; } ) ;  
 }  
 e l s e  
 {  
 $ j ( ' # f w c _ h p N R D e t a i l C o n t a i n e r ' ) . r e p l a c e W i t h ( N e w s R e a d e r . p h o t o s ) ;  
 $ j ( d o c u m e n t ) . s t o p T i m e ( " t r a n s i t i o n " ) ;  
 $ j ( ' # f w c _ h p N R D e t a i l C o n t a i n e r ' ) . s h o w ( ) ;  
 $ j ( ' # f w c _ h p N R D e t a i l C o n t a i n e r ' ) . g a l l e r y V i e w ( N e w s R e a d e r . o p t i o n s ) ;  
 $ j ( ' . n h   h 3 ' ) . a t t r ( ' c l a s s ' , ' ' ) ;  
 $ j ( ' . n h   h 3 ' ) . a d d C l a s s ( ' p h o t o ' ) ;  
 $ j ( ' # n r _ t a b s ' ) . a t t r ( ' c l a s s ' , ' ' ) ;  
 $ j ( ' # n r _ t a b s ' ) . a d d C l a s s ( ' b g T a b P h o t o ' ) ;  
 t r y   {  
 m n g H P M a t c h D e t a i l . d e s e l e c t A l l ( ) ;  
 $ j ( ' # f w c H P M a t c h l i s t ' ) . l o a d ( ' / L i v e / C o m p e t i t i o n s / w o r l d c u p / _ h p t o u r n a m e n t . h t m l ' ) ;  
 }  
 c a t c h   ( e )   {   }  
 }  
 }  
 }  
 , s h o w M y T e a m : f u n c t i o n ( )  
 {  
 i f ( N e w s R e a d e r . m y t e a m ! = ' l o a d i n g ' )  
 {  
 v a r   t e a m u r l =   N e w s R e a d e r . c a l c u l a t e T e a m U r l ( ) ;  
 i f ( t e a m u r l ! = N e w s R e a d e r . u r l M y T e a m | | ( N e w s R e a d e r . m y t e a m = = = u n d e f i n e d ) )  
 {  
 N e w s R e a d e r . m y t e a m = ' l o a d i n g ' ;  
 N e w s R e a d e r . u r l M y T e a m = t e a m u r l ;  
 $ j . g e t ( t e a m u r l , f u n c t i o n ( d a t a )   {   N e w s R e a d e r . m y t e a m = d a t a ; N e w s R e a d e r . s h o w M y T e a m ( ) ; } ) ;  
 }  
 e l s e  
 {  
 $ j ( ' # f w c _ h p N R D e t a i l C o n t a i n e r ' ) . r e p l a c e W i t h ( N e w s R e a d e r . m y t e a m ) ;  
 $ j ( d o c u m e n t ) . s t o p T i m e ( " t r a n s i t i o n " ) ;  
 $ j ( ' # f w c _ h p N R D e t a i l C o n t a i n e r ' ) . s h o w ( ) ;  
 $ j ( ' # n r _ t a b s ' ) . a t t r ( ' c l a s s ' , ' ' ) ;  
 $ j ( ' # n r _ t a b s ' ) . a d d C l a s s ( ' b g T a b M y T e a m ' ) ;  
 t r y   {  
 m n g H P M a t c h D e t a i l . d e s e l e c t A l l ( ) ;  
 $ j ( ' # f w c H P M a t c h l i s t ' ) . l o a d ( ' / L i v e / C o m p e t i t i o n s / w o r l d c u p / _ h p t o u r n a m e n t . h t m l ' ) ;  
 }  
 c a t c h   ( e )   {   }  
 }  
 }  
 }  
 , c a l c u l a t e T e a m U r l : f u n c t i o n ( )  
 {  
 i f ( b L o g g e d I n )  
 {  
 v a r   c = C o o k i e . g e t ( ' F I F A C o m C l u b ' ) ;  
 v a r   t 1 T r i = c . t o Q u e r y P a r a m s ( ) . m 1 ;  
 i f ( q T e a m s [ t 1 T r i ] ! = u n d e f i n e d )  
 {  
 r e t u r n   ' / w o r l d c u p / t e a m s / t e a m = ' + q T e a m s [ t 1 T r i ] + ' / l i b r a r y / _ m y t e a m _ h p . h t m l ' ;  
 }  
 e l s e  
 {  
 r e t u r n   ' / w o r l d c u p / l i b r a r y / h o m e p a g e / _ m y t e a m _ t e a m s e l e c t i o n . h t m l ' ;  
 }  
 }  
 e l s e  
 {  
 r e t u r n   ' / w o r l d c u p / l i b r a r y / h o m e p a g e / _ m y t e a m _ l o g i n . h t m l ' ;  
 }  
 }  
 , s h o w N o n e : f u n c t i o n ( )  
 {  
 $ j ( ' # n r _ t a b s ' ) . a t t r ( ' c l a s s ' , ' ' ) ;  
 $ j ( ' # n r _ t a b s ' ) . a d d C l a s s ( ' b g T a b N o n e ' ) ;  
 }  
 }  
 f u n c t i o n   a d d B B H o v e r ( u r l )  
 {  
 i f ( u r l ! = ' ' )  
 {  
 v a r   e l e m = $ j ( " a [ h r e f = ' "   +   u r l   +   " ' ] " ) . p a r e n t s ( ' . b o x ' ) . c h i l d r e n ( ' d i v . b H ' ) ;  
 e l e m . a t t r ( " c l a s s " , " b H   b H H o v e r " ) ;  
 i f ( e l e m . c h i l d r e n ( ' h 2 ' ) . h t m l ( ) ! = n u l l )   e l e m . c h i l d r e n ( ' h 2 ' ) . w r a p ( ' < a   h r e f = " '   +   u r l   +   ' " > < / a > ' ) ;  
 i f ( e l e m . c h i l d r e n ( ' h 3 ' ) . h t m l ( ) ! = n u l l )   e l e m . c h i l d r e n ( ' h 3 ' ) . w r a p ( ' < a   h r e f = " '   +   u r l   +   ' " > < / a > ' ) ;  
 }  
 }  
 i f ( t y p e o f ( s p l i t R e s o u r c e I d ) = = = ' u n d e f i n e d ' )  
 {  
 f u n c t i o n   s p l i t R e s o u r c e I d ( i d , s p l i t L e n )  
 {  
 v a r   r e t = ' ' ;  
 i d = i d . t o S t r i n g ( ) ;  
 i f ( i d ! = ' ' )  
 {  
 f o r   ( v a r   i = 0 ; i < ( i d . l e n g t h   -   i d . l e n g t h   %   s p l i t L e n )   /   s p l i t L e n ; i + + )  
 {  
 r e t   + =   i d . s u b s t r ( i   *   s p l i t L e n , s p l i t L e n )   +   ' / ' ;  
 }  
 i f ( i   *   s p l i t L e n < i d . l e n g t h )   r e t   + =   i d . s u b s t r ( i   *   s p l i t L e n )   +   ' / ' ;  
 r e t = r e t . s l i c e ( 0 , - 1 ) ;  
 }  
 r e t u r n   r e t ;  
 }  
 }  
 v a r   M y T e a m T a b H a n d l e r =  
 {  
 L o g i n S u b m i t : f u n c t i o n ( v a l i d a t o r )  
 {  
 i f ( v a l i d a t o r . v a l i d a t e ( ) )  
 {  
 $ j ( ' # d _ e r r o r P a n e l L o g i n ' ) . h i d e ( ) ;  
 v a r   u = $ j ( " # f _ l o g i n   # c f _ e m a i l " ) . v a l ( ) ;  
 v a r   p = $ j ( " # f _ l o g i n   # c f _ p a s s w o r d " ) . v a l ( ) ;  
 v a r   c = $ j ( " # f _ l o g i n   # c _ r e m e m b e r M e " ) . v a l ( ) ;  
 v a r   u r l = " / u s e r s / m o d u l e l o g i n . h t m x " ;  
 $ j . p o s t ( u r l , {   p a s s w o r d : p , l o g i n : u , s a v e L o g i n : c   } , f u n c t i o n ( r e s p )  
 {  
 i f ( r e s p . m a t c h ( " ^ 0 # " ) = = " 0 # " )   / / S t a r t s W i t h   m i m i n g  
 {  
 F W C L o g i n M o d u l e . i n i t ( ) ;  
 N e w s R e a d e r . s h o w M y T e a m ( ) ;  
 }  
 e l s e  
 {  
 $ j ( " d _ e r r o r P a n e l L o g i n " ) . t e x t ( r e s p . s u b s t r ( r e s p . i n d e x O f ( " # " )   +   1 , r e s p . l e n g t h ) ) . s h o w ( ) ;  
 }  
 } ) ;  
 r e t u r n   f a l s e ;  
 }  
 e l s e  
 {  
 $ j ( ' # d _ e r r o r P a n e l L o g i n ' ) . s h o w ( ) ;  
 r e t u r n   f a l s e ;  
 }  
 }  
 , T e a m S e l e c t : f u n c t i o n ( )  
 {  
 $ j ( " # c h o o s e T e a m   t d   a " ) . c l i c k ( f u n c t i o n ( )  
 {  
 v a r   m a T r i =   $ j ( t h i s ) . f i n d ( " i m g " ) . a t t r ( " s r c " )  
 m a T r i = m a T r i . s u b s t r i n g ( m a T r i . l a s t I n d e x O f ( " / " ) + 1 ) . r e p l a c e ( " . g i f " , " " )  
 v a r   u r l = " / t h e c l u b / m y p r o f i l e / p r o f i l e / f a v t e a m . h t m x " ;  
 $ j . p o s t ( u r l , {   m : m a T r i   } , f u n c t i o n ( r e s p ) {  
 i f ( r e s p = = " 0 " )  
 {  
 N e w s R e a d e r . s h o w M y T e a m ( ) ;  
 F W C L o g i n M o d u l e . i n i t ( ) ;  
 }  
 } )  
 r e t u r n   f a l s e ;  
 } ) ;  
 }  
 }  
 v a r   H i g h l i g h t H e a d e r T a b l e = {  
 m a i n : f u n c t i o n ( t a b l e C l a s s )   {  
 $ j ( t a b l e C l a s s ) . e a c h ( f u n c t i o n ( )   {  
 v a r   t a b l e I D = $ j ( t h i s ) . a t t r ( " i d " ) ;  
 $ j ( " # "   +   t a b l e I D   +   "   t b o d y   t d . i n f o " )  
 . l i v e ( " m o u s e o v e r " , f u n c t i o n ( ) { H i g h l i g h t H e a d e r T a b l e . m O v e r ( t h i s , t a b l e I D ) ; } )  
 . l i v e ( ' m o u s e o u t ' , f u n c t i o n ( ) { H i g h l i g h t H e a d e r T a b l e . m O u t ( t h i s , t a b l e I D ) ; } )  
 } )  
 }  
 , m O v e r : f u n c t i o n ( e l , i d )   {  
 $ j ( e l ) . p a r e n t ( ) . a d d C l a s s ( ' o n ' ) ;  
 $ j ( " # "   +   i d   +   "   t d : n t h - c h i l d ( " + ( e l . c e l l I n d e x + 1 ) + " ) " ) . a d d C l a s s ( " o n " ) ;  
 i f ( $ j ( " # "   +   i d   +   "   t h : e q ( " + e l . c e l l I n d e x + " )   a c r o n y m " ) . a t t r ( " t i t l e " ) )   {  
 $ j ( " # " +   i d ) . e a c h ( f u n c t i o n ( ) {  
 $ j ( " t h : e q ( " + e l . c e l l I n d e x + " ) " , t h i s ) . p r e p e n d ( ' < s p a n   c l a s s = " e x p a n d e d D e s c " > '  
 + $ j ( " t h : e q ( " + e l . c e l l I n d e x + " )   a c r o n y m " , t h i s ) . a t t r ( " t i t l e " ) +   " < / s p a n > " ) ;  
 $ j ( " t h : e q ( " + e l . c e l l I n d e x + " )   a c r o n y m " , t h i s ) . h i d e ( ) ;  
 } )  
 }  
 }  
 , m O u t : f u n c t i o n ( e l , i d )   {  
 $ j ( e l ) . p a r e n t ( ) . r e m o v e C l a s s ( ' o n ' ) ;  
 $ j ( " # " + i d + "   t d : n t h - c h i l d ( " + ( e l . c e l l I n d e x + 1 ) + " ) " ) . r e m o v e C l a s s ( " o n " ) ;  
 i f ( $ j ( " # " +   i d   + "   t h : e q ( " + e l . c e l l I n d e x + " )   a c r o n y m " ) . a t t r ( " t i t l e " ) )   {  
 $ j ( " # " +   i d ) . e a c h ( f u n c t i o n ( ) {  
 $ j ( " t h : e q ( "   +   e l . c e l l I n d e x   +   " )   s p a n . e x p a n d e d D e s c " , t h i s ) . r e m o v e ( ) ;  
 $ j ( " t h : e q ( " + e l . c e l l I n d e x + " )   a c r o n y m " , t h i s ) . s h o w ( ) ;  
 } )  
 }  
 }  
 } ;  
 ( f u n c t i o n ( $ )   {  
 $ . f n . t i c k e r S c r o l l = f u n c t i o n ( s e t t i n g s )   {  
 v a r   c o n f i g = {   ' u l S e l e c t o r ' : ' # u l T i c k e r ' , ' o p e n S e l e c t o r ' : ' # h p L a t e s t N e w s '   } ;  
 i f ( s e t t i n g s )   $ . e x t e n d ( c o n f i g , s e t t i n g s ) ;  
 f u n c t i o n   a n i m a t e H e a d l i n e ( )   {  
 $ ( " # u l T i c k e r   l i : f i r s t " ) . c s s ( " p o s i t i o n " , " r e l a t i v e " ) . a n i m a t e ( {   l e f t : ' 0 p x '   } , 1 5 0 0 , f u n c t i o n ( )   {  
 t i m e d F u n c = s e t T i m e o u t ( f u n c t i o n ( )   {  
 r e s e t L i S t y l e ( ) ;  
 } , 2 0 0 0 )  
 } )  
 } ;  
 f u n c t i o n   a n i m a t e H e a d l i n e R e v ( )   {  
 $ ( " # u l T i c k e r   l i : f i r s t " ) . c s s ( " p o s i t i o n " , " r e l a t i v e " ) . a n i m a t e ( {   r i g h t : ' 0 p x '   } , 1 5 0 0 , f u n c t i o n ( )   {  
 t i m e d F u n c = s e t T i m e o u t ( f u n c t i o n ( )   {  
 r e s e t L i S t y l e ( ) ;  
 } , 2 0 0 0 )  
 } )  
 } ;  
 f u n c t i o n   f a d e O u t I E ( )   {  
 $ ( " # t i c k e r B o d y " ) . f a d e O u t ( 5 0 0 , f u n c t i o n ( )   {  
 $ ( " # h p L a t e s t N e w s B o d y " ) . f a d e I n ( 5 0 0 , f u n c t i o n ( )   {  
 $ ( " # h p L a t e s t N e w s " ) . a n i m a t e ( {   h e i g h t : ' 5 1 6 p x '   } , 2 0 0 ) ;  
 } ) ;  
 } ) ;  
 } ;  
 f u n c t i o n   f a d e O u t F F ( )   {  
 $ ( " # t i c k e r B o d y " ) . a n i m a t e ( {   o p a c i t y : 0   } , 5 0 0 , f u n c t i o n ( )   {  
 $ ( " # h p L a t e s t N e w s B o d y " ) . f a d e I n ( 5 0 0 , f u n c t i o n ( )   {  
 $ ( " # h p L a t e s t N e w s " ) . a n i m a t e ( {   h e i g h t : ' 5 1 6 p x '   } , 2 0 0 ) ;  
 $ ( " # h p L a t e s t N e w s " ) . c s s ( " z - i n d e x " , " 4 9 2 0 " ) ;  
 } ) ;  
 } ) ;  
 } ;  
 f u n c t i o n   f a d e I n F F ( )   {  
 $ ( " # h p L a t e s t N e w s " ) . a n i m a t e ( {   h e i g h t : ' 4 0 p x '   } , 2 0 0 , f u n c t i o n ( )   {  
 $ ( " # h p L a t e s t N e w s B o d y " ) . f a d e O u t ( 5 0 0 , f u n c t i o n ( )   {  
 $ ( " # t i c k e r B o d y " ) . a n i m a t e ( {   o p a c i t y : 1   } , 5 0 0 ) ;  
 } ) ;  
 } ) ;  
 $ ( " # h p L a t e s t N e w s " ) . c s s ( " z - i n d e x " , " 4 9 0 0 " ) ;  
 } ;  
 f u n c t i o n   f a d e I n I E ( )   {  
 $ ( " # h p L a t e s t N e w s " ) . a n i m a t e ( {   h e i g h t : ' 4 0 p x '   } , 2 0 0 , f u n c t i o n ( )   {  
 $ ( " # h p L a t e s t N e w s B o d y " ) . f a d e O u t ( 5 0 0 , f u n c t i o n ( )   {  
 $ ( " # t i c k e r B o d y " ) . f a d e I n ( 5 0 0 ) ;  
 } ) ;  
 } ) ;  
 } ;  
 f u n c t i o n   r e s e t L i S t y l e ( )   {  
 $ ( " # u l T i c k e r   l i : f i r s t " ) . f a d e O u t ( 5 0 0 , f u n c t i o n ( )   {  
 $ ( t h i s ) . r e m o v e ( ) . a t t r ( " s t y l e " , " " ) . a p p e n d T o ( " # u l T i c k e r " ) ;  
 i f ( / ^ ( . ) * ( a r . ) { 1 } ( . ) * ( f i f a . c o m ) { 1 } / . t e s t ( l o c a t i o n . t o S t r i n g ( ) ) )   {   a n i m a t e H e a d l i n e R e v ( ) ; }   e l s e   {   a n i m a t e H e a d l i n e ( ) ; }  
 } )  
 } ;  
 v a r   n e w s L o a d e d = f a l s e ;  
 t h i s . e a c h ( f u n c t i o n ( )   {  
 i f ( / ^ ( . ) * ( a r . ) { 1 } ( . ) * ( f i f a . c o m ) { 1 } / . t e s t ( l o c a t i o n . t o S t r i n g ( ) ) )   {   a n i m a t e H e a d l i n e R e v ( ) ; }   e l s e   {   a n i m a t e H e a d l i n e ( ) ; }  
 $ ( " . t i c k O p e n " ) . c l i c k ( f u n c t i o n ( )   {  
 i f ( n e w s L o a d e d )   {  
 i f ( $ . b r o w s e r . m s i e )   {   f a d e O u t I E ( ) ; }   e l s e   {   f a d e O u t F F ( ) ; }  
 }  
 e l s e   {  
 $ ( " # h p L a t e s t N e w s   . h p N e w s " ) . l o a d ( ' / w o r l d c u p / l i b r a r y / h o m e p a g e / _ l a t e s t n e w s _ h p . h t m l ' , f u n c t i o n ( )   {  
 $ j ( " # h p L a t e s t N e w s   . h p N e w s   . n e w s l   l i : n t h - c h i l d ( 9 ) " ) . c s s ( " b a c k g r o u n d " , " n o n e " ) ;  
 $ j ( " # h p L a t e s t N e w s   . h p N e w s   . n e w s l   l i : n t h - c h i l d ( 1 0 ) " ) . c s s ( " b a c k g r o u n d " , " n o n e " ) ;  
 i f ( $ . b r o w s e r . m s i e )   {   f a d e O u t I E ( ) ; }   e l s e   {   f a d e O u t F F ( ) ; }  
 n e w s L o a d e d = t r u e ;  
 } ) ;  
 }  
 } ) ;  
 $ ( " # h p C l o s e " ) . c l i c k ( f u n c t i o n ( )   {  
 i f ( $ . b r o w s e r . m s i e )   {   f a d e I n I E ( ) ; }   e l s e   {   f a d e I n F F ( ) ; }  
 } ) ;  
 } ) ;  
 r e t u r n   t h i s ;  
 } ;  
 } ) ( j Q u e r y ) ;  
  
 v a r   c o n t e n t B r o w s i n g = C l a s s . c r e a t e ( )  
 c o n t e n t B r o w s i n g . p r o t o t y p e = {  
 i n i t i a l i z e : f u n c t i o n ( d e s t , g u i d , d o t O n I m g , d o t O f f I m g , r o l l I n t e r v a l )   {  
 t h i s . d e s t = d e s t ;  
 t h i s . g u i d = g u i d ;  
 t h i s . b u l l e t i d = ' n b '   +   g u i d   +   ' _ ' ;  
 t h i s . c u r r e n t = 0 ;  
 t h i s . p r e v S e l = 0 ;  
 t h i s . d o t O n I m g = d o t O n I m g ;  
 t h i s . d o t O f f I m g = d o t O f f I m g ;  
 t h i s . _ u r l = [ ' ' ] ;  
 i f ( r o l l I n t e r v a l )   {  
 t h i s . r o l l I n t e r v a l = r o l l I n t e r v a l  
 r o l l I n t e r v a l   + =   M a t h . r o u n d ( M a t h . r a n d o m ( )   *   r o l l I n t e r v a l   /   2 ) ;  
 t h i s . t m = s e t I n t e r v a l ( t h i s . o n T i m e r . b i n d ( t h i s ) , r o l l I n t e r v a l ) ;  
 }  
 } ,  
 o n T i m e r : f u n c t i o n ( )   {  
 t h i s . m o v e N e x t ( t r u e ) ;  
 } ,  
 a d d : f u n c t i o n ( e l e m )   {  
 i f ( t h i s . _ u r l [ 0 ] = = ' ' )   t h i s . _ u r l [ 0 ] = ( e l e m ) ; e l s e   t h i s . _ u r l . p u s h ( e l e m ) ;  
 } ,  
 m o v e : f u n c t i o n ( n u m )   {  
 c l e a r I n t e r v a l ( t h i s . t m ) ;  
 t h i s . c u r r e n t = n u m ;  
 v a r   _ g u i d = t h i s . g u i d ;  
 v a r   _ b u l l e t i d = t h i s . b u l l e t i d ;  
 v a r   _ c u r r e n t = t h i s . c u r r e n t ;  
 v a r   _ p r e v S e l = t h i s . p r e v S e l ;  
 v a r   _ d o t O n I m g = t h i s . d o t O n I m g  
 v a r   _ d o t O f f I m g = t h i s . d o t O f f I m g  
 $ j ( t h i s . d e s t ) . l o a d ( t h i s . _ u r l [ n u m ] , f u n c t i o n ( )   {  
 i f ( _ d o t O n I m g . l e n g t h > 0 & & _ d o t O f f I m g . l e n g t h > 0 )   {  
 $ j ( ' # '   +   _ b u l l e t i d   +   ' '   +   _ c u r r e n t   +   '   i m g ' ) . a t t r ( " s r c " , _ d o t O n I m g ) ;  
 $ j ( ' # '   +   _ b u l l e t i d   +   ' '   +   _ p r e v S e l   +   '   i m g ' ) . a t t r ( " s r c " , _ d o t O f f I m g ) ;  
 }  
 } ) ;  
 t h i s . p r e v S e l = t h i s . c u r r e n t ;  
 i f ( t h i s . r o l l I n t e r v a l ! = u n d e f i n e d )   t h i s . t m = s e t I n t e r v a l ( t h i s . o n T i m e r . b i n d ( t h i s ) , t h i s . r o l l I n t e r v a l ) ;  
 } ,  
 m o v e N e x t : f u n c t i o n ( c o n t i n u o u s )   {  
 i f ( c o n t i n u o u s & & t h i s . c u r r e n t = = t h i s . _ u r l . l e n g t h   -   1 )   t h i s . c u r r e n t = - 1 ;  
 i f ( t h i s . c u r r e n t < t h i s . _ u r l . l e n g t h   -   1 )   t h i s . m o v e ( + + t h i s . c u r r e n t ) ;  
 } ,  
 m o v e P r e v i o u s : f u n c t i o n ( c o n t i n u o u s )   {  
 i f ( c o n t i n u o u s & & t h i s . c u r r e n t = = 0 )   t h i s . c u r r e n t = t h i s . _ u r l . l e n g t h ;  
 i f ( t h i s . c u r r e n t > 0 )   t h i s . m o v e ( - - t h i s . c u r r e n t ) ;  
 }  
 } ;  
 f u n c t i o n   i n i t D y n M a p ( m a p I d , i m a g e s )   {  
 v a r   p o p u p = $ j ( " # "   +   m a p I d   +   " _ p o p u p " ) ;  
 $ j ( " b o d y " ) . p r e p e n d ( p o p u p ) ;  
 v a r   h i g h l i g h t = $ j ( " # "   +   m a p I d   +   " _ h i g h l i g h t " ) ;  
 $ j ( " # "   +   m a p I d   +   "   a r e a [ c l a s s * = ' r e s I d _ ' ] " ) . e a c h ( f u n c t i o n ( i )   {  
 v a r   r e s I d ;  
 v a r   c l a s s e s = $ j ( t h i s ) . a t t r ( " c l a s s " ) . s p l i t ( "   " ) ;  
 f o r   ( v a r   i = 0 ; i < c l a s s e s . l e n g t h ; i + + )   {  
 i f ( c l a s s e s [ i ] . l a s t I n d e x O f ( " r e s I d _ " ) = = 0 )   {  
 r e s I d = c l a s s e s [ i ] ;  
 b r e a k ;  
 }  
 }  
 i f ( r e s I d )   {  
 $ j ( t h i s ) . m o u s e o v e r ( f u n c t i o n ( )   {  
 p o p u p . h t m l ( " < i m g   s r c = ' "   +   i m a g e s [ r e s I d ]   +   " '   w i d t h = ' 8 0 '   h e i g h t = ' 8 0 '   / > " ) ;  
 p o p u p . s h o w ( ) ;  
 v a r   t a r g e t = $ j ( " # "   +   m a p I d   +   "   a r e a . t a r g e t . "   +   r e s I d ) ;  
 i f ( t a r g e t . l e n g t h > 0 )   {  
 v a r   c o o r d s  
 i f ( t a r g e t . a t t r ( " s h a p e " ) . t o L o w e r C a s e ( ) = = " c i r c l e " )   {  
 c o o r d s = t a r g e t . a t t r ( ' c o o r d s ' ) . s p l i t ( ' , ' ) ;  
 }   e l s e   i f ( t a r g e t . a t t r ( " s h a p e " ) . t o L o w e r C a s e ( ) = = " r e c t " )   {  
 v a r   t C o o r d s = t a r g e t . a t t r ( ' c o o r d s ' ) . s p l i t ( ' , ' ) ;  
 c o o r d s = n e w   A r r a y ( ) ;  
 c o o r d s [ 0 ] = N u m b e r ( t C o o r d s [ 0 ] )   +   M a t h . r o u n d ( ( t C o o r d s [ 2 ]   -   t C o o r d s [ 0 ] )   /   2 ) ;  
 c o o r d s [ 1 ] = N u m b e r ( t C o o r d s [ 1 ] )   +   M a t h . r o u n d ( ( t C o o r d s [ 3 ]   -   t C o o r d s [ 1 ] )   /   2 ) ;  
 }  
 i f ( c o o r d s )   {  
 h i g h l i g h t . c s s ( {   ' l e f t ' : ( c o o r d s [ 0 ]   -   h i g h l i g h t . w i d t h ( )   /   2 )   +   ' p x ' , ' t o p ' : ( c o o r d s [ 1 ]   -   h i g h l i g h t . h e i g h t ( )   /   2 )   +   ' p x '   } ) ;  
 $ j ( " a " , h i g h l i g h t ) . a t t r ( " h r e f " , $ j ( t h i s ) . a t t r ( " h r e f " ) ) ;  
 h i g h l i g h t . s h o w ( ) ;  
 }  
 }  
 } ) ;  
 $ j ( t h i s ) . m o u s e m o v e ( f u n c t i o n ( e )   {  
 p o p u p . c s s ( {   ' l e f t ' : ( e . p a g e X   +   1 0 )   +   ' p x ' , ' t o p ' : ( e . p a g e Y   +   2 0 )   +   ' p x '   } ) ;  
 } ) ;  
 $ j ( t h i s ) . m o u s e o u t ( f u n c t i o n ( )   {  
 p o p u p . h i d e ( ) ;  
 h i g h l i g h t . h i d e ( ) ;  
 } ) ;  
 h i g h l i g h t . m o u s e m o v e ( f u n c t i o n ( e )   {  
 p o p u p . c s s ( {   ' l e f t ' : ( e . p a g e X   +   1 0 )   +   ' p x ' , ' t o p ' : ( e . p a g e Y   +   2 0 )   +   ' p x '   } ) ;  
 p o p u p . s h o w ( ) ;  
 h i g h l i g h t . s h o w ( ) ;  
 } ) ;  
 h i g h l i g h t . m o u s e o u t ( f u n c t i o n ( )   {  
 p o p u p . h i d e ( ) ;  
 h i g h l i g h t . h i d e ( ) ;  
 } ) ;  
 }  
 } ) ;  
 }  
  
 ( f u n c t i o n ( $ ) { $ . f n . t o o l t i p = f u n c t i o n ( o p t i o n s ) { v a r   d e f a u l t s = { d e b u g : f a l s e , c o n s o l e : f a l s e , t S e l e c t o r : n u l l , a j a x H r e f : t r u e , c s s C l a s s : n u l l , p o s i t i o n : ' a u t o ' , c S e l e c t o r : ' # j q u e r y - t o o l t i p - c o n t e n t ' , i s I n n e r : f a l s e , i m g L o a d i n g : ' i m a g e s / a j a x - l o a d e r . g i f ' , l a z y L o a d I m g : f a l s e } ; v a r   o p t i o n s = $ . e x t e n d ( d e f a u l t s , o p t i o n s ) ; v a r   _ d H e i g h t = $ ( d o c u m e n t ) . h e i g h t ( ) ; v a r   _ d W i d t h = $ ( d o c u m e n t ) . w i d t h ( ) ; _ a p p e n d D e b u g ( ) ; v a r   _ t = _ g e t T o o l t i p ( ) ; v a r   $ t h i s ; v a r   _ c E x i s t s = f a l s e ; v a r   _ i m g = $ ( ' < i m g   s r c = " ' + o p t i o n s . i m g L o a d i n g + ' "   s t y l e = " p o s i t i o n : a b s o l u t e ; d i s p l a y : n o n e " / > ' ) . a p p e n d T o ( ' b o d y ' ) ; v a r   _ t m = n u l l ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { $ t h i s = $ ( t h i s ) ; v a r   _ c = _ g e t C o n t e n t S e l e c t o r ( ) ; _ c E x i s t s = _ _ e x i s t s ( _ c ) ; $ t h i s . b i n d ( ' m o u s e e n t e r ' , f u n c t i o n ( e v t ) { _ d e b u g ( ' m o u s e e n t e r   ' + e v t . p a g e X ) ; $ ( t h i s ) . b i n d ( ' m o u s e m o v e ' , f u n c t i o n ( e v t ) { _ d e b u g ( ' m o u s e m o v e   ' + e v t . p a g e X ) ; i f ( _ i m g . i s ( ' : v i s i b l e ' ) ) _ s e t C s s ( _ i m g , e v t ) ; e l s e   _ s e t C s s ( _ t , e v t ) ; } ) ; v a r   c a l l b a c k = f u n c t i o n ( ) { i f ( o p t i o n s . l a z y L o a d I m g ) { v a r   _ h t m l = _ c . h t m l ( ) ; v a r   r e = n e w   R e g E x p ( / \ $ . i m g { s r c : ' + ( [ / \ w \ . - ] * ) ' } / g i m ) ; v a r   _ m = r e . e x e c ( _ h t m l ) ; i f ( _ m ) { f o r ( v a r   i = 0 ; i < _ m . l e n g t h ; i + + ) { i f ( _ m . i n d e x O f ( ' $ . i m g ' ) ! = - 1 ) r e t u r n ; _ h t m l = _ h t m l . r e p l a c e ( _ m [ i - 1 ] , ' < i m g   s r c = " ' + _ m [ i ] + ' " / > ' ) ; _ t . h t m l ( _ h t m l ) ; i f ( _ c E x i s t s ) _ c . h t m l ( _ h t m l ) ; } } } _ t m = s e t T i m e o u t ( f u n c t i o n ( ) { _ s e t C s s ( _ t , e v t ) . s h o w ( 0 , f u n c t i o n ( ) { c l e a r T i m e o u t ( _ t m ) ; } ) ; } , 5 0 ) ; } ; i f ( o p t i o n s . a j a x H r e f ) { v a r   _ u r l = n u l l ; i f ( o p t i o n s . i s I n n e r ) _ u r l = _ c . h t m l ( ) ; i f ( ! _ u r l ) _ u r l = $ ( e v t . t a r g e t ) . a t t r ( ' h r e f ' ) ; i f ( _ u r l ) { _ s e t C s s ( _ i m g , e v t ) . s h o w ( ) ; $ . g e t ( _ u r l , f u n c t i o n ( d a t a ) { _ i m g . h i d e ( ) ; _ t . h t m l ( d a t a ) ; c a l l b a c k ( ) ; } ) ; } e l s e   c a l l b a c k ( ) ; } e l s e   i f ( _ _ e x i s t s ( _ c ) ) { _ t . h t m l ( _ c . h t m l ( ) ) ; c a l l b a c k ( ) ; } } ) . b i n d ( ' m o u s e l e a v e ' , f u n c t i o n ( ) { _ d e b u g ( ' m o u s e l e a v e ' ) ; $ ( t h i s ) . u n b i n d ( ' m o u s e m o v e ' ) ; _ t . h i d e ( ) ; } ) ; } ) ; f u n c t i o n   _ a p p e n d D e b u g ( ) { i f ( o p t i o n s . d e b u g & & ! _ _ e x i s t s ( ' # d e b u g ' ) ) $ ( ' b o d y ' ) . a p p e n d ( ' < d i v   i d = " d e b u g " > < / d i v > ' ) ; } ; f u n c t i o n   _ g e t T o o l t i p ( ) { v a r   _ o = n u l l ; i f ( o p t i o n s . t S e l e c t o r ) _ o = $ ( t S e l e c t o r ) ; e l s e   i f ( _ _ e x i s t s ( ' # j q u e r y - t o o l t i p ' ) ) { _ o = $ ( ' # j q u e r y - t o o l t i p ' ) ; } e l s e { $ ( ' b o d y ' ) . a p p e n d ( ' < d i v   i d = " j q u e r y - t o o l t i p " > < / d i v > ' ) ; _ o = $ ( ' # j q u e r y - t o o l t i p ' ) ; } i f ( o p t i o n s . c s s C l a s s ) _ o . a d d C l a s s ( o p t i o n s . c s s C l a s s ) ; r e t u r n   _ o ; } ; f u n c t i o n   _ d e b u g ( s , a p p e n d ) { i f ( o p t i o n s . d e b u g ) { v a r   _ a = ' ' ; i f ( a p p e n d ) _ a = $ ( ' # d e b u g ' ) . h t m l ( ) ; $ ( ' # d e b u g ' ) . h t m l ( _ a + s ) ; } e l s e   i f ( o p t i o n s . c o n s o l e ) c o n s o l e . l o g ( s ) ; } ; f u n c t i o n   _ s e t C s s ( o , e v t ) { v a r   r e s u l t = { } ; s w i t c h ( o p t i o n s . p o s i t i o n ) { c a s e ' a u t o ' : v a r   _ l e f t = e v t . p a g e X + 1 5 ; v a r   _ t o p = e v t . p a g e Y + 1 0 ; v a r   _ c L e f t = e v t . p a g e X + o . o u t e r W i d t h ( ) ; i f ( _ c L e f t > _ d W i d t h ) _ l e f t = e v t . p a g e X - o . o u t e r W i d t h ( ) - 7 ; v a r   _ c T o p = e v t . p a g e Y + _ t . o u t e r H e i g h t ( ) ; i f ( _ c T o p > _ d H e i g h t ) _ t o p = e v t . p a g e Y - o . o u t e r H e i g h t ( ) + 5 ; r e s u l t = { l e f t : _ l e f t , t o p : _ t o p } ; b r e a k ; c a s e ' b l ' : r e s u l t = { l e f t : e v t . p a g e X - o . o u t e r W i d t h ( ) - 7 , t o p : e v t . p a g e Y + 1 0 } ; b r e a k ; c a s e ' b c ' : r e s u l t = { l e f t : e v t . p a g e X - ( o . o u t e r W i d t h ( ) / 2 ) , t o p : e v t . p a g e Y + 1 5 } ; b r e a k ; c a s e ' b r ' : r e s u l t = { l e f t : e v t . p a g e X + 1 5 , t o p : e v t . p a g e Y + 1 0 } ; b r e a k ; c a s e ' r c ' : r e s u l t = { l e f t : e v t . p a g e X + 1 5 , t o p : e v t . p a g e Y - ( o . o u t e r H e i g h t ( ) / 2 ) } ; b r e a k ; c a s e ' t r ' : r e s u l t = { l e f t : e v t . p a g e X + 1 5 , t o p : e v t . p a g e Y - o . o u t e r H e i g h t ( ) + 5 } ; b r e a k ; c a s e ' t c ' : r e s u l t = { l e f t : e v t . p a g e X - ( o . o u t e r W i d t h ( ) / 2 ) , t o p : e v t . p a g e Y - o . o u t e r H e i g h t ( ) + 5 } ; b r e a k ; c a s e ' t l ' : r e s u l t = { l e f t : e v t . p a g e X - o . o u t e r W i d t h ( ) - 7 , t o p : e v t . p a g e Y - o . o u t e r H e i g h t ( ) + 5 } ; b r e a k ; c a s e ' l c ' : r e s u l t = { l e f t : e v t . p a g e X - o . o u t e r W i d t h ( ) - 7 , t o p : e v t . p a g e Y - ( o . o u t e r H e i g h t ( ) / 2 ) } ; b r e a k ; } _ d e b u g ( r e s u l t . l e f t + '   ' + r e s u l t . t o p + '   ' ) ; r e t u r n   o . c s s ( r e s u l t ) ; } ; f u n c t i o n   _ g e t C o n t e n t S e l e c t o r ( ) { r e t u r n   o p t i o n s . i s I n n e r ? $ ( $ t h i s ) . f i n d ( o p t i o n s . c S e l e c t o r ) : $ ( o p t i o n s . c S e l e c t o r ) ; } f u n c t i o n   _ _ e x i s t s ( s e l e c t o r ) { r e t u r n   $ ( s e l e c t o r ) . l e n g t h > 0 ; } } ; } ) ( j Q u e r y ) ;  
  
 ( f u n c t i o n ( $ ) { $ . f n . j c a r o u s e l = f u n c t i o n ( o ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { n e w   $ j c ( t h i s , o ) } ) } ; v a r   d e f a u l t s = { v e r t i c a l : f a l s e , s t a r t : 1 , o f f s e t : 1 , s i z e : n u l l , s c r o l l : 5 , v i s i b l e : n u l l , a n i m a t i o n : ' n o r m a l ' , e a s i n g : ' s w i n g ' , a u t o : 0 , w r a p : n u l l , i n i t C a l l b a c k : n u l l , r e l o a d C a l l b a c k : n u l l , i t e m L o a d C a l l b a c k : n u l l , i t e m F i r s t I n C a l l b a c k : n u l l , i t e m F i r s t O u t C a l l b a c k : n u l l , i t e m L a s t I n C a l l b a c k : n u l l , i t e m L a s t O u t C a l l b a c k : n u l l , i t e m V i s i b l e I n C a l l b a c k : n u l l , i t e m V i s i b l e O u t C a l l b a c k : n u l l , b u t t o n N e x t H T M L : ' < d i v > < / d i v > ' , b u t t o n P r e v H T M L : ' < d i v > < / d i v > ' , b u t t o n N e x t E v e n t : ' c l i c k ' , b u t t o n P r e v E v e n t : ' c l i c k ' , b u t t o n N e x t C a l l b a c k : n u l l , b u t t o n P r e v C a l l b a c k : n u l l , i s A r a b i c : c u r r L a n g = = ' A ' ? t r u e : f a l s e , l e f t O r R i g h t : c u r r L a n g = = ' A ' ? ' r i g h t ' : ' l e f t ' } ; $ . j c a r o u s e l = f u n c t i o n ( e , o ) { t h i s . o p t i o n s = $ . e x t e n d ( { } , d e f a u l t s , o | | { } ) ; t h i s . l o c k e d = f a l s e ; t h i s . c o n t a i n e r = n u l l ; t h i s . c l i p = n u l l ; t h i s . l i s t = n u l l ; t h i s . b u t t o n N e x t = n u l l ; t h i s . b u t t o n P r e v = n u l l ; t h i s . w h = ! t h i s . o p t i o n s . v e r t i c a l ? ' w i d t h ' : ' h e i g h t ' ; t h i s . l t = ! t h i s . o p t i o n s . v e r t i c a l ? t h i s . o p t i o n s . l e f t O r R i g h t : ' t o p ' ; v a r   s k i n = ' ' , s p l i t = e . c l a s s N a m e . s p l i t ( '   ' ) ; f o r ( v a r   i = 0 ; i < s p l i t . l e n g t h ; i + + ) { i f ( s p l i t [ i ] . i n d e x O f ( ' j c a r o u s e l - s k i n ' ) ! = - 1 ) { $ ( e ) . r e m o v e C l a s s ( s p l i t [ i ] ) ; v a r   s k i n = s p l i t [ i ] ; b r e a k } } i f ( e . n o d e N a m e = = ' U L ' | | e . n o d e N a m e = = ' O L ' ) { t h i s . l i s t = $ ( e ) ; t h i s . c o n t a i n e r = t h i s . l i s t . p a r e n t ( ) ; i f ( t h i s . c o n t a i n e r . h a s C l a s s ( ' j c a r o u s e l - c l i p ' ) ) { i f ( ! t h i s . c o n t a i n e r . p a r e n t ( ) . h a s C l a s s ( ' j c a r o u s e l - c o n t a i n e r ' ) ) t h i s . c o n t a i n e r = t h i s . c o n t a i n e r . w r a p ( ' < d i v > < / d i v > ' ) ; t h i s . c o n t a i n e r = t h i s . c o n t a i n e r . p a r e n t ( ) } e l s e   i f ( ! t h i s . c o n t a i n e r . h a s C l a s s ( ' j c a r o u s e l - c o n t a i n e r ' ) ) t h i s . c o n t a i n e r = t h i s . l i s t . w r a p ( ' < d i v > < / d i v > ' ) . p a r e n t ( ) } e l s e { t h i s . c o n t a i n e r = $ ( e ) ; t h i s . l i s t = $ ( e ) . f i n d ( ' > u l , > o l , d i v > u l , d i v > o l ' ) } i f ( s k i n ! = ' ' & & t h i s . c o n t a i n e r . p a r e n t ( ) [ 0 ] . c l a s s N a m e . i n d e x O f ( ' j c a r o u s e l - s k i n ' ) = = - 1 ) t h i s . c o n t a i n e r . w r a p ( ' < d i v   c l a s s = "   ' + s k i n + ' " > < / d i v > ' ) ; t h i s . c l i p = t h i s . l i s t . p a r e n t ( ) ; i f ( ! t h i s . c l i p . l e n g t h | | ! t h i s . c l i p . h a s C l a s s ( ' j c a r o u s e l - c l i p ' ) ) t h i s . c l i p = t h i s . l i s t . w r a p ( ' < d i v > < / d i v > ' ) . p a r e n t ( ) ; t h i s . b u t t o n P r e v = $ ( ' . j c a r o u s e l - p r e v ' , t h i s . c o n t a i n e r ) ; i f ( t h i s . b u t t o n P r e v . s i z e ( ) = = 0 & & t h i s . o p t i o n s . b u t t o n P r e v H T M L ! = n u l l ) t h i s . b u t t o n P r e v = t h i s . c l i p . b e f o r e ( t h i s . o p t i o n s . b u t t o n P r e v H T M L ) . p r e v ( ) ; t h i s . b u t t o n P r e v . a d d C l a s s ( t h i s . c l a s s N a m e ( ' j c a r o u s e l - p r e v ' ) ) ; t h i s . b u t t o n N e x t = $ ( ' . j c a r o u s e l - n e x t ' , t h i s . c o n t a i n e r ) ; i f ( t h i s . b u t t o n N e x t . s i z e ( ) = = 0 & & t h i s . o p t i o n s . b u t t o n N e x t H T M L ! = n u l l ) t h i s . b u t t o n N e x t = t h i s . c l i p . b e f o r e ( t h i s . o p t i o n s . b u t t o n N e x t H T M L ) . p r e v ( ) ; t h i s . b u t t o n N e x t . a d d C l a s s ( t h i s . c l a s s N a m e ( ' j c a r o u s e l - n e x t ' ) ) ; t h i s . c l i p . a d d C l a s s ( t h i s . c l a s s N a m e ( ' j c a r o u s e l - c l i p ' ) ) ; t h i s . l i s t . a d d C l a s s ( t h i s . c l a s s N a m e ( ' j c a r o u s e l - l i s t ' ) ) ; t h i s . c o n t a i n e r . a d d C l a s s ( t h i s . c l a s s N a m e ( ' j c a r o u s e l - c o n t a i n e r ' ) ) ; v a r   d i = t h i s . o p t i o n s . v i s i b l e ! = n u l l ? M a t h . c e i l ( t h i s . c l i p p i n g ( ) / t h i s . o p t i o n s . v i s i b l e ) : n u l l ; v a r   l i = t h i s . l i s t . c h i l d r e n ( ' l i ' ) ; v a r   s e l f = t h i s ; i f ( l i . s i z e ( ) > 0 ) { v a r   w h = 0 , i = t h i s . o p t i o n s . o f f s e t ; l i . e a c h ( f u n c t i o n ( ) { s e l f . f o r m a t ( t h i s , i + + ) ; w h + = s e l f . d i m e n s i o n ( t h i s , d i ) } ) ; t h i s . l i s t . c s s ( t h i s . w h , w h + ' p x ' ) ; i f ( ! o | | o . s i z e = = = u n d e f i n e d ) t h i s . o p t i o n s . s i z e = l i . s i z e ( ) } t h i s . c o n t a i n e r . c s s ( ' d i s p l a y ' , ' b l o c k ' ) ; t h i s . b u t t o n N e x t . c s s ( ' d i s p l a y ' , ' b l o c k ' ) ; t h i s . b u t t o n P r e v . c s s ( ' d i s p l a y ' , ' b l o c k ' ) ; t h i s . f u n c N e x t = f u n c t i o n ( ) { s e l f . n e x t ( ) } ; t h i s . f u n c P r e v = f u n c t i o n ( ) { s e l f . p r e v ( ) } ; t h i s . f u n c R e s i z e = f u n c t i o n ( ) { s e l f . r e l o a d ( ) } ; i f ( t h i s . o p t i o n s . i n i t C a l l b a c k ! = n u l l ) t h i s . o p t i o n s . i n i t C a l l b a c k ( t h i s , ' i n i t ' ) ; i f ( $ . b r o w s e r . s a f a r i ) { t h i s . b u t t o n s ( f a l s e , f a l s e ) ; $ ( w i n d o w ) . b i n d ( ' l o a d ' , f u n c t i o n ( ) { s e l f . s e t u p ( ) } ) } e l s e   t h i s . s e t u p ( ) } ; v a r   $ j c = $ . j c a r o u s e l ; $ j c . f n = $ j c . p r o t o t y p e = { j c a r o u s e l : ' 0 . 2 . 3 ' } ; $ j c . f n . e x t e n d = $ j c . e x t e n d = $ . e x t e n d ; $ j c . f n . e x t e n d ( { s e t u p : f u n c t i o n ( ) { t h i s . f i r s t = n u l l ; t h i s . l a s t = n u l l ; t h i s . p r e v F i r s t = n u l l ; t h i s . p r e v L a s t = n u l l ; t h i s . a n i m a t i n g = f a l s e ; t h i s . t i m e r = n u l l ; t h i s . t a i l = n u l l ; t h i s . i n T a i l = f a l s e ; i f ( t h i s . l o c k e d ) r e t u r n ; t h i s . l i s t . c s s ( t h i s . l t , t h i s . p o s ( t h i s . o p t i o n s . o f f s e t ) + ' p x ' ) ; v a r   p = t h i s . p o s ( t h i s . o p t i o n s . s t a r t ) ; t h i s . p r e v F i r s t = t h i s . p r e v L a s t = n u l l ; t h i s . a n i m a t e ( p , f a l s e ) ; $ ( w i n d o w ) . u n b i n d ( ' r e s i z e ' , t h i s . f u n c R e s i z e ) . b i n d ( ' r e s i z e ' , t h i s . f u n c R e s i z e ) } , r e s e t : f u n c t i o n ( ) { t h i s . l i s t . e m p t y ( ) ; t h i s . l i s t . c s s ( t h i s . l t , ' 0 p x ' ) ; t h i s . l i s t . c s s ( t h i s . w h , ' 1 0 p x ' ) ; i f ( t h i s . o p t i o n s . i n i t C a l l b a c k ! = n u l l ) t h i s . o p t i o n s . i n i t C a l l b a c k ( t h i s , ' r e s e t ' ) ; t h i s . s e t u p ( ) } , r e l o a d : f u n c t i o n ( ) { i f ( t h i s . t a i l ! = n u l l & & t h i s . i n T a i l ) t h i s . l i s t . c s s ( t h i s . l t , $ j c . i n t v a l ( t h i s . l i s t . c s s ( t h i s . l t ) ) + t h i s . t a i l ) ; t h i s . t a i l = n u l l ; t h i s . i n T a i l = f a l s e ; i f ( t h i s . o p t i o n s . r e l o a d C a l l b a c k ! = n u l l ) t h i s . o p t i o n s . r e l o a d C a l l b a c k ( t h i s ) ; i f ( t h i s . o p t i o n s . v i s i b l e ! = n u l l ) { v a r   s e l f = t h i s ; v a r   d i = M a t h . c e i l ( t h i s . c l i p p i n g ( ) / t h i s . o p t i o n s . v i s i b l e ) , w h = 0 , l t = 0 ; $ ( ' l i ' , t h i s . l i s t ) . e a c h ( f u n c t i o n ( i ) { w h + = s e l f . d i m e n s i o n ( t h i s , d i ) ; i f ( i + 1 < s e l f . f i r s t ) l t = w h } ) ; t h i s . l i s t . c s s ( t h i s . w h , w h + ' p x ' ) ; t h i s . l i s t . c s s ( t h i s . l t , - l t + ' p x ' ) } t h i s . s c r o l l ( t h i s . f i r s t , f a l s e ) } , l o c k : f u n c t i o n ( ) { t h i s . l o c k e d = t r u e ; t h i s . b u t t o n s ( ) } , u n l o c k : f u n c t i o n ( ) { t h i s . l o c k e d = f a l s e ; t h i s . b u t t o n s ( ) } , s i z e : f u n c t i o n ( s ) { i f ( s ! = u n d e f i n e d ) { t h i s . o p t i o n s . s i z e = s ; i f ( ! t h i s . l o c k e d ) t h i s . b u t t o n s ( ) } r e t u r n   t h i s . o p t i o n s . s i z e } , h a s : f u n c t i o n ( i , i 2 ) { i f ( i 2 = = u n d e f i n e d | | ! i 2 ) i 2 = i ; i f ( t h i s . o p t i o n s . s i z e ! = = n u l l & & i 2 > t h i s . o p t i o n s . s i z e ) i 2 = t h i s . o p t i o n s . s i z e ; f o r ( v a r   j = i ; j < = i 2 ; j + + ) { v a r   e = t h i s . g e t ( j ) ; i f ( ! e . l e n g t h | | e . h a s C l a s s ( ' j c a r o u s e l - i t e m - p l a c e h o l d e r ' ) ) r e t u r n   f a l s e } r e t u r n   t r u e } , g e t : f u n c t i o n ( i ) { r e t u r n   $ ( ' . j c a r o u s e l - i t e m - ' + i , t h i s . l i s t ) } , a d d : f u n c t i o n ( i , s ) { v a r   e = t h i s . g e t ( i ) , o l d = 0 , a d d = 0 ; i f ( e . l e n g t h = = 0 ) { v a r   c , e = t h i s . c r e a t e ( i ) , j = $ j c . i n t v a l ( i ) ; w h i l e ( c = t h i s . g e t ( - - j ) ) { i f ( j < = 0 | | c . l e n g t h ) { j < = 0 ? t h i s . l i s t . p r e p e n d ( e ) : c . a f t e r ( e ) ; b r e a k } } } e l s e   o l d = t h i s . d i m e n s i o n ( e ) ; e . r e m o v e C l a s s ( t h i s . c l a s s N a m e ( ' j c a r o u s e l - i t e m - p l a c e h o l d e r ' ) ) ; t y p e o f   s = = ' s t r i n g ' ? e . h t m l ( s ) : e . e m p t y ( ) . a p p e n d ( s ) ; v a r   d i = t h i s . o p t i o n s . v i s i b l e ! = n u l l ? M a t h . c e i l ( t h i s . c l i p p i n g ( ) / t h i s . o p t i o n s . v i s i b l e ) : n u l l ; v a r   w h = t h i s . d i m e n s i o n ( e , d i ) - o l d ; i f ( i > 0 & & i < t h i s . f i r s t ) t h i s . l i s t . c s s ( t h i s . l t , $ j c . i n t v a l ( t h i s . l i s t . c s s ( t h i s . l t ) ) - w h + ' p x ' ) ; t h i s . l i s t . c s s ( t h i s . w h , $ j c . i n t v a l ( t h i s . l i s t . c s s ( t h i s . w h ) ) + w h + ' p x ' ) ; r e t u r n   e } , r e m o v e : f u n c t i o n ( i ) { v a r   e = t h i s . g e t ( i ) ; i f ( ! e . l e n g t h | | ( i > = t h i s . f i r s t & & i < = t h i s . l a s t ) ) r e t u r n ; v a r   d = t h i s . d i m e n s i o n ( e ) ; i f ( i < t h i s . f i r s t ) t h i s . l i s t . c s s ( t h i s . l t , $ j c . i n t v a l ( t h i s . l i s t . c s s ( t h i s . l t ) ) + d + ' p x ' ) ; e . r e m o v e ( ) ; t h i s . l i s t . c s s ( t h i s . w h , $ j c . i n t v a l ( t h i s . l i s t . c s s ( t h i s . w h ) ) - d + ' p x ' ) } , n e x t : f u n c t i o n ( ) { t h i s . s t o p A u t o ( ) ; i f ( t h i s . t a i l ! = n u l l & & ! t h i s . i n T a i l ) t h i s . s c r o l l T a i l ( f a l s e ) ; e l s e   t h i s . s c r o l l ( ( ( t h i s . o p t i o n s . w r a p = = ' b o t h ' | | t h i s . o p t i o n s . w r a p = = ' l a s t ' ) & & t h i s . o p t i o n s . s i z e ! = n u l l & & t h i s . l a s t = = t h i s . o p t i o n s . s i z e ) ? 1 : t h i s . f i r s t + t h i s . o p t i o n s . s c r o l l ) } , p r e v : f u n c t i o n ( ) { t h i s . s t o p A u t o ( ) ; i f ( t h i s . t a i l ! = n u l l & & t h i s . i n T a i l ) t h i s . s c r o l l T a i l ( t r u e ) ; e l s e   t h i s . s c r o l l ( ( ( t h i s . o p t i o n s . w r a p = = ' b o t h ' | | t h i s . o p t i o n s . w r a p = = ' f i r s t ' ) & & t h i s . o p t i o n s . s i z e ! = n u l l & & t h i s . f i r s t = = 1 ) ? t h i s . o p t i o n s . s i z e : t h i s . f i r s t - t h i s . o p t i o n s . s c r o l l ) } , s c r o l l T a i l : f u n c t i o n ( b ) { i f ( t h i s . l o c k e d | | t h i s . a n i m a t i n g | | ! t h i s . t a i l ) r e t u r n ; v a r   p o s = $ j c . i n t v a l ( t h i s . l i s t . c s s ( t h i s . l t ) ) ; ! b ? p o s - = t h i s . t a i l : p o s + = t h i s . t a i l ; t h i s . i n T a i l = ! b ; t h i s . p r e v F i r s t = t h i s . f i r s t ; t h i s . p r e v L a s t = t h i s . l a s t ; t h i s . a n i m a t e ( p o s ) } , s c r o l l : f u n c t i o n ( i , a ) { i f ( t h i s . l o c k e d | | t h i s . a n i m a t i n g ) r e t u r n ; t h i s . a n i m a t e ( t h i s . p o s ( i ) , a ) } , p o s : f u n c t i o n ( i ) { i f ( t h i s . l o c k e d | | t h i s . a n i m a t i n g ) r e t u r n ; i = $ j c . i n t v a l ( i ) ; i f ( t h i s . o p t i o n s . w r a p ! = ' c i r c u l a r ' ) i = i < 1 ? 1 : ( t h i s . o p t i o n s . s i z e & & i > t h i s . o p t i o n s . s i z e ? t h i s . o p t i o n s . s i z e : i ) ; v a r   b a c k = t h i s . f i r s t > i ; v a r   p o s = $ j c . i n t v a l ( t h i s . l i s t . c s s ( t h i s . l t ) ) ; v a r   f = t h i s . o p t i o n s . w r a p ! = ' c i r c u l a r ' & & t h i s . f i r s t < = 1 ? 1 : t h i s . f i r s t ; v a r   c = b a c k ? t h i s . g e t ( f ) : t h i s . g e t ( t h i s . l a s t ) ; v a r   j = b a c k ? f : f - 1 ; v a r   e = n u l l , l = 0 , p = f a l s e , d = 0 ; w h i l e ( b a c k ? - - j > = i : + + j < i ) { e = t h i s . g e t ( j ) ; p = ! e . l e n g t h ; i f ( e . l e n g t h = = 0 ) { e = t h i s . c r e a t e ( j ) . a d d C l a s s ( t h i s . c l a s s N a m e ( ' j c a r o u s e l - i t e m - p l a c e h o l d e r ' ) ) ; c [ b a c k ? ' b e f o r e ' : ' a f t e r ' ] ( e ) } c = e ; d = t h i s . d i m e n s i o n ( e ) ; i f ( p ) l + = d ; i f ( t h i s . f i r s t ! = n u l l & & ( t h i s . o p t i o n s . w r a p = = ' c i r c u l a r ' | | ( j > = 1 & & ( t h i s . o p t i o n s . s i z e = = n u l l | | j < = t h i s . o p t i o n s . s i z e ) ) ) ) p o s = b a c k ? p o s + d : p o s - d } v a r   c l i p p i n g = t h i s . c l i p p i n g ( ) ; v a r   c a c h e = [ ] ; v a r   v i s i b l e = 0 , j = i , v = 0 ; v a r   c = t h i s . g e t ( i - 1 ) ; w h i l e ( + + v i s i b l e ) { e = t h i s . g e t ( j ) ; p = ! e . l e n g t h ; i f ( e . l e n g t h = = 0 ) { e = t h i s . c r e a t e ( j ) . a d d C l a s s ( t h i s . c l a s s N a m e ( ' j c a r o u s e l - i t e m - p l a c e h o l d e r ' ) ) ; c . l e n g t h = = 0 ? t h i s . l i s t . p r e p e n d ( e ) : c [ b a c k ? ' b e f o r e ' : ' a f t e r ' ] ( e ) } c = e ; v a r   d = t h i s . d i m e n s i o n ( e ) ; i f ( d = = 0 ) { a l e r t ( ' j C a r o u s e l : N o   w i d t h / h e i g h t   s e t   f o r   i t e m s .   T h i s   w i l l   c a u s e   a n   i n f i n i t e   l o o p .   A b o r t i n g . . . ' ) ; r e t u r n   0 } i f ( t h i s . o p t i o n s . w r a p ! = ' c i r c u l a r ' & & t h i s . o p t i o n s . s i z e ! = = n u l l & & j > t h i s . o p t i o n s . s i z e ) c a c h e . p u s h ( e ) ; e l s e   i f ( p ) l + = d ; v + = d ; i f ( v > = c l i p p i n g ) b r e a k ; j + + } f o r ( v a r   x = 0 ; x < c a c h e . l e n g t h ; x + + ) c a c h e [ x ] . r e m o v e ( ) ; i f ( l > 0 ) { t h i s . l i s t . c s s ( t h i s . w h , t h i s . d i m e n s i o n ( t h i s . l i s t ) + l + ' p x ' ) ; i f ( b a c k ) { p o s - = l ; t h i s . l i s t . c s s ( t h i s . l t , $ j c . i n t v a l ( t h i s . l i s t . c s s ( t h i s . l t ) ) - l + ' p x ' ) } } v a r   l a s t = i + v i s i b l e - 1 ; i f ( t h i s . o p t i o n s . w r a p ! = ' c i r c u l a r ' & & t h i s . o p t i o n s . s i z e & & l a s t > t h i s . o p t i o n s . s i z e ) l a s t = t h i s . o p t i o n s . s i z e ; i f ( j > l a s t ) { v i s i b l e = 0 , j = l a s t , v = 0 ; w h i l e ( + + v i s i b l e ) { v a r   e = t h i s . g e t ( j - - ) ; i f ( ! e . l e n g t h ) b r e a k ; v + = t h i s . d i m e n s i o n ( e ) ; i f ( v > = c l i p p i n g ) b r e a k } } v a r   f i r s t = l a s t - v i s i b l e + 1 ; i f ( t h i s . o p t i o n s . w r a p ! = ' c i r c u l a r ' & & f i r s t < 1 ) f i r s t = 1 ; i f ( t h i s . i n T a i l & & b a c k ) { p o s + = t h i s . t a i l ; t h i s . i n T a i l = f a l s e } t h i s . t a i l = n u l l ; i f ( t h i s . o p t i o n s . w r a p ! = ' c i r c u l a r ' & & l a s t = = t h i s . o p t i o n s . s i z e & & ( l a s t - v i s i b l e + 1 ) > = 1 ) { v a r   m = $ j c . m a r g i n ( t h i s . g e t ( l a s t ) , ! t h i s . o p t i o n s . v e r t i c a l ? ' m a r g i n R i g h t ' : ' m a r g i n B o t t o m ' ) ; i f ( ( v - m ) > c l i p p i n g ) t h i s . t a i l = v - c l i p p i n g - m } w h i l e ( i - - > f i r s t ) p o s + = t h i s . d i m e n s i o n ( t h i s . g e t ( i ) ) ; t h i s . p r e v F i r s t = t h i s . f i r s t ; t h i s . p r e v L a s t = t h i s . l a s t ; t h i s . f i r s t = f i r s t ; t h i s . l a s t = l a s t ; r e t u r n   p o s } , a n i m a t e : f u n c t i o n ( p , a ) { i f ( t h i s . l o c k e d | | t h i s . a n i m a t i n g ) r e t u r n ; t h i s . a n i m a t i n g = t r u e ; v a r   s e l f = t h i s ; v a r   s c r o l l e d = f u n c t i o n ( ) { s e l f . a n i m a t i n g = f a l s e ; i f ( p = = 0 ) s e l f . l i s t . c s s ( s e l f . l t , 0 ) ; i f ( s e l f . o p t i o n s . w r a p = = ' b o t h ' | | s e l f . o p t i o n s . w r a p = = ' l a s t ' | | s e l f . o p t i o n s . s i z e = = n u l l | | s e l f . l a s t < s e l f . o p t i o n s . s i z e ) s e l f . s t a r t A u t o ( ) ; s e l f . b u t t o n s ( ) ; s e l f . n o t i f y ( ' o n A f t e r A n i m a t i o n ' ) } ; t h i s . n o t i f y ( ' o n B e f o r e A n i m a t i o n ' ) ; i f ( ! t h i s . o p t i o n s . a n i m a t i o n | | a = = f a l s e ) { t h i s . l i s t . c s s ( t h i s . l t , p + ' p x ' ) ; s c r o l l e d ( ) } e l s e { v a r   o ; i f ( t h i s . o p t i o n s . v e r t i c a l ) { o = { ' t o p ' : p } } e l s e { o = t h i s . o p t i o n s . i s A r a b i c ? { ' r i g h t ' : p } : { ' l e f t ' : p } } t h i s . l i s t . a n i m a t e ( o , t h i s . o p t i o n s . a n i m a t i o n , t h i s . o p t i o n s . e a s i n g , s c r o l l e d ) } } , s t a r t A u t o : f u n c t i o n ( s ) { i f ( s ! = u n d e f i n e d ) t h i s . o p t i o n s . a u t o = s ; i f ( t h i s . o p t i o n s . a u t o = = 0 ) r e t u r n   t h i s . s t o p A u t o ( ) ; i f ( t h i s . t i m e r ! = n u l l ) r e t u r n ; v a r   s e l f = t h i s ; t h i s . t i m e r = s e t T i m e o u t ( f u n c t i o n ( ) { s e l f . n e x t ( ) } , t h i s . o p t i o n s . a u t o * 1 0 0 0 ) } , s t o p A u t o : f u n c t i o n ( ) { i f ( t h i s . t i m e r = = n u l l ) r e t u r n ; c l e a r T i m e o u t ( t h i s . t i m e r ) ; t h i s . t i m e r = n u l l } , b u t t o n s : f u n c t i o n ( n , p ) { i f ( n = = u n d e f i n e d | | n = = n u l l ) { v a r   n = ! t h i s . l o c k e d & & t h i s . o p t i o n s . s i z e ! = = 0 & & ( ( t h i s . o p t i o n s . w r a p & & t h i s . o p t i o n s . w r a p ! = ' f i r s t ' ) | | t h i s . o p t i o n s . s i z e = = n u l l | | t h i s . l a s t < t h i s . o p t i o n s . s i z e ) ; i f ( ! t h i s . l o c k e d & & ( ! t h i s . o p t i o n s . w r a p | | t h i s . o p t i o n s . w r a p = = ' f i r s t ' ) & & t h i s . o p t i o n s . s i z e ! = n u l l & & t h i s . l a s t > = t h i s . o p t i o n s . s i z e ) n = t h i s . t a i l ! = n u l l & & ! t h i s . i n T a i l } i f ( p = = u n d e f i n e d | | p = = n u l l ) { v a r   p = ! t h i s . l o c k e d & & t h i s . o p t i o n s . s i z e ! = = 0 & & ( ( t h i s . o p t i o n s . w r a p & & t h i s . o p t i o n s . w r a p ! = ' l a s t ' ) | | t h i s . f i r s t > 1 ) ; i f ( ! t h i s . l o c k e d & & ( ! t h i s . o p t i o n s . w r a p | | t h i s . o p t i o n s . w r a p = = ' l a s t ' ) & & t h i s . o p t i o n s . s i z e ! = n u l l & & t h i s . f i r s t = = 1 ) p = t h i s . t a i l ! = n u l l & & t h i s . i n T a i l } v a r   s e l f = t h i s ; t h i s . b u t t o n N e x t [ n ? ' b i n d ' : ' u n b i n d ' ] ( t h i s . o p t i o n s . b u t t o n N e x t E v e n t , t h i s . f u n c N e x t ) [ n ? ' r e m o v e C l a s s ' : ' a d d C l a s s ' ] ( t h i s . c l a s s N a m e ( ' j c a r o u s e l - n e x t - d i s a b l e d ' ) ) . a t t r ( ' d i s a b l e d ' , n ? f a l s e : t r u e ) ; t h i s . b u t t o n P r e v [ p ? ' b i n d ' : ' u n b i n d ' ] ( t h i s . o p t i o n s . b u t t o n P r e v E v e n t , t h i s . f u n c P r e v ) [ p ? ' r e m o v e C l a s s ' : ' a d d C l a s s ' ] ( t h i s . c l a s s N a m e ( ' j c a r o u s e l - p r e v - d i s a b l e d ' ) ) . a t t r ( ' d i s a b l e d ' , p ? f a l s e : t r u e ) ; i f ( t h i s . b u t t o n N e x t . l e n g t h > 0 & & ( t h i s . b u t t o n N e x t [ 0 ] . j c a r o u s e l s t a t e = = u n d e f i n e d | | t h i s . b u t t o n N e x t [ 0 ] . j c a r o u s e l s t a t e ! = n ) & & t h i s . o p t i o n s . b u t t o n N e x t C a l l b a c k ! = n u l l ) { t h i s . b u t t o n N e x t . e a c h ( f u n c t i o n ( ) { s e l f . o p t i o n s . b u t t o n N e x t C a l l b a c k ( s e l f , t h i s , n ) } ) ; t h i s . b u t t o n N e x t [ 0 ] . j c a r o u s e l s t a t e = n } i f ( t h i s . b u t t o n P r e v . l e n g t h > 0 & & ( t h i s . b u t t o n P r e v [ 0 ] . j c a r o u s e l s t a t e = = u n d e f i n e d | | t h i s . b u t t o n P r e v [ 0 ] . j c a r o u s e l s t a t e ! = p ) & & t h i s . o p t i o n s . b u t t o n P r e v C a l l b a c k ! = n u l l ) { t h i s . b u t t o n P r e v . e a c h ( f u n c t i o n ( ) { s e l f . o p t i o n s . b u t t o n P r e v C a l l b a c k ( s e l f , t h i s , p ) } ) ; t h i s . b u t t o n P r e v [ 0 ] . j c a r o u s e l s t a t e = p } } , n o t i f y : f u n c t i o n ( e v t ) { v a r   s t a t e = t h i s . p r e v F i r s t = = n u l l ? ' i n i t ' : ( t h i s . p r e v F i r s t < t h i s . f i r s t ? ' n e x t ' : ' p r e v ' ) ; t h i s . c a l l b a c k ( ' i t e m L o a d C a l l b a c k ' , e v t , s t a t e ) ; i f ( t h i s . p r e v F i r s t ! = = t h i s . f i r s t ) { t h i s . c a l l b a c k ( ' i t e m F i r s t I n C a l l b a c k ' , e v t , s t a t e , t h i s . f i r s t ) ; t h i s . c a l l b a c k ( ' i t e m F i r s t O u t C a l l b a c k ' , e v t , s t a t e , t h i s . p r e v F i r s t ) } i f ( t h i s . p r e v L a s t ! = = t h i s . l a s t ) { t h i s . c a l l b a c k ( ' i t e m L a s t I n C a l l b a c k ' , e v t , s t a t e , t h i s . l a s t ) ; t h i s . c a l l b a c k ( ' i t e m L a s t O u t C a l l b a c k ' , e v t , s t a t e , t h i s . p r e v L a s t ) } t h i s . c a l l b a c k ( ' i t e m V i s i b l e I n C a l l b a c k ' , e v t , s t a t e , t h i s . f i r s t , t h i s . l a s t , t h i s . p r e v F i r s t , t h i s . p r e v L a s t ) ; t h i s . c a l l b a c k ( ' i t e m V i s i b l e O u t C a l l b a c k ' , e v t , s t a t e , t h i s . p r e v F i r s t , t h i s . p r e v L a s t , t h i s . f i r s t , t h i s . l a s t ) } , c a l l b a c k : f u n c t i o n ( c b , e v t , s t a t e , i 1 , i 2 , i 3 , i 4 ) { i f ( t h i s . o p t i o n s [ c b ] = = u n d e f i n e d | | ( t y p e o f   t h i s . o p t i o n s [ c b ] ! = ' o b j e c t ' & & e v t ! = ' o n A f t e r A n i m a t i o n ' ) ) r e t u r n ; v a r   c a l l b a c k = t y p e o f   t h i s . o p t i o n s [ c b ] = = ' o b j e c t ' ? t h i s . o p t i o n s [ c b ] [ e v t ] : t h i s . o p t i o n s [ c b ] ; i f ( ! $ . i s F u n c t i o n ( c a l l b a c k ) ) r e t u r n ; v a r   s e l f = t h i s ; i f ( i 1 = = = u n d e f i n e d ) c a l l b a c k ( s e l f , s t a t e , e v t ) ; e l s e   i f ( i 2 = = = u n d e f i n e d ) t h i s . g e t ( i 1 ) . e a c h ( f u n c t i o n ( ) { c a l l b a c k ( s e l f , t h i s , i 1 , s t a t e , e v t ) } ) ; e l s e { f o r ( v a r   i = i 1 ; i < = i 2 ; i + + ) i f ( i ! = = n u l l & & ! ( i > = i 3 & & i < = i 4 ) ) t h i s . g e t ( i ) . e a c h ( f u n c t i o n ( ) { c a l l b a c k ( s e l f , t h i s , i , s t a t e , e v t ) } ) } } , c r e a t e : f u n c t i o n ( i ) { r e t u r n   t h i s . f o r m a t ( ' < l i > < / l i > ' , i ) } , f o r m a t : f u n c t i o n ( e , i ) { v a r   $ e = $ ( e ) . a d d C l a s s ( t h i s . c l a s s N a m e ( ' j c a r o u s e l - i t e m ' ) ) . a d d C l a s s ( t h i s . c l a s s N a m e ( ' j c a r o u s e l - i t e m - ' + i ) ) ; $ e . a t t r ( ' j c a r o u s e l i n d e x ' , i ) ; r e t u r n   $ e } , c l a s s N a m e : f u n c t i o n ( c ) { r e t u r n   c + '   ' + c + ( ! t h i s . o p t i o n s . v e r t i c a l ? ' - h o r i z o n t a l ' : ' - v e r t i c a l ' ) } , d i m e n s i o n : f u n c t i o n ( e , d ) { v a r   e l = e . j q u e r y ! = u n d e f i n e d ? e [ 0 ] : e ; v a r   o l d = ! t h i s . o p t i o n s . v e r t i c a l ? e l . o f f s e t W i d t h + $ j c . m a r g i n ( e l , ' m a r g i n L e f t ' ) + $ j c . m a r g i n ( e l , ' m a r g i n R i g h t ' ) : e l . o f f s e t H e i g h t + $ j c . m a r g i n ( e l , ' m a r g i n T o p ' ) + $ j c . m a r g i n ( e l , ' m a r g i n B o t t o m ' ) ; i f ( d = = u n d e f i n e d | | o l d = = d ) r e t u r n   o l d ; v a r   w = ! t h i s . o p t i o n s . v e r t i c a l ? d - $ j c . m a r g i n ( e l , ' m a r g i n L e f t ' ) - $ j c . m a r g i n ( e l , ' m a r g i n R i g h t ' ) : d - $ j c . m a r g i n ( e l , ' m a r g i n T o p ' ) - $ j c . m a r g i n ( e l , ' m a r g i n B o t t o m ' ) ; $ ( e l ) . c s s ( t h i s . w h , w + ' p x ' ) ; r e t u r n   t h i s . d i m e n s i o n ( e l ) } , c l i p p i n g : f u n c t i o n ( ) { r e t u r n ! t h i s . o p t i o n s . v e r t i c a l ? t h i s . c l i p [ 0 ] . o f f s e t W i d t h - $ j c . i n t v a l ( t h i s . c l i p . c s s ( ' b o r d e r L e f t W i d t h ' ) ) - $ j c . i n t v a l ( t h i s . c l i p . c s s ( ' b o r d e r R i g h t W i d t h ' ) ) : t h i s . c l i p [ 0 ] . o f f s e t H e i g h t - $ j c . i n t v a l ( t h i s . c l i p . c s s ( ' b o r d e r T o p W i d t h ' ) ) - $ j c . i n t v a l ( t h i s . c l i p . c s s ( ' b o r d e r B o t t o m W i d t h ' ) ) } , i n d e x : f u n c t i o n ( i , s ) { i f ( s = = u n d e f i n e d ) s = t h i s . o p t i o n s . s i z e ; r e t u r n   M a t h . r o u n d ( ( ( ( i - 1 ) / s ) - M a t h . f l o o r ( ( i - 1 ) / s ) ) * s ) + 1 } } ) ; $ j c . e x t e n d ( { d e f a u l t s : f u n c t i o n ( d ) { r e t u r n   $ . e x t e n d ( d e f a u l t s , d | | { } ) } , m a r g i n : f u n c t i o n ( e , p ) { i f ( ! e ) r e t u r n   0 ; v a r   e l = e . j q u e r y ! = u n d e f i n e d ? e [ 0 ] : e ; i f ( p = = ' m a r g i n R i g h t ' & & $ . b r o w s e r . s a f a r i ) { v a r   o l d = { ' d i s p l a y ' : ' b l o c k ' , ' f l o a t ' : ' n o n e ' , ' w i d t h ' : ' a u t o ' } , o W i d t h , o W i d t h 2 ; $ . s w a p ( e l , o l d , f u n c t i o n ( ) { o W i d t h = e l . o f f s e t W i d t h } ) ; o l d [ ' m a r g i n R i g h t ' ] = 0 ; $ . s w a p ( e l , o l d , f u n c t i o n ( ) { o W i d t h 2 = e l . o f f s e t W i d t h } ) ; r e t u r n   o W i d t h 2 - o W i d t h } r e t u r n   $ j c . i n t v a l ( $ . c s s ( e l , p ) ) } , i n t v a l : f u n c t i o n ( v ) { v = p a r s e I n t ( v ) ; r e t u r n   i s N a N ( v ) ? 0 : v } } ) } ) ( j Q u e r y ) ; $ j . f n . e q u a l H e i g h t s = f u n c t i o n ( ) { $ j ( t h i s ) . e a c h ( f u n c t i o n ( ) { v a r   _ c u r r e n t T a l l e s t = 0 ; $ j ( t h i s ) . c h i l d r e n ( ) . e a c h ( f u n c t i o n ( i ) { i f ( $ j ( t h i s ) . h e i g h t ( ) > _ c u r r e n t T a l l e s t ) { _ c u r r e n t T a l l e s t = $ j ( t h i s ) . h e i g h t ( ) } } ) ; $ j ( t h i s ) . c h i l d r e n ( ) . c s s ( { ' h e i g h t ' : _ c u r r e n t T a l l e s t } ) } ) ; r e t u r n   t h i s } ; $ j . f n . c l i p H = f u n c t i o n ( ) { v a r   _ c l i p = $ j ( t h i s ) . c h i l d r e n ( ' u l . j c a r o u s e l - l i s t - h o r i z o n t a l > l i ' ) . o u t e r H e i g h t ( ) ; $ j ( t h i s ) . p a r e n t ( ' . j c a r o u s e l - c l i p - h o r i z o n t a l ' ) . c s s ( " h e i g h t " , _ c l i p + " p x " ) ; r e t u r n   t h i s } ;  
  
 $ j = j Q u e r y . n o C o n f l i c t ( ) ;  
 v a r   F I F A c o u n t D o w n   =  
 {  
 _ y e a r : ' 2 0 1 0 ' ,  
 _ m o n t h : ' 0 6 ' ,  
 _ d a y : ' 1 1 ' ,  
 _ h o u r : ' 1 6 ' ,  
 _ m i n u t e : ' 3 0 ' ,  
 _ m o n t h a r r a y : n e w   A r r a y ( " J a n " , " F e b " , " M a r " , " A p r " , " M a y " , " J u n " , " J u l " , " A u g " , " S e p " , " O c t " , " N o v " , " D e c " ) ,  
 s e t C o u n t D o w n : f u n c t i o n ( _ t a r g h e t d a t a )   {  
 v a r   d = F I F A c o u n t D o w n . d e c o d e D a t e ( _ t a r g h e t d a t a ) ;  
 v a r   _ d = d . g e t D a t e ( ) . t o S t r i n g ( ) ;  
 v a r   _ M = d . g e t M o n t h ( )   +   1 ;  
 v a r   _ y = d . g e t F u l l Y e a r ( ) ;  
 v a r   _ h = d . g e t H o u r s ( ) ;  
 v a r   _ m = d . g e t M i n u t e s ( ) ;  
 F I F A c o u n t D o w n . _ y e a r = _ y ;  
 F I F A c o u n t D o w n . _ m o n t h = _ M ;  
 F I F A c o u n t D o w n . _ d a y = _ d ;  
 F I F A c o u n t D o w n . _ h o u r = _ h ;  
 F I F A c o u n t D o w n . _ m i n u t e = _ m ;  
 } ,  
 d e c o d e D a t e : f u n c t i o n ( n )   {  
 n = n   /   1 0 0 ;  
 v a r   _ m = n   %   1 0 0 , _ h = M a t h . f l o o r ( n   /   1 0 0 )   %   1 0 0 , _ d = M a t h . f l o o r ( n   /   1 0 0 0 0 )   %   1 0 0 , _ M = ( M a t h . f l o o r ( n   /   1 0 0 0 0 0 0 )   %   1 0 0 )   -   1 , _ y = M a t h . f l o o r ( n   /   1 0 0 0 0 0 0 0 0 )  
 v a r   _ d t = n e w   D a t e ( _ y , _ M , _ d , _ h , _ m ) ;  
 r e t u r n   _ d t ;  
 } ,  
 p a d S t r i n g : f u n c t i o n ( s , l , p c )   {  
 w h i l e   ( s . l e n g t h < l )   {  
 s = p c   +   s  
 } ;  
 r e t u r n   s ;  
 } ,  
 C o u n t D o w n : f u n c t i o n ( )   {  
 v a r   t o d a y = n e w   D a t e ( ) ;  
 v a r   t o d a y y = t o d a y . g e t Y e a r ( ) ;  
 i f ( t o d a y y < 1 0 0 0 )   {  
 t o d a y y   + =   1 9 0 0 ;  
 }  
 v a r   t o d a y m = t o d a y . g e t M o n t h ( ) ;  
 v a r   t o d a y d = t o d a y . g e t D a t e ( ) ;  
 v a r   t o d a y h = t o d a y . g e t H o u r s ( ) ;  
 v a r   t o d a y m i n = t o d a y . g e t M i n u t e s ( ) ;  
 v a r   t o d a y s e c = t o d a y . g e t S e c o n d s ( ) ;  
 v a r   t o d a y s t r i n g = F I F A c o u n t D o w n . _ m o n t h a r r a y [ t o d a y m ]   +   "   "   +   t o d a y d   +   " , "   +   t o d a y y   +   "   "   +   t o d a y h   +   " : "   +   t o d a y m i n   +   " : "   +   t o d a y s e c  
 v a r   f u t u r e s t r i n g = F I F A c o u n t D o w n . _ m o n t h a r r a y [ F I F A c o u n t D o w n . _ m o n t h   -   1 ]   +   "   "   +   F I F A c o u n t D o w n . _ d a y   +   " , "   +   F I F A c o u n t D o w n . _ y e a r   +   "   "   +   F I F A c o u n t D o w n . _ h o u r   +   " : "   +   F I F A c o u n t D o w n . _ m i n u t e  
 v a r   _ o c c a s i o n = D a t e . p a r s e ( f u t u r e s t r i n g )   -   D a t e . p a r s e ( t o d a y s t r i n g )  
 d d a y = M a t h . f l o o r ( _ o c c a s i o n   /   ( 6 0   *   6 0   *   1 0 0 0   *   2 4 )   *   1 )  
 d h o u r = M a t h . f l o o r ( ( _ o c c a s i o n   %   ( 6 0   *   6 0   *   1 0 0 0   *   2 4 ) )   /   ( 6 0   *   6 0   *   1 0 0 0 )   *   1 )  
 d m i n = M a t h . f l o o r ( ( ( _ o c c a s i o n   %   ( 6 0   *   6 0   *   1 0 0 0   *   2 4 ) )   %   ( 6 0   *   6 0   *   1 0 0 0 ) )   /   ( 6 0   *   1 0 0 0 )   *   1 )  
 d s e c = M a t h . f l o o r ( ( ( ( _ o c c a s i o n   %   ( 6 0   *   6 0   *   1 0 0 0   *   2 4 ) )   %   ( 6 0   *   6 0   *   1 0 0 0 ) )   %   ( 6 0   *   1 0 0 0 ) )   /   1 0 0 0   *   1 )  
 d d a y = F I F A c o u n t D o w n . p a d S t r i n g ( d d a y . t o S t r i n g ( ) , 2 , ' 0 ' ) ;  
 d h o u r = F I F A c o u n t D o w n . p a d S t r i n g ( d h o u r . t o S t r i n g ( ) , 2 , ' 0 ' ) ;  
 d m i n = F I F A c o u n t D o w n . p a d S t r i n g ( d m i n . t o S t r i n g ( ) , 2 , ' 0 ' ) ;  
 d s e c = F I F A c o u n t D o w n . p a d S t r i n g ( d s e c . t o S t r i n g ( ) , 2 , ' 0 ' ) ;  
 $ j ( " . C o u n t D o w n D a y " ) . h t m l ( d d a y ) ;  
 $ j ( " . C o u n t D o w n H o u r " ) . h t m l ( d h o u r ) ;  
 $ j ( " . C o u n t D o w n M i n u t e " ) . h t m l ( d m i n ) ;  
 $ j ( " . C o u n t D o w n S e c o n d " ) . h t m l ( d s e c ) ;  
 $ j ( " . c o n t e i n e r C o u n t D o w n " ) . s h o w ( ) ;  
 s e t T i m e o u t ( " F I F A c o u n t D o w n . C o u n t D o w n ( ) " , 1 0 0 0 ) ;  
 } ,  
 i n i t : f u n c t i o n ( _ t a r g h e t d a t a )   {  
 $ j ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( )   {  
 i f ( $ j ( ' # c o u n t d o w n N o F l a s h C o n t a i n e r ' ) . i s ( ' : v i s i b l e ' ) )   {  
 F I F A c o u n t D o w n . s e t C o u n t D o w n ( _ t a r g h e t d a t a ) ;  
 F I F A c o u n t D o w n . C o u n t D o w n ( ) ;  
 }  
 } ) ;  
 }  
 }  
  
 v a r   c u r r e n t = 0 ;  
 f u n c t i o n   u l L i s t A r r o w L e f t ( )   {  
 i f ( u l L i s t C u r r e n t > 0 )   {  
 c u r r e n t = u l L i s t C u r r e n t ;  
 s w i t c h N a v i g a t e L e f t ( u l L i s t C u r r e n t - - ) ;  
 $ j ( ' # s l i d e C o n t e n t ' ) . a n i m a t e ( {   l e f t : " - "   +   ( u l L i s t C o n t a i n e r W i d t h   *   u l L i s t C u r r e n t )   +   " p x "   } , {   d u r a t i o n : 5 0 0   } ) ;  
 }  
 }  
 f u n c t i o n   u l L i s t A r r o w R i g h t ( )   {  
 i f ( u l L i s t C u r r e n t < u l L i s t I t e m s C o u n t   -   1 )   {  
 c u r r e n t = u l L i s t C u r r e n t ;  
 s w i t c h N a v i g a t e R i g h t ( u l L i s t C u r r e n t + + ) ;  
 $ j ( ' # s l i d e C o n t e n t ' ) . a n i m a t e ( {   l e f t : " - "   +   ( u l L i s t C o n t a i n e r W i d t h   *   u l L i s t C u r r e n t )   +   " p x "   } , {   d u r a t i o n : 5 0 0   } ) ;  
 }  
 }  
 f u n c t i o n   s w i t c h N a v i g a t e R i g h t ( p o s i t i o n , l a s t )   {  
 p o s i t i o n = p o s i t i o n   +   1 ;  
 $ j ( ' # l i n k _ '   +   p o s i t i o n ) . r e m o v e C l a s s ( ' o n ' ) . a d d C l a s s ( ' o f f ' ) ;  
 p o s i t i o n = p o s i t i o n   +   1 ;  
 $ j ( ' # l i n k _ '   +   p o s i t i o n ) . r e m o v e C l a s s ( ' o f f ' ) . a d d C l a s s ( ' o n ' ) ;  
 c u r r e n t = p o s i t i o n ;  
 i f ( l a s t ! = ' u n d e f i n e d ' )   {  
 $ j ( ' # l i n k _ 4 ' ) . r e m o v e C l a s s ( ' o n ' ) . a d d C l a s s ( ' o f f ' ) ;  
 }  
 }  
 f u n c t i o n   s w i t c h O n O f f ( p o s i t i o n )   {  
 $ j ( ' # l i n k _ '   +   c u r r e n t ) . r e m o v e C l a s s ( ' o n ' ) . a d d C l a s s ( ' o f f ' ) ;  
 $ j ( ' # l i n k _ '   +   p o s i t i o n ) . r e m o v e C l a s s ( ' o f f ' ) . a d d C l a s s ( ' o n ' ) ;  
 c u r r e n t = p o s i t i o n ;  
 u l L i s t C u r r e n t = p o s i t i o n   -   1 ;  
 }  
 f u n c t i o n   s w i t c h N a v i g a t e L e f t ( p o s i t i o n )   {  
 p o s i t i o n = p o s i t i o n   +   1 ;  
 $ j ( ' # l i n k _ '   +   p o s i t i o n ) . r e m o v e C l a s s ( ' o n ' ) . a d d C l a s s ( ' o f f ' ) ;  
 p o s i t i o n = p o s i t i o n   -   1 ;  
 $ j ( ' # l i n k _ '   +   p o s i t i o n ) . r e m o v e C l a s s ( ' o f f ' ) . a d d C l a s s ( ' o n ' ) ;  
 c u r r e n t = p o s i t i o n ;  
 }  
 f u n c t i o n   u l L i s t S c r o l l R i g h t I n t e r v a l ( )   {  
 i f ( u l L i s t C u r r e n t < u l L i s t I t e m s C o u n t   -   1 )   {  
 c u r r e n t = u l L i s t C u r r e n t ;  
 i f ( u l L i s t C u r r e n t = = 0 )   {  
 s w i t c h N a v i g a t e R i g h t ( u l L i s t C u r r e n t + + , ' l a s t ' ) ;  
 }   e l s e   {  
 s w i t c h N a v i g a t e R i g h t ( u l L i s t C u r r e n t + + ) ;  
 }  
 $ j ( ' # s l i d e C o n t e n t ' ) . a n i m a t e ( {   l e f t : " - "   +   ( u l L i s t C o n t a i n e r W i d t h   *   u l L i s t C u r r e n t )   +   " p x "   } , {   d u r a t i o n : 5 0 0   } ) ;  
 }   e l s e   {  
 u l L i s t C u r r e n t = - 1 ;  
 }  
 $ j ( ' # l i n k _ '   +   c u r r e n t ) . r e m o v e C l a s s ( ' o f f ' ) . a d d C l a s s ( ' o n ' ) ;  
 }  
 f u n c t i o n   u l L i s t P u n t u a l ( p o s i t i o n )   {  
 $ j ( ' # s l i d e C o n t e n t ' ) . a n i m a t e ( {   l e f t : " - "   +   ( u l L i s t C o n t a i n e r W i d t h   *   ( p o s i t i o n   -   1 ) )   +   " p x "   } , {   d u r a t i o n : 5 0 0   } ) ;  
 s w i t c h O n O f f ( p o s i t i o n ) ;  
 }  
 f u n c t i o n   _ g e t L a n g u a g e ( )   {  
 v a r   t m p = n e w   A r r a y ( ) ;  
 t m p = w i n d o w . l o c a t i o n . h r e f . s p l i t ( ' . ' ) ;  
 a l e r t ( t m p [ 0 ] ) ;  
 }  
  
 ( f u n c t i o n ( $ )   {  
 $ . t i m e a g o = f u n c t i o n ( t i m e s t a m p )   {  
 i f ( t i m e s t a m p   i n s t a n c e o f   D a t e )   r e t u r n   i n W o r d s ( t i m e s t a m p ) ;  
 e l s e   i f ( t y p e o f   t i m e s t a m p = = " s t r i n g " )   r e t u r n   i n W o r d s ( $ . t i m e a g o . p a r s e ( t i m e s t a m p ) ) ;  
 e l s e   r e t u r n   i n W o r d s ( $ . t i m e a g o . d a t e t i m e ( t i m e s t a m p ) ) ;  
 } ;  
 v a r   $ t = $ . t i m e a g o ;  
 $ . e x t e n d ( $ . t i m e a g o , {  
 s e t t i n g s : {  
 r e f r e s h M i l l i s : 6 0 0 0 0 ,  
 a l l o w F u t u r e : f a l s e ,  
 s t r i n g s : {  
 p r e f i x A g o : n u l l ,  
 p r e f i x F r o m N o w : n u l l ,  
 s u f f i x A g o : " a g o " ,  
 s u f f i x F r o m N o w : " f r o m   n o w " ,  
 a g o : n u l l , / /   D E P R E C A T E D , u s e   s u f f i x A g o  
 f r o m N o w : n u l l , / /   D E P R E C A T E D , u s e   s u f f i x F r o m N o w  
 s e c o n d s : " l e s s   t h a n   a   m i n u t e " ,  
 m i n u t e : " a b o u t   a   m i n u t e " ,  
 m i n u t e s : " % d   m i n u t e s " ,  
 h o u r : " a b o u t   a n   h o u r " ,  
 h o u r s : " a b o u t   % d   h o u r s " ,  
 d a y : " a   d a y " ,  
 d a y s : " % d   d a y s " ,  
 m o n t h : " a b o u t   a   m o n t h " ,  
 m o n t h s : " % d   m o n t h s " ,  
 y e a r : " a b o u t   a   y e a r " ,  
 y e a r s : " % d   y e a r s "  
 }  
 } ,  
 i n W o r d s : f u n c t i o n ( d i s t a n c e M i l l i s )   {  
 v a r   $ l = t h i s . s e t t i n g s . s t r i n g s ;  
 v a r   p r e f i x = $ l . p r e f i x A g o ;  
 v a r   s u f f i x = $ l . s u f f i x A g 
