ÿþ( f u n c t i o n ( ) { i f ( w i n d o w . j Q u e r y ) v a r   _ j Q u e r y = w i n d o w . j Q u e r y ; v a r   j Q u e r y = w i n d o w . j Q u e r y = f u n c t i o n ( s e l e c t o r , c o n t e x t ) { r e t u r n   n e w   j Q u e r y . p r o t o t y p e . i n i t ( s e l e c t o r , c o n t e x t ) ; } ; i f ( w i n d o w . $ ) v a r   _ $ = w i n d o w . $ ; w i n d o w . $ = j Q u e r y ; v a r   q u i c k E x p r = / ^ [ ^ < ] * ( < ( . | \ s ) + > ) [ ^ > ] * $ | ^ # ( \ w + ) $ / ; v a r   i s S i m p l e = / ^ . [ ^ : # \ [ \ . ] * $ / ; j Q u e r y . f n = j Q u e r y . p r o t o t y p e = { i n i t : f u n c t i o n ( s e l e c t o r , c o n t e x t ) { s e l e c t o r = s e l e c t o r | | d o c u m e n t ; i f ( s e l e c t o r . n o d e T y p e ) { t h i s [ 0 ] = s e l e c t o r ; t h i s . l e n g t h = 1 ; r e t u r n   t h i s ; } e l s e   i f ( t y p e o f   s e l e c t o r = = " s t r i n g " ) { v a r   m a t c h = q u i c k E x p r . e x e c ( s e l e c t o r ) ; i f ( m a t c h & & ( m a t c h [ 1 ] | | ! c o n t e x t ) ) { i f ( m a t c h [ 1 ] ) s e l e c t o r = j Q u e r y . c l e a n ( [ m a t c h [ 1 ] ] , c o n t e x t ) ; e l s e { v a r   e l e m = d o c u m e n t . g e t E l e m e n t B y I d ( m a t c h [ 3 ] ) ; i f ( e l e m ) i f ( e l e m . i d ! = m a t c h [ 3 ] ) r e t u r n   j Q u e r y ( ) . f i n d ( s e l e c t o r ) ; e l s e { t h i s [ 0 ] = e l e m ; t h i s . l e n g t h = 1 ; r e t u r n   t h i s ; } e l s e 
 s e l e c t o r = [ ] ; } } e l s e 
 r e t u r n   n e w   j Q u e r y ( c o n t e x t ) . f i n d ( s e l e c t o r ) ; } e l s e   i f ( j Q u e r y . i s F u n c t i o n ( s e l e c t o r ) ) r e t u r n   n e w   j Q u e r y ( d o c u m e n t ) [ j Q u e r y . f n . r e a d y ? " r e a d y " : " l o a d " ] ( s e l e c t o r ) ; r e t u r n   t h i s . s e t A r r a y ( s e l e c t o r . c o n s t r u c t o r = = A r r a y & & s e l e c t o r | | ( s e l e c t o r . j q u e r y | | s e l e c t o r . l e n g t h & & s e l e c t o r ! = w i n d o w & & ! s e l e c t o r . n o d e T y p e & & s e l e c t o r [ 0 ] ! = u n d e f i n e d & & s e l e c t o r [ 0 ] . n o d e T y p e ) & & j Q u e r y . m a k e A r r a y ( s e l e c t o r ) | | [ s e l e c t o r ] ) ; } , j q u e r y : " p r e - 1 . 2 . 4 " , 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 ; } , l e n g t h : 0 , g e t : f u n c t i o n ( n u m ) { r e t u r n   n u m = = u n d e f i n e d ? j Q u e r y . m a k e A r r a y ( t h i s ) : t h i s [ n u m ] ; } , p u s h S t a c k : f u n c t i o n ( e l e m s ) { v a r   r e t = j Q u e r y ( e l e m s ) ; r e t . p r e v O b j e c t = t h i s ; r e t u r n   r e t ; } , s e t A r r a y : f u n c t i o n ( e l e m s ) { 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 l e m s ) ; r e t u r n   t h i s ; } , e a c h : f u n c t i o n ( c a l l b a c k , a r g s ) { r e t u r n   j Q u e r y . e a c h ( t h i s , c a l l b a c k , a r g s ) ; } , i n d e x : f u n c t i o n ( e l e m ) { v a r   r e t = - 1 ; t h i s . e a c h ( f u n c t i o n ( i ) { i f ( t h i s = = e l e m ) r e t = i ; } ) ; r e t u r n   r e t ; } , a t t r : f u n c t i o n ( n a m e , v a l u e , t y p e ) { v a r   o p t i o n s = n a m e ; i f ( n a m e . c o n s t r u c t o r = = S t r i n g ) i f ( v a l u e = = u n d e f i n e d ) r e t u r n   t h i s . l e n g t h & & j Q u e r y [ t y p e | | " a t t r " ] ( t h i s [ 0 ] , n a m e ) | | u n d e f i n e d ; e l s e { o p t i o n s = { } ; o p t i o n s [ n a m e ] = v a l u e ; } 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 ( n a m e   i n   o p t i o n s ) j Q u e r y . a t t r ( t y p e ? t h i s . s t y l e : t h i s , n a m e , j Q u e r y . p r o p ( t h i s , o p t i o n s [ n a m e ] , t y p e , i , n a m e ) ) ; } ) ; } , c s s : f u n c t i o n ( k e y , v a l u e ) { i f ( ( k e y = = ' w i d t h ' | | k e y = = ' h e i g h t ' ) & & p a r s e F l o a t ( v a l u e ) < 0 ) v a l u e = u n d e f i n e d ; r e t u r n   t h i s . a t t r ( k e y , v a l u e , " c u r C S S " ) ; } , t e x t : f u n c t i o n ( t e x t ) { i f ( t y p e o f   t e x t ! = " o b j e c t " & & t e x t ! = 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 ( t e x t ) ) ; v a r   r e t = " " ; j Q u e r y . e a c h ( t e x t | | t h i s , f u n c t i o n ( ) { j Q u e r y . 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 ) r e t + = 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 : j Q u e r y . f n . t e x t ( [ t h i s ] ) ; } ) ; } ) ; r e t u r n   r e t ; } , w r a p A l l : f u n c t i o n ( h t m l ) { i f ( t h i s [ 0 ] ) j Q u e r y ( h t m l , t h i s [ 0 ] . o w n e r D o c u m e n t ) . c l o n e ( ) . i n s e r t B e f o r e ( t h i s [ 0 ] ) . m a p ( f u n c t i o n ( ) { v a r   e l e m = t h i s ; w h i l e ( e l e m . f i r s t C h i l d ) e l e m = e l e m . f i r s t C h i l d ; r e t u r n   e l e m ; } ) . 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 ( h t m l ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { j Q u e r y ( t h i s ) . c o n t e n t s ( ) . w r a p A l l ( h t m l ) ; } ) ; } , w r a p : f u n c t i o n ( h t m l ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { j Q u e r y ( t h i s ) . w r a p A l l ( h t m l ) ; } ) ; } , 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 a l s e , f u n c t i o n ( e l e m ) { 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 l e m ) ; } ) ; } , 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 , t r u e , f u n c t i o n ( e l e m ) { 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 l e m , 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 a l s e , f u n c t i o n ( e l e m ) { 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 l e m , 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 , t r u e , f u n c t i o n ( e l e m ) { 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 l e m , 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 | | j Q u e r y ( [ ] ) ; } , f i n d : f u n c t i o n ( s e l e c t o r ) { v a r   e l e m s = j Q u e r y . m a p ( t h i s , f u n c t i o n ( e l e m ) { r e t u r n   j Q u e r y . f i n d ( s e l e c t o r , e l e m ) ; } ) ; r e t u r n   t h i s . p u s h S t a c k ( / [ ^ + > ]   [ ^ + > ] / . t e s t ( s e l e c t o r ) | | s e l e c t o r . i n d e x O f ( " . . " ) > - 1 ? j Q u e r y . u n i q u e ( e l e m s ) : e l e m s ) ; } , c l o n e : f u n c t i o n ( e v e n t s ) { v a r   r e t = t h i s . m a p ( f u n c t i o n ( ) { i f ( j Q u e r y . b r o w s e r . m s i e & & ! j Q u e r y . i s X M L D o c ( t h i s ) ) { v a r   c l o n e = t h i s . c l o n e N o d e ( t r u e ) , c o n t a i 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 " ) ; c o n t a i n e r . a p p e n d C h i l d ( c l o n e ) ; r e t u r n   j Q u e r y . c l e a n ( [ c o n t a i n e r . i n n e r H T M L ] ) [ 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 ) ; } ) ; v a r   c l o n e = r e t . 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 [ e x p a n d o ] ! = u n d e f i n e d ) t h i s [ e x p a n d o ] = n u l l ; } ) ; i f ( e v e n t s = = = t r u e ) t h i s . f i n d ( " * " ) . a n d S e l f ( ) . e a c h ( f u n c t i o n ( i ) { i f ( t h i s . n o d e T y p e = = 3 ) r e t u r n ; v a r   e v e n t s = j Q u e r y . d a t a ( t h i s , " e v e n t s " ) ; f o r ( v a r   t y p e   i n   e v e n t s ) f o r ( v a r   h a n d l e r   i n   e v e n t s [ t y p e ] ) j Q u e r y . e v e n t . a d d ( c l o n e [ i ] , t y p e , e v e n t s [ t y p e ] [ h a n d l e r ] , e v e n t s [ t y p e ] [ h a n d l e r ] . d a t a ) ; } ) ; r e t u r n   r e t ; } , f i l t e r : f u n c t i o n ( s e l e c t o r ) { r e t u r n   t h i s . p u s h S t a c k ( j Q u e r y . i s F u n c t i o n ( s e l e c t o r ) & & j Q u e r y . g r e p ( t h i s , f u n c t i o n ( e l e m , i ) { r e t u r n   s e l e c t o r . c a l l ( e l e m , i ) ; } ) | | j Q u e r y . m u l t i F i l t e r ( s e l e c t o r , t h i s ) ) ; } , n o t : f u n c t i o n ( s e l e c t o r ) { i f ( s e l e c t o r . c o n s t r u c t o r = = S t r i n g ) i f ( i s S i m p l e . t e s t ( s e l e c t o r ) ) r e t u r n   t h i s . p u s h S t a c k ( j Q u e r y . m u l t i F i l t e r ( s e l e c t o r , t h i s , t r u e ) ) ; e l s e 
 s e l e c t o r = j Q u e r y . m u l t i F i l t e r ( s e l e c t o r , t h i s ) ; v a r   i s A r r a y L i k e = s e l e c t o r . l e n g t h & & s e l e c t o r [ s e l e c t o r . l e n g t h - 1 ] ! = = u n d e f i n e d & & ! s e l e c t o r . 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   i s A r r a y L i k e ? j Q u e r y . i n A r r a y ( t h i s , s e l e c t o r ) < 0 : t h i s ! = s e l e c t o r ; } ) ; } , a d d : f u n c t i o n ( s e l e c t o r ) { r e t u r n ! s e l e c t o r ? t h i s : t h i s . p u s h S t a c k ( j Q u e r y . m e r g e ( t h i s . g e t ( ) , s e l e c t o r . c o n s t r u c t o r = = S t r i n g ? j Q u e r y ( s e l e c t o r ) . g e t ( ) : s e l e c t o r . l e n g t h ! = u n d e f i n e d & & ( ! s e l e c t o r . n o d e N a m e | | j Q u e r y . n o d e N a m e ( s e l e c t o r , " f o r m " ) ) ? s e l e c t o r : [ s e l e c t o r ] ) ) ; } , i s : f u n c t i o n ( s e l e c t o r ) { r e t u r n   s e l e c t o r ? j Q u e r y . m u l t i F i l t e r ( s e l e c t o r , t h i s ) . l e n g t h > 0 : f a l s e ; } , h a s C l a s s : f u n c t i o n ( s e l e c t o r ) { r e t u r n   t h i s . i s ( " . " + s e l e c t o r ) ; } , v a l : f u n c t i o n ( v a l u e ) { i f ( v a l u e = = u n d e f i n e d ) { i f ( t h i s . l e n g t h ) { v a r   e l e m = t h i s [ 0 ] ; i f ( j Q u e r y . n o d e N a m e ( e l e m , " s e l e c t " ) ) { v a r   i n d e x = e l e m . s e l e c t e d I n d e x , v a l u e s = [ ] , o p t i o n s = e l e m . o p t i o n s , o n e = e l e m . t y p e = = " s e l e c t - o n e " ; i f ( i n d e x < 0 ) r e t u r n   n u l l ; f o r ( v a r   i = o n e ? i n d e x : 0 , m a x = o n e ? i n d e x + 1 : o p t i o n s . l e n g t h ; i < m a x ; i + + ) { v a r   o p t i o n = o p t i o n s [ i ] ; i f ( o p t i o n . s e l e c t e d ) { v a l u e = j Q u e r y . b r o w s e r . m s i e & & ! o p t i o n . a t t r i b u t e s . v a l u e . s p e c i f i e d ? o p t i o n . t e x t : o p t i o n . v a l u e ; i f ( o n e ) r e t u r n   v a l u e ; v a l u e s . p u s h ( v a l u e ) ; } } r e t u r n   v a l u e s ; } e l s e 
 r e t u r n ( t h i s [ 0 ] . v a l u e | | " " ) . r e p l a c e ( / \ r / g , " " ) ; } r e t u r n   u n d e f i n e d ; } 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 ( v a l u e . c o n s t r u c t o r = = A r r a y & & / 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 = ( j Q u e r y . i n A r r a y ( t h i s . v a l u e , v a l u e ) > = 0 | | j Q u e r y . i n A r r a y ( t h i s . n a m e , v a l u e ) > = 0 ) ; e l s e   i f ( j Q u e r y . n o d e N a m e ( t h i s , " s e l e c t " ) ) { v a r   v a l u e s = v a l u e . c o n s t r u c t o r = = A r r a y ? v a l u e : [ v a l u e ] ; j Q u e r y ( " 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 = ( j Q u e r y . i n A r r a y ( t h i s . v a l u e , v a l u e s ) > = 0 | | j Q u e r y . i n A r r a y ( t h i s . t e x t , v a l u e s ) > = 0 ) ; } ) ; i f ( ! v a l u e s . 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 = v a l u e ; } ) ; } , h t m l : f u n c t i o n ( v a l u e ) { r e t u r n   v a l u e = = u n d e f i n e d ? ( t h i s . l e n g t h ? t h i s [ 0 ] . i n n e r H T M L : n u l l ) : t h i s . e m p t y ( ) . a p p e n d ( v a l u e ) ; } , r e p l a c e W i t h : f u n c t i o n ( v a l u e ) { r e t u r n   t h i s . a f t e r ( v a l u e ) . r e m o v e ( ) ; } , e q : f u n c t i o n ( i ) { r e t u r n   t h i s . s l i c e ( i , i + 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 ) ) ; } , m a p : f u n c t i o n ( c a l l b a c k ) { r e t u r n   t h i s . p u s h S t a c k ( j Q u e r y . m a p ( t h i s , f u n c t i o n ( e l e m , i ) { r e t u r n   c a l l b a c k . c a l l ( e l e m , i , e l e m ) ; } ) ) ; } , 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 a t a : f u n c t i o n ( k e y , v a l u e ) { v a r   p a r t s = k e y . s p l i t ( " . " ) ; p a r t s [ 1 ] = p a r t s [ 1 ] ? " . " + p a r t s [ 1 ] : " " ; i f ( v a l u e = = n u l l ) { v a r   d a t a = 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 " + p a r t s [ 1 ] + " ! " , [ p a r t s [ 0 ] ] ) ; i f ( d a t a = = u n d e f i n e d & & t h i s . l e n g t h ) d a t a = j Q u e r y . d a t a ( t h i s [ 0 ] , k e y ) ; r e t u r n   d a t a = = n u l l & & p a r t s [ 1 ] ? t h i s . d a t a ( p a r t s [ 0 ] ) : d a t a ; } 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 " + p a r t s [ 1 ] + " ! " , [ p a r t s [ 0 ] , v a l u e ] ) . e a c h ( f u n c t i o n ( ) { j Q u e r y . d a t a ( t h i s , k e y , v a l u e ) ; } ) ; } , r e m o v e D a t a : f u n c t i o n ( k e y ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { j Q u e r y . r e m o v e D a t a ( t h i s , k e y ) ; } ) ; } , d o m M a n i p : f u n c t i o n ( a r g s , t a b l e , r e v e r s e , c a l l b a c k ) { v a r   c l o n e = t h i s . l e n g t h > 1 , e l e m s ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { i f ( ! e l e m s ) { e l e m s = j Q u e r y . c l e a n ( a r g s , t h i s . o w n e r D o c u m e n t ) ; i f ( r e v e r s e ) e l e m s . r e v e r s e ( ) ; } v a r   o b j = t h i s ; i f ( t a b l e & & j Q u e r y . n o d e N a m e ( t h i s , " t a b l e " ) & & j Q u e r y . n o d e N a m e ( e l e m s [ 0 ] , " t r " ) ) o b j = t h i s . 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 ] | | t h i s . a p p e n d C h i l d ( 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 ( " t b o d y " ) ) ; v a r   s c r i p t s = j Q u e r y ( [ ] ) ; j Q u e r y . e a c h ( e l e m s , f u n c t i o n ( ) { v a r   e l e m = c l o n e ? j Q u e r y ( t h i s ) . c l o n e ( t r u e ) [ 0 ] : t h i s ; i f ( j Q u e r y . n o d e N a m e ( e l e m , " s c r i p t " ) ) { s c r i p t s = s c r i p t s . a d d ( e l e m ) ; } e l s e { i f ( e l e m . n o d e T y p e = = 1 ) s c r i p t s = s c r i p t s . a d d ( j Q u e r y ( " s c r i p t " , e l e m ) . r e m o v e ( ) ) ; c a l l b a c k . c a l l ( o b j , e l e m ) ; } } ) ; s c r i p t s . e a c h ( e v a l S c r i p t ) ; } ) ; } } ; j Q u e r y . p r o t o t y p e . i n i t . p r o t o t y p e = j Q u e r y . p r o t o t y p e ; f u n c t i o n   e v a l S c r i p t ( i , e l e m ) { i f ( e l e m . s r c ) j Q u e r y . a j a x ( { u r l : e l e m . 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 
 j Q u e r y . g l o b a l E v a l ( e l e m . t e x t | | e l e m . t e x t C o n t e n t | | e l e m . i n n e r H T M L | | " " ) ; i f ( e l e m . p a r e n t N o d e ) e l e m . p a r e n t N o d e . r e m o v e C h i l d ( e l e m ) ; } j Q u e r y . e x t e n d = j Q u e r y . f n . e x t e n d = f u n c t i o n ( ) { v a r   t a r g e t = a r g u m e n t s [ 0 ] | | { } , i = 1 , l e n g t h = a r g u m e n t s . l e n g t h , d e e p = f a l s e , o p t i o n s ; i f ( t a r g e t . c o n s t r u c t o r = = B o o l e a n ) { d e e p = t a r g e t ; t a r g e t = a r g u m e n t s [ 1 ] | | { } ; i = 2 ; } i f ( t y p e o f   t a r g e t ! = " o b j e c t " & & t y p e o f   t a r g e t ! = " f u n c t i o n " ) t a r g e t = { } ; i f ( l e n g t h = = 1 ) { t a r g e t = t h i s ; i = 0 ; } f o r ( ; i < l e n g t h ; i + + ) i f ( ( o p t i o n s = a r g u m e n t s [ i ] ) ! = n u l l ) f o r ( v a r   n a m e   i n   o p t i o n s ) { i f ( t a r g e t = = = o p t i o n s [ n a m e ] ) c o n t i n u e ; i f ( d e e p & & o p t i o n s [ n a m e ] & & t y p e o f   o p t i o n s [ n a m e ] = = " o b j e c t " & & t a r g e t [ n a m e ] & & ! o p t i o n s [ n a m e ] . n o d e T y p e ) t a r g e t [ n a m e ] = j Q u e r y . e x t e n d ( t a r g e t [ n a m e ] , o p t i o n s [ n a m e ] ) ; e l s e   i f ( o p t i o n s [ n a m e ] ! = u n d e f i n e d ) t a r g e t [ n a m e ] = o p t i o n s [ n a m e ] ; } r e t u r n   t a r g e t ; } ; v a r   e x p a n d o = " j Q u e r y " + ( n e w   D a t e ( ) ) . g e t T i m e ( ) , u u i d = 0 , w i n d o w D a t a = { } ; v a r   e x c l u d e = / 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 ; j Q u e r y . e x t e n d ( { n o C o n f l i c t : f u n c t i o n ( d e e p ) { w i n d o w . $ = _ $ ; i f ( d e e p ) w i n d o w . j Q u e r y = _ j Q u e r y ; r e t u r n   j Q u e r y ; } , i s F u n c t i o n : f u n c t i o n ( f n ) { r e t u r n ! ! f n & & t y p e o f   f n ! = " s t r i n g " & & ! f n . n o d e N a m e & & f n . c o n s t r u c t o r ! = A r r a y & & / f u n c t i o n / i . t e s t ( f n + " " ) ; } , i s X M L D o c : f u n c t i o n ( e l e m ) { r e t u r n   e l e m . d o c u m e n t E l e m e n t & & ! e l e m . b o d y | | e l e m . t a g N a m e & & e l e m . o w n e r D o c u m e n t & & ! e l e m . o w n e r D o c u m e n t . b o d y ; } , g l o b a l E v a l : f u n c t i o n ( d a t a ) { d a t a = j Q u e r y . t r i m ( d a t a ) ; i f ( d a t a ) { v a r   h e a d = 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 , s c r i p 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 " ) ; s c r i p t . t y p e = " t e x t / j a v a s c r i p t " ; i f ( j Q u e r y . b r o w s e r . m s i e ) s c r i p t . t e x t = d a t a ; e l s e 
 s c r i p 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 T e x t N o d e ( d a t a ) ) ; h e a d . a p p e n d C h i l d ( s c r i p t ) ; h e a d . r e m o v e C h i l d ( s c r i p t ) ; } } , n o d e N a m e : f u n c t i o n ( e l e m , n a m e ) { r e t u r n   e l e m . n o d e N a m e & & e l e m . n o d e N a m e . t o U p p e r C a s e ( ) = = n a m e . t o U p p e r C a s e ( ) ; } , c a c h e : { } , d a t a : f u n c t i o n ( e l e m , n a m e , d a t a ) { e l e m = e l e m = = w i n d o w ? w i n d o w D a t a : e l e m ; v a r   i d = e l e m [ e x p a n d o ] ; i f ( ! i d ) i d = e l e m [ e x p a n d o ] = + + u u i d ; i f ( n a m e & & ! j Q u e r y . c a c h e [ i d ] ) j Q u e r y . c a c h e [ i d ] = { } ; i f ( d a t a ! = u n d e f i n e d ) j Q u e r y . c a c h e [ i d ] [ n a m e ] = d a t a ; r e t u r n   n a m e ? j Q u e r y . c a c h e [ i d ] [ n a m e ] : i d ; } , r e m o v e D a t a : f u n c t i o n ( e l e m , n a m e ) { e l e m = e l e m = = w i n d o w ? w i n d o w D a t a : e l e m ; v a r   i d = e l e m [ e x p a n d o ] ; i f ( n a m e ) { i f ( j Q u e r y . c a c h e [ i d ] ) { d e l e t e   j Q u e r y . c a c h e [ i d ] [ n a m e ] ; n a m e = " " ; f o r ( n a m e   i n   j Q u e r y . c a c h e [ i d ] ) b r e a k ; i f ( ! n a m e ) j Q u e r y . r e m o v e D a t a ( e l e m ) ; } } e l s e { t r y { d e l e t e   e l e m [ e x p a n d o ] ; } c a t c h ( e ) { i f ( e l e m . r e m o v e A t t r i b u t e ) e l e m . r e m o v e A t t r i b u t e ( e x p a n d o ) ; } d e l e t e   j Q u e r y . c a c h e [ i d ] ; } } , e a c h : f u n c t i o n ( o b j e c t , c a l l b a c k , a r g s ) { i f ( a r g s ) { i f ( o b j e c t . l e n g t h = = u n d e f i n e d ) { f o r ( v a r   n a m e   i n   o b j e c t ) i f ( c a l l b a c k . a p p l y ( o b j e c t [ n a m e ] , a r g s ) = = = f a l s e ) b r e a k ; } e l s e 
 f o r ( v a r   i = 0 , l e n g t h = o b j e c t . l e n g t h ; i < l e n g t h ; i + + ) i f ( c a l l b a c k . a p p l y ( o b j e c t [ i ] , a r g s ) = = = f a l s e ) b r e a k ; } e l s e { i f ( o b j e c t . l e n g t h = = u n d e f i n e d ) { f o r ( v a r   n a m e   i n   o b j e c t ) i f ( c a l l b a c k . c a l l ( o b j e c t [ n a m e ] , n a m e , o b j e c t [ n a m e ] ) = = = f a l s e ) b r e a k ; } e l s e 
 f o r ( v a r   i = 0 , l e n g t h = o b j e c t . l e n g t h , v a l u e = o b j e c t [ 0 ] ; i < l e n g t h & & c a l l b a c k . c a l l ( v a l u e , i , v a l u e ) ! = = f a l s e ; v a l u e = o b j e c t [ + + i ] ) { } } r e t u r n   o b j e c t ; } , p r o p : f u n c t i o n ( e l e m , v a l u e , t y p e , i , n a m e ) { i f ( j Q u e r y . i s F u n c t i o n ( v a l u e ) ) v a l u e = v a l u e . c a l l ( e l e m , i ) ; r e t u r n   v a l u e & & v a l u e . c o n s t r u c t o r = = N u m b e r & & t y p e = = " c u r C S S " & & ! e x c l u d e . t e s t ( n a m e ) ? v a l u e + " p x " : v a l u e ; } , c l a s s N a m e : { a d d : f u n c t i o n ( e l e m , c l a s s N a m e s ) { j Q u e r y . e a c h ( ( c l a s s N a m e s | | " " ) . s p l i t ( / \ s + / ) , f u n c t i o n ( i , c l a s s N a m e ) { i f ( e l e m . n o d e T y p e = = 1 & & ! j Q u e r y . c l a s s N a m e . h a s ( e l e m . c l a s s N a m e , c l a s s N a m e ) ) e l e m . c l a s s N a m e + = ( e l e m . c l a s s N a m e ? "   " : " " ) + c l a s s N a m e ; } ) ; } , r e m o v e : f u n c t i o n ( e l e m , c l a s s N a m e s ) { i f ( e l e m . n o d e T y p e = = 1 ) e l e m . c l a s s N a m e = c l a s s N a m e s ! = u n d e f i n e d ? j Q u e r y . g r e p ( e l e m . c l a s s N a m e . s p l i t ( / \ s + / ) , f u n c t i o n ( c l a s s N a m e ) { r e t u r n ! j Q u e r y . c l a s s N a m e . h a s ( c l a s s N a m e s , c l a s s N a m e ) ; } ) . j o i n ( "   " ) : " " ; } , h a s : f u n c t i o n ( e l e m , c l a s s N a m e ) { r e t u r n   j Q u e r y . i n A r r a y ( c l a s s N a m e , ( e l e m . c l a s s N a m e | | e l e m ) . 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 ( e l e m , o p t i o n s , c a l l b a c k ) { v a r   o l d = { } ; f o r ( v a r   n a m e   i n   o p t i o n s ) { o l d [ n a m e ] = e l e m . s t y l e [ n a m e ] ; e l e m . s t y l e [ n a m e ] = o p t i o n s [ n a m e ] ; } c a l l b a c k . c a l l ( e l e m ) ; f o r ( v a r   n a m e   i n   o p t i o n s ) e l e m . s t y l e [ n a m e ] = o l d [ n a m e ] ; } , c s s : f u n c t i o n ( e l e m , n a m e , f o r c e ) { i f ( n a m e = = " w i d t h " | | n a m e = = " h e i g h t " ) { v a r   v a l , p r o p s = { p o s i t i o n : " a b s o l u t e " , v i s i b i l i t y : " h i d d e n " , d i s p l a y : " b l o c k " } , w h i c h = n a m e = = " 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   g e t W H ( ) { v a l = n a m e = = " w i d t h " ? e l e m . o f f s e t W i d t h : e l e m . o f f s e t H e i g h t ; v a r   p a d d i n g = 0 , b o r d e r = 0 ; j Q u e r y . e a c h ( w h i c h , f u n c t i o n ( ) { p a d d i n g + = p a r s e F l o a t ( j Q u e r y . c u r C S S ( e l e m , " p a d d i n g " + t h i s , t r u e ) ) | | 0 ; b o r d e r + = p a r s e F l o a t ( j Q u e r y . c u r C S S ( e l e m , " b o r d e r " + t h i s + " W i d t h " , t r u e ) ) | | 0 ; } ) ; v a l - = M a t h . r o u n d ( p a d d i n g + b o r d e r ) ; } i f ( j Q u e r y ( e l e m ) . i s ( " : v i s i b l e " ) ) g e t W H ( ) ; e l s e 
 j Q u e r y . s w a p ( e l e m , p r o p s , g e t W H ) ; r e t u r n   M a t h . m a x ( 0 , v a l ) ; } r e t u r n   j Q u e r y . c u r C S S ( e l e m , n a m e , f o r c e ) ; } , c u r C S S : f u n c t i o n ( e l e m , n a m e , f o r c e ) { v a r   r e t ; f u n c t i o n   c o l o r ( e l e m ) { i f ( ! j Q u e r y . b r o w s e r . s a f a r i ) r e t u r n   f a l s e ; v a r   r e t = 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 ( e l e m , n u l l ) ; r e t u r n ! r e t | | r e t . g e t P r o p e r t y V a l u e ( " c o l o r " ) = = " " ; } i f ( n a m e = = " o p a c i t y " & & j Q u e r y . b r o w s e r . m s i e ) { r e t = j Q u e r y . a t t r ( e l e m . s t y l e , " o p a c i t y " ) ; r e t u r n   r e t = = " " ? " 1 " : r e t ; } i f ( j Q u e r y . b r o w s e r . o p e r a & & n a m e = = " d i s p l a y " ) { v a r   s a v e = e l e m . s t y l e . o u t l i n e ; e l e m . s t y l e . o u t l i n e = " 0   s o l i d   b l a c k " ; e l e m . s t y l e . o u t l i n e = s a v e ; } i f ( n a m e . m a t c h ( / f l o a t / i ) ) n a m e = s t y l e F l o a t ; i f ( ! f o r c e & & e l e m . s t y l e & & e l e m . s t y l e [ n a m e ] ) r e t = e l e m . s t y l e [ n a m e ] ; e l s e   i f ( d o c u m e n t . d e f a u l t V i e w & & 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 ) { i f ( n a m e . m a t c h ( / f l o a t / i ) ) n a m e = " f l o a t " ; n a m e = n a m e . 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   g e t C o m p u t e d S t y l e = 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 ( e l e m , n u l l ) ; i f ( g e t C o m p u t e d S t y l e & & ! c o l o r ( e l e m ) ) r e t = g e t C o m p u t e d S t y l e . g e t P r o p e r t y V a l u e ( n a m e ) ; e l s e { v a r   s w a p = [ ] , s t a c k = [ ] ; f o r ( v a r   a = e l e m ; a & & c o l o r ( a ) ; a = a . p a r e n t N o d e ) s t a c k . u n s h i f t ( a ) ; f o r ( v a r   i = 0 ; i < s t a c k . l e n g t h ; i + + ) i f ( c o l o r ( s t a c k [ i ] ) ) { s w a p [ i ] = s t a c k [ i ] . s t y l e . d i s p l a y ; s t a c k [ i ] . s t y l e . d i s p l a y = " b l o c k " ; } r e t = n a m e = = " d i s p l a y " & & s w a p [ s t a c k . l e n g t h - 1 ] ! = n u l l ? " n o n e " : ( g e t C o m p u t e d S t y l e & & g e t C o m p u t e d S t y l e . g e t P r o p e r t y V a l u e ( n a m e ) ) | | " " ; f o r ( v a r   i = 0 ; i < s w a p . l e n g t h ; i + + ) i f ( s w a p [ i ] ! = n u l l ) s t a c k [ i ] . s t y l e . d i s p l a y = s w a p [ i ] ; } i f ( n a m e = = " o p a c i t y " & & r e t = = " " ) r e t = " 1 " ; } e l s e   i f ( e l e m . c u r r e n t S t y l e ) { v a r   c a m e l C a s e = n a m e . r e p l a c e ( / \ - ( \ w ) / g , f u n c t i o n ( a l l , l e t t e r ) { r e t u r n   l e t t e r . t o U p p e r C a s e ( ) ; } ) ; r e t = e l e m . c u r r e n t S t y l e [ n a m e ] | | e l e m . c u r r e n t S t y l e [ c a m e l C a s e ] ; i f ( ! / ^ \ d + ( p x ) ? $ / i . t e s t ( r e t ) & & / ^ \ d / . t e s t ( r e t ) ) { v a r   s t y l e = e l e m . s t y l e . l e f t , r u n t i m e S t y l e = e l e m . r u n t i m e S t y l e . l e f t ; e l e m . r u n t i m e S t y l e . l e f t = e l e m . c u r r e n t S t y l e . l e f t ; e l e m . s t y l e . l e f t = r e t | | 0 ; r e t = e l e m . s t y l e . p i x e l L e f t + " p x " ; e l e m . s t y l e . l e f t = s t y l e ; e l e m . r u n t i m e S t y l e . l e f t = r u n t i m e S t y l e ; } } r e t u r n   r e t ; } , c l e a n : f u n c t i o n ( e l e m s , c o n t e x t ) { v a r   r e t = [ ] ; c o n t e x t = c o n t e x t | | d o c u m e n t ; i f ( t y p e o f   c o n t e x t . c r e a t e E l e m e n t = = ' u n d e f i n e d ' ) c o n t e x t = c o n t e x t . o w n e r D o c u m e n t | | c o n t e x t [ 0 ] & & c o n t e x t [ 0 ] . o w n e r D o c u m e n t | | d o c u m e n t ; j Q u e r y . e a c h ( e l e m s , f u n c t i o n ( i , e l e m ) { i f ( ! e l e m ) r e t u r n ; i f ( e l e m . c o n s t r u c t o r = = N u m b e r ) e l e m = e l e m . t o S t r i n g ( ) ; i f ( t y p e o f   e l e m = = " s t r i n g " ) { e l e m = e l e m . r e p l a c e ( / ( < ( \ w + ) [ ^ > ] * ? ) \ / > / g , f u n c t i o n ( a l l , f r o n t , t a g ) { r e t u r n   t a g . 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 ) ? a l l : f r o n t + " > < / " + t a g + " > " ; } ) ; v a r   t a g s = j Q u e r y . t r i m ( e l e m ) . t o L o w e r C a s e ( ) , d i v = c o n t e x t . c r e a t e E l e m e n t ( " d i v " ) ; v a r   w r a p = ! t a g s . 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 > " ] | | ! t a g s . 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 > " ] | | t a g s . 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 > " ] | | ! t a g s . 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 > " ] | | ( ! t a g s . i n d e x O f ( " < t d " ) | | ! t a g s . 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 > " ] | | ! t a g s . 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 > " ] | | j Q u e r y . b r o w s e r . m s i e & & [ 1 , " d i v < d i v > " , " < / d i v > " ] | | [ 0 , " " , " " ] ; d i v . i n n e r H T M L = w r a p [ 1 ] + e l e m + w r a p [ 2 ] ; w h i l e ( w r a p [ 0 ] - - ) d i v = d i v . l a s t C h i l d ; i f ( j Q u e r y . b r o w s e r . m s i e ) { v a r   t b o d y = ! t a g s . i n d e x O f ( " < t a b l e " ) & & t a g s . i n d e x O f ( " < t b o d y " ) < 0 ? d i v . f i r s t C h i l d & & d i v . f i r s t C h i l d . c h i l d N o d e s : w r a p [ 1 ] = = " < t a b l e > " & & t a g s . i n d e x O f ( " < t b o d y " ) < 0 ? d i v . c h i l d N o d e s : [ ] ; f o r ( v a r   j = t b o d y . l e n g t h - 1 ; j > = 0 ; - - j ) i f ( j Q u e r y . n o d e N a m e ( t b o d y [ j ] , " t b o d y " ) & & ! t b o d y [ j ] . c h i l d N o d e s . l e n g t h ) t b o d y [ j ] . p a r e n t N o d e . r e m o v e C h i l d ( t b o d y [ j ] ) ; i f ( / ^ \ s / . t e s t ( e l e m ) ) d i v . i n s e r t B e f o r e ( c o n t e x t . c r e a t e T e x t N o d e ( e l e m . m a t c h ( / ^ \ s * / ) [ 0 ] ) , d i v . f i r s t C h i l d ) ; } e l e m = j Q u e r y . m a k e A r r a y ( d i v . c h i l d N o d e s ) ; } i f ( e l e m . l e n g t h = = = 0 & & ( ! j Q u e r y . n o d e N a m e ( e l e m , " f o r m " ) & & ! j Q u e r y . n o d e N a m e ( e l e m , " s e l e c t " ) ) ) r e t u r n ; i f ( e l e m [ 0 ] = = u n d e f i n e d | | j Q u e r y . n o d e N a m e ( e l e m , " f o r m " ) | | e l e m . o p t i o n s ) r e t . p u s h ( e l e m ) ; e l s e 
 r e t = j Q u e r y . m e r g e ( r e t , e l e m ) ; } ) ; r e t u r n   r e t ; } , a t t r : f u n c t i o n ( e l e m , n a m e , v a l u e ) { i f ( ! e l e m | | e l e m . n o d e T y p e = = 3 | | e l e m . n o d e T y p e = = 8 ) r e t u r n   u n d e f i n e d ; v a r   f i x = j Q u e r y . i s X M L D o c ( e l e m ) ? { } : j Q u e r y . p r o p s ; i f ( n a m e = = " s e l e c t e d " & & j Q u e r y . b r o w s e r . s a f a r i ) e l e m . 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 ( f i x [ n a m e ] ) { i f ( v a l u e ! = u n d e f i n e d ) e l e m [ f i x [ n a m e ] ] = v a l u e ; r e t u r n   e l e m [ f i x [ n a m e ] ] ; } e l s e   i f ( j Q u e r y . b r o w s e r . m s i e & & n a m e = = " s t y l e " ) r e t u r n   j Q u e r y . a t t r ( e l e m . s t y l e , " c s s T e x t " , v a l u e ) ; e l s e   i f ( v a l u e = = u n d e f i n e d & & j Q u e r y . b r o w s e r . m s i e & & j Q u e r y . n o d e N a m e ( e l e m , " f o r m " ) & & ( n a m e = = " a c t i o n " | | n a m e = = " m e t h o d " ) ) r e t u r n   e l e m . g e t A t t r i b u t e N o d e ( n a m e ) . n o d e V a l u e ; e l s e   i f ( e l e m . t a g N a m e ) { i f ( v a l u e ! = u n d e f i n e d ) { i f ( n a m e = = " t y p e " & & j Q u e r y . n o d e N a m e ( e l e m , " i n p u t " ) & & e l e m . 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 " ; e l e m . s e t A t t r i b u t e ( n a m e , " " + v a l u e ) ; } i f ( j Q u e r y . b r o w s e r . m s i e & & / h r e f | s r c / . t e s t ( n a m e ) & & ! j Q u e r y . i s X M L D o c ( e l e m ) ) r e t u r n   e l e m . g e t A t t r i b u t e ( n a m e , 2 ) ; r e t u r n   e l e m . g e t A t t r i b u t e ( n a m e ) ; } e l s e { i f ( n a m e = = " o p a c i t y " & & j Q u e r y . b r o w s e r . m s i e ) { i f ( v a l u e ! = u n d e f i n e d ) { e l e m . z o o m = 1 ; e l e m . f i l t e r = ( e l e m . f i l t e r | | " " ) . r e p l a c e ( / a l p h a \ ( [ ^ ) ] * \ ) / , " " ) + ( p a r s e F l o a t ( v a l u e ) . t o S t r i n g ( ) = = " N a N " ? " " : " a l p h a ( o p a c i t y = " + v a l u e * 1 0 0 + " ) " ) ; } r e t u r n   e l e m . f i l t e r & & e l e m . 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 ( e l e m . f i l t e r . m a t c h ( / o p a c i t y = ( [ ^ ) ] * ) / ) [ 1 ] ) / 1 0 0 ) . t o S t r i n g ( ) : " " ; } n a m e = n a m e . r e p l a c e ( / - ( [ a - z ] ) / i g , f u n c t i o n ( a l l , l e t t e r ) { r e t u r n   l e t t e r . t o U p p e r C a s e ( ) ; } ) ; i f ( v a l u e ! = u n d e f i n e d ) e l e m [ n a m e ] = v a l u e ; r e t u r n   e l e m [ n a m e ] ; } } , t r i m : f u n c t i o n ( t e x t ) { r e t u r n ( t e x t | | " " ) . 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 ( a r r a y ) { v a r   r e t = [ ] ; i f ( a r r a y . c o n s t r u c t o r ! = A r r a y ) f o r ( v a r   i = 0 , l e n g t h = a r r a y . l e n g t h ; i < l e n g t h ; i + + ) r e t . p u s h ( a r r a y [ i ] ) ; e l s e 
 r e t = a r r a y . s l i c e ( 0 ) ; r e t u r n   r e t ; } , i n A r r a y : f u n c t i o n ( e l e m , a r r a y ) { f o r ( v a r   i = 0 , l e n g t h = a r r a y . l e n g t h ; i < l e n g t h ; i + + ) i f ( a r r a y [ i ] = = e l e m ) r e t u r n   i ; r e t u r n - 1 ; } , m e r g e : f u n c t i o n ( f i r s t , s e c o n d ) { i f ( j Q u e r y . b r o w s e r . m s i e ) { f o r ( v a r   i = 0 ; s e c o n d [ i ] ; i + + ) i f ( s e c o n d [ i ] . n o d e T y p e ! = 8 ) f i r s t . p u s h ( s e c o n d [ i ] ) ; } e l s e 
 f o r ( v a r   i = 0 ; s e c o n d [ i ] ; i + + ) f i r s t . p u s h ( s e c o n d [ i ] ) ; r e t u r n   f i r s t ; } , u n i q u e : f u n c t i o n ( a r r a y ) { v a r   r e t = [ ] , d o n e = { } ; t r y { f o r ( v a r   i = 0 , l e n g t h = a r r a y . l e n g t h ; i < l e n g t h ; i + + ) { v a r   i d = j Q u e r y . d a t a ( a r r a y [ i ] ) ; i f ( ! d o n e [ i d ] ) { d o n e [ i d ] = t r u e ; r e t . p u s h ( a r r a y [ i ] ) ; } } } c a t c h ( e ) { r e t = a r r a y ; } r e t u r n   r e t ; } , g r e p : f u n c t i o n ( e l e m s , c a l l b a c k , i n v ) { v a r   r e t = [ ] ; f o r ( v a r   i = 0 , l e n g t h = e l e m s . l e n g t h ; i < l e n g t h ; i + + ) i f ( ! i n v & & c a l l b a c k ( e l e m s [ i ] , i ) | | i n v & & ! c a l l b a c k ( e l e m s [ i ] , i ) ) r e t . p u s h ( e l e m s [ i ] ) ; r e t u r n   r e t ; } , m a p : f u n c t i o n ( e l e m s , c a l l b a c k ) { v a r   r e t = [ ] ; f o r ( v a r   i = 0 , l e n g t h = e l e m s . l e n g t h ; i < l e n g t h ; i + + ) { v a r   v a l u e = c a l l b a c k ( e l e m s [ i ] , i ) ; i f ( v a l u e ! = = n u l l & & v a l u e ! = u n d e f i n e d ) { i f ( v a l u e . c o n s t r u c t o r ! = A r r a y ) v a l u e = [ v a l u e ] ; r e t = r e t . c o n c a t ( v a l u e ) ; } } r e t u r n   r e t ; } } ) ; v a 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 . t o L o w e r C a s e ( ) ; j Q u e r y . b r o w s e r = { v e r s i o n : ( u s e r A g e n t . m a t c h ( / . + ( ? : r v | i t | r a | i e ) [ \ / :   ] ( [ \ d . ] + ) / ) | | [ ] ) [ 1 ] , s a f a r i : / w e b k i t / . t e s t ( u s e r A g e n t ) , o p e r a : / o p e r a / . t e s t ( u s e r A g e n t ) , m s i e : / m s i e / . t e s t ( u s e r A g e n t ) & & ! / o p e r a / . t e s t ( u s e r A g e n t ) , m o z i l l a : / m o z i l l a / . t e s t ( u s e r A g e n t ) & & ! / ( c o m p a t i b l e | w e b k i t ) / . t e s t ( u s e r A g e n t ) } ; v a r   s t y l e F l o a t = j Q u e r y . b r o w s e r . m s i e ? " s t y l e F l o a t " : " c s s F l o a t " ; j Q u e r y . e x t e n d ( { b o x M o d e l : ! j Q u e r y . b r o w s e r . m s i e | | 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 " , 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 " : s t y l e F l o a t , c s s F l o a t : s t y l e F l o a t , s t y l e F l o a t : s t y l e F l o a t , i n n e r H T M L : " i n n e r H T M L " , c l a s s N a m e : " c l a s s N a m e " , v a l u e : " v a l u e " , d i s a b l e d : " d i s a b l e d " , c h e c k e d : " c h e c k e d " , r e a d o n l y : " r e a d O n l y " , s e l e c t e d : " s e l e c t e d " , m a x l e n g t h : " m a x L e n g t h " , s e l e c t e d I n d e x : " s e l e c t e d I n d e x " , d e f a u l t V a l u e : " d e f a u l t V a l u e " , t a g N a m e : " t a g N a m e " , n o d e N a m e : " n o d e N a m e " } } ) ; j Q u e r y . e a c h ( { p a r e n t : f u n c t i o n ( e l e m ) { r e t u r n   e l e m . 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 l e m ) { r e t u r n   j Q u e r y . d i r ( e l e m , " p a r e n t N o d e " ) ; } , n e x t : f u n c t i o n ( e l e m ) { r e t u r n   j Q u e r y . n t h ( e l e m , 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 l e m ) { r e t u r n   j Q u e r y . n t h ( e l e m , 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 l e m ) { r e t u r n   j Q u e r y . d i r ( e l e m , " 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 l e m ) { r e t u r n   j Q u e r y . d i r ( e l e m , " 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 l e m ) { r e t u r n   j Q u e r y . s i b l i n g ( e l e m . p a r e n t N o d e . f i r s t C h i l d , e l e m ) ; } , c h i l d r e n : f u n c t i o n ( e l e m ) { r e t u r n   j Q u e r y . s i b l i n g ( e l e m . 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 l e m ) { r e t u r n   j Q u e r y . n o d e N a m e ( e l e m , " i f r a m e " ) ? e l e m . c o n t e n t D o c u m e n t | | e l e m . c o n t e n t W i n d o w . d o c u m e n t : j Q u e r y . m a k e A r r a y ( e l e m . c h i l d N o d e s ) ; } } , f u n c t i o n ( n a m e , f n ) { j Q u e r y . f n [ n a m e ] = f u n c t i o n ( s e l e c t o r ) { v a r   r e t = j Q u e r y . m a p ( t h i s , f n ) ; i f ( s e l e c t o r & & t y p e o f   s e l e c t o r = = " s t r i n g " ) r e t = j Q u e r y . m u l t i F i l t e r ( s e l e c t o r , r e t ) ; r e t u r n   t h i s . p u s h S t a c k ( j Q u e r y . u n i q u e ( r e t ) ) ; } ; } ) ; j Q u e r y . 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 ( n a m e , o r i g i n a l ) { j Q u e r y . f n [ n a m e ] = f u n c t i o n ( ) { v a r   a r g 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 ( ) { f o r ( v a r   i = 0 , l e n g t h = a r g s . l e n g t h ; i < l e n g t h ; i + + ) j Q u e r y ( a r g s [ i ] ) [ o r i g i n a l ] ( t h i s ) ; } ) ; } ; } ) ; j Q u e r y . e a c h ( { r e m o v e A t t r : f u n c t i o n ( n a m e ) { j Q u e r y . a t t r ( t h i s , n a m 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 ( n a m e ) ; } , a d d C l a s s : f u n c t i o n ( c l a s s N a m e s ) { j Q u e r y . c l a s s N a m e . a d d ( t h i s , c l a s s N a m e s ) ; } , r e m o v e C l a s s : f u n c t i o n ( c l a s s N a m e s ) { j Q u e r y . c l a s s N a m e . r e m o v e ( t h i s , c l a s s N a m e s ) ; } , t o g g l e C l a s s : f u n c t i o n ( c l a s s N a m e s ) { j Q u e r y . c l a s s N a m e [ j Q u e r y . c l a s s N a m e . h a s ( t h i s , c l a s s N a m e s ) ? " r e m o v e " : " a d d " ] ( t h i s , c l a s s N a m e s ) ; } , r e m o v e : f u n c t i o n ( s e l e c t o r ) { i f ( ! s e l e c t o r | | j Q u e r y . f i l t e r ( s e l e c t o r , [ t h i s ] ) . r . l e n g t h ) { j Q u e r y ( " * " , t h i s ) . a d d ( t h i s ) . e a c h ( f u n c t i o n ( ) { j Q u e r y . e v e n t . r e m o v e ( t h i s ) ; j Q u e r y . 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 ( ) { j Q u e r y ( " > * " , t h i s ) . 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 ( n a m e , f n ) { j Q u e r y . f n [ n a m e ] = f u n c t i o n ( ) { r e t u r n   t h i s . e a c h ( f n , a r g u m e n t s ) ; } ; } ) ; j Q u e r y . e a c h ( [ " H e i g h t " , " W i d t h " ] , f u n c t i o n ( i , n a m e ) { v a r   t y p e = n a m e . t o L o w e r C a s e ( ) ; j Q u e r y . f n [ t y p e ] = f u n c t i o n ( s i z e ) { r e t u r n   t h i s [ 0 ] = = w i n d o w ? j Q u e r y . b r o w s e r . o p e r a & & d o c u m e n t . b o d y [ " c l i e n t " + n a m e ] | | j Q u e r y . b r o w s e r . s a f a r i & & w i n d o w [ " i n n e r " + n a m e ] | | 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 " + n a m e ] | | d o c u m e n t . b o d y [ " c l i e n t " + n a m e ] : t h i s [ 0 ] = = d o c u m e n t ? M a t h . m a x ( M a t h . m a x ( d o c u m e n t . b o d y [ " s c r o l l " + 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 [ " s c r o l l " + n a m e ] ) , M a t h . m a x ( d o c u m e n t . b o d y [ " o f f s e t " + 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 [ " o f f s e t " + n a m e ] ) ) : s i z e = = u n d e f i n e d ? ( t h i s . l e n g t h ? j Q u e r y . c s s ( t h i s [ 0 ] , t y p e ) : n u l l ) : t h i s . c s s ( t y p e , s i z e . c o n s t r u c t o r = = S t r i n g ? s i z e : s i z e + " p x " ) ; } ; } ) ; v a r   c h a r s = j Q u e r y . b r o w s e r . s a f a r i & & p a r s e I n t ( j Q u e r y . b r o w s e r . v e r s i o n ) < 4 1 7 ? " ( ? : [ \ \ w * _ - ] | \ \ \ \ . ) " : " ( ? : [ \ \ w \ u 0 1 2 8 - \ u F F F F * _ - ] | \ \ \ \ . ) " , q u i c k C h i l d = n e w   R e g E x p ( " ^ > \ \ s * ( " + c h a r s + " + ) " ) , q u i c k I D = n e w   R e g E x p ( " ^ ( " + c h a r s + " + ) ( # ) ( " + c h a r s + " + ) " ) , q u i c k C l a s s = n e w   R e g E x p ( " ^ ( [ # . ] ? ) ( " + c h a r s + " * ) " ) ; j Q u e r y . e x t e n d ( { e x p r : { " " : f u n c t i o n ( a , i , m ) { r e t u r n   m [ 2 ] = = " * " | | j Q u e r y . n o d e N a m e ( a , m [ 2 ] ) ; } , " # " : f u n c t i o n ( a , i , m ) { r e t u r n   a . g e t A t t r i b u t e ( " i d " ) = = m [ 2 ] ; } , " : " : { l t : f u n c t i o n ( a , i , m ) { r e t u r n   i < m [ 3 ] - 0 ; } , g t : f u n c t i o n ( a , i , m ) { r e t u r n   i > m [ 3 ] - 0 ; } , n t h : f u n c t i o n ( a , i , m ) { r e t u r n   m [ 3 ] - 0 = = i ; } , e q : f u n c t i o n ( a , i , m ) { r e t u r n   m [ 3 ] - 0 = = i ; } , f i r s t : f u n c t i o n ( a , i ) { r e t u r n   i = = 0 ; } , l a s t : f u n c t i o n ( a , i , m , r ) { r e t u r n   i = = r . l e n g t h - 1 ; } , e v e n : f u n c t i o n ( a , i ) { r e t u r n   i % 2 = = 0 ; } , o d d : f u n c t i o n ( a , i ) { r e t u r n   i % 2 ; } , " f i r s t - c h i l d " : f u n c t i o n ( a ) { r e t u r n   a . p a r e n t N o d e . g e t E l e m e n t s B y T a g N a m e ( " * " ) [ 0 ] = = a ; } , " l a s t - c h i l d " : f u n c t i o n ( a ) { r e t u r n   j Q u e r y . n t h ( a . p a r e n t N o d e . l a s t C h i l d , 1 , " p r e v i o u s S i b l i n g " ) = = a ; } , " o n l y - c h i l d " : f u n c t i o n ( a ) { r e t u r n ! j Q u e r y . n t h ( a . p a r e n t N o d e . l a s t C h i l d , 2 , " p r e v i o u s S i b l i n g " ) ; } , p a r e n t : f u n c t i o n ( a ) { r e t u r n   a . f i r s t C h i l d ; } , e m p t y : f u n c t i o n ( a ) { r e t u r n ! a . f i r s t C h i l d ; } , c o n t a i n s : f u n c t i o n ( a , i , m ) { r e t u r n ( a . t e x t C o n t e n t | | a . i n n e r T e x t | | j Q u e r y ( a ) . t e x t ( ) | | " " ) . i n d e x O f ( m [ 3 ] ) > = 0 ; } , v i s i b l e : f u n c t i o n ( a ) { r e t u r n " h i d d e n " ! = a . t y p e & & j Q u e r y . c s s ( a , " d i s p l a y " ) ! = " n o n e " & & j Q u e r y . c s s ( a , " v i s i b i l i t y " ) ! = " h i d d e n " ; } , h i d d e n : f u n c t i o n ( a ) { r e t u r n " h i d d e n " = = a . t y p e | | j Q u e r y . c s s ( a , " d i s p l a y " ) = = " n o n e " | | j Q u e r y . c s s ( a , " v i s i b i l i t y " ) = = " h i d d e n " ; } , e n a b l e d : f u n c t i o n ( a ) { r e t u r n ! a . d i s a b l e d ; } , d i s a b l e d : f u n c t i o n ( a ) { r e t u r n   a . d i s a b l e d ; } , c h e c k e d : f u n c t i o n ( a ) { r e t u r n   a . c h e c k e d ; } , s e l e c t e d : f u n c t i o n ( a ) { r e t u r n   a . s e l e c t e d | | j Q u e r y . a t t r ( a , " s e l e c t e d " ) ; } , t e x t : f u n c t i o n ( a ) { r e t u r n " t e x t " = = a . t y p e ; } , r a d i o : f u n c t i o n ( a ) { r e t u r n " r a d i o " = = a . t y p e ; } , c h e c k b o x : f u n c t i o n ( a ) { r e t u r n " c h e c k b o x " = = a . t y p e ; } , f i l e : f u n c t i o n ( a ) { r e t u r n " f i l e " = = a . t y p e ; } , p a s s w o r d : f u n c t i o n ( a ) { r e t u r n " p a s s w o r d " = = a . t y p e ; } , s u b m i t : f u n c t i o n ( a ) { r e t u r n " s u b m i t " = = a . t y p e ; } , i m a g e : f u n c t i o n ( a ) { r e t u r n " i m a g e " = = a . t y p e ; } , r e s e t : f u n c t i o n ( a ) { r e t u r n " r e s e t " = = a . t y p e ; } , b u t t o n : f u n c t i o n ( a ) { r e t u r n " b u t t o n " = = a . t y p e | | j Q u e r y . n o d e N a m e ( a , " b u t t o n " ) ; } , i n p u t : f u n c t i o n ( a ) { 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 ( a . n o d e N a m e ) ; } , h a s : f u n c t i o n ( a , i , m ) { r e t u r n   j Q u e r y . f i n d ( m [ 3 ] , a ) . l e n g t h ; } , h e a d e r : f u n c t i o n ( a ) { r e t u r n / h \ d / i . t e s t ( a . n o d e N a m e ) ; } , a n i m a t e d : f u n c t i o n ( a ) { r e t u r n   j Q u e r y . g r e p ( j Q u e r y . t i m e r s , f u n c t i o n ( f n ) { r e t u r n   a = = f n . e l e m ; } ) . l e n g t h ; } } } , p a r s e : [ / ^ ( \ [ )   * @ ? ( [ \ w - ] + )   * ( [ ! * $ ^ ~ = ] * )   * ( ' ? " ? ) ( . * ? ) \ 4   * \ ] / , / ^ ( : ) ( [ \ w - ] + ) \ ( " ? ' ? ( . * ? ( \ ( . * ? \ ) ) ? [ ^ ( ] * ? ) " ? ' ? \ ) / , n e w   R e g E x p ( " ^ ( [ : . # ] * ) ( " + c h a r s + " + ) " ) ] , m u l t i F i l t e r : f u n c t i o n ( e x p r , e l e m s , n o t ) { v a r   o l d , c u r = [ ] ; w h i l e ( e x p r & & e x p r ! = o l d ) { o l d = e x p r ; v a r   f = j Q u e r y . f i l t e r ( e x p r , e l e m s , n o t ) ; e x p r = f . t . r e p l a c e ( / ^ \ s * , \ s * / , " " ) ; c u r = n o t ? e l e m s = f . r : j Q u e r y . m e r g e ( c u r , f . r ) ; } r e t u r n   c u r ; } , f i n d : f u n c t i o n ( t , c o n t e x t ) { i f ( t y p e o f   t ! = " s t r i n g " ) r e t u r n [ t ] ; i f ( c o n t e x t & & c o n t e x t . n o d e T y p e ! = 1 & & c o n t e x t . n o d e T y p e ! = 9 ) r e t u r n [ ] ; c o n t e x t = c o n t e x t | | d o c u m e n t ; v a r   r e t = [ c o n t e x t ] , d o n e = [ ] , l a s t , n o d e N a m e ; w h i l e ( t & & l a s t ! = t ) { v a r   r = [ ] ; l a s t = t ; t = j Q u e r y . t r i m ( t ) ; v a r   f o u n d T o k e n = f a l s e ; v a r   r e = q u i c k C h i l d ; v a r   m = r e . e x e c ( t ) ; i f ( m ) { n o d e N a m e = m [ 1 ] . t o U p p e r C a s e ( ) ; f o r ( v a r   i = 0 ; r e t [ i ] ; i + + ) f o r ( v a r   c = r e t [ i ] . f i r s t C h i l d ; c ; c = c . n e x t S i b l i n g ) i f ( c . n o d e T y p e = = 1 & & ( n o d e N a m e = = " * " | | c . n o d e N a m e . t o U p p e r C a s e ( ) = = n o d e N a m e ) ) r . p u s h ( c ) ; r e t = r ; t = t . r e p l a c e ( r e , " " ) ; i f ( t . i n d e x O f ( "   " ) = = 0 ) c o n t i n u e ; f o u n d T o k e n = t r u e ; } e l s e { r e = / ^ ( [ > + ~ ] ) \ s * ( \ w * ) / i ; i f ( ( m = r e . e x e c ( t ) ) ! = n u l l ) { r = [ ] ; v a r   m e r g e = { } ; n o d e N a m e = m [ 2 ] . t o U p p e r C a s e ( ) ; m = m [ 1 ] ; f o r ( v a r   j = 0 , r l = r e t . l e n g t h ; j < r l ; j + + ) { v a r   n = m = = " ~ " | | m = = " + " ? r e t [ j ] . n e x t S i b l i n g : r e t [ j ] . f i r s t C h i l d ; f o r ( ; n ; n = n . n e x t S i b l i n g ) i f ( n . n o d e T y p e = = 1 ) { v a r   i d = j Q u e r y . d a t a ( n ) ; i f ( m = = " ~ " & & m e r g e [ i d ] ) b r e a k ; i f ( ! n o d e N a m e | | n . n o d e N a m e . t o U p p e r C a s e ( ) = = n o d e N a m e ) { i f ( m = = " ~ " ) m e r g e [ i d ] = t r u e ; r . p u s h ( n ) ; } i f ( m = = " + " ) b r e a k ; } } r e t = r ; t = j Q u e r y . t r i m ( t . r e p l a c e ( r e , " " ) ) ; f o u n d T o k e n = t r u e ; } } i f ( t & & ! f o u n d T o k e n ) { i f ( ! t . i n d e x O f ( " , " ) ) { i f ( c o n t e x t = = r e t [ 0 ] ) r e t . s h i f t ( ) ; d o n e = j Q u e r y . m e r g e ( d o n e , r e t ) ; r = r e t = [ c o n t e x t ] ; t = "   " + t . s u b s t r ( 1 , t . l e n g t h ) ; } e l s e { v a r   r e 2 = q u i c k I D ; v a r   m = r e 2 . e x e c ( t ) ; i f ( m ) { m = [ 0 , m [ 2 ] , m [ 3 ] , m [ 1 ] ] ; } e l s e { r e 2 = q u i c k C l a s s ; m = r e 2 . e x e c ( t ) ; } m [ 2 ] = m [ 2 ] . r e p l a c e ( / \ \ / g , " " ) ; v a r   e l e m = r e t [ r e t . l e n g t h - 1 ] ; i f ( m [ 1 ] = = " # " & & e l e m & & e l e m . g e t E l e m e n t B y I d & & ! j Q u e r y . i s X M L D o c ( e l e m ) ) { v a r   o i d = e l e m . g e t E l e m e n t B y I d ( m [ 2 ] ) ; i f ( ( j Q u e r y . b r o w s e r . m s i e | | j Q u e r y . b r o w s e r . o p e r a ) & & o i d & & t y p e o f   o i d . i d = = " s t r i n g " & & o i d . i d ! = m [ 2 ] ) o i d = j Q u e r y ( ' [ @ i d = " ' + m [ 2 ] + ' " ] ' , e l e m ) [ 0 ] ; r e t = r = o i d & & ( ! m [ 3 ] | | j Q u e r y . n o d e N a m e ( o i d , m [ 3 ] ) ) ? [ o i d ] : [ ] ; } e l s e { f o r ( v a r   i = 0 ; r e t [ i ] ; i + + ) { v a r   t a g = m [ 1 ] = = " # " & & m [ 3 ] ? m [ 3 ] : m [ 1 ] ! = " " | | m [ 0 ] = = " " ? " * " : m [ 2 ] ; i f ( t a g = = " * " & & r e t [ i ] . n o d e N a m e . t o L o w e r C a s e ( ) = = " o b j e c t " ) t a g = " p a r a m " ; r = j Q u e r y . m e r g e ( r , r e t [ i ] . g e t E l e m e n t s B y T a g N a m e ( t a g ) ) ; } i f ( m [ 1 ] = = " . " ) r = j Q u e r y . c l a s s F i l t e r ( r , m [ 2 ] ) ; i f ( m [ 1 ] = = " # " ) { v a r   t m p = [ ] ; f o r ( v a r   i = 0 ; r [ i ] ; i + + ) i f ( r [ i ] . g e t A t t r i b u t e ( " i d " ) = = m [ 2 ] ) { t m p = [ r [ i ] ] ; b r e a k ; } r = t m p ; } r e t = r ; } t = t . r e p l a c e ( r e 2 , " " ) ; } } i f ( t ) { v a r   v a l = j Q u e r y . f i l t e r ( t , r ) ; r e t = r = v a l . r ; t = j Q u e r y . t r i m ( v a l . t ) ; } } i f ( t ) r e t = [ ] ; i f ( r e t & & c o n t e x t = = r e t [ 0 ] ) r e t . s h i f t ( ) ; d o n e = j Q u e r y . m e r g e ( d o n e , r e t ) ; r e t u r n   d o n e ; } , c l a s s F i l t e r : f u n c t i o n ( r , m , n o t ) { m = "   " + m + "   " ; v a r   t m p = [ ] ; f o r ( v a r   i = 0 ; r [ i ] ; i + + ) { v a r   p a s s = ( "   " + r [ i ] . c l a s s N a m e + "   " ) . i n d e x O f ( m ) > = 0 ; i f ( ! n o t & & p a s s | | n o t & & ! p a s s ) t m p . p u s h ( r [ i ] ) ; } r e t u r n   t m p ; } , f i l t e r : f u n c t i o n ( t , r , n o t ) { v a r   l a s t ; w h i l e ( t & & t ! = l a s t ) { l a s t = t ; v a r   p = j Q u e r y . p a r s e , m ; f o r ( v a r   i = 0 ; p [ i ] ; i + + ) { m = p [ i ] . e x e c ( t ) ; i f ( m ) { t = t . s u b s t r i n g ( m [ 0 ] . l e n g t h ) ; m [ 2 ] = m [ 2 ] . r e p l a c e ( / \ \ / g , " " ) ; b r e a k ; } } i f ( ! m ) b r e a k ; i f ( m [ 1 ] = = " : " & & m [ 2 ] = = " n o t " ) r = i s S i m p l e . t e s t ( m [ 3 ] ) ? j Q u e r y . f i l t e r ( m [ 3 ] , r , t r u e ) . r : j Q u e r y ( r ) . n o t ( m [ 3 ] ) ; e l s e   i f ( m [ 1 ] = = " . " ) r = j Q u e r y . c l a s s F i l t e r ( r , m [ 2 ] , n o t ) ; e l s e   i f ( m [ 1 ] = = " [ " ) { v a r   t m p = [ ] , t y p e = m [ 3 ] ; f o r ( v a r   i = 0 , r l = r . l e n g t h ; i < r l ; i + + ) { v a r   a = r [ i ] , z = a [ j Q u e r y . p r o p s [ m [ 2 ] ] | | m [ 2 ] ] ; i f ( z = = n u l l | | / h r e f | s r c | s e l e c t e d / . t e s t ( m [ 2 ] ) ) z = j Q u e r y . a t t r ( a , m [ 2 ] ) | | ' ' ; i f ( ( t y p e = = " " & & ! ! z | | t y p e = = " = " & & z = = m [ 5 ] | | t y p e = = " ! = " & & z ! = m [ 5 ] | | t y p e = = " ^ = " & & z & & ! z . i n d e x O f ( m [ 5 ] ) | | t y p e = = " $ = " & & z . s u b s t r ( z . l e n g t h - m [ 5 ] . l e n g t h ) = = m [ 5 ] | | ( t y p e = = " * = " | | t y p e = = " ~ = " ) & & z . i n d e x O f ( m [ 5 ] ) > = 0 ) ^ n o t ) t m p . p u s h ( a ) ; } r = t m p ; } e l s e   i f ( m [ 1 ] = = " : " & & m [ 2 ] = = " n t h - c h i l d " ) { v a r   m e r g e = { } , t m p = [ ] , t e s t = / ( - ? ) ( \ d * ) n ( ( ? : \ + | - ) ? \ d * ) / . e x e c ( m [ 3 ] = = " e v e n " & & " 2 n " | | m [ 3 ] = = " o d d " & & " 2 n + 1 " | | ! / \ D / . t e s t ( m [ 3 ] ) & & " 0 n + " + m [ 3 ] | | m [ 3 ] ) , f i r s t = ( t e s t [ 1 ] + ( t e s t [ 2 ] | | 1 ) ) - 0 , l a s t = t e s t [ 3 ] - 0 ; f o r ( v a r   i = 0 , r l = r . l e n g t h ; i < r l ; i + + ) { v a r   n o d e = r [ i ] , p a r e n t N o d e = n o d e . p a r e n t N o d e , i d = j Q u e r y . d a t a ( p a r e n t N o d e ) ; i f ( ! m e r g e [ i d ] ) { v a r   c = 1 ; f o r ( v a r   n = p a r e n t N o d e . f i r s t C h i l d ; n ; n = n . n e x t S i b l i n g ) i f ( n . n o d e T y p e = = 1 ) n . n o d e I n d e x = c + + ; m e r g e [ i d ] = t r u e ; } v a r   a d d = f a l s e ; i f ( f i r s t = = 0 ) { i f ( n o d e . n o d e I n d e x = = l a s t ) a d d = t r u e ; } e l s e   i f ( ( n o d e . n o d e I n d e x - l a s t ) % f i r s t = = 0 & & ( n o d e . n o d e I n d e x - l a s t ) / f i r s t > = 0 ) a d d = t r u e ; i f ( a d d ^ n o t ) t m p . p u s h ( n o d e ) ; } r = t m p ; } e l s e { v a r   f n = j Q u e r y . e x p r [ m [ 1 ] ] ; i f ( t y p e o f   f n = = " o b j e c t " ) f n = f n [ m [ 2 ] ] ; i f ( t y p e o f   f n = = " s t r i n g " ) f n = e v a l ( " f a l s e | | f u n c t i o n ( a , i ) { r e t u r n   " + f n + " ; } " ) ; r = j Q u e r y . g r e p ( r , f u n c t i o n ( e l e m , i ) { r e t u r n   f n ( e l e m , i , m , r ) ; } , n o t ) ; } } r e t u r n { r : r , t : t } ; } , d i r : f u n c t i o n ( e l e m , d i r ) { v a r   m a t c h e d = [ ] ; v a r   c u r = e l e m [ d i r ] ; w h i l e ( c u r & & c u r ! = d o c u m e n t ) { i f ( c u r . n o d e T y p e = = 1 ) m a t c h e d . p u s h ( c u r ) ; c u r = c u r [ d i r ] ; } r e t u r n   m a t c h e d ; } , n t h : f u n c t i o n ( c u r , r e s u l t , d i r , e l e m ) { r e s u l t = r e s u l t | | 1 ; v a r   n u m = 0 ; f o r ( ; c u r ; c u r = c u r [ d i r ] ) i f ( c u r . n o d e T y p e = = 1 & & + + n u m = = r e s u l t ) b r e a k ; r e t u r n   c u r ; } , s i b l i n g : f u n c t i o n ( n , e l e m ) { v a r   r = [ ] ; f o r ( ; n ; n = n . n e x t S i b l i n g ) { i f ( n . n o d e T y p e = = 1 & & ( ! e l e m | | n ! = e l e m ) ) r . p u s h ( n ) ; } r e t u r n   r ; } } ) ; j Q u e r y . e v e n t = { a d d : f u n c t i o n ( e l e m , t y p e s , h a n d l e r , d a t a ) { i f ( e l e m . n o d e T y p e = = 3 | | e l e m . n o d e T y p e = = 8 ) r e t u r n ; i f ( j Q u e r y . b r o w s e r . m s i e & & e l e m . s e t I n t e r v a l ! = u n d e f i n e d ) e l e m = w i n d o w ; i f ( ! h a n d l e r . g u i d ) h a n d l e r . g u i d = t h i s . g u i d + + ; i f ( d a t a ! = u n d e f i n e d ) { v a r   f n = h a n d l e r ; h a n d l e r = f u n c t i o n ( ) { r e t u r n   f n . a p p l y ( t h i s , a r g u m e n t s ) ; } ; h a n d l e r . d a t a = d a t a ; h a n d l e r . g u i d = f n . g u i d ; } v a r   e v e n t s = j Q u e r y . d a t a ( e l e m , " e v e n t s " ) | | j Q u e r y . d a t a ( e l e m , " e v e n t s " , { } ) , h a n d l e = j Q u e r y . d a t a ( e l e m , " h a n d l e " ) | | j Q u e r y . d a t a ( e l e m , " h a n d l e " , f u n c t i o n ( ) { v a r   v a l ; i f ( t y p e o f   j Q u e r y = = " u n d e f i n e d " | | j Q u e r y . e v e n t . t r i g g e r e d ) r e t u r n   v a l ; v a l = j Q u e r y . 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 ) ; r e t u r n   v a l ; } ) ; h a n d l e . e l e m = e l e m ; j Q u e r y . e a c h ( t y p e s . s p l i t ( / \ s + / ) , f u n c t i o n ( i n d e x , t y p e ) { v a r   p a r t s = t y p e . s p l i t ( " . " ) ; t y p e = p a r t s [ 0 ] ; h a n d l e r . t y p e = p a r t s [ 1 ] ; v a r   h a n d l e r s = e v e n t s [ t y p e ] ; i f ( ! h a n d l e r s ) { h a n d l e r s = e v e n t s [ t y p e ] = { } ; i f ( ! j Q u e r y . e v e n t . s p e c i a l [ t y p e ] | | j Q u e r y . e v e n t . s p e c i a l [ t y p e ] . s e t u p . c a l l ( e l e m ) = = = f a l s e ) { i f ( e l e m . a d d E v e n t L i s t e n e r ) e l e m . a d d E v e n t L i s t e n e r ( t y p e , h a n d l e , f a l s e ) ; e l s e   i f ( e l e m . a t t a c h E v e n t ) e l e m . a t t a c h E v e n t ( " o n " + t y p e , h a n d l e ) ; } } h a n d l e r s [ h a n d l e r . g u i d ] = h a n d l e r ; j Q u e r y . e v e n t . g l o b a l [ t y p e ] = t r u e ; } ) ; e l e m = 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 ( e l e m , t y p e s , h a n d l e r ) { i f ( e l e m . n o d e T y p e = = 3 | | e l e m . n o d e T y p e = = 8 ) r e t u r n ; v a r   e v e n t s = j Q u e r y . d a t a ( e l e m , " e v e n t s " ) , r e t , i n d e x ; i f ( e v e n t s ) { i f ( t y p e s = = u n d e f i n e d | | ( t y p e o f   t y p e s = = " s t r i n g " & & t y p e s . c h a r A t ( 0 ) = = " . " ) ) f o r ( v a r   t y p e   i n   e v e n t s ) t h i s . r e m o v e ( e l e m , t y p e + ( t y p e s | | " " ) ) ; e l s e { i f ( t y p e s . t y p e ) { h a n d l e r = t y p e s . h a n d l e r ; t y p e s = t y p e s . t y p e ; } j Q u e r y . e a c h ( t y p e s . s p l i t ( / \ s + / ) , f u n c t i o n ( i n d e x , t y p e ) { v a r   p a r t s = t y p e . s p l i t ( " . " ) ; t y p e = p a r t s [ 0 ] ; i f ( e v e n t s [ t y p e ] ) { i f ( h a n d l e r ) d e l e t e   e v e n t s [ t y p e ] [ h a n d l e r . g u i d ] ; e l s e 
 f o r ( h a n d l e r   i n   e v e n t s [ t y p e ] ) i f ( ! p a r t s [ 1 ] | | e v e n t s [ t y p e ] [ h a n d l e r ] . t y p e = = p a r t s [ 1 ] ) d e l e t e   e v e n t s [ t y p e ] [ h a n d l e r ] ; f o r ( r e t   i n   e v e n t s [ t y p e ] ) b r e a k ; i f ( ! r e t ) { i f ( ! j Q u e r y . e v e n t . s p e c i a l [ t y p e ] | | j Q u e r y . e v e n t . s p e c i a l [ t y p e ] . t e a r d o w n . c a l l ( e l e m ) = = = f a l s e ) { i f ( e l e m . r e m o v e E v e n t L i s t e n e r ) e l e m . r e m o v e E v e n t L i s t e n e r ( t y p e , j Q u e r y . d a t a ( e l e m , " h a n d l e " ) , f a l s e ) ; e l s e   i f ( e l e m . d e t a c h E v e n t ) e l e m . d e t a c h E v e n t ( " o n " + t y p e , j Q u e r y . d a t a ( e l e m , " h a n d l e " ) ) ; } r e t = n u l l ; d e l e t e   e v e n t s [ t y p e ] ; } } } ) ; } f o r ( r e t   i n   e v e n t s ) b r e a k ; i f ( ! r e t ) { v a r   h a n d l e = j Q u e r y . d a t a ( e l e m , " h a n d l e " ) ; i f ( h a n d l e ) h a n d l e . e l e m = n u l l ; j Q u e r y . r e m o v e D a t a ( e l e m , " e v e n t s " ) ; j Q u e r y . r e m o v e D a t a ( e l e m , " h a n d l e " ) ; } } } , t r i g g e r : f u n c t i o n ( t y p e , d a t a , e l e m , d o n a t i v e , e x t r a ) { d a t a = j Q u e r y . m a k e A r r a y ( d a t a | | [ ] ) ; i f ( t y p e . i n d e x O f ( " ! " ) > = 0 ) { t y p e = t y p e . s l i c e ( 0 , - 1 ) ; v a r   e x c l u s i v e = t r u e ; } i f ( ! e l e m ) { i f ( t h i s . g l o b a l [ t y p e ] ) j Q u e r y ( " * " ) . a d d ( [ w i n d o w , d o c u m e n t ] ) . t r i g g e r ( t y p e , d a t a ) ; } e l s e { i f ( e l e m . n o d e T y p e = = 3 | | e l e m . n o d e T y p e = = 8 ) r e t u r n   u n d e f i n e d ; v a r   v a l , r e t , f n = j Q u e r y . i s F u n c t i o n ( e l e m [ t y p e ] | | n u l l ) , e v e n t = ! d a t a [ 0 ] | | ! d a t a [ 0 ] . p r e v e n t D e f a u l t ; i f ( e v e n t ) d a t a . u n s h i f t ( t h i s . f i x ( { t y p e : t y p e , t a r g e t : e l e m } ) ) ; d a t a [ 0 ] . t y p e = t y p e ; i f ( e x c l u s i v e ) d a t a [ 0 ] . e x c l u s i v e = t r u e ; i f ( j Q u e r y . i s F u n c t i o n ( j Q u e r y . d a t a ( e l e m , " h a n d l e " ) ) ) v a l = j Q u e r y . d a t a ( e l e m , " h a n d l e " ) . a p p l y ( e l e m , d a t a ) ; i f ( ! f n & & e l e m [ " o n " + t y p e ] & & e l e m [ " o n " + t y p e ] . a p p l y ( e l e m , d a t a ) = = = f a l s e ) v a l = f a l s e ; i f ( e v e n t ) d a t a . s h i f t ( ) ; i f ( e x t r a & & j Q u e r y . i s F u n c t i o n ( e x t r a ) ) { r e t = e x t r a . a p p l y ( e l e m , v a l = = n u l l ? d a t a : d a t a . c o n c a t ( v a l ) ) ; i f ( r e t ! = = u n d e f i n e d ) v a l = r e t ; } i f ( f n & & d o n a t i v e ! = = f a l s e & & v a l ! = = f a l s e & & ! ( j Q u e r y . n o d e N a m e ( e l e m , ' a ' ) & & t y p e = = " 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 { e l e m [ t y p e ] ( ) ; } c a t c h ( e ) { } } t h i s . t r i g g e r e d = f a l s e ; } r e t u r n   v a l ; } , h a n d l e : f u n c t i o n ( e v e n t ) { v a r   v a l ; e v e n t = j Q u e r y . e v e n t . f i x ( e v e n t | | w i n d o w . e v e n t | | { } ) ; v a r   p a r t s = e v e n t . t y p e . s p l i t ( " . " ) ; e v e n t . t y p e = p a r t s [ 0 ] ; v a r   h a n d l e r s = j Q u e r y . d a t a ( t h i s , " e v e n t s " ) & & j Q u e r y . d a t a ( t h i s , " e v e n t s " ) [ e v e n t . t y p e ] , a r g s = 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 , 1 ) ; a r g s . u n s h i f t ( e v e n t ) ; f o r ( v a r   j   i n   h a n d l e r s ) { v a r   h a n d l e r = h a n d l e r s [ j ] ; a r g s [ 0 ] . h a n d l e r = h a n d l e r ; a r g s [ 0 ] . d a t a = h a n d l e r . d a t a ; i f ( ! p a r t s [ 1 ] & & ! e v e n t . e x c l u s i v e | | h a n d l e r . t y p e = = p a r t s [ 1 ] ) { v a r   r e t = h a n d l e r . a p p l y ( t h i s , a r g s ) ; i f ( v a l ! = = f a l s e ) v a l = r e t ; i f ( r e t = = = f a l s e ) { e v e n t . p r e v e n t D e f a u l t ( ) ; e v e n t . s t o p P r o p a g a t i o n ( ) ; } } } i f ( j Q u e r y . b r o w s e r . m s i e ) e v e n t . t a r g e t = e v e n t . p r e v e n t D e f a u l t = e v e n t . s t o p P r o p a g a t i o n = e v e n t . h a n d l e r = e v e n t . d a t a = n u l l ; r e t u r n   v a l ; } , f i x : f u n c t i o n ( e v e n t ) { v a r   o r i g i n a l E v e n t = e v e n t ; e v e n t = j Q u e r y . e x t e n d ( { } , o r i g i n a l E v e n t ) ; e v e n t . p r e v e n t D e f a u l t = f u n c t i o n ( ) { i f ( o r i g i n a l E v e n t . p r e v e n t D e f a u l t ) o r i g i n a l E v e n t . p r e v e n t D e f a u l t ( ) ; o r i g i n a l E v e n t . r e t u r n V a l u e = f a l s e ; } ; e v e n t . s t o p P r o p a g a t i o n = f u n c t i o n ( ) { i f ( o r i g i n a l E v e n t . s t o p P r o p a g a t i o n ) o r i g i n a l E v e n t . s t o p P r o p a g a t i o n ( ) ; o r i g i n a l E v e n t . c a n c e l B u b b l e = t r u e ; } ; i f ( ! e v e n t . t a r g e t ) e v e n t . t a r g e t = e v e n t . s r c E l e m e n t | | d o c u m e n t ; i f ( e v e n t . t a r g e t . n o d e T y p e = = 3 ) e v e n t . t a r g e t = o r i g i n a l E v e n t . t a r g e t . p a r e n t N o d e ; i f ( ! e v e n t . r e l a t e d T a r g e t & & e v e n t . f r o m E l e m e n t ) e v e n t . r e l a t e d T a r g e t = e v e n t . f r o m E l e m e n t = = e v e n t . t a r g e t ? e v e n t . t o E l e m e n t : e v e n t . f r o m E l e m e n t ; i f ( e v e n t . p a g e X = = n u l l & & e v e n t . c l i e n t X ! = n u l l ) { v a r   d o c = d o c u m e n t . d o c u m e n t E l e m e n t , b o d y = d o c u m e n t . b o d y ; e v e n t . p a g e X = e v e n t . c l i e n t X + ( d o c & & d o c . s c r o l l L e f t | | b o d y & & b o d y . s c r o l l L e f t | | 0 ) - ( d o c . c l i e n t L e f t | | 0 ) ; e v e n t . p a g e Y = e v e n t . c l i e n t Y + ( d o c & & d o c . s c r o l l T o p | | b o d y & & b o d y . s c r o l l T o p | | 0 ) - ( d o c . c l i e n t T o p | | 0 ) ; } i f ( ! e v e n t . w h i c h & & ( ( e v e n t . c h a r C o d e | | e v e n t . c h a r C o d e = = = 0 ) ? e v e n t . c h a r C o d e : e v e n t . k e y C o d e ) ) e v e n t . w h i c h = e v e n t . c h a r C o d e | | e v e n t . k e y C o d e ; i f ( ! e v e n t . m e t a K e y & & e v e n t . c t r l K e y ) e v e n t . m e t a K e y = e v e n t . c t r l K e y ; i f ( ! e v e n t . w h i c h & & e v e n t . b u t t o n ) e v e n t . w h i c h = ( e v e n t . b u t t o n & 1 ? 1 : ( e v e n t . b u t t o n & 2 ? 3 : ( e v e n t . b u t t o n & 4 ? 2 : 0 ) ) ) ; r e t u r n   e v e n t ; } , s p e c i a l : { r e a d y : { s e t u p : f u n c t i o n ( ) { b i n d R e a d y ( ) ; r e t u r n ; } , t e a r d o w n : f u n c t i o n ( ) { r e t u r n ; } } , m o u s e e n t e r : { s e t u p : f u n c t i o n ( ) { i f ( j Q u e r y . b r o w s e r . m s i e ) r e t u r n   f a l s e ; j Q u e r y ( t h i s ) . b i n d ( " m o u s e o v e r " , j Q u e r y . e v e n t . s p e c i a l . m o u s e e n t e r . h a n d l e r ) ; r e t u r n   t r u e ; } , t e a r d o w n : f u n c t i o n ( ) { i f ( j Q u e r y . b r o w s e r . m s i e ) r e t u r n   f a l s e ; j Q u e r y ( t h i s ) . u n b i n d ( " m o u s e o v e r " , j Q u e r y . e v e n t . s p e c i a l . m o u s e e n t e r . h a n d l e r ) ; r e t u r n   t r u e ; } , h a n d l e r : f u n c t i o n ( e v e n t ) { i f ( w i t h i n E l e m e n t ( e v e n t , t h i s ) ) r e t u r n   t r u e ; a r g u m e n t s [ 0 ] . t y p e = " m o u s e e n t e r " ; r e t u r n   j Q u e r y . 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 ) ; } } , m o u s e l e a v e : { s e t u p : f u n c t i o n ( ) { i f ( j Q u e r y . b r o w s e r . m s i e ) r e t u r n   f a l s e ; j Q u e r y ( t h i s ) . b i n d ( " m o u s e o u t " , j Q u e r y . e v e n t . s p e c i a l . m o u s e l e a v e . h a n d l e r ) ; r e t u r n   t r u e ; } , t e a r d o w n : f u n c t i o n ( ) { i f ( j Q u e r y . b r o w s e r . m s i e ) r e t u r n   f a l s e ; j Q u e r y ( t h i s ) . u n b i n d ( " m o u s e o u t " , j Q u e r y . e v e n t . s p e c i a l . m o u s e l e a v e . h a n d l e r ) ; r e t u r n   t r u e ; } , h a n d l e r : f u n c t i o n ( e v e n t ) { i f ( w i t h i n E l e m e n t ( e v e n t , t h i s ) ) r e t u r n   t r u e ; a r g u m e n t s [ 0 ] . t y p e = " m o u s e l e a v e " ; r e t u r n   j Q u e r y . 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 ) ; } } } } ; j Q u e r y . f n . e x t e n d ( { b i n d : f u n c t i o n ( t y p e , d a t a , f n ) { r e t u r n   t y p e = = " u n l o a d " ? t h i s . o n e ( t y p e , d a t a , f n ) : t h i s . e a c h ( f u n c t i o n ( ) { j Q u e r y . e v e n t . a d d ( t h i s , t y p e , f n | | d a t a , f n & & d a t a ) ; } ) ; } , o n e : f u n c t i o n ( t y p e , d a t a , f n ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { j Q u e r y . e v e n t . a d d ( t h i s , t y p e , f u n c t i o n ( e v e n t ) { j Q u e r y ( t h i s ) . u n b i n d ( e v e n t ) ; r e t u r n ( f n | | d a t a ) . a p p l y ( t h i s , a r g u m e n t s ) ; } , f n & & d a t a ) ; } ) ; } , u n b i n d : f u n c t i o n ( t y p e , f n ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { j Q u e r y . e v e n t . r e m o v e ( t h i s , t y p e , f n ) ; } ) ; } , t r i g g e r : f u n c t i o n ( t y p e , d a t a , f n ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { j Q u e r y . e v e n t . t r i g g e r ( t y p e , d a t a , t h i s , t r u e , f n ) ; } ) ; } , t r i g g e r H a n d l e r : f u n c t i o n ( t y p e , d a t a , f n ) { i f ( t h i s [ 0 ] ) r e t u r n   j Q u e r y . e v e n t . t r i g g e r ( t y p e , d a t a , t h i s [ 0 ] , f a l s e , f n ) ; r e t u r n   u n d e f i n e d ; } , t o g g l e : f u n c t i o n ( ) { v a r   a r g s = a r g u m e n t s ; r e t u r n   t h i s . c l i c k ( f u n c t i o n ( e v e n t ) { t h i s . l a s t T o g g l e = 0 = = t h i s . l a s t T o g g l e ? 1 : 0 ; e v e n t . p r e v e n t D e f a u l t ( ) ; r e t u r n   a r g s [ 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 ( f n O v e r , f n O u t ) { r e t u r n   t h i s . b i n d ( ' m o u s e e n t e r ' , f n O v e r ) . b i n d ( ' m o u s e l e a v e ' , f n O u t ) ; } , r e a d y : f u n c t i o n ( f n ) { b i n d R e a d y ( ) ; i f ( j Q u e r y . i s R e a d y ) f n . c a l l ( d o c u m e n t , j Q u e r y ) ; e l s e 
 j Q u e r y . r e a d y L i s t . p u s h ( f u n c t i o n ( ) { r e t u r n   f n . c a l l ( t h i s , j Q u e r y ) ; } ) ; r e t u r n   t h i s ; } } ) ; j Q u e r y . 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 ( ! j Q u e r y . i s R e a d y ) { j Q u e r y . i s R e a d y = t r u e ; i f ( j Q u e r y . r e a d y L i s t ) { j Q u e r y . e a c h ( j Q u e r y . r e a d y L i s t , f u n c t i o n ( ) { t h i s . a p p l y ( d o c u m e n t ) ; } ) ; j Q u e r y . r e a d y L i s t = n u l l ; } j Q u e r y ( 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   r e a d y B o u n d = f a l s e ; f u n c t i o n   b i n d R e a d y ( ) { i f ( r e a d y B o u n d ) r e t u r n ; r e a d y B o u n d = 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 & & ! j Q u e r y . b r o w s e r . o p e r a ) 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 " , j Q u e r y . r e a d y , f a l s e ) ; i f ( j Q u e r y . b r o w s e r . m s i e & & w i n d o w = = t o p ) ( f u n c t i o n ( ) { i f ( j Q u e r y . 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 r r o r ) { 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 ; } j Q u e r y . r e a d y ( ) ; } ) ( ) ; i f ( j Q u e r y . b r o w s e r . o p e r a ) 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 ( ) { i f ( j Q u e r y . i s R e a d y ) r e t u r n ; f o r ( v a r   i = 0 ; i < d o c u m e n t . s t y l e S h e e t s . l e n g t h ; i + + ) i f ( d o c u m e n t . s t y l e S h e e t s [ i ] . d i s a b l e d ) { 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 ; } j Q u e r y . r e a d y ( ) ; } , f a l s e ) ; i f ( j Q u e r y . b r o w s e r . s a f a r i ) { v a r   n u m S t y l e s ; ( f u n c t i o n ( ) { i f ( j Q u e r y . i s R e a d y ) r e t u r n ; i f ( d o c u m e n t . r e a d y S t a t e ! = " l o a d e d " & & 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 " ) { 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 ; } i f ( n u m S t y l e s = = = u n d e f i n e d ) n u m S t y l e s = j Q u e r y ( " s t y l e ,   l i n k [ r e l = s t y l e s h e e t ] " ) . l e n g t h ; i f ( d o c u m e n t . s t y l e S h e e t s . l e n g t h ! = n u m S t y l e s ) { 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 ; } j Q u e r y . r e a d y ( ) ; } ) ( ) ; } j Q u e r y . e v e n t . a d d ( w i n d o w , " l o a d " , j Q u e r y . r e a d y ) ; } j Q u e r y . 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 , 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 ( i , n a m e ) { j Q u e r y . f n [ n a m e ] = f u n c t i o n ( f n ) { r e t u r n   f n ? t h i s . b i n d ( n a m e , f n ) : t h i s . t r i g g e r ( n a m e ) ; } ; } ) ; v a r   w i t h i n E l e m e n t = f u n c t i o n ( e v e n t , e l e m ) { v a r   p a r e n t = e v e n t . r e l a t e d T a r g e t ; w h i l e ( p a r e n t & & p a r e n t ! = e l e m ) t r y { p a r e n t = p a r e n t . p a r e n t N o d e ; } c a t c h ( e r r o r ) { p a r e n t = e l e m ; } r e t u r n   p a r e n t = = e l e m ; } ; j Q u e r y ( w i n d o w ) . b i n d ( " u n l o a d " , f u n c t i o n ( ) { j Q u e r y ( " * " ) . a d d ( d o c u m e n t ) . u n b i n d ( ) ; } ) ; j Q u e r y . f n . e x t e n d ( { l o a d : f u n c t i o n ( u r l , p a r a m s , c a l l b a c k ) { i f ( j Q u e r y . i s F u n c t i o n ( u r l ) ) r e t u r n   t h i s . b i n d ( " l o a d " , u r l ) ; v a r   o f f = u r l . i n d e x O f ( "   " ) ; i f ( o f f > = 0 ) { v a r   s e l e c t o r = u r l . s l i c e ( o f f , u r l . l e n g t h ) ; u r l = u r l . s l i c e ( 0 , o f f ) ; } c a l l b a c k = c a l l b a c k | | f u n c t i o n ( ) { } ; v a r   t y p e = " G E T " ; i f ( p a r a m s ) i f ( j Q u e r y . i s F u n c t i o n ( p a r a m s ) ) { c a l l b a c k = p a r a m s ; p a r a m s = n u l l ; } e l s e { p a r a m s = j Q u e r y . p a r a m ( p a r a m s ) ; t y p e = " P O S T " ; } v a r   s e l f = t h i s ; j Q u e r y . a j a x ( { u r l : u r l , t y p e : t y p e , d a t a T y p e : " h t m l " , d a t a : p a r a m s , c o m p l e t e : f u n c t i o n ( r e s , s t a t u s ) { i f ( s t a t u s = = " s u c c e s s " | | s t a t u s = = " n o t m o d i f i e d " ) s e l f . h t m l ( s e l e c t o r ? j Q u e r y ( " < d i v / > " ) . a p p e n d ( r e s . 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 ( s e l e c t o r ) : r e s . r e s p o n s e T e x t ) ; s e l f . e a c h ( c a l l b a c k , [ r e s . r e s p o n s e T e x t , s t a t u s , r e s ] ) ; } } ) ; 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   j Q u e r y . 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   j Q u e r y . n o d e N a m e ( t h i s , " f o r m " ) ? j Q u e r y . 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 / i . t e s t ( t h i s . t y p e ) ) ; } ) . m a p ( f u n c t i o n ( i , e l e m ) { v a r   v a l = j Q u e r y ( t h i s ) . v a l ( ) ; r e t u r n   v a l = = n u l l ? n u l l : v a l . c o n s t r u c t o r = = A r r a y ? j Q u e r y . m a p ( v a l , f u n c t i o n ( v a l , i ) { r e t u r n { n a m e : e l e m . n a m e , v a l u e : v a l } ; } ) : { n a m e : e l e m . n a m e , v a l u e : v a l } ; } ) . g e t ( ) ; } } ) ; j Q u e r y . 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 ( i , o ) { j Q u e r y . f n [ o ] = f u n c t i o n ( f ) { r e t u r n   t h i s . b i n d ( o , f ) ; } ; } ) ; v a r   j s c = ( n e w   D a t e ) . g e t T i m e ( ) ; j Q u e r y . e x t e n d ( { g e t : f u n c t i o n ( u r l , d a t a , c a l l b a c k , t y p e ) { i f ( j Q u e r y . i s F u n c t i o n ( d a t a ) ) { c a l l b a c k = d a t a ; d a t a = n u l l ; } r e t u r n   j Q u e r y . a j a x ( { t y p e : " G E T " , u r l : u r l , d a t a : d a t a , s u c c e s s : c a l l b a c k , d a t a T y p e : t y p e } ) ; } , g e t S c r i p t : f u n c t i o n ( u r l , c a l l b a c k ) { r e t u r n   j Q u e r y . g e t ( u r l , n u l l , c a l l b a c k , " s c r i p t " ) ; } , g e t J S O N : f u n c t i o n ( u r l , d a t a , c a l l b a c k ) { r e t u r n   j Q u e r y . g e t ( u r l , d a t a , c a l l b a c k , " j s o n " ) ; } , p o s t : f u n c t i o n ( u r l , d a t a , c a l l b a c k , t y p e ) { i f ( j Q u e r y . i s F u n c t i o n ( d a t a ) ) { c a l l b a c k = d a t a ; d a t a = { } ; } r e t u r n   j Q u e r y . a j a x ( { t y p e : " P O S T " , u r l : u r l , d a t a : d a t a , s u c c e s s : c a l l b a c k , d a t a T y p e : t y p e } ) ; } , a j a x S e t u p : f u n c t i o n ( s e t t i n g s ) { j Q u e r y . e x t e n d ( j Q u e r y . a j a x S e t t i n g s , s e t t i n g s ) ; } , a j a x S e t t i n g s : { g l o b a l : t r u e , t y p e : " G E T " , t i m e o u t : 0 , 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 , d a t a : n u l l , u s e r n a m e : n u l l , p a s s w o r d : n u l l , 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 ( s ) { v a r   j s o n p , j s r e = / = \ ? ( & | $ ) / g , s t a t u s , d a t a ; s = j Q u e r y . e x t e n d ( t r u e , s , j Q u e r y . e x t e n d ( t r u e , { } , j Q u e r y . a j a x S e t t i n g s , s ) ) ; i f ( s . d a t a & & s . p r o c e s s D a t a & & t y p e o f   s . d a t a ! = " s t r i n g " ) s . d a t a = j Q u e r y . p a r a m ( s . d a t a ) ; i f ( s . d a t a T y p e = = " j s o n p " ) { i f ( s . t y p e . t o L o w e r C a s e ( ) = = " g e t " ) { i f ( ! s . u r l . m a t c h ( j s r e ) ) s . u r l + = ( s . u r l . m a t c h ( / \ ? / ) ? " & " : " ? " ) + ( s . j s o n p | | " c a l l b a c k " ) + " = ? " ; } e l s e   i f ( ! s . d a t a | | ! s . d a t a . m a t c h ( j s r e ) ) s . d a t a = ( s . d a t a ? s . d a t a + " & " : " " ) + ( s . j s o n p | | " c a l l b a c k " ) + " = ? " ; s . d a t a T y p e = " j s o n " ; } i f ( s . d a t a T y p e = = " j s o n " & & ( s . d a t a & & s . d a t a . m a t c h ( j s r e ) | | s . u r l . m a t c h ( j s r e ) ) ) { j s o n p = " j s o n p " + j s c + + ; i f ( s . d a t a ) s . d a t a = ( s . d a t a + " " ) . r e p l a c e ( j s r e , " = " + j s o n p + " $ 1 " ) ; s . u r l = s . u r l . r e p l a c e ( j s r e , " = " + j s o n p + " $ 1 " ) ; s . d a t a T y p e = " s c r i p t " ; w i n d o w [ j s o n p ] = f u n c t i o n ( t m p ) { d a t a = t m p ; s u c c e s s ( ) ; c o m p l e t e ( ) ; w i n d o w [ j s o n p ] = u n d e f i n e d ; t r y { d e l e t e   w i n d o w [ j s o n p ] ; } c a t c h ( e ) { } i f ( h e a d ) h e a d . r e m o v e C h i l d ( s c r i p t ) ; } ; } i f ( s . d a t a T y p e = = " s c r i p t " & & s . c a c h e = = n u l l ) s . c a c h e = f a l s e ; i f ( s . c a c h e = = = f a l s e & & s . t y p e . t o L o w e r C a s e ( ) = = " g e t " ) { v a r   t s = ( n e w   D a t e ( ) ) . g e t T i m e ( ) ; v a r   r e t = s . u r l . r e p l a c e ( / ( \ ? | & ) _ = . * ? ( & | $ ) / , " $ 1 _ = " + t s + " $ 2 " ) ; s . u r l = r e t + ( ( r e t = = s . u r l ) ? ( s . u r l . m a t c h ( / \ ? / ) ? " & " : " ? " ) + " _ = " + t s : " " ) ; } i f ( s . d a t a & & s . t y p e . t o L o w e r C a s e ( ) = = " g e t " ) { s . u r l + = ( s . u r l . m a t c h ( / \ ? / ) ? " & " : " ? " ) + s . d a t a ; s . d a t a = n u l l ; } i f ( s . g l o b a l & & ! j Q u e r y . a c t i v e + + ) j Q u e r y . e v e n t . t r i g g e r ( " a j a x S t a r t " ) ; i f ( ( ! s . u r l . i n d e x O f ( " h t t p " ) | | ! s . u r l . i n d e x O f ( " / / " ) ) & & s . d a t a T y p e = = " s c r i p t " & & s . t y p e . t o L o w e r C a s e ( ) = = " g e t " ) { v a r   h e a d = 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   s c r i p 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 " ) ; s c r i p t . s r c = s . u r l ; i f ( s . s c r i p t C h a r s e t ) s c r i p t . c h a r s e t = s . s c r i p t C h a r s e t ; i f ( ! j s o n p ) { v a r   d o n e = f a l s e ; s c r i p t . o n l o a d = s c r i p 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 n e & & ( ! 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 " ) ) { d o n e = t r u e ; s u c c e s s ( ) ; c o m p l e t e ( ) ; h e a d . r e m o v e C h i l d ( s c r i p t ) ; } } ; } h e a d . a p p e n d C h i l d ( s c r i p t ) ; r e t u r n   u n d e f i n e d ; } v a r   r e q u e s t D o n e = f a l s e ; v a r   x m l = w i n d o w . 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 ( ) ; x m l . o p e n ( s . t y p e , s . u r l , s . a s y n c , s . u s e r n a m e , s . p a s s w o r d ) ; t r y { i f ( s . d a t a ) x m l . 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 " , s . c o n t e n t T y p e ) ; i f ( s . i f M o d i f i e d ) x m l . 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 " , j Q u e r y . l a s t M o d i f i e d [ s . u r l ] | | " T h u ,   0 1   J a n   1 9 7 0   0 0 : 0 0 : 0 0   G M T " ) ; x m l . 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 " ) ; x m l . s e t R e q u e s t H e a d e r ( " A c c e p t " , s . d a t a T y p e & & s . a c c e p t s [ s . d a t a T y p e ] ? s . a c c e p t s [ s . d a t a T y p e ] + " ,   * / * " : s . a c c e p t s . _ d e f a u l t ) ; } c a t c h ( e ) { } i f ( s . b e f o r e S e n d ) s . b e f o r e S e n d ( x m l ) ; i f ( s . g l o b a l ) j Q u e r y . e v e n t . t r i g g e r ( " a j a x S e n d " , [ x m l , s ] ) ; v a r   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 s T i m e o u t ) { i f ( ! r e q u e s t D o n e & & x m l & & ( x m l . r e a d y S t a t e = = 4 | | i s T i m e o u t = = " t i m e o u t " ) ) { r e q u e s t D o n e = t r u e ; i f ( i v a l ) { c l e a r I n t e r v a l ( i v a l ) ; i v a l = n u l l ; } s t a t u s = i s T i m e o u t = = " t i m e o u t " & & " t i m e o u t " | | ! j Q u e r y . h t t p S u c c e s s ( x m l ) & & " e r r o r " | | s . i f M o d i f i e d & & j Q u e r y . h t t p N o t M o d i f i e d ( x m l , s . u r l ) & & " n o t m o d i f i e d " | | " s u c c e s s " ; i f ( s t a t u s = = " s u c c e s s " ) { t r y { d a t a = j Q u e r y . h t t p D a t a ( x m l , s . d a t a T y p e ) ; } c a t c h ( e ) { s t a t u s = " p a r s e r e r r o r " ; } } i f ( s t a t u s = = " s u c c e s s " ) { v a r   m o d R e s ; t r y { m o d R e s = x m l . 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 ( e ) { } i f ( s . i f M o d i f i e d & & m o d R e s ) j Q u e r y . l a s t M o d i f i e d [ s . u r l ] = m o d R e s ; i f ( ! j s o n p ) s u c c e s s ( ) ; } e l s e 
 j Q u e r y . h a n d l e E r r o r ( s , x m l , s t a t u s ) ; c o m p l e t e ( ) ; i f ( s . a s y n c ) x m l = n u l l ; } } ; i f ( s . a s y n c ) { v a r   i v a l = s e t I n t e r v a l ( o n r e a d y s t a t e c h a n g e , 1 3 ) ; i f ( s . 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 ( x m l ) { x m l . a b o r t ( ) ; i f ( ! r e q u e s t D o n e ) o n r e a d y s t a t e c h a n g e ( " t i m e o u t " ) ; } } , s . t i m e o u t ) ; } t r y { x m l . s e n d ( s . d a t a ) ; } c a t c h ( e ) { j Q u e r y . h a n d l e E r r o r ( s , x m l , n u l l , e ) ; } i f ( ! s . a s y n c ) 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   s u c c e s s ( ) { i f ( s . s u c c e s s ) s . s u c c e s s ( d a t a , s t a t u s ) ; i f ( s . g l o b a l ) j Q u e r y . e v e n t . t r i g g e r ( " a j a x S u c c e s s " , [ x m l , s ] ) ; } f u n c t i o n   c o m p l e t e ( ) { i f ( s . c o m p l e t e ) s . c o m p l e t e ( x m l , s t a t u s ) ; i f ( s . g l o b a l ) j Q u e r y . e v e n t . t r i g g e r ( " a j a x C o m p l e t e " , [ x m l , s ] ) ; i f ( s . g l o b a l & & ! - - j Q u e r y . a c t i v e ) j Q u e r y . 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   x m l ; } , h a n d l e E r r o r : f u n c t i o n ( s , x m l , s t a t u s , e ) { i f ( s . e r r o r ) s . e r r o r ( x m l , s t a t u s , e ) ; i f ( s . g l o b a l ) j Q u e r y . e v e n t . t r i g g e r ( " a j a x E r r o r " , [ x m l , s , e ] ) ; } , 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 ( r ) { t r y { r e t u r n ! r . 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 : " | | ( r . s t a t u s > = 2 0 0 & & r . s t a t u s < 3 0 0 ) | | r . s t a t u s = = 3 0 4 | | r . s t a t u s = = 1 2 2 3 | | j Q u e r y . b r o w s e r . s a f a r i & & r . s t a t u s = = u n d e f i n e d ; } 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 ( x m l , u r l ) { t r y { v a r   x m l R e s = x m l . 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   x m l . s t a t u s = = 3 0 4 | | x m l R e s = = j Q u e r y . l a s t M o d i f i e d [ u r l ] | | j Q u e r y . b r o w s e r . s a f a r i & & x m l . s t a t u s = = u n d e f i n e d ; } c a t c h ( e ) { } 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 ( r , t y p e ) { v a r   c t = r . 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 " ) ; v a r   x m l = t y p e = = " x m l " | | ! t y p e & & c t & & c t . i n d e x O f ( " x m l " ) > = 0 ; v a r   d a t a = x m l ? r . r e s p o n s e X M L : r . r e s p o n s e T e x t ; i f ( x m l & & d a t a . 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 ( t y p e = = " s c r i p t " ) j Q u e r y . g l o b a l E v a l ( d a t a ) ; i f ( t y p e = = " j s o n " ) d a t a = e v a l ( " ( " + d a t a + " ) " ) ; r e t u r n   d a t a ; } , p a r a m : f u n c t i o n ( a ) { v a r   s = [ ] ; i f ( a . c o n s t r u c t o r = = A r r a y | | a . j q u e r y ) j Q u e r y . e a c h ( a , f u n c t i o n ( ) { s . p u s h ( e n c o d e U R I C o m p o n e n t ( t h i s . n a m e ) + " = " + e n c o d e U R I C o m p o n e n t ( t h i s . v a l u e ) ) ; } ) ; e l s e 
 f o r ( v a r   j   i n   a ) i f ( a [ j ] & & a [ j ] . c o n s t r u c t o r = = A r r a y ) j Q u e r y . e a c h ( a [ j ] , f u n c t i o n ( ) { s . p u s h ( e n c o d e U R I C o m p o n e n t ( j ) + " = " + e n c o d e U R I C o m p o n e n t ( t h i s ) ) ; } ) ; e l s e 
 s . p u s h ( e n c o d e U R I C o m p o n e n t ( j ) + " = " + e n c o d e U R I C o m p o n e n t ( a [ j ] ) ) ; r e t u r n   s . j o i n ( " & " ) . r e p l a c e ( / % 2 0 / g , " + " ) ; } } ) ; j Q u e r y . f n . e x t e n d ( { s h o w : f u n c t i o n ( s p e e d , c a l l b a c k ) { r e t u r n   s p e e d ? t h i s . a n i m a t e ( { h e i g h t : " s h o w " , w i d t h : " s h o w " , o p a c i t y : " s h o w " } , s p e e d , c a l l b a c k ) : t h i s . f i l t e r ( " : h i d d e n " ) . e a c h ( f u n c t i o n ( ) { t h i s . s t y l e . d i s p l a y = t h i s . o l d b l o c k | | " " ; i f ( j Q u e r y . c s s ( t h i s , " d i s p l a y " ) = = " n o n e " ) { v a r   e l e m = j Q u e r y ( " < " + t h i s . t a g N a m e + "   / > " ) . a p p e n d T o ( " b o d y " ) ; t h i s . s t y l e . d i s p l a y = e l e m . c s s ( " d i s p l a y " ) ; i f ( t h i s . s t y l e . d i s p l a y = = " n o n e " ) t h i s . s t y l e . d i s p l a y = " b l o c k " ; e l e m . r e m o v e ( ) ; } } ) . e n d ( ) ; } , h i d e : f u n c t i o n ( s p e e d , c a l l b a c k ) { r e t u r n   s p e e d ? t h i s . a n i m a t e ( { h e i g h t : " h i d e " , w i d t h : " h i d e " , o p a c i t y : " h i d e " } , s p e e d , c a l l b a c k ) : t h i s . f i l t e r ( " : v i s i b l e " ) . e a c h ( f u n c t i o n ( ) { t h i s . o l d b l o c k = t h i s . o l d b l o c k | | j Q u e r y . c s s ( t h i s , " d i s p l a y " ) ; t h i s . s t y l e . d i s p l a y = " n o n e " ; } ) . e n d ( ) ; } , _ t o g g l e : j Q u e r y . f n . t o g g l e , t o g g l e : f u n c t i o n ( f n , f n 2 ) { r e t u r n   j Q u e r y . i s F u n c t i o n ( f n ) & & j Q u e r y . i s F u n c t i o n ( f n 2 ) ? t h i s . _ t o g g l e ( f n , f n 2 ) : f n ? t h i s . a n i m a t e ( { h e i g h t : " t o g g l e " , w i d t h : " t o g g l e " , o p a c i t y : " t o g g l e " } , f n , f n 2 ) : t h i s . e a c h ( f u n c t i o n ( ) { j Q u e r y ( t h i s ) [ j Q u e r y ( t h i s ) . i s ( " : h i d d e n " ) ? " s h o w " : " h i d e " ] ( ) ; } ) ; } , s l i d e D o w n : f u n c t i o n ( s p e e d , c a l l b a c k ) { r e t u r n   t h i s . a n i m a t e ( { h e i g h t : " s h o w " } , s p e e d , c a l l b a c k ) ; } , s l i d e U p : f u n c t i o n ( s p e e d , c a l l b a c k ) { r e t u r n   t h i s . a n i m a t e ( { h e i g h t : " h i d e " } , s p e e d , c a l l b a c k ) ; } , s l i d e T o g g l e : f u n c t i o n ( s p e e d , c a l l b a c k ) { r e t u r n   t h i s . a n i m a t e ( { h e i g h t : " t o g g l e " } , s p e e d , c a l l b a c k ) ; } , f a d e I n : f u n c t i o n ( s p e e d , c a l l b a c k ) { r e t u r n   t h i s . a n i m a t e ( { o p a c i t y : " s h o w " } , s p e e d , c a l l b a c k ) ; } , f a d e O u t : f u n c t i o n ( s p e e d , c a l l b a c k ) { r e t u r n   t h i s . a n i m a t e ( { o p a c i t y : " h i d e " } , s p e e d , c a l l b a c k ) ; } , f a d e T o : f u n c t i o n ( s p e e d , t o , c a l l b a c k ) { r e t u r n   t h i s . a n i m a t e ( { o p a c i t y : t o } , s p e e d , c a l l b a c k ) ; } , a n i m a t e : f u n c t i o n ( p r o p , s p e e d , e a s i n g , c a l l b a c k ) { v a r   o p t a l l = j Q u e r y . s p e e d ( s p e e d , e a s i n g , c a l l b a c k ) ; r e t u r n   t h i s [ o p t a l l . 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 ( ) { i f ( t h i s . n o d e T y p e ! = 1 ) r e t u r n   f a l s e ; v a r   o p t = j Q u e r y . e x t e n d ( { } , o p t a l l ) ; v a r   h i d d e n = j Q u e r y ( t h i s ) . i s ( " : h i d d e n " ) , s e l f = t h i s ; f o r ( v a r   p   i n   p r o p ) { i f ( p r o p [ p ] = = " h i d e " & & h i d d e n | | p r o p [ p ] = = " s h o w " & & ! h i d d e n ) r e t u r n   j Q u e r y . i s F u n c t i o n ( o p t . c o m p l e t e ) & & o p t . c o m p l e t e . a p p l y ( t h i s ) ; i f ( p = = " h e i g h t " | | p = = " w i d t h " ) { o p t . d i s p l a y = j Q u e r y . c s s ( t h i s , " d i s p l a y " ) ; o p t . 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 ( o p t . 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 " ; o p t . c u r A n i m = j Q u e r y . e x t e n d ( { } , p r o p ) ; j Q u e r y . e a c h ( p r o p , f u n c t i o n ( n a m e , v a l ) { v a r   e = n e w   j Q u e r y . f x ( s e l f , o p t , n a m e ) ; i f ( / t o g g l e | s h o w | h i d e / . t e s t ( v a l ) ) e [ v a l = = " t o g g l e " ? h i d d e n ? " s h o w " : " h i d e " : v a l ] ( p r o p ) ; e l s e { v a r   p a r t s = v a l . t o S t r i n g ( ) . m a t c h ( / ^ ( [ + - ] = ) ? ( [ \ d + - . ] + ) ( . * ) $ / ) , s t a r t = e . c u r ( t r u e ) | | 0 ; i f ( p a r t s ) { v a r   e n d = p a r s e F l o a t ( p a r t s [ 2 ] ) , u n i t = p a r t s [ 3 ] | | " p x " ; i f ( u n i t ! = " p x " ) { s e l f . s t y l e [ n a m e ] = ( e n d | | 1 ) + u n i t ; s t a r t = ( ( e n d | | 1 ) / e . c u r ( t r u e ) ) * s t a r t ; s e l f . s t y l e [ n a m e ] = s t a r t + u n i t ; } i f ( p a r t s [ 1 ] ) e n d = ( ( p a r t s [ 1 ] = = " - = " ? - 1 : 1 ) * e n d ) + s t a r t ; e . c u s t o m ( s t a r t , e n d , u n i t ) ; } e l s e 
 e . c u s t o m ( s t a r t , v a l , " " ) ; } } ) ; r e t u r n   t r u e ; } ) ; } , q u e u e : f u n c t i o n ( t y p e , f n ) { i f ( j Q u e r y . i s F u n c t i o n ( t y p e ) | | ( t y p e & & t y p e . c o n s t r u c t o r = = A r r a y ) ) { f n = t y p e ; t y p e = " f x " ; } i f ( ! t y p e | | ( t y p e o f   t y p e = = " s t r i n g " & & ! f n ) ) r e t u r n   q u e u e ( t h i s [ 0 ] , t y p e ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { i f ( f n . c o n s t r u c t o r = = A r r a y ) q u e u e ( t h i s , t y p e , f n ) ; e l s e { q u e u e ( t h i s , t y p e ) . p u s h ( f n ) ; i f ( q u e u e ( t h i s , t y p e ) . l e n g t h = = 1 ) f n . a p p l y ( t h i s ) ; } } ) ; } , s t o p : f u n c t i o n ( c l e a r Q u e u e , g o t o E n d ) { v a r   t i m e r s = j Q u e r y . t i m e r s ; i f ( c l e a r Q u e u e ) 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   i = t i m e r s . l e n g t h - 1 ; i > = 0 ; i - - ) i f ( t i m e r s [ i ] . e l e m = = t h i s ) { i f ( g o t o E n d ) t i m e r s [ i ] ( t r u e ) ; t i m e r s . s p l i c e ( i , 1 ) ; } } ) ; i f ( ! g o t o E n d ) t h i s . d e q u e u e ( ) ; r e t u r n   t h i s ; } } ) ; v a r   q u e u e = f u n c t i o n ( e l e m , t y p e , a r r a y ) { i f ( ! e l e m ) r e t u r n   u n d e f i n e d ; t y p e = t y p e | | " f x " ; v a r   q = j Q u e r y . d a t a ( e l e m , t y p e + " q u e u e " ) ; i f ( ! q | | a r r a y ) q = j Q u e r y . d a t a ( e l e m , t y p e + " q u e u e " , a r r a y ? j Q u e r y . m a k e A r r a y ( a r r a y ) : [ ] ) ; r e t u r n   q ; } ; j Q u e r y . f n . d e q u e u e = f u n c t i o n ( t y p e ) { t y p e = t y p e | | " f x " ; 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   q = q u e u e ( t h i s , t y p e ) ; q . s h i f t ( ) ; i f ( q . l e n g t h ) q [ 0 ] . a p p l y ( t h i s ) ; } ) ; } ; j Q u e r y . e x t e n d ( { s p e e d : f u n c t i o n ( s p e e d , e a s i n g , f n ) { v a r   o p t = s p e e d & & s p e e d . c o n s t r u c t o r = = O b j e c t ? s p e e d : { c o m p l e t e : f n | | ! f n & & e a s i n g | | j Q u e r y . i s F u n c t i o n ( s p e e d ) & & s p e e d , d u r a t i o n : s p e e d , e a s i n g : f n & & e a s i n g | | e a s i n g & & e a s i n g . c o n s t r u c t o r ! = F u n c t i o n & & e a s i n g } ; o p t . d u r a t i o n = ( o p t . d u r a t i o n & & o p t . d u r a t i o n . c o n s t r u c t o r = = N u m b e r ? o p t . d u r a t i o n : { s l o w : 6 0 0 , f a s t : 2 0 0 } [ o p t . d u r a t i o n ] ) | | 4 0 0 ; o p t . o l d = o p t . c o m p l e t e ; o p t . c o m p l e t e = f u n c t i o n ( ) { i f ( o p t . q u e u e ! = = f a l s e ) j Q u e r y ( t h i s ) . d e q u e u e ( ) ; i f ( j Q u e r y . i s F u n c t i o n ( o p t . o l d ) ) o p t . o l d . a p p l y ( t h i s ) ; } ; r e t u r n   o p t ; } , e a s i n g : { l i n e a r : f u n c t i o n ( p , n , f i r s t N u m , d i f f ) { r e t u r n   f i r s t N u m + d i f f * p ; } , s w i n g : f u n c t i o n ( p , n , f i r s t N u m , d i f f ) { r e t u r n ( ( - M a t h . c o s ( p * M a t h . P I ) / 2 ) + 0 . 5 ) * d i f f + f i r s t N u m ; } } , t i m e r s : [ ] , t i m e r I d : n u l l , f x : f u n c t i o n ( e l e m , o p t i o n s , p r o p ) { t h i s . o p t i o n s = o p t i o n s ; t h i s . e l e m = e l e m ; t h i s . p r o p = p r o p ; i f ( ! o p t i o n s . o r i g ) o p t i o n s . o r i g = { } ; } } ) ; j Q u e r y . 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 . a p p l y ( t h i s . e l e m , [ t h i s . n o w , t h i s ] ) ; ( j Q u e r y . f x . s t e p [ t h i s . p r o p ] | | j Q u e r y . 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 . d i s p l a y = " b l o c k " ; } , c u r : f u n c t i o n ( f o r c e ) { 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 . 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   r = p a r s e F l o a t ( j Q u e r y . c s s ( t h i s . e l e m , t h i s . p r o p , f o r c e ) ) ; r e t u r n   r & & r > - 1 0 0 0 0 ? r : p a r s e F l o a t ( j Q u e r y . 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 ( f r o m , t o , u n i t ) { t h i s . s t a r t T i m e = ( n e w   D a t e ( ) ) . g e t T i m e ( ) ; t h i s . s t a r t = f r o m ; t h i s . e n d = t o ; t h i s . u n i t = u n i t | | 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 ; t h i s . u p d a t e ( ) ; v a r   s e l f = t h i s ; f u n c t i o n   t ( g o t o E n d ) { r e t u r n   s e l f . s t e p ( g o t o E n d ) ; } t . e l e m = t h i s . e l e m ; j Q u e r y . t i m e r s . p u s h ( t ) ; i f ( j Q u e r y . t i m e r I d = = n u l l ) { j Q u e r y . t i m e r I d = s e t I n t e r v a l ( f u n c t i o n ( ) { v a r   t i m e r s = j Q u e r y . t i m e r s ; f o r ( v a r   i = 0 ; i < t i m e r s . l e n g t h ; i + + ) i f ( ! t i m e r s [ i ] ( ) ) t i m e r s . s p l i c e ( i - - , 1 ) ; i f ( ! t i m e r s . l e n g t h ) { c l e a r I n t e r v a l ( j Q u e r y . t i m e r I d ) ; j Q u e r y . t i m e r I d = n u l l ; } } , 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 ] = j Q u e r y . 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 ( 0 , t h i s . c u r ( ) ) ; i f ( 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 " ) t h i s . e l e m . s t y l e [ t h i s . p r o p ] = " 1 p x " ; j Q u e r y ( 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 ] = j Q u e r y . 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 ( g o t o E n d ) { v a r   t = ( n e w   D a t e ( ) ) . g e t T i m e ( ) ; i f ( g o t o E n d | | t > 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   d o n e = t r u e ; 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 ) i f ( t h i s . o p t i o n s . c u r A n i m [ i ] ! = = t r u e ) d o n e = f a l s e ; i f ( d o n 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 ( j Q u e r y . 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 ) t h i s . e l e m . s t y l e . d i s p l a y = " n o n 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   p   i n   t h i s . o p t i o n s . c u r A n i m ) j Q u e r y . a t t r ( t h i s . e l e m . s t y l e , p , t h i s . o p t i o n s . o r i g [ p ] ) ; } i f ( d o n e & & j Q u e r y . i s F u n c t i o n ( t h i s . o p t i o n s . c o m p l e t e ) ) t h i s . o p t i o n s . c o m p l e t e . a p p l y ( 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   n = t - t h i s . s t a r t T i m e ; t h i s . s t a t e = n / 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 = j Q u e r y . e a s i n g [ t h i s . o p t i o n s . e a s i n g | | ( j Q u e r y . 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 , n , 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 ; } } ; j Q u e r y . f x . s t e p = { s c r o l l L e f t : f u n c t i o n ( f x ) { f x . e l e m . s c r o l l L e f t = f x . n o w ; } , s c r o l l T o p : f u n c t i o n ( f x ) { f x . e l e m . s c r o l l T o p = f x . n o w ; } , o p a c i t y : f u n c t i o n ( f x ) { j Q u e r y . a t t r ( f x . e l e m . s t y l e , " o p a c i t y " , f x . n o w ) ; } , _ d e f a u l t : f u n c t i o n ( f x ) { f x . e l e m . s t y l e [ f x . p r o p ] = f x . n o w + f x . u n i t ; } } ; j Q u e r y . f n . o f f s e t = f u n c t i o n ( ) { v a r   l e f t = 0 , t o p = 0 , e l e m = t h i s [ 0 ] , r e s u l t s ; i f ( e l e m ) w i t h ( j Q u e r y . b r o w s e r ) { v a r   p a r e n t = e l e m . p a r e n t N o d e , o f f s e t C h i l d = e l e m , o f f s e t P a r e n t = e l e m . o f f s e t P a r e n t , d o c = e l e m . o w n e r D o c u m e n t , s a f a r i 2 = s a f a r i & & p a r s e I n t ( v e r s i o n ) < 5 2 2 & & ! / a d o b e a i r / i . t e s t ( u s e r A g e n t ) , f i x e d = j Q u e r y . c s s ( e l e m , " p o s i t i o n " ) = = " f i x e d " ; i f ( e l e m . g e t B o u n d i n g C l i e n t R e c t ) { v a r   b o x = e l e m . g e t B o u n d i n g C l i e n t R e c t ( ) ; a d d ( b o x . l e f t + M a t h . m a x ( d o c . 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 . b o d y . s c r o l l L e f t ) , b o x . t o p + M a t h . m a x ( d o c . 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 . b o d y . s c r o l l T o p ) ) ; a d d ( - d o c . d o c u m e n t E l e m e n t . c l i e n t L e f t , - d o c . d o c u m e n t E l e m e n t . c l i e n t T o p ) ; } e l s e { a d d ( e l e m . o f f s e t L e f t , e l e m . o f f s e t T o p ) ; w h i l e ( o f f s e t P a r e n t ) { a d d ( o f f s e t P a r e n t . o f f s e t L e f t , o f f s e t P a r e n t . o f f s e t T o p ) ; i f ( m o z i l l a & & ! / ^ t ( a b l e | d | h ) $ / i . t e s t ( o f f s e t P a r e n t . t a g N a m e ) | | s a f a r i & & ! s a f a r i 2 ) b o r d e r ( o f f s e t P a r e n t ) ; i f ( ! f i x e d & & j Q u e r y . c s s ( o f f s e t P a r e n t , " p o s i t i o n " ) = = " f i x e d " ) f i x e d = t r u e ; o f f s e t C h i l d = / ^ b o d y $ / i . t e s t ( o f f s e t P a r e n t . t a g N a m e ) ? o f f s e t C h i l d : o f f s e t P a r e n t ; o f f s e t P a r e n t = o f f s e t P a r e n t . o f f s e t P a r e n t ; } w h i l e ( p a r e n t & & p a r e n t . t a g N a m e & & ! / ^ b o d y | h t m l $ / i . t e s t ( p a r e n t . t a g N a m e ) ) { i f ( ! / ^ i n l i n e | t a b l e . * $ / i . t e s t ( j Q u e r y . c s s ( p a r e n t , " d i s p l a y " ) ) ) a d d ( - p a r e n t . s c r o l l L e f t , - p a r e n t . s c r o l l T o p ) ; i f ( m o z i l l a & & j Q u e r y . c s s ( p a r e n t , " o v e r f l o w " ) ! = " v i s i b l e " ) b o r d e r ( p a r e n t ) ; p a r e n t = p a r e n t . p a r e n t N o d e ; } i f ( ( s a f a r i 2 & & ( f i x e d | | j Q u e r y . c s s ( o f f s e t C h i l d , " p o s i t i o n " ) = = " a b s o l u t e " ) ) | | ( m o z i l l a & & j Q u e r y . c s s ( o f f s e t C h i l d , " p o s i t i o n " ) ! = " a b s o l u t e " ) ) a d d ( - d o c . b o d y . o f f s e t L e f t , - d o c . b o d y . o f f s e t T o p ) ; i f ( f i x e d ) a d d ( M a t h . m a x ( d o c . 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 . b o d y . s c r o l l L e f t ) , M a t h . m a x ( d o c . 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 . b o d y . s c r o l l T o p ) ) ; } r e s u l t s = { t o p : t o p , l e f t : l e f t } ; } f u n c t i o n   b o r d e r ( e l e m ) { a d d ( j Q u e r y . c u r C S S ( e l e m , " b o r d e r L e f t W i d t h " , t r u e ) , j Q u e r y . c u r C S S ( e l e m , " b o r d e r T o p W i d t h " , t r u e ) ) ; } f u n c t i o n   a d d ( l , t ) { l e f t + = p a r s e I n t ( l ) | | 0 ; t o p + = p a r s e I n t ( t ) | | 0 ; } r e t u r n   r e s u l t s ; } ; j Q u e r y . e a c h ( [ " H e i g h t " , " W i d t h " ] , f u n c t i o n ( i , n a m e ) { v a r   t l = n a m e = = " H e i g h t " ? " T o p " : " L e f t " , b r = n a m e = = " H e i g h t " ? " B o t t o m " : " R i g h t " ; j Q u e r y . f n [ " i n n e r " + n a m e ] = f u n c t i o n ( ) { r e t u r n   t h i s [ n a m e . t o L o w e r C a s e ( ) ] ( ) + n u m ( t h i s , " p a d d i n g " + t l ) + n u m ( t h i s , " p a d d i n g " + b r ) ; } ; j Q u e r y . f n [ " o u t e r " + n a m e ] = f u n c t i o n ( m a r g i n ) { r e t u r n   t h i s [ " i n n e r " + n a m e ] ( ) + n u m ( t h i s , " b o r d e r " + t l + " W i d t h " ) + n u m ( t h i s , " b o r d e r " + b r + " W i d t h " ) + ( ! ! m a r g i n ? n u m ( t h i s , " m a r g i n " + t l ) + n u m ( t h i s , " m a r g i n " + b r ) : 0 ) ; } ; } ) ; f u n c t i o n   n u m ( e l e m , p r o p ) { e l e m = e l e m . j q u e r y ? e l e m [ 0 ] : e l e m ; r e t u r n   e l e m & & p a r s e I n t ( j Q u e r y . c u r C S S ( e l e m , p r o p , t r u e ) ) | | 0 ; } } ) ( ) ; j Q u e r y . e x t e n d ( { g e t P a g e O f f s e t : f u n c t i o n ( ) { v a r   a = 0 , b = 0 ; i f ( t y p e o f   w i n d o w . p a g e Y O f f s e t = = " n u m b e r " ) { a = w i n d o w . p a g e X O f f s e t ; b = w i n d o w . p a g e Y O f f s e t } e l s e   i f ( d o c u m e n t . b o d y & & ( d o c u m e n t . b o d y . 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 T o p ) ) { a = d o c u m e n t . b o d y . s c r o l l L e f t ; b = d o c u m e n t . b o d y . s c r o l l T o p } e l s e   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 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 . d o c u m e n t E l e m e n t . s c r o l l T o p ) ) { a = 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 ; b = 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 } 
 r e t u r n [ a , b ] } , p o s I n P a g e : f u n c t i o n ( a , b ) { v a r   c = 0 , d = 0 ; i f ( a & & a . o f f s e t P a r e n t ) { i f ( ! b ) { v a r   e = a . o f f s e t P a r e n t . g e t E l e m e n t s B y T a g N a m e ( a . t a g N a m e ) ; i f ( e & & e [ 0 ] ) { d = e [ 0 ] . o f f s e t T o p } } } 
 w h i l e ( a ) { c + = a [ " o f f s e t " + ( b ? " L e f t " : " T o p " ) ] ; a = a . o f f s e t P a r e n t } 
 r e t u r n   c - d } } ) ; j Q u e r y . f n . e x t e n d ( { p o s I n P a g e : f u n c t i o n ( b ) { r e t u r n   j Q u e r y . p o s I n P a g e ( t h i s [ 0 ] , b ) ; } } ) ; v a r   d o t _ i m g = n e w   I m a g e ( ) ; d o t _ i m g . s r c = ' / l i b r a r y / i m a g e / d o t / d o t _ b l a n k . g i f ' ; f u n c t i o n   f i x p n g _ i e ( e l m ) { i f ( ! d o c u m e n t . a l l ) { r e t u r n } t r y { i f ( ! ( e l m & & e l m . t a g N a m e & & e l m . t a g N a m e . t o L o w e r C a s e ( ) = = ' i m g ' ) ) { r e t u r n } v a r   p n g S r c = e l m . s r c , p n g M = p n g S r c . m a t c h ( / p n g $ / i ) , i m g S i z e = [ e l m . o f f s e t W i d t h , e l m . o f f s e t H e i g h t ] ; i f ( p n g M & & p n g M . l e n g t h > 0 ) { e l m . w i d t h = i m g S i z e [ 0 ] ; e l m . h e i g h t = i m g S i z e [ 1 ] ; e l m . s r c = d o t _ i m g . s r c ; e l m . 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 ( e n a b l e d = t r u e , s i z i n g M e t h o d = " s c a l e " ,   s r c = " ' + p n g S r c + ' " ) ' ; } } c a t c h ( e x ) { } } 
 f u n c t i o n   i n p u t A u t o C l e a r ( i p t ) { i f ( i p t . v a l u e = = i p t . d e f a u l t V a l u e ) { i p t . v a l u e = ' ' ; } i p t . o n f o c u s = n u l l ; s e t T i m e o u t ( f u n c t i o n ( ) { i p t . o n f o c u s = f u n c t i o n ( ) { i f ( t h i s . v a l u e = = t h i s . d e f a u l t V a l u e ) { t h i s . v a l u e = ' ' ; } } ; i p t . o n b l u r = f u n c t i o n ( ) { i f ( t h i s . v a l u e = = ' ' ) { t h i s . v a l u e = t h i s . d e f a u l t V a l u e ; } } ; } , 0 ) ; } 
 i f ( t y p e o f   c o n s o l e ! = ' u n d e f i n e d ' ) { w i n d o w . _ l o g = f u n c t i o n ( ) { c o n s o l e . l o g . a p p l y ( c o n s o l e , a r g u m e n t s ) ; } ; w i n d o w . _ p r o f i l e = f u n c t i o n ( ) { ( a r g u m e n t s . l e n g t h ? c o n s o l e . p r o f i l e : c o n s o l e . p r o f i l e E n d ) . a p p l y ( c o n s o l e , a r g u m e n t s ) ; } ; } e l s e { w i n d o w . _ l o g = f u n c t i o n ( ) { } ; w i n d o w . _ p r o f i l e = f u n c t i o n ( ) { } ; } 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 = { } ; } 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 = { } ; } 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 = { } ; } 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 ) { 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 = _ a ? _ a : " 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 = { } ; t h i s . v a r i a b l e s = { } ; t h i s . a t t r i b u t e s = [ ] ; 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 ) { 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 ( 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 ) ; 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   _ c = ( _ 8 ) ? _ 8 : 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 " , _ c ) ; 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 ( _ 9 ) { 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 " , _ 9 ) ; } } ; 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 ( _ d ) { t h i s . x i S W F P a t h = ! _ d ? " e x p r e s s i n s t a l l . s w f " : _ d ; 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 ( _ e , _ f ) { t h i s . a t t r i b u t e s [ _ e ] = _ f ; } , g e t A t t r i b u t e : f u n c t i o n ( _ 1 0 ) { r e t u r n   t h i s . a t t r i b u t e s [ _ 1 0 ] | | " " ; } , a d d P a r a m : f u n c t i o n ( _ 1 1 , _ 1 2 ) { t h i s . p a r a m s [ _ 1 1 ] = _ 1 2 ; } , 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 3 , _ 1 4 ) { t h i s . v a r i a b l e s [ _ 1 3 ] = _ 1 4 ; } , g e t V a r i a b l e : f u n c t i o n ( _ 1 5 ) { r e t u r n   t h i s . v a r i a b l e s [ _ 1 5 ] | | " " ; } , 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 6 = [ ] ; v a r   k e y ; v a r   _ 1 8 = 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 8 ) { _ 1 6 [ _ 1 6 . l e n g t h ] = k e y + " = " + _ 1 8 [ k e y ] ; } r e t u r n   _ 1 6 ; } , g e t S W F H T M L : f u n c t i o n ( ) { v a r   _ 1 9 = " " ; 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 9 = " < 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 9 + = "   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 a = 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 a ) { _ 1 9 + = [ k e y ] + " = \ " " + _ 1 a [ k e y ] + " \ "   " ; } v a r   _ 1 c = 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 c . l e n g t h > 0 ) { _ 1 9 + = " f l a s h v a r s = \ " " + _ 1 c + " \ " " ; } _ 1 9 + = " / > " ; } 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 9 = " < 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 9 + = " < 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 d = 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 d ) { _ 1 9 + = " < p a r a m   n a m e = \ " " + k e y + " \ "   v a l u e = \ " " + _ 1 d [ k e y ] + " \ "   / > " ; } v a r   _ 1 f = 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 f . l e n g t h > 0 ) { _ 1 9 + = " < p a r a m   n a m e = \ " f l a s h v a r s \ "   v a l u e = \ " " + _ 1 f + " \ "   / > " ; } _ 1 9 + = " < / o b j e c t > " ; } r e t u r n   _ 1 9 ; } , w r i t e : f u n c t i o n ( _ 2 0 ) { 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   _ 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 , 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 ( _ 2 1 ) & & ! 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   _ 2 0 = = " 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 ( _ 2 0 ) : _ 2 0 ; 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 3 = 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 3 = 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 6 = 3 ; w h i l e ( a x o ) { t r y { _ 2 6 + + ; 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 6 ) ; _ 2 3 = 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 6 , 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 3 = 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 3 . m a j o r = = 6 ) { r e t u r n   _ 2 3 ; } } 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 3 = 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 3 ; } ; 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 9 ) { t h i s . m a j o r = _ 2 9 [ 0 ] ! = n u l l ? p a r s e I n t ( _ 2 9 [ 0 ] ) : 0 ; t h i s . m i n o r = _ 2 9 [ 1 ] ! = n u l l ? p a r s e I n t ( _ 2 9 [ 1 ] ) : 0 ; t h i s . r e v = _ 2 9 [ 2 ] ! = n u l l ? p a r s e I n t ( _ 2 9 [ 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 b ) { 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 b = = n u l l ) { r e t u r n   q ; } i f ( q ) { v a r   _ 2 d = 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 d . l e n g t h ; i + + ) { i f ( _ 2 d [ i ] . s u b s t r i n g ( 0 , _ 2 d [ i ] . i n d e x O f ( " = " ) ) = = _ 2 b ) { r e t u r n   _ 2 d [ i ] . s u b s t r i n g ( ( _ 2 d [ 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 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 ( " O B J E C T " ) ; f o r ( v a r   i = _ 2 f . l e n g t h - 1 ; i > = 0 ; i - - ) { _ 2 f [ 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 f [ i ] ) { i f ( t y p e o f   _ 2 f [ i ] [ x ] = = " f u n c t i o n " ) { _ 2 f [ i ] [ x ] = f u n c t i o n ( ) { } ; } } } } ; 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 ; f u n c t i o n   w r i t e F l a s h ( s r c , w , h , o p t ) { v a r   v = " 7 " ; v a r   f o = n e w   S W F O b j e c t ( s r c , ( ( o p t & & o p t . i d ) | | " " ) , w , h , v , " # F F F F F F " ) ; f o . a d d P a r a m ( " w m o d e " , " t r a n s p a r e n t " ) ; i f ( o p t ) { f o r ( v a r   x   i n   o p t ) { f o . a d d P a r a m ( x , o p t [ x ] ) ; } } 
 d o c u m e n t . w r i t e ( f o . g e t S W F H T M L ( ) ) ; } 
 f u n c t i o n   w r i t e F l a s h T o ( i d , s r c , w , h , o p t ) { v a r   v = " 7 " ; v a r   f o = n e w   S W F O b j e c t ( s r c , ( ( o p t & & o p t . i d ) | | " " ) , w , h , v , " # F F F F F F " ) ; f o . a d d P a r a m ( " w m o d e " , " t r a n s p a r e n t " ) ; i f ( o p t ) { f o r ( v a r   x   i n   o p t ) { f o . a d d P a r a m ( x , o p t [ x ] ) ; } } 
 d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . i n n e r H T M L = f o . g e t S W F H T M L ( ) ; } 
