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