ÿþ/ * ! 
     *     j Q u e r y   J a v a S c r i p t   L i b r a r y   v 1 . 4 . 2 
     *     h t t p : / / j q u e r y . c o m / 
     * 
     *     C o p y r i g h t   2 0 1 0 ,   J o h n   R e s i g 
     *     D u a l   l i c e n s e d   u n d e r   t h e   M I T   o r   G P L   V e r s i o n   2   l i c e n s e s . 
     *     h t t p : / / j q u e r y . o r g / l i c e n s e 
     * 
     *     I n c l u d e s   S i z z l e . j s 
     *     h t t p : / / s i z z l e j s . c o m / 
     *     C o p y r i g h t   2 0 1 0 ,   T h e   D o j o   F o u n d a t i o n 
     *     R e l e a s e d   u n d e r   t h e   M I T ,   B S D ,   a n d   G P L   L i c e n s e s . 
   * 
   *   D a t e :   S a t   F e b   1 3   2 2 : 3 3 : 4 8   2 0 1 0   - 0 5 0 0 
 *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   * / 
 ( f u n c t i o n ( a O , I ) { f u n c t i o n   a 0 ( ) { i f ( ! a h . i s R e a d y ) { t r y { M . 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 ( c ) { s e t T i m e o u t ( a 0 , 1 ) ; r e t u r n } a h . r e a d y ( ) } } f u n c t i o n   E ( s , c ) { c . s r c ? a h . a j a x ( { u r l : c . 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 " } ) : a h . g l o b a l E v a l ( c . t e x t | | c . t e x t C o n t e n t | | c . i n n e r H T M L | | " " ) ; c . p a r e n t N o d e & & c . p a r e n t N o d e . r e m o v e C h i l d ( c ) } f u n c t i o n   a p ( s , c , K , F , G , w ) { v a r   A = s . l e n g t h ; i f ( t y p e o f   c = = = " o b j e c t " ) { f o r ( v a r   J   i n   c ) { a p ( s , J , c [ J ] , F , G , K ) } r e t u r n   s } i f ( K ! = = I ) { F = ! w & & F & & a h . i s F u n c t i o n ( K ) ; f o r ( J = 0 ; J < A ; J + + ) { G ( s [ J ] , c , F ? K . c a l l ( s [ J ] , J , G ( s [ J ] , c ) ) : K , w ) } r e t u r n   s } r e t u r n   A ? G ( s [ 0 ] , c ) : I } f u n c t i o n   a F ( ) { r e t u r n ( n e w   D a t e ) . g e t T i m e ( ) } f u n c t i o n   a o ( ) { r e t u r n   f a l s e } f u n c t i o n   a m ( ) { r e t u r n   t r u e } f u n c t i o n   a K ( s , c , w ) { w [ 0 ] . t y p e = s ; r e t u r n   a h . e v e n t . h a n d l e . a p p l y ( c , w ) } f u n c t i o n   a g ( O ) { v a r   N , L = [ ] , J = [ ] , K = a r g u m e n t s , F , G , s , A , w , c ; G = a h . d a t a ( t h i s , " e v e n t s " ) ; i f ( ! ( O . l i v e F i r e d = = = t h i s | | ! G | | ! G . l i v e | | O . b u t t o n & & O . t y p e = = = " c l i c k " ) ) { O . l i v e F i r e d = t h i s ; v a r   P = G . l i v e . s l i c e ( 0 ) ; f o r ( A = 0 ; A < P . l e n g t h ; A + + ) { G = P [ A ] ; G . o r i g T y p e . r e p l a c e ( a z , " " ) = = = O . t y p e ? J . p u s h ( G . s e l e c t o r ) : P . s p l i c e ( A - - , 1 ) } F = a h ( O . t a r g e t ) . c l o s e s t ( J , O . c u r r e n t T a r g e t ) ; w = 0 ; f o r ( c = F . l e n g t h ; w < c ; w + + ) { f o r ( A = 0 ; A < P . l e n g t h ; A + + ) { G = P [ A ] ; i f ( F [ w ] . s e l e c t o r = = = G . s e l e c t o r ) { s = F [ w ] . e l e m ; J = n u l l ; i f ( G . p r e T y p e = = = " m o u s e e n t e r " | | G . p r e T y p e = = = " m o u s e l e a v e " ) { J = a h ( O . r e l a t e d T a r g e t ) . c l o s e s t ( G . s e l e c t o r ) [ 0 ] } i f ( ! J | | J ! = = s ) { L . p u s h ( { e l e m : s , h a n d l e O b j : G } ) } } } } w = 0 ; f o r ( c = L . l e n g t h ; w < c ; w + + ) { F = L [ w ] ; O . c u r r e n t T a r g e t = F . e l e m ; O . d a t a = F . h a n d l e O b j . d a t a ; O . h a n d l e O b j = F . h a n d l e O b j ; i f ( F . h a n d l e O b j . o r i g H a n d l e r . a p p l y ( F . e l e m , K ) = = = f a l s e ) { N = f a l s e ; b r e a k } } r e t u r n   N } } f u n c t i o n   z ( s , c ) { r e t u r n " l i v e . " + ( s & & s ! = = " * " ? s + " . " : " " ) + c . r e p l a c e ( / \ . / g , " ` " ) . r e p l a c e ( /   / g , " & " ) } f u n c t i o n   l ( c ) { r e t u r n   ! c | | ! c . p a r e n t N o d e | | c . p a r e n t N o d e . n o d e T y p e = = = 1 1 } f u n c t i o n   b j ( s , c ) { v a r   w = 0 ; c . e a c h ( f u n c t i o n ( ) { i f ( t h i s . n o d e N a m e = = = ( s [ w ] & & s [ w ] . n o d e N a m e ) ) { v a r   G = a h . d a t a ( s [ w + + ] ) , J = a h . d a t a ( t h i s , G ) ; i f ( G = G & & G . e v e n t s ) { d e l e t e   J . h a n d l e ; J . e v e n t s = { } ; f o r ( v a r   A   i n   G ) { f o r ( v a r   F   i n   G [ A ] ) { a h . e v e n t . a d d ( t h i s , A , G [ A ] [ F ] , G [ A ] [ F ] . d a t a ) } } } } } ) } f u n c t i o n   a 3 ( s , c , G ) { v a r   A , F , w ; c = c & & c [ 0 ] ? c [ 0 ] . o w n e r D o c u m e n t | | c [ 0 ] : M ; i f ( s . l e n g t h = = = 1 & & t y p e o f   s [ 0 ] = = = " s t r i n g " & & s [ 0 ] . l e n g t h < 5 1 2 & & c = = = M & & ! a P . t e s t ( s [ 0 ] ) & & ( a h . s u p p o r t . c h e c k C l o n e | | ! a k . t e s t ( s [ 0 ] ) ) ) { F = t r u e ; i f ( w = a h . f r a g m e n t s [ s [ 0 ] ] ) { i f ( w ! = = 1 ) { A = w } } } i f ( ! A ) { A = c . c r e a t e D o c u m e n t F r a g m e n t ( ) ; a h . c l e a n ( s , c , A , G ) } i f ( F ) { a h . f r a g m e n t s [ s [ 0 ] ] = w ? A : 1 } r e t u r n { f r a g m e n t : A , c a c h e a b l e : F } } f u n c t i o n   a C ( s , c ) { v a r   w = { } ; a h . e a c h ( D . c o n c a t . a p p l y ( [ ] , D . s l i c e ( 0 , c ) ) , f u n c t i o n ( ) { w [ t h i s ] = s } ) ; r e t u r n   w } f u n c t i o n   o ( c ) { r e t u r n " s c r o l l T o "   i n   c & & c . d o c u m e n t ? c : c . n o d e T y p e = = = 9 ? c . d e f a u l t V i e w | | c . p a r e n t W i n d o w : f a l s e } v a r   a h = f u n c t i o n ( s , c ) { r e t u r n   n e w   a h . f n . i n i t ( s , c ) } , p = a O . j Q u e r y , d = a O . $ , M = a O . d o c u m e n t , a t , a 7 = / ^ [ ^ < ] * ( < [ \ w \ W ] + > ) [ ^ > ] * $ | ^ # ( [ \ w - ] + ) $ / , a T = / ^ . [ ^ : # \ [ \ . , ] * $ / , a n = / \ S / , H = / ^ ( \ s | \ u 0 0 A 0 ) + | ( \ s | \ u 0 0 A 0 ) + $ / g , q = / ^ < ( \ w + ) \ s * \ / ? > ( ? : < \ / \ 1 > ) ? $ / , a x = n a v i g a t o r . u s e r A g e n t , b = f a l s e , a v = [ ] , a B , a 1 = O b j e c t . p r o t o t y p e . t o S t r i n g , a V = O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y , a y = A r r a y . p r o t o t y p e . p u s h , a u = A r r a y . p r o t o t y p e . s l i c e , a 6 = A r r a y . p r o t o t y p e . i n d e x O f ; a h . f n = a h . p r o t o t y p e = { i n i t : f u n c t i o n ( s , c ) { v a r   A , w ; i f ( ! s ) { r e t u r n   t h i s } i f ( s . n o d e T y p e ) { t h i s . c o n t e x t = t h i s [ 0 ] = s ; t h i s . l e n g t h = 1 ; r e t u r n   t h i s } i f ( s = = = " b o d y " & & ! c ) { t h i s . c o n t e x t = M ; t h i s [ 0 ] = M . b o d y ; t h i s . s e l e c t o r = " b o d y " ; t h i s . l e n g t h = 1 ; r e t u r n   t h i s } i f ( t y p e o f   s = = = " s t r i n g " ) { i f ( ( A = a 7 . e x e c ( s ) ) & & ( A [ 1 ] | | ! c ) ) { i f ( A [ 1 ] ) { w = c ? c . o w n e r D o c u m e n t | | c : M ; i f ( s = q . e x e c ( s ) ) { i f ( a h . i s P l a i n O b j e c t ( c ) ) { s = [ M . c r e a t e E l e m e n t ( s [ 1 ] ) ] ; a h . f n . a t t r . c a l l ( s , c , t r u e ) } e l s e { s = [ w . c r e a t e E l e m e n t ( s [ 1 ] ) ] } } e l s e { s = a 3 ( [ A [ 1 ] ] , [ w ] ) ; s = ( s . c a c h e a b l e ? s . f r a g m e n t . c l o n e N o d e ( t r u e ) : s . f r a g m e n t ) . c h i l d N o d e s } r e t u r n   a h . m e r g e ( t h i s , s ) } e l s e { i f ( c = M . g e t E l e m e n t B y I d ( A [ 2 ] ) ) { i f ( c . i d ! = = A [ 2 ] ) { r e t u r n   a t . f i n d ( s ) } t h i s . l e n g t h = 1 ; t h i s [ 0 ] = c } t h i s . c o n t e x t = M ; t h i s . s e l e c t o r = s ; r e t u r n   t h i s } } e l s e { i f ( ! c & & / ^ \ w + $ / . t e s t ( s ) ) { t h i s . s e l e c t o r = s ; t h i s . c o n t e x t = M ; s = M . g e t E l e m e n t s B y T a g N a m e ( s ) ; r e t u r n   a h . m e r g e ( t h i s , s ) } e l s e { r e t u r n   ! c | | c . j q u e r y ? ( c | | a t ) . f i n d ( s ) : a h ( c ) . f i n d ( s ) } } } e l s e { i f ( a h . i s F u n c t i o n ( s ) ) { r e t u r n   a t . r e a d y ( s ) } } i f ( s . s e l e c t o r ! = = I ) { t h i s . s e l e c t o r = s . s e l e c t o r ; t h i s . c o n t e x t = s . c o n t e x t } r e t u r n   a h . m a k e A r r a y ( s , t h i s ) } , s e l e c t o r : " " , j q u e r y : " 1 . 4 . 2 " , l e n g t h : 0 , 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 } , t o A r r a y : f u n c t i o n ( ) { r e t u r n   a u . c a l l ( t h i s , 0 ) } , g e t : f u n c t i o n ( c ) { r e t u r n   c = = n u l l ? t h i s . t o A r r a y ( ) : c < 0 ? t h i s . s l i c e ( c ) [ 0 ] : t h i s [ c ] } , p u s h S t a c k : f u n c t i o n ( s , c , A ) { v a r   w = a h ( ) ; a h . i s A r r a y ( s ) ? a y . a p p l y ( w , s ) : a h . m e r g e ( w , s ) ; w . p r e v O b j e c t = t h i s ; w . c o n t e x t = t h i s . c o n t e x t ; i f ( c = = = " f i n d " ) { w . s e l e c t o r = t h i s . s e l e c t o r + ( t h i s . s e l e c t o r ? "   " : " " ) + A } e l s e { i f ( c ) { w . s e l e c t o r = t h i s . s e l e c t o r + " . " + c + " ( " + A + " ) " } } r e t u r n   w } , e a c h : f u n c t i o n ( s , c ) { r e t u r n   a h . e a c h ( t h i s , s , c ) } , r e a d y : f u n c t i o n ( c ) { a h . b i n d R e a d y ( ) ; i f ( a h . i s R e a d y ) { c . c a l l ( M , a h ) } e l s e { a v & & a v . p u s h ( c ) } r e t u r n   t h i s } , e q : f u n c t i o n ( c ) { r e t u r n   c = = = - 1 ? t h i s . s l i c e ( c ) : t h i s . s l i c e ( c , + c + 1 ) } , f i r s t : f u n c t i o n ( ) { r e t u r n   t h i s . e q ( 0 ) } , l a s t : f u n c t i o n ( ) { r e t u r n   t h i s . e q ( - 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 u . a p p l y ( t h i s , a r g u m e n t s ) , " s l i c e " , a u . c a l l ( a r g u m e n t s ) . j o i n ( " , " ) ) } , m a p : f u n c t i o n ( c ) { r e t u r n   t h i s . p u s h S t a c k ( a h . m a p ( t h i s , f u n c t i o n ( s , w ) { r e t u r n   c . c a l l ( s , w , s ) } ) ) } , 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 | | a h ( n u l l ) } , p u s h : a y , s o r t : [ ] . s o r t , s p l i c e : [ ] . s p l i c e } ; a h . f n . i n i t . p r o t o t y p e = a h . f n ; a h . e x t e n d = a h . f n . e x t e n d = f u n c t i o n ( ) { v a r   s = a r g u m e n t s [ 0 ] | | { } , c = 1 , K = a r g u m e n t s . l e n g t h , F = f a l s e , G , w , A , J ; i f ( t y p e o f   s = = = " b o o l e a n " ) { F = s ; s = a r g u m e n t s [ 1 ] | | { } ; c = 2 } i f ( t y p e o f   s ! = = " o b j e c t " & & ! a h . i s F u n c t i o n ( s ) ) { s = { } } i f ( K = = = c ) { s = t h i s ; - - c } f o r ( ; c < K ; c + + ) { i f ( ( G = a r g u m e n t s [ c ] ) ! = n u l l ) { f o r ( w   i n   G ) { A = s [ w ] ; J = G [ w ] ; i f ( s ! = = J ) { i f ( F & & J & & ( a h . i s P l a i n O b j e c t ( J ) | | a h . i s A r r a y ( J ) ) ) { A = A & & ( a h . i s P l a i n O b j e c t ( A ) | | a h . i s A r r a y ( A ) ) ? A : a h . i s A r r a y ( J ) ? [ ] : { } ; s [ w ] = a h . e x t e n d ( F , A , J ) } e l s e { i f ( J ! = = I ) { s [ w ] = J } } } } } } r e t u r n   s } ; a h . e x t e n d ( { n o C o n f l i c t : f u n c t i o n ( c ) { a O . $ = d ; i f ( c ) { a O . j Q u e r y = p } r e t u r n   a h } , i s R e a d y : f a l s e , r e a d y : f u n c t i o n ( ) { i f ( ! a h . i s R e a d y ) { i f ( ! M . b o d y ) { r e t u r n   s e t T i m e o u t ( a h . r e a d y , 1 3 ) } a h . i s R e a d y = t r u e ; i f ( a v ) { f o r ( v a r   s , c = 0 ; s = a v [ c + + ] ; ) { s . c a l l ( M , a h ) } a v = n u l l } a h . f n . t r i g g e r H a n d l e r & & a h ( M ) . t r i g g e r H a n d l e r ( " r e a d y " ) } } , b i n d R e a d y : f u n c t i o n ( ) { i f ( ! b ) { b = t r u e ; i f ( M . r e a d y S t a t e = = = " c o m p l e t e " ) { r e t u r n   a h . r e a d y ( ) } i f ( M . a d d E v e n t L i s t e n e r ) { M . 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 " , a B , f a l s e ) ; a O . a d d E v e n t L i s t e n e r ( " l o a d " , a h . r e a d y , f a l s e ) } e l s e { i f ( M . a t t a c h E v e n t ) { M . a t t a c h E v e n t ( " o n r e a d y s t a t e c h a n g e " , a B ) ; a O . a t t a c h E v e n t ( " o n l o a d " , a h . r e a d y ) ; v a r   s = f a l s e ; t r y { s = a O . f r a m e E l e m e n t = = n u l l } c a t c h ( c ) { } M . d o c u m e n t E l e m e n t . d o S c r o l l & & s & & a 0 ( ) } } } } , i s F u n c t i o n : f u n c t i o n ( c ) { r e t u r n   a 1 . c a l l ( c ) = = = " [ o b j e c t   F u n c t i o n ] " } , i s A r r a y : f u n c t i o n ( c ) { r e t u r n   a 1 . c a l l ( c ) = = = " [ o b j e c t   A r r a y ] " } , i s P l a i n O b j e c t : f u n c t i o n ( s ) { i f ( ! s | | a 1 . c a l l ( s ) ! = = " [ o b j e c t   O b j e c t ] " | | s . n o d e T y p e | | s . s e t I n t e r v a l ) { r e t u r n   f a l s e } i f ( s . c o n s t r u c t o r & & ! a V . c a l l ( s , " c o n s t r u c t o r " ) & & ! a V . c a l l ( s . c o n s t r u c t o r . p r o t o t y p e , " i s P r o t o t y p e O f " ) ) { r e t u r n   f a l s e } v a r   c ; f o r ( c   i n   s ) { } r e t u r n   c = = = I | | a V . c a l l ( s , c ) } , i s E m p t y O b j e c t : f u n c t i o n ( s ) { f o r ( v a r   c   i n   s ) { r e t u r n   f a l s e } r e t u r n   t r u e } , e r r o r : f u n c t i o n ( c ) { t h r o w   c } , p a r s e J S O N : f u n c t i o n ( c ) { i f ( t y p e o f   c ! = = " s t r i n g " | | ! c ) { r e t u r n   n u l l } c = a h . t r i m ( c ) ; i f ( / ^ [ \ ] , : { } \ s ] * $ / . t e s t ( c . r e p l a c e ( / \ \ ( ? : [ " \ \ \ / b f n r t ] | u [ 0 - 9 a - f A - F ] { 4 } ) / g , " @ " ) . r e p l a c e ( / " [ ^ " \ \ \ n \ r ] * " | t r u e | f a l s e | n u l l | - ? \ d + ( ? : \ . \ d * ) ? ( ? : [ e E ] [ + \ - ] ? \ d + ) ? / g , " ] " ) . r e p l a c e ( / ( ? : ^ | : | , ) ( ? : \ s * \ [ ) + / g , " " ) ) ) { r e t u r n   a O . J S O N & & a O . J S O N . p a r s e ? a O . J S O N . p a r s e ( c ) : ( n e w   F u n c t i o n ( " r e t u r n   " + c ) ) ( ) } e l s e { a h . e r r o r ( " I n v a l i d   J S O N :   " + c ) } } , n o o p : f u n c t i o n ( ) { } , g l o b a l E v a l : f u n c t i o n ( s ) { i f ( s & & a n . t e s t ( s ) ) { v a r   c = M . 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 ] | | M . d o c u m e n t E l e m e n t , w = M . c r e a t e E l e m e n t ( " s c r i p t " ) ; w . t y p e = " t e x t / j a v a s c r i p t " ; i f ( a h . s u p p o r t . s c r i p t E v a l ) { w . a p p e n d C h i l d ( M . c r e a t e T e x t N o d e ( s ) ) } e l s e { w . t e x t = s } c . i n s e r t B e f o r e ( w , c . f i r s t C h i l d ) ; c . r e m o v e C h i l d ( w ) } } , n o d e N a m e : f u n c t i o n ( s , c ) { r e t u r n   s . n o d e N a m e & & s . n o d e N a m e . t o U p p e r C a s e ( ) = = = c . t o U p p e r C a s e ( ) } , e a c h : f u n c t i o n ( s , c , J ) { v a r   F , G = 0 , w = s . l e n g t h , A = w = = = I | | a h . i s F u n c t i o n ( s ) ; i f ( J ) { i f ( A ) { f o r ( F   i n   s ) { i f ( c . a p p l y ( s [ F ] , J ) = = = f a l s e ) { b r e a k } } } e l s e { f o r ( ; G < w ; ) { i f ( c . a p p l y ( s [ G + + ] , J ) = = = f a l s e ) { b r e a k } } } } e l s e { i f ( A ) { f o r ( F   i n   s ) { i f ( c . c a l l ( s [ F ] , F , s [ F ] ) = = = f a l s e ) { b r e a k } } } e l s e { f o r ( J = s [ 0 ] ; G < w & & c . c a l l ( J , G , J ) ! = = f a l s e ; J = s [ + + G ] ) { } } } r e t u r n   s } , t r i m : f u n c t i o n ( c ) { r e t u r n ( c | | " " ) . r e p l a c e ( H , " " ) } , m a k e A r r a y : f u n c t i o n ( s , c ) { c = c | | [ ] ; i f ( s ! = n u l l ) { s . l e n g t h = = n u l l | | t y p e o f   s = = = " s t r i n g " | | a h . i s F u n c t i o n ( s ) | | t y p e o f   s ! = = " f u n c t i o n " & & s . s e t I n t e r v a l ? a y . c a l l ( c , s ) : a h . m e r g e ( c , s ) } r e t u r n   c } , i n A r r a y : f u n c t i o n ( s , c ) { i f ( c . i n d e x O f ) { r e t u r n   c . i n d e x O f ( s ) } f o r ( v a r   A = 0 , w = c . l e n g t h ; A < w ; A + + ) { i f ( c [ A ] = = = s ) { r e t u r n   A } } r e t u r n   - 1 } , m e r g e : f u n c t i o n ( s , c ) { v a r   F = s . l e n g t h , w = 0 ; i f ( t y p e o f   c . l e n g t h = = = " n u m b e r " ) { f o r ( v a r   A = c . l e n g t h ; w < A ; w + + ) { s [ F + + ] = c [ w ] } } e l s e { f o r ( ; c [ w ] ! = = I ; ) { s [ F + + ] = c [ w + + ] } } s . l e n g t h = F ; r e t u r n   s } , g r e p : f u n c t i o n ( s , c , G ) { f o r ( v a r   A = [ ] , F = 0 , w = s . l e n g t h ; F < w ; F + + ) { ! G ! = = ! c ( s [ F ] , F ) & & A . p u s h ( s [ F ] ) } r e t u r n   A } , m a p : f u n c t i o n ( s , c , J ) { f o r ( v a r   F = [ ] , G , w = 0 , A = s . l e n g t h ; w < A ; w + + ) { G = c ( s [ w ] , w , J ) ; i f ( G ! = n u l l ) { F [ F . l e n g t h ] = G } } r e t u r n   F . c o n c a t . a p p l y ( [ ] , F ) } , g u i d : 1 , p r o x y : f u n c t i o n ( s , c , w ) { i f ( a r g u m e n t s . l e n g t h = = = 2 ) { i f ( t y p e o f   c = = = " s t r i n g " ) { w = s ; s = w [ c ] ; c = I } e l s e { i f ( c & & ! a h . i s F u n c t i o n ( c ) ) { w = c ; c = I } } } i f ( ! c & & s ) { c = f u n c t i o n ( ) { r e t u r n   s . a p p l y ( w | | t h i s , a r g u m e n t s ) } } i f ( s ) { c . g u i d = s . g u i d = s . g u i d | | c . g u i d | | a h . g u i d + + } r e t u r n   c } , u a M a t c h : f u n c t i o n ( c ) { c = c . t o L o w e r C a s e ( ) ; c = / ( w e b k i t ) [   \ / ] ( [ \ w . ] + ) / . e x e c ( c ) | | / ( o p e r a ) ( ? : . * v e r s i o n ) ? [   \ / ] ( [ \ w . ] + ) / . e x e c ( c ) | | / ( m s i e )   ( [ \ w . ] + ) / . e x e c ( c ) | | ! / c o m p a t i b l e / . t e s t ( c ) & & / ( m o z i l l a ) ( ? : . * ?   r v : ( [ \ w . ] + ) ) ? / . e x e c ( c ) | | [ ] ; r e t u r n { b r o w s e r : c [ 1 ] | | " " , v e r s i o n : c [ 2 ] | | " 0 " } } , b r o w s e r : { } } ) ; a x = a h . u a M a t c h ( a x ) ; i f ( a x . b r o w s e r ) { a h . b r o w s e r [ a x . b r o w s e r ] = t r u e ; a h . b r o w s e r . v e r s i o n = a x . v e r s i o n } i f ( a h . b r o w s e r . w e b k i t ) { a h . b r o w s e r . s a f a r i = t r u e } i f ( a 6 ) { a h . i n A r r a y = f u n c t i o n ( s , c ) { r e t u r n   a 6 . c a l l ( c , s ) } } a t = a h ( M ) ; i f ( M . a d d E v e n t L i s t e n e r ) { a B = f u n c t i o n ( ) { M . r e m o v e E v e n t L i s t e n e r ( " D O M C o n t e n t L o a d e d " , a B , f a l s e ) ; a h . r e a d y ( ) } } e l s e { i f ( M . a t t a c h E v e n t ) { a B = f u n c t i o n ( ) { i f ( M . r e a d y S t a t e = = = " c o m p l e t e " ) { M . d e t a c h E v e n t ( " o n r e a d y s t a t e c h a n g e " , a B ) ; a h . r e a d y ( ) } } } } ( f u n c t i o n ( ) { a h . s u p p o r t = { } ; v a r   L = M . d o c u m e n t E l e m e n t , K = M . c r e a t e E l e m e n t ( " s c r i p t " ) , J = M . c r e a t e E l e m e n t ( " d i v " ) , F = " s c r i p t " + a F ( ) ; J . s t y l e . d i s p l a y = " n o n e " ; J . i n n e r H T M L = "       < l i n k / > < t a b l e > < / t a b l e > < a   h r e f = ' / a '   s t y l e = ' c o l o r : r e d ; f l o a t : l e f t ; o p a c i t y : . 5 5 ; ' > a < / a > < i n p u t   t y p e = ' c h e c k b o x ' / > " ; v a r   G = J . g e t E l e m e n t s B y T a g N a m e ( " * " ) , w = J . g e t E l e m e n t s B y T a g N a m e ( " a " ) [ 0 ] ; i f ( ! ( ! G | | ! G . l e n g t h | | ! w ) ) { a h . s u p p o r t = { l e a d i n g W h i t e s p a c e : J . f i r s t C h i l d . n o d e T y p e = = = 3 , t b o d y : ! J . g e t E l e m e n t s B y T a g N a m e ( " t b o d y " ) . l e n g t h , h t m l S e r i a l i z e : ! ! J . g e t E l e m e n t s B y T a g N a m e ( " l i n k " ) . l e n g t h , s t y l e : / r e d / . t e s t ( w . g e t A t t r i b u t e ( " s t y l e " ) ) , h r e f N o r m a l i z e d : w . g e t A t t r i b u t e ( " h r e f " ) = = = " / a " , o p a c i t y : / ^ 0 . 5 5 $ / . t e s t ( w . s t y l e . o p a c i t y ) , c s s F l o a t : ! ! w . s t y l e . c s s F l o a t , c h e c k O n : J . g e t E l e m e n t s B y T a g N a m e ( " i n p u t " ) [ 0 ] . v a l u e = = = " o n " , o p t S e l e c t e d : M . c r e a t e E l e m e n t ( " s e l e c t " ) . a p p e n d C h i l d ( M . c r e a t e E l e m e n t ( " o p t i o n " ) ) . s e l e c t e d , p a r e n t N o d e : J . r e m o v e C h i l d ( J . a p p e n d C h i l d ( M . c r e a t e E l e m e n t ( " d i v " ) ) ) . p a r e n t N o d e = = = n u l l , d e l e t e E x p a n d o : t r u e , c h e c k C l o n e : f a l s e , s c r i p t E v a l : f a l s e , n o C l o n e E v e n t : t r u e , b o x M o d e l : n u l l } ; K . t y p e = " t e x t / j a v a s c r i p t " ; t r y { K . a p p e n d C h i l d ( M . c r e a t e T e x t N o d e ( " w i n d o w . " + F + " = 1 ; " ) ) } c a t c h ( A ) { } L . i n s e r t B e f o r e ( K , L . f i r s t C h i l d ) ; i f ( a O [ F ] ) { a h . s u p p o r t . s c r i p t E v a l = t r u e ; d e l e t e   a O [ F ] } t r y { d e l e t e   K . t e s t } c a t c h ( c ) { a h . s u p p o r t . d e l e t e E x p a n d o = f a l s e } L . r e m o v e C h i l d ( K ) ; i f ( J . a t t a c h E v e n t & & J . f i r e E v e n t ) { J . a t t a c h E v e n t ( " o n c l i c k " , f u n c t i o n   s ( ) { a h . s u p p o r t . n o C l o n e E v e n t = f a l s e ; J . d e t a c h E v e n t ( " o n c l i c k " , s ) } ) ; J . c l o n e N o d e ( t r u e ) . f i r e E v e n t ( " o n c l i c k " ) } J = M . c r e a t e E l e m e n t ( " d i v " ) ; J . i n n e r H T M L = " < i n p u t   t y p e = ' r a d i o '   n a m e = ' r a d i o t e s t '   c h e c k e d = ' c h e c k e d ' / > " ; L = M . c r e a t e D o c u m e n t F r a g m e n t ( ) ; L . a p p e n d C h i l d ( J . f i r s t C h i l d ) ; a h . s u p p o r t . c h e c k C l o n e = L . c l o n e N o d e ( t r u e ) . c l o n e N o d e ( t r u e ) . l a s t C h i l d . c h e c k e d ; a h ( f u n c t i o n ( ) { v a r   N = M . c r e a t e E l e m e n t ( " d i v " ) ; N . s t y l e . w i d t h = N . s t y l e . p a d d i n g L e f t = " 1 p x " ; M . b o d y . a p p e n d C h i l d ( N ) ; a h . b o x M o d e l = a h . s u p p o r t . b o x M o d e l = N . o f f s e t W i d t h = = = 2 ; M . b o d y . r e m o v e C h i l d ( N ) . s t y l e . d i s p l a y = " n o n e " } ) ; L = f u n c t i o n ( N ) { v a r   P = M . c r e a t e E l e m e n t ( " d i v " ) ; N = " o n " + N ; v a r   O = N   i n   P ; i f ( ! O ) { P . s e t A t t r i b u t e ( N , " r e t u r n ; " ) ; O = t y p e o f   P [ N ] = = = " f u n c t i o n " } r e t u r n   O } ; a h . s u p p o r t . s u b m i t B u b b l e s = L ( " s u b m i t " ) ; a h . s u p p o r t . c h a n g e B u b b l e s = L ( " c h a n g e " ) ; L = K = J = G = w = n u l l } } ) ( ) ; a h . 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 " , r e a d o n l y : " r e a d O n l y " , m a x l e n g t h : " m a x L e n g t h " , c e l l s p a c i n g : " c e l l S p a c i n g " , r o w s p a n : " r o w S p a n " , c o l s p a n : " c o l S p a n " , t a b i n d e x : " t a b I n d e x " , u s e m a p : " u s e M a p " , f r a m e b o r d e r : " f r a m e B o r d e r " } ; v a r   a H = " j Q u e r y " + a F ( ) , e = 0 , a S = { } ; a h . e x t e n d ( { c a c h e : { } , e x p a n d o : a H , n o D a t a : { e m b e d : t r u e , o b j e c t : t r u e , a p p l e t : t r u e } , d a t a : f u n c t i o n ( s , c , F ) { i f ( ! ( s . n o d e N a m e & & a h . n o D a t a [ s . n o d e N a m e . t o L o w e r C a s e ( ) ] ) ) { s = s = = a O ? a S : s ; v a r   w = s [ a H ] , A = a h . c a c h e ; i f ( ! w & & t y p e o f   c = = = " s t r i n g " & & F = = = I ) { r e t u r n   n u l l } w | | ( w = + + e ) ; i f ( t y p e o f   c = = = " o b j e c t " ) { s [ a H ] = w ; A [ w ] = a h . e x t e n d ( t r u e , { } , c ) } e l s e { i f ( ! A [ w ] ) { s [ a H ] = w ; A [ w ] = { } } } s = A [ w ] ; i f ( F ! = = I ) { s [ c ] = F } r e t u r n   t y p e o f   c = = = " s t r i n g " ? s [ c ] : s } } , r e m o v e D a t a : f u n c t i o n ( s , c ) { i f ( ! ( s . n o d e N a m e & & a h . n o D a t a [ s . n o d e N a m e . t o L o w e r C a s e ( ) ] ) ) { s = s = = a O ? a S : s ; v a r   F = s [ a H ] , w = a h . c a c h e , A = w [ F ] ; i f ( c ) { i f ( A ) { d e l e t e   A [ c ] ; a h . i s E m p t y O b j e c t ( A ) & & a h . r e m o v e D a t a ( s ) } } e l s e { i f ( a h . s u p p o r t . d e l e t e E x p a n d o ) { d e l e t e   s [ a h . e x p a n d o ] } e l s e { s . r e m o v e A t t r i b u t e & & s . r e m o v e A t t r i b u t e ( a h . e x p a n d o ) } d e l e t e   w [ F ] } } } } ) ; a h . f n . e x t e n d ( { d a t a : f u n c t i o n ( s , c ) { i f ( t y p e o f   s = = = " u n d e f i n e d " & & t h i s . l e n g t h ) { r e t u r n   a h . d a t a ( t h i s [ 0 ] ) } e l s e { i f ( t y p e o f   s = = = " o b j e c t " ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { a h . d a t a ( t h i s , s ) } ) } } v a r   A = s . s p l i t ( " . " ) ; A [ 1 ] = A [ 1 ] ? " . " + A [ 1 ] : " " ; i f ( c = = = I ) { v a r   w = 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 " + A [ 1 ] + " ! " , [ A [ 0 ] ] ) ; i f ( w = = = I & & t h i s . l e n g t h ) { w = a h . d a t a ( t h i s [ 0 ] , s ) } r e t u r n   w = = = I & & A [ 1 ] ? t h i s . d a t a ( A [ 0 ] ) : w } 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 " + A [ 1 ] + " ! " , [ A [ 0 ] , c ] ) . e a c h ( f u n c t i o n ( ) { a h . d a t a ( t h i s , s , c ) } ) } } , r e m o v e D a t a : f u n c t i o n ( c ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { a h . r e m o v e D a t a ( t h i s , c ) } ) } } ) ; a h . e x t e n d ( { q u e u e : f u n c t i o n ( s , c , A ) { i f ( s ) { c = ( c | | " f x " ) + " q u e u e " ; v a r   w = a h . d a t a ( s , c ) ; i f ( ! A ) { r e t u r n   w | | [ ] } i f ( ! w | | a h . i s A r r a y ( A ) ) { w = a h . d a t a ( s , c , a h . m a k e A r r a y ( A ) ) } e l s e { w . p u s h ( A ) } r e t u r n   w } } , d e q u e u e : f u n c t i o n ( s , c ) { c = c | | " f x " ; v a r   A = a h . q u e u e ( s , c ) , w = A . s h i f t ( ) ; i f ( w = = = " i n p r o g r e s s " ) { w = A . s h i f t ( ) } i f ( w ) { c = = = " f x " & & A . u n s h i f t ( " i n p r o g r e s s " ) ; w . c a l l ( s , f u n c t i o n ( ) { a h . d e q u e u e ( s , c ) } ) } } } ) ; a h . f n . e x t e n d ( { q u e u e : f u n c t i o n ( s , c ) { i f ( t y p e o f   s ! = = " s t r i n g " ) { c = s ; s = " f x " } i f ( c = = = I ) { r e t u r n   a h . q u e u e ( t h i s [ 0 ] , s ) } 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   w = a h . q u e u e ( t h i s , s , c ) ; s = = = " f x " & & w [ 0 ] ! = = " i n p r o g r e s s " & & a h . d e q u e u e ( t h i s , s ) } ) } , d e q u e u e : f u n c t i o n ( c ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { a h . d e q u e u e ( t h i s , c ) } ) } , d e l a y : f u n c t i o n ( s , c ) { s = a h . f x ? a h . f x . s p e e d s [ s ] | | s : s ; c = c | | " f x " ; r e t u r n   t h i s . q u e u e ( c , f u n c t i o n ( ) { v a r   w = t h i s ; s e t T i m e o u t ( f u n c t i o n ( ) { a h . d e q u e u e ( w , c ) } , s ) } ) } , c l e a r Q u e u e : f u n c t i o n ( c ) { r e t u r n   t h i s . q u e u e ( c | | " f x " , [ ] ) } } ) ; v a r   b e = / [ \ n \ t ] / g , U = / \ s + / , a 8 = / \ r / g , a M = / h r e f | s r c | s t y l e / , a U = / ( b u t t o n | i n p u t ) / i , a w = / ( b u t t o n | i n p u t | o b j e c t | s e l e c t | t e x t a r e a ) / i , S = / ^ ( a | a r e a ) $ / i , a Y = / r a d i o | c h e c k b o x / ; a h . f n . e x t e n d ( { a t t r : f u n c t i o n ( s , c ) { r e t u r n   a p ( t h i s , s , c , t r u e , a h . a t t r ) } , r e m o v e A t t r : f u n c t i o n ( c ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { a h . a t t r ( t h i s , c , " " ) ; 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 ( c ) } ) } , a d d C l a s s : f u n c t i o n ( L ) { i f ( a h . i s F u n c t i o n ( L ) ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( O ) { v a r   N = a h ( t h i s ) ; N . a d d C l a s s ( L . c a l l ( t h i s , O , N . a t t r ( " c l a s s " ) ) ) } ) } i f ( L & & t y p e o f   L = = = " s t r i n g " ) { f o r ( v a r   K = ( L | | " " ) . s p l i t ( U ) , J = 0 , F = t h i s . l e n g t h ; J < F ; J + + ) { v a r   G = t h i s [ J ] ; i f ( G . n o d e T y p e = = = 1 ) { i f ( G . c l a s s N a m e ) { f o r ( v a r   w = "   " + G . c l a s s N a m e + "   " , A = G . c l a s s N a m e , c = 0 , s = K . l e n g t h ; c < s ; c + + ) { i f ( w . i n d e x O f ( "   " + K [ c ] + "   " ) < 0 ) { A + = "   " + K [ c ] } } G . c l a s s N a m e = a h . t r i m ( A ) } e l s e { G . c l a s s N a m e = L } } } } r e t u r n   t h i s } , r e m o v e C l a s s : f u n c t i o n ( s ) { i f ( a h . i s F u n c t i o n ( s ) ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( L ) { v a r   N = a h ( t h i s ) ; N . r e m o v e C l a s s ( s . c a l l ( t h i s , L , N . a t t r ( " c l a s s " ) ) ) } ) } i f ( s & & t y p e o f   s = = = " s t r i n g " | | s = = = I ) { f o r ( v a r   c = ( s | | " " ) . s p l i t ( U ) , K = 0 , F = t h i s . l e n g t h ; K < F ; K + + ) { v a r   G = t h i s [ K ] ; i f ( G . n o d e T y p e = = = 1 & & G . c l a s s N a m e ) { i f ( s ) { f o r ( v a r   w = ( "   " + G . c l a s s N a m e + "   " ) . r e p l a c e ( b e , "   " ) , A = 0 , J = c . l e n g t h ; A < J ; A + + ) { w = w . r e p l a c e ( "   " + c [ A ] + "   " , "   " ) } G . c l a s s N a m e = a h . t r i m ( w ) } e l s e { G . c l a s s N a m e = " " } } } } r e t u r n   t h i s } , t o g g l e C l a s s : f u n c t i o n ( s , c ) { v a r   A = t y p e o f   s , w = t y p e o f   c = = = " b o o l e a n " ; i f ( a h . i s F u n c t i o n ( s ) ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( G ) { v a r   F = a h ( t h i s ) ; F . t o g g l e C l a s s ( s . c a l l ( t h i s , G , F . a t t r ( " c l a s s " ) , c ) , c ) } ) } r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { i f ( A = = = " s t r i n g " ) { f o r ( v a r   K , G = 0 , J = a h ( t h i s ) , L = c , F = s . s p l i t ( U ) ; K = F [ G + + ] ; ) { L = w ? L : ! J . h a s C l a s s ( K ) ; J [ L ? " a d d C l a s s " : " r e m o v e C l a s s " ] ( K ) } } e l s e { i f ( A = = = " u n d e f i n e d " | | A = = = " b o o l e a n " ) { t h i s . c l a s s N a m e & & a h . d a t a ( t h i s , " _ _ c l a s s N a m e _ _ " , t h i s . c l a s s N a m e ) ; t h i s . c l a s s N a m e = t h i s . c l a s s N a m e | | s = = = f a l s e ? " " : a h . d a t a ( t h i s , " _ _ c l a s s N a m e _ _ " ) | | " " } } } ) } , h a s C l a s s : f u n c t i o n ( s ) { s = "   " + s + "   " ; f o r ( v a r   c = 0 , w = t h i s . l e n g t h ; c < w ; c + + ) { i f ( ( "   " + t h i s [ c ] . c l a s s N a m e + "   " ) . r e p l a c e ( b e , "   " ) . i n d e x O f ( s ) > - 1 ) { r e t u r n   t r u e } } r e t u r n   f a l s e } , v a l : f u n c t i o n ( s ) { i f ( s = = = I ) { v a r   c = t h i s [ 0 ] ; i f ( c ) { i f ( a h . n o d e N a m e ( c , " o p t i o n " ) ) { r e t u r n ( c . a t t r i b u t e s . v a l u e | | { } ) . s p e c i f i e d ? c . v a l u e : c . t e x t } i f ( a h . n o d e N a m e ( c , " s e l e c t " ) ) { v a r   K = c . s e l e c t e d I n d e x , F = [ ] , G = c . o p t i o n s ; c = c . t y p e = = = " s e l e c t - o n e " ; i f ( K < 0 ) { r e t u r n   n u l l } v a r   w = c ? K : 0 ; f o r ( K = c ? K + 1 : G . l e n g t h ; w < K ; w + + ) { v a r   A = G [ w ] ; i f ( A . s e l e c t e d ) { s = a h ( A ) . v a l ( ) ; i f ( c ) { r e t u r n   s } F . p u s h ( s ) } } r e t u r n   F } i f ( a Y . t e s t ( c . t y p e ) & & ! a h . s u p p o r t . c h e c k O n ) { r e t u r n   c . g e t A t t r i b u t e ( " v a l u e " ) = = = n u l l ? " o n " : c . v a l u e } r e t u r n ( c . v a l u e | | " " ) . r e p l a c e ( a 8 , " " ) } r e t u r n   I } v a r   J = a h . i s F u n c t i o n ( s ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( L ) { v a r   P = a h ( t h i s ) , O = s ; i f ( t h i s . n o d e T y p e = = = 1 ) { i f ( J ) { O = s . c a l l ( t h i s , L , P . v a l ( ) ) } i f ( t y p e o f   O = = = " n u m b e r " ) { O + = " " } i f ( a h . i s A r r a y ( O ) & & a Y . t e s t ( t h i s . t y p e ) ) { t h i s . c h e c k e d = a h . i n A r r a y ( P . v a l ( ) , O ) > = 0 } e l s e { i f ( a h . n o d e N a m e ( t h i s , " s e l e c t " ) ) { v a r   N = a h . m a k e A r r a y ( O ) ; a h ( " 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 = a h . i n A r r a y ( a h ( t h i s ) . v a l ( ) , N ) > = 0 } ) ; i f ( ! N . l e n g t h ) { t h i s . s e l e c t e d I n d e x = - 1 } } e l s e { t h i s . v a l u e = O } } } } ) } } ) ; a h . e x t e n d ( { a t t r F n : { v a l : t r u e , c s s : t r u e , h t m l : t r u e , t e x t : t r u e , d a t a : t r u e , w i d t h : t r u e , h e i g h t : t r u e , o f f s e t : t r u e } , a t t r : f u n c t i o n ( s , c , G , A ) { i f ( ! s | | s . n o d e T y p e = = = 3 | | s . n o d e T y p e = = = 8 ) { r e t u r n   I } i f ( A & & c   i n   a h . a t t r F n ) { r e t u r n   a h ( s ) [ c ] ( G ) } A = s . n o d e T y p e ! = = 1 | | ! a h . i s X M L D o c ( s ) ; v a r   F = G ! = = I ; c = A & & a h . p r o p s [ c ] | | c ; i f ( s . n o d e T y p e = = = 1 ) { v a r   w = a M . t e s t ( c ) ; i f ( c   i n   s & & A & & ! w ) { i f ( F ) { c = = = " t y p e " & & a U . t e s t ( s . n o d e N a m e ) & & s . p a r e n t N o d e & & a h . e r r o r ( " 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 " ) ; s [ c ] = G } i f ( a h . n o d e N a m e ( s , " f o r m " ) & & s . g e t A t t r i b u t e N o d e ( c ) ) { r e t u r n   s . g e t A t t r i b u t e N o d e ( c ) . n o d e V a l u e } i f ( c = = = " t a b I n d e x " ) { r e t u r n ( c = s . g e t A t t r i b u t e N o d e ( " t a b I n d e x " ) ) & & c . s p e c i f i e d ? c . v a l u e : a w . t e s t ( s . n o d e N a m e ) | | S . t e s t ( s . n o d e N a m e ) & & s . h r e f ? 0 : I } r e t u r n   s [ c ] } i f ( ! a h . s u p p o r t . s t y l e & & A & & c = = = " s t y l e " ) { i f ( F ) { s . s t y l e . c s s T e x t = " " + G } r e t u r n   s . s t y l e . c s s T e x t } F & & s . s e t A t t r i b u t e ( c , " " + G ) ; s = ! a h . s u p p o r t . h r e f N o r m a l i z e d & & A & & w ? s . g e t A t t r i b u t e ( c , 2 ) : s . g e t A t t r i b u t e ( c ) ; r e t u r n   s = = = n u l l ? I : s } r e t u r n   a h . s t y l e ( s , c , G ) } } ) ; v a r   a z = / \ . ( . * ) $ / , r = f u n c t i o n ( c ) { r e t u r n   c . r e p l a c e ( / [ ^ \ w \ s \ . \ | ` ] / g , f u n c t i o n ( s ) { r e t u r n " \ \ " + s } ) } ; a h . e v e n t = { a d d : f u n c t i o n ( P , O , L , J ) { i f ( ! ( P . n o d e T y p e = = = 3 | | P . n o d e T y p e = = = 8 ) ) { i f ( P . s e t I n t e r v a l & & P ! = = a O & & ! P . f r a m e E l e m e n t ) { P = a O } v a r   K , F ; i f ( L . h a n d l e r ) { K = L ; L = K . h a n d l e r } i f ( ! L . g u i d ) { L . g u i d = a h . g u i d + + } i f ( F = a h . d a t a ( P ) ) { v a r   G = F . e v e n t s = F . e v e n t s | | { } , s = F . h a n d l e ; i f ( ! s ) { F . h a n d l e = s = f u n c t i o n ( ) { r e t u r n   t y p e o f   a h ! = = " u n d e f i n e d " & & ! a h . e v e n t . t r i g g e r e d ? a h . e v e n t . h a n d l e . a p p l y ( s . e l e m , a r g u m e n t s ) : I } } s . e l e m = P ; O = O . s p l i t ( "   " ) ; f o r ( v a r   A , w = 0 , c ; A = O [ w + + ] ; ) { F = K ? a h . e x t e n d ( { } , K ) : { h a n d l e r : L , d a t a : J } ; i f ( A . i n d e x O f ( " . " ) > - 1 ) { c = A . s p l i t ( " . " ) ; A = c . s h i f t ( ) ; F . n a m e s p a c e = c . s l i c e ( 0 ) . s o r t ( ) . j o i n ( " . " ) } e l s e { c = [ ] ; F . n a m e s p a c e = " " } F . t y p e = A ; F . g u i d = L . g u i d ; v a r   Q = G [ A ] , N = a h . e v e n t . s p e c i a l [ A ] | | { } ; i f ( ! Q ) { Q = G [ A ] = [ ] ; i f ( ! N . s e t u p | | N . s e t u p . c a l l ( P , J , c , s ) = = = f a l s e ) { i f ( P . a d d E v e n t L i s t e n e r ) { P . a d d E v e n t L i s t e n e r ( A , s , f a l s e ) } e l s e { P . a t t a c h E v e n t & & P . a t t a c h E v e n t ( " o n " + A , s ) } } } i f ( N . a d d ) { N . a d d . c a l l ( P , F ) ; i f ( ! F . h a n d l e r . g u i d ) { F . h a n d l e r . g u i d = L . g u i d } } Q . p u s h ( F ) ; a h . e v e n t . g l o b a l [ A ] = t r u e } P = n u l l } } } , g l o b a l : { } , r e m o v e : f u n c t i o n ( R , Q , O , L ) { i f ( ! ( R . n o d e T y p e = = = 3 | | R . n o d e T y p e = = = 8 ) ) { v a r   N , J = 0 , K , A , G , F , c , T , P = a h . d a t a ( R ) , s = P & & P . e v e n t s ; i f ( P & & s ) { i f ( Q & & Q . t y p e ) { O = Q . h a n d l e r ; Q = Q . t y p e } i f ( ! Q | | t y p e o f   Q = = = " s t r i n g " & & Q . c h a r A t ( 0 ) = = = " . " ) { Q = Q | | " " ; f o r ( N   i n   s ) { a h . e v e n t . r e m o v e ( R , N + Q ) } } e l s e { f o r ( Q = Q . s p l i t ( "   " ) ; N = Q [ J + + ] ; ) { F = N ; K = N . i n d e x O f ( " . " ) < 0 ; A = [ ] ; i f ( ! K ) { A = N . s p l i t ( " . " ) ; N = A . s h i f t ( ) ; G = n e w   R e g E x p ( " ( ^ | \ \ . ) " + a h . m a p ( A . s l i c e ( 0 ) . s o r t ( ) , r ) . j o i n ( " \ \ . ( ? : . * \ \ . ) ? " ) + " ( \ \ . | $ ) " ) } i f ( c = s [ N ] ) { i f ( O ) { F = a h . e v e n t . s p e c i a l [ N ] | | { } ; f o r ( w = L | | 0 ; w < c . l e n g t h ; w + + ) { T = c [ w ] ; i f ( O . g u i d = = = T . g u i d ) { i f ( K | | G . t e s t ( T . n a m e s p a c e ) ) { L = = n u l l & & c . s p l i c e ( w - - , 1 ) ; F . r e m o v e & & F . r e m o v e . c a l l ( R , T ) } i f ( L ! = n u l l ) { b r e a k } } } i f ( c . l e n g t h = = = 0 | | L ! = n u l l & & c . l e n g t h = = = 1 ) { i f ( ! F . t e a r d o w n | | F . t e a r d o w n . c a l l ( R , A ) = = = f a l s e ) { a G ( R , N , P . h a n d l e ) } d e l e t e   s [ N ] } } e l s e { f o r ( v a r   w = 0 ; w < c . l e n g t h ; w + + ) { T = c [ w ] ; i f ( K | | G . t e s t ( T . n a m e s p a c e ) ) { a h . e v e n t . r e m o v e ( R , F , T . h a n d l e r , w ) ; c . s p l i c e ( w - - , 1 ) } } } } } i f ( a h . i s E m p t y O b j e c t ( s ) ) { i f ( Q = P . h a n d l e ) { Q . e l e m = n u l l } d e l e t e   P . e v e n t s ; d e l e t e   P . h a n d l e ; a h . i s E m p t y O b j e c t ( P ) & & a h . r e m o v e D a t a ( R ) } } } } } , t r i g g e r : f u n c t i o n ( N , L , K , G ) { v a r   J = N . t y p e | | N ; i f ( ! G ) { N = t y p e o f   N = = = " o b j e c t " ? N [ a H ] ? N : a h . e x t e n d ( a h . E v e n t ( J ) , N ) : a h . E v e n t ( J ) ; i f ( J . i n d e x O f ( " ! " ) > = 0 ) { N . t y p e = J = J . s l i c e ( 0 , - 1 ) ; N . e x c l u s i v e = t r u e } i f ( ! K ) { N . s t o p P r o p a g a t i o n ( ) ; a h . e v e n t . g l o b a l [ J ] & & a h . e a c h ( a h . c a c h e , f u n c t i o n ( ) { t h i s . e v e n t s & & t h i s . e v e n t s [ J ] & & a h . e v e n t . t r i g g e r ( N , L , t h i s . h a n d l e . e l e m ) } ) } i f ( ! K | | K . n o d e T y p e = = = 3 | | K . n o d e T y p e = = = 8 ) { r e t u r n   I } N . r e s u l t = I ; N . t a r g e t = K ; L = a h . m a k e A r r a y ( L ) ; L . u n s h i f t ( N ) } N . c u r r e n t T a r g e t = K ; ( G = a h . d a t a ( K , " h a n d l e " ) ) & & G . a p p l y ( K , L ) ; G = K . p a r e n t N o d e | | K . o w n e r D o c u m e n t ; t r y { i f ( ! ( K & & K . n o d e N a m e & & a h . n o D a t a [ K . n o d e N a m e . t o L o w e r C a s e ( ) ] ) ) { i f ( K [ " o n " + J ] & & K [ " o n " + J ] . a p p l y ( K , L ) = = = f a l s e ) { N . r e s u l t = f a l s e } } } c a t c h ( A ) { } i f ( ! N . i s P r o p a g a t i o n S t o p p e d ( ) & & G ) { a h . e v e n t . t r i g g e r ( N , L , G , t r u e ) } e l s e { i f ( ! N . i s D e f a u l t P r e v e n t e d ( ) ) { G = N . t a r g e t ; v a r   F , c = a h . n o d e N a m e ( G , " a " ) & & J = = = " c l i c k " , w = a h . e v e n t . s p e c i a l [ J ] | | { } ; i f ( ( ! w . _ d e f a u l t | | w . _ d e f a u l t . c a l l ( K , N ) = = = f a l s e ) & & ! c & & ! ( G & & G . n o d e N a m e & & a h . n o D a t a [ G . n o d e N a m e . t o L o w e r C a s e ( ) ] ) ) { t r y { i f ( G [ J ] ) { i f ( F = G [ " o n " + J ] ) { G [ " o n " + J ] = n u l l } a h . e v e n t . t r i g g e r e d = t r u e ; G [ J ] ( ) } } c a t c h ( s ) { } i f ( F ) { G [ " o n " + J ] = F } a h . e v e n t . t r i g g e r e d = f a l s e } } } } , h a n d l e : f u n c t i o n ( s ) { v a r   c , J , F , G ; s = a r g u m e n t s [ 0 ] = a h . e v e n t . f i x ( s | | a O . e v e n t ) ; s . c u r r e n t T a r g e t = t h i s ; c = s . t y p e . i n d e x O f ( " . " ) < 0 & & ! s . e x c l u s i v e ; i f ( ! c ) { J = s . t y p e . s p l i t ( " . " ) ; s . t y p e = J . s h i f t ( ) ; F = n e w   R e g E x p ( " ( ^ | \ \ . ) " + J . s l i c e ( 0 ) . s o r t ( ) . j o i n ( " \ \ . ( ? : . * \ \ . ) ? " ) + " ( \ \ . | $ ) " ) } G = a h . d a t a ( t h i s , " e v e n t s " ) ; J = G [ s . t y p e ] ; i f ( G & & J ) { J = J . s l i c e ( 0 ) ; G = 0 ; f o r ( v a r   w = J . l e n g t h ; G < w ; G + + ) { v a r   A = J [ G ] ; i f ( c | | F . t e s t ( A . n a m e s p a c e ) ) { s . h a n d l e r = A . h a n d l e r ; s . d a t a = A . d a t a ; s . h a n d l e O b j = A ; A = A . h a n d l e r . a p p l y ( t h i s , a r g u m e n t s ) ; i f ( A ! = = I ) { s . r e s u l t = A ; i f ( A = = = f a l s e ) { s . p r e v e n t D e f a u l t ( ) ; s . s t o p P r o p a g a t i o n ( ) } } i f ( s . i s I m m e d i a t e P r o p a g a t i o n S t o p p e d ( ) ) { b r e a k } } } } r e t u r n   s . r e s u l t } , p r o p s : " a l t K e y   a t t r C h a n g e   a t t r N a m e   b u b b l e s   b u t t o n   c a n c e l a b l e   c h a r C o d e   c l i e n t X   c l i e n t Y   c t r l K e y   c u r r e n t T a r g e t   d a t a   d e t a i l   e v e n t P h a s e   f r o m E l e m e n t   h a n d l e r   k e y C o d e   l a y e r X   l a y e r Y   m e t a K e y   n e w V a l u e   o f f s e t X   o f f s e t Y   o r i g i n a l T a r g e t   p a g e X   p a g e Y   p r e v V a l u e   r e l a t e d N o d e   r e l a t e d T a r g e t   s c r e e n X   s c r e e n Y   s h i f t K e y   s r c E l e m e n t   t a r g e t   t o E l e m e n t   v i e w   w h e e l D e l t a   w h i c h " . s p l i t ( "   " ) , f i x : f u n c t i o n ( s ) { i f ( s [ a H ] ) { r e t u r n   s } v a r   c = s ; s = a h . E v e n t ( c ) ; f o r ( v a r   A = t h i s . p r o p s . l e n g t h , w ; A ; ) { w = t h i s . p r o p s [ - - A ] ; s [ w ] = c [ w ] } i f ( ! s . t a r g e t ) { s . t a r g e t = s . s r c E l e m e n t | | M } i f ( s . t a r g e t . n o d e T y p e = = = 3 ) { s . t a r g e t = s . t a r g e t . p a r e n t N o d e } i f ( ! s . r e l a t e d T a r g e t & & s . f r o m E l e m e n t ) { s . r e l a t e d T a r g e t = s . f r o m E l e m e n t = = = s . t a r g e t ? s . t o E l e m e n t : s . f r o m E l e m e n t } i f ( s . p a g e X = = n u l l & & s . c l i e n t X ! = n u l l ) { c = M . d o c u m e n t E l e m e n t ; A = M . b o d y ; s . p a g e X = s . c l i e n t X + ( c & & c . s c r o l l L e f t | | A & & A . s c r o l l L e f t | | 0 ) - ( c & & c . c l i e n t L e f t | | A & & A . c l i e n t L e f t | | 0 ) ; s . p a g e Y = s . c l i e n t Y + ( c & & c . s c r o l l T o p | | A & & A . s c r o l l T o p | | 0 ) - ( c & & c . c l i e n t T o p | | A & & A . c l i e n t T o p | | 0 ) } i f ( ! s . w h i c h & & ( s . c h a r C o d e | | s . c h a r C o d e = = = 0 ? s . c h a r C o d e : s . k e y C o d e ) ) { s . w h i c h = s . c h a r C o d e | | s . k e y C o d e } i f ( ! s . m e t a K e y & & s . c t r l K e y ) { s . m e t a K e y = s . c t r l K e y } i f ( ! s . w h i c h & & s . b u t t o n ! = = I ) { s . w h i c h = s . b u t t o n & 1 ? 1 : s . b u t t o n & 2 ? 3 : s . b u t t o n & 4 ? 2 : 0 } r e t u r n   s } , g u i d : 1 0 0 0 0 0 0 0 0 , p r o x y : a h . p r o x y , s p e c i a l : { r e a d y : { s e t u p : a h . b i n d R e a d y , t e a r d o w n : a h . n o o p } , l i v e : { a d d : f u n c t i o n ( c ) { a h . e v e n t . a d d ( t h i s , c . o r i g T y p e , a h . e x t e n d ( { } , c , { h a n d l e r : a g } ) ) } , r e m o v e : f u n c t i o n ( s ) { v a r   c = t r u e , w = s . o r i g T y p e . r e p l a c e ( a z , " " ) ; a h . e a c h ( a h . d a t a ( t h i s , " e v e n t s " ) . l i v e | | [ ] , f u n c t i o n ( ) { i f ( w = = = t h i s . o r i g T y p e . r e p l a c e ( a z , " " ) ) { r e t u r n   c = f a l s e } } ) ; c & & a h . e v e n t . r e m o v e ( t h i s , s . o r i g T y p e , a g ) } } , b e f o r e u n l o a d : { s e t u p : f u n c t i o n ( s , c , w ) { i f ( t h i s . s e t I n t e r v a l ) { t h i s . o n b e f o r e u n l o a d = w } r e t u r n   f a l s e } , t e a r d o w n : f u n c t i o n ( s , c ) { i f ( t h i s . o n b e f o r e u n l o a d = = = c ) { t h i s . o n b e f o r e u n l o a d = n u l l } } } } } ; v a r   a G = M . r e m o v e E v e n t L i s t e n e r ? f u n c t i o n ( s , c , w ) { s . r e m o v e E v e n t L i s t e n e r ( c , w , f a l s e ) } : f u n c t i o n ( s , c , w ) { s . d e t a c h E v e n t ( " o n " + c , w ) } ; a h . E v e n t = f u n c t i o n ( c ) { i f ( ! t h i s . p r e v e n t D e f a u l t ) { r e t u r n   n e w   a h . E v e n t ( c ) } i f ( c & & c . t y p e ) { t h i s . o r i g i n a l E v e n t = c ; t h i s . t y p e = c . t y p e } e l s e { t h i s . t y p e = c } t h i s . t i m e S t a m p = a F ( ) ; t h i s [ a H ] = t r u e } ; a h . E v e n t . p r o t o t y p e = { p r e v e n t D e f a u l t : f u n c t i o n ( ) { t h i s . i s D e f a u l t P r e v e n t e d = a m ; v a r   c = t h i s . o r i g i n a l E v e n t ; i f ( c ) { c . p r e v e n t D e f a u l t & & c . p r e v e n t D e f a u l t ( ) ; c . r e t u r n V a l u e = f a l s e } } , s t o p P r o p a g a t i o n : f u n c t i o n ( ) { t h i s . i s P r o p a g a t i o n S t o p p e d = a m ; v a r   c = t h i s . o r i g i n a l E v e n t ; i f ( c ) { c . s t o p P r o p a g a t i o n & & c . s t o p P r o p a g a t i o n ( ) ; c . c a n c e l B u b b l e = t r u e } } , s t o p I m m e d i a t e P r o p a g a t i o n : f u n c t i o n ( ) { t h i s . i s I m m e d i a t e P r o p a g a t i o n S t o p p e d = a m ; t h i s . s t o p P r o p a g a t i o n ( ) } , i s D e f a u l t P r e v e n t e d : a o , i s P r o p a g a t i o n S t o p p e d : a o , i s I m m e d i a t e P r o p a g a t i o n S t o p p e d : a o } ; v a r   a e = f u n c t i o n ( s ) { v a r   c = s . r e l a t e d T a r g e t ; t r y { f o r ( ; c & & c ! = = t h i s ; ) { c = c . p a r e n t N o d e } i f ( c ! = = t h i s ) { s . t y p e = s . d a t a ; a h . 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 ) } } c a t c h ( w ) { } } , x = f u n c t i o n ( c ) { c . t y p e = c . d a t a ; a h . 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 ) } ; a h . e a c h ( { m o u s e e n t e r : " m o u s e o v e r " , m o u s e l e a v e : " m o u s e o u t " } , f u n c t i o n ( s , c ) { a h . e v e n t . s p e c i a l [ s ] = { s e t u p : f u n c t i o n ( w ) { a h . e v e n t . a d d ( t h i s , c , w & & w . s e l e c t o r ? x : a e , s ) } , t e a r d o w n : f u n c t i o n ( w ) { a h . e v e n t . r e m o v e ( t h i s , c , w & & w . s e l e c t o r ? x : a e ) } } } ) ; i f ( ! a h . s u p p o r t . s u b m i t B u b b l e s ) { a h . e v e n t . s p e c i a l . s u b m i t = { s e t u p : f u n c t i o n ( ) { i f ( t h i s . n o d e N a m e . t o L o w e r C a s e ( ) ! = = " f o r m " ) { a h . e v e n t . a d d ( t h i s , " c l i c k . s p e c i a l S u b m i t " , f u n c t i o n ( s ) { v a r   c = s . t a r g e t , w = c . t y p e ; i f ( ( w = = = " s u b m i t " | | w = = = " i m a g e " ) & & a h ( c ) . c l o s e s t ( " f o r m " ) . l e n g t h ) { r e t u r n   a K ( " s u b m i t " , t h i s , a r g u m e n t s ) } } ) ; a h . e v e n t . a d d ( t h i s , " k e y p r e s s . s p e c i a l S u b m i t " , f u n c t i o n ( s ) { v a r   c = s . t a r g e t , w = c . t y p e ; i f ( ( w = = = " t e x t " | | w = = = " p a s s w o r d " ) & & a h ( c ) . c l o s e s t ( " f o r m " ) . l e n g t h & & s . k e y C o d e = = = 1 3 ) { r e t u r n   a K ( " s u b m i t " , t h i s , a r g u m e n t s ) } } ) } e l s e { r e t u r n   f a l s e } } , t e a r d o w n : f u n c t i o n ( ) { a h . e v e n t . r e m o v e ( t h i s , " . s p e c i a l S u b m i t " ) } } } i f ( ! a h . s u p p o r t . c h a n g e B u b b l e s ) { v a r   t = / t e x t a r e a | i n p u t | s e l e c t / i , g , j = f u n c t i o n ( s ) { v a r   c = s . t y p e , w = s . v a l u e ; i f ( c = = = " r a d i o " | | c = = = " c h e c k b o x " ) { w = s . c h e c k e d } e l s e { i f ( c = = = " s e l e c t - m u l t i p l e " ) { w = s . s e l e c t e d I n d e x > - 1 ? a h . m a p ( s . o p t i o n s , 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 o i n ( " - " ) : " " } e l s e { i f ( s . n o d e N a m e . t o L o w e r C a s e ( ) = = = " s e l e c t " ) { w = s . s e l e c t e d I n d e x } } } r e t u r n   w } , b d = f u n c t i o n ( s , c ) { v a r   F = s . t a r g e t , w , A ; i f ( ! ( ! t . t e s t ( F . n o d e N a m e ) | | F . r e a d O n l y ) ) { w = a h . d a t a ( F , " _ c h a n g e _ d a t a " ) ; A = j ( F ) ; i f ( s . t y p e ! = = " f o c u s o u t " | | F . t y p e ! = = " r a d i o " ) { a h . d a t a ( F , " _ c h a n g e _ d a t a " , A ) } i f ( ! ( w = = = I | | A = = = w ) ) { i f ( w ! = n u l l | | A ) { s . t y p e = " c h a n g e " ; r e t u r n   a h . e v e n t . t r i g g e r ( s , c , F ) } } } } ; a h . e v e n t . s p e c i a l . c h a n g e = { f i l t e r s : { f o c u s o u t : b d , c l i c k : f u n c t i o n ( s ) { v a r   c = s . t a r g e t , w = c . t y p e ; i f ( w = = = " r a d i o " | | w = = = " c h e c k b o x " | | c . n o d e N a m e . t o L o w e r C a s e ( ) = = = " s e l e c t " ) { r e t u r n   b d . c a l l ( t h i s , s ) } } , k e y d o w n : f u n c t i o n ( s ) { v a r   c = s . t a r g e t , w = c . t y p e ; i f ( s . k e y C o d e = = = 1 3 & & c . n o d e N a m e . t o L o w e r C a s e ( ) ! = = " t e x t a r e a " | | s . k e y C o d e = = = 3 2 & & ( w = = = " c h e c k b o x " | | w = = = " r a d i o " ) | | w = = = " s e l e c t - m u l t i p l e " ) { r e t u r n   b d . c a l l ( t h i s , s ) } } , b e f o r e a c t i v a t e : f u n c t i o n ( c ) { c = c . t a r g e t ; a h . d a t a ( c , " _ c h a n g e _ d a t a " , j ( c ) ) } } , s e t u p : f u n c t i o n ( ) { i f ( t h i s . t y p e = = = " f i l e " ) { r e t u r n   f a l s e } f o r ( v a r   c   i n   g ) { a h . e v e n t . a d d ( t h i s , c + " . s p e c i a l C h a n g e " , g [ c ] ) } r e t u r n   t . t e s t ( t h i s . n o d e N a m e ) } , t e a r d o w n : f u n c t i o n ( ) { a h . e v e n t . r e m o v e ( t h i s , " . s p e c i a l C h a n g e " ) ; r e t u r n   t . t e s t ( t h i s . n o d e N a m e ) } } ; g = a h . e v e n t . s p e c i a l . c h a n g e . f i l t e r s } M . a d d E v e n t L i s t e n e r & & a h . e a c h ( { f o c u s : " f o c u s i n " , b l u r : " f o c u s o u t " } , f u n c t i o n ( s , c ) { f u n c t i o n   w ( A ) { A = a h . e v e n t . f i x ( A ) ; A . t y p e = c ; r e t u r n   a h . e v e n t . h a n d l e . c a l l ( t h i s , A ) } a h . e v e n t . s p e c i a l [ c ] = { s e t u p : f u n c t i o n ( ) { t h i s . a d d E v e n t L i s t e n e r ( s , w , t r u e ) } , t e a r d o w n : f u n c t i o n ( ) { t h i s . r e m o v e E v e n t L i s t e n e r ( s , w , t r u e ) } } } ) ; a h . e a c h ( [ " b i n d " , " o n e " ] , f u n c t i o n ( s , c ) { a h . f n [ c ] = f u n c t i o n ( K , F , G ) { i f ( t y p e o f   K = = = " o b j e c t " ) { f o r ( v a r   w   i n   K ) { t h i s [ c ] ( w , F , K [ w ] , G ) } r e t u r n   t h i s } i f ( a h . i s F u n c t i o n ( F ) ) { G = F ; F = I } v a r   A = c = = = " o n e " ? a h . p r o x y ( G , f u n c t i o n ( L ) { a h ( t h i s ) . u n b i n d ( L , A ) ; r e t u r n   G . a p p l y ( t h i s , a r g u m e n t s ) } ) : G ; i f ( K = = = " u n l o a d " & & c ! = = " o n e " ) { t h i s . o n e ( K , F , G ) } e l s e { w = 0 ; f o r ( v a r   J = t h i s . l e n g t h ; w < J ; w + + ) { a h . e v e n t . a d d ( t h i s [ w ] , K , A , F ) } } r e t u r n   t h i s } } ) ; a h . f n . e x t e n d ( { u n b i n d : f u n c t i o n ( s , c ) { i f ( t y p e o f   s = = = " o b j e c t " & & ! s . p r e v e n t D e f a u l t ) { f o r ( v a r   A   i n   s ) { t h i s . u n b i n d ( A , s [ A ] ) } } e l s e { A = 0 ; f o r ( v a r   w = t h i s . l e n g t h ; A < w ; A + + ) { a h . e v e n t . r e m o v e ( t h i s [ A ] , s , c ) } } r e t u r n   t h i s } , d e l e g a t e : f u n c t i o n ( s , c , A , w ) { r e t u r n   t h i s . l i v e ( c , A , w , s ) } , u n d e l e g a t e : f u n c t i o n ( s , c , w ) { r e t u r n   a r g u m e n t s . l e n g t h = = = 0 ? t h i s . u n b i n d ( " l i v e " ) : t h i s . d i e ( c , n u l l , w , s ) } , t r i g g e r : f u n c t i o n ( s , c ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { a h . e v e n t . t r i g g e r ( s , c , t h i s ) } ) } , t r i g g e r H a n d l e r : f u n c t i o n ( s , c ) { i f ( t h i s [ 0 ] ) { s = a h . E v e n t ( s ) ; s . p r e v e n t D e f a u l t ( ) ; s . s t o p P r o p a g a t i o n ( ) ; a h . e v e n t . t r i g g e r ( s , c , t h i s [ 0 ] ) ; r e t u r n   s . r e s u l t } } , t o g g l e : f u n c t i o n ( s ) { f o r ( v a r   c = a r g u m e n t s , w = 1 ; w < c . l e n g t h ; ) { a h . p r o x y ( s , c [ w + + ] ) } r e t u r n   t h i s . c l i c k ( a h . p r o x y ( s , f u n c t i o n ( A ) { v a r   F = ( a h . d a t a ( t h i s , " l a s t T o g g l e " + s . g u i d ) | | 0 ) % w ; a h . d a t a ( t h i s , " l a s t T o g g l e " + s . g u i d , F + 1 ) ; A . p r e v e n t D e f a u l t ( ) ; r e t u r n   c [ F ] . 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 ( s , c ) { r e t u r n   t h i s . m o u s e e n t e r ( s ) . m o u s e l e a v e ( c | | s ) } } ) ; v a r   b h = { f o c u s : " f o c u s i n " , b l u r : " f o c u s o u t " , m o u s e e n t e r : " m o u s e o v e r " , m o u s e l e a v e : " m o u s e o u t " } ; a h . e a c h ( [ " l i v e " , " d i e " ] , f u n c t i o n ( s , c ) { a h . f n [ c ] = f u n c t i o n ( O , L , N , J ) { v a r   K , A = 0 , G , F , w = J | | t h i s . s e l e c t o r , P = J ? t h i s : a h ( t h i s . c o n t e x t ) ; i f ( a h . i s F u n c t i o n ( L ) ) { N = L ; L = I } f o r ( O = ( O | | " " ) . s p l i t ( "   " ) ; ( K = O [ A + + ] ) ! = n u l l ; ) { J = a z . e x e c ( K ) ; G = " " ; i f ( J ) { G = J [ 0 ] ; K = K . r e p l a c e ( a z , " " ) } i f ( K = = = " h o v e r " ) { O . p u s h ( " m o u s e e n t e r " + G , " m o u s e l e a v e " + G ) } e l s e { F = K ; i f ( K = = = " f o c u s " | | K = = = " b l u r " ) { O . p u s h ( b h [ K ] + G ) ; K + = G } e l s e { K = ( b h [ K ] | | K ) + G } c = = = " l i v e " ? P . e a c h ( f u n c t i o n ( ) { a h . e v e n t . a d d ( t h i s , z ( K , w ) , { d a t a : L , s e l e c t o r : w , h a n d l e r : N , o r i g T y p e : K , o r i g H a n d l e r : N , p r e T y p e : F } ) } ) : P . u n b i n d ( z ( K , w ) , N ) } } r e t u r n   t h i s } } ) ; a h . e a c h ( " b l u r   f o c u s   f o c u s i n   f o c u s o u t   l o a d   r e s i z e   s c r o l l   u n l o a d   c l i c k   d b l c l i c k   m o u s e d o w n   m o u s e u p   m o u s e m o v e   m o u s e o v e r   m o u s e o u t   m o u s e e n t e r   m o u s e l e a v e   c h a n g e   s e l e c t   s u b m i t   k e y d o w n   k e y p r e s s   k e y u p   e r r o r " . s p l i t ( "   " ) , f u n c t i o n ( s , c ) { a h . f n [ c ] = f u n c t i o n ( w ) { r e t u r n   w ? t h i s . b i n d ( c , w ) : t h i s . t r i g g e r ( c ) } ; i f ( a h . a t t r F n ) { a h . a t t r F n [ c ] = t r u e } } ) ; a O . a t t a c h E v e n t & & ! a O . a d d E v e n t L i s t e n e r & & a O . a t t a c h E v e n t ( " o n u n l o a d " , f u n c t i o n ( ) { f o r ( v a r   s   i n   a h . c a c h e ) { i f ( a h . c a c h e [ s ] . h a n d l e ) { t r y { a h . e v e n t . r e m o v e ( a h . c a c h e [ s ] . h a n d l e . e l e m ) } c a t c h ( c ) { } } } } ) ; ( f u n c t i o n ( ) { f u n c t i o n   W ( a b ) { f o r ( v a r   a a = " " , Z , Y = 0 ; a b [ Y ] ; Y + + ) { Z = a b [ Y ] ; i f ( Z . n o d e T y p e = = = 3 | | Z . n o d e T y p e = = = 4 ) { a a + = Z . n o d e V a l u e } e l s e { i f ( Z . n o d e T y p e ! = = 8 ) { a a + = W ( Z . c h i l d N o d e s ) } } } r e t u r n   a a } f u n c t i o n   V ( b b , b a , a b , a a , Y , Z ) { Y = 0 ; f o r ( v a r   b m = a a . l e n g t h ; Y < b m ; Y + + ) { v a r   b n = a a [ Y ] ; i f ( b n ) { b n = b n [ b b ] ; f o r ( v a r   b l = f a l s e ; b n ; ) { i f ( b n . s i z c a c h e = = = a b ) { b l = a a [ b n . s i z s e t ] ; b r e a k } i f ( b n . n o d e T y p e = = = 1 & & ! Z ) { b n . s i z c a c h e = a b ; b n . s i z s e t = Y } i f ( b n . n o d e N a m e . t o L o w e r C a s e ( ) = = = b a ) { b l = b n ; b r e a k } b n = b n [ b b ] } a a [ Y ] = b l } } } f u n c t i o n   T ( b b , b a , a b , a a , Y , Z ) { Y = 0 ; f o r ( v a r   b m = a a . l e n g t h ; Y < b m ; Y + + ) { v a r   b n = a a [ Y ] ; i f ( b n ) { b n = b n [ b b ] ; f o r ( v a r   b l = f a l s e ; b n ; ) { i f ( b n . s i z c a c h e = = = a b ) { b l = a a [ b n . s i z s e t ] ; b r e a k } i f ( b n . n o d e T y p e = = = 1 ) { i f ( ! Z ) { b n . s i z c a c h e = a b ; b n . s i z s e t = Y } i f ( t y p e o f   b a ! = = " s t r i n g " ) { i f ( b n = = = b a ) { b l = t r u e ; b r e a k } } e l s e { i f ( N . f i l t e r ( b a , [ b n ] ) . l e n g t h > 0 ) { b l = b n ; b r e a k } } } b n = b n [ b b ] } a a [ Y ] = b l } } } v a r   Q = / ( ( ? : \ ( ( ? : \ ( [ ^ ( ) ] + \ ) | [ ^ ( ) ] + ) + \ ) | \ [ ( ? : \ [ [ ^ [ \ ] ] * \ ] | [ ' " ] [ ^ ' " ] * [ ' " ] | [ ^ [ \ ] ' " ] + ) + \ ] | \ \ . | [ ^   > + ~ , ( \ [ \ \ ] + ) + | [ > + ~ ] ) ( \ s * , \ s * ) ? ( ( ? : . | \ r | \ n ) * ) / g , R = 0 , O = O b j e c t . p r o t o t y p e . t o S t r i n g , P = f a l s e , K = t r u e ; [ 0 , 0 ] . s o r t ( f u n c t i o n ( ) { K = f a l s e ; r e t u r n   0 } ) ; v a r   N = f u n c t i o n ( b m , b l , b a , a b ) { b a = b a | | [ ] ; v a r   Z = b l = b l | | M ; i f ( b l . n o d e T y p e ! = = 1 & & b l . n o d e T y p e ! = = 9 ) { r e t u r n [ ] } i f ( ! b m | | t y p e o f   b m ! = = " s t r i n g " ) { r e t u r n   b a } f o r ( v a r   a a = [ ] , b r , b s , b o , b b , b q = t r u e , b n = s ( b l ) , b p = b m ; ( Q . e x e c ( " " ) , b r = Q . e x e c ( b p ) ) ! = = n u l l ; ) { b p = b r [ 3 ] ; a a . p u s h ( b r [ 1 ] ) ; i f ( b r [ 2 ] ) { b b = b r [ 3 ] ; b r e a k } } i f ( a a . l e n g t h > 1 & & G . e x e c ( b m ) ) { i f ( a a . l e n g t h = = = 2 & & L . r e l a t i v e [ a a [ 0 ] ] ) { b s = X ( a a [ 0 ] + a a [ 1 ] , b l ) } e l s e { f o r ( b s = L . r e l a t i v e [ a a [ 0 ] ] ? [ b l ] : N ( a a . s h i f t ( ) , b l ) ; a a . l e n g t h ; ) { b m = a a . s h i f t ( ) ; i f ( L . r e l a t i v e [ b m ] ) { b m + = a a . s h i f t ( ) } b s = X ( b m , b s ) } } } e l s e { i f ( ! a b & & a a . l e n g t h > 1 & & b l . n o d e T y p e = = = 9 & & ! b n & & L . m a t c h . I D . t e s t ( a a [ 0 ] ) & & ! L . m a t c h . I D . t e s t ( a a [ a a . l e n g t h - 1 ] ) ) { b r = N . f i n d ( a a . s h i f t ( ) , b l , b n ) ; b l = b r . e x p r ? N . f i l t e r ( b r . e x p r , b r . s e t ) [ 0 ] : b r . s e t [ 0 ] } i f ( b l ) { b r = a b ? { e x p r : a a . p o p ( ) , s e t : c ( a b ) } : N . f i n d ( a a . p o p ( ) , a a . l e n g t h = = = 1 & & ( a a [ 0 ] = = = " ~ " | | a a [ 0 ] = = = " + " ) & & b l . p a r e n t N o d e ? b l . p a r e n t N o d e : b l , b n ) ; b s = b r . e x p r ? N . f i l t e r ( b r . e x p r , b r . s e t ) : b r . s e t ; i f ( a a . l e n g t h > 0 ) { b o = c ( b s ) } e l s e { b q = f a l s e } f o r ( ; a a . l e n g t h ; ) { v a r   Y = a a . p o p ( ) ; b r = Y ; i f ( L . r e l a t i v e [ Y ] ) { b r = a a . p o p ( ) } e l s e { Y = " " } i f ( b r = = n u l l ) { b r = b l } L . r e l a t i v e [ Y ] ( b o , b r , b n ) } } e l s e { b o = [ ] } } b o | | ( b o = b s ) ; b o | | N . e r r o r ( Y | | b m ) ; i f ( O . c a l l ( b o ) = = = " [ o b j e c t   A r r a y ] " ) { i f ( b q ) { i f ( b l & & b l . n o d e T y p e = = = 1 ) { f o r ( b m = 0 ; b o [ b m ] ! = n u l l ; b m + + ) { i f ( b o [ b m ] & & ( b o [ b m ] = = = t r u e | | b o [ b m ] . n o d e T y p e = = = 1 & & A ( b l , b o [ b m ] ) ) ) { b a . p u s h ( b s [ b m ] ) } } } e l s e { f o r ( b m = 0 ; b o [ b m ] ! = n u l l ; b m + + ) { b o [ b m ] & & b o [ b m ] . n o d e T y p e = = = 1 & & b a . p u s h ( b s [ b m ] ) } } } e l s e { b a . p u s h . a p p l y ( b a , b o ) } } e l s e { c ( b o , b a ) } i f ( b b ) { N ( b b , Z , b a , a b ) ; N . u n i q u e S o r t ( b a ) } r e t u r n   b a } ; N . u n i q u e S o r t = f u n c t i o n ( Z ) { i f ( J ) { P = K ; Z . s o r t ( J ) ; i f ( P ) { f o r ( v a r   Y = 1 ; Y < Z . l e n g t h ; Y + + ) { Z [ Y ] = = = Z [ Y - 1 ] & & Z . s p l i c e ( Y - - , 1 ) } } } r e t u r n   Z } ; N . m a t c h e s = f u n c t i o n ( Z , Y ) { r e t u r n   N ( Z , n u l l , n u l l , Y ) } ; N . f i n d = f u n c t i o n ( b b , b a , a b ) { v a r   a a , Y ; i f ( ! b b ) { r e t u r n [ ] } f o r ( v a r   Z = 0 , b m = L . o r d e r . l e n g t h ; Z < b m ; Z + + ) { v a r   b n = L . o r d e r [ Z ] ; i f ( Y = L . l e f t M a t c h [ b n ] . e x e c ( b b ) ) { v a r   b l = Y [ 1 ] ; Y . s p l i c e ( 1 , 1 ) ; i f ( b l . s u b s t r ( b l . l e n g t h - 1 ) ! = = " \ \ " ) { Y [ 1 ] = ( Y [ 1 ] | | " " ) . r e p l a c e ( / \ \ / g , " " ) ; a a = L . f i n d [ b n ] ( Y , b a , a b ) ; i f ( a a ! = n u l l ) { b b = b b . r e p l a c e ( L . m a t c h [ b n ] , " " ) ; b r e a k } } } } a a | | ( a a = b a . g e t E l e m e n t s B y T a g N a m e ( " * " ) ) ; r e t u r n { s e t : a a , e x p r : b b } } ; N . f i l t e r = f u n c t i o n ( b n , b m , b b , a b ) { f o r ( v a r   Z = b n , a a = [ ] , b t = b m , b u , b q , b l = b m & & b m [ 0 ] & & s ( b m [ 0 ] ) ; b n & & b m . l e n g t h ; ) { f o r ( v a r   b s   i n   L . f i l t e r ) { i f ( ( b u = L . l e f t M a t c h [ b s ] . e x e c ( b n ) ) ! = n u l l & & b u [ 2 ] ) { v a r   b o = L . f i l t e r [ b s ] , b r , Y ; Y = b u [ 1 ] ; b q = f a l s e ; b u . s p l i c e ( 1 , 1 ) ; i f ( Y . s u b s t r ( Y . l e n g t h - 1 ) ! = = " \ \ " ) { i f ( b t = = = a a ) { a a = [ ] } i f ( L . p r e F i l t e r [ b s ] ) { i f ( b u = L . p r e F i l t e r [ b s ] ( b u , b t , b b , a a , a b , b l ) ) { i f ( b u = = = t r u e ) { c o n t i n u e } } e l s e { b q = b r = t r u e } } i f ( b u ) { f o r ( v a r   b a = 0 ; ( Y = b t [ b a ] ) ! = n u l l ; b a + + ) { i f ( Y ) { b r = b o ( Y , b u , b a , b t ) ; v a r   b p = a b ^ ! ! b r ; i f ( b b & & b r ! = n u l l ) { i f ( b p ) { b q = t r u e } e l s e { b t [ b a ] = f a l s e } } e l s e { i f ( b p ) { a a . p u s h ( Y ) ; b q = t r u e } } } } } i f ( b r ! = = I ) { b b | | ( b t = a a ) ; b n = b n . r e p l a c e ( L . m a t c h [ b s ] , " " ) ; i f ( ! b q ) { r e t u r n [ ] } b r e a k } } } } i f ( b n = = = Z ) { i f ( b q = = n u l l ) { N . e r r o r ( b n ) } e l s e { b r e a k } } Z = b n } r e t u r n   b t } ; N . e r r o r = f u n c t i o n ( Y ) { t h r o w " S y n t a x   e r r o r ,   u n r e c o g n i z e d   e x p r e s s i o n :   " + Y } ; v a r   L = N . s e l e c t o r s = { o r d e r : [ " I D " , " N A M E " , " T A G " ] , m a t c h : { I D : / # ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F - ] | \ \ . ) + ) / , C L A S S : / \ . ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F - ] | \ \ . ) + ) / , N A M E : / \ [ n a m e = [ ' " ] * ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F - ] | \ \ . ) + ) [ ' " ] * \ ] / , A T T R : / \ [ \ s * ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F - ] | \ \ . ) + ) \ s * ( ? : ( \ S ? = ) \ s * ( [ ' " ] * ) ( . * ? ) \ 3 | ) \ s * \ ] / , T A G : / ^ ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ * - ] | \ \ . ) + ) / , C H I L D : / : ( o n l y | n t h | l a s t | f i r s t ) - c h i l d ( ? : \ ( ( e v e n | o d d | [ \ d n + - ] * ) \ ) ) ? / , P O S : / : ( n t h | e q | g t | l t | f i r s t | l a s t | e v e n | o d d ) ( ? : \ ( ( \ d * ) \ ) ) ? ( ? = [ ^ - ] | $ ) / , P S E U D O : / : ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F - ] | \ \ . ) + ) ( ? : \ ( ( [ ' " ] ? ) ( ( ? : \ ( [ ^ \ ) ] + \ ) | [ ^ \ ( \ ) ] * ) + ) \ 2 \ ) ) ? / } , l e f t M a t c h : { } , a t t r M a p : { " c l a s s " : " c l a s s N a m e " , " f o r " : " h t m l F o r " } , a t t r H a n d l e : { h r e f : f u n c t i o n ( Y ) { r e t u r n   Y . g e t A t t r i b u t e ( " h r e f " ) } } , r e l a t i v e : { " + " : f u n c t i o n ( a b , a a ) { v a r   Z = t y p e o f   a a = = = " s t r i n g " , Y = Z & & ! / \ W / . t e s t ( a a ) ; Z = Z & & ! Y ; i f ( Y ) { a a = a a . t o L o w e r C a s e ( ) } Y = 0 ; f o r ( v a r   b a = a b . l e n g t h , b b ; Y < b a ; Y + + ) { i f ( b b = a b [ Y ] ) { f o r ( ; ( b b = b b . p r e v i o u s S i b l i n g ) & & b b . n o d e T y p e ! = = 1 ; ) { } a b [ Y ] = Z | | b b & & b b . n o d e N a m e . t o L o w e r C a s e ( ) = = = a a ? b b | | f a l s e : b b = = = a a } } Z & & N . f i l t e r ( a a , a b , t r u e ) } , " > " : f u n c t i o n ( a b , a a ) { v a r   Z = t y p e o f   a a = = = " s t r i n g " ; i f ( Z & & ! / \ W / . t e s t ( a a ) ) { a a = a a . t o L o w e r C a s e ( ) ; f o r ( v a r   Y = 0 , b a = a b . l e n g t h ; Y < b a ; Y + + ) { v a r   b b = a b [ Y ] ; i f ( b b ) { Z = b b . p a r e n t N o d e ; a b [ Y ] = Z . n o d e N a m e . t o L o w e r C a s e ( ) = = = a a ? Z : f a l s e } } } e l s e { Y = 0 ; f o r ( b a = a b . l e n g t h ; Y < b a ; Y + + ) { i f ( b b = a b [ Y ] ) { a b [ Y ] = Z ? b b . p a r e n t N o d e : b b . p a r e n t N o d e = = = a a } } Z & & N . f i l t e r ( a a , a b , t r u e ) } } , " " : f u n c t i o n ( a b , a a , Z ) { v a r   Y = R + + , b a = T ; i f ( t y p e o f   a a = = = " s t r i n g " & & ! / \ W / . t e s t ( a a ) ) { v a r   b b = a a = a a . t o L o w e r C a s e ( ) ; b a = V } b a ( " p a r e n t N o d e " , a a , Y , a b , b b , Z ) } , " ~ " : f u n c t i o n ( a b , a a , Z ) { v a r   Y = R + + , b a = T ; i f ( t y p e o f   a a = = = " s t r i n g " & & ! / \ W / . t e s t ( a a ) ) { v a r   b b = a a = a a . t o L o w e r C a s e ( ) ; b a = V } b a ( " p r e v i o u s S i b l i n g " , a a , Y , a b , b b , Z ) } } , f i n d : { I D : f u n c t i o n ( a a , Z , Y ) { i f ( t y p e o f   Z . g e t E l e m e n t B y I d ! = = " u n d e f i n e d " & & ! Y ) { r e t u r n ( a a = Z . g e t E l e m e n t B y I d ( a a [ 1 ] ) ) ? [ a a ] : [ ] } } , N A M E : f u n c t i o n ( a b , a a ) { i f ( t y p e o f   a a . g e t E l e m e n t s B y N a m e ! = = " u n d e f i n e d " ) { v a r   Z = [ ] ; a a = a a . g e t E l e m e n t s B y N a m e ( a b [ 1 ] ) ; f o r ( v a r   Y = 0 , b a = a a . l e n g t h ; Y < b a ; Y + + ) { a a [ Y ] . g e t A t t r i b u t e ( " n a m e " ) = = = a b [ 1 ] & & Z . p u s h ( a a [ Y ] ) } r e t u r n   Z . l e n g t h = = = 0 ? n u l l : Z } } , T A G : f u n c t i o n ( Z , Y ) { r e t u r n   Y . g e t E l e m e n t s B y T a g N a m e ( Z [ 1 ] ) } } , p r e F i l t e r : { C L A S S : f u n c t i o n ( b a , a b , Z , Y , b b , b l ) { b a = "   " + b a [ 1 ] . r e p l a c e ( / \ \ / g , " " ) + "   " ; i f ( b l ) { r e t u r n   b a } b l = 0 ; f o r ( v a r   a a ; ( a a = a b [ b l ] ) ! = n u l l ; b l + + ) { i f ( a a ) { i f ( b b ^ ( a a . c l a s s N a m e & & ( "   " + a a . c l a s s N a m e + "   " ) . r e p l a c e ( / [ \ t \ n ] / g , "   " ) . i n d e x O f ( b a ) > = 0 ) ) { Z | | Y . p u s h ( a a ) } e l s e { i f ( Z ) { a b [ b l ] = f a l s e } } } } r e t u r n   f a l s e } , I D : f u n c t i o n ( Y ) { r e t u r n   Y [ 1 ] . r e p l a c e ( / \ \ / g , " " ) } , T A G : f u n c t i o n ( Y ) { r e t u r n   Y [ 1 ] . t o L o w e r C a s e ( ) } , C H I L D : f u n c t i o n ( Z ) { i f ( Z [ 1 ] = = = " n t h " ) { v a r   Y = / ( - ? ) ( \ d * ) n ( ( ? : \ + | - ) ? \ d * ) / . e x e c ( Z [ 2 ] = = = " e v e n " & & " 2 n " | | Z [ 2 ] = = = " o d d " & & " 2 n + 1 " | | ! / \ D / . t e s t ( Z [ 2 ] ) & & " 0 n + " + Z [ 2 ] | | Z [ 2 ] ) ; Z [ 2 ] = Y [ 1 ] + ( Y [ 2 ] | | 1 ) - 0 ; Z [ 3 ] = Y [ 3 ] - 0 } Z [ 0 ] = R + + ; r e t u r n   Z } , A T T R : f u n c t i o n ( a b , a a , Z , Y , b a , b b ) { a a = a b [ 1 ] . r e p l a c e ( / \ \ / g , " " ) ; i f ( ! b b & & L . a t t r M a p [ a a ] ) { a b [ 1 ] = L . a t t r M a p [ a a ] } i f ( a b [ 2 ] = = = " ~ = " ) { a b [ 4 ] = "   " + a b [ 4 ] + "   " } r e t u r n   a b } , P S E U D O : f u n c t i o n ( a b , a a , Z , Y , b a ) { i f ( a b [ 1 ] = = = " n o t " ) { i f ( ( Q . e x e c ( a b [ 3 ] ) | | " " ) . l e n g t h > 1 | | / ^ \ w / . t e s t ( a b [ 3 ] ) ) { a b [ 3 ] = N ( a b [ 3 ] , n u l l , n u l l , a a ) } e l s e { a b = N . f i l t e r ( a b [ 3 ] , a a , Z , t r u e ^ b a ) ; Z | | Y . p u s h . a p p l y ( Y , a b ) ; r e t u r n   f a l s e } } e l s e { i f ( L . m a t c h . P O S . t e s t ( a b [ 0 ] ) | | L . m a t c h . C H I L D . t e s t ( a b [ 0 ] ) ) { r e t u r n   t r u e } } r e t u r n   a b } , P O S : f u n c t i o n ( Y ) { Y . u n s h i f t ( t r u e ) ; r e t u r n   Y } } , f i l t e r s : { e n a b l e d : f u n c t i o n ( Y ) { r e t u r n   Y . d i s a b l e d = = = f a l s e & & Y . t y p e ! = = " h i d d e n " } , d i s a b l e d : f u n c t i o n ( Y ) { r e t u r n   Y . d i s a b l e d = = = t r u e } , c h e c k e d : f u n c t i o n ( Y ) { r e t u r n   Y . c h e c k e d = = = t r u e } , s e l e c t e d : f u n c t i o n ( Y ) { r e t u r n   Y . s e l e c t e d = = = t r u e } , p a r e n t : f u n c t i o n ( Y ) { r e t u r n   ! ! Y . f i r s t C h i l d } , e m p t y : f u n c t i o n ( Y ) { r e t u r n   ! Y . f i r s t C h i l d } , h a s : f u n c t i o n ( a a , Z , Y ) { r e t u r n   ! ! N ( Y [ 3 ] , a a ) . l e n g t h } , h e a d e r : f u n c t i o n ( Y ) { r e t u r n / h \ d / i . t e s t ( Y . n o d e N a m e ) } , t e x t : f u n c t i o n ( Y ) { r e t u r n " t e x t " = = = Y . t y p e } , r a d i o : f u n c t i o n ( Y ) { r e t u r n " r a d i o " = = = Y . t y p e } , c h e c k b o x : f u n c t i o n ( Y ) { r e t u r n " c h e c k b o x " = = = Y . t y p e } , f i l e : f u n c t i o n ( Y ) { r e t u r n " f i l e " = = = Y . t y p e } , p a s s w o r d : f u n c t i o n ( Y ) { r e t u r n " p a s s w o r d " = = = Y . t y p e } , s u b m i t : f u n c t i o n ( Y ) { r e t u r n " s u b m i t " = = = Y . t y p e } , i m a g e : f u n c t i o n ( Y ) { r e t u r n " i m a g e " = = = Y . t y p e } , r e s e t : f u n c t i o n ( Y ) { r e t u r n " r e s e t " = = = Y . t y p e } , b u t t o n : f u n c t i o n ( Y ) { r e t u r n " b u t t o n " = = = Y . t y p e | | Y . n o d e N a m e . t o L o w e r C a s e ( ) = = = " b u t t o n " } , i n p u t : f u n c t i o n ( Y ) { 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 ( Y . n o d e N a m e ) } } , s e t F i l t e r s : { f i r s t : f u n c t i o n ( Z , Y ) { r e t u r n   Y = = = 0 } , l a s t : f u n c t i o n ( a b , a a , Z , Y ) { r e t u r n   a a = = = Y . l e n g t h - 1 } , e v e n : f u n c t i o n ( Z , Y ) { r e t u r n   Y % 2 = = = 0 } , o d d : f u n c t i o n ( Z , Y ) { r e t u r n   Y % 2 = = = 1 } , l t : f u n c t i o n ( a a , Z , Y ) { r e t u r n   Z < Y [ 3 ] - 0 } , g t : f u n c t i o n ( a a , Z , Y ) { r e t u r n   Z > Y [ 3 ] - 0 } , n t h : f u n c t i o n ( a a , Z , Y ) { r e t u r n   Y [ 3 ] - 0 = = = Z } , e q : f u n c t i o n ( a a , Z , Y ) { r e t u r n   Y [ 3 ] - 0 = = = Z } } , f i l t e r : { P S E U D O : f u n c t i o n ( a b , a a , Z , Y ) { v a r   b a = a a [ 1 ] , b b = L . f i l t e r s [ b a ] ; i f ( b b ) { r e t u r n   b b ( a b , Z , a a , Y ) } e l s e { i f ( b a = = = " c o n t a i n s " ) { r e t u r n ( a b . t e x t C o n t e n t | | a b . i n n e r T e x t | | W ( [ a b ] ) | | " " ) . i n d e x O f ( a a [ 3 ] ) > = 0 } e l s e { i f ( b a = = = " n o t " ) { a a = a a [ 3 ] ; Z = 0 ; f o r ( Y = a a . l e n g t h ; Z < Y ; Z + + ) { i f ( a a [ Z ] = = = a b ) { r e t u r n   f a l s e } } r e t u r n   t r u e } e l s e { N . e r r o r ( " S y n t a x   e r r o r ,   u n r e c o g n i z e d   e x p r e s s i o n :   " + b a ) } } } } , C H I L D : f u n c t i o n ( b a , a b ) { v a r   Z = a b [ 1 ] , Y = b a ; s w i t c h ( Z ) { c a s e " o n l y " : c a s e " f i r s t " : f o r ( ; Y = Y . p r e v i o u s S i b l i n g ; ) { i f ( Y . n o d e T y p e = = = 1 ) { r e t u r n   f a l s e } } i f ( Z = = = " f i r s t " ) { r e t u r n   t r u e } Y = b a ; c a s e " l a s t " : f o r ( ; Y = Y . n e x t S i b l i n g ; ) { i f ( Y . n o d e T y p e = = = 1 ) { r e t u r n   f a l s e } } r e t u r n   t r u e ; c a s e " n t h " : Z = a b [ 2 ] ; v a r   b b = a b [ 3 ] ; i f ( Z = = = 1 & & b b = = = 0 ) { r e t u r n   t r u e } a b = a b [ 0 ] ; v a r   b l = b a . p a r e n t N o d e ; i f ( b l & & ( b l . s i z c a c h e ! = = a b | | ! b a . n o d e I n d e x ) ) { v a r   a a = 0 ; f o r ( Y = b l . f i r s t C h i l d ; Y ; Y = Y . n e x t S i b l i n g ) { i f ( Y . n o d e T y p e = = = 1 ) { Y . n o d e I n d e x = + + a a } } b l . s i z c a c h e = a b } b a = b a . n o d e I n d e x - b b ; r e t u r n   Z = = = 0 ? b a = = = 0 : b a % Z = = = 0 & & b a / Z > = 0 } } , I D : f u n c t i o n ( Z , Y ) { r e t u r n   Z . n o d e T y p e = = = 1 & & Z . g e t A t t r i b u t e ( " i d " ) = = = Y } , T A G : f u n c t i o n ( Z , Y ) { r e t u r n   Y = = = " * " & & Z . n o d e T y p e = = = 1 | | Z . n o d e N a m e . t o L o w e r C a s e ( ) = = = Y } , C L A S S : f u n c t i o n ( Z , Y ) { r e t u r n ( "   " + ( Z . c l a s s N a m e | | Z . g e t A t t r i b u t e ( " c l a s s " ) ) + "   " ) . i n d e x O f ( Y ) > - 1 } , A T T R : f u n c t i o n ( a b , a a ) { v a r   Z = a a [ 1 ] ; a b = L . a t t r H a n d l e [ Z ] ? L . a t t r H a n d l e [ Z ] ( a b ) : a b [ Z ] ! = n u l l ? a b [ Z ] : a b . g e t A t t r i b u t e ( Z ) ; Z = a b + " " ; v a r   Y = a a [ 2 ] ; a a = a a [ 4 ] ; r e t u r n   a b = = n u l l ? Y = = = " ! = " : Y = = = " = " ? Z = = = a a : Y = = = " * = " ? Z . i n d e x O f ( a a ) > = 0 : Y = = = " ~ = " ? ( "   " + Z + "   " ) . i n d e x O f ( a a ) > = 0 : ! a a ? Z & & a b ! = = f a l s e : Y = = = " ! = " ? Z ! = = a a : Y = = = " ^ = " ? Z . i n d e x O f ( a a ) = = = 0 : Y = = = " $ = " ? Z . s u b s t r ( Z . l e n g t h - a a . l e n g t h ) = = = a a : Y = = = " | = " ? Z = = = a a | | Z . s u b s t r ( 0 , a a . l e n g t h + 1 ) = = = a a + " - " : f a l s e } , P O S : f u n c t i o n ( a b , a a , Z , Y ) { v a r   b a = L . s e t F i l t e r s [ a a [ 2 ] ] ; i f ( b a ) { r e t u r n   b a ( a b , Z , a a , Y ) } } } } , G = L . m a t c h . P O S ; f o r ( v a r   w   i n   L . m a t c h ) { L . m a t c h [ w ] = n e w   R e g E x p ( L . m a t c h [ w ] . s o u r c e + / ( ? ! [ ^ \ [ ] * \ ] ) ( ? ! [ ^ \ ( ] * \ ) ) / . s o u r c e ) ; L . l e f t M a t c h [ w ] = n e w   R e g E x p ( / ( ^ ( ? : . | \ r | \ n ) * ? ) / . s o u r c e + L . m a t c h [ w ] . s o u r c e . r e p l a c e ( / \ \ ( \ d + ) / g , f u n c t i o n ( Z , Y ) { r e t u r n " \ \ " + ( Y - 0 + 1 ) } ) ) } v a r   c = f u n c t i o n ( Z , Y ) { Z = A r r a y . p r o t o t y p e . s l i c e . c a l l ( Z , 0 ) ; i f ( Y ) { Y . p u s h . a p p l y ( Y , Z ) ; r e t u r n   Y } r e t u r n   Z } ; t r y { A r r a y . p r o t o t y p e . s l i c e . c a l l ( M . d o c u m e n t E l e m e n t . c h i l d N o d e s , 0 ) } c a t c h ( F ) { c = f u n c t i o n ( a b , a a ) { a a = a a | | [ ] ; i f ( O . c a l l ( a b ) = = = " [ o b j e c t   A r r a y ] " ) { A r r a y . p r o t o t y p e . p u s h . a p p l y ( a a , a b ) } e l s e { i f ( t y p e o f   a b . l e n g t h = = = " n u m b e r " ) { f o r ( v a r   Z = 0 , Y = a b . l e n g t h ; Z < Y ; Z + + ) { a a . p u s h ( a b [ Z ] ) } } e l s e { f o r ( Z = 0 ; a b [ Z ] ; Z + + ) { a a . p u s h ( a b [ Z ] ) } } } r e t u r n   a a } } v a r   J ; i f ( M . d o c u m e n t E l e m e n t . c o m p a r e D o c u m e n t P o s i t i o n ) { J = f u n c t i o n ( Z , Y ) { i f ( ! Z . c o m p a r e D o c u m e n t P o s i t i o n | | ! Y . c o m p a r e D o c u m e n t P o s i t i o n ) { i f ( Z = = Y ) { P = t r u e } r e t u r n   Z . c o m p a r e D o c u m e n t P o s i t i o n ? - 1 : 1 } Z = Z . c o m p a r e D o c u m e n t P o s i t i o n ( Y ) & 4 ? - 1 : Z = = = Y ? 0 : 1 ; i f ( Z = = = 0 ) { P = t r u e } r e t u r n   Z } } e l s e { i f ( " s o u r c e I n d e x "   i n   M . d o c u m e n t E l e m e n t ) { J = f u n c t i o n ( Z , Y ) { i f ( ! Z . s o u r c e I n d e x | | ! Y . s o u r c e I n d e x ) { i f ( Z = = Y ) { P = t r u e } r e t u r n   Z . s o u r c e I n d e x ? - 1 : 1 } Z = Z . s o u r c e I n d e x - Y . s o u r c e I n d e x ; i f ( Z = = = 0 ) { P = t r u e } r e t u r n   Z } } e l s e { i f ( M . c r e a t e R a n g e ) { J = f u n c t i o n ( a b , a a ) { i f ( ! a b . o w n e r D o c u m e n t | | ! a a . o w n e r D o c u m e n t ) { i f ( a b = = a a ) { P = t r u e } r e t u r n   a b . o w n e r D o c u m e n t ? - 1 : 1 } v a r   Z = a b . o w n e r D o c u m e n t . c r e a t e R a n g e ( ) , Y = a a . o w n e r D o c u m e n t . c r e a t e R a n g e ( ) ; Z . s e t S t a r t ( a b , 0 ) ; Z . s e t E n d ( a b , 0 ) ; Y . s e t S t a r t ( a a , 0 ) ; Y . s e t E n d ( a a , 0 ) ; a b = Z . c o m p a r e B o u n d a r y P o i n t s ( R a n g e . S T A R T _ T O _ E N D , Y ) ; i f ( a b = = = 0 ) { P = t r u e } r e t u r n   a b } } } } ( f u n c t i o n ( ) { v a r   a a = M . c r e a t e E l e m e n t ( " d i v " ) , Z = " s c r i p t " + ( n e w   D a t e ) . g e t T i m e ( ) ; a a . i n n e r H T M L = " < a   n a m e = ' " + Z + " ' / > " ; v a r   Y = M . d o c u m e n t E l e m e n t ; Y . i n s e r t B e f o r e ( a a , Y . f i r s t C h i l d ) ; i f ( M . g e t E l e m e n t B y I d ( Z ) ) { L . f i n d . I D = f u n c t i o n ( a b , b a , b b ) { i f ( t y p e o f   b a . g e t E l e m e n t B y I d ! = = " u n d e f i n e d " & & ! b b ) { r e t u r n ( b a = b a . g e t E l e m e n t B y I d ( a b [ 1 ] ) ) ? b a . i d = = = a b [ 1 ] | | t y p e o f   b a . g e t A t t r i b u t e N o d e ! = = " u n d e f i n e d " & & b a . g e t A t t r i b u t e N o d e ( " i d " ) . n o d e V a l u e = = = a b [ 1 ] ? [ b a ] : I : [ ] } } ; L . f i l t e r . I D = f u n c t i o n ( a b , b a ) { v a r   b b = t y p e o f   a b . g e t A t t r i b u t e N o d e ! = = " u n d e f i n e d " & & a b . g e t A t t r i b u t e N o d e ( " i d " ) ; r e t u r n   a b . n o d e T y p e = = = 1 & & b b & & b b . n o d e V a l u e = = = b a } } Y . r e m o v e C h i l d ( a a ) ; Y = a a = n u l l } ) ( ) ; ( f u n c t i o n ( ) { v a r   Y = M . c r e a t e E l e m e n t ( " d i v " ) ; Y . a p p e n d C h i l d ( M . c r e a t e C o m m e n t ( " " ) ) ; i f ( Y . g e t E l e m e n t s B y T a g N a m e ( " * " ) . l e n g t h > 0 ) { L . f i n d . T A G = f u n c t i o n ( a b , a a ) { a a = a a . g e t E l e m e n t s B y T a g N a m e ( a b [ 1 ] ) ; i f ( a b [ 1 ] = = = " * " ) { a b = [ ] ; f o r ( v a r   Z = 0 ; a a [ Z ] ; Z + + ) { a a [ Z ] . n o d e T y p e = = = 1 & & a b . p u s h ( a a [ Z ] ) } a a = a b } r e t u r n   a a } } Y . i n n e r H T M L = " < a   h r e f = ' # ' > < / a > " ; i f ( Y . f i r s t C h i l d & & t y p e o f   Y . f i r s t C h i l d . g e t A t t r i b u t e ! = = " u n d e f i n e d " & & Y . f i r s t C h i l d . g e t A t t r i b u t e ( " h r e f " ) ! = = " # " ) { L . a t t r H a n d l e . h r e f = f u n c t i o n ( Z ) { r e t u r n   Z . g e t A t t r i b u t e ( " h r e f " , 2 ) } } Y = n u l l } ) ( ) ; M . q u e r y S e l e c t o r A l l & & f u n c t i o n ( ) { v a r   a a = N , Z = M . c r e a t e E l e m e n t ( " d i v " ) ; Z . i n n e r H T M L = " < p   c l a s s = ' T E S T ' > < / p > " ; i f ( ! ( Z . q u e r y S e l e c t o r A l l & & Z . q u e r y S e l e c t o r A l l ( " . T E S T " ) . l e n g t h = = = 0 ) ) { N = f u n c t i o n ( a b , b l , b m , b a ) { b l = b l | | M ; i f ( ! b a & & b l . n o d e T y p e = = = 9 & & ! s ( b l ) ) { t r y { r e t u r n   c ( b l . q u e r y S e l e c t o r A l l ( a b ) , b m ) } c a t c h ( b b ) { } } r e t u r n   a a ( a b , b l , b m , b a ) } ; f o r ( v a r   Y   i n   a a ) { N [ Y ] = a a [ Y ] } Z = n u l l } } ( ) ; ( f u n c t i o n ( ) { v a r   Y = M . c r e a t e E l e m e n t ( " d i v " ) ; Y . i n n e r H T M L = " < d i v   c l a s s = ' t e s t   e ' > < / d i v > < d i v   c l a s s = ' t e s t ' > < / d i v > " ; i f ( ! ( ! Y . g e t E l e m e n t s B y C l a s s N a m e | | Y . g e t E l e m e n t s B y C l a s s N a m e ( " e " ) . l e n g t h = = = 0 ) ) { Y . l a s t C h i l d . c l a s s N a m e = " e " ; i f ( Y . g e t E l e m e n t s B y C l a s s N a m e ( " e " ) . l e n g t h ! = = 1 ) { L . o r d e r . s p l i c e ( 1 , 0 , " C L A S S " ) ; L . f i n d . C L A S S = f u n c t i o n ( a b , a a , Z ) { i f ( t y p e o f   a a . g e t E l e m e n t s B y C l a s s N a m e ! = = " u n d e f i n e d " & & ! Z ) { r e t u r n   a a . g e t E l e m e n t s B y C l a s s N a m e ( a b [ 1 ] ) } } ; Y = n u l l } } } ) ( ) ; v a r   A = M . c o m p a r e D o c u m e n t P o s i t i o n ? f u n c t i o n ( Z , Y ) { r e t u r n   ! ! ( Z . c o m p a r e D o c u m e n t P o s i t i o n ( Y ) & 1 6 ) } : f u n c t i o n ( Z , Y ) { r e t u r n   Z ! = = Y & & ( Z . c o n t a i n s ? Z . c o n t a i n s ( Y ) : t r u e ) } , s = f u n c t i o n ( Y ) { r e t u r n ( Y = ( Y ? Y . o w n e r D o c u m e n t | | Y : 0 ) . d o c u m e n t E l e m e n t ) ? Y . n o d e N a m e ! = = " H T M L " : f a l s e } , X = f u n c t i o n ( a b , a a ) { v a r   Z = [ ] , Y = " " , b a ; f o r ( a a = a a . n o d e T y p e ? [ a a ] : a a ; b a = L . m a t c h . P S E U D O . e x e c ( a b ) ; ) { Y + = b a [ 0 ] ; a b = a b . r e p l a c e ( L . m a t c h . P S E U D O , " " ) } a b = L . r e l a t i v e [ a b ] ? a b + " * " : a b ; b a = 0 ; f o r ( v a r   b b = a a . l e n g t h ; b a < b b ; b a + + ) { N ( a b , a a [ b a ] , Z ) } r e t u r n   N . f i l t e r ( Y , Z ) } ; a h . f i n d = N ; a h . e x p r = N . s e l e c t o r s ; a h . e x p r [ " : " ] = a h . e x p r . f i l t e r s ; a h . u n i q u e = N . u n i q u e S o r t ; a h . t e x t = W ; a h . i s X M L D o c = s ; a h . c o n t a i n s = A } ) ( ) ; v a r   f = / U n t i l $ / , a 9 = / ^ ( ? : p a r e n t s | p r e v U n t i l | p r e v A l l ) / , a W = / , / ; a u = A r r a y . p r o t o t y p e . s l i c e ; v a r   a L = f u n c t i o n ( s , c , A ) { i f ( a h . i s F u n c t i o n ( c ) ) { r e t u r n   a h . g r e p ( s , f u n c t i o n ( G , F ) { r e t u r n   ! ! c . c a l l ( G , F , G ) = = = A } ) } e l s e { i f ( c . n o d e T y p e ) { r e t u r n   a h . g r e p ( s , f u n c t i o n ( F ) { r e t u r n   F = = = c = = = A } ) } e l s e { i f ( t y p e o f   c = = = " s t r i n g " ) { v a r   w = a h . g r e p ( s , f u n c t i o n ( F ) { r e t u r n   F . n o d e T y p e = = = 1 } ) ; i f ( a T . t e s t ( c ) ) { r e t u r n   a h . f i l t e r ( c , w , ! A ) } e l s e { c = a h . f i l t e r ( c , w ) } } } } r e t u r n   a h . g r e p ( s , f u n c t i o n ( F ) { r e t u r n   a h . i n A r r a y ( F , c ) > = 0 = = = A } ) } ; a h . f n . e x t e n d ( { f i n d : f u n c t i o n ( s ) { f o r ( v a r   c = t h i s . p u s h S t a c k ( " " , " f i n d " , s ) , J = 0 , F = 0 , G = t h i s . l e n g t h ; F < G ; F + + ) { J = c . l e n g t h ; a h . f i n d ( s , t h i s [ F ] , c ) ; i f ( F > 0 ) { f o r ( v a r   w = J ; w < c . l e n g t h ; w + + ) { f o r ( v a r   A = 0 ; A < J ; A + + ) { i f ( c [ A ] = = = c [ w ] ) { c . s p l i c e ( w - - , 1 ) ; b r e a k } } } } } r e t u r n   c } , h a s : f u n c t i o n ( s ) { v a r   c = a h ( s ) ; r e t u r n   t h i s . f i l t e r ( f u n c t i o n ( ) { f o r ( v a r   A = 0 , w = c . l e n g t h ; A < w ; A + + ) { i f ( a h . c o n t a i n s ( t h i s , c [ A ] ) ) { r e t u r n   t r u e } } } ) } , n o t : f u n c t i o n ( c ) { r e t u r n   t h i s . p u s h S t a c k ( a L ( t h i s , c , f a l s e ) , " n o t " , c ) } , f i l t e r : f u n c t i o n ( c ) { r e t u r n   t h i s . p u s h S t a c k ( a L ( t h i s , c , t r u e ) , " f i l t e r " , c ) } , i s : f u n c t i o n ( c ) { r e t u r n   ! ! c & & a h . f i l t e r ( c , t h i s ) . l e n g t h > 0 } , c l o s e s t : f u n c t i o n ( L , K ) { i f ( a h . i s A r r a y ( L ) ) { v a r   J = [ ] , F = t h i s [ 0 ] , G , w = { } , A ; i f ( F & & L . l e n g t h ) { G = 0 ; f o r ( v a r   c = L . l e n g t h ; G < c ; G + + ) { A = L [ G ] ; w [ A ] | | ( w [ A ] = a h . e x p r . m a t c h . P O S . t e s t ( A ) ? a h ( A , K | | t h i s . c o n t e x t ) : A ) } f o r ( ; F & & F . o w n e r D o c u m e n t & & F ! = = K ; ) { f o r ( A   i n   w ) { G = w [ A ] ; i f ( G . j q u e r y ? G . i n d e x ( F ) > - 1 : a h ( F ) . i s ( G ) ) { J . p u s h ( { s e l e c t o r : A , e l e m : F } ) ; d e l e t e   w [ A ] } } F = F . p a r e n t N o d e } } r e t u r n   J } v a r   s = a h . e x p r . m a t c h . P O S . t e s t ( L ) ? a h ( L , K | | t h i s . c o n t e x t ) : n u l l ; r e t u r n   t h i s . m a p ( f u n c t i o n ( O , N ) { f o r ( ; N & & N . o w n e r D o c u m e n t & & N ! = = K ; ) { i f ( s ? s . i n d e x ( N ) > - 1 : a h ( N ) . i s ( L ) ) { r e t u r n   N } N = N . p a r e n t N o d e } r e t u r n   n u l l } ) } , i n d e x : f u n c t i o n ( c ) { i f ( ! c | | t y p e o f   c = = = " s t r i n g " ) { r e t u r n   a h . i n A r r a y ( t h i s [ 0 ] , c ? a h ( c ) : t h i s . p a r e n t ( ) . c h i l d r e n ( ) ) } r e t u r n   a h . i n A r r a y ( c . j q u e r y ? c [ 0 ] : c , t h i s ) } , a d d : f u n c t i o n ( s , c ) { s = t y p e o f   s = = = " s t r i n g " ? a h ( s , c | | t h i s . c o n t e x t ) : a h . m a k e A r r a y ( s ) ; c = a h . m e r g e ( t h i s . g e t ( ) , s ) ; r e t u r n   t h i s . p u s h S t a c k ( l ( s [ 0 ] ) | | l ( c [ 0 ] ) ? c : a h . u n i q u e ( c ) ) } , 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 ) } } ) ; a h . e a c h ( { p a r e n t : f u n c t i o n ( c ) { r e t u r n ( c = c . p a r e n t N o d e ) & & c . n o d e T y p e ! = = 1 1 ? c : n u l l } , p a r e n t s : f u n c t i o n ( c ) { r e t u r n   a h . d i r ( c , " p a r e n t N o d e " ) } , p a r e n t s U n t i l : f u n c t i o n ( s , c , w ) { r e t u r n   a h . d i r ( s , " p a r e n t N o d e " , w ) } , n e x t : f u n c t i o n ( c ) { r e t u r n   a h . n t h ( c , 2 , " n e x t S i b l i n g " ) } , p r e v : f u n c t i o n ( c ) { r e t u r n   a h . n t h ( c , 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 ( c ) { r e t u r n   a h . d i r ( c , " 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 ( c ) { r e t u r n   a h . d i r ( c , " p r e v i o u s S i b l i n g " ) } , n e x t U n t i l : f u n c t i o n ( s , c , w ) { r e t u r n   a h . d i r ( s , " n e x t S i b l i n g " , w ) } , p r e v U n t i l : f u n c t i o n ( s , c , w ) { r e t u r n   a h . d i r ( s , " p r e v i o u s S i b l i n g " , w ) } , s i b l i n g s : f u n c t i o n ( c ) { r e t u r n   a h . s i b l i n g ( c . p a r e n t N o d e . f i r s t C h i l d , c ) } , c h i l d r e n : f u n c t i o n ( c ) { r e t u r n   a h . s i b l i n g ( c . 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 ( c ) { r e t u r n   a h . n o d e N a m e ( c , " i f r a m e " ) ? c . c o n t e n t D o c u m e n t | | c . c o n t e n t W i n d o w . d o c u m e n t : a h . m a k e A r r a y ( c . c h i l d N o d e s ) } } , f u n c t i o n ( s , c ) { a h . f n [ s ] = f u n c t i o n ( F , w ) { v a r   A = a h . m a p ( t h i s , c , F ) ; f . t e s t ( s ) | | ( w = F ) ; i f ( w & & t y p e o f   w = = = " s t r i n g " ) { A = a h . f i l t e r ( w , A ) } A = t h i s . l e n g t h > 1 ? a h . u n i q u e ( A ) : A ; i f ( ( t h i s . l e n g t h > 1 | | a W . t e s t ( w ) ) & & a 9 . t e s t ( s ) ) { A = A . r e v e r s e ( ) } r e t u r n   t h i s . p u s h S t a c k ( A , s , a u . c a l l ( a r g u m e n t s ) . j o i n ( " , " ) ) } } ) ; a h . e x t e n d ( { f i l t e r : f u n c t i o n ( s , c , w ) { i f ( w ) { s = " : n o t ( " + s + " ) " } r e t u r n   a h . f i n d . m a t c h e s ( s , c ) } , d i r : f u n c t i o n ( s , c , A ) { v a r   w = [ ] ; f o r ( s = s [ c ] ; s & & s . n o d e T y p e ! = = 9 & & ( A = = = I | | s . n o d e T y p e ! = = 1 | | ! a h ( s ) . i s ( A ) ) ; ) { s . n o d e T y p e = = = 1 & & w . p u s h ( s ) ; s = s [ c ] } r e t u r n   w } , n t h : f u n c t i o n ( s , c , A ) { c = c | | 1 ; f o r ( v a r   w = 0 ; s ; s = s [ A ] ) { i f ( s . n o d e T y p e = = = 1 & & + + w = = = c ) { b r e a k } } r e t u r n   s } , s i b l i n g : f u n c t i o n ( s , c ) { f o r ( v a r   w = [ ] ; s ; s = s . n e x t S i b l i n g ) { s . n o d e T y p e = = = 1 & & s ! = = c & & w . p u s h ( s ) } r e t u r n   w } } ) ; v a r   a i = /   j Q u e r y \ d + = " ( ? : \ d + | n u l l ) " / g , a r = / ^ \ s + / , B = / ( < ( [ \ w : ] + ) [ ^ > ] * ? ) \ / > / g , a D = / ^ ( ? : a r e a | b r | c o l | e m b e d | h r | i m g | i n p u t | l i n k | m e t a | p a r a m ) $ / i , m = / < ( [ \ w : ] + ) / , a c = / < t b o d y / i , u = / < | & # ? \ w + ; / , a P = / < s c r i p t | < o b j e c t | < e m b e d | < o p t i o n | < s t y l e / i , a k = / c h e c k e d \ s * ( ? : [ ^ = ] | = \ s * . c h e c k e d . ) / i , b k = f u n c t i o n ( s , c , w ) { r e t u r n   a D . t e s t ( w ) ? s : c + " > < / " + w + " > " } , a J = { o p t i o n : [ 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 > " ] , l e g e n d : [ 1 , " < f i e l d s e t > " , " < / f i e l d s e t > " ] , t h e a d : [ 1 , " < t a b l e > " , " < / t a b l e > " ] , t r : [ 2 , " < t a b l e > < t b o d y > " , " < / t b o d y > < / t a b l e > " ] , t d : [ 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 > " ] , 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 > " ] , a r e a : [ 1 , " < m a p > " , " < / m a p > " ] , _ d e f a u l t : [ 0 , " " , " " ] } ; a J . o p t g r o u p = a J . o p t i o n ; a J . t b o d y = a J . t f o o t = a J . c o l g r o u p = a J . c a p t i o n = a J . t h e a d ; a J . t h = a J . t d ; i f ( ! a h . s u p p o r t . h t m l S e r i a l i z e ) { a J . _ d e f a u l t = [ 1 , " d i v < d i v > " , " < / d i v > " ] } a h . f n . e x t e n d ( { t e x t : f u n c t i o n ( c ) { i f ( a h . i s F u n c t i o n ( c ) ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( s ) { v a r   w = a h ( t h i s ) ; w . t e x t ( c . c a l l ( t h i s , s , w . t e x t ( ) ) ) } ) } i f ( t y p e o f   c ! = = " o b j e c t " & & c ! = = I ) { 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 | | M ) . c r e a t e T e x t N o d e ( c ) ) } r e t u r n   a h . t e x t ( t h i s ) } , w r a p A l l : f u n c t i o n ( s ) { i f ( a h . i s F u n c t i o n ( s ) ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( w ) { a h ( t h i s ) . w r a p A l l ( s . c a l l ( t h i s , w ) ) } ) } i f ( t h i s [ 0 ] ) { v a r   c = a h ( s , t h i s [ 0 ] . o w n e r D o c u m e n t ) . e q ( 0 ) . c l o n e ( t r u e ) ; t h i s [ 0 ] . p a r e n t N o d e & & c . i n s e r t B e f o r e ( t h i s [ 0 ] ) ; c . m a p ( f u n c t i o n ( ) { f o r ( v a r   w = t h i s ; w . f i r s t C h i l d & & w . f i r s t C h i l d . n o d e T y p e = = = 1 ; ) { w = w . f i r s t C h i l d } r e t u r n   w } ) . 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 ( c ) { i f ( a h . i s F u n c t i o n ( c ) ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( s ) { a h ( t h i s ) . w r a p I n n e r ( c . c a l l ( t h i s , s ) ) } ) } 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   s = a h ( t h i s ) , w = s . c o n t e n t s ( ) ; w . l e n g t h ? w . w r a p A l l ( c ) : s . a p p e n d ( c ) } ) } , w r a p : f u n c t i o n ( c ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { a h ( t h i s ) . w r a p A l l ( c ) } ) } , u n w r a p : f u n c t i o n ( ) { r e t u r n   t h i s . p a r e n t ( ) . e a c h ( f u n c t i o n ( ) { a h . n o d e N a m e ( t h i s , " b o d y " ) | | a h ( t h i s ) . r e p l a c e W i t h ( t h i s . c h i l d N o d e s ) } ) . e n d ( ) } , a p p e n d : f u n c t i o n ( ) { r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s , t r u e , f u n c t i o n ( c ) { 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 ( c ) } ) } , p r e p e n d : f u n c t i o n ( ) { r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s , t r u e , f u n c t i o n ( c ) { 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 ( c , 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 ( ) { i f ( t h i s [ 0 ] & & t h i s [ 0 ] . p a r e n t N o d e ) { r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s , f a l s e , f u n c t i o n ( s ) { 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 ( s , t h i s ) } ) } e l s e { i f ( a r g u m e n t s . l e n g t h ) { v a r   c = a h ( a r g u m e n t s [ 0 ] ) ; c . p u s h . a p p l y ( c , t h i s . t o A r r a y ( ) ) ; r e t u r n   t h i s . p u s h S t a c k ( c , " b e f o r e " , a r g u m e n t s ) } } } , a f t e r : f u n c t i o n ( ) { i f ( t h i s [ 0 ] & & t h i s [ 0 ] . p a r e n t N o d e ) { r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s , f a l s e , f u n c t i o n ( s ) { 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 ( s , t h i s . n e x t S i b l i n g ) } ) } e l s e { i f ( a r g u m e n t s . l e n g t h ) { v a r   c = t h i s . p u s h S t a c k ( t h i s , " a f t e r " , a r g u m e n t s ) ; c . p u s h . a p p l y ( c , a h ( a r g u m e n t s [ 0 ] ) . t o A r r a y ( ) ) ; r e t u r n   c } } } , r e m o v e : f u n c t i o n ( s , c ) { f o r ( v a r   A = 0 , w ; ( w = t h i s [ A ] ) ! = n u l l ; A + + ) { i f ( ! s | | a h . f i l t e r ( s , [ w ] ) . l e n g t h ) { i f ( ! c & & w . n o d e T y p e = = = 1 ) { a h . c l e a n D a t a ( w . g e t E l e m e n t s B y T a g N a m e ( " * " ) ) ; a h . c l e a n D a t a ( [ w ] ) } w . p a r e n t N o d e & & w . p a r e n t N o d e . r e m o v e C h i l d ( w ) } } r e t u r n   t h i s } , e m p t y : f u n c t i o n ( ) { f o r ( v a r   s = 0 , c ; ( c = t h i s [ s ] ) ! = n u l l ; s + + ) { f o r ( c . n o d e T y p e = = = 1 & & a h . c l e a n D a t a ( c . g e t E l e m e n t s B y T a g N a m e ( " * " ) ) ; c . f i r s t C h i l d ; ) { c . r e m o v e C h i l d ( c . f i r s t C h i l d ) } } r e t u r n   t h i s } , c l o n e : f u n c t i o n ( s ) { v a r   c = t h i s . m a p ( f u n c t i o n ( ) { i f ( ! a h . s u p p o r t . n o C l o n e E v e n t & & ! a h . i s X M L D o c ( t h i s ) ) { v a r   A = t h i s . o u t e r H T M L , w = t h i s . o w n e r D o c u m e n t ; i f ( ! A ) { A = w . c r e a t e E l e m e n t ( " d i v " ) ; A . a p p e n d C h i l d ( t h i s . c l o n e N o d e ( t r u e ) ) ; A = A . i n n e r H T M L } r e t u r n   a h . c l e a n ( [ A . r e p l a c e ( a i , " " ) . r e p l a c e ( / = ( [ ^ = " ' > \ s ] + \ / ) > / g , ' = " $ 1 " > ' ) . r e p l a c e ( a r , " " ) ] , w ) [ 0 ] } e l s e { r e t u r n   t h i s . c l o n e N o d e ( t r u e ) } } ) ; i f ( s = = = t r u e ) { b j ( t h i s , c ) ; b j ( t h i s . f i n d ( " * " ) , c . f i n d ( " * " ) ) } r e t u r n   c } , h t m l : f u n c t i o n ( s ) { i f ( s = = = I ) { r e t u r n   t h i s [ 0 ] & & t h i s [ 0 ] . n o d e T y p e = = = 1 ? t h i s [ 0 ] . i n n e r H T M L . r e p l a c e ( a i , " " ) : n u l l } e l s e { i f ( t y p e o f   s = = = " s t r i n g " & & ! a P . t e s t ( s ) & & ( a h . s u p p o r t . l e a d i n g W h i t e s p a c e | | ! a r . t e s t ( s ) ) & & ! a J [ ( m . e x e c ( s ) | | [ " " , " " ] ) [ 1 ] . t o L o w e r C a s e ( ) ] ) { s = s . r e p l a c e ( B , b k ) ; t r y { f o r ( v a r   c = 0 , A = t h i s . l e n g t h ; c < A ; c + + ) { i f ( t h i s [ c ] . n o d e T y p e = = = 1 ) { a h . c l e a n D a t a ( t h i s [ c ] . g e t E l e m e n t s B y T a g N a m e ( " * " ) ) ; t h i s [ c ] . i n n e r H T M L = s } } } c a t c h ( w ) { t h i s . e m p t y ( ) . a p p e n d ( s ) } } e l s e { a h . i s F u n c t i o n ( s ) ? t h i s . e a c h ( f u n c t i o n ( J ) { v a r   F = a h ( t h i s ) , G = F . h t m l ( ) ; F . e m p t y ( ) . a p p e n d ( f u n c t i o n ( ) { r e t u r n   s . c a l l ( t h i s , J , G ) } ) } ) : t h i s . e m p t y ( ) . a p p e n d ( s ) } } r e t u r n   t h i s } , r e p l a c e W i t h : f u n c t i o n ( c ) { i f ( t h i s [ 0 ] & & t h i s [ 0 ] . p a r e n t N o d e ) { i f ( a h . i s F u n c t i o n ( c ) ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( s ) { v a r   A = a h ( t h i s ) , w = A . h t m l ( ) ; A . r e p l a c e W i t h ( c . c a l l ( t h i s , s , w ) ) } ) } i f ( t y p e o f   c ! = = " s t r i n g " ) { c = a h ( c ) . d e t a c h ( ) } 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   s = t h i s . n e x t S i b l i n g , w = t h i s . p a r e n t N o d e ; a h ( t h i s ) . r e m o v e ( ) ; s ? a h ( s ) . b e f o r e ( c ) : a h ( w ) . a p p e n d ( c ) } ) } e l s e { r e t u r n   t h i s . p u s h S t a c k ( a h ( a h . i s F u n c t i o n ( c ) ? c ( ) : c ) , " r e p l a c e W i t h " , c ) } } , d e t a c h : f u n c t i o n ( c ) { r e t u r n   t h i s . r e m o v e ( c , t r u e ) } , d o m M a n i p : f u n c t i o n ( O , N , L ) { f u n c t i o n   J ( P ) { r e t u r n   a h . n o d e N a m e ( P , " t a b l e " ) ? P . 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 ] | | P . a p p e n d C h i l d ( P . 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 " ) ) : P } v a r   K , F , G = O [ 0 ] , s = [ ] , A ; i f ( ! a h . s u p p o r t . c h e c k C l o n e & & a r g u m e n t s . l e n g t h = = = 3 & & t y p e o f   G = = = " s t r i n g " & & a k . t e s t ( G ) ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { a h ( t h i s ) . d o m M a n i p ( O , N , L , t r u e ) } ) } i f ( a h . i s F u n c t i o n ( G ) ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( P ) { v a r   Q = a h ( t h i s ) ; O [ 0 ] = G . c a l l ( t h i s , P , N ? Q . h t m l ( ) : I ) ; Q . d o m M a n i p ( O , N , L ) } ) } i f ( t h i s [ 0 ] ) { K = G & & G . p a r e n t N o d e ; K = a h . s u p p o r t . p a r e n t N o d e & & K & & K . n o d e T y p e = = = 1 1 & & K . c h i l d N o d e s . l e n g t h = = = t h i s . l e n g t h ? { f r a g m e n t : K } : a 3 ( O , t h i s , s ) ; A = K . f r a g m e n t ; i f ( F = A . c h i l d N o d e s . l e n g t h = = = 1 ? ( A = A . f i r s t C h i l d ) : A . f i r s t C h i l d ) { N = N & & a h . n o d e N a m e ( F , " t r " ) ; f o r ( v a r   w = 0 , c = t h i s . l e n g t h ; w < c ; w + + ) { L . c a l l ( N ? J ( t h i s [ w ] , F ) : t h i s [ w ] , w > 0 | | K . c a c h e a b l e | | t h i s . l e n g t h > 1 ? A . c l o n e N o d e ( t r u e ) : A ) } } s . l e n g t h & & a h . e a c h ( s , E ) } r e t u r n   t h i s } } ) ; a h . f r a g m e n t s = { } ; a h . 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 ( s , c ) { a h . f n [ s ] = f u n c t i o n ( J ) { v a r   F = [ ] ; J = a h ( J ) ; v a r   G = t h i s . l e n g t h = = = 1 & & t h i s [ 0 ] . p a r e n t N o d e ; i f ( G & & G . n o d e T y p e = = = 1 1 & & G . c h i l d N o d e s . l e n g t h = = = 1 & & J . l e n g t h = = = 1 ) { J [ c ] ( t h i s [ 0 ] ) ; r e t u r n   t h i s } e l s e { G = 0 ; f o r ( v a r   w = J . l e n g t h ; G < w ; G + + ) { v a r   A = ( G > 0 ? t h i s . c l o n e ( t r u e ) : t h i s ) . g e t ( ) ; a h . f n [ c ] . a p p l y ( a h ( J [ G ] ) , A ) ; F = F . c o n c a t ( A ) } r e t u r n   t h i s . p u s h S t a c k ( F , s , J . s e l e c t o r ) } } } ) ; a h . e x t e n d ( { c l e a n : f u n c t i o n ( O , N , L , J ) { N = N | | M ; i f ( t y p e o f   N . c r e a t e E l e m e n t = = = " u n d e f i n e d " ) { N = N . o w n e r D o c u m e n t | | N [ 0 ] & & N [ 0 ] . o w n e r D o c u m e n t | | M } f o r ( v a r   K = [ ] , F = 0 , G ; ( G = O [ F ] ) ! = n u l l ; F + + ) { i f ( t y p e o f   G = = = " n u m b e r " ) { G + = " " } i f ( G ) { i f ( t y p e o f   G = = = " s t r i n g " & & ! u . t e s t ( G ) ) { G = N . c r e a t e T e x t N o d e ( G ) } e l s e { i f ( t y p e o f   G = = = " s t r i n g " ) { G = G . r e p l a c e ( B , b k ) ; v a r   s = ( m . e x e c ( G ) | | [ " " , " " ] ) [ 1 ] . t o L o w e r C a s e ( ) , A = a J [ s ] | | a J . _ d e f a u l t , w = A [ 0 ] , c = N . c r e a t e E l e m e n t ( " d i v " ) ; f o r ( c . i n n e r H T M L = A [ 1 ] + G + A [ 2 ] ; w - - ; ) { c = c . l a s t C h i l d } i f ( ! a h . s u p p o r t . t b o d y ) { w = a c . t e s t ( G ) ; s = s = = = " t a b l e " & & ! w ? c . f i r s t C h i l d & & c . f i r s t C h i l d . c h i l d N o d e s : A [ 1 ] = = = " < t a b l e > " & & ! w ? c . c h i l d N o d e s : [ ] ; f o r ( A = s . l e n g t h - 1 ; A > = 0 ; - - A ) { a h . n o d e N a m e ( s [ A ] , " t b o d y " ) & & ! s [ A ] . c h i l d N o d e s . l e n g t h & & s [ A ] . p a r e n t N o d e . r e m o v e C h i l d ( s [ A ] ) } } ! a h . s u p p o r t . l e a d i n g W h i t e s p a c e & & a r . t e s t ( G ) & & c . i n s e r t B e f o r e ( N . c r e a t e T e x t N o d e ( a r . e x e c ( G ) [ 0 ] ) , c . f i r s t C h i l d ) ; G = c . c h i l d N o d e s } } i f ( G . n o d e T y p e ) { K . p u s h ( G ) } e l s e { K = a h . m e r g e ( K , G ) } } } i f ( L ) { f o r ( F = 0 ; K [ F ] ; F + + ) { i f ( J & & a h . n o d e N a m e ( K [ F ] , " s c r i p t " ) & & ( ! K [ F ] . t y p e | | K [ F ] . t y p e . t o L o w e r C a s e ( ) = = = " t e x t / j a v a s c r i p t " ) ) { J . p u s h ( K [ F ] . p a r e n t N o d e ? K [ F ] . p a r e n t N o d e . r e m o v e C h i l d ( K [ F ] ) : K [ F ] ) } e l s e { K [ F ] . n o d e T y p e = = = 1 & & K . s p l i c e . a p p l y ( K , [ F + 1 , 0 ] . c o n c a t ( a h . m a k e A r r a y ( K [ F ] . g e t E l e m e n t s B y T a g N a m e ( " s c r i p t " ) ) ) ) ; L . a p p e n d C h i l d ( K [ F ] ) } } } r e t u r n   K } , c l e a n D a t a : f u n c t i o n ( L ) { f o r ( v a r   K , J , F = a h . c a c h e , G = a h . e v e n t . s p e c i a l , w = a h . s u p p o r t . d e l e t e E x p a n d o , A = 0 , c ; ( c = L [ A ] ) ! = n u l l ; A + + ) { i f ( J = c [ a h . e x p a n d o ] ) { K = F [ J ] ; i f ( K . e v e n t s ) { f o r ( v a r   s   i n   K . e v e n t s ) { G [ s ] ? a h . e v e n t . r e m o v e ( c , s ) : a G ( c , s , K . h a n d l e ) } } i f ( w ) { d e l e t e   c [ a h . e x p a n d o ] } e l s e { c . r e m o v e A t t r i b u t e & & c . r e m o v e A t t r i b u t e ( a h . e x p a n d o ) } d e l e t e   F [ J ] } } } } ) ; v a r   h = / 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 , a 4 = / a l p h a \ ( [ ^ ) ] * \ ) / , a Q = / o p a c i t y = ( [ ^ ) ] * ) / , a E = / f l o a t / i , a d = / - ( [ a - z ] ) / i g , b f = / ( [ A - Z ] ) / g , a Z = / ^ - ? \ d + ( ? : p x ) ? $ / i , a I = / ^ - ? \ d / , a f = { 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 " } , y = [ " L e f t " , " R i g h t " ] , k = [ " T o p " , " B o t t o m " ] , b i = M . d e f a u l t V i e w & & M . d e f a u l t V i e w . g e t C o m p u t e d S t y l e , a l = a h . s u p p o r t . c s s F l o a t ? " c s s F l o a t " : " s t y l e F l o a t " , v = f u n c t i o n ( s , c ) { r e t u r n   c . t o U p p e r C a s e ( ) } ; a h . f n . c s s = f u n c t i o n ( s , c ) { r e t u r n   a p ( t h i s , s , c , t r u e , f u n c t i o n ( F , w , A ) { i f ( A = = = I ) { r e t u r n   a h . c u r C S S ( F , w ) } i f ( t y p e o f   A = = = " n u m b e r " & & ! h . t e s t ( w ) ) { A + = " p x " } a h . s t y l e ( F , w , A ) } ) } ; a h . e x t e n d ( { s t y l e : f u n c t i o n ( s , c , F ) { i f ( ! s | | s . n o d e T y p e = = = 3 | | s . n o d e T y p e = = = 8 ) { r e t u r n   I } i f ( ( c = = = " w i d t h " | | c = = = " h e i g h t " ) & & p a r s e F l o a t ( F ) < 0 ) { F = I } v a r   w = s . s t y l e | | s , A = F ! = = I ; i f ( ! a h . s u p p o r t . o p a c i t y & & c = = = " o p a c i t y " ) { i f ( A ) { w . z o o m = 1 ; c = p a r s e I n t ( F , 1 0 ) + " " = = = " N a N " ? " " : " a l p h a ( o p a c i t y = " + F * 1 0 0 + " ) " ; s = w . f i l t e r | | a h . c u r C S S ( s , " f i l t e r " ) | | " " ; w . f i l t e r = a 4 . t e s t ( s ) ? s . r e p l a c e ( a 4 , c ) : c } r e t u r n   w . f i l t e r & & w . 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 ( a Q . e x e c ( w . f i l t e r ) [ 1 ] ) / 1 0 0 + " " : " " } i f ( a E . t e s t ( c ) ) { c = a l } c = c . r e p l a c e ( a d , v ) ; i f ( A ) { w [ c ] = F } r e t u r n   w [ c ] } , c s s : f u n c t i o n ( s , c , J , F ) { i f ( c = = = " w i d t h " | | c = = = " h e i g h t " ) { v a r   G , w = c = = = " w i d t h " ? y : k ; f u n c t i o n   A ( ) { G = c = = = " w i d t h " ? s . o f f s e t W i d t h : s . o f f s e t H e i g h t ; F ! = = " b o r d e r " & & a h . e a c h ( w , f u n c t i o n ( ) { F | | ( G - = p a r s e F l o a t ( a h . c u r C S S ( s , " p a d d i n g " + t h i s , t r u e ) ) | | 0 ) ; i f ( F = = = " m a r g i n " ) { G + = p a r s e F l o a t ( a h . c u r C S S ( s , " m a r g i n " + t h i s , t r u e ) ) | | 0 } e l s e { G - = p a r s e F l o a t ( a h . c u r C S S ( s , " b o r d e r " + t h i s + " W i d t h " , t r u e ) ) | | 0 } } ) } s . o f f s e t W i d t h ! = = 0 ? A ( ) : a h . s w a p ( s , a f , A ) ; r e t u r n   M a t h . m a x ( 0 , M a t h . r o u n d ( G ) ) } r e t u r n   a h . c u r C S S ( s , c , J ) } , c u r C S S : f u n c t i o n ( s , c , G ) { v a r   A , F = s . s t y l e ; i f ( ! a h . s u p p o r t . o p a c i t y & & c = = = " o p a c i t y " & & s . c u r r e n t S t y l e ) { A = a Q . t e s t ( s . c u r r e n t S t y l e . f i l t e r | | " " ) ? p a r s e F l o a t ( R e g E x p . $ 1 ) / 1 0 0 + " " : " " ; r e t u r n   A = = = " " ? " 1 " : A } i f ( a E . t e s t ( c ) ) { c = a l } i f ( ! G & & F & & F [ c ] ) { A = F [ c ] } e l s e { i f ( b i ) { i f ( a E . t e s t ( c ) ) { c = " f l o a t " } c = c . r e p l a c e ( b f , " - $ 1 " ) . t o L o w e r C a s e ( ) ; F = s . o w n e r D o c u m e n t . d e f a u l t V i e w ; i f ( ! F ) { r e t u r n   n u l l } i f ( s = F . g e t C o m p u t e d S t y l e ( s , n u l l ) ) { A = s . g e t P r o p e r t y V a l u e ( c ) } i f ( c = = = " o p a c i t y " & & A = = = " " ) { A = " 1 " } } e l s e { i f ( s . c u r r e n t S t y l e ) { G = c . r e p l a c e ( a d , v ) ; A = s . c u r r e n t S t y l e [ c ] | | s . c u r r e n t S t y l e [ G ] ; i f ( ! a Z . t e s t ( A ) & & a I . t e s t ( A ) ) { c = F . l e f t ; v a r   w = s . r u n t i m e S t y l e . l e f t ; s . r u n t i m e S t y l e . l e f t = s . c u r r e n t S t y l e . l e f t ; F . l e f t = G = = = " f o n t S i z e " ? " 1 e m " : A | | 0 ; A = F . p i x e l L e f t + " p x " ; F . l e f t = c ; s . r u n t i m e S t y l e . l e f t = w } } } } r e t u r n   A } , s w a p : f u n c t i o n ( s , c , F ) { v a r   w = { } ; f o r ( v a r   A   i n   c ) { w [ A ] = s . s t y l e [ A ] ; s . s t y l e [ A ] = c [ A ] } F . c a l l ( s ) ; f o r ( A   i n   c ) { s . s t y l e [ A ] = w [ A ] } } } ) ; i f ( a h . e x p r & & a h . e x p r . f i l t e r s ) { a h . e x p r . f i l t e r s . h i d d e n = f u n c t i o n ( s ) { v a r   c = s . o f f s e t W i d t h , A = s . o f f s e t H e i g h t , w = s . n o d e N a m e . t o L o w e r C a s e ( ) = = = " t r " ; r e t u r n   c = = = 0 & & A = = = 0 & & ! w ? t r u e : c > 0 & & A > 0 & & ! w ? f a l s e : a h . c u r C S S ( s , " d i s p l a y " ) = = = " n o n e " } ; a h . e x p r . f i l t e r s . v i s i b l e = f u n c t i o n ( c ) { r e t u r n   ! a h . e x p r . f i l t e r s . h i d d e n ( c ) } } v a r   a 2 = a F ( ) , a N = / < s c r i p t ( . | \ s ) * ? \ / s c r i p t > / g i , a j = / s e l e c t | t e x t a r e a / i , C = / c o l o r | d a t e | d a t e t i m e | e m a i l | h i d d e n | m o n t h | n u m b e r | p a s s w o r d | r a n g e | s e a r c h | t e l | t e x t | t i m e | u r l | w e e k / i , a A = / = \ ? ( & | $ ) / , i = / \ ? / , n = / ( \ ? | & ) _ = . * ? ( & | $ ) / , a = / ^ ( \ w + : ) ? \ / \ / ( [ ^ \ / ? # ] + ) / , a 5 = / % 2 0 / g , a R = a h . f n . l o a d ; a h . f n . e x t e n d ( { l o a d : f u n c t i o n ( s , c , G ) { i f ( t y p e o f   s ! = = " s t r i n g " ) { r e t u r n   a R . c a l l ( t h i s , s ) } e l s e { i f ( ! t h i s . l e n g t h ) { r e t u r n   t h i s } } v a r   A = s . i n d e x O f ( "   " ) ; i f ( A > = 0 ) { v a r   F = s . s l i c e ( A , s . l e n g t h ) ; s = s . s l i c e ( 0 , A ) } A = " G E T " ; i f ( c ) { i f ( a h . i s F u n c t i o n ( c ) ) { G = c ; c = n u l l } e l s e { i f ( t y p e o f   c = = = " o b j e c t " ) { c = a h . p a r a m ( c , a h . a j a x S e t t i n g s . t r a d i t i o n a l ) ; A = " P O S T " } } } v a r   w = t h i s ; a h . a j a x ( { u r l : s , t y p e : A , d a t a T y p e : " h t m l " , d a t a : c , c o m p l e t e : f u n c t i o n ( J , K ) { i f ( K = = = " s u c c e s s " | | K = = = " n o t m o d i f i e d " ) { w . h t m l ( F ? a h ( " < d i v   / > " ) . a p p e n d ( J . r e s p o n s e T e x t . r e p l a c e ( a N , " " ) ) . f i n d ( F ) : J . r e s p o n s e T e x t ) } G & & w . e a c h ( G , [ J . r e s p o n s e T e x t , K , J ] ) } } ) ; 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   a h . p a r a m ( t h i s . s e r i a l i z e A r r a y ( ) ) } , s e r i a l i z e A r r a y : f u n c t i o n ( ) { r e t u r n   t h i s . m a p ( f u n c t i o n ( ) { r e t u r n   t h i s . e l e m e n t s ? a h . 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 | | a j . t e s t ( t h i s . n o d e N a m e ) | | C . t e s t ( t h i s . t y p e ) ) } ) . m a p ( f u n c t i o n ( s , c ) { s = a h ( t h i s ) . v a l ( ) ; r e t u r n   s = = n u l l ? n u l l : a h . i s A r r a y ( s ) ? a h . m a p ( s , f u n c t i o n ( w ) { r e t u r n { n a m e : c . n a m e , v a l u e : w } } ) : { n a m e : c . n a m e , v a l u e : s } } ) . g e t ( ) } } ) ; a h . 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 ( s , c ) { a h . f n [ c ] = f u n c t i o n ( w ) { r e t u r n   t h i s . b i n d ( c , w ) } } ) ; a h . e x t e n d ( { g e t : f u n c t i o n ( s , c , A , w ) { i f ( a h . i s F u n c t i o n ( c ) ) { w = w | | A ; A = c ; c = n u l l } r e t u r n   a h . a j a x ( { t y p e : " G E T " , u r l : s , d a t a : c , s u c c e s s : A , d a t a T y p e : w } ) } , g e t S c r i p t : f u n c t i o n ( s , c ) { r e t u r n   a h . g e t ( s , n u l l , c , " s c r i p t " ) } , g e t J S O N : f u n c t i o n ( s , c , w ) { r e t u r n   a h . g e t ( s , c , w , " j s o n " ) } , p o s t : f u n c t i o n ( s , c , A , w ) { i f ( a h . i s F u n c t i o n ( c ) ) { w = w | | A ; A = c ; c = { } } r e t u r n   a h . a j a x ( { t y p e : " P O S T " , u r l : s , d a t a : c , s u c c e s s : A , d a t a T y p e : w } ) } , a j a x S e t u p : f u n c t i o n ( c ) { a h . e x t e n d ( a h . a j a x S e t t i n g s , c ) } , a j a x S e t t i n g s : { u r l : l o c a t i o n . h r e f , g l o b a l : t r u e , t y p e : " G E T " , c o n t e n t T y p e : " a p p l i c a t i o n / x - w w w - f o r m - u r l e n c o d e d " , p r o c e s s D a t a : t r u e , a s y n c : t r u e , x h r : a O . X M L H t t p R e q u e s t & & ( a O . l o c a t i o n . p r o t o c o l ! = = " f i l e : " | | ! a O . A c t i v e X O b j e c t ) ? f u n c t i o n ( ) { r e t u r n   n e w   a O . X M L H t t p R e q u e s t } : f u n c t i o n ( ) { t r y { r e t u r n   n e w   a O . 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 " ) } c a t c h ( c ) { } } , 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 : { } , e t a g : { } , a j a x : f u n c t i o n ( a a ) { f u n c t i o n   Z ( ) { X . s u c c e s s & & X . s u c c e s s . c a l l ( P , K , R , s ) ; X . g l o b a l & & W ( " a j a x S u c c e s s " , [ s , X ] ) } f u n c t i o n   Y ( ) { X . c o m p l e t e & & X . c o m p l e t e . c a l l ( P , s , R ) ; X . g l o b a l & & W ( " a j a x C o m p l e t e " , [ s , X ] ) ; X . g l o b a l & & ! - - a h . a c t i v e & & a h . e v e n t . t r i g g e r ( " a j a x S t o p " ) } f u n c t i o n   W ( b a , b b ) { ( X . c o n t e x t ? a h ( X . c o n t e x t ) : a h . e v e n t ) . t r i g g e r ( b a , b b ) } v a r   X = a h . e x t e n d ( t r u e , { } , a h . a j a x S e t t i n g s , a a ) , Q , R , K , P = a a & & a a . c o n t e x t | | X , L = X . t y p e . t o U p p e r C a s e ( ) ; i f ( X . d a t a & & X . p r o c e s s D a t a & & t y p e o f   X . d a t a ! = = " s t r i n g " ) { X . d a t a = a h . p a r a m ( X . d a t a , X . t r a d i t i o n a l ) } i f ( X . d a t a T y p e = = = " j s o n p " ) { i f ( L = = = " G E T " ) { a A . t e s t ( X . u r l ) | | ( X . u r l + = ( i . t e s t ( X . u r l ) ? " & " : " ? " ) + ( X . j s o n p | | " c a l l b a c k " ) + " = ? " ) } e l s e { i f ( ! X . d a t a | | ! a A . t e s t ( X . d a t a ) ) { X . d a t a = ( X . d a t a ? X . d a t a + " & " : " " ) + ( X . j s o n p | | " c a l l b a c k " ) + " = ? " } } X . d a t a T y p e = " j s o n " } i f ( X . d a t a T y p e = = = " j s o n " & & ( X . d a t a & & a A . t e s t ( X . d a t a ) | | a A . t e s t ( X . u r l ) ) ) { Q = X . j s o n p C a l l b a c k | | " j s o n p " + a 2 + + ; i f ( X . d a t a ) { X . d a t a = ( X . d a t a + " " ) . r e p l a c e ( a A , " = " + Q + " $ 1 " ) } X . u r l = X . u r l . r e p l a c e ( a A , " = " + Q + " $ 1 " ) ; X . d a t a T y p e = " s c r i p t " ; a O [ Q ] = a O [ Q ] | | f u n c t i o n ( b a ) { K = b a ; Z ( ) ; Y ( ) ; a O [ Q ] = I ; t r y { d e l e t e   a O [ Q ] } c a t c h ( b b ) { } c & & c . r e m o v e C h i l d ( F ) } } i f ( X . d a t a T y p e = = = " s c r i p t " & & X . c a c h e = = = n u l l ) { X . c a c h e = f a l s e } i f ( X . c a c h e = = = f a l s e & & L = = = " G E T " ) { v a r   G = a F ( ) , w = X . u r l . r e p l a c e ( n , " $ 1 _ = " + G + " $ 2 " ) ; X . u r l = w + ( w = = = X . u r l ? ( i . t e s t ( X . u r l ) ? " & " : " ? " ) + " _ = " + G : " " ) } i f ( X . d a t a & & L = = = " G E T " ) { X . u r l + = ( i . t e s t ( X . u r l ) ? " & " : " ? " ) + X . d a t a } X . g l o b a l & & ! a h . a c t i v e + + & & a h . e v e n t . t r i g g e r ( " a j a x S t a r t " ) ; G = ( G = a . e x e c ( X . u r l ) ) & & ( G [ 1 ] & & G [ 1 ] ! = = l o c a t i o n . p r o t o c o l | | G [ 2 ] ! = = l o c a t i o n . h o s t ) ; i f ( X . d a t a T y p e = = = " s c r i p t " & & L = = = " G E T " & & G ) { v a r   c = M . 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 ] | | M . d o c u m e n t E l e m e n t , F = M . c r e a t e E l e m e n t ( " s c r i p t " ) ; F . s r c = X . u r l ; i f ( X . s c r i p t C h a r s e t ) { F . c h a r s e t = X . s c r i p t C h a r s e t } i f ( ! Q ) { v a r   J = f a l s e ; F . o n l o a d = F . 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 ( ! J & & ( ! 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 " ) ) { J = t r u e ; Z ( ) ; Y ( ) ; F . o n l o a d = F . o n r e a d y s t a t e c h a n g e = n u l l ; c & & F . p a r e n t N o d e & & c . r e m o v e C h i l d ( F ) } } } c . i n s e r t B e f o r e ( F , c . f i r s t C h i l d ) ; r e t u r n   I } v a r   A = f a l s e , s = X . x h r ( ) ; i f ( s ) { X . u s e r n a m e ? s . o p e n ( L , X . u r l , X . a s y n c , X . u s e r n a m e , X . p a s s w o r d ) : s . o p e n ( L , X . u r l , X . a s y n c ) ; t r y { i f ( X . d a t a | | a a & & a a . c o n t e n t T y p e ) { s . 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 " , X . c o n t e n t T y p e ) } i f ( X . i f M o d i f i e d ) { a h . l a s t M o d i f i e d [ X . u r l ] & & s . 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 " , a h . l a s t M o d i f i e d [ X . u r l ] ) ; a h . e t a g [ X . u r l ] & & s . s e t R e q u e s t H e a d e r ( " I f - N o n e - M a t c h " , a h . e t a g [ X . u r l ] ) } G | | s . 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 " ) ; s . s e t R e q u e s t H e a d e r ( " A c c e p t " , X . d a t a T y p e & & X . a c c e p t s [ X . d a t a T y p e ] ? X . a c c e p t s [ X . d a t a T y p e ] + " ,   * / * " : X . a c c e p t s . _ d e f a u l t ) } c a t c h ( a b ) { } i f ( X . b e f o r e S e n d & & X . b e f o r e S e n d . c a l l ( P , s , X ) = = = f a l s e ) { X . g l o b a l & & ! - - a h . a c t i v e & & a h . e v e n t . t r i g g e r ( " a j a x S t o p " ) ; s . a b o r t ( ) ; r e t u r n   f a l s e } X . g l o b a l & & W ( " a j a x S e n d " , [ s , X ] ) ; v a r   V = s . 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 ( b b ) { i f ( ! s | | s . r e a d y S t a t e = = = 0 | | b b = = = " a b o r t " ) { A | | Y ( ) ; A = t r u e ; i f ( s ) { s . o n r e a d y s t a t e c h a n g e = a h . n o o p } } e l s e { i f ( ! A & & s & & ( s . r e a d y S t a t e = = = 4 | | b b = = = " t i m e o u t " ) ) { A = t r u e ; s . o n r e a d y s t a t e c h a n g e = a h . n o o p ; R = b b = = = " t i m e o u t " ? " t i m e o u t " : ! a h . h t t p S u c c e s s ( s ) ? " e r r o r " : X . i f M o d i f i e d & & a h . h t t p N o t M o d i f i e d ( s , X . u r l ) ? " n o t m o d i f i e d " : " s u c c e s s " ; v a r   b l ; i f ( R = = = " s u c c e s s " ) { t r y { K = a h . h t t p D a t a ( s , X . d a t a T y p e , X ) } c a t c h ( b a ) { R = " p a r s e r e r r o r " ; b l = b a } } i f ( R = = = " s u c c e s s " | | R = = = " n o t m o d i f i e d " ) { Q | | Z ( ) } e l s e { a h . h a n d l e E r r o r ( X , s , R , b l ) } Y ( ) ; b b = = = " t i m e o u t " & & s . a b o r t ( ) ; i f ( X . a s y n c ) { s = n u l l } } } } ; t r y { v a r   T = s . a b o r t ; s . a b o r t = f u n c t i o n ( ) { s & & T . c a l l ( s ) ; V ( " a b o r t " ) } } c a t c h ( O ) { } X . a s y n c & & X . 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 ( ) { s & & ! A & & V ( " t i m e o u t " ) } , X . t i m e o u t ) ; t r y { s . s e n d ( L = = = " P O S T " | | L = = = " P U T " | | L = = = " D E L E T E " ? X . d a t a : n u l l ) } c a t c h ( N ) { a h . h a n d l e E r r o r ( X , s , n u l l , N ) ; Y ( ) } X . a s y n c | | V ( ) ; r e t u r n   s } } , h a n d l e E r r o r : f u n c t i o n ( s , c , A , w ) { i f ( s . e r r o r ) { s . e r r o r . c a l l ( s . c o n t e x t | | s , c , A , w ) } i f ( s . g l o b a l ) { ( s . c o n t e x t ? a h ( s . c o n t e x t ) : a h . e v e n t ) . t r i g g e r ( " a j a x E r r o r " , [ c , s , w ] ) } } , 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 ( s ) { t r y { r e t u r n   ! s . 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 : " | | s . s t a t u s > = 2 0 0 & & s . s t a t u s < 3 0 0 | | s . s t a t u s = = = 3 0 4 | | s . s t a t u s = = = 1 2 2 3 | | s . s t a t u s = = = 0 } c a t c h ( c ) { } 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 ( s , c ) { v a r   A = s . 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 " ) , w = s . g e t R e s p o n s e H e a d e r ( " E t a g " ) ; i f ( A ) { a h . l a s t M o d i f i e d [ c ] = A } i f ( w ) { a h . e t a g [ c ] = w } r e t u r n   s . s t a t u s = = = 3 0 4 | | s . s t a t u s = = = 0 } , h t t p D a t a : f u n c t i o n ( s , c , F ) { v a r   w = s . 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 " ) | | " " , A = c = = = " x m l " | | ! c & & w . i n d e x O f ( " x m l " ) > = 0 ; s = A ? s . r e s p o n s e X M L : s . r e s p o n s e T e x t ; A & & s . d o c u m e n t E l e m e n t . n o d e N a m e = = = " p a r s e r e r r o r " & & a h . e r r o r ( " p a r s e r e r r o r " ) ; i f ( F & & F . d a t a F i l t e r ) { s = F . d a t a F i l t e r ( s , c ) } i f ( t y p e o f   s = = = " s t r i n g " ) { i f ( c = = = " j s o n " | | ! c & & w . i n d e x O f ( " j s o n " ) > = 0 ) { s = a h . p a r s e J S O N ( s ) } e l s e { i f ( c = = = " s c r i p t " | | ! c & & w . i n d e x O f ( " j a v a s c r i p t " ) > = 0 ) { a h . g l o b a l E v a l ( s ) } } } r e t u r n   s } , p a r a m : f u n c t i o n ( s , c ) { f u n c t i o n   G ( J , K ) { i f ( a h . i s A r r a y ( K ) ) { a h . e a c h ( K , f u n c t i o n ( L , N ) { c | | / \ [ \ ] $ / . t e s t ( J ) ? A ( J , N ) : G ( J + " [ " + ( t y p e o f   N = = = " o b j e c t " | | a h . i s A r r a y ( N ) ? L : " " ) + " ] " , N ) } ) } e l s e { ! c & & K ! = n u l l & & t y p e o f   K = = = " o b j e c t " ? a h . e a c h ( K , f u n c t i o n ( L , N ) { G ( J + " [ " + L + " ] " , N ) } ) : A ( J , K ) } } f u n c t i o n   A ( J , K ) { K = a h . i s F u n c t i o n ( K ) ? K ( ) : K ; F [ F . l e n g t 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 ( K ) } v a r   F = [ ] ; i f ( c = = = I ) { c = a h . a j a x S e t t i n g s . t r a d i t i o n a l } i f ( a h . i s A r r a y ( s ) | | s . j q u e r y ) { a h . e a c h ( s , f u n c t i o n ( ) { A ( t h i s . n a m e , t h i s . v a l u e ) } ) } e l s e { f o r ( v a r   w   i n   s ) { G ( w , s [ w ] ) } } r e t u r n   F . j o i n ( " & " ) . r e p l a c e ( a 5 , " + " ) } } ) ; v a r   b g = { } , b c = / t o g g l e | s h o w | h i d e / , a X = / ^ ( [ + - ] = ) ? ( [ \ d + - . ] + ) ( . * ) $ / , a q , D = [ [ " h e i g h t " , " m a r g i n T o p " , " m a r g i n B o t t o m " , " p a d d i n g T o p " , " p a d d i n g B o t t o m " ] , [ " w i d t h " , " m a r g i n L e f t " , " m a r g i n R i g h t " , " p a d d i n g L e f t " , " p a d d i n g R i g h t " ] , [ " o p a c i t y " ] ] ; a h . f n . e x t e n d ( { s h o w : f u n c t i o n ( s , c ) { i f ( s | | s = = = 0 ) { r e t u r n   t h i s . a n i m a t e ( a C ( " s h o w " , 3 ) , s , c ) } e l s e { s = 0 ; f o r ( c = t h i s . l e n g t h ; s < c ; s + + ) { v a r   F = a h . d a t a ( t h i s [ s ] , " o l d d i s p l a y " ) ; t h i s [ s ] . s t y l e . d i s p l a y = F | | " " ; i f ( a h . c s s ( t h i s [ s ] , " d i s p l a y " ) = = = " n o n e " ) { F = t h i s [ s ] . n o d e N a m e ; v a r   w ; i f ( b g [ F ] ) { w = b g [ F ] } e l s e { v a r   A = a h ( " < " + F + "   / > " ) . a p p e n d T o ( " b o d y " ) ; w = A . c s s ( " d i s p l a y " ) ; i f ( w = = = " n o n e " ) { w = " b l o c k " } A . r e m o v e ( ) ; b g [ F ] = w } a h . d a t a ( t h i s [ s ] , " o l d d i s p l a y " , w ) } } s = 0 ; f o r ( c = t h i s . l e n g t h ; s < c ; s + + ) { t h i s [ s ] . s t y l e . d i s p l a y = a h . d a t a ( t h i s [ s ] , " o l d d i s p l a y " ) | | " " } r e t u r n   t h i s } } , h i d e : f u n c t i o n ( s , c ) { i f ( s | | s = = = 0 ) { r e t u r n   t h i s . a n i m a t e ( a C ( " h i d e " , 3 ) , s , c ) } e l s e { s = 0 ; f o r ( c = t h i s . l e n g t h ; s < c ; s + + ) { v a r   w = a h . d a t a ( t h i s [ s ] , " o l d d i s p l a y " ) ; ! w & & w ! = = " n o n e " & & a h . d a t a ( t h i s [ s ] , " o l d d i s p l a y " , a h . c s s ( t h i s [ s ] , " d i s p l a y " ) ) } s = 0 ; f o r ( c = t h i s . l e n g t h ; s < c ; s + + ) { t h i s [ s ] . s t y l e . d i s p l a y = " n o n e " } r e t u r n   t h i s } } , _ t o g g l e : a h . f n . t o g g l e , t o g g l e : f u n c t i o n ( s , c ) { v a r   w = t y p e o f   s = = = " b o o l e a n " ; i f ( a h . i s F u n c t i o n ( s ) & & a h . i s F u n c t i o n ( c ) ) { t h i s . _ t o g g l e . a p p l y ( t h i s , a r g u m e n t s ) } e l s e { s = = n u l l | | w ? t h i s . e a c h ( f u n c t i o n ( ) { v a r   A = w ? s : a h ( t h i s ) . i s ( " : h i d d e n " ) ; a h ( t h i s ) [ A ? " s h o w " : " h i d e " ] ( ) } ) : t h i s . a n i m a t e ( a C ( " t o g g l e " , 3 ) , s , c ) } r e t u r n   t h i s } , f a d e T o : f u n c t i o n ( s , c , w ) { r e t u r n   t h i s . f i l t e r ( " : h i d d e n " ) . c s s ( " o p a c i t y " , 0 ) . s h o w ( ) . e n d ( ) . a n i m a t e ( { o p a c i t y : c } , s , w ) } , a n i m a t e : f u n c t i o n ( s , c , F , w ) { v a r   A = a h . s p e e d ( c , F , w ) ; i f ( a h . i s E m p t y O b j e c t ( s ) ) { r e t u r n   t h i s . e a c h ( A . c o m p l e t e ) } r e t u r n   t h i s [ A . q u e u e = = = f a l s e ? " e a c h " : " q u e u e " ] ( f u n c t i o n ( ) { v a r   J = a h . e x t e n d ( { } , A ) , K , L = t h i s . n o d e T y p e = = = 1 & & a h ( t h i s ) . i s ( " : h i d d e n " ) , G = t h i s ; f o r ( K   i n   s ) { v a r   N = K . r e p l a c e ( a d , v ) ; i f ( K ! = = N ) { s [ N ] = s [ K ] ; d e l e t e   s [ K ] ; K = N } i f ( s [ K ] = = = " h i d e " & & L | | s [ K ] = = = " s h o w " & & ! L ) { r e t u r n   J . c o m p l e t e . c a l l ( t h i s ) } i f ( ( K = = = " h e i g h t " | | K = = = " w i d t h " ) & & t h i s . s t y l e ) { J . d i s p l a y = a h . c s s ( t h i s , " d i s p l a y " ) ; J . 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 ( a h . i s A r r a y ( s [ K ] ) ) { ( J . s p e c i a l E a s i n g = J . s p e c i a l E a s i n g | | { } ) [ K ] = s [ K ] [ 1 ] ; s [ K ] = s [ K ] [ 0 ] } } i f ( J . 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 " } J . c u r A n i m = a h . e x t e n d ( { } , s ) ; a h . e a c h ( s , f u n c t i o n ( P , O ) { v a r   T = n e w   a h . f x ( G , J , P ) ; i f ( b c . t e s t ( O ) ) { T [ O = = = " t o g g l e " ? L ? " s h o w " : " h i d e " : O ] ( s ) } e l s e { v a r   R = a X . e x e c ( O ) , V = T . c u r ( t r u e ) | | 0 ; i f ( R ) { O = p a r s e F l o a t ( R [ 2 ] ) ; v a r   Q = R [ 3 ] | | " p x " ; i f ( Q ! = = " p x " ) { G . s t y l e [ P ] = ( O | | 1 ) + Q ; V = ( O | | 1 ) / T . c u r ( t r u e ) * V ; G . s t y l e [ P ] = V + Q } i f ( R [ 1 ] ) { O = ( R [ 1 ] = = = " - = " ? - 1 : 1 ) * O + V } T . c u s t o m ( V , O , Q ) } e l s e { T . c u s t o m ( V , O , " " ) } } } ) ; r e t u r n   t r u e } ) } , s t o p : f u n c t i o n ( s , c ) { v a r   w = a h . t i m e r s ; s & & 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   A = w . l e n g t h - 1 ; A > = 0 ; A - - ) { i f ( w [ A ] . e l e m = = = t h i s ) { c & & w [ A ] ( t r u e ) ; w . s p l i c e ( A , 1 ) } } } ) ; c | | t h i s . d e q u e u e ( ) ; r e t u r n   t h i s } } ) ; a h . e a c h ( { s l i d e D o w n : a C ( " s h o w " , 1 ) , s l i d e U p : a C ( " h i d e " , 1 ) , s l i d e T o g g l e : a C ( " t o g g l e " , 1 ) , f a d e I n : { o p a c i t y : " s h o w " } , f a d e O u t : { o p a c i t y : " h i d e " } } , f u n c t i o n ( s , c ) { a h . f n [ s ] = f u n c t i o n ( A , w ) { r e t u r n   t h i s . a n i m a t e ( c , A , w ) } } ) ; a h . e x t e n d ( { s p e e d : f u n c t i o n ( s , c , A ) { v a r   w = s & & t y p e o f   s = = = " o b j e c t " ? s : { c o m p l e t e : A | | ! A & & c | | a h . i s F u n c t i o n ( s ) & & s , d u r a t i o n : s , e a s i n g : A & & c | | c & & ! a h . i s F u n c t i o n ( c ) & & c } ; w . d u r a t i o n = a h . f x . o f f ? 0 : t y p e o f   w . d u r a t i o n = = = " n u m b e r " ? w . d u r a t i o n : a h . f x . s p e e d s [ w . d u r a t i o n ] | | a h . f x . s p e e d s . _ d e f a u l t ; w . o l d = w . c o m p l e t e ; w . c o m p l e t e = f u n c t i o n ( ) { w . q u e u e ! = = f a l s e & & a h ( t h i s ) . d e q u e u e ( ) ; a h . i s F u n c t i o n ( w . o l d ) & & w . o l d . c a l l ( t h i s ) } ; r e t u r n   w } , e a s i n g : { l i n e a r : f u n c t i o n ( s , c , A , w ) { r e t u r n   A + w * s } , s w i n g : f u n c t i o n ( s , c , A , w ) { r e t u r n ( - M a t h . c o s ( s * M a t h . P I ) / 2 + 0 . 5 ) * w + A } } , t i m e r s : [ ] , f x : f u n c t i o n ( s , c , w ) { t h i s . o p t i o n s = c ; t h i s . e l e m = s ; t h i s . p r o p = w ; i f ( ! c . o r i g ) { c . o r i g = { } } } } ) ; a h . 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 ( ) { t h i s . o p t i o n s . s t e p & & t h i s . o p t i o n s . s t e p . c a l l ( t h i s . e l e m , t h i s . n o w , t h i s ) ; ( a h . f x . s t e p [ t h i s . p r o p ] | | a h . f x . s t e p . _ d e f a u l t ) ( t h i s ) ; i f ( ( t h i s . p r o p = = = " h e i g h t " | | t h i s . p r o p = = = " w i d t h " ) & & t h i s . e l e m . s t y l e ) { t h i s . e l e m . s t y l e . d i s p l a y = " b l o c k " } } , c u r : f u n c t i o n ( c ) { i f ( t h i s . e l e m [ t h i s . p r o p ] ! = n u l l & & ( ! t h i s . e l e m . s t y l e | | t h i s . e l e m . s t y l e [ t h i s . p r o p ] = = n u l l ) ) { r e t u r n   t h i s . e l e m [ t h i s . p r o p ] } r e t u r n ( c = p a r s e F l o a t ( a h . c s s ( t h i s . e l e m , t h i s . p r o p , c ) ) ) & & c > - 1 0 0 0 0 ? c : p a r s e F l o a t ( a h . 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 ( s , c , F ) { f u n c t i o n   w ( G ) { r e t u r n   A . s t e p ( G ) } t h i s . s t a r t T i m e = a F ( ) ; t h i s . s t a r t = s ; t h i s . e n d = c ; t h i s . u n i t = F | | t h i s . u n i t | | " p x " ; t h i s . n o w = t h i s . s t a r t ; t h i s . p o s = t h i s . s t a t e = 0 ; v a r   A = t h i s ; w . e l e m = t h i s . e l e m ; i f ( w ( ) & & a h . t i m e r s . p u s h ( w ) & & ! a q ) { a q = s e t I n t e r v a l ( a h . f x . t i c k , 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 ] = a h . s t y l e ( t h i s . e l e m , t h i s . p r o p ) ; t h i s . o p t i o n s . s h o w = t r u e ; t h i s . c u s t o m ( t h i s . p r o p = = = " w i d t h " | | t h i s . p r o p = = = " h e i g h t " ? 1 : 0 , t h i s . c u r ( ) ) ; a h ( 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 ] = a h . s t y l e ( t h i s . e l e m , 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 ( s ) { v a r   c = a F ( ) , F = t r u e ; i f ( s | | c > = 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 ; f o r ( v a r   w   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 [ w ] ! = = t r u e ) { F = f a l s e } } i f ( F ) { 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 ; s = a h . d a t a ( t h i s . e l e m , " o l d d i s p l a y " ) ; t h i s . e l e m . s t y l e . d i s p l a y = s ? s : t h i s . o p t i o n s . d i s p l a y ; i f ( a h . 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 " } } t h i s . o p t i o n s . h i d e & & a h ( t h i s . e l e m ) . h i d e ( ) ; i f ( t h i s . o p t i o n s . h i d e | | t h i s . o p t i o n s . s h o w ) { f o r ( v a r   A   i n   t h i s . o p t i o n s . c u r A n i m ) { a h . s t y l e ( t h i s . e l e m , A , t h i s . o p t i o n s . o r i g [ A ] ) } } t h i s . o p t i o n s . c o m p l e t e . c a l l ( t h i s . e l e m ) } r e t u r n   f a l s e } e l s e { A = c - t h i s . s t a r t T i m e ; t h i s . s t a t e = A / t h i s . o p t i o n s . d u r a t i o n ; s = t h i s . o p t i o n s . e a s i n g | | ( a h . 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 . p o s = a h . e a s i n g [ t h i s . o p t i o n s . s p e c i a l E a s i n g & & t h i s . o p t i o n s . s p e c i a l E a s i n g [ t h i s . p r o p ] | | s ] ( t h i s . s t a t e , A , 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 } } ; a h . e x t e n d ( a h . f x , { t i c k : f u n c t i o n ( ) { f o r ( v a r   s = a h . t i m e r s , c = 0 ; c < s . l e n g t h ; c + + ) { s [ c ] ( ) | | s . s p l i c e ( c - - , 1 ) } s . l e n g t h | | a h . f x . s t o p ( ) } , s t o p : f u n c t i o n ( ) { c l e a r I n t e r v a l ( a q ) ; a q = n u l l } , s p e e d s : { s l o w : 6 0 0 , f a s t : 2 0 0 , _ d e f a u l t : 4 0 0 } , s t e p : { o p a c i t y : f u n c t i o n ( c ) { a h . s t y l e ( c . e l e m , " o p a c i t y " , c . n o w ) } , _ d e f a u l t : f u n c t i o n ( c ) { i f ( c . e l e m . s t y l e & & c . e l e m . s t y l e [ c . p r o p ] ! = n u l l ) { c . e l e m . s t y l e [ c . p r o p ] = ( c . p r o p = = = " w i d t h " | | c . p r o p = = = " h e i g h t " ? M a t h . m a x ( 0 , c . n o w ) : c . n o w ) + c . u n i t } e l s e { c . e l e m [ c . p r o p ] = c . n o w } } } } ) ; i f ( a h . e x p r & & a h . e x p r . f i l t e r s ) { a h . e x p r . f i l t e r s . a n i m a t e d = f u n c t i o n ( c ) { r e t u r n   a h . g r e p ( a h . t i m e r s , f u n c t i o n ( s ) { r e t u r n   c = = = s . e l e m } ) . l e n g t h } } a h . f n . o f f s e t = " g e t B o u n d i n g C l i e n t R e c t "   i n   M . d o c u m e n t E l e m e n t ? f u n c t i o n ( s ) { v a r   c = t h i s [ 0 ] ; i f ( s ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( F ) { a h . o f f s e t . s e t O f f s e t ( t h i s , s , F ) } ) } i f ( ! c | | ! c . o w n e r D o c u m e n t ) { r e t u r n   n u l l } i f ( c = = = c . o w n e r D o c u m e n t . b o d y ) { r e t u r n   a h . o f f s e t . b o d y O f f s e t ( c ) } v a r   A = c . g e t B o u n d i n g C l i e n t R e c t ( ) , w = c . o w n e r D o c u m e n t ; c = w . b o d y ; w = w . d o c u m e n t E l e m e n t ; r e t u r n { t o p : A . t o p + ( s e l f . p a g e Y O f f s e t | | a h . s u p p o r t . b o x M o d e l & & w . s c r o l l T o p | | c . s c r o l l T o p ) - ( w . c l i e n t T o p | | c . c l i e n t T o p | | 0 ) , l e f t : A . l e f t + ( s e l f . p a g e X O f f s e t | | a h . s u p p o r t . b o x M o d e l & & w . s c r o l l L e f t | | c . s c r o l l L e f t ) - ( w . c l i e n t L e f t | | c . c l i e n t L e f t | | 0 ) } } : f u n c t i o n ( N ) { v a r   L = t h i s [ 0 ] ; i f ( N ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( O ) { a h . o f f s e t . s e t O f f s e t ( t h i s , N , O ) } ) } i f ( ! L | | ! L . o w n e r D o c u m e n t ) { r e t u r n   n u l l } i f ( L = = = L . o w n e r D o c u m e n t . b o d y ) { r e t u r n   a h . o f f s e t . b o d y O f f s e t ( L ) } a h . o f f s e t . i n i t i a l i z e ( ) ; v a r   K = L . o f f s e t P a r e n t , G = L , J = L . o w n e r D o c u m e n t , A , F = J . d o c u m e n t E l e m e n t , c = J . b o d y ; G = ( J = J . d e f a u l t V i e w ) ? J . g e t C o m p u t e d S t y l e ( L , n u l l ) : L . c u r r e n t S t y l e ; f o r ( v a r   w = L . o f f s e t T o p , s = L . o f f s e t L e f t ; ( L = L . p a r e n t N o d e ) & & L ! = = c & & L ! = = F ; ) { i f ( a h . o f f s e t . s u p p o r t s F i x e d P o s i t i o n & & G . p o s i t i o n = = = " f i x e d " ) { b r e a k } A = J ? J . g e t C o m p u t e d S t y l e ( L , n u l l ) : L . c u r r e n t S t y l e ; w - = L . s c r o l l T o p ; s - = L . s c r o l l L e f t ; i f ( L = = = K ) { w + = L . o f f s e t T o p ; s + = L . o f f s e t L e f t ; i f ( a h . o f f s e t . d o e s N o t A d d B o r d e r & & ! ( a h . o f f s e t . d o e s A d d B o r d e r F o r T a b l e A n d C e l l s & & / ^ t ( a b l e | d | h ) $ / i . t e s t ( L . n o d e N a m e ) ) ) { w + = p a r s e F l o a t ( A . b o r d e r T o p W i d t h ) | | 0 ; s + = p a r s e F l o a t ( A . b o r d e r L e f t W i d t h ) | | 0 } G = K ; K = L . o f f s e t P a r e n t } i f ( a h . o f f s e t . s u b t r a c t s B o r d e r F o r O v e r f l o w N o t V i s i b l e & & A . o v e r f l o w ! = = " v i s i b l e " ) { w + = p a r s e F l o a t ( A . b o r d e r T o p W i d t h ) | | 0 ; s + = p a r s e F l o a t ( A . b o r d e r L e f t W i d t h ) | | 0 } G = A } i f ( G . p o s i t i o n = = = " r e l a t i v e " | | G . p o s i t i o n = = = " s t a t i c " ) { w + = c . o f f s e t T o p ; s + = c . o f f s e t L e f t } i f ( a h . o f f s e t . s u p p o r t s F i x e d P o s i t i o n & & G . p o s i t i o n = = = " f i x e d " ) { w + = M a t h . m a x ( F . s c r o l l T o p , c . s c r o l l T o p ) ; s + = M a t h . m a x ( F . s c r o l l L e f t , c . s c r o l l L e f t ) } r e t u r n { t o p : w , l e f t : s } } ; a h . o f f s e t = { i n i t i a l i z e : f u n c t i o n ( ) { v a r   s = M . b o d y , c = M . c r e a t e E l e m e n t ( " d i v " ) , G , A , F , w = p a r s e F l o a t ( a h . c u r C S S ( s , " m a r g i n T o p " , t r u e ) ) | | 0 ; a h . e x t e n d ( c . s t y l e , { p o s i t i o n : " a b s o l u t e " , t o p : 0 , l e f t : 0 , m a r g i n : 0 , b o r d e r : 0 , w i d t h : " 1 p x " , h e i g h t : " 1 p x " , v i s i b i l i t y : " h i d d e n " } ) ; c . i n n e r H T M L = " < d i v   s t y l e = ' p o s i t i o n : a b s o l u t e ; t o p : 0 ; l e f t : 0 ; m a r g i n : 0 ; b o r d e r : 5 p x   s o l i d   # 0 0 0 ; p a d d i n g : 0 ; w i d t h : 1 p x ; h e i g h t : 1 p x ; ' > < d i v > < / d i v > < / d i v > < t a b l e   s t y l e = ' p o s i t i o n : a b s o l u t e ; t o p : 0 ; l e f t : 0 ; m a r g i n : 0 ; b o r d e r : 5 p x   s o l i d   # 0 0 0 ; p a d d i n g : 0 ; w i d t h : 1 p x ; h e i g h t : 1 p x ; '   c e l l p a d d i n g = ' 0 '   c e l l s p a c i n g = ' 0 ' > < t r > < t d > < / t d > < / t r > < / t a b l e > " ; s . i n s e r t B e f o r e ( c , s . f i r s t C h i l d ) ; G = c . f i r s t C h i l d ; A = G . f i r s t C h i l d ; F = G . n e x t S i b l i n g . f i r s t C h i l d . f i r s t C h i l d ; t h i s . d o e s N o t A d d B o r d e r = A . o f f s e t T o p ! = = 5 ; t h i s . d o e s A d d B o r d e r F o r T a b l e A n d C e l l s = F . o f f s e t T o p = = = 5 ; A . s t y l e . p o s i t i o n = " f i x e d " ; A . s t y l e . t o p = " 2 0 p x " ; t h i s . s u p p o r t s F i x e d P o s i t i o n = A . o f f s e t T o p = = = 2 0 | | A . o f f s e t T o p = = = 1 5 ; A . s t y l e . p o s i t i o n = A . s t y l e . t o p = " " ; G . s t y l e . o v e r f l o w = " h i d d e n " ; G . s t y l e . p o s i t i o n = " r e l a t i v e " ; t h i s . s u b t r a c t s B o r d e r F o r O v e r f l o w N o t V i s i b l e = A . o f f s e t T o p = = = - 5 ; t h i s . d o e s N o t I n c l u d e M a r g i n I n B o d y O f f s e t = s . o f f s e t T o p ! = = w ; s . r e m o v e C h i l d ( c ) ; a h . o f f s e t . i n i t i a l i z e = a h . n o o p } , b o d y O f f s e t : f u n c t i o n ( s ) { v a r   c = s . o f f s e t T o p , w = s . o f f s e t L e f t ; a h . o f f s e t . i n i t i a l i z e ( ) ; i f ( a h . o f f s e t . d o e s N o t I n c l u d e M a r g i n I n B o d y O f f s e t ) { c + = p a r s e F l o a t ( a h . c u r C S S ( s , " m a r g i n T o p " , t r u e ) ) | | 0 ; w + = p a r s e F l o a t ( a h . c u r C S S ( s , " m a r g i n L e f t " , t r u e ) ) | | 0 } r e t u r n { t o p : c , l e f t : w } } , s e t O f f s e t : f u n c t i o n ( s , c , J ) { i f ( / s t a t i c / . t e s t ( a h . c u r C S S ( s , " p o s i t i o n " ) ) ) { s . s t y l e . p o s i t i o n = " r e l a t i v e " } v a r   F = a h ( s ) , G = F . o f f s e t ( ) , w = p a r s e I n t ( a h . c u r C S S ( s , " t o p " , t r u e ) , 1 0 ) | | 0 , A = p a r s e I n t ( a h . c u r C S S ( s , " l e f t " , t r u e ) , 1 0 ) | | 0 ; i f ( a h . i s F u n c t i o n ( c ) ) { c = c . c a l l ( s , J , G ) } J = { t o p : c . t o p - G . t o p + w , l e f t : c . l e f t - G . l e f t + A } ; " u s i n g "   i n   c ? c . u s i n g . c a l l ( s , J ) : F . c s s ( J ) } } ; a h . f n . e x t e n d ( { p o s i t i o n : f u n c t i o n ( ) { i f ( ! t h i s [ 0 ] ) { r e t u r n   n u l l } v a r   s = t h i s [ 0 ] , c = t h i s . o f f s e t P a r e n t ( ) , A = t h i s . o f f s e t ( ) , w = / ^ b o d y | h t m l $ / i . t e s t ( c [ 0 ] . n o d e N a m e ) ? { t o p : 0 , l e f t : 0 } : c . o f f s e t ( ) ; A . t o p - = p a r s e F l o a t ( a h . c u r C S S ( s , " m a r g i n T o p " , t r u e ) ) | | 0 ; A . l e f t - = p a r s e F l o a t ( a h . c u r C S S ( s , " m a r g i n L e f t " , t r u e ) ) | | 0 ; w . t o p + = p a r s e F l o a t ( a h . c u r C S S ( c [ 0 ] , " b o r d e r T o p W i d t h " , t r u e ) ) | | 0 ; w . l e f t + = p a r s e F l o a t ( a h . c u r C S S ( c [ 0 ] , " b o r d e r L e f t W i d t h " , t r u e ) ) | | 0 ; r e t u r n { t o p : A . t o p - w . t o p , l e f t : A . l e f t - w . l e f t } } , o f f s e t P a r e n t : 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 ( ) { f o r ( v a r   c = t h i s . o f f s e t P a r e n t | | M . b o d y ; c & & ! / ^ b o d y | h t m l $ / i . t e s t ( c . n o d e N a m e ) & & a h . c s s ( c , " p o s i t i o n " ) = = = " s t a t i c " ; ) { c = c . o f f s e t P a r e n t } r e t u r n   c } ) } } ) ; a h . e a c h ( [ " L e f t " , " T o p " ] , f u n c t i o n ( s , c ) { v a r   w = " s c r o l l " + c ; a h . f n [ w ] = f u n c t i o n ( F ) { v a r   G = t h i s [ 0 ] , A ; i f ( ! G ) { r e t u r n   n u l l } i f ( F ! = = I ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { i f ( A = o ( t h i s ) ) { A . s c r o l l T o ( ! s ? F : a h ( A ) . s c r o l l L e f t ( ) , s ? F : a h ( A ) . s c r o l l T o p ( ) ) } e l s e { t h i s [ w ] = F } } ) } e l s e { r e t u r n ( A = o ( G ) ) ? " p a g e X O f f s e t "   i n   A ? A [ s ? " p a g e Y O f f s e t " : " p a g e X O f f s e t " ] : a h . s u p p o r t . b o x M o d e l & & A . d o c u m e n t . d o c u m e n t E l e m e n t [ w ] | | A . d o c u m e n t . b o d y [ w ] : G [ w ] } } } ) ; a h . e a c h ( [ " H e i g h t " , " W i d t h " ] , f u n c t i o n ( s , c ) { v a r   w = c . t o L o w e r C a s e ( ) ; a h . f n [ " i n n e r " + c ] = f u n c t i o n ( ) { r e t u r n   t h i s [ 0 ] ? a h . c s s ( t h i s [ 0 ] , w , f a l s e , " p a d d i n g " ) : n u l l } ; a h . f n [ " o u t e r " + c ] = f u n c t i o n ( A ) { r e t u r n   t h i s [ 0 ] ? a h . c s s ( t h i s [ 0 ] , w , f a l s e , A ? " m a r g i n " : " b o r d e r " ) : n u l l } ; a h . f n [ w ] = f u n c t i o n ( A ) { v a r   F = t h i s [ 0 ] ; i f ( ! F ) { r e t u r n   A = = n u l l ? n u l l : t h i s } i f ( a h . i s F u n c t i o n ( A ) ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( G ) { v a r   J = a h ( t h i s ) ; J [ w ] ( A . c a l l ( t h i s , G , J [ w ] ( ) ) ) } ) } r e t u r n " s c r o l l T o "   i n   F & & F . d o c u m e n t ? F . 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 " & & F . d o c u m e n t . d o c u m e n t E l e m e n t [ " c l i e n t " + c ] | | F . d o c u m e n t . b o d y [ " c l i e n t " + c ] : F . n o d e T y p e = = = 9 ? M a t h . m a x ( F . d o c u m e n t E l e m e n t [ " c l i e n t " + c ] , F . b o d y [ " s c r o l l " + c ] , F . d o c u m e n t E l e m e n t [ " s c r o l l " + c ] , F . b o d y [ " o f f s e t " + c ] , F . d o c u m e n t E l e m e n t [ " o f f s e t " + c ] ) : A = = = I ? a h . c s s ( F , w ) : t h i s . c s s ( w , t y p e o f   A = = = " s t r i n g " ? A : A + " p x " ) } } ) ; a O . j Q u e r y = a O . $ = a h } ) ( w i n d o w ) ; 
 / * ! 
   *   j Q u e r y   U I   1 . 8 . 1 
   * 
   *   C o p y r i g h t   ( c )   2 0 1 0   A U T H O R S . t x t   ( h t t p : / / j q u e r y u i . c o m / a b o u t ) 
   *   D u a l   l i c e n s e d   u n d e r   t h e   M I T   ( M I T - L I C E N S E . t x t ) 
   *   a n d   G P L   ( G P L - L I C E N S E . t x t )   l i c e n s e s . 
   * 
   *   h t t p : / / d o c s . j q u e r y . c o m / U I 
   * / 
 j Q u e r y . u i | | f u n c t i o n ( a ) { a . u i = { v e r s i o n : " 1 . 8 . 1 " , p l u g i n : { a d d : f u n c t i o n ( f , c , h ) { f = a . u i [ f ] . p r o t o t y p e ; f o r ( v a r   g   i n   h ) { f . p l u g i n s [ g ] = f . p l u g i n s [ g ] | | [ ] ; f . p l u g i n s [ g ] . p u s h ( [ c , h [ g ] ] ) } } , c a l l : f u n c t i o n ( f , c , h ) { i f ( ( c = f . p l u g i n s [ c ] ) & & f . e l e m e n t [ 0 ] . p a r e n t N o d e ) { f o r ( v a r   g = 0 ; g < c . l e n g t h ; g + + ) { f . o p t i o n s [ c [ g ] [ 0 ] ] & & c [ g ] [ 1 ] . a p p l y ( f . e l e m e n t , h ) } } } } , c o n t a i n s : f u n c t i o n ( d , c ) { r e t u r n   d o c u m e n t . c o m p a r e D o c u m e n t P o s i t i o n ? d . c o m p a r e D o c u m e n t P o s i t i o n ( c ) & 1 6 : d ! = = c & & d . c o n t a i n s ( c ) } , h a s S c r o l l : f u n c t i o n ( e , c ) { i f ( a ( e ) . c s s ( " o v e r f l o w " ) = = " h i d d e n " ) { r e t u r n   f a l s e } c = c & & c = = " l e f t " ? " s c r o l l L e f t " : " s c r o l l T o p " ; v a r   f = f a l s e ; i f ( e [ c ] > 0 ) { r e t u r n   t r u e } e [ c ] = 1 ; f = e [ c ] > 0 ; e [ c ] = 0 ; r e t u r n   f } , i s O v e r A x i s : f u n c t i o n ( e , c , f ) { r e t u r n   e > c & & e < c + f } , i s O v e r : f u n c t i o n ( h , c , l , k , j , i ) { r e t u r n   a . u i . i s O v e r A x i s ( h , l , j ) & & a . u i . i s O v e r A x i s ( c , k , i ) } , k e y C o d e : { A L T : 1 8 , B A C K S P A C E : 8 , C A P S _ L O C K : 2 0 , C O M M A : 1 8 8 , C O N T R O L : 1 7 , D E L E T E : 4 6 , D O W N : 4 0 , E N D : 3 5 , E N T E R : 1 3 , E S C A P E : 2 7 , H O M E : 3 6 , I N S E R T : 4 5 , L E F T : 3 7 , N U M P A D _ A D D : 1 0 7 , N U M P A D _ D E C I M A L : 1 1 0 , N U M P A D _ D I V I D E : 1 1 1 , N U M P A D _ E N T E R : 1 0 8 , N U M P A D _ M U L T I P L Y : 1 0 6 , N U M P A D _ S U B T R A C T : 1 0 9 , P A G E _ D O W N : 3 4 , P A G E _ U P : 3 3 , P E R I O D : 1 9 0 , R I G H T : 3 9 , S H I F T : 1 6 , S P A C E : 3 2 , T A B : 9 , U P : 3 8 } } ; a . f n . e x t e n d ( { _ f o c u s : a . f n . f o c u s , f o c u s : f u n c t i o n ( d , c ) { r e t u r n   t y p e o f   d = = = " n u m b e r " ? t h i s . e a c h ( f u n c t i o n ( ) { v a r   b = t h i s ; s e t T i m e o u t ( f u n c t i o n ( ) { a ( b ) . f o c u s ( ) ; c & & c . c a l l ( b ) } , d ) } ) : t h i s . _ f o c u s . a p p l y ( t h i s , a r g u m e n t s ) } , e n a b l e S e l e c t i o n : f u n c t i o n ( ) { r e t u r n   t h i s . a t t r ( " u n s e l e c t a b l e " , " o f f " ) . c s s ( " M o z U s e r S e l e c t " , " " ) } , d i s a b l e S e l e c t i o n : f u n c t i o n ( ) { r e t u r n   t h i s . a t t r ( " u n s e l e c t a b l e " , " o n " ) . c s s ( " M o z U s e r S e l e c t " , " n o n e " ) } , s c r o l l P a r e n t : f u n c t i o n ( ) { v a r   b ; b = a . b r o w s e r . m s i e & & / ( s t a t i c | r e l a t i v e ) / . t e s t ( t h i s . c s s ( " p o s i t i o n " ) ) | | / a b s o l u t e / . t e s t ( t h i s . c s s ( " p o s i t i o n " ) ) ? t h i s . p a r e n t s ( ) . f i l t e r ( f u n c t i o n ( ) { r e t u r n / ( r e l a t i v e | a b s o l u t e | f i x e d ) / . t e s t ( a . c u r C S S ( t h i s , " p o s i t i o n " , 1 ) ) & & / ( a u t o | s c r o l l ) / . t e s t ( a . c u r C S S ( t h i s , " o v e r f l o w " , 1 ) + a . c u r C S S ( t h i s , " o v e r f l o w - y " , 1 ) + a . c u r C S S ( t h i s , " o v e r f l o w - x " , 1 ) ) } ) . e q ( 0 ) : t h i s . p a r e n t s ( ) . f i l t e r ( f u n c t i o n ( ) { r e t u r n / ( a u t o | s c r o l l ) / . t e s t ( a . c u r C S S ( t h i s , " o v e r f l o w " , 1 ) + a . c u r C S S ( t h i s , " o v e r f l o w - y " , 1 ) + a . c u r C S S ( t h i s , " o v e r f l o w - x " , 1 ) ) } ) . e q ( 0 ) ; r e t u r n / f i x e d / . t e s t ( t h i s . c s s ( " p o s i t i o n " ) ) | | ! b . l e n g t h ? a ( d o c u m e n t ) : b } , z I n d e x : f u n c t i o n ( d ) { i f ( d ! = = u n d e f i n e d ) { r e t u r n   t h i s . c s s ( " z I n d e x " , d ) } i f ( t h i s . l e n g t h ) { d = a ( t h i s [ 0 ] ) ; f o r ( v a r   c ; d . l e n g t h & & d [ 0 ] ! = = d o c u m e n t ; ) { c = d . c s s ( " p o s i t i o n " ) ; i f ( c = = " a b s o l u t e " | | c = = " r e l a t i v e " | | c = = " f i x e d " ) { c = p a r s e I n t ( d . c s s ( " z I n d e x " ) ) ; i f ( ! i s N a N ( c ) & & c ! = 0 ) { r e t u r n   c } } d = d . p a r e n t ( ) } } r e t u r n   0 } } ) ; a . e x t e n d ( a . e x p r [ " : " ] , { d a t a : f u n c t i o n ( e , c , f ) { r e t u r n   ! ! a . d a t a ( e , f [ 3 ] ) } , f o c u s a b l e : f u n c t i o n ( e ) { v a r   c = e . n o d e N a m e . t o L o w e r C a s e ( ) , f = a . a t t r ( e , " t a b i n d e x " ) ; 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 | o b j e c t / . t e s t ( c ) ? ! e . d i s a b l e d : " a " = = c | | " a r e a " = = c ? e . h r e f | | ! i s N a N ( f ) : ! i s N a N ( f ) ) & & ! a ( e ) [ " a r e a " = = c ? " p a r e n t s " : " c l o s e s t " ] ( " : h i d d e n " ) . l e n g t h } , t a b b a b l e : f u n c t i o n ( d ) { v a r   c = a . a t t r ( d , " t a b i n d e x " ) ; r e t u r n ( i s N a N ( c ) | | c > = 0 ) & & a ( d ) . i s ( " : f o c u s a b l e " ) } } ) } ( j Q u e r y ) ; 
 
 / * ! 
   *   j Q u e r y   C y c l e   P l u g i n   ( w i t h   T r a n s i t i o n   D e f i n i t i o n s ) 
   *   E x a m p l e s   a n d   d o c u m e n t a t i o n   a t :   h t t p : / / j q u e r y . m a l s u p . c o m / c y c l e / 
   *   C o p y r i g h t   ( c )   2 0 0 7 - 2 0 1 0   M .   A l s u p 
   *   V e r s i o n :   2 . 8 8   ( 0 8 - J U N - 2 0 1 0 ) 
   *   D u a l   l i c e n s e d   u n d e r   t h e   M I T   a n d   G P L   l i c e n s e s . 
   *   h t t p : / / j q u e r y . m a l s u p . c o m / l i c e n s e . h t m l 
   *   R e q u i r e s :   j Q u e r y   v 1 . 2 . 6   o r   l a t e r 
   * / 
 ( f u n c t i o n ( $ ) { v a r   v e r = " 2 . 8 8 " ; i f ( $ . s u p p o r t = = u n d e f i n e d ) { $ . s u p p o r t = { o p a c i t y : ! ( $ . b r o w s e r . m s i e ) } ; } f u n c t i o n   d e b u g ( s ) { i f ( $ . f n . c y c l e . d e b u g ) { l o g ( s ) ; } } f u n c t i o n   l o g ( ) { i f ( w i n d o w . c o n s o l e & & w i n d o w . c o n s o l e . l o g ) { w i n d o w . c o n s o l e . l o g ( " [ c y c l e ]   " + A r r a y . p r o t o t y p e . j o i n . c a l l ( a r g u m e n t s , "   " ) ) ; } } $ . f n . c y c l e = f u n c t i o n ( o p t i o n s , a r g 2 ) { v a r   o = { s : t h i s . s e l e c t o r , c : t h i s . c o n t e x t } ; i f ( t h i s . l e n g t h = = = 0 & & o p t i o n s ! = " s t o p " ) { i f ( ! $ . i s R e a d y & & o . s ) { l o g ( " D O M   n o t   r e a d y ,   q u e u i n g   s l i d e s h o w " ) ; $ ( f u n c t i o n ( ) { $ ( o . s , o . c ) . c y c l e ( o p t i o n s , a r g 2 ) ; } ) ; r e t u r n   t h i s ; } l o g ( " t e r m i n a t i n g ;   z e r o   e l e m e n t s   f o u n d   b y   s e l e c t o r " + ( $ . i s R e a d y ? " " : "   ( D O M   n o t   r e a d y ) " ) ) ; r e t u r n   t h i s ; } 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   o p t s = h a n d l e A r g u m e n t s ( t h i s , o p t i o n s , a r g 2 ) ; i f ( o p t s = = = f a l s e ) { r e t u r n ; } o p t s . u p d a t e A c t i v e P a g e r L i n k = o p t s . u p d a t e A c t i v e P a g e r L i n k | | $ . f n . c y c l e . u p d a t e A c t i v e P a g e r L i n k ; i f ( t h i s . c y c l e T i m e o u t ) { c l e a r T i m e o u t ( t h i s . c y c l e T i m e o u t ) ; } t h i s . c y c l e T i m e o u t = t h i s . c y c l e P a u s e = 0 ; v a r   $ c o n t = $ ( t h i s ) ; v a r   $ s l i d e s = o p t s . s l i d e E x p r ? $ ( o p t s . s l i d e E x p r , t h i s ) : $ c o n t . c h i l d r e n ( ) ; v a r   e l s = $ s l i d e s . g e t ( ) ; i f ( e l s . l e n g t h < 2 ) { l o g ( " t e r m i n a t i n g ;   t o o   f e w   s l i d e s :   " + e l s . l e n g t h ) ; r e t u r n ; } v a r   o p t s 2 = b u i l d O p t i o n s ( $ c o n t , $ s l i d e s , e l s , o p t s , o ) ; i f ( o p t s 2 = = = f a l s e ) { r e t u r n ; } v a r   s t a r t T i m e = o p t s 2 . c o n t i n u o u s ? 1 0 : g e t T i m e o u t ( e l s [ o p t s 2 . c u r r S l i d e ] , e l s [ o p t s 2 . n e x t S l i d e ] , o p t s 2 , ! o p t s 2 . r e v ) ; i f ( s t a r t T i m e ) { s t a r t T i m e + = ( o p t s 2 . d e l a y | | 0 ) ; i f ( s t a r t T i m e < 1 0 ) { s t a r t T i m e = 1 0 ; } d e b u g ( " f i r s t   t i m e o u t :   " + s t a r t T i m e ) ; t h i s . c y c l e T i m e o u t = s e t T i m e o u t ( f u n c t i o n ( ) { g o ( e l s , o p t s 2 , 0 , ( ! o p t s 2 . r e v & & ! o p t s . b a c k w a r d s ) ) ; } , s t a r t T i m e ) ; } } ) ; } ; f u n c t i o n   h a n d l e A r g u m e n t s ( c o n t , o p t i o n s , a r g 2 ) { i f ( c o n t . c y c l e S t o p = = u n d e f i n e d ) { c o n t . c y c l e S t o p = 0 ; } i f ( o p t i o n s = = = u n d e f i n e d | | o p t i o n s = = = n u l l ) { o p t i o n s = { } ; } i f ( o p t i o n s . c o n s t r u c t o r = = S t r i n g ) { s w i t c h ( o p t i o n s ) { c a s e " d e s t r o y " : c a s e " s t o p " : v a r   o p t s = $ ( c o n t ) . d a t a ( " c y c l e . o p t s " ) ; i f ( ! o p t s ) { r e t u r n   f a l s e ; } c o n t . c y c l e S t o p + + ; i f ( c o n t . c y c l e T i m e o u t ) { c l e a r T i m e o u t ( c o n t . c y c l e T i m e o u t ) ; } c o n t . c y c l e T i m e o u t = 0 ; $ ( c o n t ) . r e m o v e D a t a ( " c y c l e . o p t s " ) ; i f ( o p t i o n s = = " d e s t r o y " ) { d e s t r o y ( o p t s ) ; } r e t u r n   f a l s e ; c a s e " t o g g l e " : c o n t . c y c l e P a u s e = ( c o n t . c y c l e P a u s e = = = 1 ) ? 0 : 1 ; c h e c k I n s t a n t R e s u m e ( c o n t . c y c l e P a u s e , a r g 2 , c o n t ) ; r e t u r n   f a l s e ; c a s e " p a u s e " : c o n t . c y c l e P a u s e = 1 ; r e t u r n   f a l s e ; c a s e " r e s u m e " : c o n t . c y c l e P a u s e = 0 ; c h e c k I n s t a n t R e s u m e ( f a l s e , a r g 2 , c o n t ) ; r e t u r n   f a l s e ; c a s e " p r e v " : c a s e " n e x t " : v a r   o p t s = $ ( c o n t ) . d a t a ( " c y c l e . o p t s " ) ; i f ( ! o p t s ) { l o g ( ' o p t i o n s   n o t   f o u n d ,   " p r e v / n e x t "   i g n o r e d ' ) ; r e t u r n   f a l s e ; } $ . f n . c y c l e [ o p t i o n s ] ( o p t s ) ; r e t u r n   f a l s e ; d e f a u l t : o p t i o n s = { f x : o p t i o n s } ; } r e t u r n   o p t i o n s ; } e l s e { i f ( o p t i o n s . c o n s t r u c t o r = = N u m b e r ) { v a r   n u m = o p t i o n s ; o p t i o n s = $ ( c o n t ) . d a t a ( " c y c l e . o p t s " ) ; i f ( ! o p t i o n s ) { l o g ( " o p t i o n s   n o t   f o u n d ,   c a n   n o t   a d v a n c e   s l i d e " ) ; r e t u r n   f a l s e ; } i f ( n u m < 0 | | n u m > = o p t i o n s . e l e m e n t s . l e n g t h ) { l o g ( " i n v a l i d   s l i d e   i n d e x :   " + n u m ) ; r e t u r n   f a l s e ; } o p t i o n s . n e x t S l i d e = n u m ; i f ( c o n t . c y c l e T i m e o u t ) { c l e a r T i m e o u t ( c o n t . c y c l e T i m e o u t ) ; c o n t . c y c l e T i m e o u t = 0 ; } i f ( t y p e o f   a r g 2 = = " s t r i n g " ) { o p t i o n s . o n e T i m e F x = a r g 2 ; } g o ( o p t i o n s . e l e m e n t s , o p t i o n s , 1 , n u m > = o p t i o n s . c u r r S l i d e ) ; r e t u r n   f a l s e ; } } r e t u r n   o p t i o n s ; f u n c t i o n   c h e c k I n s t a n t R e s u m e ( i s P a u s e d , a r g 2 , c o n t ) { i f ( ! i s P a u s e d & & a r g 2 = = = t r u e ) { v a r   o p t i o n s = $ ( c o n t ) . d a t a ( " c y c l e . o p t s " ) ; i f ( ! o p t i o n s ) { l o g ( " o p t i o n s   n o t   f o u n d ,   c a n   n o t   r e s u m e " ) ; r e t u r n   f a l s e ; } i f ( c o n t . c y c l e T i m e o u t ) { c l e a r T i m e o u t ( c o n t . c y c l e T i m e o u t ) ; c o n t . c y c l e T i m e o u t = 0 ; } g o ( o p t i o n s . e l e m e n t s , o p t i o n s , 1 , ( ! o p t s . r e v & & ! o p t s . b a c k w a r d s ) ) ; } } } f u n c t i o n   r e m o v e F i l t e r ( e l , o p t s ) { i f ( ! $ . s u p p o r t . o p a c i t y & & o p t s . c l e a r t y p e & & e l . s t y l e . f i l t e r ) { t r y { e l . s t y l e . r e m o v e A t t r i b u t e ( " f i l t e r " ) ; } c a t c h ( s m o t h e r ) { } } } f u n c t i o n   d e s t r o y ( o p t s ) { i f ( o p t s . n e x t ) { $ ( o p t s . n e x t ) . u n b i n d ( o p t s . p r e v N e x t E v e n t ) ; } i f ( o p t s . p r e v ) { $ ( o p t s . p r e v ) . u n b i n d ( o p t s . p r e v N e x t E v e n t ) ; } i f ( o p t s . p a g e r | | o p t s . p a g e r A n c h o r B u i l d e r ) { $ . e a c h ( o p t s . p a g e r A n c h o r s | | [ ] , f u n c t i o n ( ) { t h i s . u n b i n d ( ) . r e m o v e ( ) ; } ) ; } o p t s . p a g e r A n c h o r s = n u l l ; i f ( o p t s . d e s t r o y ) { o p t s . d e s t r o y ( o p t s ) ; } } f u n c t i o n   b u i l d O p t i o n s ( $ c o n t , $ s l i d e s , e l s , o p t i o n s , o ) { v a r   o p t s = $ . e x t e n d ( { } , $ . f n . c y c l e . d e f a u l t s , o p t i o n s | | { } , $ . m e t a d a t a ? $ c o n t . m e t a d a t a ( ) : $ . m e t a ? $ c o n t . d a t a ( ) : { } ) ; i f ( o p t s . a u t o s t o p ) { o p t s . c o u n t d o w n = o p t s . a u t o s t o p C o u n t | | e l s . l e n g t h ; } v a r   c o n t = $ c o n t [ 0 ] ; $ c o n t . d a t a ( " c y c l e . o p t s " , o p t s ) ; o p t s . $ c o n t = $ c o n t ; o p t s . s t o p C o u n t = c o n t . c y c l e S t o p ; o p t s . e l e m e n t s = e l s ; o p t s . b e f o r e = o p t s . b e f o r e ? [ o p t s . b e f o r e ] : [ ] ; o p t s . a f t e r = o p t s . a f t e r ? [ o p t s . a f t e r ] : [ ] ; o p t s . a f t e r . u n s h i f t ( f u n c t i o n ( ) { o p t s . b u s y = 0 ; } ) ; i f ( ! $ . s u p p o r t . o p a c i t y & & o p t s . c l e a r t y p e ) { o p t s . a f t e r . p u s h ( f u n c t i o n ( ) { r e m o v e F i l t e r ( t h i s , o p t s ) ; } ) ; } i f ( o p t s . c o n t i n u o u s ) { o p t s . a f t e r . p u s h ( f u n c t i o n ( ) { g o ( e l s , o p t s , 0 , ( ! o p t s . r e v & & ! o p t s . b a c k w a r d s ) ) ; } ) ; } s a v e O r i g i n a l O p t s ( o p t s ) ; i f ( ! $ . s u p p o r t . o p a c i t y & & o p t s . c l e a r t y p e & & ! o p t s . c l e a r t y p e N o B g ) { c l e a r T y p e F i x ( $ s l i d e s ) ; } i f ( $ c o n t . c s s ( " p o s i t i o n " ) = = " s t a t i c " ) { $ c o n t . c s s ( " p o s i t i o n " , " r e l a t i v e " ) ; } i f ( o p t s . w i d t h ) { $ c o n t . w i d t h ( o p t s . w i d t h ) ; } i f ( o p t s . h e i g h t & & o p t s . h e i g h t ! = " a u t o " ) { $ c o n t . h e i g h t ( o p t s . h e i g h t ) ; } i f ( o p t s . s t a r t i n g S l i d e ) { o p t s . s t a r t i n g S l i d e = p a r s e I n t ( o p t s . s t a r t i n g S l i d e ) ; } e l s e { i f ( o p t s . b a c k w a r d s ) { o p t s . s t a r t i n g S l i d e = e l s . l e n g t h - 1 ; } } i f ( o p t s . r a n d o m ) { o p t s . r a n d o m M a p = [ ] ; f o r ( v a r   i = 0 ; i < e l s . l e n g t h ; i + + ) { o p t s . r a n d o m M a p . p u s h ( i ) ; } o p t s . r a n d o m M a p . s o r t ( f u n c t i o n ( a , b ) { r e t u r n   M a t h . r a n d o m ( ) - 0 . 5 ; } ) ; o p t s . r a n d o m I n d e x = 1 ; o p t s . s t a r t i n g S l i d e = o p t s . r a n d o m M a p [ 1 ] ; } e l s e { i f ( o p t s . s t a r t i n g S l i d e > = e l s . l e n g t h ) { o p t s . s t a r t i n g S l i d e = 0 ; } } o p t s . c u r r S l i d e = o p t s . s t a r t i n g S l i d e | | 0 ; v a r   f i r s t = o p t s . s t a r t i n g S l i d e ; $ s l i d e s . c s s ( { p o s i t i o n : " a b s o l u t e " , t o p : 0 , l e f t : 0 } ) . h i d e ( ) . e a c h ( f u n c t i o n ( i ) { v a r   z ; i f ( o p t s . b a c k w a r d s ) { z = f i r s t ? i < = f i r s t ? e l s . l e n g t h + ( i - f i r s t ) : f i r s t - i : e l s . l e n g t h - i ; } e l s e { z = f i r s t ? i > = f i r s t ? e l s . l e n g t h - ( i - f i r s t ) : f i r s t - i : e l s . l e n g t h - i ; } $ ( t h i s ) . c s s ( " z - i n d e x " , z ) ; } ) ; $ ( e l s [ f i r s t ] ) . c s s ( " o p a c i t y " , 1 ) . s h o w ( ) ; r e m o v e F i l t e r ( e l s [ f i r s t ] , o p t s ) ; i f ( o p t s . f i t & & o p t s . w i d t h ) { $ s l i d e s . w i d t h ( o p t s . w i d t h ) ; } i f ( o p t s . f i t & & o p t s . h e i g h t & & o p t s . h e i g h t ! = " a u t o " ) { $ s l i d e s . h e i g h t ( o p t s . h e i g h t ) ; } v a r   r e s h a p e = o p t s . c o n t a i n e r R e s i z e & & ! $ c o n t . i n n e r H e i g h t ( ) ; i f ( r e s h a p e ) { v a r   m a x w = 0 , m a x h = 0 ; f o r ( v a r   j = 0 ; j < e l s . l e n g t h ; j + + ) { v a r   $ e = $ ( e l s [ j ] ) , e = $ e [ 0 ] , w = $ e . o u t e r W i d t h ( ) , h = $ e . o u t e r H e i g h t ( ) ; i f ( ! w ) { w = e . o f f s e t W i d t h | | e . w i d t h | | $ e . a t t r ( " w i d t h " ) ; } i f ( ! h ) { h = e . o f f s e t H e i g h t | | e . h e i g h t | | $ e . a t t r ( " h e i g h t " ) ; } m a x w = w > m a x w ? w : m a x w ; m a x h = h > m a x h ? h : m a x h ; } i f ( m a x w > 0 & & m a x h > 0 ) { $ c o n t . c s s ( { w i d t h : m a x w + " p x " , h e i g h t : m a x h + " p x " } ) ; } } i f ( o p t s . p a u s e ) { $ c o n t . h o v e r ( f u n c t i o n ( ) { t h i s . c y c l e P a u s e + + ; } , f u n c t i o n ( ) { t h i s . c y c l e P a u s e - - ; } ) ; } i f ( s u p p o r t M u l t i T r a n s i t i o n s ( o p t s ) = = = f a l s e ) { r e t u r n   f a l s e ; } v a r   r e q u e u e = f a l s e ; o p t i o n s . r e q u e u e A t t e m p t s = o p t i o n s . r e q u e u e A t t e m p t s | | 0 ; $ s l i d e s . e a c h ( f u n c t i o n ( ) { v a r   $ e l = $ ( t h i s ) ; t h i s . c y c l e H = ( o p t s . f i t & & o p t s . h e i g h t ) ? o p t s . h e i g h t : ( $ e l . h e i g h t ( ) | | t h i s . o f f s e t H e i g h t | | t h i s . h e i g h t | | $ e l . a t t r ( " h e i g h t " ) | | 0 ) ; t h i s . c y c l e W = ( o p t s . f i t & & o p t s . w i d t h ) ? o p t s . w i d t h : ( $ e l . w i d t h ( ) | | t h i s . o f f s e t W i d t h | | t h i s . w i d t h | | $ e l . a t t r ( " w i d t h " ) | | 0 ) ; i f ( $ e l . i s ( " i m g " ) ) { v a r   l o a d i n g I E = ( $ . b r o w s e r . m s i e & & t h i s . c y c l e W = = 2 8 & & t h i s . c y c l e H = = 3 0 & & ! t h i s . c o m p l e t e ) ; v a r   l o a d i n g F F = ( $ . b r o w s e r . m o z i l l a & & t h i s . c y c l e W = = 3 4 & & t h i s . c y c l e H = = 1 9 & & ! t h i s . c o m p l e t e ) ; v a r   l o a d i n g O p = ( $ . b r o w s e r . o p e r a & & ( ( t h i s . c y c l e W = = 4 2 & & t h i s . c y c l e H = = 1 9 ) | | ( t h i s . c y c l e W = = 3 7 & & t h i s . c y c l e H = = 1 7 ) ) & & ! t h i s . c o m p l e t e ) ; v a r   l o a d i n g O t h e r = ( t h i s . c y c l e H = = 0 & & t h i s . c y c l e W = = 0 & & ! t h i s . c o m p l e t e ) ; i f ( l o a d i n g I E | | l o a d i n g F F | | l o a d i n g O p | | l o a d i n g O t h e r ) { i f ( o . s & & o p t s . r e q u e u e O n I m a g e N o t L o a d e d & & + + o p t i o n s . r e q u e u e A t t e m p t s < 1 0 0 ) { l o g ( o p t i o n s . r e q u e u e A t t e m p t s , "   -   i m g   s l i d e   n o t   l o a d e d ,   r e q u e u i n g   s l i d e s h o w :   " , t h i s . s r c , t h i s . c y c l e W , t h i s . c y c l e H ) ; s e t T i m e o u t ( f u n c t i o n ( ) { $ ( o . s , o . c ) . c y c l e ( o p t i o n s ) ; } , o p t s . r e q u e u e T i m e o u t ) ; r e q u e u e = t r u e ; r e t u r n   f a l s e ; } e l s e { l o g ( " c o u l d   n o t   d e t e r m i n e   s i z e   o f   i m a g e :   " + t h i s . s r c , t h i s . c y c l e W , t h i s . c y c l e H ) ; } } } r e t u r n   t r u e ; } ) ; i f ( r e q u e u e ) { r e t u r n   f a l s e ; } o p t s . c s s B e f o r e = o p t s . c s s B e f o r e | | { } ; o p t s . a n i m I n = o p t s . a n i m I n | | { } ; o p t s . a n i m O u t = o p t s . a n i m O u t | | { } ; $ s l i d e s . n o t ( " : e q ( " + f i r s t + " ) " ) . c s s ( o p t s . c s s B e f o r e ) ; i f ( o p t s . c s s F i r s t ) { $ ( $ s l i d e s [ f i r s t ] ) . c s s ( o p t s . c s s F i r s t ) ; } i f ( o p t s . t i m e o u t ) { o p t s . t i m e o u t = p a r s e I n t ( o p t s . t i m e o u t ) ; i f ( o p t s . s p e e d . c o n s t r u c t o r = = S t r i n g ) { o p t s . s p e e d = $ . f x . s p e e d s [ o p t s . s p e e d ] | | p a r s e I n t ( o p t s . s p e e d ) ; } i f ( ! o p t s . s y n c ) { o p t s . s p e e d = o p t s . s p e e d / 2 ; } v a r   b u f f e r = o p t s . f x = = " s h u f f l e " ? 5 0 0 : 2 5 0 ; w h i l e ( ( o p t s . t i m e o u t - o p t s . s p e e d ) < b u f f e r ) { o p t s . t i m e o u t + = o p t s . s p e e d ; } } i f ( o p t s . e a s i n g ) { o p t s . e a s e I n = o p t s . e a s e O u t = o p t s . e a s i n g ; } i f ( ! o p t s . s p e e d I n ) { o p t s . s p e e d I n = o p t s . s p e e d ; } i f ( ! o p t s . s p e e d O u t ) { o p t s . s p e e d O u t = o p t s . s p e e d ; } o p t s . s l i d e C o u n t = e l s . l e n g t h ; o p t s . c u r r S l i d e = o p t s . l a s t S l i d e = f i r s t ; i f ( o p t s . r a n d o m ) { i f ( + + o p t s . r a n d o m I n d e x = = e l s . l e n g t h ) { o p t s . r a n d o m I n d e x = 0 ; } o p t s . n e x t S l i d e = o p t s . r a n d o m M a p [ o p t s . r a n d o m I n d e x ] ; } e l s e { i f ( o p t s . b a c k w a r d s ) { o p t s . n e x t S l i d e = o p t s . s t a r t i n g S l i d e = = 0 ? ( e l s . l e n g t h - 1 ) : o p t s . s t a r t i n g S l i d e - 1 ; } e l s e { o p t s . n e x t S l i d e = o p t s . s t a r t i n g S l i d e > = ( e l s . l e n g t h - 1 ) ? 0 : o p t s . s t a r t i n g S l i d e + 1 ; } } i f ( ! o p t s . m u l t i F x ) { v a r   i n i t = $ . f n . c y c l e . t r a n s i t i o n s [ o p t s . f x ] ; i f ( $ . i s F u n c t i o n ( i n i t ) ) { i n i t ( $ c o n t , $ s l i d e s , o p t s ) ; } e l s e { i f ( o p t s . f x ! = " c u s t o m " & & ! o p t s . m u l t i F x ) { l o g ( " u n k n o w n   t r a n s i t i o n :   " + o p t s . f x , " ;   s l i d e s h o w   t e r m i n a t i n g " ) ; r e t u r n   f a l s e ; } } } v a r   e 0 = $ s l i d e s [ f i r s t ] ; i f ( o p t s . b e f o r e . l e n g t h ) { o p t s . b e f o r e [ 0 ] . a p p l y ( e 0 , [ e 0 , e 0 , o p t s , t r u e ] ) ; } i f ( o p t s . a f t e r . l e n g t h > 1 ) { o p t s . a f t e r [ 1 ] . a p p l y ( e 0 , [ e 0 , e 0 , o p t s , t r u e ] ) ; } i f ( o p t s . n e x t ) { $ ( o p t s . n e x t ) . b i n d ( o p t s . p r e v N e x t E v e n t , f u n c t i o n ( ) { r e t u r n   a d v a n c e ( o p t s , o p t s . r e v ? - 1 : 1 ) ; } ) ; } i f ( o p t s . p r e v ) { $ ( o p t s . p r e v ) . b i n d ( o p t s . p r e v N e x t E v e n t , f u n c t i o n ( ) { r e t u r n   a d v a n c e ( o p t s , o p t s . r e v ? 1 : - 1 ) ; } ) ; } i f ( o p t s . p a g e r | | o p t s . p a g e r A n c h o r B u i l d e r ) { b u i l d P a g e r ( e l s , o p t s ) ; } e x p o s e A d d S l i d e ( o p t s , e l s ) ; r e t u r n   o p t s ; } f u n c t i o n   s a v e O r i g i n a l O p t s ( o p t s ) { o p t s . o r i g i n a l = { b e f o r e : [ ] , a f t e r : [ ] } ; o p t s . o r i g i n a l . c s s B e f o r e = $ . e x t e n d ( { } , o p t s . c s s B e f o r e ) ; o p t s . o r i g i n a l . c s s A f t e r = $ . e x t e n d ( { } , o p t s . c s s A f t e r ) ; o p t s . o r i g i n a l . a n i m I n = $ . e x t e n d ( { } , o p t s . a n i m I n ) ; o p t s . o r i g i n a l . a n i m O u t = $ . e x t e n d ( { } , o p t s . a n i m O u t ) ; $ . e a c h ( o p t s . b e f o r e , f u n c t i o n ( ) { o p t s . o r i g i n a l . b e f o r e . p u s h ( t h i s ) ; } ) ; $ . e a c h ( o p t s . a f t e r , f u n c t i o n ( ) { o p t s . o r i g i n a l . a f t e r . p u s h ( t h i s ) ; } ) ; } f u n c t i o n   s u p p o r t M u l t i T r a n s i t i o n s ( o p t s ) { v a r   i , t x , t x s = $ . f n . c y c l e . t r a n s i t i o n s ; i f ( o p t s . f x . i n d e x O f ( " , " ) > 0 ) { o p t s . m u l t i F x = t r u e ; o p t s . f x s = o p t s . f x . r e p l a c e ( / \ s * / g , " " ) . s p l i t ( " , " ) ; f o r ( i = 0 ; i < o p t s . f x s . l e n g t h ; i + + ) { v a r   f x = o p t s . f x s [ i ] ; t x = t x s [ f x ] ; i f ( ! t x | | ! t x s . h a s O w n P r o p e r t y ( f x ) | | ! $ . i s F u n c t i o n ( t x ) ) { l o g ( " d i s c a r d i n g   u n k n o w n   t r a n s i t i o n :   " , f x ) ; o p t s . f x s . s p l i c e ( i , 1 ) ; i - - ; } } i f ( ! o p t s . f x s . l e n g t h ) { l o g ( " N o   v a l i d   t r a n s i t i o n s   n a m e d ;   s l i d e s h o w   t e r m i n a t i n g . " ) ; r e t u r n   f a l s e ; } } e l s e { i f ( o p t s . f x = = " a l l " ) { o p t s . m u l t i F x = t r u e ; o p t s . f x s = [ ] ; f o r ( p   i n   t x s ) { t x = t x s [ p ] ; i f ( t x s . h a s O w n P r o p e r t y ( p ) & & $ . i s F u n c t i o n ( t x ) ) { o p t s . f x s . p u s h ( p ) ; } } } } i f ( o p t s . m u l t i F x & & o p t s . r a n d o m i z e E f f e c t s ) { v a r   r 1 = M a t h . f l o o r ( M a t h . r a n d o m ( ) * 2 0 ) + 3 0 ; f o r ( i = 0 ; i < r 1 ; i + + ) { v a r   r 2 = M a t h . f l o o r ( M a t h . r a n d o m ( ) * o p t s . f x s . l e n g t h ) ; o p t s . f x s . p u s h ( o p t s . f x s . s p l i c e ( r 2 , 1 ) [ 0 ] ) ; } d e b u g ( " r a n d o m i z e d   f x   s e q u e n c e :   " , o p t s . f x s ) ; } r e t u r n   t r u e ; } f u n c t i o n   e x p o s e A d d S l i d e ( o p t s , e l s ) { o p t s . a d d S l i d e = f u n c t i o n ( n e w S l i d e , p r e p e n d ) { v a r   $ s = $ ( n e w S l i d e ) , s = $ s [ 0 ] ; i f ( ! o p t s . a u t o s t o p C o u n t ) { o p t s . c o u n t d o w n + + ; } e l s [ p r e p e n d ? " u n s h i f t " : " p u s h " ] ( s ) ; i f ( o p t s . e l s ) { o p t s . e l s [ p r e p e n d ? " u n s h i f t " : " p u s h " ] ( s ) ; } o p t s . s l i d e C o u n t = e l s . l e n g t h ; $ s . c s s ( " p o s i t i o n " , " a b s o l u t e " ) ; $ s [ p r e p e n d ? " p r e p e n d T o " : " a p p e n d T o " ] ( o p t s . $ c o n t ) ; i f ( p r e p e n d ) { o p t s . c u r r S l i d e + + ; o p t s . n e x t S l i d e + + ; } i f ( ! $ . s u p p o r t . o p a c i t y & & o p t s . c l e a r t y p e & & ! o p t s . c l e a r t y p e N o B g ) { c l e a r T y p e F i x ( $ s ) ; } i f ( o p t s . f i t & & o p t s . w i d t h ) { $ s . w i d t h ( o p t s . w i d t h ) ; } i f ( o p t s . f i t & & o p t s . h e i g h t & & o p t s . h e i g h t ! = " a u t o " ) { $ s l i d e s . h e i g h t ( o p t s . h e i g h t ) ; } s . c y c l e H = ( o p t s . f i t & & o p t s . h e i g h t ) ? o p t s . h e i g h t : $ s . h e i g h t ( ) ; s . c y c l e W = ( o p t s . f i t & & o p t s . w i d t h ) ? o p t s . w i d t h : $ s . w i d t h ( ) ; $ s . c s s ( o p t s . c s s B e f o r e ) ; i f ( o p t s . p a g e r | | o p t s . p a g e r A n c h o r B u i l d e r ) { $ . f n . c y c l e . c r e a t e P a g e r A n c h o r ( e l s . l e n g t h - 1 , s , $ ( o p t s . p a g e r ) , e l s , o p t s ) ; } i f ( $ . i s F u n c t i o n ( o p t s . o n A d d S l i d e ) ) { o p t s . o n A d d S l i d e ( $ s ) ; } e l s e { $ s . h i d e ( ) ; } } ; } $ . f n . c y c l e . r e s e t S t a t e = f u n c t i o n ( o p t s , f x ) { f x = f x | | o p t s . f x ; o p t s . b e f o r e = [ ] ; o p t s . a f t e r = [ ] ; o p t s . c s s B e f o r e = $ . e x t e n d ( { } , o p t s . o r i g i n a l . c s s B e f o r e ) ; o p t s . c s s A f t e r = $ . e x t e n d ( { } , o p t s . o r i g i n a l . c s s A f t e r ) ; o p t s . a n i m I n = $ . e x t e n d ( { } , o p t s . o r i g i n a l . a n i m I n ) ; o p t s . a n i m O u t = $ . e x t e n d ( { } , o p t s . o r i g i n a l . a n i m O u t ) ; o p t s . f x F n = n u l l ; $ . e a c h ( o p t s . o r i g i n a l . b e f o r e , f u n c t i o n ( ) { o p t s . b e f o r e . p u s h ( t h i s ) ; } ) ; $ . e a c h ( o p t s . o r i g i n a l . a f t e r , f u n c t i o n ( ) { o p t s . a f t e r . p u s h ( t h i s ) ; } ) ; v a r   i n i t = $ . f n . c y c l e . t r a n s i t i o n s [ f x ] ; i f ( $ . i s F u n c t i o n ( i n i t ) ) { i n i t ( o p t s . $ c o n t , $ ( o p t s . e l e m e n t s ) , o p t s ) ; } } ; f u n c t i o n   g o ( e l s , o p t s , m a n u a l , f w d ) { i f ( m a n u a l & & o p t s . b u s y & & o p t s . m a n u a l T r u m p ) { d e b u g ( " m a n u a l T r u m p   i n   g o ( ) ,   s t o p p i n g   a c t i v e   t r a n s i t i o n " ) ; $ ( e l s ) . s t o p ( t r u e , t r u e ) ; o p t s . b u s y = f a l s e ; } i f ( o p t s . b u s y ) { d e b u g ( " t r a n s i t i o n   a c t i v e ,   i g n o r i n g   n e w   t x   r e q u e s t " ) ; r e t u r n ; } v a r   p = o p t s . $ c o n t [ 0 ] , c u r r = e l s [ o p t s . c u r r S l i d e ] , n e x t = e l s [ o p t s . n e x t S l i d e ] ; i f ( p . c y c l e S t o p ! = o p t s . s t o p C o u n t | | p . c y c l e T i m e o u t = = = 0 & & ! m a n u a l ) { r e t u r n ; } i f ( ! m a n u a l & & ! p . c y c l e P a u s e & & ! o p t s . b o u n c e & & ( ( o p t s . a u t o s t o p & & ( - - o p t s . c o u n t d o w n < = 0 ) ) | | ( o p t s . n o w r a p & & ! o p t s . r a n d o m & & o p t s . n e x t S l i d e < o p t s . c u r r S l i d e ) ) ) { i f ( o p t s . e n d ) { o p t s . e n d ( o p t s ) ; } r e t u r n ; } v a r   c h a n g e d = f a l s e ; i f ( ( m a n u a l | | ! p . c y c l e P a u s e ) & & ( o p t s . n e x t S l i d e ! = o p t s . c u r r S l i d e ) ) { c h a n g e d = t r u e ; v a r   f x = o p t s . f x ; c u r r . c y c l e H = c u r r . c y c l e H | | $ ( c u r r ) . h e i g h t ( ) ; c u r r . c y c l e W = c u r r . c y c l e W | | $ ( c u r r ) . w i d t h ( ) ; n e x t . c y c l e H = n e x t . c y c l e H | | $ ( n e x t ) . h e i g h t ( ) ; n e x t . c y c l e W = n e x t . c y c l e W | | $ ( n e x t ) . w i d t h ( ) ; i f ( o p t s . m u l t i F x ) { i f ( o p t s . l a s t F x = = u n d e f i n e d | | + + o p t s . l a s t F x > = o p t s . f x s . l e n g t h ) { o p t s . l a s t F x = 0 ; } f x = o p t s . f x s [ o p t s . l a s t F x ] ; o p t s . c u r r F x = f x ; } i f ( o p t s . o n e T i m e F x ) { f x = o p t s . o n e T i m e F x ; o p t s . o n e T i m e F x = n u l l ; } $ . f n . c y c l e . r e s e t S t a t e ( o p t s , f x ) ; i f ( o p t s . b e f o r e . l e n g t h ) { $ . e a c h ( o p t s . b e f o r e , f u n c t i o n ( i , o ) { i f ( p . c y c l e S t o p ! = o p t s . s t o p C o u n t ) { r e t u r n ; } o . a p p l y ( n e x t , [ c u r r , n e x t , o p t s , f w d ] ) ; } ) ; } v a r   a f t e r = f u n c t i o n ( ) { $ . e a c h ( o p t s . a f t e r , f u n c t i o n ( i , o ) { i f ( p . c y c l e S t o p ! = o p t s . s t o p C o u n t ) { r e t u r n ; } o . a p p l y ( n e x t , [ c u r r , n e x t , o p t s , f w d ] ) ; } ) ; } ; d e b u g ( " t x   f i r i n g ;   c u r r S l i d e :   " + o p t s . c u r r S l i d e + " ;   n e x t S l i d e :   " + o p t s . n e x t S l i d e ) ; o p t s . b u s y = 1 ; i f ( o p t s . f x F n ) { o p t s . f x F n ( c u r r , n e x t , o p t s , a f t e r , f w d , m a n u a l & & o p t s . f a s t O n E v e n t ) ; } e l s e { i f ( $ . i s F u n c t i o n ( $ . f n . c y c l e [ o p t s . f x ] ) ) { $ . f n . c y c l e [ o p t s . f x ] ( c u r r , n e x t , o p t s , a f t e r , f w d , m a n u a l & & o p t s . f a s t O n E v e n t ) ; } e l s e { $ . f n . c y c l e . c u s t o m ( c u r r , n e x t , o p t s , a f t e r , f w d , m a n u a l & & o p t s . f a s t O n E v e n t ) ; } } } i f ( c h a n g e d | | o p t s . n e x t S l i d e = = o p t s . c u r r S l i d e ) { o p t s . l a s t S l i d e = o p t s . c u r r S l i d e ; i f ( o p t s . r a n d o m ) { o p t s . c u r r S l i d e = o p t s . n e x t S l i d e ; i f ( + + o p t s . r a n d o m I n d e x = = e l s . l e n g t h ) { o p t s . r a n d o m I n d e x = 0 ; } o p t s . n e x t S l i d e = o p t s . r a n d o m M a p [ o p t s . r a n d o m I n d e x ] ; i f ( o p t s . n e x t S l i d e = = o p t s . c u r r S l i d e ) { o p t s . n e x t S l i d e = ( o p t s . c u r r S l i d e = = o p t s . s l i d e C o u n t - 1 ) ? 0 : o p t s . c u r r S l i d e + 1 ; } } e l s e { i f ( o p t s . b a c k w a r d s ) { v a r   r o l l = ( o p t s . n e x t S l i d e - 1 ) < 0 ; i f ( r o l l & & o p t s . b o u n c e ) { o p t s . b a c k w a r d s = ! o p t s . b a c k w a r d s ; o p t s . n e x t S l i d e = 1 ; o p t s . c u r r S l i d e = 0 ; } e l s e { o p t s . n e x t S l i d e = r o l l ? ( e l s . l e n g t h - 1 ) : o p t s . n e x t S l i d e - 1 ; o p t s . c u r r S l i d e = r o l l ? 0 : o p t s . n e x t S l i d e + 1 ; } } e l s e { v a r   r o l l = ( o p t s . n e x t S l i d e + 1 ) = = e l s . l e n g t h ; i f ( r o l l & & o p t s . b o u n c e ) { o p t s . b a c k w a r d s = ! o p t s . b a c k w a r d s ; o p t s . n e x t S l i d e = e l s . l e n g t h - 2 ; o p t s . c u r r S l i d e = e l s . l e n g t h - 1 ; } e l s e { o p t s . n e x t S l i d e = r o l l ? 0 : o p t s . n e x t S l i d e + 1 ; o p t s . c u r r S l i d e = r o l l ? e l s . l e n g t h - 1 : o p t s . n e x t S l i d e - 1 ; } } } } i f ( c h a n g e d & & o p t s . p a g e r ) { o p t s . u p d a t e A c t i v e P a g e r L i n k ( o p t s . p a g e r , o p t s . c u r r S l i d e , o p t s . a c t i v e P a g e r C l a s s ) ; } v a r   m s = 0 ; i f ( o p t s . t i m e o u t & & ! o p t s . c o n t i n u o u s ) { m s = g e t T i m e o u t ( e l s [ o p t s . c u r r S l i d e ] , e l s [ o p t s . n e x t S l i d e ] , o p t s , f w d ) ; } e l s e { i f ( o p t s . c o n t i n u o u s & & p . c y c l e P a u s e ) { m s = 1 0 ; } } i f ( m s > 0 ) { p . c y c l e T i m e o u t = s e t T i m e o u t ( f u n c t i o n ( ) { g o ( e l s , o p t s , 0 , ( ! o p t s . r e v & & ! o p t s . b a c k w a r d s ) ) ; } , m s ) ; } } $ . f n . c y c l e . u p d a t e A c t i v e P a g e r L i n k = f u n c t i o n ( p a g e r , c u r r S l i d e , c l s N a m e ) { $ ( p a g e r ) . e a c h ( f u n c t i o n ( ) { $ ( t h i s ) . c h i l d r e n ( ) . r e m o v e C l a s s ( c l s N a m e ) . e q ( c u r r S l i d e ) . a d d C l a s s ( c l s N a m e ) ; } ) ; } ; f u n c t i o n   g e t T i m e o u t ( c u r r , n e x t , o p t s , f w d ) { i f ( o p t s . t i m e o u t F n ) { v a r   t = o p t s . t i m e o u t F n . c a l l ( c u r r , c u r r , n e x t , o p t s , f w d ) ; w h i l e ( ( t - o p t s . s p e e d ) < 2 5 0 ) { t + = o p t s . s p e e d ; } d e b u g ( " c a l c u l a t e d   t i m e o u t :   " + t + " ;   s p e e d :   " + o p t s . s p e e d ) ; i f ( t ! = = f a l s e ) { r e t u r n   t ; } } r e t u r n   o p t s . t i m e o u t ; } $ . f n . c y c l e . n e x t = f u n c t i o n ( o p t s ) { a d v a n c e ( o p t s , o p t s . r e v ? - 1 : 1 ) ; } ; $ . f n . c y c l e . p r e v = f u n c t i o n ( o p t s ) { a d v a n c e ( o p t s , o p t s . r e v ? 1 : - 1 ) ; } ; f u n c t i o n   a d v a n c e ( o p t s , v a l ) { v a r   e l s = o p t s . e l e m e n t s ; v a r   p = o p t s . $ c o n t [ 0 ] , t i m e o u t = p . c y c l e T i m e o u t ; i f ( t i m e o u t ) { c l e a r T i m e o u t ( t i m e o u t ) ; p . c y c l e T i m e o u t = 0 ; } i f ( o p t s . r a n d o m & & v a l < 0 ) { o p t s . r a n d o m I n d e x - - ; i f ( - - o p t s . r a n d o m I n d e x = = - 2 ) { o p t s . r a n d o m I n d e x = e l s . l e n g t h - 2 ; } e l s e { i f ( o p t s . r a n d o m I n d e x = = - 1 ) { o p t s . r a n d o m I n d e x = e l s . l e n g t h - 1 ; } } o p t s . n e x t S l i d e = o p t s . r a n d o m M a p [ o p t s . r a n d o m I n d e x ] ; } e l s e { i f ( o p t s . r a n d o m ) { o p t s . n e x t S l i d e = o p t s . r a n d o m M a p [ o p t s . r a n d o m I n d e x ] ; } e l s e { o p t s . n e x t S l i d e = o p t s . c u r r S l i d e + v a l ; i f ( o p t s . n e x t S l i d e < 0 ) { i f ( o p t s . n o w r a p ) { r e t u r n   f a l s e ; } o p t s . n e x t S l i d e = e l s . l e n g t h - 1 ; } e l s e { i f ( o p t s . n e x t S l i d e > = e l s . l e n g t h ) { i f ( o p t s . n o w r a p ) { r e t u r n   f a l s e ; } o p t s . n e x t S l i d e = 0 ; } } } } v a r   c b = o p t s . o n P r e v N e x t E v e n t | | o p t s . p r e v N e x t C l i c k ; i f ( $ . i s F u n c t i o n ( c b ) ) { c b ( v a l > 0 , o p t s . n e x t S l i d e , e l s [ o p t s . n e x t S l i d e ] ) ; } g o ( e l s , o p t s , 1 , v a l > = 0 ) ; r e t u r n   f a l s e ; } f u n c t i o n   b u i l d P a g e r ( e l s , o p t s ) { v a r   $ p = $ ( o p t s . p a g e r ) ; $ . e a c h ( e l s , f u n c t i o n ( i , o ) { $ . f n . c y c l e . c r e a t e P a g e r A n c h o r ( i , o , $ p , e l s , o p t s ) ; } ) ; o p t s . u p d a t e A c t i v e P a g e r L i n k ( o p t s . p a g e r , o p t s . s t a r t i n g S l i d e , o p t s . a c t i v e P a g e r C l a s s ) ; } $ . f n . c y c l e . c r e a t e P a g e r A n c h o r = f u n c t i o n ( i , e l , $ p , e l s , o p t s ) { v a r   a ; i f ( $ . i s F u n c t i o n ( o p t s . p a g e r A n c h o r B u i l d e r ) ) { a = o p t s . p a g e r A n c h o r B u i l d e r ( i , e l ) ; d e b u g ( " p a g e r A n c h o r B u i l d e r ( " + i + " ,   e l )   r e t u r n e d :   " + a ) ; } e l s e { a = ' < a   h r e f = " # " > ' + ( i + 1 ) + " < / a > " ; } i f ( ! a ) { r e t u r n ; } v a r   $ a = $ ( a ) ; i f ( $ a . p a r e n t s ( " b o d y " ) . l e n g t h = = = 0 ) { v a r   a r r = [ ] ; i f ( $ p . l e n g t h > 1 ) { $ p . e a c h ( f u n c t i o n ( ) { v a r   $ c l o n e = $ a . c l o n e ( t r u e ) ; $ ( t h i s ) . a p p e n d ( $ c l o n e ) ; a r r . p u s h ( $ c l o n e [ 0 ] ) ; } ) ; $ a = $ ( a r r ) ; } e l s e { $ a . a p p e n d T o ( $ p ) ; } } o p t s . p a g e r A n c h o r s = o p t s . p a g e r A n c h o r s | | [ ] ; o p t s . p a g e r A n c h o r s . p u s h ( $ a ) ; $ a . b i n d ( o p t s . p a g e r E v e n t , f u n c t i o n ( e ) { e . p r e v e n t D e f a u l t ( ) ; o p t s . n e x t S l i d e = i ; v a r   p = o p t s . $ c o n t [ 0 ] , t i m e o u t = p . c y c l e T i m e o u t ; i f ( t i m e o u t ) { c l e a r T i m e o u t ( t i m e o u t ) ; p . c y c l e T i m e o u t = 0 ; } v a r   c b = o p t s . o n P a g e r E v e n t | | o p t s . p a g e r C l i c k ; i f ( $ . i s F u n c t i o n ( c b ) ) { c b ( o p t s . n e x t S l i d e , e l s [ o p t s . n e x t S l i d e ] ) ; } g o ( e l s , o p t s , 1 , o p t s . c u r r S l i d e < i ) ; } ) ; i f ( ! / ^ c l i c k / . t e s t ( o p t s . p a g e r E v e n t ) & & ! o p t s . a l l o w P a g e r C l i c k B u b b l e ) { $ a . b i n d ( " c l i c k . c y c l e " , f u n c t i o n ( ) { r e t u r n   f a l s e ; } ) ; } i f ( o p t s . p a u s e O n P a g e r H o v e r ) { $ a . h o v e r ( f u n c t i o n ( ) { o p t s . $ c o n t [ 0 ] . c y c l e P a u s e + + ; } , f u n c t i o n ( ) { o p t s . $ c o n t [ 0 ] . c y c l e P a u s e - - ; } ) ; } } ; $ . f n . c y c l e . h o p s F r o m L a s t = f u n c t i o n ( o p t s , f w d ) { v a r   h o p s , l = o p t s . l a s t S l i d e , c = o p t s . c u r r S l i d e ; i f ( f w d ) { h o p s = c > l ? c - l : o p t s . s l i d e C o u n t - l ; } e l s e { h o p s = c < l ? l - c : l + o p t s . s l i d e C o u n t - c ; } r e t u r n   h o p s ; } ; f u n c t i o n   c l e a r T y p e F i x ( $ s l i d e s ) { d e b u g ( " a p p l y i n g   c l e a r T y p e   b a c k g r o u n d - c o l o r   h a c k " ) ; f u n c t i o n   h e x ( s ) { s = p a r s e I n t ( s ) . t o S t r i n g ( 1 6 ) ; r e t u r n   s . l e n g t h < 2 ? " 0 " + s : s ; } f u n c t i o n   g e t B g ( e ) { f o r ( ; e & & e . n o d e N a m e . t o L o w e r C a s e ( ) ! = " h t m l " ; e = e . p a r e n t N o d e ) { v a r   v = $ . c s s ( e , " b a c k g r o u n d - c o l o r " ) ; i f ( v . i n d e x O f ( " r g b " ) > = 0 ) { v a r   r g b = v . m a t c h ( / \ d + / g ) ; r e t u r n " # " + h e x ( r g b [ 0 ] ) + h e x ( r g b [ 1 ] ) + h e x ( r g b [ 2 ] ) ; } i f ( v & & v ! = " t r a n s p a r e n t " ) { r e t u r n   v ; } } r e t u r n " # f f f f f f " ; } $ s l i d e s . e a c h ( f u n c t i o n ( ) { $ ( t h i s ) . c s s ( " b a c k g r o u n d - c o l o r " , g e t B g ( t h i s ) ) ; } ) ; } $ . f n . c y c l e . c o m m o n R e s e t = f u n c t i o n ( c u r r , n e x t , o p t s , w , h , r e v ) { $ ( o p t s . e l e m e n t s ) . n o t ( c u r r ) . h i d e ( ) ; o p t s . c s s B e f o r e . o p a c i t y = 1 ; o p t s . c s s B e f o r e . d i s p l a y = " b l o c k " ; i f ( w ! = = f a l s e & & n e x t . c y c l e W > 0 ) { o p t s . c s s B e f o r e . w i d t h = n e x t . c y c l e W ; } i f ( h ! = = f a l s e & & n e x t . c y c l e H > 0 ) { o p t s . c s s B e f o r e . h e i g h t = n e x t . c y c l e H ; } o p t s . c s s A f t e r = o p t s . c s s A f t e r | | { } ; o p t s . c s s A f t e r . d i s p l a y = " n o n e " ; $ ( c u r r ) . c s s ( " z I n d e x " , o p t s . s l i d e C o u n t + ( r e v = = = t r u e ? 1 : 0 ) ) ; $ ( n e x t ) . c s s ( " z I n d e x " , o p t s . s l i d e C o u n t + ( r e v = = = t r u e ? 0 : 1 ) ) ; } ; $ . f n . c y c l e . c u s t o m = f u n c t i o n ( c u r r , n e x t , o p t s , c b , f w d , s p e e d O v e r r i d e ) { v a r   $ l = $ ( c u r r ) , $ n = $ ( n e x t ) ; v a r   s p e e d I n = o p t s . s p e e d I n , s p e e d O u t = o p t s . s p e e d O u t , e a s e I n = o p t s . e a s e I n , e a s e O u t = o p t s . e a s e O u t ; $ n . c s s ( o p t s . c s s B e f o r e ) ; i f ( s p e e d O v e r r i d e ) { i f ( t y p e o f   s p e e d O v e r r i d e = = " n u m b e r " ) { s p e e d I n = s p e e d O u t = s p e e d O v e r r i d e ; } e l s e { s p e e d I n = s p e e d O u t = 1 ; } e a s e I n = e a s e O u t = n u l l ; } v a r   f n = f u n c t i o n ( ) { $ n . a n i m a t e ( o p t s . a n i m I n , s p e e d I n , e a s e I n , c b ) ; } ; $ l . a n i m a t e ( o p t s . a n i m O u t , s p e e d O u t , e a s e O u t , f u n c t i o n ( ) { i f ( o p t s . c s s A f t e r ) { $ l . c s s ( o p t s . c s s A f t e r ) ; } i f ( ! o p t s . s y n c ) { f n ( ) ; } } ) ; i f ( o p t s . s y n c ) { f n ( ) ; } } ; $ . f n . c y c l e . t r a n s i t i o n s = { f a d e : f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { $ s l i d e s . n o t ( " : e q ( " + o p t s . c u r r S l i d e + " ) " ) . c s s ( " o p a c i t y " , 0 ) ; o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s ) ; o p t s . c s s B e f o r e . o p a c i t y = 0 ; } ) ; o p t s . a n i m I n = { o p a c i t y : 1 } ; o p t s . a n i m O u t = { o p a c i t y : 0 } ; o p t s . c s s B e f o r e = { t o p : 0 , l e f t : 0 } ; } } ; $ . f n . c y c l e . v e r = f u n c t i o n ( ) { r e t u r n   v e r ; } ; $ . f n . c y c l e . d e f a u l t s = { f x : " f a d e " , t i m e o u t : 4 0 0 0 , t i m e o u t F n : n u l l , c o n t i n u o u s : 0 , s p e e d : 1 0 0 0 , s p e e d I n : n u l l , s p e e d O u t : n u l l , n e x t : n u l l , p r e v : n u l l , o n P r e v N e x t E v e n t : n u l l , p r e v N e x t E v e n t : " c l i c k . c y c l e " , p a g e r : n u l l , o n P a g e r E v e n t : n u l l , p a g e r E v e n t : " c l i c k . c y c l e " , a l l o w P a g e r C l i c k B u b b l e : f a l s e , p a g e r A n c h o r B u i l d e r : n u l l , b e f o r e : n u l l , a f t e r : n u l l , e n d : n u l l , e a s i n g : n u l l , e a s e I n : n u l l , e a s e O u t : n u l l , s h u f f l e : n u l l , a n i m I n : n u l l , a n i m O u t : n u l l , c s s B e f o r e : n u l l , c s s A f t e r : n u l l , f x F n : n u l l , h e i g h t : " a u t o " , s t a r t i n g S l i d e : 0 , s y n c : 1 , r a n d o m : 0 , f i t : 0 , c o n t a i n e r R e s i z e : 1 , p a u s e : 0 , p a u s e O n P a g e r H o v e r : 0 , a u t o s t o p : 0 , a u t o s t o p C o u n t : 0 , d e l a y : 0 , s l i d e E x p r : n u l l , c l e a r t y p e : ! $ . s u p p o r t . o p a c i t y , c l e a r t y p e N o B g : f a l s e , n o w r a p : 0 , f a s t O n E v e n t : 0 , r a n d o m i z e E f f e c t s : 1 , r e v : 0 , m a n u a l T r u m p : t r u e , r e q u e u e O n I m a g e N o t L o a d e d : t r u e , r e q u e u e T i m e o u t : 2 5 0 , a c t i v e P a g e r C l a s s : " a c t i v e S l i d e " , u p d a t e A c t i v e P a g e r L i n k : n u l l , b a c k w a r d s : f a l s e } ; } ) ( j Q u e r y ) ; 
 / * ! 
   *   j Q u e r y   C y c l e   P l u g i n   T r a n s i t i o n   D e f i n i t i o n s 
   *   T h i s   s c r i p t   i s   a   p l u g i n   f o r   t h e   j Q u e r y   C y c l e   P l u g i n 
   *   E x a m p l e s   a n d   d o c u m e n t a t i o n   a t :   h t t p : / / m a l s u p . c o m / j q u e r y / c y c l e / 
   *   C o p y r i g h t   ( c )   2 0 0 7 - 2 0 1 0   M .   A l s u p 
   *   V e r s i o n : 	   2 . 7 2 
   *   D u a l   l i c e n s e d   u n d e r   t h e   M I T   a n d   G P L   l i c e n s e s : 
   *   h t t p : / / w w w . o p e n s o u r c e . o r g / l i c e n s e s / m i t - l i c e n s e . p h p 
   *   h t t p : / / w w w . g n u . o r g / l i c e n s e s / g p l . h t m l 
   * / 
 ( f u n c t i o n ( $ ) { $ . f n . c y c l e . t r a n s i t i o n s . n o n e = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { o p t s . f x F n = f u n c t i o n ( c u r r , n e x t , o p t s , a f t e r ) { $ ( n e x t ) . s h o w ( ) ; $ ( c u r r ) . h i d e ( ) ; a f t e r ( ) ; } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . s c r o l l U p = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { $ c o n t . c s s ( " o v e r f l o w " , " h i d d e n " ) ; o p t s . b e f o r e . p u s h ( $ . f n . c y c l e . c o m m o n R e s e t ) ; v a r   h = $ c o n t . h e i g h t ( ) ; o p t s . c s s B e f o r e = { t o p : h , l e f t : 0 } ; o p t s . c s s F i r s t = { t o p : 0 } ; o p t s . a n i m I n = { t o p : 0 } ; o p t s . a n i m O u t = { t o p : - h } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . s c r o l l D o w n = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { $ c o n t . c s s ( " o v e r f l o w " , " h i d d e n " ) ; o p t s . b e f o r e . p u s h ( $ . f n . c y c l e . c o m m o n R e s e t ) ; v a r   h = $ c o n t . h e i g h t ( ) ; o p t s . c s s F i r s t = { t o p : 0 } ; o p t s . c s s B e f o r e = { t o p : - h , l e f t : 0 } ; o p t s . a n i m I n = { t o p : 0 } ; o p t s . a n i m O u t = { t o p : h } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . s c r o l l L e f t = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { $ c o n t . c s s ( " o v e r f l o w " , " h i d d e n " ) ; o p t s . b e f o r e . p u s h ( $ . f n . c y c l e . c o m m o n R e s e t ) ; v a r   w = $ c o n t . w i d t h ( ) ; o p t s . c s s F i r s t = { l e f t : 0 } ; o p t s . c s s B e f o r e = { l e f t : w , t o p : 0 } ; o p t s . a n i m I n = { l e f t : 0 } ; o p t s . a n i m O u t = { l e f t : 0 - w } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . s c r o l l R i g h t = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { $ c o n t . c s s ( " o v e r f l o w " , " h i d d e n " ) ; o p t s . b e f o r e . p u s h ( $ . f n . c y c l e . c o m m o n R e s e t ) ; v a r   w = $ c o n t . w i d t h ( ) ; o p t s . c s s F i r s t = { l e f t : 0 } ; o p t s . c s s B e f o r e = { l e f t : - w , t o p : 0 } ; o p t s . a n i m I n = { l e f t : 0 } ; o p t s . a n i m O u t = { l e f t : w } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . s c r o l l H o r z = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { $ c o n t . c s s ( " o v e r f l o w " , " h i d d e n " ) . w i d t h ( ) ; o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s , f w d ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s ) ; o p t s . c s s B e f o r e . l e f t = f w d ? ( n e x t . c y c l e W - 1 ) : ( 1 - n e x t . c y c l e W ) ; o p t s . a n i m O u t . l e f t = f w d ? - c u r r . c y c l e W : c u r r . c y c l e W ; } ) ; o p t s . c s s F i r s t = { l e f t : 0 } ; o p t s . c s s B e f o r e = { t o p : 0 } ; o p t s . a n i m I n = { l e f t : 0 } ; o p t s . a n i m O u t = { t o p : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . s c r o l l V e r t = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { $ c o n t . c s s ( " o v e r f l o w " , " h i d d e n " ) ; o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s , f w d ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s ) ; o p t s . c s s B e f o r e . t o p = f w d ? ( 1 - n e x t . c y c l e H ) : ( n e x t . c y c l e H - 1 ) ; o p t s . a n i m O u t . t o p = f w d ? c u r r . c y c l e H : - c u r r . c y c l e H ; } ) ; o p t s . c s s F i r s t = { t o p : 0 } ; o p t s . c s s B e f o r e = { l e f t : 0 } ; o p t s . a n i m I n = { t o p : 0 } ; o p t s . a n i m O u t = { l e f t : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . s l i d e X = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ ( o p t s . e l e m e n t s ) . n o t ( c u r r ) . h i d e ( ) ; $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s , f a l s e , t r u e ) ; o p t s . a n i m I n . w i d t h = n e x t . c y c l e W ; } ) ; o p t s . c s s B e f o r e = { l e f t : 0 , t o p : 0 , w i d t h : 0 } ; o p t s . a n i m I n = { w i d t h : " s h o w " } ; o p t s . a n i m O u t = { w i d t h : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . s l i d e Y = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ ( o p t s . e l e m e n t s ) . n o t ( c u r r ) . h i d e ( ) ; $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s , t r u e , f a l s e ) ; o p t s . a n i m I n . h e i g h t = n e x t . c y c l e H ; } ) ; o p t s . c s s B e f o r e = { l e f t : 0 , t o p : 0 , h e i g h t : 0 } ; o p t s . a n i m I n = { h e i g h t : " s h o w " } ; o p t s . a n i m O u t = { h e i g h t : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . s h u f f l e = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { v a r   i , w = $ c o n t . c s s ( " o v e r f l o w " , " v i s i b l e " ) . w i d t h ( ) ; $ s l i d e s . c s s ( { l e f t : 0 , t o p : 0 } ) ; o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s , t r u e , t r u e , t r u e ) ; } ) ; i f ( ! o p t s . s p e e d A d j u s t e d ) { o p t s . s p e e d = o p t s . s p e e d / 2 ; o p t s . s p e e d A d j u s t e d = t r u e ; } o p t s . r a n d o m = 0 ; o p t s . s h u f f l e = o p t s . s h u f f l e | | { l e f t : - w , t o p : 1 5 } ; o p t s . e l s = [ ] ; f o r ( i = 0 ; i < $ s l i d e s . l e n g t h ; i + + ) { o p t s . e l s . p u s h ( $ s l i d e s [ i ] ) ; } f o r ( i = 0 ; i < o p t s . c u r r S l i d e ; i + + ) { o p t s . e l s . p u s h ( o p t s . e l s . s h i f t ( ) ) ; } o p t s . f x F n = f u n c t i o n ( c u r r , n e x t , o p t s , c b , f w d ) { v a r   $ e l = f w d ? $ ( c u r r ) : $ ( n e x t ) ; $ ( n e x t ) . c s s ( o p t s . c s s B e f o r e ) ; v a r   c o u n t = o p t s . s l i d e C o u n t ; $ e l . a n i m a t e ( o p t s . s h u f f l e , o p t s . s p e e d I n , o p t s . e a s e I n , f u n c t i o n ( ) { v a r   h o p s = $ . f n . c y c l e . h o p s F r o m L a s t ( o p t s , f w d ) ; f o r ( v a r   k = 0 ; k < h o p s ; k + + ) { f w d ? o p t s . e l s . p u s h ( o p t s . e l s . s h i f t ( ) ) : o p t s . e l s . u n s h i f t ( o p t s . e l s . p o p ( ) ) ; } i f ( f w d ) { f o r ( v a r   i = 0 , l e n = o p t s . e l s . l e n g t h ; i < l e n ; i + + ) { $ ( o p t s . e l s [ i ] ) . c s s ( " z - i n d e x " , l e n - i + c o u n t ) ; } } e l s e { v a r   z = $ ( c u r r ) . c s s ( " z - i n d e x " ) ; $ e l . c s s ( " z - i n d e x " , p a r s e I n t ( z ) + 1 + c o u n t ) ; } $ e l . a n i m a t e ( { l e f t : 0 , t o p : 0 } , o p t s . s p e e d O u t , o p t s . e a s e O u t , f u n c t i o n ( ) { $ ( f w d ? t h i s : c u r r ) . h i d e ( ) ; i f ( c b ) { c b ( ) ; } } ) ; } ) ; } ; o p t s . c s s B e f o r e = { d i s p l a y : " b l o c k " , o p a c i t y : 1 , t o p : 0 , l e f t : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . t u r n U p = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s , t r u e , f a l s e ) ; o p t s . c s s B e f o r e . t o p = n e x t . c y c l e H ; o p t s . a n i m I n . h e i g h t = n e x t . c y c l e H ; } ) ; o p t s . c s s F i r s t = { t o p : 0 } ; o p t s . c s s B e f o r e = { l e f t : 0 , h e i g h t : 0 } ; o p t s . a n i m I n = { t o p : 0 } ; o p t s . a n i m O u t = { h e i g h t : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . t u r n D o w n = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s , t r u e , f a l s e ) ; o p t s . a n i m I n . h e i g h t = n e x t . c y c l e H ; o p t s . a n i m O u t . t o p = c u r r . c y c l e H ; } ) ; o p t s . c s s F i r s t = { t o p : 0 } ; o p t s . c s s B e f o r e = { l e f t : 0 , t o p : 0 , h e i g h t : 0 } ; o p t s . a n i m O u t = { h e i g h t : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . t u r n L e f t = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s , f a l s e , t r u e ) ; o p t s . c s s B e f o r e . l e f t = n e x t . c y c l e W ; o p t s . a n i m I n . w i d t h = n e x t . c y c l e W ; } ) ; o p t s . c s s B e f o r e = { t o p : 0 , w i d t h : 0 } ; o p t s . a n i m I n = { l e f t : 0 } ; o p t s . a n i m O u t = { w i d t h : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . t u r n R i g h t = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s , f a l s e , t r u e ) ; o p t s . a n i m I n . w i d t h = n e x t . c y c l e W ; o p t s . a n i m O u t . l e f t = c u r r . c y c l e W ; } ) ; o p t s . c s s B e f o r e = { t o p : 0 , l e f t : 0 , w i d t h : 0 } ; o p t s . a n i m I n = { l e f t : 0 } ; o p t s . a n i m O u t = { w i d t h : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . z o o m = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s , f a l s e , f a l s e , t r u e ) ; o p t s . c s s B e f o r e . t o p = n e x t . c y c l e H / 2 ; o p t s . c s s B e f o r e . l e f t = n e x t . c y c l e W / 2 ; o p t s . a n i m I n = { t o p : 0 , l e f t : 0 , w i d t h : n e x t . c y c l e W , h e i g h t : n e x t . c y c l e H } ; o p t s . a n i m O u t = { w i d t h : 0 , h e i g h t : 0 , t o p : c u r r . c y c l e H / 2 , l e f t : c u r r . c y c l e W / 2 } ; } ) ; o p t s . c s s F i r s t = { t o p : 0 , l e f t : 0 } ; o p t s . c s s B e f o r e = { w i d t h : 0 , h e i g h t : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . f a d e Z o o m = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s , f a l s e , f a l s e ) ; o p t s . c s s B e f o r e . l e f t = n e x t . c y c l e W / 2 ; o p t s . c s s B e f o r e . t o p = n e x t . c y c l e H / 2 ; o p t s . a n i m I n = { t o p : 0 , l e f t : 0 , w i d t h : n e x t . c y c l e W , h e i g h t : n e x t . c y c l e H } ; } ) ; o p t s . c s s B e f o r e = { w i d t h : 0 , h e i g h t : 0 } ; o p t s . a n i m O u t = { o p a c i t y : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . b l i n d X = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { v a r   w = $ c o n t . c s s ( " o v e r f l o w " , " h i d d e n " ) . w i d t h ( ) ; o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s ) ; o p t s . a n i m I n . w i d t h = n e x t . c y c l e W ; o p t s . a n i m O u t . l e f t = c u r r . c y c l e W ; } ) ; o p t s . c s s B e f o r e = { l e f t : w , t o p : 0 } ; o p t s . a n i m I n = { l e f t : 0 } ; o p t s . a n i m O u t = { l e f t : w } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . b l i n d Y = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { v a r   h = $ c o n t . c s s ( " o v e r f l o w " , " h i d d e n " ) . h e i g h t ( ) ; o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s ) ; o p t s . a n i m I n . h e i g h t = n e x t . c y c l e H ; o p t s . a n i m O u t . t o p = c u r r . c y c l e H ; } ) ; o p t s . c s s B e f o r e = { t o p : h , l e f t : 0 } ; o p t s . a n i m I n = { t o p : 0 } ; o p t s . a n i m O u t = { t o p : h } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . b l i n d Z = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { v a r   h = $ c o n t . c s s ( " o v e r f l o w " , " h i d d e n " ) . h e i g h t ( ) ; v a r   w = $ c o n t . w i d t h ( ) ; o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s ) ; o p t s . a n i m I n . h e i g h t = n e x t . c y c l e H ; o p t s . a n i m O u t . t o p = c u r r . c y c l e H ; } ) ; o p t s . c s s B e f o r e = { t o p : h , l e f t : w } ; o p t s . a n i m I n = { t o p : 0 , l e f t : 0 } ; o p t s . a n i m O u t = { t o p : h , l e f t : w } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . g r o w X = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s , f a l s e , t r u e ) ; o p t s . c s s B e f o r e . l e f t = t h i s . c y c l e W / 2 ; o p t s . a n i m I n = { l e f t : 0 , w i d t h : t h i s . c y c l e W } ; o p t s . a n i m O u t = { l e f t : 0 } ; } ) ; o p t s . c s s B e f o r e = { w i d t h : 0 , t o p : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . g r o w Y = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s , t r u e , f a l s e ) ; o p t s . c s s B e f o r e . t o p = t h i s . c y c l e H / 2 ; o p t s . a n i m I n = { t o p : 0 , h e i g h t : t h i s . c y c l e H } ; o p t s . a n i m O u t = { t o p : 0 } ; } ) ; o p t s . c s s B e f o r e = { h e i g h t : 0 , l e f t : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . c u r t a i n X = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s , f a l s e , t r u e , t r u e ) ; o p t s . c s s B e f o r e . l e f t = n e x t . c y c l e W / 2 ; o p t s . a n i m I n = { l e f t : 0 , w i d t h : t h i s . c y c l e W } ; o p t s . a n i m O u t = { l e f t : c u r r . c y c l e W / 2 , w i d t h : 0 } ; } ) ; o p t s . c s s B e f o r e = { t o p : 0 , w i d t h : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . c u r t a i n Y = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s , t r u e , f a l s e , t r u e ) ; o p t s . c s s B e f o r e . t o p = n e x t . c y c l e H / 2 ; o p t s . a n i m I n = { t o p : 0 , h e i g h t : n e x t . c y c l e H } ; o p t s . a n i m O u t = { t o p : c u r r . c y c l e H / 2 , h e i g h t : 0 } ; } ) ; o p t s . c s s B e f o r e = { l e f t : 0 , h e i g h t : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . c o v e r = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { v a r   d = o p t s . d i r e c t i o n | | " l e f t " ; v a r   w = $ c o n t . c s s ( " o v e r f l o w " , " h i d d e n " ) . w i d t h ( ) ; v a r   h = $ c o n t . h e i g h t ( ) ; o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s ) ; i f ( d = = " r i g h t " ) { o p t s . c s s B e f o r e . l e f t = - w ; } e l s e { i f ( d = = " u p " ) { o p t s . c s s B e f o r e . t o p = h ; } e l s e { i f ( d = = " d o w n " ) { o p t s . c s s B e f o r e . t o p = - h ; } e l s e { o p t s . c s s B e f o r e . l e f t = w ; } } } } ) ; o p t s . a n i m I n = { l e f t : 0 , t o p : 0 } ; o p t s . a n i m O u t = { o p a c i t y : 1 } ; o p t s . c s s B e f o r e = { t o p : 0 , l e f t : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . u n c o v e r = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { v a r   d = o p t s . d i r e c t i o n | | " l e f t " ; v a r   w = $ c o n t . c s s ( " o v e r f l o w " , " h i d d e n " ) . w i d t h ( ) ; v a r   h = $ c o n t . h e i g h t ( ) ; o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s , t r u e , t r u e , t r u e ) ; i f ( d = = " r i g h t " ) { o p t s . a n i m O u t . l e f t = w ; } e l s e { i f ( d = = " u p " ) { o p t s . a n i m O u t . t o p = - h ; } e l s e { i f ( d = = " d o w n " ) { o p t s . a n i m O u t . t o p = h ; } e l s e { o p t s . a n i m O u t . l e f t = - w ; } } } } ) ; o p t s . a n i m I n = { l e f t : 0 , t o p : 0 } ; o p t s . a n i m O u t = { o p a c i t y : 1 } ; o p t s . c s s B e f o r e = { t o p : 0 , l e f t : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . t o s s = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { v a r   w = $ c o n t . c s s ( " o v e r f l o w " , " v i s i b l e " ) . w i d t h ( ) ; v a r   h = $ c o n t . h e i g h t ( ) ; o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s , t r u e , t r u e , t r u e ) ; i f ( ! o p t s . a n i m O u t . l e f t & & ! o p t s . a n i m O u t . t o p ) { o p t s . a n i m O u t = { l e f t : w * 2 , t o p : - h / 2 , o p a c i t y : 0 } ; } e l s e { o p t s . a n i m O u t . o p a c i t y = 0 ; } } ) ; o p t s . c s s B e f o r e = { l e f t : 0 , t o p : 0 } ; o p t s . a n i m I n = { l e f t : 0 } ; } ; $ . f n . c y c l e . t r a n s i t i o n s . w i p e = f u n c t i o n ( $ c o n t , $ s l i d e s , o p t s ) { v a r   w = $ c o n t . c s s ( " o v e r f l o w " , " h i d d e n " ) . w i d t h ( ) ; v a r   h = $ c o n t . h e i g h t ( ) ; o p t s . c s s B e f o r e = o p t s . c s s B e f o r e | | { } ; v a r   c l i p ; i f ( o p t s . c l i p ) { i f ( / l 2 r / . t e s t ( o p t s . c l i p ) ) { c l i p = " r e c t ( 0 p x   0 p x   " + h + " p x   0 p x ) " ; } e l s e { i f ( / r 2 l / . t e s t ( o p t s . c l i p ) ) { c l i p = " r e c t ( 0 p x   " + w + " p x   " + h + " p x   " + w + " p x ) " ; } e l s e { i f ( / t 2 b / . t e s t ( o p t s . c l i p ) ) { c l i p = " r e c t ( 0 p x   " + w + " p x   0 p x   0 p x ) " ; } e l s e { i f ( / b 2 t / . t e s t ( o p t s . c l i p ) ) { c l i p = " r e c t ( " + h + " p x   " + w + " p x   " + h + " p x   0 p x ) " ; } e l s e { i f ( / z o o m / . t e s t ( o p t s . c l i p ) ) { v a r   t o p = p a r s e I n t ( h / 2 ) ; v a r   l e f t = p a r s e I n t ( w / 2 ) ; c l i p = " r e c t ( " + t o p + " p x   " + l e f t + " p x   " + t o p + " p x   " + l e f t + " p x ) " ; } } } } } } o p t s . c s s B e f o r e . c l i p = o p t s . c s s B e f o r e . c l i p | | c l i p | | " r e c t ( 0 p x   0 p x   0 p x   0 p x ) " ; v a r   d = o p t s . c s s B e f o r e . c l i p . m a t c h ( / ( \ d + ) / g ) ; v a r   t = p a r s e I n t ( d [ 0 ] ) , r = p a r s e I n t ( d [ 1 ] ) , b = p a r s e I n t ( d [ 2 ] ) , l = p a r s e I n t ( d [ 3 ] ) ; o p t s . b e f o r e . p u s h ( f u n c t i o n ( c u r r , n e x t , o p t s ) { i f ( c u r r = = n e x t ) { r e t u r n ; } v a r   $ c u r r = $ ( c u r r ) , $ n e x t = $ ( n e x t ) ; $ . f n . c y c l e . c o m m o n R e s e t ( c u r r , n e x t , o p t s , t r u e , t r u e , f a l s e ) ; o p t s . c s s A f t e r . d i s p l a y = " b l o c k " ; v a r   s t e p = 1 , c o u n t = p a r s e I n t ( ( o p t s . s p e e d I n / 1 3 ) ) - 1 ; ( f u n c t i o n   f ( ) { v a r   t t = t ? t - p a r s e I n t ( s t e p * ( t / c o u n t ) ) : 0 ; v a r   l l = l ? l - p a r s e I n t ( s t e p * ( l / c o u n t ) ) : 0 ; v a r   b b = b < h ? b + p a r s e I n t ( s t e p * ( ( h - b ) / c o u n t | | 1 ) ) : h ; v a r   r r = r < w ? r + p a r s e I n t ( s t e p * ( ( w - r ) / c o u n t | | 1 ) ) : w ; $ n e x t . c s s ( { c l i p : " r e c t ( " + t t + " p x   " + r r + " p x   " + b b + " p x   " + l l + " p x ) " } ) ; ( s t e p + + < = c o u n t ) ? s e t T i m e o u t ( f , 1 3 ) : $ c u r r . c s s ( " d i s p l a y " , " n o n e " ) ; } ) ( ) ; } ) ; o p t s . c s s B e f o r e = { d i s p l a y : " b l o c k " , o p a c i t y : 1 , t o p : 0 , l e f t : 0 } ; o p t s . a n i m I n = { l e f t : 0 } ; o p t s . a n i m O u t = { l e f t : 0 } ; } ; } ) ( j Q u e r y ) ;     
 / *   E N D   J S   L I B R A R I E S     *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   * / 
 
 
 / * ! 
     *   C P S C   J S   U t i l i t i e s   f o r   u s e   w i t h   j Q u e r y   1 . 4 . x   a n d   j Q u e r y   U I   1 . 8 . x 
     *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   * / 
 
 ( f u n c t i o n ( $ )   {   
 	 $ ( d o c u m e n t ) . r e a d y (   f u n c t i o n ( )   { 
 	 
 	 	 $ ( " . t a b s " ) . t a b s ( ) ; 
 
 	 	 / /   F o c u s / B l u r   t o g g l e   o n   a l l   t e x t   i n p u t s 
 	 	 $ ( " i n p u t [ t y p e = t e x t ] " ) . i n p u t F o c u s T o g g l e ( ) ; 
 	 	 $ ( " t e x t a r e a " ) . i n p u t F o c u s T o g g l e ( ) ; 
 	 	 $ ( " . c a r o u s e l " ) . c a r o u s e l ( ) ; 
 	 	 $ ( " . c u s t o m - d d " ) . c u s t o m D D ( ) ; 
 	 
 	 	 $ ( " . m e s s a g e - r o t a t o r " ) . s l i d e r ( ) ; 
 	 	 $ ( " l i . i n t e r n a t i o n " ) . f i n d ( " . l a n g " ) . t e x t ( " -N‡e" ) ; 
 	 	 $ ( " a . s p a n i s h " ) . t e x t ( " E s p a ñ o l " ) ; 
 	 	 $ ( " . s a f e t y - i n f o r m a t i o n   a . s p a n i s h " ) . t e x t ( " ( E s p a ñ o l ) " ) ; 
 	 	 
 	 } ) ; 
 
 
 	 / * ! 
 	     *   F e a t u r e d   C a r o u s e l   u s i n g   t h e   $   " C y c l e "   P l u g i n 
 	     *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   * / 
 	 $ . f n . c a r o u s e l   =   
 	 
 	 	 f u n c t i o n ( )   { 
 	 	 	 i f   ( $ ( t h i s ) . l e n g t h   >   0 )   { 
 	 	 	 
 	 	 	 	 / /   B u i l d   P a g i n a t i o n 	 	 	 	 
 	 	 	 	 v a r   p a g i n         =   $ ( t h i s ) . f i n d ( " . p a g i n a t i o n " ) ; 
 	 	 	 	 v a r   s l i d e s   =   $ ( t h i s ) . f i n d ( " u l . s l i d e s " ) ; 
 	 	 	 	 v a r   i t e m s   =   s l i d e s . f i n d ( " l i " ) ; 
 	 	 	 	 v a r   n u m   =   i t e m s . l e n g t h ; 
 	 	 	 	 v a r   l i   =   n u l l ; 
 	 	 	 	 	 	 	 	 
 	 	 	 	 / /   L o o p   o v e r   n u m b e r   o f   " s l i d e s " ,   c r e a t e   a   c o r r e s p o n d i n g   l i n k   f o r   p a g i n a t i o n 
 	 	 	 	 f o r   ( v a r   i = 0 ; i < n u m ; i + + ) { 
 	 	 	 	 	 l i   =   $ ( " < l i > < a   h r e f = \ " # \ " >   S l i d e   " + ( i + 1 ) + " < / a > < / l i > " ) ; 
 	 	 	 	 	 p a g i n . a p p e n d ( l i ) ; 
 	 	 	 	 } 
 	 	 
 	 	 
 	 	 	 	 / * *   s l i d e s   C y c l e   p l u g i n   * / 
 	 	 	 	 s l i d e s . c y c l e ( {   
 	 	 	 	         f x :           " s c r o l l H o r z " ,   
 	 	 	 	         s p e e d :     " s l o w " ,   
 	 	 	 	         t i m e o u t :   8 0 0 0 , 
 	 	 	 	         p a g e r :       " . c a r o u s e l   . p a g i n a t i o n " , 
 	 	 	 	 	 p a g e r A n c h o r B u i l d e r :   f u n c t i o n ( i d x ,   s l i d e )   { 	 	 
 	 	 	 	 	 	 / /   r e t u r n   s e l   s t r i n g   f o r   e x i s t i n g   a n c h o r 
 	 	 	 	 	 	 r e t u r n   ' . c a r o u s e l   . p a g i n a t i o n   l i : e q ( '   +   ( i d x )   +   ' )   a ' ; 
 	 	               	 	 } 
 	 	 	 	 } ) ; 
 	 	 	 	 
 	 	 	 	 $ ( t h i s ) . f i n d ( " a . t o g g l e " ) . c l i c k (   f u n c t i o n ( )   { 
 	 	 	 	 
 	 	 	 	 	 v a r   c l i c k e d   =   $ ( t h i s ) ; 
 	 	 	 	 	 i f   ( c l i c k e d . h a s C l a s s ( " p a u s e " ) ) { 
 	 	 	 	 	 	 c l i c k e d . r e m o v e C l a s s ( " p a u s e " ) . a d d C l a s s ( " p l a y " ) ; 
 	 	 	 	 	 	 c l i c k e d . t e x t ( " P l a y " ) ; 
 	 	 	 	 	 	 s l i d e s . c y c l e ( " p a u s e " ) ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 c l i c k e d . r e m o v e C l a s s ( " p l a y " ) . a d d C l a s s ( " p a u s e " ) ; 
 	 	 	 	 	 	 c l i c k e d . t e x t ( " P a u s e " ) ; 
 	 	 	 	 	 	 s l i d e s . c y c l e ( " r e s u m e " ) ; 	 	 	 	 	 
 	 	 	 	 	 } 
 	 	 	 	 	 
 	 	 	 	 	 r e t u r n   f a l s e ; 
 	 	 	 	 } ) ; 
 	 
 	 	 	 } 
 	 	 }   / /   e n d   i n i t C a r o u s e l 
 	 
 	 
 	 / * ! 
 	     *   H o r i z o n t a l   S l i d e r   u s i n g   t h e   $   " C y c l e "   P l u g i n 
 	     *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   * / 
 	 $ . f n . s l i d e r   =   
 	 
 	 	 f u n c t i o n ( )   { 
 	 	 	 i f   ( $ ( t h i s ) . l e n g t h   >   0 ) { 
 	 	 	 
 	 	 	 	 / /   C a c h e   s l i d e r   e l e m e n t 
 	 	 	 	 v a r   s l i d e r   =   $ ( t h i s ) ; 
 	 	 	 	 v a r   s l i d e s   =   s l i d e r . f i n d ( " u l " ) ; 
 	 	 	 	 
 	 	 	 	 / /   I f   t h e r e   i s   o n l y   o n e   a l e r t   m e s s a g e ,   a d d   c l a s s   f o r   a d d i t i o n a l   s t y l e s 
 	 	 	 	 i f   ( s l i d e s . f i n d ( " l i " ) . l e n g t h   = =   1 )   { 
 	 	 	 	 	 s l i d e r . a d d C l a s s ( " s i n g l e - m e s s a g e " ) ; 
 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 s l i d e r . r e m o v e C l a s s ( " s i n g l e - m e s s a g e " ) ; 
 	 	 	 	 } 
 	 	 	 	 
 	 	 	 	 / * *   I n i t i a i n g   C y c l e   p l u g i n   * / 
 	 	 	 	 s l i d e s . c y c l e ( {   
 	 	 	 	         f x :           " s c r o l l H o r z " ,   
 	 	 	 	         s p e e d :     " s l o w " ,   
 	 	 	 	         t i m e o u t :   0 , 
 	 	 	 	         p r e v :     " . m e s s a g e - r o t a t o r   . p r e v " , 
 	 	 	 	         n e x t :     " . m e s s a g e - r o t a t o r   . n e x t " 
 	 	 	 	 } ) ; 	 	 	 
 	 	 	 
 	 	 	 } 
 	 } 
 
   
 / * ! 
     *   C u s t o m   D r o p   D o w n   S e l e c t   b o x :   C r e a t e s   a   c u s t o m   s t y l e d   d r o p d o w n   b o x   t h a t   w i l l   s t i l l   f u n c t i o n   i n   f o r m s 
     * 
     *   A l l   t h a t   i s   r e q u i r e d   i s   a   n o r m a l   s e l e c t   e l e m e n t .     T h i s   f u n c t i o n   h i d e s   t h e   s e l e c t   d r o p d o w n   a n d   c r e a t e s 
     *   a n   u n o r d e r e d   l i s t   ( U L )   o f   o p t i o n s .     E v e n t s   a r e   a t t a c h e d   t o   t h e   n e w   U L   s o   a n y   c h a n g e   t h e   u s e r   m a k e s 
     *   t o   t h e   U L   w i l l   b e   r e f l e c t e d   i n   t h e   h i d d e n   d r o p d o w n .   T h i s   w a y   f o r m s   w i l l   s t i l l   h a n d l e   t h e   d r o p d o w n .     
     *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   * / 
 $ . f n . c u s t o m D D   = 
 
 	 f u n c t i o n ( )   { 
 	 	 i f   ( $ ( t h i s ) . l e n g t h   >   0   ) { 
 	 	 	 $ ( t h i s ) . e a c h ( f u n c t i o n ( )   { 
 	 	 	 
 	 	 	 	 v a r   p a r e n t   =   $ ( t h i s ) ; 
 	 	 	 	 v a r   s e l e c t   =   p a r e n t . f i n d ( " s e l e c t " ) ; 
 	 	 	 	 v a r   t i t l e   	 	 =   $ ( " < h 5 > < a   h r e f = ' j a v a s c r i p t : v o i d ( 0 ) ' > < / a > < / h 5 > " ) ; 
 	 	 	 	 v a r   l i       	 	 =   $ ( " < l i > < / l i > " ) ; 
 	 	 	 	 v a r   a   	 	 	 =   $ ( " < a > < / a > " ) ; 
 	 	 	 	 v a r   o p t   	 	 =   n u l l ; 	 	 	 
 	 	 	 	 v a r   c u s t o m _ u l   	 =   $ ( " < u l > < / u l > " ) ; 	 
 	 	 	 	 
 	 	 	 	 t i t l e . f i n d ( " a " ) . t e x t ( s e l e c t . f i n d ( " : s e l e c t e d " ) . t e x t ( ) ) ; 
 	 	 	 	 p a r e n t . a p p e n d ( t i t l e ) ; 
 	 	 	 	 
 	 	 	 	 / /   C r e a t e   U L   f r o m   s e l e c t   d r o p d o w n 
 	 	 	 	 s e l e c t . c h i l d r e n ( ) . e a c h (   f u n c t i o n ( )   { 
 	 	 	 	 
 	 	 	 	 	 o p t   =   $ ( t h i s ) ; 
 	 	 	 	 	 a . a t t r ( { " n a m e " : o p t . v a l ( ) ,   " h r e f " : " j a v a s c r i p t : v o i d ( 0 ) " } ) . h t m l ( o p t . h t m l ( ) ) ; 
 	 	 	 	 	 c u s t o m _ u l . a p p e n d ( l i . a p p e n d ( a ) ) ; 
 	 	 	 	 	 
 	 	 	 	 	 / /   R e s e t   
 	 	 	 	 	 a 	 =   $ ( " < a > < / a > " ) ; 
 	 	 	 	 	 l i 	 =   $ ( " < l i > < / l i > " ) ; 
 	 	 	 	 } ) ; 
 	 	 	 	 
 	 	 	 	 c u s t o m _ u l . i n s e r t A f t e r ( p a r e n t . f i n d ( " h 5 " ) ) ; 
 	 	 	 	 c u s t o m _ u l   =   p a r e n t . f i n d ( " u l " ) 	 	 	 
 	 	 	 	 
 	 	 	 
 	 	 	 	 / /   A t t a c h   e v e n t   t o   d r o p   d o w n   b u t t o n 
 	 	 	 	 t i t l e . c l i c k (   f u n c t i o n ( )   { 
 	 	 	 	 	 v a r   a c t _ u l   =   $ ( t h i s ) . n e x t ( " u l " ) ; 
 	 	 	 	 	 a c t _ u l . p a r e n t s ( " . c u s t o m - d d " ) . t o g g l e C l a s s ( " a c t i v e " ) ; 
 	 	 	 	 	 a c t _ u l . s l i d e T o g g l e ( " f a s t " ) ; 
 	 	 	 	 	 
 	 	 	 	 	 	 
 	 	 	 	 	 r e t u r n   f a l s e ; 
 	 	 	 	 } ) ; 
 	 	 	 
 	 	 	 	 / /   S e t   h i d d e n   d r o p d o w n   a n d   d r o p d o w n   t i t l e 
 	 	 	 	 c u s t o m _ u l . f i n d ( " l i   a " ) . c l i c k (   f u n c t i o n ( )   { 
 	 	 	 	 	 v a r   c l i c k e d   =   $ ( t h i s ) ; 
 	 
 	 	 	 	 	 / /   F i n d   t h e   c o r r e s p o d i n g   o p t i o n   i n   t h e   h i d d e n   s e l e c t   a n d   s e t   t o   s e l e c t e d 
 	 	 	 	 	 / /   C h a n g e   t h e   t i t l e   t e x t   t o   t h e   c l i c k e d   e l e m e n t s 
 	 	 	 	 	 s e l e c t . f i n d ( " o p t i o n [ v a l u e = " + c l i c k e d . a t t r ( " n a m e " ) + " ] " ) . a t t r ( " s e l e c t e d " , " t r u e " ) ; 
 	 	 	 	 	 t i t l e . f i n d ( " a " ) . t e x t ( c l i c k e d . t e x t ( ) ) ; 
 	 	 	 	 	 c u s t o m _ u l . s l i d e U p (   f u n c t i o n ( )   { 
 	 	 	 	 	 	 c u s t o m _ u l . p a r e n t s ( " . c u s t o m - d d " ) . r e m o v e C l a s s ( " a c t i v e " ) ; 
 	 	 	 	 	 	 
 	 	 	 	 	 	 / /   V i s i t   t h e   h r e f 
 	 	 	 	 	 	 w i n d o w . l o c a t i o n   =   c l i c k e d . a t t r ( " n a m e " ) ; 
 	 	 	 	 	 } ) ; 
 	 	 	 	 	 	 	 	 	 	 
 	 	 	 	 } ) ; 
 	 	 	 	 
 	 	 	 	 $ ( d o c u m e n t ) . c l i c k (   f u n c t i o n ( )   { 
 	 	 	 	 	 c u s t o m _ u l . s l i d e U p (   f u n c t i o n ( )   { 
 	 	 	 	 	 	 c u s t o m _ u l . p a r e n t s ( " . c u s t o m - d d " ) . r e m o v e C l a s s ( " a c t i v e " ) ; 
 	 	 	 	 	 } ) ; 
 	 	 	 	 } ) ; 
 	 	 	 } ) ; 
 	 	 } 
 	 } 
 	 	 
 	 / * ! 
 	     *   A c c o r d i o n   E x p a n d / C o l l a p s e   T o g g l e 
 	     *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   * / 
 	 $ . f n . a c c o r d i o n   = 
 	 	 f u n c t i o n ( )   { 
 	 	 	 
 	 	 	 $ ( t h i s ) . f i n d ( " d i v " ) . e a c h (   f u n c t i o n ( )   { 
 	 	 	 	 $ ( t h i s ) . c s s ( " h e i g h t " , $ ( t h i s ) . h e i g h t ( ) ) . h i d e ( ) ; 
 	 	 	 } ) ; 
 	 	 	 
 	 	 	 $ ( t h i s ) . f i n d ( " a . a r r o w " ) . c l i c k ( 
 	 	 	 	 f u n c t i o n ( )   { 
 	 	 	 
 	 	 	 	 	 v a r   c l i c k e d   	 =   $ ( t h i s ) ;   / /   C a c h e   c l i c k e d 
 	 	 	 	 	 v a r   p a r e n t _ l i   	 =   c l i c k e d . p a r e n t s ( " l i " ) ;   / /   G e t s   i m m e d i a t e   L I   p a r e n t 
 	 	 	 	 	 
 	 	 	 	 	 i f   ( p a r e n t _ l i . h a s C l a s s ( " a c t i v e " ) )   { 
 	 	 	 	 	 	 p a r e n t _ l i . r e m o v e C l a s s ( " a c t i v e " ) ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 p a r e n t _ l i . a d d C l a s s ( " a c t i v e " ) ; 
 	 	 	 	 	 } 
 	 	 	 	 	 	 	 
 	 	 	 	 	 p a r e n t _ l i . f i n d ( " d i v " ) . s l i d e T o g g l e ( ) ; 
 	 	 	 	 	 
 	 	 	 	 	 r e t u r n   f a l s e ;   / /   p r e v e n t   d e f a u l t   a c t i o n 	 	 	 
 	 	 	 	 } 
 	 	 	 ) ; 
 	 	 	 
 	 	 	 
 	 	 } 
 	 
 	 / * ! 
 	     * 
 	     *   I n p u t   T o g g l e   P l u g i n 
 	     * 
 	     *   T h i s   p l u g i n   h a n d l e s   t e x t   i n p u t   b l u r / f o c u s   a u t o   r e m o v e / a d d i t i o n 
 	     *       o f   d e f a u l t   t e x t . 
 	     * 
 	     *   O n   f o c u s   -   d e f a u l t   t e x t   i s   r e m o v e d 
 	     *   O n   b l u r     -   d e f a u l t   t e x t   i s   a d d e d 
 	     * 
 	     *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   * / 
 	 $ . f n . i n p u t F o c u s T o g g l e   =   
 	 
 	 	 f u n c t i o n ( )   { 
 	 	 	 / / i f   ( $ s w x ( t h i s ) . l e n g t h )   {   / /   M a k e   s u r e   e l e m e n t   e x i s t s 
 	 	 	 	 $ ( t h i s ) . e a c h (   f u n c t i o n ( )   { 
 	 	 	 	 
 	 	 	 	 	 / /   C a c h e   " t h i s " 
 	 	 	 	 	 v a r   i n p u t _ f i e l d   =   $ ( t h i s ) ; 
 	 	 	 	 	 
 	 	 	 	 	 / /   G r a b   d e f a u l t   t e x t 	 
 	 	 	 	 	 v a r   d e f a u l t _ t e x t   =   i n p u t _ f i e l d . v a l ( ) ; 
 	 	 	 
 	 	 	 	 	 / /   C h e c k   i f   d e f a u l t   t e x t   e x i s t s   ( t h i s   i s   u s e d   t o   s k i p   o v e r   i n p u t   f i e l d s   i n   f o r m s ) 
 	 	 	 	 	 i f   ( d e f a u l t _ t e x t   ! =   " " ) { 
 	 	 	 	 	 
 	 	 	 	 	 	 / /   R e m o v e s   t e x t   o n   f o c u s 
 	 	 	 	 	 	 i n p u t _ f i e l d . f o c u s (   f u n c t i o n ( )   { 
 	 	 	 	 	 	 	 i f   ( i n p u t _ f i e l d . v a l ( )   = =   d e f a u l t _ t e x t ) { 
 	 	 	 	 	 	 	 	 i n p u t _ f i e l d . v a l ( " " ) ; 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 } ) ; 
 	 	 	 	 	 	 
 	 	 	 	 	 	 / /   I n s e r t s   d e f a u l t   t e x t   o n   b l u r 
 	 	 	 	 	 	 i n p u t _ f i e l d . b l u r (   f u n c t i o n ( )   { 
 	 	 	 	 	 	 	 i f   ( i n p u t _ f i e l d . v a l ( )   = =   " " ) { 
 	 	 	 	 	 	 	 	 i n p u t _ f i e l d . v a l ( d e f a u l t _ t e x t ) ; 
 	 	 	 	 	 	 	 } 	 
 	 	 	 	 	 	 } ) ; 
 	 	 	 	 	 } 
 	 	 	 	 } ) ; 
 	 	 	 / / } 
 	 	 }   / /   e n d   $ . f n . i n p u t T o g g l e   
 	 	 
 	 	 
 	 / * ! 
 	     *   T a b b e d   C o n t a i n e r s 
 	     *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   * / 
 	 $ . f n . t a b s   = 
 	 	 f u n c t i o n ( )   { 
 	 	 
 	 	 	 $ ( t h i s ) . e a c h (   f u n c t i o n ( )   { 
 	 	 	 
 	 	 	 	 v a r   e l e m   =   $ ( t h i s ) ; 
 	 	 	 	 v a r   t a b s   =   e l e m . f i n d ( " . t a b - n a v " ) ; 
 	 	 	 	 e l e m . f i n d ( " . a c t i v e " ) . r e m o v e C l a s s ( " a c t i v e " ) ; 
 	 	 	 	 t a b s . f i n d ( " l i : e q ( 0 ) " ) . a d d C l a s s ( " a c t i v e " ) ; 	 	 	 	 
 	 	 	 	 e l e m . f i n d ( " . t a b - c o n t a i n e r : e q ( 0 ) " ) . a d d C l a s s ( " a c t i v e " ) ; 
 	 	 	 	 t a b s . f i n d ( " a " ) . c l i c k (   f u n c t i o n ( )   { 
 
 	 	 	 	 	 / /   G e t   c l i c k e d   L I 
 	 	 	 	 	 v a r   t a b   =   $ ( t h i s ) . p a r e n t s ( " l i " ) ; 
 	 	 	 	 	 
 	 	 	 	 	 / /   R e m o v e   c u r r e n t   a c t i v e   s t a t e 
 	 	 	 	 	 t a b s . f i n d ( " l i . a c t i v e " ) . r e m o v e C l a s s ( " a c t i v e " ) ; 
 	 	 	 	 	 t a b . a d d C l a s s ( " a c t i v e " ) ; 
 	 	 	 	 	 
 	 	 	 	 	 / /   G e t   i n d e x   o f   c l i c k e d   L I 
 	 	 	 	 	 v a r   i d x   =   t a b . i n d e x ( " . t a b - n a v   l i " ) ; 
 	 	 	 	 	 e l e m . f i n d ( " . t a b - c o n t a i n e r . a c t i v e " ) . r e m o v e C l a s s ( " a c t i v e " ) ; 
 	 	 	 	 	 e l e m . f i n d ( " . t a b - c o n t a i n e r : e q ( " + i d x + " ) " ) . a d d C l a s s ( " a c t i v e " ) ; 
 	 	 	 	 	 
 	 	 	 	 	 r e t u r n   f a l s e ;   / /   P r e v e n t   d e f a u l t   a c t i o n 
 	 	 	 	 
 	 	 	 	 } ) ; 
 	 	 	 	 
 	 	 	 
 	 	 	 } ) ;   / /   . e a c h 
 	 	 	 
 	 	 	 
 	 	 
 	 	 } 	 	 
 	 	 
 } ) ( j Q u e r y ) ;   
