ÿþj Q u e r y . u i | | ( f u n c t i o n ( c ) { v a r   i = c . f n . r e m o v e , d = c . b r o w s e r . m o z i l l a & & ( p a r s e F l o a t ( c . b r o w s e r . v e r s i o n ) < 1 . 9 ) ; c . u i = { v e r s i o n : " 1 . 7 . 1 " , p l u g i n : { a d d : f u n c t i o n ( k , l , n ) { v a r   m = c . u i [ k ] . p r o t o t y p e ; f o r ( v a r   j   i n   n ) { m . p l u g i n s [ j ] = m . p l u g i n s [ j ] | | [ ] ; m . p l u g i n s [ j ] . p u s h ( [ l , n [ j ] ] ) } } , c a l l : f u n c t i o n ( j , l , k ) { v a r   n = j . p l u g i n s [ l ] ; i f ( ! n | | ! j . e l e m e n t [ 0 ] . p a r e n t N o d e ) { r e t u r n } f o r ( v a r   m = 0 ; m < n . l e n g t h ; m + + ) { i f ( j . o p t i o n s [ n [ m ] [ 0 ] ] ) { n [ m ] [ 1 ] . a p p l y ( j . e l e m e n t , k ) } } } } , c o n t a i n s : f u n c t i o n ( k , j ) { 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 ? k . c o m p a r e D o c u m e n t P o s i t i o n ( j ) & 1 6 : k ! = = j & & k . c o n t a i n s ( j ) } , h a s S c r o l l : f u n c t i o n ( m , k ) { i f ( c ( m ) . 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 } v a r   j = ( k & & k = = " l e f t " ) ? " s c r o l l L e f t " : " s c r o l l T o p " , l = f a l s e ; i f ( m [ j ] > 0 ) { r e t u r n   t r u e } m [ j ] = 1 ; l = ( m [ j ] > 0 ) ; m [ j ] = 0 ; r e t u r n   l } , i s O v e r A x i s : f u n c t i o n ( k , j , l ) { r e t u r n ( k > j ) & & ( k < ( j + l ) ) } , i s O v e r : f u n c t i o n ( o , k , n , m , j , l ) { r e t u r n   c . u i . i s O v e r A x i s ( o , n , j ) & & c . u i . i s O v e r A x i s ( k , m , l ) } , k e y C o d e : { 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 } } ; i f ( d ) { v a r   f = c . a t t r , e = c . f n . r e m o v e A t t r , h = " h t t p : / / w w w . w 3 . o r g / 2 0 0 5 / 0 7 / a a a " , a = / ^ a r i a - / , b = / ^ w a i r o l e : / ; c . a t t r = f u n c t i o n ( k , j , l ) { v a r   m = l ! = = u n d e f i n e d ; r e t u r n ( j = = " r o l e " ? ( m ? f . c a l l ( t h i s , k , j , " w a i r o l e : " + l ) : ( f . a p p l y ( t h i s , a r g u m e n t s ) | | " " ) . r e p l a c e ( b , " " ) ) : ( a . t e s t ( j ) ? ( m ? k . s e t A t t r i b u t e N S ( h , j . r e p l a c e ( a , " a a a : " ) , l ) : f . c a l l ( t h i s , k , j . r e p l a c e ( a , " a a a : " ) ) ) : f . a p p l y ( t h i s , a r g u m e n t s ) ) ) } ; c . f n . r e m o v e A t t r = f u n c t i o n ( j ) { r e t u r n ( a . t e s t ( j ) ? t h i s . e a c h ( f u n c t i o n ( ) { t h i s . r e m o v e A t t r i b u t e N S ( h , j . r e p l a c e ( a , " " ) ) } ) : e . c a l l ( t h i s , j ) ) } } c . f n . e x t e n d ( { r e m o v e : f u n c t i o n ( ) { c ( " * " , t h i s ) . a d d ( t h i s ) . e a c h ( f u n c t i o n ( ) { c ( t h i s ) . t r i g g e r H a n d l e r ( " r e m o v e " ) } ) ; r e t u r n   i . 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 " , " " ) . u n b i n d ( " s e l e c t s t a r t . u i " ) } , 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 " ) . b i n d ( " s e l e c t s t a r t . u i " , f u n c t i o n ( ) { r e t u r n   f a l s e } ) } , s c r o l l P a r e n t : f u n c t i o n ( ) { v a r   j ; i f ( ( c . 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 " ) ) ) { j = 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 ( c . 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 ( c . c u r C S S ( t h i s , " o v e r f l o w " , 1 ) + c . c u r C S S ( t h i s , " o v e r f l o w - y " , 1 ) + c . c u r C S S ( t h i s , " o v e r f l o w - x " , 1 ) ) } ) . e q ( 0 ) } e l s e { j = 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 ( c . c u r C S S ( t h i s , " o v e r f l o w " , 1 ) + c . c u r C S S ( t h i s , " o v e r f l o w - y " , 1 ) + c . 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 " ) ) | | ! j . l e n g t h ? c ( d o c u m e n t ) : j } } ) ; c . e x t e n d ( c . e x p r [ " : " ] , { d a t a : f u n c t i o n ( l , k , j ) { r e t u r n   ! ! c . d a t a ( l , j [ 3 ] ) } , f o c u s a b l e : f u n c t i o n ( k ) { v a r   l = k . n o d e N a m e . t o L o w e r C a s e ( ) , j = c . a t t r ( k , " 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 ( l ) ? ! k . d i s a b l e d : " a " = = l | | " a r e a " = = l ? k . h r e f | | ! i s N a N ( j ) : ! i s N a N ( j ) ) & & ! c ( k ) [ " a r e a " = = l ? " 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 ( k ) { v a r   j = c . a t t r ( k , " t a b i n d e x " ) ; r e t u r n ( i s N a N ( j ) | | j > = 0 ) & & c ( k ) . i s ( " : f o c u s a b l e " ) } } ) ; f u n c t i o n   g ( m , n , o , l ) { f u n c t i o n   k ( q ) { v a r   p = c [ m ] [ n ] [ q ] | | [ ] ; r e t u r n ( t y p e o f   p = = " s t r i n g " ? p . s p l i t ( / , ? \ s + / ) : p ) } v a r   j = k ( " g e t t e r " ) ; i f ( l . l e n g t h = = 1 & & t y p e o f   l [ 0 ] = = " s t r i n g " ) { j = j . c o n c a t ( k ( " g e t t e r S e t t e r " ) ) } r e t u r n ( c . i n A r r a y ( o , j ) ! = - 1 ) } c . w i d g e t = f u n c t i o n ( k , j ) { v a r   l = k . s p l i t ( " . " ) [ 0 ] ; k = k . s p l i t ( " . " ) [ 1 ] ; c . f n [ k ] = f u n c t i o n ( p ) { v a r   n = ( t y p e o f   p = = " s t r i n g " ) , o = A r r a y . p r o t o t y p e . s l i c e . c a l l ( a r g u m e n t s , 1 ) ; i f ( n & & p . s u b s t r i n g ( 0 , 1 ) = = " _ " ) { r e t u r n   t h i s } i f ( n & & g ( l , k , p , o ) ) { v a r   m = c . d a t a ( t h i s [ 0 ] , k ) ; r e t u r n ( m ? m [ p ] . a p p l y ( m , o ) : u n d e f i n e d ) } r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { v a r   q = c . d a t a ( t h i s , k ) ; ( ! q & & ! n & & c . d a t a ( t h i s , k , n e w   c [ l ] [ k ] ( t h i s , p ) ) . _ i n i t ( ) ) ; ( q & & n & & c . i s F u n c t i o n ( q [ p ] ) & & q [ p ] . a p p l y ( q , o ) ) } ) } ; c [ l ] = c [ l ] | | { } ; c [ l ] [ k ] = f u n c t i o n ( o , n ) { v a r   m = t h i s ; t h i s . n a m e s p a c e = l ; t h i s . w i d g e t N a m e = k ; t h i s . w i d g e t E v e n t P r e f i x = c [ l ] [ k ] . e v e n t P r e f i x | | k ; t h i s . w i d g e t B a s e C l a s s = l + " - " + k ; t h i s . o p t i o n s = c . e x t e n d ( { } , c . w i d g e t . d e f a u l t s , c [ l ] [ k ] . d e f a u l t s , c . m e t a d a t a & & c . m e t a d a t a . g e t ( o ) [ k ] , n ) ; t h i s . e l e m e n t = c ( o ) . b i n d ( " s e t D a t a . " + k , f u n c t i o n ( q , p , r ) { i f ( q . t a r g e t = = o ) { r e t u r n   m . _ s e t D a t a ( p , r ) } } ) . b i n d ( " g e t D a t a . " + k , f u n c t i o n ( q , p ) { i f ( q . t a r g e t = = o ) { r e t u r n   m . _ g e t D a t a ( p ) } } ) . b i n d ( " r e m o v e " , f u n c t i o n ( ) { r e t u r n   m . d e s t r o y ( ) } ) } ; c [ l ] [ k ] . p r o t o t y p e = c . e x t e n d ( { } , c . w i d g e t . p r o t o t y p e , j ) ; c [ l ] [ k ] . g e t t e r S e t t e r = " o p t i o n " } ; c . w i d g e t . p r o t o t y p e = { _ i n i t : f u n c t i o n ( ) { } , d e s t r o y : f u n c t i o n ( ) { t h i s . e l e m e n t . r e m o v e D a t a ( t h i s . w i d g e t N a m e ) . r e m o v e C l a s s ( t h i s . w i d g e t B a s e C l a s s + " - d i s a b l e d   " + t h i s . n a m e s p a c e + " - s t a t e - d i s a b l e d " ) . r e m o v e A t t r ( " a r i a - d i s a b l e d " ) } , o p t i o n : f u n c t i o n ( l , m ) { v a r   k = l , j = t h i s ; i f ( t y p e o f   l = = " s t r i n g " ) { i f ( m = = = u n d e f i n e d ) { r e t u r n   t h i s . _ g e t D a t a ( l ) } k = { } ; k [ l ] = m } c . e a c h ( k , f u n c t i o n ( n , o ) { j . _ s e t D a t a ( n , o ) } ) } , _ g e t D a t a : f u n c t i o n ( j ) { r e t u r n   t h i s . o p t i o n s [ j ] } , _ s e t D a t a : f u n c t i o n ( j , k ) { t h i s . o p t i o n s [ j ] = k ; i f ( j = = " d i s a b l e d " ) { t h i s . e l e m e n t [ k ? " a d d C l a s s " : " r e m o v e C l a s s " ] ( t h i s . w i d g e t B a s e C l a s s + " - d i s a b l e d   " + t h i s . n a m e s p a c e + " - s t a t e - d i s a b l e d " ) . a t t r ( " a r i a - d i s a b l e d " , k ) } } , e n a b l e : f u n c t i o n ( ) { t h i s . _ s e t D a t a ( " d i s a b l e d " , f a l s e ) } , d i s a b l e : f u n c t i o n ( ) { t h i s . _ s e t D a t a ( " d i s a b l e d " , t r u e ) } , _ t r i g g e r : f u n c t i o n ( l , m , n ) { v a r   p = t h i s . o p t i o n s [ l ] , j = ( l = = t h i s . w i d g e t E v e n t P r e f i x ? l : t h i s . w i d g e t E v e n t P r e f i x + l ) ; m = c . E v e n t ( m ) ; m . t y p e = j ; i f ( m . o r i g i n a l E v e n t ) { f o r ( v a r   k = c . e v e n t . p r o p s . l e n g t h , o ; k ; ) { o = c . e v e n t . p r o p s [ - - k ] ; m [ o ] = m . o r i g i n a l E v e n t [ o ] } } t h i s . e l e m e n t . t r i g g e r ( m , n ) ; r e t u r n   ! ( c . i s F u n c t i o n ( p ) & & p . c a l l ( t h i s . e l e m e n t [ 0 ] , m , n ) = = = f a l s e | | m . i s D e f a u l t P r e v e n t e d ( ) ) } } ; c . w i d g e t . d e f a u l t s = { d i s a b l e d : f a l s e } ; c . u i . m o u s e = { _ m o u s e I n i t : f u n c t i o n ( ) { v a r   j = t h i s ; t h i s . e l e m e n t . b i n d ( " m o u s e d o w n . " + t h i s . w i d g e t N a m e , f u n c t i o n ( k ) { r e t u r n   j . _ m o u s e D o w n ( k ) } ) . b i n d ( " c l i c k . " + t h i s . w i d g e t N a m e , f u n c t i o n ( k ) { i f ( j . _ p r e v e n t C l i c k E v e n t ) { j . _ p r e v e n t C l i c k E v e n t = f a l s e ; k . s t o p I m m e d i a t e P r o p a g a t i o n ( ) ; r e t u r n   f a l s e } } ) ; i f ( c . b r o w s e r . m s i e ) { t h i s . _ m o u s e U n s e l e c t a b l e = t h i s . e l e m e n t . a t t r ( " u n s e l e c t a b l e " ) ; t h i s . e l e m e n t . a t t r ( " u n s e l e c t a b l e " , " o n " ) } t h i s . s t a r t e d = f a l s e } , _ m o u s e D e s t r o y : f u n c t i o n ( ) { t h i s . e l e m e n t . u n b i n d ( " . " + t h i s . w i d g e t N a m e ) ; ( c . b r o w s e r . m s i e & & t h i s . e l e m e n t . a t t r ( " u n s e l e c t a b l e " , t h i s . _ m o u s e U n s e l e c t a b l e ) ) } , _ m o u s e D o w n : f u n c t i o n ( l ) { l . o r i g i n a l E v e n t = l . o r i g i n a l E v e n t | | { } ; i f ( l . o r i g i n a l E v e n t . m o u s e H a n d l e d ) { r e t u r n } ( t h i s . _ m o u s e S t a r t e d & & t h i s . _ m o u s e U p ( l ) ) ; t h i s . _ m o u s e D o w n E v e n t = l ; v a r   k = t h i s , m = ( l . w h i c h = = 1 ) , j = ( t y p e o f   t h i s . o p t i o n s . c a n c e l = = " s t r i n g " ? c ( l . t a r g e t ) . p a r e n t s ( ) . a d d ( l . t a r g e t ) . f i l t e r ( t h i s . o p t i o n s . c a n c e l ) . l e n g t h : f a l s e ) ; i f ( ! m | | j | | ! t h i s . _ m o u s e C a p t u r e ( l ) ) { r e t u r n   t r u e } t h i s . m o u s e D e l a y M e t = ! t h i s . o p t i o n s . d e l a y ; i f ( ! t h i s . m o u s e D e l a y M e t ) { t h i s . _ m o u s e D e l a y T i m e r = s e t T i m e o u t ( f u n c t i o n ( ) { k . m o u s e D e l a y M e t = t r u e } , t h i s . o p t i o n s . d e l a y ) } i f ( t h i s . _ m o u s e D i s t a n c e M e t ( l ) & & t h i s . _ m o u s e D e l a y M e t ( l ) ) { t h i s . _ m o u s e S t a r t e d = ( t h i s . _ m o u s e S t a r t ( l ) ! = = f a l s e ) ; i f ( ! t h i s . _ m o u s e S t a r t e d ) { l . p r e v e n t D e f a u l t ( ) ; r e t u r n   t r u e } } t h i s . _ m o u s e M o v e D e l e g a t e = f u n c t i o n ( n ) { r e t u r n   k . _ m o u s e M o v e ( n ) } ; t h i s . _ m o u s e U p D e l e g a t e = f u n c t i o n ( n ) { r e t u r n   k . _ m o u s e U p ( n ) } ; c ( d o c u m e n t ) . b i n d ( " m o u s e m o v e . " + t h i s . w i d g e t N a m e , t h i s . _ m o u s e M o v e D e l e g a t e ) . b i n d ( " m o u s e u p . " + t h i s . w i d g e t N a m e , t h i s . _ m o u s e U p D e l e g a t e ) ; ( c . b r o w s e r . s a f a r i | | l . p r e v e n t D e f a u l t ( ) ) ; l . o r i g i n a l E v e n t . m o u s e H a n d l e d = t r u e ; r e t u r n   t r u e } , _ m o u s e M o v e : f u n c t i o n ( j ) { i f ( c . b r o w s e r . m s i e & & ! j . b u t t o n ) { r e t u r n   t h i s . _ m o u s e U p ( j ) } i f ( t h i s . _ m o u s e S t a r t e d ) { t h i s . _ m o u s e D r a g ( j ) ; r e t u r n   j . p r e v e n t D e f a u l t ( ) } i f ( t h i s . _ m o u s e D i s t a n c e M e t ( j ) & & t h i s . _ m o u s e D e l a y M e t ( j ) ) { t h i s . _ m o u s e S t a r t e d = ( t h i s . _ m o u s e S t a r t ( t h i s . _ m o u s e D o w n E v e n t , j ) ! = = f a l s e ) ; ( t h i s . _ m o u s e S t a r t e d ? t h i s . _ m o u s e D r a g ( j ) : t h i s . _ m o u s e U p ( j ) ) } r e t u r n   ! t h i s . _ m o u s e S t a r t e d } , _ m o u s e U p : f u n c t i o n ( j ) { c ( d o c u m e n t ) . u n b i n d ( " m o u s e m o v e . " + t h i s . w i d g e t N a m e , t h i s . _ m o u s e M o v e D e l e g a t e ) . u n b i n d ( " m o u s e u p . " + t h i s . w i d g e t N a m e , t h i s . _ m o u s e U p D e l e g a t e ) ; i f ( t h i s . _ m o u s e S t a r t e d ) { t h i s . _ m o u s e S t a r t e d = f a l s e ; t h i s . _ p r e v e n t C l i c k E v e n t = ( j . t a r g e t = = t h i s . _ m o u s e D o w n E v e n t . t a r g e t ) ; t h i s . _ m o u s e S t o p ( j ) } r e t u r n   f a l s e } , _ m o u s e D i s t a n c e M e t : f u n c t i o n ( j ) { r e t u r n ( M a t h . m a x ( M a t h . a b s ( t h i s . _ m o u s e D o w n E v e n t . p a g e X - j . p a g e X ) , M a t h . a b s ( t h i s . _ m o u s e D o w n E v e n t . p a g e Y - j . p a g e Y ) ) > = t h i s . o p t i o n s . d i s t a n c e ) } , _ m o u s e D e l a y M e t : f u n c t i o n ( j ) { r e t u r n   t h i s . m o u s e D e l a y M e t } , _ m o u s e S t a r t : f u n c t i o n ( j ) { } , _ m o u s e D r a g : f u n c t i o n ( j ) { } , _ m o u s e S t o p : f u n c t i o n ( j ) { } , _ m o u s e C a p t u r e : f u n c t i o n ( j ) { r e t u r n   t r u e } } ; c . u i . m o u s e . d e f a u l t s = { c a n c e l : n u l l , d i s t a n c e : 1 , d e l a y : 0 } } ) ( j Q u e r y ) ; ; / *  
   *   j Q u e r y   U I   R e s i z a b l e   1 . 7 . 1  
   *  
   *   C o p y r i g h t   ( c )   2 0 0 9   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 / R e s i z a b l e s  
   *  
   *   D e p e n d s :  
   * 	 u i . c o r e . j s  
   * /  
 ( f u n c t i o n ( c ) { c . w i d g e t ( " u i . r e s i z a b l e " , c . e x t e n d ( { } , c . u i . m o u s e , { _ i n i t : f u n c t i o n ( ) { v a r   e = t h i s , j = t h i s . o p t i o n s ; t h i s . e l e m e n t . a d d C l a s s ( " u i - r e s i z a b l e " ) ; c . e x t e n d ( t h i s , { _ a s p e c t R a t i o : ! ! ( j . a s p e c t R a t i o ) , a s p e c t R a t i o : j . a s p e c t R a t i o , o r i g i n a l E l e m e n t : t h i s . e l e m e n t , _ p r o p o r t i o n a l l y R e s i z e E l e m e n t s : [ ] , _ h e l p e r : j . h e l p e r | | j . g h o s t | | j . a n i m a t e ? j . h e l p e r | | " u i - r e s i z a b l e - h e l p e r " : n u l l } ) ; i f ( t h i s . e l e m e n t [ 0 ] . n o d e N a m e . m a t c h ( / c a n v a s | t e x t a r e a | i n p u t | s e l e c t | b u t t o n | i m g / i ) ) { i f ( / r e l a t i v e / . t e s t ( t h i s . e l e m e n t . c s s ( " p o s i t i o n " ) ) & & c . b r o w s e r . o p e r a ) { t h i s . e l e m e n t . c s s ( { p o s i t i o n : " r e l a t i v e " , t o p : " a u t o " , l e f t : " a u t o " } ) } t h i s . e l e m e n t . w r a p ( c ( ' < d i v   c l a s s = " u i - w r a p p e r "   s t y l e = " o v e r f l o w :   h i d d e n ; " > < / d i v > ' ) . c s s ( { p o s i t i o n : t h i s . e l e m e n t . c s s ( " p o s i t i o n " ) , w i d t h : t h i s . e l e m e n t . o u t e r W i d t h ( ) , h e i g h t : t h i s . e l e m e n t . o u t e r H e i g h t ( ) , t o p : t h i s . e l e m e n t . c s s ( " t o p " ) , l e f t : t h i s . e l e m e n t . c s s ( " l e f t " ) } ) ) ; t h i s . e l e m e n t = t h i s . e l e m e n t . p a r e n t ( ) . d a t a ( " r e s i z a b l e " , t h i s . e l e m e n t . d a t a ( " r e s i z a b l e " ) ) ; t h i s . e l e m e n t I s W r a p p e r = t r u e ; t h i s . e l e m e n t . c s s ( { m a r g i n L e f t : t h i s . o r i g i n a l E l e m e n t . c s s ( " m a r g i n L e f t " ) , m a r g i n T o p : t h i s . o r i g i n a l E l e m e n t . c s s ( " m a r g i n T o p " ) , m a r g i n R i g h t : t h i s . o r i g i n a l E l e m e n t . c s s ( " m a r g i n R i g h t " ) , m a r g i n B o t t o m : t h i s . o r i g i n a l E l e m e n t . c s s ( " m a r g i n B o t t o m " ) } ) ; t h i s . o r i g i n a l E l e m e n t . c s s ( { m a r g i n L e f t : 0 , m a r g i n T o p : 0 , m a r g i n R i g h t : 0 , m a r g i n B o t t o m : 0 } ) ; t h i s . o r i g i n a l R e s i z e S t y l e = t h i s . o r i g i n a l E l e m e n t . c s s ( " r e s i z e " ) ; t h i s . o r i g i n a l E l e m e n t . c s s ( " r e s i z e " , " n o n e " ) ; t h i s . _ p r o p o r t i o n a l l y R e s i z e E l e m e n t s . p u s h ( t h i s . o r i g i n a l E l e m e n t . c s s ( { p o s i t i o n : " s t a t i c " , z o o m : 1 , d i s p l a y : " b l o c k " } ) ) ; t h i s . o r i g i n a l E l e m e n t . c s s ( { m a r g i n : t h i s . o r i g i n a l E l e m e n t . c s s ( " m a r g i n " ) } ) ; t h i s . _ p r o p o r t i o n a l l y R e s i z e ( ) } t h i s . h a n d l e s = j . h a n d l e s | | ( ! c ( " . u i - r e s i z a b l e - h a n d l e " , t h i s . e l e m e n t ) . l e n g t h ? " e , s , s e " : { n : " . u i - r e s i z a b l e - n " , e : " . u i - r e s i z a b l e - e " , s : " . u i - r e s i z a b l e - s " , w : " . u i - r e s i z a b l e - w " , s e : " . u i - r e s i z a b l e - s e " , s w : " . u i - r e s i z a b l e - s w " , n e : " . u i - r e s i z a b l e - n e " , n w : " . u i - r e s i z a b l e - n w " } ) ; i f ( t h i s . h a n d l e s . c o n s t r u c t o r = = S t r i n g ) { i f ( t h i s . h a n d l e s = = " a l l " ) { t h i s . h a n d l e s = " n , e , s , w , s e , s w , n e , n w " } v a r   k = t h i s . h a n d l e s . s p l i t ( " , " ) ; t h i s . h a n d l e s = { } ; f o r ( v a r   f = 0 ; f < k . l e n g t h ; f + + ) { v a r   h = c . t r i m ( k [ f ] ) , d = " u i - r e s i z a b l e - " + h ; v a r   g = c ( ' < d i v   c l a s s = " u i - r e s i z a b l e - h a n d l e   ' + d + ' " > < / d i v > ' ) ; i f ( / s w | s e | n e | n w / . t e s t ( h ) ) { g . c s s ( { z I n d e x : + + j . z I n d e x } ) } i f ( " s e " = = h ) { g . a d d C l a s s ( " u i - i c o n   u i - i c o n - g r i p s m a l l - d i a g o n a l - s e " ) } t h i s . h a n d l e s [ h ] = " . u i - r e s i z a b l e - " + h ; t h i s . e l e m e n t . a p p e n d ( g ) } } t h i s . _ r e n d e r A x i s = f u n c t i o n ( p ) { p = p | | t h i s . e l e m e n t ; f o r ( v a r   m   i n   t h i s . h a n d l e s ) { i f ( t h i s . h a n d l e s [ m ] . c o n s t r u c t o r = = S t r i n g ) { t h i s . h a n d l e s [ m ] = c ( t h i s . h a n d l e s [ m ] , t h i s . e l e m e n t ) . s h o w ( ) } i f ( t h i s . e l e m e n t I s W r a p p e r & & t h i s . o r i g i n a l E l e m e n t [ 0 ] . n o d e N a m e . m a t c h ( / t e x t a r e a | i n p u t | s e l e c t | b u t t o n / i ) ) { v a r   n = c ( t h i s . h a n d l e s [ m ] , t h i s . e l e m e n t ) , o = 0 ; o = / s w | n e | n w | s e | n | s / . t e s t ( m ) ? n . o u t e r H e i g h t ( ) : n . o u t e r W i d t h ( ) ; v a r   l = [ " p a d d i n g " , / n e | n w | n / . t e s t ( m ) ? " T o p " : / s e | s w | s / . t e s t ( m ) ? " B o t t o m " : / ^ e $ / . t e s t ( m ) ? " R i g h t " : " L e f t " ] . j o i n ( " " ) ; p . c s s ( l , o ) ; t h i s . _ p r o p o r t i o n a l l y R e s i z e ( ) } i f ( ! c ( t h i s . h a n d l e s [ m ] ) . l e n g t h ) { c o n t i n u e } } } ; t h i s . _ r e n d e r A x i s ( t h i s . e l e m e n t ) ; t h i s . _ h a n d l e s = c ( " . u i - r e s i z a b l e - h a n d l e " , t h i s . e l e m e n t ) . d i s a b l e S e l e c t i o n ( ) ; t h i s . _ h a n d l e s . m o u s e o v e r ( f u n c t i o n ( ) { i f ( ! e . r e s i z i n g ) { i f ( t h i s . c l a s s N a m e ) { v a r   i = t h i s . c l a s s N a m e . m a t c h ( / u i - r e s i z a b l e - ( s e | s w | n e | n w | n | e | s | w ) / i ) } e . a x i s = i & & i [ 1 ] ? i [ 1 ] : " s e " } } ) ; i f ( j . a u t o H i d e ) { t h i s . _ h a n d l e s . h i d e ( ) ; c ( t h i s . e l e m e n t ) . a d d C l a s s ( " u i - r e s i z a b l e - a u t o h i d e " ) . h o v e r ( f u n c t i o n ( ) { c ( t h i s ) . r e m o v e C l a s s ( " u i - r e s i z a b l e - a u t o h i d e " ) ; e . _ h a n d l e s . s h o w ( ) } , f u n c t i o n ( ) { i f ( ! e . r e s i z i n g ) { c ( t h i s ) . a d d C l a s s ( " u i - r e s i z a b l e - a u t o h i d e " ) ; e . _ h a n d l e s . h i d e ( ) } } ) } t h i s . _ m o u s e I n i t ( ) } , d e s t r o y : f u n c t i o n ( ) { t h i s . _ m o u s e D e s t r o y ( ) ; v a r   d = f u n c t i o n ( f ) { c ( f ) . r e m o v e C l a s s ( " u i - r e s i z a b l e   u i - r e s i z a b l e - d i s a b l e d   u i - r e s i z a b l e - r e s i z i n g " ) . r e m o v e D a t a ( " r e s i z a b l e " ) . u n b i n d ( " . r e s i z a b l e " ) . f i n d ( " . u i - r e s i z a b l e - h a n d l e " ) . r e m o v e ( ) } ; i f ( t h i s . e l e m e n t I s W r a p p e r ) { d ( t h i s . e l e m e n t ) ; v a r   e = t h i s . e l e m e n t ; e . p a r e n t ( ) . a p p e n d ( t h i s . o r i g i n a l E l e m e n t . c s s ( { p o s i t i o n : e . c s s ( " p o s i t i o n " ) , w i d t h : e . o u t e r W i d t h ( ) , h e i g h t : e . o u t e r H e i g h t ( ) , t o p : e . c s s ( " t o p " ) , l e f t : e . c s s ( " l e f t " ) } ) ) . e n d ( ) . r e m o v e ( ) } t h i s . o r i g i n a l E l e m e n t . c s s ( " r e s i z e " , t h i s . o r i g i n a l R e s i z e S t y l e ) ; d ( t h i s . o r i g i n a l E l e m e n t ) } , _ m o u s e C a p t u r e : f u n c t i o n ( e ) { v a r   f = f a l s e ; f o r ( v a r   d   i n   t h i s . h a n d l e s ) { i f ( c ( t h i s . h a n d l e s [ d ] ) [ 0 ] = = e . t a r g e t ) { f = t r u e } } r e t u r n   t h i s . o p t i o n s . d i s a b l e d | | ! ! f } , _ m o u s e S t a r t : f u n c t i o n ( f ) { v a r   i = t h i s . o p t i o n s , e = t h i s . e l e m e n t . p o s i t i o n ( ) , d = t h i s . e l e m e n t ; t h i s . r e s i z i n g = t r u e ; t h i s . d o c u m e n t S c r o l l = { t o p : c ( d o c u m e n t ) . s c r o l l T o p ( ) , l e f t : c ( d o c u m e n t ) . s c r o l l L e f t ( ) } ; i f ( d . i s ( " . u i - d r a g g a b l e " ) | | ( / a b s o l u t e / ) . t e s t ( d . c s s ( " p o s i t i o n " ) ) ) { d . c s s ( { p o s i t i o n : " a b s o l u t e " , t o p : e . t o p , l e f t : e . l e f t } ) } i f ( c . b r o w s e r . o p e r a & & ( / r e l a t i v e / ) . t e s t ( d . c s s ( " p o s i t i o n " ) ) ) { d . c s s ( { p o s i t i o n : " r e l a t i v e " , t o p : " a u t o " , l e f t : " a u t o " } ) } t h i s . _ r e n d e r P r o x y ( ) ; v a r   j = b ( t h i s . h e l p e r . c s s ( " l e f t " ) ) , g = b ( t h i s . h e l p e r . c s s ( " t o p " ) ) ; i f ( i . c o n t a i n m e n t ) { j + = c ( i . c o n t a i n m e n t ) . s c r o l l L e f t ( ) | | 0 ; g + = c ( i . c o n t a i n m e n t ) . s c r o l l T o p ( ) | | 0 } t h i s . o f f s e t = t h i s . h e l p e r . o f f s e t ( ) ; t h i s . p o s i t i o n = { l e f t : j , t o p : g } ; t h i s . s i z e = t h i s . _ h e l p e r ? { w i d t h : d . o u t e r W i d t h ( ) , h e i g h t : d . o u t e r H e i g h t ( ) } : { w i d t h : d . w i d t h ( ) , h e i g h t : d . h e i g h t ( ) } ; t h i s . o r i g i n a l S i z e = t h i s . _ h e l p e r ? { w i d t h : d . o u t e r W i d t h ( ) , h e i g h t : d . o u t e r H e i g h t ( ) } : { w i d t h : d . w i d t h ( ) , h e i g h t : d . h e i g h t ( ) } ; t h i s . o r i g i n a l P o s i t i o n = { l e f t : j , t o p : g } ; t h i s . s i z e D i f f = { w i d t h : d . o u t e r W i d t h ( ) - d . w i d t h ( ) , h e i g h t : d . o u t e r H e i g h t ( ) - d . h e i g h t ( ) } ; t h i s . o r i g i n a l M o u s e P o s i t i o n = { l e f t : f . p a g e X , t o p : f . p a g e Y } ; t h i s . a s p e c t R a t i o = ( t y p e o f   i . a s p e c t R a t i o = = " n u m b e r " ) ? i . a s p e c t R a t i o : ( ( t h i s . o r i g i n a l S i z e . w i d t h / t h i s . o r i g i n a l S i z e . h e i g h t ) | | 1 ) ; v a r   h = c ( " . u i - r e s i z a b l e - " + t h i s . a x i s ) . c s s ( " c u r s o r " ) ; c ( " b o d y " ) . c s s ( " c u r s o r " , h = = " a u t o " ? t h i s . a x i s + " - r e s i z e " : h ) ; d . a d d C l a s s ( " u i - r e s i z a b l e - r e s i z i n g " ) ; t h i s . _ p r o p a g a t e ( " s t a r t " , f ) ; r e t u r n   t r u e } , _ m o u s e D r a g : f u n c t i o n ( d ) { v a r   g = t h i s . h e l p e r , f = t h i s . o p t i o n s , l = { } , p = t h i s , i = t h i s . o r i g i n a l M o u s e P o s i t i o n , m = t h i s . a x i s ; v a r   q = ( d . p a g e X - i . l e f t ) | | 0 , n = ( d . p a g e Y - i . t o p ) | | 0 ; v a r   h = t h i s . _ c h a n g e [ m ] ; i f ( ! h ) { r e t u r n   f a l s e } v a r   k = h . a p p l y ( t h i s , [ d , q , n ] ) , j = c . b r o w s e r . m s i e & & c . b r o w s e r . v e r s i o n < 7 , e = t h i s . s i z e D i f f ; i f ( t h i s . _ a s p e c t R a t i o | | d . s h i f t K e y ) { k = t h i s . _ u p d a t e R a t i o ( k , d ) } k = t h i s . _ r e s p e c t S i z e ( k , d ) ; t h i s . _ p r o p a g a t e ( " r e s i z e " , d ) ; g . c s s ( { t o p : t h i s . p o s i t i o n . t o p + " p x " , l e f t : t h i s . p o s i t i o n . l e f t + " p x " , w i d t h : t h i s . s i z e . w i d t h + " p x " , h e i g h t : t h i s . s i z e . h e i g h t + " p x " } ) ; i f ( ! t h i s . _ h e l p e r & & t h i s . _ p r o p o r t i o n a l l y R e s i z e E l e m e n t s . l e n g t h ) { t h i s . _ p r o p o r t i o n a l l y R e s i z e ( ) } t h i s . _ u p d a t e C a c h e ( k ) ; t h i s . _ t r i g g e r ( " r e s i z e " , d , t h i s . u i ( ) ) ; r e t u r n   f a l s e } , _ m o u s e S t o p : f u n c t i o n ( g ) { t h i s . r e s i z i n g = f a l s e ; v a r   h = t h i s . o p t i o n s , l = t h i s ; i f ( t h i s . _ h e l p e r ) { v a r   f = t h i s . _ p r o p o r t i o n a l l y R e s i z e E l e m e n t s , d = f . l e n g t h & & ( / t e x t a r e a / i ) . t e s t ( f [ 0 ] . n o d e N a m e ) , e = d & & c . u i . h a s S c r o l l ( f [ 0 ] , " l e f t " ) ? 0 : l . s i z e D i f f . h e i g h t , j = d ? 0 : l . s i z e D i f f . w i d t h ; v a r   m = { w i d t h : ( l . s i z e . w i d t h - j ) , h e i g h t : ( l . s i z e . h e i g h t - e ) } , i = ( p a r s e I n t ( l . e l e m e n t . c s s ( " l e f t " ) , 1 0 ) + ( l . p o s i t i o n . l e f t - l . o r i g i n a l P o s i t i o n . l e f t ) ) | | n u l l , k = ( p a r s e I n t ( l . e l e m e n t . c s s ( " t o p " ) , 1 0 ) + ( l . p o s i t i o n . t o p - l . o r i g i n a l P o s i t i o n . t o p ) ) | | n u l l ; i f ( ! h . a n i m a t e ) { t h i s . e l e m e n t . c s s ( c . e x t e n d ( m , { t o p : k , l e f t : i } ) ) } l . h e l p e r . h e i g h t ( l . s i z e . h e i g h t ) ; l . h e l p e r . w i d t h ( l . s i z e . w i d t h ) ; i f ( t h i s . _ h e l p e r & & ! h . a n i m a t e ) { t h i s . _ p r o p o r t i o n a l l y R e s i z e ( ) } } c ( " b o d y " ) . c s s ( " c u r s o r " , " a u t o " ) ; t h i s . e l e m e n t . r e m o v e C l a s s ( " u i - r e s i z a b l e - r e s i z i n g " ) ; t h i s . _ p r o p a g a t e ( " s t o p " , g ) ; i f ( t h i s . _ h e l p e r ) { t h i s . h e l p e r . r e m o v e ( ) } r e t u r n   f a l s e } , _ u p d a t e C a c h e : f u n c t i o n ( d ) { v a r   e = t h i s . o p t i o n s ; t h i s . o f f s e t = t h i s . h e l p e r . o f f s e t ( ) ; i f ( a ( d . l e f t ) ) { t h i s . p o s i t i o n . l e f t = d . l e f t } i f ( a ( d . t o p ) ) { t h i s . p o s i t i o n . t o p = d . t o p } i f ( a ( d . h e i g h t ) ) { t h i s . s i z e . h e i g h t = d . h e i g h t } i f ( a ( d . w i d t h ) ) { t h i s . s i z e . w i d t h = d . w i d t h } } , _ u p d a t e R a t i o : f u n c t i o n ( g , f ) { v a r   h = t h i s . o p t i o n s , i = t h i s . p o s i t i o n , e = t h i s . s i z e , d = t h i s . a x i s ; i f ( g . h e i g h t ) { g . w i d t h = ( e . h e i g h t * t h i s . a s p e c t R a t i o ) } e l s e { i f ( g . w i d t h ) { g . h e i g h t = ( e . w i d t h / t h i s . a s p e c t R a t i o ) } } i f ( d = = " s w " ) { g . l e f t = i . l e f t + ( e . w i d t h - g . w i d t h ) ; g . t o p = n u l l } i f ( d = = " n w " ) { g . t o p = i . t o p + ( e . h e i g h t - g . h e i g h t ) ; g . l e f t = i . l e f t + ( e . w i d t h - g . w i d t h ) } r e t u r n   g } , _ r e s p e c t S i z e : f u n c t i o n ( k , f ) { v a r   i = t h i s . h e l p e r , h = t h i s . o p t i o n s , q = t h i s . _ a s p e c t R a t i o | | f . s h i f t K e y , p = t h i s . a x i s , s = a ( k . w i d t h ) & & h . m a x W i d t h & & ( h . m a x W i d t h < k . w i d t h ) , l = a ( k . h e i g h t ) & & h . m a x H e i g h t & & ( h . m a x H e i g h t < k . h e i g h t ) , g = a ( k . w i d t h ) & & h . m i n W i d t h & & ( h . m i n W i d t h > k . w i d t h ) , r = a ( k . h e i g h t ) & & h . m i n H e i g h t & & ( h . m i n H e i g h t > k . h e i g h t ) ; i f ( g ) { k . w i d t h = h . m i n W i d t h } i f ( r ) { k . h e i g h t = h . m i n H e i g h t } i f ( s ) { k . w i d t h = h . m a x W i d t h } i f ( l ) { k . h e i g h t = h . m a x H e i g h t } v a r   e = t h i s . o r i g i n a l P o s i t i o n . l e f t + t h i s . o r i g i n a l S i z e . w i d t h , n = t h i s . p o s i t i o n . t o p + t h i s . s i z e . h e i g h t ; v a r   j = / s w | n w | w / . t e s t ( p ) , d = / n w | n e | n / . t e s t ( p ) ; i f ( g & & j ) { k . l e f t = e - h . m i n W i d t h } i f ( s & & j ) { k . l e f t = e - h . m a x W i d t h } i f ( r & & d ) { k . t o p = n - h . m i n H e i g h t } i f ( l & & d ) { k . t o p = n - h . m a x H e i g h t } v a r   m = ! k . w i d t h & & ! k . h e i g h t ; i f ( m & & ! k . l e f t & & k . t o p ) { k . t o p = n u l l } e l s e { i f ( m & & ! k . t o p & & k . l e f t ) { k . l e f t = n u l l } } r e t u r n   k } , _ p r o p o r t i o n a l l y R e s i z e : f u n c t i o n ( ) { v a r   j = t h i s . o p t i o n s ; i f ( ! t h i s . _ p r o p o r t i o n a l l y R e s i z e E l e m e n t s . l e n g t h ) { r e t u r n } v a r   f = t h i s . h e l p e r | | t h i s . e l e m e n t ; f o r ( v a r   e = 0 ; e < t h i s . _ p r o p o r t i o n a l l y R e s i z e E l e m e n t s . l e n g t h ; e + + ) { v a r   g = t h i s . _ p r o p o r t i o n a l l y R e s i z e E l e m e n t s [ e ] ; i f ( ! t h i s . b o r d e r D i f ) { v a r   d = [ g . c s s ( " b o r d e r T o p W i d t h " ) , g . c s s ( " b o r d e r R i g h t W i d t h " ) , g . c s s ( " b o r d e r B o t t o m W i d t h " ) , g . c s s ( " b o r d e r L e f t W i d t h " ) ] , h = [ g . c s s ( " p a d d i n g T o p " ) , g . c s s ( " p a d d i n g R i g h t " ) , g . c s s ( " p a d d i n g B o t t o m " ) , g . c s s ( " p a d d i n g L e f t " ) ] ; t h i s . b o r d e r D i f = c . m a p ( d , f u n c t i o n ( k , m ) { v a r   l = p a r s e I n t ( k , 1 0 ) | | 0 , n = p a r s e I n t ( h [ m ] , 1 0 ) | | 0 ; r e t u r n   l + n } ) } i f ( c . b r o w s e r . m s i e & & ! ( ! ( c ( f ) . i s ( " : h i d d e n " ) | | c ( f ) . p a r e n t s ( " : h i d d e n " ) . l e n g t h ) ) ) { c o n t i n u e } g . c s s ( { h e i g h t : ( f . h e i g h t ( ) - t h i s . b o r d e r D i f [ 0 ] - t h i s . b o r d e r D i f [ 2 ] ) | | 0 , w i d t h : ( f . w i d t h ( ) - t h i s . b o r d e r D i f [ 1 ] - t h i s . b o r d e r D i f [ 3 ] ) | | 0 } ) } } , _ r e n d e r P r o x y : f u n c t i o n ( ) { v a r   e = t h i s . e l e m e n t , h = t h i s . o p t i o n s ; t h i s . e l e m e n t O f f s e t = e . o f f s e t ( ) ; i f ( t h i s . _ h e l p e r ) { t h i s . h e l p e r = t h i s . h e l p e r | | c ( ' < d i v   s t y l e = " o v e r f l o w : h i d d e n ; " > < / d i v > ' ) ; v a r   d = c . b r o w s e r . m s i e & & c . b r o w s e r . v e r s i o n < 7 , f = ( d ? 1 : 0 ) , g = ( d ? 2 : - 1 ) ; t h i s . h e l p e r . a d d C l a s s ( t h i s . _ h e l p e r ) . c s s ( { w i d t h : t h i s . e l e m e n t . o u t e r W i d t h ( ) + g , h e i g h t : t h i s . e l e m e n t . o u t e r H e i g h t ( ) + g , p o s i t i o n : " a b s o l u t e " , l e f t : t h i s . e l e m e n t O f f s e t . l e f t - f + " p x " , t o p : t h i s . e l e m e n t O f f s e t . t o p - f + " p x " , z I n d e x : + + h . z I n d e x } ) ; t h i s . h e l p e r . a p p e n d T o ( " b o d y " ) . d i s a b l e S e l e c t i o n ( ) } e l s e { t h i s . h e l p e r = t h i s . e l e m e n t } } , _ c h a n g e : { e : f u n c t i o n ( f , e , d ) { r e t u r n { w i d t h : t h i s . o r i g i n a l S i z e . w i d t h + e } } , w : f u n c t i o n ( g , e , d ) { v a r   i = t h i s . o p t i o n s , f = t h i s . o r i g i n a l S i z e , h = t h i s . o r i g i n a l P o s i t i o n ; r e t u r n { l e f t : h . l e f t + e , w i d t h : f . w i d t h - e } } , n : f u n c t i o n ( g , e , d ) { v a r   i = t h i s . o p t i o n s , f = t h i s . o r i g i n a l S i z e , h = t h i s . o r i g i n a l P o s i t i o n ; r e t u r n { t o p : h . t o p + d , h e i g h t : f . h e i g h t - d } } , s : f u n c t i o n ( f , e , d ) { r e t u r n { h e i g h t : t h i s . o r i g i n a l S i z e . h e i g h t + d } } , s e : f u n c t i o n ( f , e , d ) { r e t u r n   c . e x t e n d ( t h i s . _ c h a n g e . s . a p p l y ( t h i s , a r g u m e n t s ) , t h i s . _ c h a n g e . e . a p p l y ( t h i s , [ f , e , d ] ) ) } , s w : f u n c t i o n ( f , e , d ) { r e t u r n   c . e x t e n d ( t h i s . _ c h a n g e . s . a p p l y ( t h i s , a r g u m e n t s ) , t h i s . _ c h a n g e . w . a p p l y ( t h i s , [ f , e , d ] ) ) } , n e : f u n c t i o n ( f , e , d ) { r e t u r n   c . e x t e n d ( t h i s . _ c h a n g e . n . a p p l y ( t h i s , a r g u m e n t s ) , t h i s . _ c h a n g e . e . a p p l y ( t h i s , [ f , e , d ] ) ) } , n w : f u n c t i o n ( f , e , d ) { r e t u r n   c . e x t e n d ( t h i s . _ c h a n g e . n . a p p l y ( t h i s , a r g u m e n t s ) , t h i s . _ c h a n g e . w . a p p l y ( t h i s , [ f , e , d ] ) ) } } , _ p r o p a g a t e : f u n c t i o n ( e , d ) { c . u i . p l u g i n . c a l l ( t h i s , e , [ d , t h i s . u i ( ) ] ) ; ( e ! = " r e s i z e " & & t h i s . _ t r i g g e r ( e , d , t h i s . u i ( ) ) ) } , p l u g i n s : { } , u i : f u n c t i o n ( ) { r e t u r n { o r i g i n a l E l e m e n t : t h i s . o r i g i n a l E l e m e n t , e l e m e n t : t h i s . e l e m e n t , h e l p e r : t h i s . h e l p e r , p o s i t i o n : t h i s . p o s i t i o n , s i z e : t h i s . s i z e , o r i g i n a l S i z e : t h i s . o r i g i n a l S i z e , o r i g i n a l P o s i t i o n : t h i s . o r i g i n a l P o s i t i o n } } } ) ) ; c . e x t e n d ( c . u i . r e s i z a b l e , { v e r s i o n : " 1 . 7 . 1 " , e v e n t P r e f i x : " r e s i z e " , d e f a u l t s : { a l s o R e s i z e : f a l s e , a n i m a t e : f a l s e , a n i m a t e D u r a t i o n : " s l o w " , a n i m a t e E a s i n g : " s w i n g " , a s p e c t R a t i o : f a l s e , a u t o H i d e : f a l s e , c a n c e l : " : i n p u t , o p t i o n " , c o n t a i n m e n t : f a l s e , d e l a y : 0 , d i s t a n c e : 1 , g h o s t : f a l s e , g r i d : f a l s e , h a n d l e s : " e , s , s e " , h e l p e r : f a l s e , m a x H e i g h t : n u l l , m a x W i d t h : n u l l , m i n H e i g h t : 1 0 , m i n W i d t h : 1 0 , z I n d e x : 1 0 0 0 } } ) ; c . u i . p l u g i n . a d d ( " r e s i z a b l e " , " a l s o R e s i z e " , { s t a r t : f u n c t i o n ( e , f ) { v a r   d = c ( t h i s ) . d a t a ( " r e s i z a b l e " ) , g = d . o p t i o n s ; _ s t o r e = f u n c t i o n ( h ) { c ( h ) . e a c h ( f u n c t i o n ( ) { c ( t h i s ) . d a t a ( " r e s i z a b l e - a l s o r e s i z e " , { w i d t h : p a r s e I n t ( c ( t h i s ) . w i d t h ( ) , 1 0 ) , h e i g h t : p a r s e I n t ( c ( t h i s ) . h e i g h t ( ) , 1 0 ) , l e f t : p a r s e I n t ( c ( t h i s ) . c s s ( " l e f t " ) , 1 0 ) , t o p : p a r s e I n t ( c ( t h i s ) . c s s ( " t o p " ) , 1 0 ) } ) } ) } ; i f ( t y p e o f ( g . a l s o R e s i z e ) = = " o b j e c t " & & ! g . a l s o R e s i z e . p a r e n t N o d e ) { i f ( g . a l s o R e s i z e . l e n g t h ) { g . a l s o R e s i z e = g . a l s o R e s i z e [ 0 ] ; _ s t o r e ( g . a l s o R e s i z e ) } e l s e { c . e a c h ( g . a l s o R e s i z e , f u n c t i o n ( h , i ) { _ s t o r e ( h ) } ) } } e l s e { _ s t o r e ( g . a l s o R e s i z e ) } } , r e s i z e : f u n c t i o n ( f , h ) { v a r   e = c ( t h i s ) . d a t a ( " r e s i z a b l e " ) , i = e . o p t i o n s , g = e . o r i g i n a l S i z e , k = e . o r i g i n a l P o s i t i o n ; v a r   j = { h e i g h t : ( e . s i z e . h e i g h t - g . h e i g h t ) | | 0 , w i d t h : ( e . s i z e . w i d t h - g . w i d t h ) | | 0 , t o p : ( e . p o s i t i o n . t o p - k . t o p ) | | 0 , l e f t : ( e . p o s i t i o n . l e f t - k . l e f t ) | | 0 } , d = f u n c t i o n ( l , m ) { c ( l ) . e a c h ( f u n c t i o n ( ) { v a r   p = c ( t h i s ) , q = c ( t h i s ) . d a t a ( " r e s i z a b l e - a l s o r e s i z e " ) , o = { } , n = m & & m . l e n g t h ? m : [ " w i d t h " , " h e i g h t " , " t o p " , " l e f t " ] ; c . e a c h ( n | | [ " w i d t h " , " h e i g h t " , " t o p " , " l e f t " ] , f u n c t i o n ( r , t ) { v a r   s = ( q [ t ] | | 0 ) + ( j [ t ] | | 0 ) ; i f ( s & & s > = 0 ) { o [ t ] = s | | n u l l } } ) ; i f ( / r e l a t i v e / . t e s t ( p . c s s ( " p o s i t i o n " ) ) & & c . b r o w s e r . o p e r a ) { e . _ r e v e r t T o R e l a t i v e P o s i t i o n = t r u e ; p . c s s ( { p o s i t i o n : " a b s o l u t e " , t o p : " a u t o " , l e f t : " a u t o " } ) } p . c s s ( o ) } ) } ; i f ( t y p e o f ( i . a l s o R e s i z e ) = = " o b j e c t " & & ! i . a l s o R e s i z e . n o d e T y p e ) { c . e a c h ( i . a l s o R e s i z e , f u n c t i o n ( l , m ) { d ( l , m ) } ) } e l s e { d ( i . a l s o R e s i z e ) } } , s t o p : f u n c t i o n ( e , f ) { v a r   d = c ( t h i s ) . d a t a ( " r e s i z a b l e " ) ; i f ( d . _ r e v e r t T o R e l a t i v e P o s i t i o n & & c . b r o w s e r . o p e r a ) { d . _ r e v e r t T o R e l a t i v e P o s i t i o n = f a l s e ; e l . c s s ( { p o s i t i o n : " r e l a t i v e " } ) } c ( t h i s ) . r e m o v e D a t a ( " r e s i z a b l e - a l s o r e s i z e - s t a r t " ) } } ) ; c . u i . p l u g i n . a d d ( " r e s i z a b l e " , " a n i m a t e " , { s t o p : f u n c t i o n ( h , m ) { v a r   n = c ( t h i s ) . d a t a ( " r e s i z a b l e " ) , i = n . o p t i o n s ; v a r   g = n . _ p r o p o r t i o n a l l y R e s i z e E l e m e n t s , d = g . l e n g t h & & ( / t e x t a r e a / i ) . t e s t ( g [ 0 ] . n o d e N a m e ) , e = d & & c . u i . h a s S c r o l l ( g [ 0 ] , " l e f t " ) ? 0 : n . s i z e D i f f . h e i g h t , k = d ? 0 : n . s i z e D i f f . w i d t h ; v a r   f = { w i d t h : ( n . s i z e . w i d t h - k ) , h e i g h t : ( n . s i z e . h e i g h t - e ) } , j = ( p a r s e I n t ( n . e l e m e n t . c s s ( " l e f t " ) , 1 0 ) + ( n . p o s i t i o n . l e f t - n . o r i g i n a l P o s i t i o n . l e f t ) ) | | n u l l , l = ( p a r s e I n t ( n . e l e m e n t . c s s ( " t o p " ) , 1 0 ) + ( n . p o s i t i o n . t o p - n . o r i g i n a l P o s i t i o n . t o p ) ) | | n u l l ; n . e l e m e n t . a n i m a t e ( c . e x t e n d ( f , l & & j ? { t o p : l , l e f t : j } : { } ) , { d u r a t i o n : i . a n i m a t e D u r a t i o n , e a s i n g : i . a n i m a t e E a s i n g , s t e p : f u n c t i o n ( ) { v a r   o = { w i d t h : p a r s e I n t ( n . e l e m e n t . c s s ( " w i d t h " ) , 1 0 ) , h e i g h t : p a r s e I n t ( n . e l e m e n t . c s s ( " h e i g h t " ) , 1 0 ) , t o p : p a r s e I n t ( n . e l e m e n t . c s s ( " t o p " ) , 1 0 ) , l e f t : p a r s e I n t ( n . e l e m e n t . c s s ( " l e f t " ) , 1 0 ) } ; i f ( g & & g . l e n g t h ) { c ( g [ 0 ] ) . c s s ( { w i d t h : o . w i d t h , h e i g h t : o . h e i g h t } ) } n . _ u p d a t e C a c h e ( o ) ; n . _ p r o p a g a t e ( " r e s i z e " , h ) } } ) } } ) ; c . u i . p l u g i n . a d d ( " r e s i z a b l e " , " c o n t a i n m e n t " , { s t a r t : f u n c t i o n ( e , q ) { v a r   s = c ( t h i s ) . d a t a ( " r e s i z a b l e " ) , i = s . o p t i o n s , k = s . e l e m e n t ; v a r   f = i . c o n t a i n m e n t , j = ( f   i n s t a n c e o f   c ) ? f . g e t ( 0 ) : ( / p a r e n t / . t e s t ( f ) ) ? k . p a r e n t ( ) . g e t ( 0 ) : f ; i f ( ! j ) { r e t u r n } s . c o n t a i n e r E l e m e n t = c ( j ) ; i f ( / d o c u m e n t / . t e s t ( f ) | | f = = d o c u m e n t ) { s . c o n t a i n e r O f f s e t = { l e f t : 0 , t o p : 0 } ; s . c o n t a i n e r P o s i t i o n = { l e f t : 0 , t o p : 0 } ; s . p a r e n t D a t a = { e l e m e n t : c ( d o c u m e n t ) , l e f t : 0 , t o p : 0 , w i d t h : c ( d o c u m e n t ) . w i d t h ( ) , h e i g h t : c ( d o c u m e n t ) . h e i g h t ( ) | | d o c u m e n t . b o d y . p a r e n t N o d e . s c r o l l H e i g h t } } e l s e { v a r   m = c ( j ) , h = [ ] ; c ( [ " T o p " , " R i g h t " , " L e f t " , " B o t t o m " ] ) . e a c h ( f u n c t i o n ( p , o ) { h [ p ] = b ( m . c s s ( " p a d d i n g " + o ) ) } ) ; s . c o n t a i n e r O f f s e t = m . o f f s e t ( ) ; s . c o n t a i n e r P o s i t i o n = m . p o s i t i o n ( ) ; s . c o n t a i n e r S i z e = { h e i g h t : ( m . i n n e r H e i g h t ( ) - h [ 3 ] ) , w i d t h : ( m . i n n e r W i d t h ( ) - h [ 1 ] ) } ; v a r   n = s . c o n t a i n e r O f f s e t , d = s . c o n t a i n e r S i z e . h e i g h t , l = s . c o n t a i n e r S i z e . w i d t h , g = ( c . u i . h a s S c r o l l ( j , " l e f t " ) ? j . s c r o l l W i d t h : l ) , r = ( c . u i . h a s S c r o l l ( j ) ? j . s c r o l l H e i g h t : d ) ; s . p a r e n t D a t a = { e l e m e n t : j , l e f t : n . l e f t , t o p : n . t o p , w i d t h : g , h e i g h t : r } } } , r e s i z e : f u n c t i o n ( f , p ) { v a r   s = c ( t h i s ) . d a t a ( " r e s i z a b l e " ) , h = s . o p t i o n s , e = s . c o n t a i n e r S i z e , n = s . c o n t a i n e r O f f s e t , l = s . s i z e , m = s . p o s i t i o n , q = s . _ a s p e c t R a t i o | | f . s h i f t K e y , d = { t o p : 0 , l e f t : 0 } , g = s . c o n t a i n e r E l e m e n t ; i f ( g [ 0 ] ! = d o c u m e n t & & ( / s t a t i c / ) . t e s t ( g . c s s ( " p o s i t i o n " ) ) ) { d = n } i f ( m . l e f t < ( s . _ h e l p e r ? n . l e f t : 0 ) ) { s . s i z e . w i d t h = s . s i z e . w i d t h + ( s . _ h e l p e r ? ( s . p o s i t i o n . l e f t - n . l e f t ) : ( s . p o s i t i o n . l e f t - d . l e f t ) ) ; i f ( q ) { s . s i z e . h e i g h t = s . s i z e . w i d t h / h . a s p e c t R a t i o } s . p o s i t i o n . l e f t = h . h e l p e r ? n . l e f t : 0 } i f ( m . t o p < ( s . _ h e l p e r ? n . t o p : 0 ) ) { s . s i z e . h e i g h t = s . s i z e . h e i g h t + ( s . _ h e l p e r ? ( s . p o s i t i o n . t o p - n . t o p ) : s . p o s i t i o n . t o p ) ; i f ( q ) { s . s i z e . w i d t h = s . s i z e . h e i g h t * h . a s p e c t R a t i o } s . p o s i t i o n . t o p = s . _ h e l p e r ? n . t o p : 0 } s . o f f s e t . l e f t = s . p a r e n t D a t a . l e f t + s . p o s i t i o n . l e f t ; s . o f f s e t . t o p = s . p a r e n t D a t a . t o p + s . p o s i t i o n . t o p ; v a r   k = M a t h . a b s ( ( s . _ h e l p e r ? s . o f f s e t . l e f t - d . l e f t : ( s . o f f s e t . l e f t - d . l e f t ) ) + s . s i z e D i f f . w i d t h ) , r = M a t h . a b s ( ( s . _ h e l p e r ? s . o f f s e t . t o p - d . t o p : ( s . o f f s e t . t o p - n . t o p ) ) + s . s i z e D i f f . h e i g h t ) ; v a r   j = s . c o n t a i n e r E l e m e n t . g e t ( 0 ) = = s . e l e m e n t . p a r e n t ( ) . g e t ( 0 ) , i = / r e l a t i v e | a b s o l u t e / . t e s t ( s . c o n t a i n e r E l e m e n t . c s s ( " p o s i t i o n " ) ) ; i f ( j & & i ) { k - = s . p a r e n t D a t a . l e f t } i f ( k + s . s i z e . w i d t h > = s . p a r e n t D a t a . w i d t h ) { s . s i z e . w i d t h = s . p a r e n t D a t a . w i d t h - k ; i f ( q ) { s . s i z e . h e i g h t = s . s i z e . w i d t h / s . a s p e c t R a t i o } } i f ( r + s . s i z e . h e i g h t > = s . p a r e n t D a t a . h e i g h t ) { s . s i z e . h e i g h t = s . p a r e n t D a t a . h e i g h t - r ; i f ( q ) { s . s i z e . w i d t h = s . s i z e . h e i g h t * s . a s p e c t R a t i o } } } , s t o p : f u n c t i o n ( e , m ) { v a r   p = c ( t h i s ) . d a t a ( " r e s i z a b l e " ) , f = p . o p t i o n s , k = p . p o s i t i o n , l = p . c o n t a i n e r O f f s e t , d = p . c o n t a i n e r P o s i t i o n , g = p . c o n t a i n e r E l e m e n t ; v a r   i = c ( p . h e l p e r ) , q = i . o f f s e t ( ) , n = i . o u t e r W i d t h ( ) - p . s i z e D i f f . w i d t h , j = i . o u t e r H e i g h t ( ) - p . s i z e D i f f . h e i g h t ; i f ( p . _ h e l p e r & & ! f . a n i m a t e & & ( / r e l a t i v e / ) . t e s t ( g . c s s ( " p o s i t i o n " ) ) ) { c ( t h i s ) . c s s ( { l e f t : q . l e f t - d . l e f t - l . l e f t , w i d t h : n , h e i g h t : j } ) } i f ( p . _ h e l p e r & & ! f . a n i m a t e & & ( / s t a t i c / ) . t e s t ( g . c s s ( " p o s i t i o n " ) ) ) { c ( t h i s ) . c s s ( { l e f t : q . l e f t - d . l e f t - l . l e f t , w i d t h : n , h e i g h t : j } ) } } } ) ; c . u i . p l u g i n . a d d ( " r e s i z a b l e " , " g h o s t " , { s t a r t : f u n c t i o n ( f , g ) { v a r   d = c ( t h i s ) . d a t a ( " r e s i z a b l e " ) , h = d . o p t i o n s , e = d . s i z e ; d . g h o s t = d . o r i g i n a l E l e m e n t . c l o n e ( ) ; d . g h o s t . c s s ( { o p a c i t y : 0 . 2 5 , d i s p l a y : " b l o c k " , p o s i t i o n : " r e l a t i v e " , h e i g h t : e . h e i g h t , w i d t h : e . w i d t h , m a r g i n : 0 , l e f t : 0 , t o p : 0 } ) . a d d C l a s s ( " u i - r e s i z a b l e - g h o s t " ) . a d d C l a s s ( t y p e o f   h . g h o s t = = " s t r i n g " ? h . g h o s t : " " ) ; d . g h o s t . a p p e n d T o ( d . h e l p e r ) } , r e s i z e : f u n c t i o n ( e , f ) { v a r   d = c ( t h i s ) . d a t a ( " r e s i z a b l e " ) , g = d . o p t i o n s ; i f ( d . g h o s t ) { d . g h o s t . c s s ( { p o s i t i o n : " r e l a t i v e " , h e i g h t : d . s i z e . h e i g h t , w i d t h : d . s i z e . w i d t h } ) } } , s t o p : f u n c t i o n ( e , f ) { v a r   d = c ( t h i s ) . d a t a ( " r e s i z a b l e " ) , g = d . o p t i o n s ; i f ( d . g h o s t & & d . h e l p e r ) { d . h e l p e r . g e t ( 0 ) . r e m o v e C h i l d ( d . g h o s t . g e t ( 0 ) ) } } } ) ; c . u i . p l u g i n . a d d ( " r e s i z a b l e " , " g r i d " , { r e s i z e : f u n c t i o n ( d , l ) { v a r   n = c ( t h i s ) . d a t a ( " r e s i z a b l e " ) , g = n . o p t i o n s , j = n . s i z e , h = n . o r i g i n a l S i z e , i = n . o r i g i n a l P o s i t i o n , m = n . a x i s , k = g . _ a s p e c t R a t i o | | d . s h i f t K e y ; g . g r i d = t y p e o f   g . g r i d = = " n u m b e r " ? [ g . g r i d , g . g r i d ] : g . g r i d ; v a r   f = M a t h . r o u n d ( ( j . w i d t h - h . w i d t h ) / ( g . g r i d [ 0 ] | | 1 ) ) * ( g . g r i d [ 0 ] | | 1 ) , e = M a t h . r o u n d ( ( j . h e i g h t - h . h e i g h t ) / ( g . g r i d [ 1 ] | | 1 ) ) * ( g . g r i d [ 1 ] | | 1 ) ; i f ( / ^ ( s e | s | e ) $ / . t e s t ( m ) ) { n . s i z e . w i d t h = h . w i d t h + f ; n . s i z e . h e i g h t = h . h e i g h t + e } e l s e { i f ( / ^ ( n e ) $ / . t e s t ( m ) ) { n . s i z e . w i d t h = h . w i d t h + f ; n . s i z e . h e i g h t = h . h e i g h t + e ; n . p o s i t i o n . t o p = i . t o p - e } e l s e { i f ( / ^ ( s w ) $ / . t e s t ( m ) ) { n . s i z e . w i d t h = h . w i d t h + f ; n . s i z e . h e i g h t = h . h e i g h t + e ; n . p o s i t i o n . l e f t = i . l e f t - f } e l s e { n . s i z e . w i d t h = h . w i d t h + f ; n . s i z e . h e i g h t = h . h e i g h t + e ; n . p o s i t i o n . t o p = i . t o p - e ; n . p o s i t i o n . l e f t = i . l e f t - f } } } } } ) ; v a r   b = f u n c t i o n ( d ) { r e t u r n   p a r s e I n t ( d , 1 0 ) | | 0 } ; v a r   a = f u n c t i o n ( d ) { r e t u r n   ! i s N a N ( p a r s e I n t ( d , 1 0 ) ) } } ) ( j Q u e r y ) ; ; / *  
   *   j Q u e r y   U I   D i a l o g   1 . 7 . 1  
   *  
   *   C o p y r i g h t   ( c )   2 0 0 9   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 / D i a l o g  
   *  
   *   D e p e n d s :  
   * 	 u i . c o r e . j s  
   * 	 u i . d r a g g a b l e . j s  
   * 	 u i . r e s i z a b l e . j s  
   * /  
 ( f u n c t i o n ( c ) { v a r   b = { d r a g S t a r t : " s t a r t . d r a g g a b l e " , d r a g : " d r a g . d r a g g a b l e " , d r a g S t o p : " s t o p . d r a g g a b l e " , m a x H e i g h t : " m a x H e i g h t . r e s i z a b l e " , m i n H e i g h t : " m i n H e i g h t . r e s i z a b l e " , m a x W i d t h : " m a x W i d t h . r e s i z a b l e " , m i n W i d t h : " m i n W i d t h . r e s i z a b l e " , r e s i z e S t a r t : " s t a r t . r e s i z a b l e " , r e s i z e : " d r a g . r e s i z a b l e " , r e s i z e S t o p : " s t o p . r e s i z a b l e " } , a = " u i - d i a l o g   u i - w i d g e t   u i - w i d g e t - c o n t e n t   u i - c o r n e r - a l l   " ; c . w i d g e t ( " u i . d i a l o g " , { _ i n i t : f u n c t i o n ( ) { t h i s . o r i g i n a l T i t l e = t h i s . e l e m e n t . a t t r ( " t i t l e " ) ; v a r   l = t h i s , m = t h i s . o p t i o n s , j = m . t i t l e | | t h i s . o r i g i n a l T i t l e | | " & n b s p ; " , e = c . u i . d i a l o g . g e t T i t l e I d ( t h i s . e l e m e n t ) , k = ( t h i s . u i D i a l o g = c ( " < d i v / > " ) ) . a p p e n d T o ( d o c u m e n t . b o d y ) . h i d e ( ) . a d d C l a s s ( a + m . d i a l o g C l a s s ) . c s s ( { p o s i t i o n : " a b s o l u t e " , o v e r f l o w : " h i d d e n " , z I n d e x : m . z I n d e x } ) . a t t r ( " t a b I n d e x " , - 1 ) . c s s ( " o u t l i n e " , 0 ) . k e y d o w n ( f u n c t i o n ( n ) { ( m . c l o s e O n E s c a p e & & n . k e y C o d e & & n . k e y C o d e = = c . u i . k e y C o d e . E S C A P E & & l . c l o s e ( n ) ) } ) . a t t r ( { r o l e : " d i a l o g " , " a r i a - l a b e l l e d b y " : e } ) . m o u s e d o w n ( f u n c t i o n ( n ) { l . m o v e T o T o p ( f a l s e , n ) } ) , g = t h i s . e l e m e n t . s h o w ( ) . r e m o v e A t t r ( " t i t l e " ) . a d d C l a s s ( " u i - d i a l o g - c o n t e n t   u i - w i d g e t - c o n t e n t " ) . a p p e n d T o ( k ) , f = ( t h i s . u i D i a l o g T i t l e b a r = c ( " < d i v > < / d i v > " ) ) . a d d C l a s s ( " u i - d i a l o g - t i t l e b a r   u i - w i d g e t - h e a d e r   u i - c o r n e r - a l l   u i - h e l p e r - c l e a r f i x " ) . p r e p e n d T o ( k ) , i = c ( ' < a   h r e f = " # " / > ' ) . a d d C l a s s ( " u i - d i a l o g - t i t l e b a r - c l o s e   u i - c o r n e r - a l l " ) . a t t r ( " r o l e " , " b u t t o n " ) . h o v e r ( f u n c t i o n ( ) { i . a d d C l a s s ( " u i - s t a t e - h o v e r " ) } , f u n c t i o n ( ) { i . r e m o v e C l a s s ( " u i - s t a t e - h o v e r " ) } ) . f o c u s ( f u n c t i o n ( ) { i . a d d C l a s s ( " u i - s t a t e - f o c u s " ) } ) . b l u r ( f u n c t i o n ( ) { i . r e m o v e C l a s s ( " u i - s t a t e - f o c u s " ) } ) . m o u s e d o w n ( f u n c t i o n ( n ) { n . s t o p P r o p a g a t i o n ( ) } ) . c l i c k ( f u n c t i o n ( n ) { l . c l o s e ( n ) ; r e t u r n   f a l s e } ) . a p p e n d T o ( f ) , h = ( t h i s . u i D i a l o g T i t l e b a r C l o s e T e x t = c ( " < s p a n / > " ) ) . a d d C l a s s ( " u i - i c o n   u i - i c o n - c l o s e t h i c k " ) . t e x t ( m . c l o s e T e x t ) . a p p e n d T o ( i ) , d = c ( " < s p a n / > " ) . a d d C l a s s ( " u i - d i a l o g - t i t l e " ) . a t t r ( " i d " , e ) . h t m l ( j ) . p r e p e n d T o ( f ) ; f . f i n d ( " * " ) . a d d ( f ) . d i s a b l e S e l e c t i o n ( ) ; ( m . d r a g g a b l e & & c . f n . d r a g g a b l e & & t h i s . _ m a k e D r a g g a b l e ( ) ) ; ( m . r e s i z a b l e & & c . f n . r e s i z a b l e & & t h i s . _ m a k e R e s i z a b l e ( ) ) ; t h i s . _ c r e a t e B u t t o n s ( m . b u t t o n s ) ; t h i s . _ i s O p e n = f a l s e ; ( m . b g i f r a m e & & c . f n . b g i f r a m e & & k . b g i f r a m e ( ) ) ; ( m . a u t o O p e n & & t h i s . o p e n ( ) ) } , d e s t r o y : f u n c t i o n ( ) { ( t h i s . o v e r l a y & & t h i s . o v e r l a y . d e s t r o y ( ) ) ; t h i s . u i D i a l o g . h i d e ( ) ; t h i s . e l e m e n t . u n b i n d ( " . d i a l o g " ) . r e m o v e D a t a ( " d i a l o g " ) . r e m o v e C l a s s ( " u i - d i a l o g - c o n t e n t   u i - w i d g e t - c o n t e n t " ) . h i d e ( ) . a p p e n d T o ( " b o d y " ) ; t h i s . u i D i a l o g . r e m o v e ( ) ; ( t h i s . o r i g i n a l T i t l e & & t h i s . e l e m e n t . a t t r ( " t i t l e " , t h i s . o r i g i n a l T i t l e ) ) } , c l o s e : f u n c t i o n ( e ) { v a r   d = t h i s ; i f ( f a l s e = = = d . _ t r i g g e r ( " b e f o r e c l o s e " , e ) ) { r e t u r n } ( d . o v e r l a y & & d . o v e r l a y . d e s t r o y ( ) ) ; d . u i D i a l o g . u n b i n d ( " k e y p r e s s . u i - d i a l o g " ) ; ( d . o p t i o n s . h i d e ? d . u i D i a l o g . h i d e ( d . o p t i o n s . h i d e , f u n c t i o n ( ) { d . _ t r i g g e r ( " c l o s e " , e ) } ) : d . u i D i a l o g . h i d e ( ) & & d . _ t r i g g e r ( " c l o s e " , e ) ) ; c . u i . d i a l o g . o v e r l a y . r e s i z e ( ) ; d . _ i s O p e n = f a l s e } , i s O p e n : f u n c t i o n ( ) { r e t u r n   t h i s . _ i s O p e n } , m o v e T o T o p : f u n c t i o n ( f , e ) { i f ( ( t h i s . o p t i o n s . m o d a l & & ! f ) | | ( ! t h i s . o p t i o n s . s t a c k & & ! t h i s . o p t i o n s . m o d a l ) ) { r e t u r n   t h i s . _ t r i g g e r ( " f o c u s " , e ) } i f ( t h i s . o p t i o n s . z I n d e x > c . u i . d i a l o g . m a x Z ) { c . u i . d i a l o g . m a x Z = t h i s . o p t i o n s . z I n d e x } ( t h i s . o v e r l a y & & t h i s . o v e r l a y . $ e l . c s s ( " z - i n d e x " , c . u i . d i a l o g . o v e r l a y . m a x Z = + + c . u i . d i a l o g . m a x Z ) ) ; v a r   d = { s c r o l l T o p : t h i s . e l e m e n t . a t t r ( " s c r o l l T o p " ) , s c r o l l L e f t : t h i s . e l e m e n t . a t t r ( " s c r o l l L e f t " ) } ; t h i s . u i D i a l o g . c s s ( " z - i n d e x " , + + c . u i . d i a l o g . m a x Z ) ; t h i s . e l e m e n t . a t t r ( d ) ; t h i s . _ t r i g g e r ( " f o c u s " , e ) } , o p e n : f u n c t i o n ( ) { i f ( t h i s . _ i s O p e n ) { r e t u r n } v a r   e = t h i s . o p t i o n s , d = t h i s . u i D i a l o g ; t h i s . o v e r l a y = e . m o d a l ? n e w   c . u i . d i a l o g . o v e r l a y ( t h i s ) : n u l l ; ( d . n e x t ( ) . l e n g t h & & d . a p p e n d T o ( " b o d y " ) ) ; t h i s . _ s i z e ( ) ; t h i s . _ p o s i t i o n ( e . p o s i t i o n ) ; d . s h o w ( e . s h o w ) ; t h i s . m o v e T o T o p ( t r u e ) ; ( e . m o d a l & & d . b i n d ( " k e y p r e s s . u i - d i a l o g " , f u n c t i o n ( h ) { i f ( h . k e y C o d e ! = c . u i . k e y C o d e . T A B ) { r e t u r n } v a r   g = c ( " : t a b b a b l e " , t h i s ) , i = g . f i l t e r ( " : f i r s t " ) [ 0 ] , f = g . f i l t e r ( " : l a s t " ) [ 0 ] ; i f ( h . t a r g e t = = f & & ! h . s h i f t K e y ) { s e t T i m e o u t ( f u n c t i o n ( ) { i . f o c u s ( ) } , 1 ) } e l s e { i f ( h . t a r g e t = = i & & h . s h i f t K e y ) { s e t T i m e o u t ( f u n c t i o n ( ) { f . f o c u s ( ) } , 1 ) } } } ) ) ; c ( [ ] ) . a d d ( d . f i n d ( " . u i - d i a l o g - c o n t e n t   : t a b b a b l e : f i r s t " ) ) . a d d ( d . f i n d ( " . u i - d i a l o g - b u t t o n p a n e   : t a b b a b l e : f i r s t " ) ) . a d d ( d ) . f i l t e r ( " : f i r s t " ) . f o c u s ( ) ; t h i s . _ t r i g g e r ( " o p e n " ) ; t h i s . _ i s O p e n = t r u e } , _ c r e a t e B u t t o n s : f u n c t i o n ( g ) { v a r   f = t h i s , d = f a l s e , e = c ( " < d i v > < / d i v > " ) . a d d C l a s s ( " u i - d i a l o g - b u t t o n p a n e   u i - w i d g e t - c o n t e n t   u i - h e l p e r - c l e a r f i x " ) ; t h i s . u i D i a l o g . f i n d ( " . u i - d i a l o g - b u t t o n p a n e " ) . r e m o v e ( ) ; ( t y p e o f   g = = " o b j e c t " & & g ! = = n u l l & & c . e a c h ( g , f u n c t i o n ( ) { r e t u r n   ! ( d = t r u e ) } ) ) ; i f ( d ) { c . e a c h ( g , f u n c t i o n ( h , i ) { c ( ' < b u t t o n   t y p e = " b u t t o n " > < / b u t t o n > ' ) . a d d C l a s s ( " u i - s t a t e - d e f a u l t   u i - c o r n e r - a l l " ) . t e x t ( h ) . c l i c k ( f u n c t i o n ( ) { i . a p p l y ( f . e l e m e n t [ 0 ] , a r g u m e n t s ) } ) . h o v e r ( f u n c t i o n ( ) { c ( t h i s ) . a d d C l a s s ( " u i - s t a t e - h o v e r " ) } , f u n c t i o n ( ) { c ( t h i s ) . r e m o v e C l a s s ( " u i - s t a t e - h o v e r " ) } ) . f o c u s ( f u n c t i o n ( ) { c ( t h i s ) . a d d C l a s s ( " u i - s t a t e - f o c u s " ) } ) . b l u r ( f u n c t i o n ( ) { c ( t h i s ) . r e m o v e C l a s s ( " u i - s t a t e - f o c u s " ) } ) . a p p e n d T o ( e ) } ) ; e . a p p e n d T o ( t h i s . u i D i a l o g ) } } , _ m a k e D r a g g a b l e : f u n c t i o n ( ) { v a r   d = t h i s , f = t h i s . o p t i o n s , e ; t h i s . u i D i a l o g . d r a g g a b l e ( { c a n c e l : " . u i - d i a l o g - c o n t e n t " , h a n d l e : " . u i - d i a l o g - t i t l e b a r " , c o n t a i n m e n t : " d o c u m e n t " , s t a r t : f u n c t i o n ( ) { e = f . h e i g h t ; c ( t h i s ) . h e i g h t ( c ( t h i s ) . h e i g h t ( ) ) . a d d C l a s s ( " u i - d i a l o g - d r a g g i n g " ) ; ( f . d r a g S t a r t & & f . d r a g S t a r t . a p p l y ( d . e l e m e n t [ 0 ] , a r g u m e n t s ) ) } , d r a g : f u n c t i o n ( ) { ( f . d r a g & & f . d r a g . a p p l y ( d . e l e m e n t [ 0 ] , a r g u m e n t s ) ) } , s t o p : f u n c t i o n ( ) { c ( t h i s ) . r e m o v e C l a s s ( " u i - d i a l o g - d r a g g i n g " ) . h e i g h t ( e ) ; ( f . d r a g S t o p & & f . d r a g S t o p . a p p l y ( d . e l e m e n t [ 0 ] , a r g u m e n t s ) ) ; c . u i . d i a l o g . o v e r l a y . r e s i z e ( ) } } ) } , _ m a k e R e s i z a b l e : f u n c t i o n ( g ) { g = ( g = = = u n d e f i n e d ? t h i s . o p t i o n s . r e s i z a b l e : g ) ; v a r   d = t h i s , f = t h i s . o p t i o n s , e = t y p e o f   g = = " s t r i n g " ? g : " n , e , s , w , s e , s w , n e , n w " ; t h i s . u i D i a l o g . r e s i z a b l e ( { c a n c e l : " . u i - d i a l o g - c o n t e n t " , a l s o R e s i z e : t h i s . e l e m e n t , m a x W i d t h : f . m a x W i d t h , m a x H e i g h t : f . m a x H e i g h t , m i n W i d t h : f . m i n W i d t h , m i n H e i g h t : f . m i n H e i g h t , s t a r t : f u n c t i o n ( ) { c ( t h i s ) . a d d C l a s s ( " u i - d i a l o g - r e s i z i n g " ) ; ( f . r e s i z e S t a r t & & f . r e s i z e S t a r t . a p p l y ( d . e l e m e n t [ 0 ] , a r g u m e n t s ) ) } , r e s i z e : f u n c t i o n ( ) { ( f . r e s i z e & & f . r e s i z e . a p p l y ( d . e l e m e n t [ 0 ] , a r g u m e n t s ) ) } , h a n d l e s : e , s t o p : f u n c t i o n ( ) { c ( t h i s ) . r e m o v e C l a s s ( " u i - d i a l o g - r e s i z i n g " ) ; f . h e i g h t = c ( t h i s ) . h e i g h t ( ) ; f . w i d t h = c ( t h i s ) . w i d t h ( ) ; ( f . r e s i z e S t o p & & f . r e s i z e S t o p . a p p l y ( d . e l e m e n t [ 0 ] , a r g u m e n t s ) ) ; c . u i . d i a l o g . o v e r l a y . r e s i z e ( ) } } ) . f i n d ( " . u i - r e s i z a b l e - s e " ) . a d d C l a s s ( " u i - i c o n   u i - i c o n - g r i p - d i a g o n a l - s e " ) } , _ p o s i t i o n : f u n c t i o n ( i ) { v a r   e = c ( w i n d o w ) , f = c ( d o c u m e n t ) , g = f . s c r o l l T o p ( ) , d = f . s c r o l l L e f t ( ) , h = g ; i f ( c . i n A r r a y ( i , [ " c e n t e r " , " t o p " , " r i g h t " , " b o t t o m " , " l e f t " ] ) > = 0 ) { i = [ i = = " r i g h t " | | i = = " l e f t " ? i : " c e n t e r " , i = = " t o p " | | i = = " b o t t o m " ? i : " m i d d l e " ] } i f ( i . c o n s t r u c t o r ! = A r r a y ) { i = [ " c e n t e r " , " m i d d l e " ] } i f ( i [ 0 ] . c o n s t r u c t o r = = N u m b e r ) { d + = i [ 0 ] } e l s e { s w i t c h ( i [ 0 ] ) { c a s e " l e f t " : d + = 0 ; b r e a k ; c a s e " r i g h t " : d + = e . w i d t h ( ) - t h i s . u i D i a l o g . o u t e r W i d t h ( ) ; b r e a k ; d e f a u l t : c a s e " c e n t e r " : d + = ( e . w i d t h ( ) - t h i s . u i D i a l o g . o u t e r W i d t h ( ) ) / 2 } } i f ( i [ 1 ] . c o n s t r u c t o r = = N u m b e r ) { g + = i [ 1 ] } e l s e { s w i t c h ( i [ 1 ] ) { c a s e " t o p " : g + = 0 ; b r e a k ; c a s e " b o t t o m " : g + = e . h e i g h t ( ) - t h i s . u i D i a l o g . o u t e r H e i g h t ( ) ; b r e a k ; d e f a u l t : c a s e " m i d d l e " : g + = ( e . h e i g h t ( ) - t h i s . u i D i a l o g . o u t e r H e i g h t ( ) ) / 2 } } g = M a t h . m a x ( g , h ) ; t h i s . u i D i a l o g . c s s ( { t o p : g , l e f t : d } ) } , _ s e t D a t a : f u n c t i o n ( e , f ) { ( b [ e ] & & t h i s . u i D i a l o g . d a t a ( b [ e ] , f ) ) ; s w i t c h ( e ) { c a s e " b u t t o n s " : t h i s . _ c r e a t e B u t t o n s ( f ) ; b r e a k ; c a s e " c l o s e T e x t " : t h i s . u i D i a l o g T i t l e b a r C l o s e T e x t . t e x t ( f ) ; b r e a k ; c a s e " d i a l o g C l a s s " : t h i s . u i D i a l o g . r e m o v e C l a s s ( t h i s . o p t i o n s . d i a l o g C l a s s ) . a d d C l a s s ( a + f ) ; b r e a k ; c a s e " d r a g g a b l e " : ( f ? t h i s . _ m a k e D r a g g a b l e ( ) : t h i s . u i D i a l o g . d r a g g a b l e ( " d e s t r o y " ) ) ; b r e a k ; c a s e " h e i g h t " : t h i s . u i D i a l o g . h e i g h t ( f ) ; b r e a k ; c a s e " p o s i t i o n " : t h i s . _ p o s i t i o n ( f ) ; b r e a k ; c a s e " r e s i z a b l e " : v a r   d = t h i s . u i D i a l o g , g = t h i s . u i D i a l o g . i s ( " : d a t a ( r e s i z a b l e ) " ) ; ( g & & ! f & & d . r e s i z a b l e ( " d e s t r o y " ) ) ; ( g & & t y p e o f   f = = " s t r i n g " & & d . r e s i z a b l e ( " o p t i o n " , " h a n d l e s " , f ) ) ; ( g | | t h i s . _ m a k e R e s i z a b l e ( f ) ) ; b r e a k ; c a s e " t i t l e " : c ( " . u i - d i a l o g - t i t l e " , t h i s . u i D i a l o g T i t l e b a r ) . h t m l ( f | | " & n b s p ; " ) ; b r e a k ; c a s e " w i d t h " : t h i s . u i D i a l o g . w i d t h ( f ) ; b r e a k } c . w i d g e t . p r o t o t y p e . _ s e t D a t a . a p p l y ( t h i s , a r g u m e n t s ) } , _ s i z e : f u n c t i o n ( ) { v a r   e = t h i s . o p t i o n s ; t h i s . e l e m e n t . c s s ( { h e i g h t : 0 , m i n H e i g h t : 0 , w i d t h : " a u t o " } ) ; v a r   d = t h i s . u i D i a l o g . c s s ( { h e i g h t : " a u t o " , w i d t h : e . w i d t h } ) . h e i g h t ( ) ; t h i s . e l e m e n t . c s s ( { m i n H e i g h t : M a t h . m a x ( e . m i n H e i g h t - d , 0 ) , h e i g h t : e . h e i g h t = = " a u t o " ? " a u t o " : M a t h . m a x ( e . h e i g h t - d , 0 ) } ) } } ) ; c . e x t e n d ( c . u i . d i a l o g , { v e r s i o n : " 1 . 7 . 1 " , d e f a u l t s : { a u t o O p e n : t r u e , b g i f r a m e : f a l s e , b u t t o n s : { } , c l o s e O n E s c a p e : t r u e , c l o s e T e x t : " c l o s e " , d i a l o g C l a s s : " " , d r a g g a b l e : t r u e , h i d e : n u l l , h e i g h t : " a u t o " , m a x H e i g h t : f a l s e , m a x W i d t h : f a l s e , m i n H e i g h t : 1 5 0 , m i n W i d t h : 1 5 0 , m o d a l : f a l s e , p o s i t i o n : " c e n t e r " , r e s i z a b l e : t r u e , s h o w : n u l l , s t a c k : t r u e , t i t l e : " " , w i d t h : 3 0 0 , z I n d e x : 1 0 0 0 } , g e t t e r : " i s O p e n " , u u i d : 0 , m a x Z : 0 , g e t T i t l e I d : f u n c t i o n ( d ) { r e t u r n " u i - d i a l o g - t i t l e - " + ( d . a t t r ( " i d " ) | | + + t h i s . u u i d ) } , o v e r l a y : f u n c t i o n ( d ) { t h i s . $ e l = c . u i . d i a l o g . o v e r l a y . c r e a t e ( d ) } } ) ; c . e x t e n d ( c . u i . d i a l o g . o v e r l a y , { i n s t a n c e s : [ ] , m a x Z : 0 , e v e n t s : c . m a p ( " f o c u s , m o u s e d o w n , m o u s e u p , k e y d o w n , k e y p r e s s , c l i c k " . s p l i t ( " , " ) , f u n c t i o n ( d ) { r e t u r n   d + " . d i a l o g - o v e r l a y " } ) . j o i n ( "   " ) , c r e a t e : f u n c t i o n ( e ) { i f ( t h i s . i n s t a n c e s . l e n g t h = = = 0 ) { s e t T i m e o u t ( f u n c t i o n ( ) { c ( d o c u m e n t ) . b i n d ( c . u i . d i a l o g . o v e r l a y . e v e n t s , f u n c t i o n ( f ) { v a r   g = c ( f . t a r g e t ) . p a r e n t s ( " . u i - d i a l o g " ) . c s s ( " z I n d e x " ) | | 0 ; r e t u r n ( g > c . u i . d i a l o g . o v e r l a y . m a x Z ) } ) } , 1 ) ; c ( d o c u m e n t ) . b i n d ( " k e y d o w n . d i a l o g - o v e r l a y " , f u n c t i o n ( f ) { ( e . o p t i o n s . c l o s e O n E s c a p e & & f . k e y C o d e & & f . k e y C o d e = = c . u i . k e y C o d e . E S C A P E & & e . c l o s e ( f ) ) } ) ; c ( w i n d o w ) . b i n d ( " r e s i z e . d i a l o g - o v e r l a y " , c . u i . d i a l o g . o v e r l a y . r e s i z e ) } v a r   d = c ( " < d i v > < / d i v > " ) . a p p e n d T o ( d o c u m e n t . b o d y ) . a d d C l a s s ( " u i - w i d g e t - o v e r l a y " ) . c s s ( { w i d t h : t h i s . w i d t h ( ) , h e i g h t : t h i s . h e i g h t ( ) } ) ; ( e . o p t i o n s . b g i f r a m e & & c . f n . b g i f r a m e & & d . b g i f r a m e ( ) ) ; t h i s . i n s t a n c e s . p u s h ( d ) ; r e t u r n   d } , d e s t r o y : f u n c t i o n ( d ) { t h i s . i n s t a n c e s . s p l i c e ( c . i n A r r a y ( t h i s . i n s t a n c e s , d ) , 1 ) ; i f ( t h i s . i n s t a n c e s . l e n g t h = = = 0 ) { c ( [ d o c u m e n t , w i n d o w ] ) . u n b i n d ( " . d i a l o g - o v e r l a y " ) } d . r e m o v e ( ) } , h e i g h t : f u n c t i o n ( ) { i f ( c . b r o w s e r . m s i e & & c . b r o w s e r . v e r s i o n < 7 ) { v a r   e = M a t h . m a x ( d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l H e i g h t , d o c u m e n t . b o d y . s c r o l l H e i g h t ) ; v a r   d = M a t h . m a x ( d o c u m e n t . d o c u m e n t E l e m e n t . o f f s e t H e i g h t , d o c u m e n t . b o d y . o f f s e t H e i g h t ) ; i f ( e < d ) { r e t u r n   c ( w i n d o w ) . h e i g h t ( ) + " p x " } e l s e { r e t u r n   e + " p x " } } e l s e { r e t u r n   c ( d o c u m e n t ) . h e i g h t ( ) + " p x " } } , w i d t h : f u n c t i o n ( ) { i f ( c . b r o w s e r . m s i e & & c . b r o w s e r . v e r s i o n < 7 ) { v a r   d = M a t h . m a x ( d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l W i d t h , d o c u m e n t . b o d y . s c r o l l W i d t h ) ; v a r   e = M a t h . m a x ( d o c u m e n t . d o c u m e n t E l e m e n t . o f f s e t W i d t h , d o c u m e n t . b o d y . o f f s e t W i d t h ) ; i f ( d < e ) { r e t u r n   c ( w i n d o w ) . w i d t h ( ) + " p x " } e l s e { r e t u r n   d + " p x " } } e l s e { r e t u r n   c ( d o c u m e n t ) . w i d t h ( ) + " p x " } } , r e s i z e : f u n c t i o n ( ) { v a r   d = c ( [ ] ) ; c . e a c h ( c . u i . d i a l o g . o v e r l a y . i n s t a n c e s , f u n c t i o n ( ) { d = d . a d d ( t h i s ) } ) ; d . c s s ( { w i d t h : 0 , h e i g h t : 0 } ) . c s s ( { w i d t h : c . u i . d i a l o g . o v e r l a y . w i d t h ( ) , h e i g h t : c . u i . d i a l o g . o v e r l a y . h e i g h t ( ) } ) } } ) ; c . e x t e n d ( c . u i . d i a l o g . o v e r l a y . p r o t o t y p e , { d e s t r o y : f u n c t i o n ( ) { c . u i . d i a l o g . o v e r l a y . d e s t r o y ( t h i s . $ e l ) } } ) } ) ( j Q u e r y ) ; ; / *  
   *   j Q u e r y   U I   P r o g r e s s b a r   1 . 7 . 1  
   *  
   *   C o p y r i g h t   ( c )   2 0 0 9   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 / P r o g r e s s b a r  
   *  
   *   D e p e n d s :  
   *       u i . c o r e . j s  
   * /  
 ( f u n c t i o n ( a ) { a . w i d g e t ( " u i . p r o g r e s s b a r " , { _ i n i t : f u n c t i o n ( ) { t h i s . e l e m e n t . a d d C l a s s ( " u i - p r o g r e s s b a r   u i - w i d g e t   u i - w i d g e t - c o n t e n t   u i - c o r n e r - a l l " ) . a t t r ( { r o l e : " p r o g r e s s b a r " , " a r i a - v a l u e m i n " : t h i s . _ v a l u e M i n ( ) , " a r i a - v a l u e m a x " : t h i s . _ v a l u e M a x ( ) , " a r i a - v a l u e n o w " : t h i s . _ v a l u e ( ) } ) ; t h i s . v a l u e D i v = a ( ' < d i v   c l a s s = " u i - p r o g r e s s b a r - v a l u e   u i - w i d g e t - h e a d e r   u i - c o r n e r - l e f t " > < / d i v > ' ) . a p p e n d T o ( t h i s . e l e m e n t ) ; t h i s . _ r e f r e s h V a l u e ( ) } , d e s t r o y : f u n c t i o n ( ) { t h i s . e l e m e n t . r e m o v e C l a s s ( " u i - p r o g r e s s b a r   u i - w i d g e t   u i - w i d g e t - c o n t e n t   u i - c o r n e r - a l l " ) . r e m o v e A t t r ( " r o l e " ) . r e m o v e A t t r ( " a r i a - v a l u e m i n " ) . r e m o v e A t t r ( " a r i a - v a l u e m a x " ) . r e m o v e A t t r ( " a r i a - v a l u e n o w " ) . r e m o v e D a t a ( " p r o g r e s s b a r " ) . u n b i n d ( " . p r o g r e s s b a r " ) ; t h i s . v a l u e D i v . r e m o v e ( ) ; a . w i d g e t . p r o t o t y p e . d e s t r o y . a p p l y ( t h i s , a r g u m e n t s ) } , v a l u e : f u n c t i o n ( b ) { a r g u m e n t s . l e n g t h & & t h i s . _ s e t D a t a ( " v a l u e " , b ) ; r e t u r n   t h i s . _ v a l u e ( ) } , _ s e t D a t a : f u n c t i o n ( b , c ) { s w i t c h ( b ) { c a s e " v a l u e " : t h i s . o p t i o n s . v a l u e = c ; t h i s . _ r e f r e s h V a l u e ( ) ; t h i s . _ t r i g g e r ( " c h a n g e " , n u l l , { } ) ; b r e a k } a . w i d g e t . p r o t o t y p e . _ s e t D a t a . a p p l y ( t h i s , a r g u m e n t s ) } , _ v a l u e : f u n c t i o n ( ) { v a r   b = t h i s . o p t i o n s . v a l u e ; i f ( b < t h i s . _ v a l u e M i n ( ) ) { b = t h i s . _ v a l u e M i n ( ) } i f ( b > t h i s . _ v a l u e M a x ( ) ) { b = t h i s . _ v a l u e M a x ( ) } r e t u r n   b } , _ v a l u e M i n : f u n c t i o n ( ) { v a r   b = 0 ; r e t u r n   b } , _ v a l u e M a x : f u n c t i o n ( ) { v a r   b = 1 0 0 ; r e t u r n   b } , _ r e f r e s h V a l u e : f u n c t i o n ( ) { v a r   b = t h i s . v a l u e ( ) ; t h i s . v a l u e D i v [ b = = t h i s . _ v a l u e M a x ( ) ? " a d d C l a s s " : " r e m o v e C l a s s " ] ( " u i - c o r n e r - r i g h t " ) ; t h i s . v a l u e D i v . w i d t h ( b + " % " ) ; t h i s . e l e m e n t . a t t r ( " a r i a - v a l u e n o w " , b ) } } ) ; a . e x t e n d ( a . u i . p r o g r e s s b a r , { v e r s i o n : " 1 . 7 . 1 " , d e f a u l t s : { v a l u e : 0 } } ) } ) ( j Q u e r y ) ; ; / *  
   *   j Q u e r y   U I   E f f e c t s   1 . 7 . 1  
   *  
   *   C o p y r i g h t   ( c )   2 0 0 9   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 / E f f e c t s /  
   * /  
 j Q u e r y . e f f e c t s | | ( f u n c t i o n ( d ) { d . e f f e c t s = { v e r s i o n : " 1 . 7 . 1 " , s a v e : f u n c t i o n ( g , h ) { f o r ( v a r   f = 0 ; f < h . l e n g t h ; f + + ) { i f ( h [ f ] ! = = n u l l ) { g . d a t a ( " e c . s t o r a g e . " + h [ f ] , g [ 0 ] . s t y l e [ h [ f ] ] ) } } } , r e s t o r e : f u n c t i o n ( g , h ) { f o r ( v a r   f = 0 ; f < h . l e n g t h ; f + + ) { i f ( h [ f ] ! = = n u l l ) { g . c s s ( h [ f ] , g . d a t a ( " e c . s t o r a g e . " + h [ f ] ) ) } } } , s e t M o d e : f u n c t i o n ( f , g ) { i f ( g = = " t o g g l e " ) { g = f . i s ( " : h i d d e n " ) ? " s h o w " : " h i d e " } r e t u r n   g } , g e t B a s e l i n e : f u n c t i o n ( g , h ) { v a r   i , f ; s w i t c h ( g [ 0 ] ) { c a s e " t o p " : i = 0 ; b r e a k ; c a s e " m i d d l e " : i = 0 . 5 ; b r e a k ; c a s e " b o t t o m " : i = 1 ; b r e a k ; d e f a u l t : i = g [ 0 ] / h . h e i g h t } s w i t c h ( g [ 1 ] ) { c a s e " l e f t " : f = 0 ; b r e a k ; c a s e " c e n t e r " : f = 0 . 5 ; b r e a k ; c a s e " r i g h t " : f = 1 ; b r e a k ; d e f a u l t : f = g [ 1 ] / h . w i d t h } r e t u r n { x : f , y : i } } , c r e a t e W r a p p e r : f u n c t i o n ( f ) { i f ( f . p a r e n t ( ) . i s ( " . u i - e f f e c t s - w r a p p e r " ) ) { r e t u r n   f . p a r e n t ( ) } v a r   g = { w i d t h : f . o u t e r W i d t h ( t r u e ) , h e i g h t : f . o u t e r H e i g h t ( t r u e ) , " f l o a t " : f . c s s ( " f l o a t " ) } ; f . w r a p ( ' < d i v   c l a s s = " u i - e f f e c t s - w r a p p e r "   s t y l e = " f o n t - s i z e : 1 0 0 % ; b a c k g r o u n d : t r a n s p a r e n t ; b o r d e r : n o n e ; m a r g i n : 0 ; p a d d i n g : 0 " > < / d i v > ' ) ; v a r   j = f . p a r e n t ( ) ; i f ( f . c s s ( " p o s i t i o n " ) = = " s t a t i c " ) { j . c s s ( { p o s i t i o n : " r e l a t i v e " } ) ; f . c s s ( { p o s i t i o n : " r e l a t i v e " } ) } e l s e { v a r   i = f . c s s ( " t o p " ) ; i f ( i s N a N ( p a r s e I n t ( i , 1 0 ) ) ) { i = " a u t o " } v a r   h = f . c s s ( " l e f t " ) ; i f ( i s N a N ( p a r s e I n t ( h , 1 0 ) ) ) { h = " a u t o " } j . c s s ( { p o s i t i o n : f . c s s ( " p o s i t i o n " ) , t o p : i , l e f t : h , z I n d e x : f . c s s ( " z - i n d e x " ) } ) . s h o w ( ) ; f . c s s ( { p o s i t i o n : " r e l a t i v e " , t o p : 0 , l e f t : 0 } ) } j . c s s ( g ) ; r e t u r n   j } , r e m o v e W r a p p e r : f u n c t i o n ( f ) { i f ( f . p a r e n t ( ) . i s ( " . u i - e f f e c t s - w r a p p e r " ) ) { r e t u r n   f . p a r e n t ( ) . r e p l a c e W i t h ( f ) } r e t u r n   f } , s e t T r a n s i t i o n : f u n c t i o n ( g , i , f , h ) { h = h | | { } ; d . e a c h ( i , f u n c t i o n ( k , j ) { u n i t = g . c s s U n i t ( j ) ; i f ( u n i t [ 0 ] > 0 ) { h [ j ] = u n i t [ 0 ] * f + u n i t [ 1 ] } } ) ; r e t u r n   h } , a n i m a t e C l a s s : f u n c t i o n ( h , i , k , j ) { v a r   f = ( t y p e o f   k = = " f u n c t i o n " ? k : ( j ? j : n u l l ) ) ; v a r   g = ( t y p e o f   k = = " s t r i n g " ? k : n u l l ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { v a r   q = { } ; v a r   o = d ( t h i s ) ; v a r   p = o . a t t r ( " s t y l e " ) | | " " ; i f ( t y p e o f   p = = " o b j e c t " ) { p = p . c s s T e x t } i f ( h . t o g g l e ) { o . h a s C l a s s ( h . t o g g l e ) ? h . r e m o v e = h . t o g g l e : h . a d d = h . t o g g l e } v a r   l = d . e x t e n d ( { } , ( d o c u m e n t . d e f a u l t V i e w ? d o c u m e n t . d e f a u l t V i e w . g e t C o m p u t e d S t y l e ( t h i s , n u l l ) : t h i s . c u r r e n t S t y l e ) ) ; i f ( h . a d d ) { o . a d d C l a s s ( h . a d d ) } i f ( h . r e m o v e ) { o . r e m o v e C l a s s ( h . r e m o v e ) } v a r   m = d . e x t e n d ( { } , ( d o c u m e n t . d e f a u l t V i e w ? d o c u m e n t . d e f a u l t V i e w . g e t C o m p u t e d S t y l e ( t h i s , n u l l ) : t h i s . c u r r e n t S t y l e ) ) ; i f ( h . a d d ) { o . r e m o v e C l a s s ( h . a d d ) } i f ( h . r e m o v e ) { o . a d d C l a s s ( h . r e m o v e ) } f o r ( v a r   r   i n   m ) { i f ( t y p e o f   m [ r ] ! = " f u n c t i o n " & & m [ r ] & & r . i n d e x O f ( " M o z " ) = = - 1 & & r . i n d e x O f ( " l e n g t h " ) = = - 1 & & m [ r ] ! = l [ r ] & & ( r . m a t c h ( / c o l o r / i ) | | ( ! r . m a t c h ( / c o l o r / i ) & & ! i s N a N ( p a r s e I n t ( m [ r ] , 1 0 ) ) ) ) & & ( l . p o s i t i o n ! = " s t a t i c " | | ( l . p o s i t i o n = = " s t a t i c " & & ! r . m a t c h ( / l e f t | t o p | b o t t o m | r i g h t / ) ) ) ) { q [ r ] = m [ r ] } } o . a n i m a t e ( q , i , g , f u n c t i o n ( ) { i f ( t y p e o f   d ( t h i s ) . a t t r ( " s t y l e " ) = = " o b j e c t " ) { d ( t h i s ) . a t t r ( " s t y l e " ) [ " c s s T e x t " ] = " " ; d ( t h i s ) . a t t r ( " s t y l e " ) [ " c s s T e x t " ] = p } e l s e { d ( t h i s ) . a t t r ( " s t y l e " , p ) } i f ( h . a d d ) { d ( t h i s ) . a d d C l a s s ( h . a d d ) } i f ( h . r e m o v e ) { d ( t h i s ) . r e m o v e C l a s s ( h . r e m o v e ) } i f ( f ) { f . a p p l y ( t h i s , a r g u m e n t s ) } } ) } ) } } ; f u n c t i o n   c ( g , f ) { v a r   i = g [ 1 ] & & g [ 1 ] . c o n s t r u c t o r = = O b j e c t ? g [ 1 ] : { } ; i f ( f ) { i . m o d e = f } v a r   h = g [ 1 ] & & g [ 1 ] . c o n s t r u c t o r ! = O b j e c t ? g [ 1 ] : ( i . d u r a t i o n ? i . d u r a t i o n : g [ 2 ] ) ; h = d . f x . o f f ? 0 : t y p e o f   h = = = " n u m b e r " ? h : d . f x . s p e e d s [ h ] | | d . f x . s p e e d s . _ d e f a u l t ; v a r   j = i . c a l l b a c k | | ( d . i s F u n c t i o n ( g [ 1 ] ) & & g [ 1 ] ) | | ( d . i s F u n c t i o n ( g [ 2 ] ) & & g [ 2 ] ) | | ( d . i s F u n c t i o n ( g [ 3 ] ) & & g [ 3 ] ) ; r e t u r n [ g [ 0 ] , i , h , j ] } d . f n . e x t e n d ( { _ s h o w : d . f n . s h o w , _ h i d e : d . f n . h i d e , _ _ t o g g l e : d . f n . t o g g l e , _ a d d C l a s s : d . f n . a d d C l a s s , _ r e m o v e C l a s s : d . f n . r e m o v e C l a s s , _ t o g g l e C l a s s : d . f n . t o g g l e C l a s s , e f f e c t : f u n c t i o n ( g , f , h , i ) { r e t u r n   d . e f f e c t s [ g ] ? d . e f f e c t s [ g ] . c a l l ( t h i s , { m e t h o d : g , o p t i o n s : f | | { } , d u r a t i o n : h , c a l l b a c k : i } ) : n u l l } , s h o w : f u n c t i o n ( ) { i f ( ! a r g u m e n t s [ 0 ] | | ( a r g u m e n t s [ 0 ] . c o n s t r u c t o r = = N u m b e r | | ( / ( s l o w | n o r m a l | f a s t ) / ) . t e s t ( a r g u m e n t s [ 0 ] ) ) ) { r e t u r n   t h i s . _ s h o w . a p p l y ( t h i s , a r g u m e n t s ) } e l s e { r e t u r n   t h i s . e f f e c t . a p p l y ( t h i s , c ( a r g u m e n t s , " s h o w " ) ) } } , h i d e : f u n c t i o n ( ) { i f ( ! a r g u m e n t s [ 0 ] | | ( a r g u m e n t s [ 0 ] . c o n s t r u c t o r = = N u m b e r | | ( / ( s l o w | n o r m a l | f a s t ) / ) . t e s t ( a r g u m e n t s [ 0 ] ) ) ) { r e t u r n   t h i s . _ h i d e . a p p l y ( t h i s , a r g u m e n t s ) } e l s e { r e t u r n   t h i s . e f f e c t . a p p l y ( t h i s , c ( a r g u m e n t s , " h i d e " ) ) } } , t o g g l e : f u n c t i o n ( ) { i f ( ! a r g u m e n t s [ 0 ] | | ( a r g u m e n t s [ 0 ] . c o n s t r u c t o r = = N u m b e r | | ( / ( s l o w | n o r m a l | f a s t ) / ) . t e s t ( a r g u m e n t s [ 0 ] ) ) | | ( a r g u m e n t s [ 0 ] . c o n s t r u c t o r = = F u n c t i o n ) ) { r e t u r n   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 { r e t u r n   t h i s . e f f e c t . a p p l y ( t h i s , c ( a r g u m e n t s , " t o g g l e " ) ) } } , a d d C l a s s : f u n c t i o n ( g , f , i , h ) { r e t u r n   f ? d . e f f e c t s . a n i m a t e C l a s s . a p p l y ( t h i s , [ { a d d : g } , f , i , h ] ) : t h i s . _ a d d C l a s s ( g ) } , r e m o v e C l a s s : f u n c t i o n ( g , f , i , h ) { r e t u r n   f ? d . e f f e c t s . a n i m a t e C l a s s . a p p l y ( t h i s , [ { r e m o v e : g } , f , i , h ] ) : t h i s . _ r e m o v e C l a s s ( g ) } , t o g g l e C l a s s : f u n c t i o n ( g , f , i , h ) { r e t u r n ( ( t y p e o f   f ! = = " b o o l e a n " ) & & f ) ? d . e f f e c t s . a n i m a t e C l a s s . a p p l y ( t h i s , [ { t o g g l e : g } , f , i , h ] ) : t h i s . _ t o g g l e C l a s s ( g , f ) } , m o r p h : f u n c t i o n ( f , h , g , j , i ) { r e t u r n   d . e f f e c t s . a n i m a t e C l a s s . a p p l y ( t h i s , [ { a d d : h , r e m o v e : f } , g , j , i ] ) } , s w i t c h C l a s s : f u n c t i o n ( ) { r e t u r n   t h i s . m o r p h . a p p l y ( t h i s , a r g u m e n t s ) } , c s s U n i t : f u n c t i o n ( f ) { v a r   g = t h i s . c s s ( f ) , h = [ ] ; d . e a c h ( [ " e m " , " p x " , " % " , " p t " ] , f u n c t i o n ( j , k ) { i f ( g . i n d e x O f ( k ) > 0 ) { h = [ p a r s e F l o a t ( g ) , k ] } } ) ; r e t u r n   h } } ) ; d . e a c h ( [ " b a c k g r o u n d C o l o r " , " b o r d e r B o t t o m C o l o r " , " b o r d e r L e f t C o l o r " , " b o r d e r R i g h t C o l o r " , " b o r d e r T o p C o l o r " , " c o l o r " , " o u t l i n e C o l o r " ] , f u n c t i o n ( g , f ) { d . f x . s t e p [ f ] = f u n c t i o n ( h ) { i f ( h . s t a t e = = 0 ) { h . s t a r t = e ( h . e l e m , f ) ; h . e n d = b ( h . e n d ) } h . e l e m . s t y l e [ f ] = " r g b ( " + [ M a t h . m a x ( M a t h . m i n ( p a r s e I n t ( ( h . p o s * ( h . e n d [ 0 ] - h . s t a r t [ 0 ] ) ) + h . s t a r t [ 0 ] , 1 0 ) , 2 5 5 ) , 0 ) , M a t h . m a x ( M a t h . m i n ( p a r s e I n t ( ( h . p o s * ( h . e n d [ 1 ] - h . s t a r t [ 1 ] ) ) + h . s t a r t [ 1 ] , 1 0 ) , 2 5 5 ) , 0 ) , M a t h . m a x ( M a t h . m i n ( p a r s e I n t ( ( h . p o s * ( h . e n d [ 2 ] - h . s t a r t [ 2 ] ) ) + h . s t a r t [ 2 ] , 1 0 ) , 2 5 5 ) , 0 ) ] . j o i n ( " , " ) + " ) " } } ) ; f u n c t i o n   b ( g ) { v a r   f ; i f ( g & & g . c o n s t r u c t o r = = A r r a y & & g . l e n g t h = = 3 ) { r e t u r n   g } i f ( f = / r g b \ ( \ s * ( [ 0 - 9 ] { 1 , 3 } ) \ s * , \ s * ( [ 0 - 9 ] { 1 , 3 } ) \ s * , \ s * ( [ 0 - 9 ] { 1 , 3 } ) \ s * \ ) / . e x e c ( g ) ) { r e t u r n [ p a r s e I n t ( f [ 1 ] , 1 0 ) , p a r s e I n t ( f [ 2 ] , 1 0 ) , p a r s e I n t ( f [ 3 ] , 1 0 ) ] } i f ( f = / r g b \ ( \ s * ( [ 0 - 9 ] + ( ? : \ . [ 0 - 9 ] + ) ? ) \ % \ s * , \ s * ( [ 0 - 9 ] + ( ? : \ . [ 0 - 9 ] + ) ? ) \ % \ s * , \ s * ( [ 0 - 9 ] + ( ? : \ . [ 0 - 9 ] + ) ? ) \ % \ s * \ ) / . e x e c ( g ) ) { r e t u r n [ p a r s e F l o a t ( f [ 1 ] ) * 2 . 5 5 , p a r s e F l o a t ( f [ 2 ] ) * 2 . 5 5 , p a r s e F l o a t ( f [ 3 ] ) * 2 . 5 5 ] } i f ( f = / # ( [ a - f A - F 0 - 9 ] { 2 } ) ( [ a - f A - F 0 - 9 ] { 2 } ) ( [ a - f A - F 0 - 9 ] { 2 } ) / . e x e c ( g ) ) { r e t u r n [ p a r s e I n t ( f [ 1 ] , 1 6 ) , p a r s e I n t ( f [ 2 ] , 1 6 ) , p a r s e I n t ( f [ 3 ] , 1 6 ) ] } i f ( f = / # ( [ a - f A - F 0 - 9 ] ) ( [ a - f A - F 0 - 9 ] ) ( [ a - f A - F 0 - 9 ] ) / . e x e c ( g ) ) { r e t u r n [ p a r s e I n t ( f [ 1 ] + f [ 1 ] , 1 6 ) , p a r s e I n t ( f [ 2 ] + f [ 2 ] , 1 6 ) , p a r s e I n t ( f [ 3 ] + f [ 3 ] , 1 6 ) ] } i f ( f = / r g b a \ ( 0 ,   0 ,   0 ,   0 \ ) / . e x e c ( g ) ) { r e t u r n   a . t r a n s p a r e n t } r e t u r n   a [ d . t r i m ( g ) . t o L o w e r C a s e ( ) ] } f u n c t i o n   e ( h , f ) { v a r   g ; d o { g = d . c u r C S S ( h , f ) ; i f ( g ! = " " & & g ! = " t r a n s p a r e n t " | | d . n o d e N a m e ( h , " b o d y " ) ) { b r e a k } f = " b a c k g r o u n d C o l o r " } w h i l e ( h = h . p a r e n t N o d e ) ; r e t u r n   b ( g ) } v a r   a = { a q u a : [ 0 , 2 5 5 , 2 5 5 ] , a z u r e : [ 2 4 0 , 2 5 5 , 2 5 5 ] , b e i g e : [ 2 4 5 , 2 4 5 , 2 2 0 ] , b l a c k : [ 0 , 0 , 0 ] , b l u e : [ 0 , 0 , 2 5 5 ] , b r o w n : [ 1 6 5 , 4 2 , 4 2 ] , c y a n : [ 0 , 2 5 5 , 2 5 5 ] , d a r k b l u e : [ 0 , 0 , 1 3 9 ] , d a r k c y a n : [ 0 , 1 3 9 , 1 3 9 ] , d a r k g r e y : [ 1 6 9 , 1 6 9 , 1 6 9 ] , d a r k g r e e n : [ 0 , 1 0 0 , 0 ] , d a r k k h a k i : [ 1 8 9 , 1 8 3 , 1 0 7 ] , d a r k m a g e n t a : [ 1 3 9 , 0 , 1 3 9 ] , d a r k o l i v e g r e e n : [ 8 5 , 1 0 7 , 4 7 ] , d a r k o r a n g e : [ 2 5 5 , 1 4 0 , 0 ] , d a r k o r c h i d : [ 1 5 3 , 5 0 , 2 0 4 ] , d a r k r e d : [ 1 3 9 , 0 , 0 ] , d a r k s a l m o n : [ 2 3 3 , 1 5 0 , 1 2 2 ] , d a r k v i o l e t : [ 1 4 8 , 0 , 2 1 1 ] , f u c h s i a : [ 2 5 5 , 0 , 2 5 5 ] , g o l d : [ 2 5 5 , 2 1 5 , 0 ] , g r e e n : [ 0 , 1 2 8 , 0 ] , i n d i g o : [ 7 5 , 0 , 1 3 0 ] , k h a k i : [ 2 4 0 , 2 3 0 , 1 4 0 ] , l i g h t b l u e : [ 1 7 3 , 2 1 6 , 2 3 0 ] , l i g h t c y a n : [ 2 2 4 , 2 5 5 , 2 5 5 ] , l i g h t g r e e n : [ 1 4 4 , 2 3 8 , 1 4 4 ] , l i g h t g r e y : [ 2 1 1 , 2 1 1 , 2 1 1 ] , l i g h t p i n k : [ 2 5 5 , 1 8 2 , 1 9 3 ] , l i g h t y e l l o w : [ 2 5 5 , 2 5 5 , 2 2 4 ] , l i m e : [ 0 , 2 5 5 , 0 ] , m a g e n t a : [ 2 5 5 , 0 , 2 5 5 ] , m a r o o n : [ 1 2 8 , 0 , 0 ] , n a v y : [ 0 , 0 , 1 2 8 ] , o l i v e : [ 1 2 8 , 1 2 8 , 0 ] , o r a n g e : [ 2 5 5 , 1 6 5 , 0 ] , p i n k : [ 2 5 5 , 1 9 2 , 2 0 3 ] , p u r p l e : [ 1 2 8 , 0 , 1 2 8 ] , v i o l e t : [ 1 2 8 , 0 , 1 2 8 ] , r e d : [ 2 5 5 , 0 , 0 ] , s i l v e r : [ 1 9 2 , 1 9 2 , 1 9 2 ] , w h i t e : [ 2 5 5 , 2 5 5 , 2 5 5 ] , y e l l o w : [ 2 5 5 , 2 5 5 , 0 ] , t r a n s p a r e n t : [ 2 5 5 , 2 5 5 , 2 5 5 ] } ; d . e a s i n g . j s w i n g = d . e a s i n g . s w i n g ; d . e x t e n d ( d . e a s i n g , { d e f : " e a s e O u t Q u a d " , s w i n g : f u n c t i o n ( g , h , f , j , i ) { r e t u r n   d . e a s i n g [ d . e a s i n g . d e f ] ( g , h , f , j , i ) } , e a s e I n Q u a d : f u n c t i o n ( g , h , f , j , i ) { r e t u r n   j * ( h / = i ) * h + f } , e a s e O u t Q u a d : f u n c t i o n ( g , h , f , j , i ) { r e t u r n   - j * ( h / = i ) * ( h - 2 ) + f } , e a s e I n O u t Q u a d : f u n c t i o n ( g , h , f , j , i ) { i f ( ( h / = i / 2 ) < 1 ) { r e t u r n   j / 2 * h * h + f } r e t u r n   - j / 2 * ( ( - - h ) * ( h - 2 ) - 1 ) + f } , e a s e I n C u b i c : f u n c t i o n ( g , h , f , j , i ) { r e t u r n   j * ( h / = i ) * h * h + f } , e a s e O u t C u b i c : f u n c t i o n ( g , h , f , j , i ) { r e t u r n   j * ( ( h = h / i - 1 ) * h * h + 1 ) + f } , e a s e I n O u t C u b i c : f u n c t i o n ( g , h , f , j , i ) { i f ( ( h / = i / 2 ) < 1 ) { r e t u r n   j / 2 * h * h * h + f } r e t u r n   j / 2 * ( ( h - = 2 ) * h * h + 2 ) + f } , e a s e I n Q u a r t : f u n c t i o n ( g , h , f , j , i ) { r e t u r n   j * ( h / = i ) * h * h * h + f } , e a s e O u t Q u a r t : f u n c t i o n ( g , h , f , j , i ) { r e t u r n   - j * ( ( h = h / i - 1 ) * h * h * h - 1 ) + f } , e a s e I n O u t Q u a r t : f u n c t i o n ( g , h , f , j , i ) { i f ( ( h / = i / 2 ) < 1 ) { r e t u r n   j / 2 * h * h * h * h + f } r e t u r n   - j / 2 * ( ( h - = 2 ) * h * h * h - 2 ) + f } , e a s e I n Q u i n t : f u n c t i o n ( g , h , f , j , i ) { r e t u r n   j * ( h / = i ) * h * h * h * h + f } , e a s e O u t Q u i n t : f u n c t i o n ( g , h , f , j , i ) { r e t u r n   j * ( ( h = h / i - 1 ) * h * h * h * h + 1 ) + f } , e a s e I n O u t Q u i n t : f u n c t i o n ( g , h , f , j , i ) { i f ( ( h / = i / 2 ) < 1 ) { r e t u r n   j / 2 * h * h * h * h * h + f } r e t u r n   j / 2 * ( ( h - = 2 ) * h * h * h * h + 2 ) + f } , e a s e I n S i n e : f u n c t i o n ( g , h , f , j , i ) { r e t u r n   - j * M a t h . c o s ( h / i * ( M a t h . P I / 2 ) ) + j + f } , e a s e O u t S i n e : f u n c t i o n ( g , h , f , j , i ) { r e t u r n   j * M a t h . s i n ( h / i * ( M a t h . P I / 2 ) ) + f } , e a s e I n O u t S i n e : f u n c t i o n ( g , h , f , j , i ) { r e t u r n   - j / 2 * ( M a t h . c o s ( M a t h . P I * h / i ) - 1 ) + f } , e a s e I n E x p o : f u n c t i o n ( g , h , f , j , i ) { r e t u r n ( h = = 0 ) ? f : j * M a t h . p o w ( 2 , 1 0 * ( h / i - 1 ) ) + f } , e a s e O u t E x p o : f u n c t i o n ( g , h , f , j , i ) { r e t u r n ( h = = i ) ? f + j : j * ( - M a t h . p o w ( 2 , - 1 0 * h / i ) + 1 ) + f } , e a s e I n O u t E x p o : f u n c t i o n ( g , h , f , j , i ) { i f ( h = = 0 ) { r e t u r n   f } i f ( h = = i ) { r e t u r n   f + j } i f ( ( h / = i / 2 ) < 1 ) { r e t u r n   j / 2 * M a t h . p o w ( 2 , 1 0 * ( h - 1 ) ) + f } r e t u r n   j / 2 * ( - M a t h . p o w ( 2 , - 1 0 * - - h ) + 2 ) + f } , e a s e I n C i r c : f u n c t i o n ( g , h , f , j , i ) { r e t u r n   - j * ( M a t h . s q r t ( 1 - ( h / = i ) * h ) - 1 ) + f } , e a s e O u t C i r c : f u n c t i o n ( g , h , f , j , i ) { r e t u r n   j * M a t h . s q r t ( 1 - ( h = h / i - 1 ) * h ) + f } , e a s e I n O u t C i r c : f u n c t i o n ( g , h , f , j , i ) { i f ( ( h / = i / 2 ) < 1 ) { r e t u r n   - j / 2 * ( M a t h . s q r t ( 1 - h * h ) - 1 ) + f } r e t u r n   j / 2 * ( M a t h . s q r t ( 1 - ( h - = 2 ) * h ) + 1 ) + f } , e a s e I n E l a s t i c : f u n c t i o n ( g , i , f , m , l ) { v a r   j = 1 . 7 0 1 5 8 ; v a r   k = 0 ; v a r   h = m ; i f ( i = = 0 ) { r e t u r n   f } i f ( ( i / = l ) = = 1 ) { r e t u r n   f + m } i f ( ! k ) { k = l * 0 . 3 } i f ( h < M a t h . a b s ( m ) ) { h = m ; v a r   j = k / 4 } e l s e { v a r   j = k / ( 2 * M a t h . P I ) * M a t h . a s i n ( m / h ) } r e t u r n   - ( h * M a t h . p o w ( 2 , 1 0 * ( i - = 1 ) ) * M a t h . s i n ( ( i * l - j ) * ( 2 * M a t h . P I ) / k ) ) + f } , e a s e O u t E l a s t i c : f u n c t i o n ( g , i , f , m , l ) { v a r   j = 1 . 7 0 1 5 8 ; v a r   k = 0 ; v a r   h = m ; i f ( i = = 0 ) { r e t u r n   f } i f ( ( i / = l ) = = 1 ) { r e t u r n   f + m } i f ( ! k ) { k = l * 0 . 3 } i f ( h < M a t h . a b s ( m ) ) { h = m ; v a r   j = k / 4 } e l s e { v a r   j = k / ( 2 * M a t h . P I ) * M a t h . a s i n ( m / h ) } r e t u r n   h * M a t h . p o w ( 2 , - 1 0 * i ) * M a t h . s i n ( ( i * l - j ) * ( 2 * M a t h . P I ) / k ) + m + f } , e a s e I n O u t E l a s t i c : f u n c t i o n ( g , i , f , m , l ) { v a r   j = 1 . 7 0 1 5 8 ; v a r   k = 0 ; v a r   h = m ; i f ( i = = 0 ) { r e t u r n   f } i f ( ( i / = l / 2 ) = = 2 ) { r e t u r n   f + m } i f ( ! k ) { k = l * ( 0 . 3 * 1 . 5 ) } i f ( h < M a t h . a b s ( m ) ) { h = m ; v a r   j = k / 4 } e l s e { v a r   j = k / ( 2 * M a t h . P I ) * M a t h . a s i n ( m / h ) } i f ( i < 1 ) { r e t u r n   - 0 . 5 * ( h * M a t h . p o w ( 2 , 1 0 * ( i - = 1 ) ) * M a t h . s i n ( ( i * l - j ) * ( 2 * M a t h . P I ) / k ) ) + f } r e t u r n   h * M a t h . p o w ( 2 , - 1 0 * ( i - = 1 ) ) * M a t h . s i n ( ( i * l - j ) * ( 2 * M a t h . P I ) / k ) * 0 . 5 + m + f } , e a s e I n B a c k : f u n c t i o n ( g , h , f , k , j , i ) { i f ( i = = u n d e f i n e d ) { i = 1 . 7 0 1 5 8 } r e t u r n   k * ( h / = j ) * h * ( ( i + 1 ) * h - i ) + f } , e a s e O u t B a c k : f u n c t i o n ( g , h , f , k , j , i ) { i f ( i = = u n d e f i n e d ) { i = 1 . 7 0 1 5 8 } r e t u r n   k * ( ( h = h / j - 1 ) * h * ( ( i + 1 ) * h + i ) + 1 ) + f } , e a s e I n O u t B a c k : f u n c t i o n ( g , h , f , k , j , i ) { i f ( i = = u n d e f i n e d ) { i = 1 . 7 0 1 5 8 } i f ( ( h / = j / 2 ) < 1 ) { r e t u r n   k / 2 * ( h * h * ( ( ( i * = ( 1 . 5 2 5 ) ) + 1 ) * h - i ) ) + f } r e t u r n   k / 2 * ( ( h - = 2 ) * h * ( ( ( i * = ( 1 . 5 2 5 ) ) + 1 ) * h + i ) + 2 ) + f } , e a s e I n B o u n c e : f u n c t i o n ( g , h , f , j , i ) { r e t u r n   j - d . e a s i n g . e a s e O u t B o u n c e ( g , i - h , 0 , j , i ) + f } , e a s e O u t B o u n c e : f u n c t i o n ( g , h , f , j , i ) { i f ( ( h / = i ) < ( 1 / 2 . 7 5 ) ) { r e t u r n   j * ( 7 . 5 6 2 5 * h * h ) + f } e l s e { i f ( h < ( 2 / 2 . 7 5 ) ) { r e t u r n   j * ( 7 . 5 6 2 5 * ( h - = ( 1 . 5 / 2 . 7 5 ) ) * h + 0 . 7 5 ) + f } e l s e { i f ( h < ( 2 . 5 / 2 . 7 5 ) ) { r e t u r n   j * ( 7 . 5 6 2 5 * ( h - = ( 2 . 2 5 / 2 . 7 5 ) ) * h + 0 . 9 3 7 5 ) + f } e l s e { r e t u r n   j * ( 7 . 5 6 2 5 * ( h - = ( 2 . 6 2 5 / 2 . 7 5 ) ) * h + 0 . 9 8 4 3 7 5 ) + f } } } } , e a s e I n O u t B o u n c e : f u n c t i o n ( g , h , f , j , i ) { i f ( h < i / 2 ) { r e t u r n   d . e a s i n g . e a s e I n B o u n c e ( g , h * 2 , 0 , j , i ) * 0 . 5 + f } r e t u r n   d . e a s i n g . e a s e O u t B o u n c e ( g , h * 2 - i , 0 , j , i ) * 0 . 5 + j * 0 . 5 + f } } ) } ) ( j Q u e r y ) ; ; / *  
   *   j Q u e r y   U I   E f f e c t s   B l i n d   1 . 7 . 1  
   *  
   *   C o p y r i g h t   ( c )   2 0 0 9   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 / E f f e c t s / B l i n d  
   *  
   *   D e p e n d s :  
   * 	 e f f e c t s . c o r e . j s  
   * /  
 ( f u n c t i o n ( a ) { a . e f f e c t s . b l i n d = f u n c t i o n ( b ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   d = a ( t h i s ) , c = [ " p o s i t i o n " , " t o p " , " l e f t " ] ; v a r   h = a . e f f e c t s . s e t M o d e ( d , b . o p t i o n s . m o d e | | " h i d e " ) ; v a r   g = b . o p t i o n s . d i r e c t i o n | | " v e r t i c a l " ; a . e f f e c t s . s a v e ( d , c ) ; d . s h o w ( ) ; v a r   j = a . e f f e c t s . c r e a t e W r a p p e r ( d ) . c s s ( { o v e r f l o w : " h i d d e n " } ) ; v a r   e = ( g = = " v e r t i c a l " ) ? " h e i g h t " : " w i d t h " ; v a r   i = ( g = = " v e r t i c a l " ) ? j . h e i g h t ( ) : j . w i d t h ( ) ; i f ( h = = " s h o w " ) { j . c s s ( e , 0 ) } v a r   f = { } ; f [ e ] = h = = " s h o w " ? i : 0 ; j . a n i m a t e ( f , b . d u r a t i o n , b . o p t i o n s . e a s i n g , f u n c t i o n ( ) { i f ( h = = " h i d e " ) { d . h i d e ( ) } a . e f f e c t s . r e s t o r e ( d , c ) ; a . e f f e c t s . r e m o v e W r a p p e r ( d ) ; i f ( b . c a l l b a c k ) { b . c a l l b a c k . a p p l y ( d [ 0 ] , a r g u m e n t s ) } d . d e q u e u e ( ) } ) } ) } } ) ( j Q u e r y ) ; ; / *  
   *   j Q u e r y   U I   E f f e c t s   B o u n c e   1 . 7 . 1  
   *  
   *   C o p y r i g h t   ( c )   2 0 0 9   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 / E f f e c t s / B o u n c e  
   *  
   *   D e p e n d s :  
   * 	 e f f e c t s . c o r e . j s  
   * /  
 ( f u n c t i o n ( a ) { a . e f f e c t s . b o u n c e = f u n c t i o n ( b ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   e = a ( t h i s ) , l = [ " p o s i t i o n " , " t o p " , " l e f t " ] ; v a r   k = a . e f f e c t s . s e t M o d e ( e , b . o p t i o n s . m o d e | | " e f f e c t " ) ; v a r   n = b . o p t i o n s . d i r e c t i o n | | " u p " ; v a r   c = b . o p t i o n s . d i s t a n c e | | 2 0 ; v a r   d = b . o p t i o n s . t i m e s | | 5 ; v a r   g = b . d u r a t i o n | | 2 5 0 ; i f ( / s h o w | h i d e / . t e s t ( k ) ) { l . p u s h ( " o p a c i t y " ) } a . e f f e c t s . s a v e ( e , l ) ; e . s h o w ( ) ; a . e f f e c t s . c r e a t e W r a p p e r ( e ) ; v a r   f = ( n = = " u p " | | n = = " d o w n " ) ? " t o p " : " l e f t " ; v a r   p = ( n = = " u p " | | n = = " l e f t " ) ? " p o s " : " n e g " ; v a r   c = b . o p t i o n s . d i s t a n c e | | ( f = = " t o p " ? e . o u t e r H e i g h t ( { m a r g i n : t r u e } ) / 3 : e . o u t e r W i d t h ( { m a r g i n : t r u e } ) / 3 ) ; i f ( k = = " s h o w " ) { e . c s s ( " o p a c i t y " , 0 ) . c s s ( f , p = = " p o s " ? - c : c ) } i f ( k = = " h i d e " ) { c = c / ( d * 2 ) } i f ( k ! = " h i d e " ) { d - - } i f ( k = = " s h o w " ) { v a r   h = { o p a c i t y : 1 } ; h [ f ] = ( p = = " p o s " ? " + = " : " - = " ) + c ; e . a n i m a t e ( h , g / 2 , b . o p t i o n s . e a s i n g ) ; c = c / 2 ; d - - } f o r ( v a r   j = 0 ; j < d ; j + + ) { v a r   o = { } , m = { } ; o [ f ] = ( p = = " p o s " ? " - = " : " + = " ) + c ; m [ f ] = ( p = = " p o s " ? " + = " : " - = " ) + c ; e . a n i m a t e ( o , g / 2 , b . o p t i o n s . e a s i n g ) . a n i m a t e ( m , g / 2 , b . o p t i o n s . e a s i n g ) ; c = ( k = = " h i d e " ) ? c * 2 : c / 2 } i f ( k = = " h i d e " ) { v a r   h = { o p a c i t y : 0 } ; h [ f ] = ( p = = " p o s " ? " - = " : " + = " ) + c ; e . a n i m a t e ( h , g / 2 , b . o p t i o n s . e a s i n g , f u n c t i o n ( ) { e . h i d e ( ) ; a . e f f e c t s . r e s t o r e ( e , l ) ; a . e f f e c t s . r e m o v e W r a p p e r ( e ) ; i f ( b . c a l l b a c k ) { b . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) } } ) } e l s e { v a r   o = { } , m = { } ; o [ f ] = ( p = = " p o s " ? " - = " : " + = " ) + c ; m [ f ] = ( p = = " p o s " ? " + = " : " - = " ) + c ; e . a n i m a t e ( o , g / 2 , b . o p t i o n s . e a s i n g ) . a n i m a t e ( m , g / 2 , b . o p t i o n s . e a s i n g , f u n c t i o n ( ) { a . e f f e c t s . r e s t o r e ( e , l ) ; a . e f f e c t s . r e m o v e W r a p p e r ( e ) ; i f ( b . c a l l b a c k ) { b . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) } } ) } e . q u e u e ( " f x " , f u n c t i o n ( ) { e . d e q u e u e ( ) } ) ; e . d e q u e u e ( ) } ) } } ) ( j Q u e r y ) ; ; / *  
   *   j Q u e r y   U I   E f f e c t s   C l i p   1 . 7 . 1  
   *  
   *   C o p y r i g h t   ( c )   2 0 0 9   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 / E f f e c t s / C l i p  
   *  
   *   D e p e n d s :  
   * 	 e f f e c t s . c o r e . j s  
   * /  
 ( f u n c t i o n ( a ) { a . e f f e c t s . c l i p = f u n c t i o n ( b ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   f = a ( t h i s ) , j = [ " p o s i t i o n " , " t o p " , " l e f t " , " h e i g h t " , " w i d t h " ] ; v a r   i = a . e f f e c t s . s e t M o d e ( f , b . o p t i o n s . m o d e | | " h i d e " ) ; v a r   k = b . o p t i o n s . d i r e c t i o n | | " v e r t i c a l " ; a . e f f e c t s . s a v e ( f , j ) ; f . s h o w ( ) ; v a r   c = a . e f f e c t s . c r e a t e W r a p p e r ( f ) . c s s ( { o v e r f l o w : " h i d d e n " } ) ; v a r   e = f [ 0 ] . t a g N a m e = = " I M G " ? c : f ; v a r   g = { s i z e : ( k = = " v e r t i c a l " ) ? " h e i g h t " : " w i d t h " , p o s i t i o n : ( k = = " v e r t i c a l " ) ? " t o p " : " l e f t " } ; v a r   d = ( k = = " v e r t i c a l " ) ? e . h e i g h t ( ) : e . w i d t h ( ) ; i f ( i = = " s h o w " ) { e . c s s ( g . s i z e , 0 ) ; e . c s s ( g . p o s i t i o n , d / 2 ) } v a r   h = { } ; h [ g . s i z e ] = i = = " s h o w " ? d : 0 ; h [ g . p o s i t i o n ] = i = = " s h o w " ? 0 : d / 2 ; e . a n i m a t e ( h , { q u e u e : f a l s e , d u r a t i o n : b . d u r a t i o n , e a s i n g : b . o p t i o n s . e a s i n g , c o m p l e t e : f u n c t i o n ( ) { i f ( i = = " h i d e " ) { f . h i d e ( ) } a . e f f e c t s . r e s t o r e ( f , j ) ; a . e f f e c t s . r e m o v e W r a p p e r ( f ) ; i f ( b . c a l l b a c k ) { b . c a l l b a c k . a p p l y ( f [ 0 ] , a r g u m e n t s ) } f . d e q u e u e ( ) } } ) } ) } } ) ( j Q u e r y ) ; ; / *  
   *   j Q u e r y   U I   E f f e c t s   D r o p   1 . 7 . 1  
   *  
   *   C o p y r i g h t   ( c )   2 0 0 9   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 / E f f e c t s / D r o p  
   *  
   *   D e p e n d s :  
   * 	 e f f e c t s . c o r e . j s  
   * /  
 ( f u n c t i o n ( a ) { a . e f f e c t s . d r o p = f u n c t i o n ( b ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   e = a ( t h i s ) , d = [ " p o s i t i o n " , " t o p " , " l e f t " , " o p a c i t y " ] ; v a r   i = a . e f f e c t s . s e t M o d e ( e , b . o p t i o n s . m o d e | | " h i d e " ) ; v a r   h = b . o p t i o n s . d i r e c t i o n | | " l e f t " ; a . e f f e c t s . s a v e ( e , d ) ; e . s h o w ( ) ; a . e f f e c t s . c r e a t e W r a p p e r ( e ) ; v a r   f = ( h = = " u p " | | h = = " d o w n " ) ? " t o p " : " l e f t " ; v a r   c = ( h = = " u p " | | h = = " l e f t " ) ? " p o s " : " n e g " ; v a r   j = b . o p t i o n s . d i s t a n c e | | ( f = = " t o p " ? e . o u t e r H e i g h t ( { m a r g i n : t r u e } ) / 2 : e . o u t e r W i d t h ( { m a r g i n : t r u e } ) / 2 ) ; i f ( i = = " s h o w " ) { e . c s s ( " o p a c i t y " , 0 ) . c s s ( f , c = = " p o s " ? - j : j ) } v a r   g = { o p a c i t y : i = = " s h o w " ? 1 : 0 } ; g [ f ] = ( i = = " s h o w " ? ( c = = " p o s " ? " + = " : " - = " ) : ( c = = " p o s " ? " - = " : " + = " ) ) + j ; e . a n i m a t e ( g , { q u e u e : f a l s e , d u r a t i o n : b . d u r a t i o n , e a s i n g : b . o p t i o n s . e a s i n g , c o m p l e t e : f u n c t i o n ( ) { i f ( i = = " h i d e " ) { e . h i d e ( ) } a . e f f e c t s . r e s t o r e ( e , d ) ; a . e f f e c t s . r e m o v e W r a p p e r ( e ) ; i f ( b . c a l l b a c k ) { b . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) } e . d e q u e u e ( ) } } ) } ) } } ) ( j Q u e r y ) ; ; / *  
   *   j Q u e r y   U I   E f f e c t s   E x p l o d e   1 . 7 . 1  
   *  
   *   C o p y r i g h t   ( c )   2 0 0 9   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 / E f f e c t s / E x p l o d e  
   *  
   *   D e p e n d s :  
   * 	 e f f e c t s . c o r e . j s  
   * /  
 ( f u n c t i o n ( a ) { a . e f f e c t s . e x p l o d e = f u n c t i o n ( b ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   k = b . o p t i o n s . p i e c e s ? M a t h . r o u n d ( M a t h . s q r t ( b . o p t i o n s . p i e c e s ) ) : 3 ; v a r   e = b . o p t i o n s . p i e c e s ? M a t h . r o u n d ( M a t h . s q r t ( b . o p t i o n s . p i e c e s ) ) : 3 ; b . o p t i o n s . m o d e = b . o p t i o n s . m o d e = = " t o g g l e " ? ( a ( t h i s ) . i s ( " : v i s i b l e " ) ? " h i d e " : " s h o w " ) : b . o p t i o n s . m o d e ; v a r   h = a ( t h i s ) . s h o w ( ) . c s s ( " v i s i b i l i t y " , " h i d d e n " ) ; v a r   l = h . o f f s e t ( ) ; l . t o p - = p a r s e I n t ( h . c s s ( " m a r g i n T o p " ) , 1 0 ) | | 0 ; l . l e f t - = p a r s e I n t ( h . c s s ( " m a r g i n L e f t " ) , 1 0 ) | | 0 ; v a r   g = h . o u t e r W i d t h ( t r u e ) ; v a r   c = h . o u t e r H e i g h t ( t r u e ) ; f o r ( v a r   f = 0 ; f < k ; f + + ) { f o r ( v a r   d = 0 ; d < e ; d + + ) { h . c l o n e ( ) . a p p e n d T o ( " b o d y " ) . w r a p ( " < d i v > < / d i v > " ) . c s s ( { p o s i t i o n : " a b s o l u t e " , v i s i b i l i t y : " v i s i b l e " , l e f t : - d * ( g / e ) , t o p : - f * ( c / k ) } ) . p a r e n t ( ) . a d d C l a s s ( " u i - e f f e c t s - e x p l o d e " ) . c s s ( { p o s i t i o n : " a b s o l u t e " , o v e r f l o w : " h i d d e n " , w i d t h : g / e , h e i g h t : c / k , l e f t : l . l e f t + d * ( g / e ) + ( b . o p t i o n s . m o d e = = " s h o w " ? ( d - M a t h . f l o o r ( e / 2 ) ) * ( g / e ) : 0 ) , t o p : l . t o p + f * ( c / k ) + ( b . o p t i o n s . m o d e = = " s h o w " ? ( f - M a t h . f l o o r ( k / 2 ) ) * ( c / k ) : 0 ) , o p a c i t y : b . o p t i o n s . m o d e = = " s h o w " ? 0 : 1 } ) . a n i m a t e ( { l e f t : l . l e f t + d * ( g / e ) + ( b . o p t i o n s . m o d e = = " s h o w " ? 0 : ( d - M a t h . f l o o r ( e / 2 ) ) * ( g / e ) ) , t o p : l . t o p + f * ( c / k ) + ( b . o p t i o n s . m o d e = = " s h o w " ? 0 : ( f - M a t h . f l o o r ( k / 2 ) ) * ( c / k ) ) , o p a c i t y : b . o p t i o n s . m o d e = = " s h o w " ? 1 : 0 } , b . d u r a t i o n | | 5 0 0 ) } } s e t T i m e o u t ( f u n c t i o n ( ) { b . o p t i o n s . m o d e = = " s h o w " ? h . c s s ( { v i s i b i l i t y : " v i s i b l e " } ) : h . c s s ( { v i s i b i l i t y : " v i s i b l e " } ) . h i d e ( ) ; i f ( b . c a l l b a c k ) { b . c a l l b a c k . a p p l y ( h [ 0 ] ) } h . d e q u e u e ( ) ; a ( " d i v . u i - e f f e c t s - e x p l o d e " ) . r e m o v e ( ) } , b . d u r a t i o n | | 5 0 0 ) } ) } } ) ( j Q u e r y ) ; ; / *  
   *   j Q u e r y   U I   E f f e c t s   F o l d   1 . 7 . 1  
   *  
   *   C o p y r i g h t   ( c )   2 0 0 9   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 / E f f e c t s / F o l d  
   *  
   *   D e p e n d s :  
   * 	 e f f e c t s . c o r e . j s  
   * /  
 ( f u n c t i o n ( a ) { a . e f f e c t s . f o l d = f u n c t i o n ( b ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   e = a ( t h i s ) , k = [ " p o s i t i o n " , " t o p " , " l e f t " ] ; v a r   h = a . e f f e c t s . s e t M o d e ( e , b . o p t i o n s . m o d e | | " h i d e " ) ; v a r   o = b . o p t i o n s . s i z e | | 1 5 ; v a r   n = ! ( ! b . o p t i o n s . h o r i z F i r s t ) ; v a r   g = b . d u r a t i o n ? b . d u r a t i o n / 2 : a . f x . s p e e d s . _ d e f a u l t / 2 ; a . e f f e c t s . s a v e ( e , k ) ; e . s h o w ( ) ; v a r   d = a . e f f e c t s . c r e a t e W r a p p e r ( e ) . c s s ( { o v e r f l o w : " h i d d e n " } ) ; v a r   i = ( ( h = = " s h o w " ) ! = n ) ; v a r   f = i ? [ " w i d t h " , " h e i g h t " ] : [ " h e i g h t " , " w i d t h " ] ; v a r   c = i ? [ d . w i d t h ( ) , d . h e i g h t ( ) ] : [ d . h e i g h t ( ) , d . w i d t h ( ) ] ; v a r   j = / ( [ 0 - 9 ] + ) % / . e x e c ( o ) ; i f ( j ) { o = p a r s e I n t ( j [ 1 ] , 1 0 ) / 1 0 0 * c [ h = = " h i d e " ? 0 : 1 ] } i f ( h = = " s h o w " ) { d . c s s ( n ? { h e i g h t : 0 , w i d t h : o } : { h e i g h t : o , w i d t h : 0 } ) } v a r   m = { } , l = { } ; m [ f [ 0 ] ] = h = = " s h o w " ? c [ 0 ] : o ; l [ f [ 1 ] ] = h = = " s h o w " ? c [ 1 ] : 0 ; d . a n i m a t e ( m , g , b . o p t i o n s . e a s i n g ) . a n i m a t e ( l , g , b . o p t i o n s . e a s i n g , f u n c t i o n ( ) { i f ( h = = " h i d e " ) { e . h i d e ( ) } a . e f f e c t s . r e s t o r e ( e , k ) ; a . e f f e c t s . r e m o v e W r a p p e r ( e ) ; i f ( b . c a l l b a c k ) { b . c a l l b a c k . a p p l y ( e [ 0 ] , a r g u m e n t s ) } e . d e q u e u e ( ) } ) } ) } } ) ( j Q u e r y ) ; ; / *  
   *   j Q u e r y   U I   E f f e c t s   H i g h l i g h t   1 . 7 . 1  
   *  
   *   C o p y r i g h t   ( c )   2 0 0 9   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 / E f f e c t s / H i g h l i g h t  
   *  
   *   D e p e n d s :  
   * 	 e f f e c t s . c o r e . j s  
   * /  
 ( f u n c t i o n ( a ) { a . e f f e c t s . h i g h l i g h t = f u n c t i o n ( b ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   e = a ( t h i s ) , d = [ " b a c k g r o u n d I m a g e " , " b a c k g r o u n d C o l o r " , " o p a c i t y " ] ; v a r   h = a . e f f e c t s . s e t M o d e ( e , b . o p t i o n s . m o d e | | " s h o w " ) ; v a r   c = b . o p t i o n s . c o l o r | | " # f f f f 9 9 " ; v a r   g = e . c s s ( " b a c k g r o u n d C o l o r " ) ; a . e f f e c t s . s a v e ( e , d ) ; e . s h o w ( ) ; e . c s s ( { b a c k g r o u n d I m a g e : " n o n e " , b a c k g r o u n d C o l o r : c } ) ; v a r   f = { b a c k g r o u n d C o l o r : g } ; i f ( h = = " h i d e " ) { f . o p a c i t y = 0 } e . a n i m a t e ( f , { q u e u e : f a l s e , d u r a t i o n : b . d u r a t i o n , e a s i n g : b . o p t i o n s . e a s i n g , c o m p l e t e : f u n c t i o n ( ) { i f ( h = = " h i d e " ) { e . h i d e ( ) } a . e f f e c t s . r e s t o r e ( e , d ) ; i f ( h = = " s h o w " & & a . b r o w s e r . m s i e ) { t h i s . 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 " ) } i f ( b . c a l l b a c k ) { b . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) } e . d e q u e u e ( ) } } ) } ) } } ) ( j Q u e r y ) ; ; / *  
   *   j Q u e r y   U I   E f f e c t s   P u l s a t e   1 . 7 . 1  
   *  
   *   C o p y r i g h t   ( c )   2 0 0 9   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 / E f f e c t s / P u l s a t e  
   *  
   *   D e p e n d s :  
   * 	 e f f e c t s . c o r e . j s  
   * /  
 ( f u n c t i o n ( a ) { a . e f f e c t s . p u l s a t e = f u n c t i o n ( b ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   d = a ( t h i s ) ; v a r   g = a . e f f e c t s . s e t M o d e ( d , b . o p t i o n s . m o d e | | " s h o w " ) ; v a r   f = b . o p t i o n s . t i m e s | | 5 ; v a r   e = b . d u r a t i o n ? b . d u r a t i o n / 2 : a . f x . s p e e d s . _ d e f a u l t / 2 ; i f ( g = = " h i d e " ) { f - - } i f ( d . i s ( " : h i d d e n " ) ) { d . c s s ( " o p a c i t y " , 0 ) ; d . s h o w ( ) ; d . a n i m a t e ( { o p a c i t y : 1 } , e , b . o p t i o n s . e a s i n g ) ; f = f - 2 } f o r ( v a r   c = 0 ; c < f ; c + + ) { d . a n i m a t e ( { o p a c i t y : 0 } , e , b . o p t i o n s . e a s i n g ) . a n i m a t e ( { o p a c i t y : 1 } , e , b . o p t i o n s . e a s i n g ) } i f ( g = = " h i d e " ) { d . a n i m a t e ( { o p a c i t y : 0 } , e , b . o p t i o n s . e a s i n g , f u n c t i o n ( ) { d . h i d e ( ) ; i f ( b . c a l l b a c k ) { b . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) } } ) } e l s e { d . a n i m a t e ( { o p a c i t y : 0 } , e , b . o p t i o n s . e a s i n g ) . a n i m a t e ( { o p a c i t y : 1 } , e , b . o p t i o n s . e a s i n g , f u n c t i o n ( ) { i f ( b . c a l l b a c k ) { b . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) } } ) } d . q u e u e ( " f x " , f u n c t i o n ( ) { d . d e q u e u e ( ) } ) ; d . d e q u e u e ( ) } ) } } ) ( j Q u e r y ) ; ; / *  
   *   j Q u e r y   U I   E f f e c t s   S c a l e   1 . 7 . 1  
   *  
   *   C o p y r i g h t   ( c )   2 0 0 9   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 / E f f e c t s / S c a l e  
   *  
   *   D e p e n d s :  
   * 	 e f f e c t s . c o r e . j s  
   * /  
 ( f u n c t i o n ( a ) { a . e f f e c t s . p u f f = f u n c t i o n ( b ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   f = a ( t h i s ) ; v a r   c = a . e x t e n d ( t r u e , { } , b . o p t i o n s ) ; v a r   h = a . e f f e c t s . s e t M o d e ( f , b . o p t i o n s . m o d e | | " h i d e " ) ; v a r   g = p a r s e I n t ( b . o p t i o n s . p e r c e n t , 1 0 ) | | 1 5 0 ; c . f a d e = t r u e ; v a r   e = { h e i g h t : f . h e i g h t ( ) , w i d t h : f . w i d t h ( ) } ; v a r   d = g / 1 0 0 ; f . f r o m = ( h = = " h i d e " ) ? e : { h e i g h t : e . h e i g h t * d , w i d t h : e . w i d t h * d } ; c . f r o m = f . f r o m ; c . p e r c e n t = ( h = = " h i d e " ) ? g : 1 0 0 ; c . m o d e = h ; f . e f f e c t ( " s c a l e " , c , b . d u r a t i o n , b . c a l l b a c k ) ; f . d e q u e u e ( ) } ) } ; a . e f f e c t s . s c a l e = f u n c t i o n ( b ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   g = a ( t h i s ) ; v a r   d = a . e x t e n d ( t r u e , { } , b . o p t i o n s ) ; v a r   j = a . e f f e c t s . s e t M o d e ( g , b . o p t i o n s . m o d e | | " e f f e c t " ) ; v a r   h = p a r s e I n t ( b . o p t i o n s . p e r c e n t , 1 0 ) | | ( p a r s e I n t ( b . o p t i o n s . p e r c e n t , 1 0 ) = = 0 ? 0 : ( j = = " h i d e " ? 0 : 1 0 0 ) ) ; v a r   i = b . o p t i o n s . d i r e c t i o n | | " b o t h " ; v a r   c = b . o p t i o n s . o r i g i n ; i f ( j ! = " e f f e c t " ) { d . o r i g i n = c | | [ " m i d d l e " , " c e n t e r " ] ; d . r e s t o r e = t r u e } v a r   f = { h e i g h t : g . h e i g h t ( ) , w i d t h : g . w i d t h ( ) } ; g . f r o m = b . o p t i o n s . f r o m | | ( j = = " s h o w " ? { h e i g h t : 0 , w i d t h : 0 } : f ) ; v a r   e = { y : i ! = " h o r i z o n t a l " ? ( h / 1 0 0 ) : 1 , x : i ! = " v e r t i c a l " ? ( h / 1 0 0 ) : 1 } ; g . t o = { h e i g h t : f . h e i g h t * e . y , w i d t h : f . w i d t h * e . x } ; i f ( b . o p t i o n s . f a d e ) { i f ( j = = " s h o w " ) { g . f r o m . o p a c i t y = 0 ; g . t o . o p a c i t y = 1 } i f ( j = = " h i d e " ) { g . f r o m . o p a c i t y = 1 ; g . t o . o p a c i t y = 0 } } d . f r o m = g . f r o m ; d . t o = g . t o ; d . m o d e = j ; g . e f f e c t ( " s i z e " , d , b . d u r a t i o n , b . c a l l b a c k ) ; g . d e q u e u e ( ) } ) } ; a . e f f e c t s . s i z e = f u n c t i o n ( b ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   c = a ( t h i s ) , n = [ " p o s i t i o n " , " t o p " , " l e f t " , " w i d t h " , " h e i g h t " , " o v e r f l o w " , " o p a c i t y " ] ; v a r   m = [ " p o s i t i o n " , " t o p " , " l e f t " , " o v e r f l o w " , " o p a c i t y " ] ; v a r   j = [ " w i d t h " , " h e i g h t " , " o v e r f l o w " ] ; v a r   p = [ " f o n t S i z e " ] ; v a r   k = [ " b o r d e r T o p W i d t h " , " b o r d e r B o t t o m W i d t h " , " p a d d i n g T o p " , " p a d d i n g B o t t o m " ] ; v a r   f = [ " b o r d e r L e f t W i d t h " , " b o r d e r R i g h t W i d t h " , " p a d d i n g L e f t " , " p a d d i n g R i g h t " ] ; v a r   g = a . e f f e c t s . s e t M o d e ( c , b . o p t i o n s . m o d e | | " e f f e c t " ) ; v a r   i = b . o p t i o n s . r e s t o r e | | f a l s e ; v a r   e = b . o p t i o n s . s c a l e | | " b o t h " ; v a r   o = b . o p t i o n s . o r i g i n ; v a r   d = { h e i g h t : c . h e i g h t ( ) , w i d t h : c . w i d t h ( ) } ; c . f r o m = b . o p t i o n s . f r o m | | d ; c . t o = b . o p t i o n s . t o | | d ; i f ( o ) { v a r   h = a . e f f e c t s . g e t B a s e l i n e ( o , d ) ; c . f r o m . t o p = ( d . h e i g h t - c . f r o m . h e i g h t ) * h . y ; c . f r o m . l e f t = ( d . w i d t h - c . f r o m . w i d t h ) * h . x ; c . t o . t o p = ( d . h e i g h t - c . t o . h e i g h t ) * h . y ; c . t o . l e f t = ( d . w i d t h - c . t o . w i d t h ) * h . x } v a r   l = { f r o m : { y : c . f r o m . h e i g h t / d . h e i g h t , x : c . f r o m . w i d t h / d . w i d t h } , t o : { y : c . t o . h e i g h t / d . h e i g h t , x : c . t o . w i d t h / d . w i d t h } } ; i f ( e = = " b o x " | | e = = " b o t h " ) { i f ( l . f r o m . y ! = l . t o . y ) { n = n . c o n c a t ( k ) ; c . f r o m = a . e f f e c t s . s e t T r a n s i t i o n ( c , k , l . f r o m . y , c . f r o m ) ; c . t o = a . e f f e c t s . s e t T r a n s i t i o n ( c , k , l . t o . y , c . t o ) } i f ( l . f r o m . x ! = l . t o . x ) { n = n . c o n c a t ( f ) ; c . f r o m = a . e f f e c t s . s e t T r a n s i t i o n ( c , f , l . f r o m . x , c . f r o m ) ; c . t o = a . e f f e c t s . s e t T r a n s i t i o n ( c , f , l . t o . x , c . t o ) } } i f ( e = = " c o n t e n t " | | e = = " b o t h " ) { i f ( l . f r o m . y ! = l . t o . y ) { n = n . c o n c a t ( p ) ; c . f r o m = a . e f f e c t s . s e t T r a n s i t i o n ( c , p , l . f r o m . y , c . f r o m ) ; c . t o = a . e f f e c t s . s e t T r a n s i t i o n ( c , p , l . t o . y , c . t o ) } } a . e f f e c t s . s a v e ( c , i ? n : m ) ; c . s h o w ( ) ; a . e f f e c t s . c r e a t e W r a p p e r ( c ) ; c . c s s ( " o v e r f l o w " , " h i d d e n " ) . c s s ( c . f r o m ) ; i f ( e = = " c o n t e n t " | | e = = " b o t h " ) { k = k . c o n c a t ( [ " m a r g i n T o p " , " m a r g i n B o t t o m " ] ) . c o n c a t ( p ) ; f = f . c o n c a t ( [ " m a r g i n L e f t " , " m a r g i n R i g h t " ] ) ; j = n . c o n c a t ( k ) . c o n c a t ( f ) ; c . f i n d ( " * [ w i d t h ] " ) . e a c h ( f u n c t i o n ( ) { c h i l d = a ( t h i s ) ; i f ( i ) { a . e f f e c t s . s a v e ( c h i l d , j ) } v a r   q = { h e i g h t : c h i l d . h e i g h t ( ) , w i d t h : c h i l d . w i d t h ( ) } ; c h i l d . f r o m = { h e i g h t : q . h e i g h t * l . f r o m . y , w i d t h : q . w i d t h * l . f r o m . x } ; c h i l d . t o = { h e i g h t : q . h e i g h t * l . t o . y , w i d t h : q . w i d t h * l . t o . x } ; i f ( l . f r o m . y ! = l . t o . y ) { c h i l d . f r o m = a . e f f e c t s . s e t T r a n s i t i o n ( c h i l d , k , l . f r o m . y , c h i l d . f r o m ) ; c h i l d . t o = a . e f f e c t s . s e t T r a n s i t i o n ( c h i l d , k , l . t o . y , c h i l d . t o ) } i f ( l . f r o m . x ! = l . t o . x ) { c h i l d . f r o m = a . e f f e c t s . s e t T r a n s i t i o n ( c h i l d , f , l . f r o m . x , c h i l d . f r o m ) ; c h i l d . t o = a . e f f e c t s . s e t T r a n s i t i o n ( c h i l d , f , l . t o . x , c h i l d . t o ) } c h i l d . c s s ( c h i l d . f r o m ) ; c h i l d . a n i m a t e ( c h i l d . t o , b . d u r a t i o n , b . o p t i o n s . e a s i n g , f u n c t i o n ( ) { i f ( i ) { a . e f f e c t s . r e s t o r e ( c h i l d , j ) } } ) } ) } c . a n i m a t e ( c . t o , { q u e u e : f a l s e , d u r a t i o n : b . d u r a t i o n , e a s i n g : b . o p t i o n s . e a s i n g , c o m p l e t e : f u n c t i o n ( ) { i f ( g = = " h i d e " ) { c . h i d e ( ) } a . e f f e c t s . r e s t o r e ( c , i ? n : m ) ; a . e f f e c t s . r e m o v e W r a p p e r ( c ) ; i f ( b . c a l l b a c k ) { b . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) } c . d e q u e u e ( ) } } ) } ) } } ) ( j Q u e r y ) ; ; / *  
   *   j Q u e r y   U I   E f f e c t s   S h a k e   1 . 7 . 1  
   *  
   *   C o p y r i g h t   ( c )   2 0 0 9   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 / E f f e c t s / S h a k e  
   *  
   *   D e p e n d s :  
   * 	 e f f e c t s . c o r e . j s  
   * /  
 ( f u n c t i o n ( a ) { a . e f f e c t s . s h a k e = f u n c t i o n ( b ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   e = a ( t h i s ) , l = [ " p o s i t i o n " , " t o p " , " l e f t " ] ; v a r   k = a . e f f e c t s . s e t M o d e ( e , b . o p t i o n s . m o d e | | " e f f e c t " ) ; v a r   n = b . o p t i o n s . d i r e c t i o n | | " l e f t " ; v a r   c = b . o p t i o n s . d i s t a n c e | | 2 0 ; v a r   d = b . o p t i o n s . t i m e s | | 3 ; v a r   g = b . d u r a t i o n | | b . o p t i o n s . d u r a t i o n | | 1 4 0 ; a . e f f e c t s . s a v e ( e , l ) ; e . s h o w ( ) ; a . e f f e c t s . c r e a t e W r a p p e r ( e ) ; v a r   f = ( n = = " u p " | | n = = " d o w n " ) ? " t o p " : " l e f t " ; v a r   p = ( n = = " u p " | | n = = " l e f t " ) ? " p o s " : " n e g " ; v a r   h = { } , o = { } , m = { } ; h [ f ] = ( p = = " p o s " ? " - = " : " + = " ) + c ; o [ f ] = ( p = = " p o s " ? " + = " : " - = " ) + c * 2 ; m [ f ] = ( p = = " p o s " ? " - = " : " + = " ) + c * 2 ; e . a n i m a t e ( h , g , b . o p t i o n s . e a s i n g ) ; f o r ( v a r   j = 1 ; j < d ; j + + ) { e . a n i m a t e ( o , g , b . o p t i o n s . e a s i n g ) . a n i m a t e ( m , g , b . o p t i o n s . e a s i n g ) } e . a n i m a t e ( o , g , b . o p t i o n s . e a s i n g ) . a n i m a t e ( h , g / 2 , b . o p t i o n s . e a s i n g , f u n c t i o n ( ) { a . e f f e c t s . r e s t o r e ( e , l ) ; a . e f f e c t s . r e m o v e W r a p p e r ( e ) ; i f ( b . c a l l b a c k ) { b . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) } } ) ; e . q u e u e ( " f x " , f u n c t i o n ( ) { e . d e q u e u e ( ) } ) ; e . d e q u e u e ( ) } ) } } ) ( j Q u e r y ) ; ; / *  
   *   j Q u e r y   U I   E f f e c t s   S l i d e   1 . 7 . 1  
   *  
   *   C o p y r i g h t   ( c )   2 0 0 9   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 / E f f e c t s / S l i d e  
   *  
   *   D e p e n d s :  
   * 	 e f f e c t s . c o r e . j s  
   * /  
 ( f u n c t i o n ( a ) { a . e f f e c t s . s l i d e = f u n c t i o n ( b ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   e = a ( t h i s ) , d = [ " p o s i t i o n " , " t o p " , " l e f t " ] ; v a r   i = a . e f f e c t s . s e t M o d e ( e , b . o p t i o n s . m o d e | | " s h o w " ) ; v a r   h = b . o p t i o n s . d i r e c t i o n | | " l e f t " ; a . e f f e c t s . s a v e ( e , d ) ; e . s h o w ( ) ; a . e f f e c t s . c r e a t e W r a p p e r ( e ) . c s s ( { o v e r f l o w : " h i d d e n " } ) ; v a r   f = ( h = = " u p " | | h = = " d o w n " ) ? " t o p " : " l e f t " ; v a r   c = ( h = = " u p " | | h = = " l e f t " ) ? " p o s " : " n e g " ; v a r   j = b . o p t i o n s . d i s t a n c e | | ( f = = " t o p " ? e . o u t e r H e i g h t ( { m a r g i n : t r u e } ) : e . o u t e r W i d t h ( { m a r g i n : t r u e } ) ) ; i f ( i = = " s h o w " ) { e . c s s ( f , c = = " p o s " ? - j : j ) } v a r   g = { } ; g [ f ] = ( i = = " s h o w " ? ( c = = " p o s " ? " + = " : " - = " ) : ( c = = " p o s " ? " - = " : " + = " ) ) + j ; e . a n i m a t e ( g , { q u e u e : f a l s e , d u r a t i o n : b . d u r a t i o n , e a s i n g : b . o p t i o n s . e a s i n g , c o m p l e t e : f u n c t i o n ( ) { i f ( i = = " h i d e " ) { e . h i d e ( ) } a . e f f e c t s . r e s t o r e ( e , d ) ; a . e f f e c t s . r e m o v e W r a p p e r ( e ) ; i f ( b . c a l l b a c k ) { b . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) } e . d e q u e u e ( ) } } ) } ) } } ) ( j Q u e r y ) ; ; / *  
   *   j Q u e r y   U I   E f f e c t s   T r a n s f e r   1 . 7 . 1  
   *  
   *   C o p y r i g h t   ( c )   2 0 0 9   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 / E f f e c t s / T r a n s f e r  
   *  
   *   D e p e n d s :  
   * 	 e f f e c t s . c o r e . j s  
   * /  
 ( f u n c t i o n ( a ) { a . e f f e c t s . t r a n s f e r = f u n c t i o n ( b ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   f = a ( t h i s ) , h = a ( b . o p t i o n s . t o ) , e = h . o f f s e t ( ) , g = { t o p : e . t o p , l e f t : e . l e f t , h e i g h t : h . i n n e r H e i g h t ( ) , w i d t h : h . i n n e r W i d t h ( ) } , d = f . o f f s e t ( ) , c = a ( ' < d i v   c l a s s = " u i - e f f e c t s - t r a n s f e r " > < / d i v > ' ) . a p p e n d T o ( d o c u m e n t . b o d y ) . a d d C l a s s ( b . o p t i o n s . c l a s s N a m e ) . c s s ( { t o p : d . t o p , l e f t : d . l e f t , h e i g h t : f . i n n e r H e i g h t ( ) , w i d t h : f . i n n e r W i d t h ( ) , p o s i t i o n : " a b s o l u t e " } ) . a n i m a t e ( g , b . d u r a t i o n , b . o p t i o n s . e a s i n g , f u n c t i o n ( ) { c . r e m o v e ( ) ; ( b . c a l l b a c k & & b . c a l l b a c k . a p p l y ( f [ 0 ] , a r g u m e n t s ) ) ; f . d e q u e u e ( ) } ) } ) } } ) ( j Q u e r y ) ; ; 
