ÿþv a r   P r o t o t y p e = { V e r s i o n : " 1 . 5 . 0 _ r c 1 " , S c r i p t F r a g m e n t : " ( ? : < s c r i p t . * ? > ) ( ( \ n | \ r | . ) * ? ) ( ? : < / s c r i p t > ) " , e m p t y F u n c t i o n : f u n c t i o n ( ) { } , K : f u n c t i o n ( x ) { r e t u r n   x ; } } ; v a r   C l a s s = { c r e a t e : f u n c t i o n ( ) { r e t u r n   f u n c t i o n ( ) { t h i s . i n i t i a l i z e . a p p l y ( t h i s , a r g u m e n t s ) ; } ; } } ; v a r   A b s t r a c t = n e w   O b j e c t ( ) ; O b j e c t . e x t e n d = f u n c t i o n ( _ 2 , _ 3 ) { f o r ( v a r   _ 4   i n   _ 3 ) { _ 2 [ _ 4 ] = _ 3 [ _ 4 ] ; } r e t u r n   _ 2 ; } ; O b j e c t . e x t e n d ( O b j e c t , { i n s p e c t : f u n c t i o n ( _ 5 ) { t r y { i f ( _ 5 = = u n d e f i n e d ) { r e t u r n   " u n d e f i n e d " ; } i f ( _ 5 = = n u l l ) { r e t u r n   " n u l l " ; } r e t u r n   _ 5 . i n s p e c t ? _ 5 . i n s p e c t ( ) : _ 5 . t o S t r i n g ( ) ; } c a t c h ( e ) { i f ( e   i n s t a n c e o f   R a n g e E r r o r ) { r e t u r n   " . . . " ; } t h r o w   e ; } } , k e y s : f u n c t i o n ( _ 6 ) { v a r   _ 7 = [ ] ; f o r ( v a r   _ 8   i n   _ 6 ) { _ 7 . p u s h ( _ 8 ) ; } r e t u r n   _ 7 ; } , v a l u e s : f u n c t i o n ( _ 9 ) { v a r   _ a = [ ] ; f o r ( v a r   _ b   i n   _ 9 ) { _ a . p u s h ( _ 9 [ _ b ] ) ; } r e t u r n   _ a ; } , c l o n e : f u n c t i o n ( _ c ) { r e t u r n   O b j e c t . e x t e n d ( { } , _ c ) ; } } ) ; F u n c t i o n . p r o t o t y p e . b i n d = f u n c t i o n ( ) { v a r   _ d = t h i s , a r g s = $ A ( a r g u m e n t s ) , o b j e c t = a r g s . s h i f t ( ) ; r e t u r n   f u n c t i o n ( ) { r e t u r n   _ d . a p p l y ( o b j e c t , a r g s . c o n c a t ( $ A ( a r g u m e n t s ) ) ) ; } ; } ; F u n c t i o n . p r o t o t y p e . b i n d A s E v e n t L i s t e n e r = f u n c t i o n ( _ e ) { v a r   _ f = t h i s , a r g s = $ A ( a r g u m e n t s ) , _ e = a r g s . s h i f t ( ) ; r e t u r n   f u n c t i o n ( _ 1 0 ) { r e t u r n   _ f . a p p l y ( _ e , [ ( _ 1 0 | | w i n d o w . e v e n t ) ] . c o n c a t ( a r g s ) . c o n c a t ( $ A ( a r g u m e n t s ) ) ) ; } ; } ; O b j e c t . e x t e n d ( N u m b e r . p r o t o t y p e , { t o C o l o r P a r t : f u n c t i o n ( ) { v a r   _ 1 1 = t h i s . t o S t r i n g ( 1 6 ) ; i f ( t h i s < 1 6 ) { r e t u r n   " 0 " + _ 1 1 ; } r e t u r n   _ 1 1 ; } , s u c c : f u n c t i o n ( ) { r e t u r n   t h i s + 1 ; } , t i m e s : f u n c t i o n ( _ 1 2 ) { $ R ( 0 , t h i s , t r u e ) . e a c h ( _ 1 2 ) ; r e t u r n   t h i s ; } } ) ; v a r   T r y = { t h e s e : f u n c t i o n ( ) { v a r   _ 1 3 ; f o r ( v a r   i = 0 ; i < a r g u m e n t s . l e n g t h ; i + + ) { v a r   _ 1 5 = a r g u m e n t s [ i ] ; t r y { _ 1 3 = _ 1 5 ( ) ; b r e a k ; } c a t c h ( e ) { } } r e t u r n   _ 1 3 ; } } ; v a r   P e r i o d i c a l E x e c u t e r = C l a s s . c r e a t e ( ) ; P e r i o d i c a l E x e c u t e r . p r o t o t y p e = { i n i t i a l i z e : f u n c t i o n ( _ 1 6 , _ 1 7 ) { t h i s . c a l l b a c k = _ 1 6 ; t h i s . f r e q u e n c y = _ 1 7 ; t h i s . c u r r e n t l y E x e c u t i n g = f a l s e ; t h i s . r e g i s t e r C a l l b a c k ( ) ; } , r e g i s t e r C a l l b a c k : f u n c t i o n ( ) { t h i s . t i m e r = s e t I n t e r v a l ( t h i s . o n T i m e r E v e n t . b i n d ( t h i s ) , t h i s . f r e q u e n c y * 1 0 0 0 ) ; } , s t o p : f u n c t i o n ( ) { i f ( ! t h i s . t i m e r ) { r e t u r n ; } c l e a r I n t e r v a l ( t h i s . t i m e r ) ; t h i s . t i m e r = n u l l ; } , o n T i m e r E v e n t : f u n c t i o n ( ) { i f ( ! t h i s . c u r r e n t l y E x e c u t i n g ) { t r y { t h i s . c u r r e n t l y E x e c u t i n g = t r u e ; t h i s . c a l l b a c k ( t h i s ) ; } f i n a l l y { t h i s . c u r r e n t l y E x e c u t i n g = f a l s e ; } } } } ; O b j e c t . e x t e n d ( S t r i n g . p r o t o t y p e , { g s u b : f u n c t i o n ( _ 1 8 , _ 1 9 ) { v a r   _ 1 a = " " , s o u r c e = t h i s , m a t c h ; _ 1 9 = a r g u m e n t s . c a l l e e . p r e p a r e R e p l a c e m e n t ( _ 1 9 ) ; w h i l e ( s o u r c e . l e n g t h > 0 ) { i f ( m a t c h = s o u r c e . m a t c h ( _ 1 8 ) ) { _ 1 a + = s o u r c e . s l i c e ( 0 , m a t c h . i n d e x ) ; _ 1 a + = ( _ 1 9 ( m a t c h ) | | " " ) . t o S t r i n g ( ) ; s o u r c e = s o u r c e . s l i c e ( m a t c h . i n d e x + m a t c h [ 0 ] . l e n g t h ) ; } e l s e { _ 1 a + = s o u r c e , s o u r c e = " " ; } } r e t u r n   _ 1 a ; } , s u b : f u n c t i o n ( _ 1 b , _ 1 c , _ 1 d ) { _ 1 c = t h i s . g s u b . p r e p a r e R e p l a c e m e n t ( _ 1 c ) ; _ 1 d = _ 1 d = = = u n d e f i n e d ? 1 : _ 1 d ; r e t u r n   t h i s . g s u b ( _ 1 b , f u n c t i o n ( _ 1 e ) { i f ( - - _ 1 d < 0 ) { r e t u r n   _ 1 e [ 0 ] ; } r e t u r n   _ 1 c ( _ 1 e ) ; } ) ; } , s c a n : f u n c t i o n ( _ 1 f , _ 2 0 ) { t h i s . g s u b ( _ 1 f , _ 2 0 ) ; r e t u r n   t h i s ; } , t r u n c a t e : f u n c t i o n ( _ 2 1 , _ 2 2 ) { _ 2 1 = _ 2 1 | | 3 0 ; _ 2 2 = _ 2 2 = = = u n d e f i n e d ? " . . . " : _ 2 2 ; r e t u r n   t h i s . l e n g t h > _ 2 1 ? t h i s . s l i c e ( 0 , _ 2 1 - _ 2 2 . l e n g t h ) + _ 2 2 : t h i s ; } , s t r i p : f u n c t i o n ( ) { r e t u r n   t h i s . r e p l a c e ( / ^ \ s + / , " " ) . r e p l a c e ( / \ s + $ / , " " ) ; } , s t r i p T a g s : f u n c t i o n ( ) { r e t u r n   t h i s . r e p l a c e ( / < \ / ? [ ^ > ] + > / g i , " " ) ; } , s t r i p S c r i p t s : f u n c t i o n ( ) { r e t u r n   t h i s . r e p l a c e ( n e w   R e g E x p ( P r o t o t y p e . S c r i p t F r a g m e n t , " i m g " ) , " " ) ; } , e x t r a c t S c r i p t s : f u n c t i o n ( ) { v a r   _ 2 3 = n e w   R e g E x p ( P r o t o t y p e . S c r i p t F r a g m e n t , " i m g " ) ; v a r   _ 2 4 = n e w   R e g E x p ( P r o t o t y p e . S c r i p t F r a g m e n t , " i m " ) ; r e t u r n   ( t h i s . m a t c h ( _ 2 3 ) | | [ ] ) . m a p ( f u n c t i o n ( _ 2 5 ) { r e t u r n   ( _ 2 5 . m a t c h ( _ 2 4 ) | | [ " " , " " ] ) [ 1 ] ; } ) ; } , e v a l S c r i p t s : f u n c t i o n ( ) { r e t u r n   t h i s . e x t r a c t S c r i p t s ( ) . m a p ( f u n c t i o n ( _ 2 6 ) { r e t u r n   e v a l ( _ 2 6 ) ; } ) ; } , e s c a p e H T M L : f u n c t i o n ( ) { v a r   d i v = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; v a r   _ 2 8 = d o c u m e n t . c r e a t e T e x t N o d e ( t h i s ) ; d i v . a p p e n d C h i l d ( _ 2 8 ) ; r e t u r n   d i v . i n n e r H T M L ; } , u n e s c a p e H T M L : f u n c t i o n ( ) { v a r   d i v = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; d i v . i n n e r H T M L = t h i s . s t r i p T a g s ( ) ; r e t u r n   d i v . c h i l d N o d e s [ 0 ] ? d i v . c h i l d N o d e s [ 0 ] . n o d e V a l u e : " " ; } , t o Q u e r y P a r a m s : f u n c t i o n ( ) { v a r   _ 2 a = t h i s . m a t c h ( / ^ \ ? ? ( . * ) $ / ) [ 1 ] . s p l i t ( " & " ) ; r e t u r n   _ 2 a . i n j e c t ( { } , f u n c t i o n ( _ 2 b , _ 2 c ) { v a r   _ 2 d = _ 2 c . s p l i t ( " = " ) ; v a r   _ 2 e = _ 2 d [ 1 ] ? d e c o d e U R I C o m p o n e n t ( _ 2 d [ 1 ] ) : u n d e f i n e d ; _ 2 b [ d e c o d e U R I C o m p o n e n t ( _ 2 d [ 0 ] ) ] = _ 2 e ; r e t u r n   _ 2 b ; } ) ; } , t o A r r a y : f u n c t i o n ( ) { r e t u r n   t h i s . s p l i t ( " " ) ; } , c a m e l i z e : f u n c t i o n ( ) { v a r   _ 2 f = t h i s . s p l i t ( " - " ) ; i f ( _ 2 f . l e n g t h = = 1 ) { r e t u r n   _ 2 f [ 0 ] ; } v a r   _ 3 0 = t h i s . i n d e x O f ( " - " ) = = 0 ? _ 2 f [ 0 ] . c h a r A t ( 0 ) . t o U p p e r C a s e ( ) + _ 2 f [ 0 ] . s u b s t r i n g ( 1 ) : _ 2 f [ 0 ] ; f o r ( v a r   i = 1 , l e n = _ 2 f . l e n g t h ; i < l e n ; i + + ) { v a r   s = _ 2 f [ i ] ; _ 3 0 + = s . c h a r A t ( 0 ) . t o U p p e r C a s e ( ) + s . s u b s t r i n g ( 1 ) ; } r e t u r n   _ 3 0 ; } , i n s p e c t : f u n c t i o n ( _ 3 3 ) { v a r   _ 3 4 = t h i s . r e p l a c e ( / \ \ / g , " \ \ \ \ " ) ; i f ( _ 3 3 ) { r e t u r n   " \ " " + _ 3 4 . r e p l a c e ( / " / g , " \ \ \ " " ) + " \ " " ; } e l s e { r e t u r n   " ' " + _ 3 4 . r e p l a c e ( / ' / g , " \ \ ' " ) + " ' " ; } } } ) ; S t r i n g . p r o t o t y p e . g s u b . p r e p a r e R e p l a c e m e n t = f u n c t i o n ( _ 3 5 ) { i f ( t y p e o f   _ 3 5 = = " f u n c t i o n " ) { r e t u r n   _ 3 5 ; } v a r   _ 3 6 = n e w   T e m p l a t e ( _ 3 5 ) ; r e t u r n   f u n c t i o n ( _ 3 7 ) { r e t u r n   _ 3 6 . e v a l u a t e ( _ 3 7 ) ; } ; } ; S t r i n g . p r o t o t y p e . p a r s e Q u e r y = S t r i n g . p r o t o t y p e . t o Q u e r y P a r a m s ; v a r   T e m p l a t e = C l a s s . c r e a t e ( ) ; T e m p l a t e . P a t t e r n = / ( ^ | . | \ r | \ n ) ( # \ { ( . * ? ) \ } ) / ; T e m p l a t e . p r o t o t y p e = { i n i t i a l i z e : f u n c t i o n ( _ 3 8 , _ 3 9 ) { t h i s . t e m p l a t e = _ 3 8 . t o S t r i n g ( ) ; t h i s . p a t t e r n = _ 3 9 | | T e m p l a t e . P a t t e r n ; } , e v a l u a t e : f u n c t i o n ( _ 3 a ) { r e t u r n   t h i s . t e m p l a t e . g s u b ( t h i s . p a t t e r n , f u n c t i o n ( _ 3 b ) { v a r   _ 3 c = _ 3 b [ 1 ] ; i f ( _ 3 c = = " \ \ " ) { r e t u r n   _ 3 b [ 2 ] ; } r e t u r n   _ 3 c + ( _ 3 a [ _ 3 b [ 3 ] ] | | " " ) . t o S t r i n g ( ) ; } ) ; } } ; v a r   $ b r e a k = n e w   O b j e c t ( ) ; v a r   $ c o n t i n u e = n e w   O b j e c t ( ) ; v a r   E n u m e r a b l e = { e a c h : f u n c t i o n ( _ 3 d ) { v a r   _ 3 e = 0 ; t r y { t h i s . _ e a c h ( f u n c t i o n ( _ 3 f ) { t r y { _ 3 d ( _ 3 f , _ 3 e + + ) ; } c a t c h ( e ) { i f ( e ! = $ c o n t i n u e ) { t h r o w   e ; } } } ) ; } c a t c h ( e ) { i f ( e ! = $ b r e a k ) { t h r o w   e ; } } } , a l l : f u n c t i o n ( _ 4 0 ) { v a r   _ 4 1 = t r u e ; t h i s . e a c h ( f u n c t i o n ( _ 4 2 , _ 4 3 ) { _ 4 1 = _ 4 1 & & ! ! ( _ 4 0 | | P r o t o t y p e . K ) ( _ 4 2 , _ 4 3 ) ; i f ( ! _ 4 1 ) { t h r o w   $ b r e a k ; } } ) ; r e t u r n   _ 4 1 ; } , a n y : f u n c t i o n ( _ 4 4 ) { v a r   _ 4 5 = f a l s e ; t h i s . e a c h ( f u n c t i o n ( _ 4 6 , _ 4 7 ) { i f ( _ 4 5 = ! ! ( _ 4 4 | | P r o t o t y p e . K ) ( _ 4 6 , _ 4 7 ) ) { t h r o w   $ b r e a k ; } } ) ; r e t u r n   _ 4 5 ; } , c o l l e c t : f u n c t i o n ( _ 4 8 ) { v a r   _ 4 9 = [ ] ; t h i s . e a c h ( f u n c t i o n ( _ 4 a , _ 4 b ) { _ 4 9 . p u s h ( _ 4 8 ( _ 4 a , _ 4 b ) ) ; } ) ; r e t u r n   _ 4 9 ; } , d e t e c t : f u n c t i o n ( _ 4 c ) { v a r   _ 4 d ; t h i s . e a c h ( f u n c t i o n ( _ 4 e , _ 4 f ) { i f ( _ 4 c ( _ 4 e , _ 4 f ) ) { _ 4 d = _ 4 e ; t h r o w   $ b r e a k ; } } ) ; r e t u r n   _ 4 d ; } , f i n d A l l : f u n c t i o n ( _ 5 0 ) { v a r   _ 5 1 = [ ] ; t h i s . e a c h ( f u n c t i o n ( _ 5 2 , _ 5 3 ) { i f ( _ 5 0 ( _ 5 2 , _ 5 3 ) ) { _ 5 1 . p u s h ( _ 5 2 ) ; } } ) ; r e t u r n   _ 5 1 ; } , g r e p : f u n c t i o n ( _ 5 4 , _ 5 5 ) { v a r   _ 5 6 = [ ] ; t h i s . e a c h ( f u n c t i o n ( _ 5 7 , _ 5 8 ) { v a r   _ 5 9 = _ 5 7 . t o S t r i n g ( ) ; i f ( _ 5 9 . m a t c h ( _ 5 4 ) ) { _ 5 6 . p u s h ( ( _ 5 5 | | P r o t o t y p e . K ) ( _ 5 7 , _ 5 8 ) ) ; } } ) ; r e t u r n   _ 5 6 ; } , i n c l u d e : f u n c t i o n ( _ 5 a ) { v a r   _ 5 b = f a l s e ; t h i s . e a c h ( f u n c t i o n ( _ 5 c ) { i f ( _ 5 c = = _ 5 a ) { _ 5 b = t r u e ; t h r o w   $ b r e a k ; } } ) ; r e t u r n   _ 5 b ; } , i n j e c t : f u n c t i o n ( _ 5 d , _ 5 e ) { t h i s . e a c h ( f u n c t i o n ( _ 5 f , _ 6 0 ) { _ 5 d = _ 5 e ( _ 5 d , _ 5 f , _ 6 0 ) ; } ) ; r e t u r n   _ 5 d ; } , i n v o k e : f u n c t i o n ( _ 6 1 ) { v a r   _ 6 2 = $ A ( a r g u m e n t s ) . s l i c e ( 1 ) ; r e t u r n   t h i s . c o l l e c t ( f u n c t i o n ( _ 6 3 ) { r e t u r n   _ 6 3 [ _ 6 1 ] . a p p l y ( _ 6 3 , _ 6 2 ) ; } ) ; } , m a x : f u n c t i o n ( _ 6 4 ) { v a r   _ 6 5 ; t h i s . e a c h ( f u n c t i o n ( _ 6 6 , _ 6 7 ) { _ 6 6 = ( _ 6 4 | | P r o t o t y p e . K ) ( _ 6 6 , _ 6 7 ) ; i f ( _ 6 5 = = u n d e f i n e d | | _ 6 6 > = _ 6 5 ) { _ 6 5 = _ 6 6 ; } } ) ; r e t u r n   _ 6 5 ; } , m i n : f u n c t i o n ( _ 6 8 ) { v a r   _ 6 9 ; t h i s . e a c h ( f u n c t i o n ( _ 6 a , _ 6 b ) { _ 6 a = ( _ 6 8 | | P r o t o t y p e . K ) ( _ 6 a , _ 6 b ) ; i f ( _ 6 9 = = u n d e f i n e d | | _ 6 a < _ 6 9 ) { _ 6 9 = _ 6 a ; } } ) ; r e t u r n   _ 6 9 ; } , p a r t i t i o n : f u n c t i o n ( _ 6 c ) { v a r   _ 6 d = [ ] , f a l s e s = [ ] ; t h i s . e a c h ( f u n c t i o n ( _ 6 e , _ 6 f ) { ( ( _ 6 c | | P r o t o t y p e . K ) ( _ 6 e , _ 6 f ) ? _ 6 d : f a l s e s ) . p u s h ( _ 6 e ) ; } ) ; r e t u r n   [ _ 6 d , f a l s e s ] ; } , p l u c k : f u n c t i o n ( _ 7 0 ) { v a r   _ 7 1 = [ ] ; t h i s . e a c h ( f u n c t i o n ( _ 7 2 , _ 7 3 ) { _ 7 1 . p u s h ( _ 7 2 [ _ 7 0 ] ) ; } ) ; r e t u r n   _ 7 1 ; } , r e j e c t : f u n c t i o n ( _ 7 4 ) { v a r   _ 7 5 = [ ] ; t h i s . e a c h ( f u n c t i o n ( _ 7 6 , _ 7 7 ) { i f ( ! _ 7 4 ( _ 7 6 , _ 7 7 ) ) { _ 7 5 . p u s h ( _ 7 6 ) ; } } ) ; r e t u r n   _ 7 5 ; } , s o r t B y : f u n c t i o n ( _ 7 8 ) { r e t u r n   t h i s . c o l l e c t ( f u n c t i o n ( _ 7 9 , _ 7 a ) { r e t u r n   { v a l u e : _ 7 9 , c r i t e r i a : _ 7 8 ( _ 7 9 , _ 7 a ) } ; } ) . s o r t ( f u n c t i o n ( _ 7 b , _ 7 c ) { v a r   a = _ 7 b . c r i t e r i a , b = _ 7 c . c r i t e r i a ; r e t u r n   a < b ? - 1 : a > b ? 1 : 0 ; } ) . p l u c k ( " v a l u e " ) ; } , t o A r r a y : f u n c t i o n ( ) { r e t u r n   t h i s . c o l l e c t ( P r o t o t y p e . K ) ; } , z i p : f u n c t i o n ( ) { v a r   _ 7 e = P r o t o t y p e . K , a r g s = $ A ( a r g u m e n t s ) ; i f ( t y p e o f   a r g s . l a s t ( ) = = " f u n c t i o n " ) { _ 7 e = a r g s . p o p ( ) ; } v a r   _ 7 f = [ t h i s ] . c o n c a t ( a r g s ) . m a p ( $ A ) ; r e t u r n   t h i s . m a p ( f u n c t i o n ( _ 8 0 , _ 8 1 ) { r e t u r n   _ 7 e ( _ 7 f . p l u c k ( _ 8 1 ) ) ; } ) ; } , i n s p e c t : f u n c t i o n ( ) { r e t u r n   " # < E n u m e r a b l e : " + t h i s . t o A r r a y ( ) . i n s p e c t ( ) + " > " ; } } ; O b j e c t . e x t e n d ( E n u m e r a b l e , { m a p : E n u m e r a b l e . c o l l e c t , f i n d : E n u m e r a b l e . d e t e c t , s e l e c t : E n u m e r a b l e . f i n d A l l , m e m b e r : E n u m e r a b l e . i n c l u d e , e n t r i e s : E n u m e r a b l e . t o A r r a y } ) ; v a r   $ A = A r r a y . f r o m = f u n c t i o n ( _ 8 2 ) { i f ( ! _ 8 2 ) { r e t u r n   [ ] ; } i f ( _ 8 2 . t o A r r a y ) { r e t u r n   _ 8 2 . t o A r r a y ( ) ; } e l s e { v a r   _ 8 3 = [ ] ; f o r ( v a r   i = 0 ; i < _ 8 2 . l e n g t h ; i + + ) { _ 8 3 . p u s h ( _ 8 2 [ i ] ) ; } r e t u r n   _ 8 3 ; } } ; O b j e c t . e x t e n d ( A r r a y . p r o t o t y p e , E n u m e r a b l e ) ; i f ( ! A r r a y . p r o t o t y p e . _ r e v e r s e ) { A r r a y . p r o t o t y p e . _ r e v e r s e = A r r a y . p r o t o t y p e . r e v e r s e ; } O b j e c t . e x t e n d ( A r r a y . p r o t o t y p e , { _ e a c h : f u n c t i o n ( _ 8 5 ) { f o r ( v a r   i = 0 ; i < t h i s . l e n g t h ; i + + ) { _ 8 5 ( t h i s [ i ] ) ; } } , c l e a r : f u n c t i o n ( ) { t h i s . l e n g t h = 0 ; r e t u r n   t h i s ; } , f i r s t : f u n c t i o n ( ) { r e t u r n   t h i s [ 0 ] ; } , l a s t : f u n c t i o n ( ) { r e t u r n   t h i s [ t h i s . l e n g t h - 1 ] ; } , c o m p a c t : f u n c t i o n ( ) { r e t u r n   t h i s . s e l e c t ( f u n c t i o n ( _ 8 7 ) { r e t u r n   _ 8 7 ! = u n d e f i n e d | | _ 8 7 ! = n u l l ; } ) ; } , f l a t t e n : f u n c t i o n ( ) { r e t u r n   t h i s . i n j e c t ( [ ] , f u n c t i o n ( _ 8 8 , _ 8 9 ) { r e t u r n   _ 8 8 . c o n c a t ( _ 8 9 & & _ 8 9 . c o n s t r u c t o r = = A r r a y ? _ 8 9 . f l a t t e n ( ) : [ _ 8 9 ] ) ; } ) ; } , w i t h o u t : f u n c t i o n ( ) { v a r   _ 8 a = $ A ( a r g u m e n t s ) ; r e t u r n   t h i s . s e l e c t ( f u n c t i o n ( _ 8 b ) { r e t u r n   ! _ 8 a . i n c l u d e ( _ 8 b ) ; } ) ; } , i n d e x O f : f u n c t i o n ( _ 8 c ) { f o r ( v a r   i = 0 ; i < t h i s . l e n g t h ; i + + ) { i f ( t h i s [ i ] = = _ 8 c ) { r e t u r n   i ; } } r e t u r n   - 1 ; } , r e v e r s e : f u n c t i o n ( _ 8 e ) { r e t u r n   ( _ 8 e ! = = f a l s e ? t h i s : t h i s . t o A r r a y ( ) ) . _ r e v e r s e ( ) ; } , r e d u c e : f u n c t i o n ( ) { r e t u r n   t h i s . l e n g t h > 1 ? t h i s : t h i s [ 0 ] ; } , u n i q : f u n c t i o n ( ) { r e t u r n   t h i s . i n j e c t ( [ ] , f u n c t i o n ( _ 8 f , _ 9 0 ) { r e t u r n   _ 8 f . i n c l u d e ( _ 9 0 ) ? _ 8 f : _ 8 f . c o n c a t ( [ _ 9 0 ] ) ; } ) ; } , i n s p e c t : f u n c t i o n ( ) { r e t u r n   " [ " + t h i s . m a p ( O b j e c t . i n s p e c t ) . j o i n ( " ,   " ) + " ] " ; } } ) ; v a r   H a s h = { _ e a c h : f u n c t i o n ( _ 9 1 ) { f o r ( v a r   k e y   i n   t h i s ) { v a r   _ 9 3 = t h i s [ k e y ] ; i f ( t y p e o f   _ 9 3 = = " f u n c t i o n " ) { c o n t i n u e ; } v a r   _ 9 4 = [ k e y , _ 9 3 ] ; _ 9 4 . k e y = k e y ; _ 9 4 . v a l u e = _ 9 3 ; _ 9 1 ( _ 9 4 ) ; } } , k e y s : f u n c t i o n ( ) { r e t u r n   t h i s . p l u c k ( " k e y " ) ; } , v a l u e s : f u n c t i o n ( ) { r e t u r n   t h i s . p l u c k ( " v a l u e " ) ; } , m e r g e : f u n c t i o n ( _ 9 5 ) { r e t u r n   $ H ( _ 9 5 ) . i n j e c t ( $ H ( t h i s ) , f u n c t i o n ( _ 9 6 , _ 9 7 ) { _ 9 6 [ _ 9 7 . k e y ] = _ 9 7 . v a l u e ; r e t u r n   _ 9 6 ; } ) ; } , t o Q u e r y S t r i n g : f u n c t i o n ( ) { r e t u r n   t h i s . m a p ( f u n c t i o n ( _ 9 8 ) { r e t u r n   _ 9 8 . m a p ( e n c o d e U R I C o m p o n e n t ) . j o i n ( " = " ) ; } ) . j o i n ( " & " ) ; } , i n s p e c t : f u n c t i o n ( ) { r e t u r n   " # < H a s h : { " + t h i s . m a p ( f u n c t i o n ( _ 9 9 ) { r e t u r n   _ 9 9 . m a p ( O b j e c t . i n s p e c t ) . j o i n ( " :   " ) ; } ) . j o i n ( " ,   " ) + " } > " ; } } ; f u n c t i o n   $ H ( _ 9 a ) { v a r   _ 9 b = O b j e c t . e x t e n d ( { } , _ 9 a | | { } ) ; O b j e c t . e x t e n d ( _ 9 b , E n u m e r a b l e ) ; O b j e c t . e x t e n d ( _ 9 b , H a s h ) ; r e t u r n   _ 9 b ; } O b j e c t R a n g e = C l a s s . c r e a t e ( ) ; O b j e c t . e x t e n d ( O b j e c t R a n g e . p r o t o t y p e , E n u m e r a b l e ) ; O b j e c t . e x t e n d ( O b j e c t R a n g e . p r o t o t y p e , { i n i t i a l i z e : f u n c t i o n ( _ 9 c , e n d , _ 9 e ) { t h i s . s t a r t = _ 9 c ; t h i s . e n d = e n d ; t h i s . e x c l u s i v e = _ 9 e ; } , _ e a c h : f u n c t i o n ( _ 9 f ) { v a r   _ a 0 = t h i s . s t a r t ; w h i l e ( t h i s . i n c l u d e ( _ a 0 ) ) { _ 9 f ( _ a 0 ) ; _ a 0 = _ a 0 . s u c c ( ) ; } } , i n c l u d e : f u n c t i o n ( _ a 1 ) { i f ( _ a 1 < t h i s . s t a r t ) { r e t u r n   f a l s e ; } i f ( t h i s . e x c l u s i v e ) { r e t u r n   _ a 1 < t h i s . e n d ; } r e t u r n   _ a 1 < = t h i s . e n d ; } } ) ; v a r   $ R = f u n c t i o n ( _ a 2 , e n d , _ a 4 ) { r e t u r n   n e w   O b j e c t R a n g e ( _ a 2 , e n d , _ a 4 ) ; } ; v a r   A j a x = { g e t T r a n s p o r t : f u n c t i o n ( ) { r e t u r n   T r y . t h e s e ( f u n c t i o n ( ) { r e t u r n   n e w   X M L H t t p R e q u e s t ( ) ; } , f u n c t i o n ( ) { r e t u r n   n e w   A c t i v e X O b j e c t ( " M s x m l 2 . X M L H T T P " ) ; } , f u n c t i o n ( ) { r e t u r n   n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) ; } ) | | f a l s e ; } , a c t i v e R e q u e s t C o u n t : 0 } ; A j a x . R e s p o n d e r s = { r e s p o n d e r s : [ ] , _ e a c h : f u n c t i o n ( _ a 5 ) { t h i s . r e s p o n d e r s . _ e a c h ( _ a 5 ) ; } , r e g i s t e r : f u n c t i o n ( _ a 6 ) { i f ( ! t h i s . i n c l u d e ( _ a 6 ) ) { t h i s . r e s p o n d e r s . p u s h ( _ a 6 ) ; } } , u n r e g i s t e r : f u n c t i o n ( _ a 7 ) { t h i s . r e s p o n d e r s = t h i s . r e s p o n d e r s . w i t h o u t ( _ a 7 ) ; } , d i s p a t c h : f u n c t i o n ( _ a 8 , _ a 9 , _ a a , _ a b ) { t h i s . e a c h ( f u n c t i o n ( _ a c ) { i f ( _ a c [ _ a 8 ] & & t y p e o f   _ a c [ _ a 8 ] = = " f u n c t i o n " ) { t r y { _ a c [ _ a 8 ] . a p p l y ( _ a c , [ _ a 9 , _ a a , _ a b ] ) ; } c a t c h ( e ) { } } } ) ; } } ; O b j e c t . e x t e n d ( A j a x . R e s p o n d e r s , E n u m e r a b l e ) ; A j a x . R e s p o n d e r s . r e g i s t e r ( { o n C r e a t e : f u n c t i o n ( ) { A j a x . a c t i v e R e q u e s t C o u n t + + ; } , o n C o m p l e t e : f u n c t i o n ( ) { A j a x . a c t i v e R e q u e s t C o u n t - - ; } } ) ; A j a x . B a s e = f u n c t i o n ( ) { } ; A j a x . B a s e . p r o t o t y p e = { s e t O p t i o n s : f u n c t i o n ( _ a d ) { t h i s . o p t i o n s = { m e t h o d : " p o s t " , a s y n c h r o n o u s : t r u e , c o n t e n t T y p e : " a p p l i c a t i o n / x - w w w - f o r m - u r l e n c o d e d " , p a r a m e t e r s : " " } ; O b j e c t . e x t e n d ( t h i s . o p t i o n s , _ a d | | { } ) ; } , r e s p o n s e I s S u c c e s s : f u n c t i o n ( ) { r e t u r n   t h i s . t r a n s p o r t . s t a t u s = = u n d e f i n e d | | t h i s . t r a n s p o r t . s t a t u s = = 0 | | ( t h i s . t r a n s p o r t . s t a t u s > = 2 0 0 & & t h i s . t r a n s p o r t . s t a t u s < 3 0 0 ) ; } , r e s p o n s e I s F a i l u r e : f u n c t i o n ( ) { r e t u r n   ! t h i s . r e s p o n s e I s S u c c e s s ( ) ; } } ; A j a x . R e q u e s t = C l a s s . c r e a t e ( ) ; A j a x . R e q u e s t . E v e n t s = [ " U n i n i t i a l i z e d " , " L o a d i n g " , " L o a d e d " , " I n t e r a c t i v e " , " C o m p l e t e " ] ; A j a x . R e q u e s t . p r o t o t y p e = O b j e c t . e x t e n d ( n e w   A j a x . B a s e ( ) , { i n i t i a l i z e : f u n c t i o n ( u r l , _ a f ) { t h i s . t r a n s p o r t = A j a x . g e t T r a n s p o r t ( ) ; t h i s . s e t O p t i o n s ( _ a f ) ; t h i s . r e q u e s t ( u r l ) ; } , r e q u e s t : f u n c t i o n ( u r l ) { v a r   _ b 1 = t h i s . o p t i o n s . p a r a m e t e r s | | " " ; i f ( _ b 1 . l e n g t h > 0 ) { _ b 1 + = " & _ = " ; } i f ( t h i s . o p t i o n s . m e t h o d ! = " g e t " & & t h i s . o p t i o n s . m e t h o d ! = " p o s t " ) { _ b 1 + = ( _ b 1 . l e n g t h > 0 ? " & " : " " ) + " _ m e t h o d = " + t h i s . o p t i o n s . m e t h o d ; t h i s . o p t i o n s . m e t h o d = " p o s t " ; } t r y { t h i s . u r l = u r l ; i f ( t h i s . o p t i o n s . m e t h o d = = " g e t " & & _ b 1 . l e n g t h > 0 ) { t h i s . u r l + = ( t h i s . u r l . m a t c h ( / \ ? / ) ? " & " : " ? " ) + _ b 1 ; } A j a x . R e s p o n d e r s . d i s p a t c h ( " o n C r e a t e " , t h i s , t h i s . t r a n s p o r t ) ; t h i s . t r a n s p o r t . o p e n ( t h i s . o p t i o n s . m e t h o d , t h i s . u r l , t h i s . o p t i o n s . a s y n c h r o n o u s ) ; i f ( t h i s . o p t i o n s . a s y n c h r o n o u s ) { s e t T i m e o u t ( f u n c t i o n ( ) { t h i s . r e s p o n d T o R e a d y S t a t e ( 1 ) ; } . b i n d ( t h i s ) , 1 0 ) ; } t h i s . t r a n s p o r t . o n r e a d y s t a t e c h a n g e = t h i s . o n S t a t e C h a n g e . b i n d ( t h i s ) ; t h i s . s e t R e q u e s t H e a d e r s ( ) ; v a r   _ b 2 = t h i s . o p t i o n s . p o s t B o d y ? t h i s . o p t i o n s . p o s t B o d y : _ b 1 ; t h i s . t r a n s p o r t . s e n d ( t h i s . o p t i o n s . m e t h o d = = " p o s t " ? _ b 2 : n u l l ) ; i f ( ! t h i s . o p t i o n s . a s y n c h r o n o u s & & t h i s . t r a n s p o r t . o v e r r i d e M i m e T y p e ) { t h i s . o n S t a t e C h a n g e ( ) ; } } c a t c h ( e ) { t h i s . d i s p a t c h E x c e p t i o n ( e ) ; } } , s e t R e q u e s t H e a d e r s : f u n c t i o n ( ) { v a r   _ b 3 = [ " X - R e q u e s t e d - W i t h " , " X M L H t t p R e q u e s t " , " X - P r o t o t y p e - V e r s i o n " , P r o t o t y p e . V e r s i o n , " A c c e p t " , " t e x t / j a v a s c r i p t ,   t e x t / h t m l ,   a p p l i c a t i o n / x m l ,   t e x t / x m l ,   * / * " ] ; i f ( t h i s . o p t i o n s . m e t h o d = = " p o s t " ) { _ b 3 . p u s h ( " C o n t e n t - t y p e " , t h i s . o p t i o n s . c o n t e n t T y p e ) ; i f ( t h i s . t r a n s p o r t . o v e r r i d e M i m e T y p e ) { _ b 3 . p u s h ( " C o n n e c t i o n " , " c l o s e " ) ; } } i f ( t h i s . o p t i o n s . r e q u e s t H e a d e r s ) { _ b 3 . p u s h . a p p l y ( _ b 3 , t h i s . o p t i o n s . r e q u e s t H e a d e r s ) ; } f o r ( v a r   i = 0 ; i < _ b 3 . l e n g t h ; i + = 2 ) { t h i s . t r a n s p o r t . s e t R e q u e s t H e a d e r ( _ b 3 [ i ] , _ b 3 [ i + 1 ] ) ; } } , o n S t a t e C h a n g e : f u n c t i o n ( ) { v a r   _ b 5 = t h i s . t r a n s p o r t . r e a d y S t a t e ; i f ( _ b 5 ! = 1 ) { t h i s . r e s p o n d T o R e a d y S t a t e ( t h i s . t r a n s p o r t . r e a d y S t a t e ) ; } } , h e a d e r : f u n c t i o n ( _ b 6 ) { t r y { r e t u r n   t h i s . t r a n s p o r t . g e t R e s p o n s e H e a d e r ( _ b 6 ) ; } c a t c h ( e ) { } } , e v a l J S O N : f u n c t i o n ( ) { t r y { r e t u r n   e v a l ( " ( " + t h i s . h e a d e r ( " X - J S O N " ) + " ) " ) ; } c a t c h ( e ) { } } , e v a l R e s p o n s e : f u n c t i o n ( ) { t r y { r e t u r n   e v a l ( t h i s . t r a n s p o r t . r e s p o n s e T e x t ) ; } c a t c h ( e ) { t h i s . d i s p a t c h E x c e p t i o n ( e ) ; } } , r e s p o n d T o R e a d y S t a t e : f u n c t i o n ( _ b 7 ) { v a r   _ b 8 = A j a x . R e q u e s t . E v e n t s [ _ b 7 ] ; v a r   _ b 9 = t h i s . t r a n s p o r t , j s o n = t h i s . e v a l J S O N ( ) ; i f ( _ b 8 = = " C o m p l e t e " ) { t r y { ( t h i s . o p t i o n s [ " o n " + t h i s . t r a n s p o r t . s t a t u s ] | | t h i s . o p t i o n s [ " o n " + ( t h i s . r e s p o n s e I s S u c c e s s ( ) ? " S u c c e s s " : " F a i l u r e " ) ] | | P r o t o t y p e . e m p t y F u n c t i o n ) ( _ b 9 , j s o n ) ; } c a t c h ( e ) { t h i s . d i s p a t c h E x c e p t i o n ( e ) ; } i f ( ( t h i s . h e a d e r ( " C o n t e n t - t y p e " ) | | " " ) . m a t c h ( / ^ t e x t \ / j a v a s c r i p t / i ) ) { t h i s . e v a l R e s p o n s e ( ) ; } } t r y { ( t h i s . o p t i o n s [ " o n " + _ b 8 ] | | P r o t o t y p e . e m p t y F u n c t i o n ) ( _ b 9 , j s o n ) ; A j a x . R e s p o n d e r s . d i s p a t c h ( " o n " + _ b 8 , t h i s , _ b 9 , j s o n ) ; } c a t c h ( e ) { t h i s . d i s p a t c h E x c e p t i o n ( e ) ; } i f ( _ b 8 = = " C o m p l e t e " ) { t h i s . t r a n s p o r t . o n r e a d y s t a t e c h a n g e = P r o t o t y p e . e m p t y F u n c t i o n ; } } , d i s p a t c h E x c e p t i o n : f u n c t i o n ( _ b a ) { ( t h i s . o p t i o n s . o n E x c e p t i o n | | P r o t o t y p e . e m p t y F u n c t i o n ) ( t h i s , _ b a ) ; A j a x . R e s p o n d e r s . d i s p a t c h ( " o n E x c e p t i o n " , t h i s , _ b a ) ; } } ) ; A j a x . U p d a t e r = C l a s s . c r e a t e ( ) ; O b j e c t . e x t e n d ( O b j e c t . e x t e n d ( A j a x . U p d a t e r . p r o t o t y p e , A j a x . R e q u e s t . p r o t o t y p e ) , { i n i t i a l i z e : f u n c t i o n ( _ b b , u r l , _ b d ) { t h i s . c o n t a i n e r s = { s u c c e s s : _ b b . s u c c e s s ? $ ( _ b b . s u c c e s s ) : $ ( _ b b ) , f a i l u r e : _ b b . f a i l u r e ? $ ( _ b b . f a i l u r e ) : ( _ b b . s u c c e s s ? n u l l : $ ( _ b b ) ) } ; t h i s . t r a n s p o r t = A j a x . g e t T r a n s p o r t ( ) ; t h i s . s e t O p t i o n s ( _ b d ) ; v a r   _ b e = t h i s . o p t i o n s . o n C o m p l e t e | | P r o t o t y p e . e m p t y F u n c t i o n ; t h i s . o p t i o n s . o n C o m p l e t e = ( f u n c t i o n ( _ b f , _ c 0 ) { t h i s . u p d a t e C o n t e n t ( ) ; _ b e ( _ b f , _ c 0 ) ; } ) . b i n d ( t h i s ) ; t h i s . r e q u e s t ( u r l ) ; } , u p d a t e C o n t e n t : f u n c t i o n ( ) { v a r   _ c 1 = t h i s . r e s p o n s e I s S u c c e s s ( ) ? t h i s . c o n t a i n e r s . s u c c e s s : t h i s . c o n t a i n e r s . f a i l u r e ; v a r   _ c 2 = t h i s . t r a n s p o r t . r e s p o n s e T e x t ; i f ( ! t h i s . o p t i o n s . e v a l S c r i p t s ) { _ c 2 = _ c 2 . s t r i p S c r i p t s ( ) ; } i f ( _ c 1 ) { i f ( t h i s . o p t i o n s . i n s e r t i o n ) { n e w   t h i s . o p t i o n s . i n s e r t i o n ( _ c 1 , _ c 2 ) ; } e l s e { E l e m e n t . u p d a t e ( _ c 1 , _ c 2 ) ; } } i f ( t h i s . r e s p o n s e I s S u c c e s s ( ) ) { i f ( t h i s . o n C o m p l e t e ) { s e t T i m e o u t ( t h i s . o n C o m p l e t e . b i n d ( t h i s ) , 1 0 ) ; } } } } ) ; A j a x . P e r i o d i c a l U p d a t e r = C l a s s . c r e a t e ( ) ; A j a x . P e r i o d i c a l U p d a t e r . p r o t o t y p e = O b j e c t . e x t e n d ( n e w   A j a x . B a s e ( ) , { i n i t i a l i z e : f u n c t i o n ( _ c 3 , u r l , _ c 5 ) { t h i s . s e t O p t i o n s ( _ c 5 ) ; t h i s . o n C o m p l e t e = t h i s . o p t i o n s . o n C o m p l e t e ; t h i s . f r e q u e n c y = ( t h i s . o p t i o n s . f r e q u e n c y | | 2 ) ; t h i s . d e c a y = ( t h i s . o p t i o n s . d e c a y | | 1 ) ; t h i s . u p d a t e r = { } ; t h i s . c o n t a i n e r = _ c 3 ; t h i s . u r l = u r l ; t h i s . s t a r t ( ) ; } , s t a r t : f u n c t i o n ( ) { t h i s . o p t i o n s . o n C o m p l e t e = t h i s . u p d a t e C o m p l e t e . b i n d ( t h i s ) ; t h i s . o n T i m e r E v e n t ( ) ; } , s t o p : f u n c t i o n ( ) { t h i s . u p d a t e r . o p t i o n s . o n C o m p l e t e = u n d e f i n e d ; c l e a r T i m e o u t ( t h i s . t i m e r ) ; ( t h i s . o n C o m p l e t e | | P r o t o t y p e . e m p t y F u n c t i o n ) . a p p l y ( t h i s , a r g u m e n t s ) ; } , u p d a t e C o m p l e t e : f u n c t i o n ( _ c 6 ) { i f ( t h i s . o p t i o n s . d e c a y ) { t h i s . d e c a y = ( _ c 6 . r e s p o n s e T e x t = = t h i s . l a s t T e x t ? t h i s . d e c a y * t h i s . o p t i o n s . d e c a y : 1 ) ; t h i s . l a s t T e x t = _ c 6 . r e s p o n s e T e x t ; } t h i s . t i m e r = s e t T i m e o u t ( t h i s . o n T i m e r E v e n t . b i n d ( t h i s ) , t h i s . d e c a y * t h i s . f r e q u e n c y * 1 0 0 0 ) ; } , o n T i m e r E v e n t : f u n c t i o n ( ) { t h i s . u p d a t e r = n e w   A j a x . U p d a t e r ( t h i s . c o n t a i n e r , t h i s . u r l , t h i s . o p t i o n s ) ; } } ) ; f u n c t i o n   $ ( ) { v a r   _ c 7 = [ ] , e l e m e n t ; f o r ( v a r   i = 0 ; i < a r g u m e n t s . l e n g t h ; i + + ) { e l e m e n t = a r g u m e n t s [ i ] ; i f ( t y p e o f   e l e m e n t = = " s t r i n g " ) { e l e m e n t = d o c u m e n t . g e t E l e m e n t B y I d ( e l e m e n t ) ; } _ c 7 . p u s h ( E l e m e n t . e x t e n d ( e l e m e n t ) ) ; } r e t u r n   _ c 7 . r e d u c e ( ) ; } d o c u m e n t . g e t E l e m e n t s B y C l a s s N a m e = f u n c t i o n ( _ c 9 , _ c a ) { v a r   _ c b = ( $ ( _ c a ) | | d o c u m e n t . b o d y ) . g e t E l e m e n t s B y T a g N a m e ( " * " ) ; r e t u r n   $ A ( _ c b ) . i n j e c t ( [ ] , f u n c t i o n ( _ c c , _ c d ) { i f ( _ c d . c l a s s N a m e . m a t c h ( n e w   R e g E x p ( " ( ^ | \ \ s ) " + _ c 9 + " ( \ \ s | $ ) " ) ) ) { _ c c . p u s h ( E l e m e n t . e x t e n d ( _ c d ) ) ; } r e t u r n   _ c c ; } ) ; } ; i f ( ! w i n d o w . E l e m e n t ) { v a r   E l e m e n t = n e w   O b j e c t ( ) ; } E l e m e n t . e x t e n d = f u n c t i o n ( _ c e ) { i f ( ! _ c e ) { r e t u r n ; } i f ( _ n a t i v e E x t e n s i o n s | | _ c e . n o d e T y p e = = 3 ) { r e t u r n   _ c e ; } i f ( ! _ c e . _ e x t e n d e d & & _ c e . t a g N a m e & & _ c e ! = w i n d o w ) { v a r   _ c f = O b j e c t . c l o n e ( E l e m e n t . M e t h o d s ) , c a c h e = E l e m e n t . e x t e n d . c a c h e ; i f ( _ c e . t a g N a m e = = " F O R M " ) { O b j e c t . e x t e n d ( _ c f , F o r m . M e t h o d s ) ; } i f ( [ " I N P U T " , " T E X T A R E A " , " S E L E C T " ] . i n c l u d e ( _ c e . t a g N a m e ) ) { O b j e c t . e x t e n d ( _ c f , F o r m . E l e m e n t . M e t h o d s ) ; } f o r ( v a r   _ d 0   i n   _ c f ) { v a r   _ d 1 = _ c f [ _ d 0 ] ; i f ( t y p e o f   _ d 1 = = " f u n c t i o n " ) { _ c e [ _ d 0 ] = c a c h e . f i n d O r S t o r e ( _ d 1 ) ; } } } _ c e . _ e x t e n d e d = t r u e ; r e t u r n   _ c e ; } ; E l e m e n t . e x t e n d . c a c h e = { f i n d O r S t o r e : f u n c t i o n ( _ d 2 ) { r e t u r n   t h i s [ _ d 2 ] = t h i s [ _ d 2 ] | | f u n c t i o n ( ) { r e t u r n   _ d 2 . a p p l y ( n u l l , [ t h i s ] . c o n c a t ( $ A ( a r g u m e n t s ) ) ) ; } ; } } ; E l e m e n t . M e t h o d s = { v i s i b l e : f u n c t i o n ( _ d 3 ) { r e t u r n   $ ( _ d 3 ) . s t y l e . d i s p l a y ! = " n o n e " ; } , t o g g l e : f u n c t i o n ( _ d 4 ) { _ d 4 = $ ( _ d 4 ) ; E l e m e n t [ E l e m e n t . v i s i b l e ( _ d 4 ) ? " h i d e " : " s h o w " ] ( _ d 4 ) ; r e t u r n   _ d 4 ; } , h i d e : f u n c t i o n ( _ d 5 ) { $ ( _ d 5 ) . s t y l e . d i s p l a y = " n o n e " ; r e t u r n   _ d 5 ; } , s h o w : f u n c t i o n ( _ d 6 ) { $ ( _ d 6 ) . s t y l e . d i s p l a y = " " ; r e t u r n   _ d 6 ; } , r e m o v e : f u n c t i o n ( _ d 7 ) { _ d 7 = $ ( _ d 7 ) ; _ d 7 . p a r e n t N o d e . r e m o v e C h i l d ( _ d 7 ) ; r e t u r n   _ d 7 ; } , u p d a t e : f u n c t i o n ( _ d 8 , _ d 9 ) { $ ( _ d 8 ) . i n n e r H T M L = _ d 9 . s t r i p S c r i p t s ( ) ; s e t T i m e o u t ( f u n c t i o n ( ) { _ d 9 . e v a l S c r i p t s ( ) ; } , 1 0 ) ; r e t u r n   _ d 8 ; } , r e p l a c e : f u n c t i o n ( _ d a , _ d b ) { _ d a = $ ( _ d a ) ; i f ( _ d a . o u t e r H T M L ) { _ d a . o u t e r H T M L = _ d b . s t r i p S c r i p t s ( ) ; } e l s e { v a r   _ d c = _ d a . o w n e r D o c u m e n t . c r e a t e R a n g e ( ) ; _ d c . s e l e c t N o d e C o n t e n t s ( _ d a ) ; _ d a . p a r e n t N o d e . r e p l a c e C h i l d ( _ d c . c r e a t e C o n t e x t u a l F r a g m e n t ( _ d b . s t r i p S c r i p t s ( ) ) , _ d a ) ; } s e t T i m e o u t ( f u n c t i o n ( ) { _ d b . e v a l S c r i p t s ( ) ; } , 1 0 ) ; r e t u r n   _ d a ; } , i n s p e c t : f u n c t i o n ( _ d d ) { _ d d = $ ( _ d d ) ; v a r   _ d e = " < " + _ d d . t a g N a m e . t o L o w e r C a s e ( ) ; $ H ( { " i d " : " i d " , " c l a s s N a m e " : " c l a s s " } ) . e a c h ( f u n c t i o n ( _ d f ) { v a r   _ e 0 = _ d f . f i r s t ( ) , a t t r i b u t e = _ d f . l a s t ( ) ; v a r   _ e 1 = ( _ d d [ _ e 0 ] | | " " ) . t o S t r i n g ( ) ; i f ( _ e 1 ) { _ d e + = "   " + a t t r i b u t e + " = " + _ e 1 . i n s p e c t ( t r u e ) ; } } ) ; r e t u r n   _ d e + " > " ; } , r e c u r s i v e l y C o l l e c t : f u n c t i o n ( _ e 2 , _ e 3 ) { _ e 2 = $ ( _ e 2 ) ; v a r   _ e 4 = [ ] ; w h i l e ( _ e 2 = _ e 2 [ _ e 3 ] ) { i f ( _ e 2 . n o d e T y p e = = 1 ) { _ e 4 . p u s h ( E l e m e n t . e x t e n d ( _ e 2 ) ) ; } } r e t u r n   _ e 4 ; } , a n c e s t o r s : f u n c t i o n ( _ e 5 ) { r e t u r n   $ ( _ e 5 ) . r e c u r s i v e l y C o l l e c t ( " p a r e n t N o d e " ) ; } , d e s c e n d a n t s : f u n c t i o n ( _ e 6 ) { _ e 6 = $ ( _ e 6 ) ; r e t u r n   $ A ( _ e 6 . g e t E l e m e n t s B y T a g N a m e ( " * " ) ) ; } , p r e v i o u s S i b l i n g s : f u n c t i o n ( _ e 7 ) { r e t u r n   $ ( _ e 7 ) . r e c u r s i v e l y C o l l e c t ( " p r e v i o u s S i b l i n g " ) ; } , n e x t S i b l i n g s : f u n c t i o n ( _ e 8 ) { r e t u r n   $ ( _ e 8 ) . r e c u r s i v e l y C o l l e c t ( " n e x t S i b l i n g " ) ; } , s i b l i n g s : f u n c t i o n ( _ e 9 ) { _ e 9 = $ ( _ e 9 ) ; r e t u r n   _ e 9 . p r e v i o u s S i b l i n g s ( ) . r e v e r s e ( ) . c o n c a t ( _ e 9 . n e x t S i b l i n g s ( ) ) ; } , m a t c h : f u n c t i o n ( _ e a , _ e b ) { _ e a = $ ( _ e a ) ; i f ( t y p e o f   _ e b = = " s t r i n g " ) { _ e b = n e w   S e l e c t o r ( _ e b ) ; } r e t u r n   _ e b . m a t c h ( _ e a ) ; } , u p : f u n c t i o n ( _ e c , _ e d , _ e e ) { r e t u r n   S e l e c t o r . f i n d E l e m e n t ( $ ( _ e c ) . a n c e s t o r s ( ) , _ e d , _ e e ) ; } , d o w n : f u n c t i o n ( _ e f , _ f 0 , _ f 1 ) { r e t u r n   S e l e c t o r . f i n d E l e m e n t ( $ ( _ e f ) . d e s c e n d a n t s ( ) , _ f 0 , _ f 1 ) ; } , p r e v i o u s : f u n c t i o n ( _ f 2 , _ f 3 , _ f 4 ) { r e t u r n   S e l e c t o r . f i n d E l e m e n t ( $ ( _ f 2 ) . p r e v i o u s S i b l i n g s ( ) , _ f 3 , _ f 4 ) ; } , n e x t : f u n c t i o n ( _ f 5 , _ f 6 , _ f 7 ) { r e t u r n   S e l e c t o r . f i n d E l e m e n t ( $ ( _ f 5 ) . n e x t S i b l i n g s ( ) , _ f 6 , _ f 7 ) ; } , g e t E l e m e n t s B y S e l e c t o r : f u n c t i o n ( ) { v a r   _ f 8 = $ A ( a r g u m e n t s ) , e l e m e n t = $ ( _ f 8 . s h i f t ( ) ) ; r e t u r n   S e l e c t o r . f i n d C h i l d E l e m e n t s ( e l e m e n t , _ f 8 ) ; } , g e t E l e m e n t s B y C l a s s N a m e : f u n c t i o n ( _ f 9 , _ f a ) { _ f 9 = $ ( _ f 9 ) ; r e t u r n   d o c u m e n t . g e t E l e m e n t s B y C l a s s N a m e ( _ f a , _ f 9 ) ; } , g e t H e i g h t : f u n c t i o n ( _ f b ) { _ f b = $ ( _ f b ) ; r e t u r n   _ f b . o f f s e t H e i g h t ; } , c l a s s N a m e s : f u n c t i o n ( _ f c ) { r e t u r n   n e w   E l e m e n t . C l a s s N a m e s ( _ f c ) ; } , h a s C l a s s N a m e : f u n c t i o n ( _ f d , _ f e ) { i f ( ! ( _ f d = $ ( _ f d ) ) ) { r e t u r n ; } r e t u r n   E l e m e n t . c l a s s N a m e s ( _ f d ) . i n c l u d e ( _ f e ) ; } , a d d C l a s s N a m e : f u n c t i o n ( _ f f , _ 1 0 0 ) { i f ( ! ( _ f f = $ ( _ f f ) ) ) { r e t u r n ; } E l e m e n t . c l a s s N a m e s ( _ f f ) . a d d ( _ 1 0 0 ) ; r e t u r n   _ f f ; } , r e m o v e C l a s s N a m e : f u n c t i o n ( _ 1 0 1 , _ 1 0 2 ) { i f ( ! ( _ 1 0 1 = $ ( _ 1 0 1 ) ) ) { r e t u r n ; } E l e m e n t . c l a s s N a m e s ( _ 1 0 1 ) . r e m o v e ( _ 1 0 2 ) ; r e t u r n   _ 1 0 1 ; } , o b s e r v e : f u n c t i o n ( ) { E v e n t . o b s e r v e . a p p l y ( E v e n t , a r g u m e n t s ) ; r e t u r n   $ A ( a r g u m e n t s ) . f i r s t ( ) ; } , s t o p O b s e r v i n g : f u n c t i o n ( ) { E v e n t . s t o p O b s e r v i n g . a p p l y ( E v e n t , a r g u m e n t s ) ; r e t u r n   $ A ( a r g u m e n t s ) . f i r s t ( ) ; } , c l e a n W h i t e s p a c e : f u n c t i o n ( _ 1 0 3 ) { _ 1 0 3 = $ ( _ 1 0 3 ) ; v a r   n o d e = _ 1 0 3 . f i r s t C h i l d ; w h i l e ( n o d e ) { v a r   _ 1 0 5 = n o d e . n e x t S i b l i n g ; i f ( n o d e . n o d e T y p e = = 3 & & ! / \ S / . t e s t ( n o d e . n o d e V a l u e ) ) { _ 1 0 3 . r e m o v e C h i l d ( n o d e ) ; } n o d e = _ 1 0 5 ; } r e t u r n   _ 1 0 3 ; } , e m p t y : f u n c t i o n ( _ 1 0 6 ) { r e t u r n   $ ( _ 1 0 6 ) . i n n e r H T M L . m a t c h ( / ^ \ s * $ / ) ; } , c h i l d O f : f u n c t i o n ( _ 1 0 7 , _ 1 0 8 ) { _ 1 0 7 = $ ( _ 1 0 7 ) , _ 1 0 8 = $ ( _ 1 0 8 ) ; w h i l e ( _ 1 0 7 = _ 1 0 7 . p a r e n t N o d e ) { i f ( _ 1 0 7 = = _ 1 0 8 ) { r e t u r n   t r u e ; } } r e t u r n   f a l s e ; } , s c r o l l T o : f u n c t i o n ( _ 1 0 9 ) { _ 1 0 9 = $ ( _ 1 0 9 ) ; v a r   x = _ 1 0 9 . x ? _ 1 0 9 . x : _ 1 0 9 . o f f s e t L e f t , y = _ 1 0 9 . y ? _ 1 0 9 . y : _ 1 0 9 . o f f s e t T o p ; w i n d o w . s c r o l l T o ( x , y ) ; r e t u r n   _ 1 0 9 ; } , g e t S t y l e : f u n c t i o n ( _ 1 0 b , _ 1 0 c ) { _ 1 0 b = $ ( _ 1 0 b ) ; v a r   _ 1 0 d = _ 1 0 b . s t y l e [ _ 1 0 c . c a m e l i z e ( ) ] ; i f ( ! _ 1 0 d ) { i f ( d o c u m e n t . d e f a u l t V i e w & & d o c u m e n t . d e f a u l t V i e w . g e t C o m p u t e d S t y l e ) { v a r   c s s = 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 ( _ 1 0 b , n u l l ) ; _ 1 0 d = c s s ? c s s . g e t P r o p e r t y V a l u e ( _ 1 0 c ) : n u l l ; } e l s e { i f ( _ 1 0 b . c u r r e n t S t y l e ) { _ 1 0 d = _ 1 0 b . c u r r e n t S t y l e [ _ 1 0 c . c a m e l i z e ( ) ] ; } } } i f ( w i n d o w . o p e r a & & [ " l e f t " , " t o p " , " r i g h t " , " b o t t o m " ] . i n c l u d e ( _ 1 0 c ) ) { i f ( E l e m e n t . g e t S t y l e ( _ 1 0 b , " p o s i t i o n " ) = = " s t a t i c " ) { _ 1 0 d = " a u t o " ; } } r e t u r n   _ 1 0 d = = " a u t o " ? n u l l : _ 1 0 d ; } , s e t S t y l e : f u n c t i o n ( _ 1 0 f , _ 1 1 0 ) { _ 1 0 f = $ ( _ 1 0 f ) ; f o r ( v a r   n a m e   i n   _ 1 1 0 ) { _ 1 0 f . s t y l e [ n a m e . c a m e l i z e ( ) ] = _ 1 1 0 [ n a m e ] ; } r e t u r n   _ 1 0 f ; } , g e t D i m e n s i o n s : f u n c t i o n ( _ 1 1 2 ) { _ 1 1 2 = $ ( _ 1 1 2 ) ; i f ( E l e m e n t . g e t S t y l e ( _ 1 1 2 , " d i s p l a y " ) ! = " n o n e " ) { r e t u r n   { w i d t h : _ 1 1 2 . o f f s e t W i d t h , h e i g h t : _ 1 1 2 . o f f s e t H e i g h t } ; } v a r   e l s = _ 1 1 2 . s t y l e ; v a r   _ 1 1 4 = e l s . v i s i b i l i t y ; v a r   _ 1 1 5 = e l s . p o s i t i o n ; e l s . v i s i b i l i t y = " h i d d e n " ; e l s . p o s i t i o n = " a b s o l u t e " ; e l s . d i s p l a y = " " ; v a r   _ 1 1 6 = _ 1 1 2 . c l i e n t W i d t h ; v a r   _ 1 1 7 = _ 1 1 2 . c l i e n t H e i g h t ; e l s . d i s p l a y = " n o n e " ; e l s . p o s i t i o n = _ 1 1 5 ; e l s . v i s i b i l i t y = _ 1 1 4 ; r e t u r n   { w i d t h : _ 1 1 6 , h e i g h t : _ 1 1 7 } ; } , m a k e P o s i t i o n e d : f u n c t i o n ( _ 1 1 8 ) { _ 1 1 8 = $ ( _ 1 1 8 ) ; v a r   p o s = E l e m e n t . g e t S t y l e ( _ 1 1 8 , " p o s i t i o n " ) ; i f ( p o s = = " s t a t i c " | | ! p o s ) { _ 1 1 8 . _ m a d e P o s i t i o n e d = t r u e ; _ 1 1 8 . s t y l e . p o s i t i o n = " r e l a t i v e " ; i f ( w i n d o w . o p e r a ) { _ 1 1 8 . s t y l e . t o p = 0 ; _ 1 1 8 . s t y l e . l e f t = 0 ; } } r e t u r n   _ 1 1 8 ; } , u n d o P o s i t i o n e d : f u n c t i o n ( _ 1 1 a ) { _ 1 1 a = $ ( _ 1 1 a ) ; i f ( _ 1 1 a . _ m a d e P o s i t i o n e d ) { _ 1 1 a . _ m a d e P o s i t i o n e d = u n d e f i n e d ; _ 1 1 a . s t y l e . p o s i t i o n = _ 1 1 a . s t y l e . t o p = _ 1 1 a . s t y l e . l e f t = _ 1 1 a . s t y l e . b o t t o m = _ 1 1 a . s t y l e . r i g h t = " " ; } r e t u r n   _ 1 1 a ; } , m a k e C l i p p i n g : f u n c t i o n ( _ 1 1 b ) { _ 1 1 b = $ ( _ 1 1 b ) ; i f ( _ 1 1 b . _ o v e r f l o w ) { r e t u r n ; } _ 1 1 b . _ o v e r f l o w = _ 1 1 b . s t y l e . o v e r f l o w | | " a u t o " ; i f ( ( E l e m e n t . g e t S t y l e ( _ 1 1 b , " o v e r f l o w " ) | | " v i s i b l e " ) ! = " h i d d e n " ) { _ 1 1 b . s t y l e . o v e r f l o w = " h i d d e n " ; } r e t u r n   _ 1 1 b ; } , u n d o C l i p p i n g : f u n c t i o n ( _ 1 1 c ) { _ 1 1 c = $ ( _ 1 1 c ) ; i f ( ! _ 1 1 c . _ o v e r f l o w ) { r e t u r n ; } _ 1 1 c . s t y l e . o v e r f l o w = _ 1 1 c . _ o v e r f l o w = = " a u t o " ? " " : _ 1 1 c . _ o v e r f l o w ; _ 1 1 c . _ o v e r f l o w = n u l l ; r e t u r n   _ 1 1 c ; } } ; i f ( d o c u m e n t . a l l ) { E l e m e n t . M e t h o d s . u p d a t e = f u n c t i o n ( _ 1 1 d , h t m l ) { _ 1 1 d = $ ( _ 1 1 d ) ; v a r   _ 1 1 f = _ 1 1 d . t a g N a m e . t o U p p e r C a s e ( ) ; i f ( [ " T H E A D " , " T B O D Y " , " T R " , " T D " ] . i n d e x O f ( _ 1 1 f ) > - 1 ) { v a r   d i v = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; s w i t c h ( _ 1 1 f ) { c a s e   " T H E A D " : c a s e   " T B O D Y " : d i v . i n n e r H T M L = " < t a b l e > < t b o d y > " + h t m l . s t r i p S c r i p t s ( ) + " < / t b o d y > < / t a b l e > " ; d e p t h = 2 ; b r e a k ; c a s e   " T R " : d i v . i n n e r H T M L = " < t a b l e > < t b o d y > < t r > " + h t m l . s t r i p S c r i p t s ( ) + " < / t r > < / t b o d y > < / t a b l e > " ; d e p t h = 3 ; b r e a k ; c a s e   " T D " : d i v . i n n e r H T M L = " < t a b l e > < t b o d y > < t r > < t d > " + h t m l . s t r i p S c r i p t s ( ) + " < / t d > < / t r > < / t b o d y > < / t a b l e > " ; d e p t h = 4 ; } $ A ( _ 1 1 d . c h i l d N o d e s ) . e a c h ( f u n c t i o n ( n o d e ) { _ 1 1 d . r e m o v e C h i l d ( n o d e ) ; } ) ; d e p t h . t i m e s ( f u n c t i o n ( ) { d i v = d i v . f i r s t C h i l d ; } ) ; $ A ( d i v . c h i l d N o d e s ) . e a c h ( f u n c t i o n ( n o d e ) { _ 1 1 d . a p p e n d C h i l d ( n o d e ) ; } ) ; } e l s e { _ 1 1 d . i n n e r H T M L = h t m l . s t r i p S c r i p t s ( ) ; } s e t T i m e o u t ( f u n c t i o n ( ) { h t m l . e v a l S c r i p t s ( ) ; } , 1 0 ) ; r e t u r n   _ 1 1 d ; } ; } O b j e c t . e x t e n d ( E l e m e n t , E l e m e n t . M e t h o d s ) ; v a r   _ n a t i v e E x t e n s i o n s = f a l s e ; i f ( ! w i n d o w . H T M L E l e m e n t & & / K o n q u e r o r | S a f a r i | K H T M L / . t e s t ( n a v i g a t o r . u s e r A g e n t ) ) { [ " " , " F o r m " , " I n p u t " , " T e x t A r e a " , " S e l e c t " ] . e a c h ( f u n c t i o n ( t a g ) { v a r   _ 1 2 4 = w i n d o w [ " H T M L " + t a g + " E l e m e n t " ] = { } ; _ 1 2 4 . p r o t o t y p e = d o c u m e n t . c r e a t e E l e m e n t ( t a g ? t a g . t o L o w e r C a s e ( ) : " d i v " ) . _ _ p r o t o _ _ ; } ) ; } E l e m e n t . a d d M e t h o d s = f u n c t i o n ( _ 1 2 5 ) { O b j e c t . e x t e n d ( E l e m e n t . M e t h o d s , _ 1 2 5 | | { } ) ; f u n c t i o n   c o p y ( _ 1 2 6 , _ 1 2 7 ) { v a r   _ 1 2 8 = E l e m e n t . e x t e n d . c a c h e ; f o r ( v a r   _ 1 2 9   i n   _ 1 2 6 ) { v a r   _ 1 2 a = _ 1 2 6 [ _ 1 2 9 ] ; _ 1 2 7 [ _ 1 2 9 ] = _ 1 2 8 . f i n d O r S t o r e ( _ 1 2 a ) ; } } i f ( t y p e o f   H T M L E l e m e n t ! = " u n d e f i n e d " ) { c o p y ( E l e m e n t . M e t h o d s , H T M L E l e m e n t . p r o t o t y p e ) ; c o p y ( F o r m . M e t h o d s , H T M L F o r m E l e m e n t . p r o t o t y p e ) ; [ H T M L I n p u t E l e m e n t , H T M L T e x t A r e a E l e m e n t , H T M L S e l e c t E l e m e n t ] . e a c h ( f u n c t i o n ( _ 1 2 b ) { c o p y ( F o r m . E l e m e n t . M e t h o d s , _ 1 2 b . p r o t o t y p e ) ; } ) ; _ n a t i v e E x t e n s i o n s = t r u e ; } } ; v a r   T o g g l e = n e w   O b j e c t ( ) ; T o g g l e . d i s p l a y = E l e m e n t . t o g g l e ; A b s t r a c t . I n s e r t i o n = f u n c t i o n ( _ 1 2 c ) { t h i s . a d j a c e n c y = _ 1 2 c ; } ; A b s t r a c t . I n s e r t i o n . p r o t o t y p e = { i n i t i a l i z e : f u n c t i o n ( _ 1 2 d , _ 1 2 e ) { t h i s . e l e m e n t = $ ( _ 1 2 d ) ; t h i s . c o n t e n t = _ 1 2 e . s t r i p S c r i p t s ( ) ; i f ( t h i s . a d j a c e n c y & & t h i s . e l e m e n t . i n s e r t A d j a c e n t H T M L ) { t r y { t h i s . e l e m e n t . i n s e r t A d j a c e n t H T M L ( t h i s . a d j a c e n c y , t h i s . c o n t e n t ) ; } c a t c h ( e ) { v a r   _ 1 2 f = t h i s . e l e m e n t . t a g N a m e . t o L o w e r C a s e ( ) ; i f ( _ 1 2 f = = " t b o d y " | | _ 1 2 f = = " t r " ) { t h i s . i n s e r t C o n t e n t ( t h i s . c o n t e n t F r o m A n o n y m o u s T a b l e ( ) ) ; } e l s e { t h r o w   e ; } } } e l s e { t h i s . r a n g e = t h i s . e l e m e n t . o w n e r D o c u m e n t . c r e a t e R a n g e ( ) ; i f ( t h i s . i n i t i a l i z e R a n g e ) { t h i s . i n i t i a l i z e R a n g e ( ) ; } t h i s . i n s e r t C o n t e n t ( [ t h i s . r a n g e . c r e a t e C o n t e x t u a l F r a g m e n t ( t h i s . c o n t e n t ) ] ) ; } s e t T i m e o u t ( f u n c t i o n ( ) { _ 1 2 e . e v a l S c r i p t s ( ) ; } , 1 0 ) ; } , c o n t e n t F r o m A n o n y m o u s T a b l e : f u n c t i o n ( ) { v a r   d i v = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; d i v . i n n e r H T M L = " < t a b l e > < t b o d y > " + t h i s . c o n t e n t + " < / t b o d y > < / t a b l e > " ; r e t u r n   $ A ( d i v . c h i l d N o d e s [ 0 ] . c h i l d N o d e s [ 0 ] . c h i l d N o d e s ) ; } } ; v a r   I n s e r t i o n = n e w   O b j e c t ( ) ; I n s e r t i o n . B e f o r e = C l a s s . c r e a t e ( ) ; I n s e r t i o n . B e f o r e . p r o t o t y p e = O b j e c t . e x t e n d ( n e w   A b s t r a c t . I n s e r t i o n ( " b e f o r e B e g i n " ) , { i n i t i a l i z e R a n g e : f u n c t i o n ( ) { t h i s . r a n g e . s e t S t a r t B e f o r e ( t h i s . e l e m e n t ) ; } , i n s e r t C o n t e n t : f u n c t i o n ( _ 1 3 1 ) { _ 1 3 1 . e a c h ( ( f u n c t i o n ( _ 1 3 2 ) { t h i s . e l e m e n t . p a r e n t N o d e . i n s e r t B e f o r e ( _ 1 3 2 , t h i s . e l e m e n t ) ; } ) . b i n d ( t h i s ) ) ; } } ) ; I n s e r t i o n . T o p = C l a s s . c r e a t e ( ) ; I n s e r t i o n . T o p . p r o t o t y p e = O b j e c t . e x t e n d ( n e w   A b s t r a c t . I n s e r t i o n ( " a f t e r B e g i n " ) , { i n i t i a l i z e R a n g e : f u n c t i o n ( ) { t h i s . r a n g e . s e l e c t N o d e C o n t e n t s ( t h i s . e l e m e n t ) ; t h i s . r a n g e . c o l l a p s e ( t r u e ) ; } , i n s e r t C o n t e n t : f u n c t i o n ( _ 1 3 3 ) { _ 1 3 3 . r e v e r s e ( f a l s e ) . e a c h ( ( f u n c t i o n ( _ 1 3 4 ) { t h i s . e l e m e n t . i n s e r t B e f o r e ( _ 1 3 4 , t h i s . e l e m e n t . f i r s t C h i l d ) ; } ) . b i n d ( t h i s ) ) ; } } ) ; I n s e r t i o n . B o t t o m = C l a s s . c r e a t e ( ) ; I n s e r t i o n . B o t t o m . p r o t o t y p e = O b j e c t . e x t e n d ( n e w   A b s t r a c t . I n s e r t i o n ( " b e f o r e E n d " ) , { i n i t i a l i z e R a n g e : f u n c t i o n ( ) { t h i s . r a n g e . s e l e c t N o d e C o n t e n t s ( t h i s . e l e m e n t ) ; t h i s . r a n g e . c o l l a p s e ( t h i s . e l e m e n t ) ; } , i n s e r t C o n t e n t : f u n c t i o n ( _ 1 3 5 ) { _ 1 3 5 . e a c h ( ( f u n c t i o n ( _ 1 3 6 ) { t h i s . e l e m e n t . a p p e n d C h i l d ( _ 1 3 6 ) ; } ) . b i n d ( t h i s ) ) ; } } ) ; I n s e r t i o n . A f t e r = C l a s s . c r e a t e ( ) ; I n s e r t i o n . A f t e r . p r o t o t y p e = O b j e c t . e x t e n d ( n e w   A b s t r a c t . I n s e r t i o n ( " a f t e r E n d " ) , { i n i t i a l i z e R a n g e : f u n c t i o n ( ) { t h i s . r a n g e . s e t S t a r t A f t e r ( t h i s . e l e m e n t ) ; } , i n s e r t C o n t e n t : f u n c t i o n ( _ 1 3 7 ) { _ 1 3 7 . e a c h ( ( f u n c t i o n ( _ 1 3 8 ) { t h i s . e l e m e n t . p a r e n t N o d e . i n s e r t B e f o r e ( _ 1 3 8 , t h i s . e l e m e n t . n e x t S i b l i n g ) ; } ) . b i n d ( t h i s ) ) ; } } ) ; E l e m e n t . C l a s s N a m e s = C l a s s . c r e a t e ( ) ; E l e m e n t . C l a s s N a m e s . p r o t o t y p e = { i n i t i a l i z e : f u n c t i o n ( _ 1 3 9 ) { t h i s . e l e m e n t = $ ( _ 1 3 9 ) ; } , _ e a c h : f u n c t i o n ( _ 1 3 a ) { t h i s . e l e m e n t . c l a s s N a m e . s p l i t ( / \ s + / ) . s e l e c t ( f u n c t i o n ( n a m e ) { r e t u r n   n a m e . l e n g t h > 0 ; } ) . _ e a c h ( _ 1 3 a ) ; } , s e t : f u n c t i o n ( _ 1 3 c ) { t h i s . e l e m e n t . c l a s s N a m e = _ 1 3 c ; } , a d d : f u n c t i o n ( _ 1 3 d ) { i f ( t h i s . i n c l u d e ( _ 1 3 d ) ) { r e t u r n ; } t h i s . s e t ( t h i s . t o A r r a y ( ) . c o n c a t ( _ 1 3 d ) . j o i n ( "   " ) ) ; } , r e m o v e : f u n c t i o n ( _ 1 3 e ) { i f ( ! t h i s . i n c l u d e ( _ 1 3 e ) ) { r e t u r n ; } t h i s . s e t ( t h i s . s e l e c t ( f u n c t i o n ( _ 1 3 f ) { r e t u r n   _ 1 3 f ! = _ 1 3 e ; } ) . j o i n ( "   " ) ) ; } , t o S t r i n g : f u n c t i o n ( ) { r e t u r n   t h i s . t o A r r a y ( ) . j o i n ( "   " ) ; } } ; O b j e c t . e x t e n d ( E l e m e n t . C l a s s N a m e s . p r o t o t y p e , E n u m e r a b l e ) ; v a r   S e l e c t o r = C l a s s . c r e a t e ( ) ; S e l e c t o r . p r o t o t y p e = { i n i t i a l i z e : f u n c t i o n ( _ 1 4 0 ) { t h i s . p a r a m s = { c l a s s N a m e s : [ ] } ; t h i s . e x p r e s s i o n = _ 1 4 0 . t o S t r i n g ( ) . s t r i p ( ) ; t h i s . p a r s e E x p r e s s i o n ( ) ; t h i s . c o m p i l e M a t c h e r ( ) ; } , p a r s e E x p r e s s i o n : f u n c t i o n ( ) { f u n c t i o n   a b o r t ( _ 1 4 1 ) { t h r o w   " P a r s e   e r r o r   i n   s e l e c t o r :   " + _ 1 4 1 ; } i f ( t h i s . e x p r e s s i o n = = " " ) { a b o r t ( " e m p t y   e x p r e s s i o n " ) ; } v a r   _ 1 4 2 = t h i s . p a r a m s , e x p r = t h i s . e x p r e s s i o n , m a t c h , m o d i f i e r , c l a u s e , r e s t ; w h i l e ( m a t c h = e x p r . m a t c h ( / ^ ( . * ) \ [ ( [ a - z 0 - 9 _ : - ] + ? ) ( ? : ( [ ~ \ | ! ] ? = ) ( ? : " ( [ ^ " ] * ) " | ( [ ^ \ ] \ s ] * ) ) ) ? \ ] $ / i ) ) { _ 1 4 2 . a t t r i b u t e s = _ 1 4 2 . a t t r i b u t e s | | [ ] ; _ 1 4 2 . a t t r i b u t e s . p u s h ( { n a m e : m a t c h [ 2 ] , o p e r a t o r : m a t c h [ 3 ] , v a l u e : m a t c h [ 4 ] | | m a t c h [ 5 ] | | " " } ) ; e x p r = m a t c h [ 1 ] ; } i f ( e x p r = = " * " ) { r e t u r n   t h i s . p a r a m s . w i l d c a r d = t r u e ; } w h i l e ( m a t c h = e x p r . m a t c h ( / ^ ( [ ^ a - z 0 - 9 _ - ] ) ? ( [ a - z 0 - 9 _ - ] + ) ( . * ) / i ) ) { m o d i f i e r = m a t c h [ 1 ] , c l a u s e = m a t c h [ 2 ] , r e s t = m a t c h [ 3 ] ; s w i t c h ( m o d i f i e r ) { c a s e   " # " : _ 1 4 2 . i d = c l a u s e ; b r e a k ; c a s e   " . " : _ 1 4 2 . c l a s s N a m e s . p u s h ( c l a u s e ) ; b r e a k ; c a s e   " " : c a s e   u n d e f i n e d : _ 1 4 2 . t a g N a m e = c l a u s e . t o U p p e r C a s e ( ) ; b r e a k ; d e f a u l t : a b o r t ( e x p r . i n s p e c t ( ) ) ; } e x p r = r e s t ; } i f ( e x p r . l e n g t h > 0 ) { a b o r t ( e x p r . i n s p e c t ( ) ) ; } } , b u i l d M a t c h E x p r e s s i o n : f u n c t i o n ( ) { v a r   _ 1 4 3 = t h i s . p a r a m s , c o n d i t i o n s = [ ] , c l a u s e ; i f ( _ 1 4 3 . w i l d c a r d ) { c o n d i t i o n s . p u s h ( " t r u e " ) ; } i f ( c l a u s e = _ 1 4 3 . i d ) { c o n d i t i o n s . p u s h ( " e l e m e n t . i d   = =   " + c l a u s e . i n s p e c t ( ) ) ; } i f ( c l a u s e = _ 1 4 3 . t a g N a m e ) { c o n d i t i o n s . p u s h ( " e l e m e n t . t a g N a m e . t o U p p e r C a s e ( )   = =   " + c l a u s e . i n s p e c t ( ) ) ; } i f ( ( c l a u s e = _ 1 4 3 . c l a s s N a m e s ) . l e n g t h > 0 ) { f o r ( v a r   i = 0 ; i < c l a u s e . l e n g t h ; i + + ) { c o n d i t i o n s . p u s h ( " E l e m e n t . h a s C l a s s N a m e ( e l e m e n t ,   " + c l a u s e [ i ] . i n s p e c t ( ) + " ) " ) ; } } i f ( c l a u s e = _ 1 4 3 . a t t r i b u t e s ) { c l a u s e . e a c h ( f u n c t i o n ( _ 1 4 5 ) { v a r   _ 1 4 6 = " e l e m e n t . g e t A t t r i b u t e ( " + _ 1 4 5 . n a m e . i n s p e c t ( ) + " ) " ; v a r   _ 1 4 7 = f u n c t i o n ( _ 1 4 8 ) { r e t u r n   _ 1 4 6 + "   & &   " + _ 1 4 6 + " . s p l i t ( " + _ 1 4 8 . i n s p e c t ( ) + " ) " ; } ; s w i t c h ( _ 1 4 5 . o p e r a t o r ) { c a s e   " = " : c o n d i t i o n s . p u s h ( _ 1 4 6 + "   = =   " + _ 1 4 5 . v a l u e . i n s p e c t ( ) ) ; b r e a k ; c a s e   " ~ = " : c o n d i t i o n s . p u s h ( _ 1 4 7 ( "   " ) + " . i n c l u d e ( " + _ 1 4 5 . v a l u e . i n s p e c t ( ) + " ) " ) ; b r e a k ; c a s e   " | = " : c o n d i t i o n s . p u s h ( _ 1 4 7 ( " - " ) + " . f i r s t ( ) . t o U p p e r C a s e ( )   = =   " + _ 1 4 5 . v a l u e . t o U p p e r C a s e ( ) . i n s p e c t ( ) ) ; b r e a k ; c a s e   " ! = " : c o n d i t i o n s . p u s h ( _ 1 4 6 + "   ! =   " + _ 1 4 5 . v a l u e . i n s p e c t ( ) ) ; b r e a k ; c a s e   " " : c a s e   u n d e f i n e d : c o n d i t i o n s . p u s h ( _ 1 4 6 + "   ! =   n u l l " ) ; b r e a k ; d e f a u l t : t h r o w   " U n k n o w n   o p e r a t o r   " + _ 1 4 5 . o p e r a t o r + "   i n   s e l e c t o r " ; } } ) ; } r e t u r n   c o n d i t i o n s . j o i n ( "   & &   " ) ; } , c o m p i l e M a t c h e r : f u n c t i o n ( ) { t h i s . m a t c h = n e w   F u n c t i o n ( " e l e m e n t " , " i f   ( ! e l e m e n t . t a g N a m e )   r e t u r n   f a l s e ;               r e t u r n   " + t h i s . b u i l d M a t c h E x p r e s s i o n ( ) ) ; } , f i n d E l e m e n t s : f u n c t i o n ( _ 1 4 9 ) { v a r   _ 1 4 a ; i f ( _ 1 4 a = $ ( t h i s . p a r a m s . i d ) ) { i f ( t h i s . m a t c h ( _ 1 4 a ) ) { i f ( ! _ 1 4 9 | | E l e m e n t . c h i l d O f ( _ 1 4 a , _ 1 4 9 ) ) { r e t u r n   [ _ 1 4 a ] ; } } } _ 1 4 9 = ( _ 1 4 9 | | d o c u m e n t ) . g e t E l e m e n t s B y T a g N a m e ( t h i s . p a r a m s . t a g N a m e | | " * " ) ; v a r   _ 1 4 b = [ ] ; f o r ( v a r   i = 0 ; i < _ 1 4 9 . l e n g t h ; i + + ) { i f ( t h i s . m a t c h ( _ 1 4 a = _ 1 4 9 [ i ] ) ) { _ 1 4 b . p u s h ( E l e m e n t . e x t e n d ( _ 1 4 a ) ) ; } } r e t u r n   _ 1 4 b ; } , t o S t r i n g : f u n c t i o n ( ) { r e t u r n   t h i s . e x p r e s s i o n ; } } ; O b j e c t . e x t e n d ( S e l e c t o r , { m a t c h E l e m e n t s : f u n c t i o n ( _ 1 4 d , _ 1 4 e ) { v a r   _ 1 4 f = n e w   S e l e c t o r ( _ 1 4 e ) ; r e t u r n   _ 1 4 d . s e l e c t ( _ 1 4 f . m a t c h . b i n d ( _ 1 4 f ) ) ; } , f i n d E l e m e n t : f u n c t i o n ( _ 1 5 0 , _ 1 5 1 , _ 1 5 2 ) { i f ( t y p e o f   _ 1 5 1 = = " n u m b e r " ) { _ 1 5 2 = _ 1 5 1 , _ 1 5 1 = f a l s e ; } r e t u r n   S e l e c t o r . m a t c h E l e m e n t s ( _ 1 5 0 , _ 1 5 1 | | " * " ) [ _ 1 5 2 | | 0 ] ; } , f i n d C h i l d E l e m e n t s : f u n c t i o n ( _ 1 5 3 , _ 1 5 4 ) { r e t u r n   _ 1 5 4 . m a p ( f u n c t i o n ( _ 1 5 5 ) { r e t u r n   _ 1 5 5 . s t r i p ( ) . s p l i t ( / \ s + / ) . i n j e c t ( [ n u l l ] , f u n c t i o n ( _ 1 5 6 , e x p r ) { v a r   _ 1 5 8 = n e w   S e l e c t o r ( e x p r ) ; r e t u r n   _ 1 5 6 . i n j e c t ( [ ] , f u n c t i o n ( _ 1 5 9 , _ 1 5 a ) { r e t u r n   _ 1 5 9 . c o n c a t ( _ 1 5 8 . f i n d E l e m e n t s ( _ 1 5 a | | _ 1 5 3 ) ) ; } ) ; } ) ; } ) . f l a t t e n ( ) ; } } ) ; f u n c t i o n   $ $ ( ) { r e t u r n   S e l e c t o r . f i n d C h i l d E l e m e n t s ( d o c u m e n t , $ A ( a r g u m e n t s ) ) ; } v a r   F o r m = { r e s e t : f u n c t i o n ( f o r m ) { $ ( f o r m ) . r e s e t ( ) ; r e t u r n   f o r m ; } } ; F o r m . M e t h o d s = { s e r i a l i z e : f u n c t i o n ( f o r m ) { v a r   _ 1 5 d = F o r m . g e t E l e m e n t s ( $ ( f o r m ) ) ; v a r   _ 1 5 e = n e w   A r r a y ( ) ; f o r ( v a r   i = 0 ; i < _ 1 5 d . l e n g t h ; i + + ) { v a r   _ 1 6 0 = F o r m . E l e m e n t . s e r i a l i z e ( _ 1 5 d [ i ] ) ; i f ( _ 1 6 0 ) { _ 1 5 e . p u s h ( _ 1 6 0 ) ; } } r e t u r n   _ 1 5 e . j o i n ( " & " ) ; } , g e t E l e m e n t s : f u n c t i o n ( f o r m ) { f o r m = $ ( f o r m ) ; v a r   _ 1 6 2 = n e w   A r r a y ( ) ; f o r ( v a r   _ 1 6 3   i n   F o r m . E l e m e n t . S e r i a l i z e r s ) { v a r   _ 1 6 4 = f o r m . g e t E l e m e n t s B y T a g N a m e ( _ 1 6 3 ) ; f o r ( v a r   j = 0 ; j < _ 1 6 4 . l e n g t h ; j + + ) { _ 1 6 2 . p u s h ( _ 1 6 4 [ j ] ) ; } } r e t u r n   _ 1 6 2 ; } , g e t I n p u t s : f u n c t i o n ( f o r m , _ 1 6 7 , n a m e ) { f o r m = $ ( f o r m ) ; v a r   _ 1 6 9 = f o r m . g e t E l e m e n t s B y T a g N a m e ( " i n p u t " ) ; i f ( ! _ 1 6 7 & & ! n a m e ) { r e t u r n   _ 1 6 9 ; } v a r   _ 1 6 a = n e w   A r r a y ( ) ; f o r ( v a r   i = 0 ; i < _ 1 6 9 . l e n g t h ; i + + ) { v a r   _ 1 6 c = _ 1 6 9 [ i ] ; i f ( ( _ 1 6 7 & & _ 1 6 c . t y p e ! = _ 1 6 7 ) | | ( n a m e & & _ 1 6 c . n a m e ! = n a m e ) ) { c o n t i n u e ; } _ 1 6 a . p u s h ( _ 1 6 c ) ; } r e t u r n   _ 1 6 a ; } , d i s a b l e : f u n c t i o n ( f o r m ) { f o r m = $ ( f o r m ) ; v a r   _ 1 6 e = F o r m . g e t E l e m e n t s ( f o r m ) ; f o r ( v a r   i = 0 ; i < _ 1 6 e . l e n g t h ; i + + ) { v a r   _ 1 7 0 = _ 1 6 e [ i ] ; _ 1 7 0 . b l u r ( ) ; _ 1 7 0 . d i s a b l e d = " t r u e " ; } r e t u r n   f o r m ; } , e n a b l e : f u n c t i o n ( f o r m ) { f o r m = $ ( f o r m ) ; v a r   _ 1 7 2 = F o r m . g e t E l e m e n t s ( f o r m ) ; f o r ( v a r   i = 0 ; i < _ 1 7 2 . l e n g t h ; i + + ) { v a r   _ 1 7 4 = _ 1 7 2 [ i ] ; _ 1 7 4 . d i s a b l e d = " " ; } r e t u r n   f o r m ; } , f i n d F i r s t E l e m e n t : f u n c t i o n ( f o r m ) { r e t u r n   F o r m . g e t E l e m e n t s ( f o r m ) . f i n d ( f u n c t i o n ( _ 1 7 6 ) { r e t u r n   _ 1 7 6 . t y p e ! = " h i d d e n " & & ! _ 1 7 6 . d i s a b l e d & & [ " i n p u t " , " s e l e c t " , " t e x t a r e a " ] . i n c l u d e ( _ 1 7 6 . t a g N a m e . t o L o w e r C a s e ( ) ) ; } ) ; } , f o c u s F i r s t E l e m e n t : f u n c t i o n ( f o r m ) { f o r m = $ ( f o r m ) ; F i e l d . a c t i v a t e ( F o r m . f i n d F i r s t E l e m e n t ( f o r m ) ) ; r e t u r n   f o r m ; } } ; O b j e c t . e x t e n d ( F o r m , F o r m . M e t h o d s ) ; F o r m . E l e m e n t = { f o c u s : f u n c t i o n ( _ 1 7 8 ) { $ ( _ 1 7 8 ) . f o c u s ( ) ; r e t u r n   _ 1 7 8 ; } , s e l e c t : f u n c t i o n ( _ 1 7 9 ) { $ ( _ 1 7 9 ) . s e l e c t ( ) ; r e t u r n   _ 1 7 9 ; } } ; F o r m . E l e m e n t . M e t h o d s = { s e r i a l i z e : f u n c t i o n ( _ 1 7 a ) { _ 1 7 a = $ ( _ 1 7 a ) ; v a r   _ 1 7 b = _ 1 7 a . t a g N a m e . t o L o w e r C a s e ( ) ; v a r   _ 1 7 c = F o r m . E l e m e n t . S e r i a l i z e r s [ _ 1 7 b ] ( _ 1 7 a ) ; i f ( _ 1 7 c ) { v a r   k e y = e n c o d e U R I C o m p o n e n t ( _ 1 7 c [ 0 ] ) ; i f ( k e y . l e n g t h = = 0 ) { r e t u r n ; } i f ( _ 1 7 c [ 1 ] . c o n s t r u c t o r ! = A r r a y ) { _ 1 7 c [ 1 ] = [ _ 1 7 c [ 1 ] ] ; } r e t u r n   _ 1 7 c [ 1 ] . m a p ( f u n c t i o n ( _ 1 7 e ) { r e t u r n   k e y + " = " + e n c o d e U R I C o m p o n e n t ( _ 1 7 e ) ; } ) . j o i n ( " & " ) ; } } , g e t V a l u e : f u n c t i o n ( _ 1 7 f ) { _ 1 7 f = $ ( _ 1 7 f ) ; v a r   _ 1 8 0 = _ 1 7 f . t a g N a m e . t o L o w e r C a s e ( ) ; v a r   _ 1 8 1 = F o r m . E l e m e n t . S e r i a l i z e r s [ _ 1 8 0 ] ( _ 1 7 f ) ; i f ( _ 1 8 1 ) { r e t u r n   _ 1 8 1 [ 1 ] ; } } , c l e a r : f u n c t i o n ( _ 1 8 2 ) { $ ( _ 1 8 2 ) . v a l u e = " " ; r e t u r n   _ 1 8 2 ; } , p r e s e n t : f u n c t i o n ( _ 1 8 3 ) { r e t u r n   $ ( _ 1 8 3 ) . v a l u e ! = " " ; } , a c t i v a t e : f u n c t i o n ( _ 1 8 4 ) { _ 1 8 4 = $ ( _ 1 8 4 ) ; _ 1 8 4 . f o c u s ( ) ; i f ( _ 1 8 4 . s e l e c t ) { _ 1 8 4 . s e l e c t ( ) ; } r e t u r n   _ 1 8 4 ; } , d i s a b l e : f u n c t i o n ( _ 1 8 5 ) { _ 1 8 5 = $ ( _ 1 8 5 ) ; _ 1 8 5 . d i s a b l e d = " " ; r e t u r n   _ 1 8 5 ; } , e n a b l e : f u n c t i o n ( _ 1 8 6 ) { _ 1 8 6 = $ ( _ 1 8 6 ) ; _ 1 8 6 . b l u r ( ) ; _ 1 8 6 . d i s a b l e d = " t r u e " ; r e t u r n   _ 1 8 6 ; } } ; O b j e c t . e x t e n d ( F o r m . E l e m e n t , F o r m . E l e m e n t . M e t h o d s ) ; v a r   F i e l d = F o r m . E l e m e n t ; F o r m . E l e m e n t . S e r i a l i z e r s = { i n p u t : f u n c t i o n ( _ 1 8 7 ) { s w i t c h ( _ 1 8 7 . t y p e . t o L o w e r C a s e ( ) ) { c a s e   " c h e c k b o x " : c a s e   " r a d i o " : r e t u r n   F o r m . E l e m e n t . S e r i a l i z e r s . i n p u t S e l e c t o r ( _ 1 8 7 ) ; d e f a u l t : r e t u r n   F o r m . E l e m e n t . S e r i a l i z e r s . t e x t a r e a ( _ 1 8 7 ) ; } r e t u r n   f a l s e ; } , i n p u t S e l e c t o r : f u n c t i o n ( _ 1 8 8 ) { i f ( _ 1 8 8 . c h e c k e d ) { r e t u r n   [ _ 1 8 8 . n a m e , _ 1 8 8 . v a l u e ] ; } } , t e x t a r e a : f u n c t i o n ( _ 1 8 9 ) { r e t u r n   [ _ 1 8 9 . n a m e , _ 1 8 9 . v a l u e ] ; } , s e l e c t : f u n c t i o n ( _ 1 8 a ) { r e t u r n   F o r m . E l e m e n t . S e r i a l i z e r s [ _ 1 8 a . t y p e = = " s e l e c t - o n e " ? " s e l e c t O n e " : " s e l e c t M a n y " ] ( _ 1 8 a ) ; } , s e l e c t O n e : f u n c t i o n ( _ 1 8 b ) { v a r   _ 1 8 c = " " , o p t , i n d e x = _ 1 8 b . s e l e c t e d I n d e x ; i f ( i n d e x > = 0 ) { o p t = _ 1 8 b . o p t i o n s [ i n d e x ] ; _ 1 8 c = o p t . v a l u e | | o p t . t e x t ; } r e t u r n   [ _ 1 8 b . n a m e , _ 1 8 c ] ; } , s e l e c t M a n y : f u n c t i o n ( _ 1 8 d ) { v a r   _ 1 8 e = [ ] ; f o r ( v a r   i = 0 ; i < _ 1 8 d . l e n g t h ; i + + ) { v a r   o p t = _ 1 8 d . o p t i o n s [ i ] ; i f ( o p t . s e l e c t e d ) { _ 1 8 e . p u s h ( o p t . v a l u e | | o p t . t e x t ) ; } } r e t u r n   [ _ 1 8 d . n a m e , _ 1 8 e ] ; } } ; v a r   $ F = F o r m . E l e m e n t . g e t V a l u e ; A b s t r a c t . T i m e d O b s e r v e r = f u n c t i o n ( ) { } ; A b s t r a c t . T i m e d O b s e r v e r . p r o t o t y p e = { i n i t i a l i z e : f u n c t i o n ( _ 1 9 1 , _ 1 9 2 , _ 1 9 3 ) { t h i s . f r e q u e n c y = _ 1 9 2 ; t h i s . e l e m e n t = $ ( _ 1 9 1 ) ; t h i s . c a l l b a c k = _ 1 9 3 ; t h i s . l a s t V a l u e = t h i s . g e t V a l u e ( ) ; t h i s . r e g i s t e r C a l l b a c k ( ) ; } , r e g i s t e r C a l l b a c k : f u n c t i o n ( ) { s e t I n t e r v a l ( t h i s . o n T i m e r E v e n t . b i n d ( t h i s ) , t h i s . f r e q u e n c y * 1 0 0 0 ) ; } , o n T i m e r E v e n t : f u n c t i o n ( ) { v a r   _ 1 9 4 = t h i s . g e t V a l u e ( ) ; i f ( t h i s . l a s t V a l u e ! = _ 1 9 4 ) { t h i s . c a l l b a c k ( t h i s . e l e m e n t , _ 1 9 4 ) ; t h i s . l a s t V a l u e = _ 1 9 4 ; } } } ; F o r m . E l e m e n t . O b s e r v e r = C l a s s . c r e a t e ( ) ; F o r m . E l e m e n t . O b s e r v e r . p r o t o t y p e = O b j e c t . e x t e n d ( n e w   A b s t r a c t . T i m e d O b s e r v e r ( ) , { g e t V a l u e : f u n c t i o n ( ) { r e t u r n   F o r m . E l e m e n t . g e t V a l u e ( t h i s . e l e m e n t ) ; } } ) ; F o r m . O b s e r v e r = C l a s s . c r e a t e ( ) ; F o r m . O b s e r v e r . p r o t o t y p e = O b j e c t . e x t e n d ( n e w   A b s t r a c t . T i m e d O b s e r v e r ( ) , { g e t V a l u e : f u n c t i o n ( ) { r e t u r n   F o r m . s e r i a l i z e ( t h i s . e l e m e n t ) ; } } ) ; A b s t r a c t . E v e n t O b s e r v e r = f u n c t i o n ( ) { } ; A b s t r a c t . E v e n t O b s e r v e r . p r o t o t y p e = { i n i t i a l i z e : f u n c t i o n ( _ 1 9 5 , _ 1 9 6 ) { t h i s . e l e m e n t = $ ( _ 1 9 5 ) ; t h i s . c a l l b a c k = _ 1 9 6 ; t h i s . l a s t V a l u e = t h i s . g e t V a l u e ( ) ; i f ( t h i s . e l e m e n t . t a g N a m e . t o L o w e r C a s e ( ) = = " f o r m " ) { t h i s . r e g i s t e r F o r m C a l l b a c k s ( ) ; } e l s e { t h i s . r e g i s t e r C a l l b a c k ( t h i s . e l e m e n t ) ; } } , o n E l e m e n t E v e n t : f u n c t i o n ( ) { v a r   _ 1 9 7 = t h i s . g e t V a l u e ( ) ; i f ( t h i s . l a s t V a l u e ! = _ 1 9 7 ) { t h i s . c a l l b a c k ( t h i s . e l e m e n t , _ 1 9 7 ) ; t h i s . l a s t V a l u e = _ 1 9 7 ; } } , r e g i s t e r F o r m C a l l b a c k s : f u n c t i o n ( ) { v a r   _ 1 9 8 = F o r m . g e t E l e m e n t s ( t h i s . e l e m e n t ) ; f o r ( v a r   i = 0 ; i < _ 1 9 8 . l e n g t h ; i + + ) { t h i s . r e g i s t e r C a l l b a c k ( _ 1 9 8 [ i ] ) ; } } , r e g i s t e r C a l l b a c k : f u n c t i o n ( _ 1 9 a ) { i f ( _ 1 9 a . t y p e ) { s w i t c h ( _ 1 9 a . t y p e . t o L o w e r C a s e ( ) ) { c a s e   " c h e c k b o x " : c a s e   " r a d i o " : E v e n t . o b s e r v e ( _ 1 9 a , " c l i c k " , t h i s . o n E l e m e n t E v e n t . b i n d ( t h i s ) ) ; b r e a k ; d e f a u l t : E v e n t . o b s e r v e ( _ 1 9 a , " c h a n g e " , t h i s . o n E l e m e n t E v e n t . b i n d ( t h i s ) ) ; b r e a k ; } } } } ; F o r m . E l e m e n t . E v e n t O b s e r v e r = C l a s s . c r e a t e ( ) ; F o r m . E l e m e n t . E v e n t O b s e r v e r . p r o t o t y p e = O b j e c t . e x t e n d ( n e w   A b s t r a c t . E v e n t O b s e r v e r ( ) , { g e t V a l u e : f u n c t i o n ( ) { r e t u r n   F o r m . E l e m e n t . g e t V a l u e ( t h i s . e l e m e n t ) ; } } ) ; F o r m . E v e n t O b s e r v e r = C l a s s . c r e a t e ( ) ; F o r m . E v e n t O b s e r v e r . p r o t o t y p e = O b j e c t . e x t e n d ( n e w   A b s t r a c t . E v e n t O b s e r v e r ( ) , { g e t V a l u e : f u n c t i o n ( ) { r e t u r n   F o r m . s e r i a l i z e ( t h i s . e l e m e n t ) ; } } ) ; i f ( ! w i n d o w . E v e n t ) { v a r   E v e n t = n e w   O b j e c t ( ) ; } O b j e c t . e x t e n d ( E v e n t , { K E Y _ B A C K S P A C E : 8 , K E Y _ T A B : 9 , K E Y _ R E T U R N : 1 3 , K E Y _ E S C : 2 7 , K E Y _ L E F T : 3 7 , K E Y _ U P : 3 8 , K E Y _ R I G H T : 3 9 , K E Y _ D O W N : 4 0 , K E Y _ D E L E T E : 4 6 , K E Y _ H O M E : 3 6 , K E Y _ E N D : 3 5 , K E Y _ P A G E U P : 3 3 , K E Y _ P A G E D O W N : 3 4 , e l e m e n t : f u n c t i o n ( _ 1 9 b ) { r e t u r n   _ 1 9 b . t a r g e t | | _ 1 9 b . s r c E l e m e n t ; } , i s L e f t C l i c k : f u n c t i o n ( _ 1 9 c ) { r e t u r n   ( ( ( _ 1 9 c . w h i c h ) & & ( _ 1 9 c . w h i c h = = 1 ) ) | | ( ( _ 1 9 c . b u t t o n ) & & ( _ 1 9 c . b u t t o n = = 1 ) ) ) ; } , p o i n t e r X : f u n c t i o n ( _ 1 9 d ) { r e t u r n   _ 1 9 d . p a g e X | | ( _ 1 9 d . c l i e n t X + ( d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l L e f t | | d o c u m e n t . b o d y . s c r o l l L e f t ) ) ; } , p o i n t e r Y : f u n c t i o n ( _ 1 9 e ) { r e t u r n   _ 1 9 e . p a g e Y | | ( _ 1 9 e . c l i e n t Y + ( d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p | | d o c u m e n t . b o d y . s c r o l l T o p ) ) ; } , s t o p : f u n c t i o n ( _ 1 9 f ) { i f ( _ 1 9 f . p r e v e n t D e f a u l t ) { _ 1 9 f . p r e v e n t D e f a u l t ( ) ; _ 1 9 f . s t o p P r o p a g a t i o n ( ) ; } e l s e { _ 1 9 f . r e t u r n V a l u e = f a l s e ; _ 1 9 f . c a n c e l B u b b l e = t r u e ; } } , f i n d E l e m e n t : f u n c t i o n ( _ 1 a 0 , _ 1 a 1 ) { v a r   _ 1 a 2 = E v e n t . e l e m e n t ( _ 1 a 0 ) ; w h i l e ( _ 1 a 2 . p a r e n t N o d e & & ( ! _ 1 a 2 . t a g N a m e | | ( _ 1 a 2 . t a g N a m e . t o U p p e r C a s e ( ) ! = _ 1 a 1 . t o U p p e r C a s e ( ) ) ) ) { _ 1 a 2 = _ 1 a 2 . p a r e n t N o d e ; } r e t u r n   _ 1 a 2 ; } , o b s e r v e r s : f a l s e , _ o b s e r v e A n d C a c h e : f u n c t i o n ( _ 1 a 3 , n a m e , _ 1 a 5 , _ 1 a 6 ) { i f ( ! t h i s . o b s e r v e r s ) { t h i s . o b s e r v e r s = [ ] ; } i f ( _ 1 a 3 . a d d E v e n t L i s t e n e r ) { t h i s . o b s e r v e r s . p u s h ( [ _ 1 a 3 , n a m e , _ 1 a 5 , _ 1 a 6 ] ) ; _ 1 a 3 . a d d E v e n t L i s t e n e r ( n a m e , _ 1 a 5 , _ 1 a 6 ) ; } e l s e { i f ( _ 1 a 3 . a t t a c h E v e n t ) { t h i s . o b s e r v e r s . p u s h ( [ _ 1 a 3 , n a m e , _ 1 a 5 , _ 1 a 6 ] ) ; _ 1 a 3 . a t t a c h E v e n t ( " o n " + n a m e , _ 1 a 5 ) ; } } } , u n l o a d C a c h e : f u n c t i o n ( ) { i f ( ! E v e n t . o b s e r v e r s ) { r e t u r n ; } f o r ( v a r   i = 0 ; i < E v e n t . o b s e r v e r s . l e n g t h ; i + + ) { E v e n t . s t o p O b s e r v i n g . a p p l y ( t h i s , E v e n t . o b s e r v e r s [ i ] ) ; E v e n t . o b s e r v e r s [ i ] [ 0 ] = n u l l ; } E v e n t . o b s e r v e r s = f a l s e ; } , o b s e r v e : f u n c t i o n ( _ 1 a 8 , n a m e , _ 1 a a , _ 1 a b ) { _ 1 a 8 = $ ( _ 1 a 8 ) ; _ 1 a b = _ 1 a b | | f a l s e ; i f ( n a m e = = " k e y p r e s s " & & ( n a v i g a t o r . a p p V e r s i o n . m a t c h ( / K o n q u e r o r | S a f a r i | K H T M L / ) | | _ 1 a 8 . a t t a c h E v e n t ) ) { n a m e = " k e y d o w n " ; } E v e n t . _ o b s e r v e A n d C a c h e ( _ 1 a 8 , n a m e , _ 1 a a , _ 1 a b ) ; } , s t o p O b s e r v i n g : f u n c t i o n ( _ 1 a c , n a m e , _ 1 a e , _ 1 a f ) { _ 1 a c = $ ( _ 1 a c ) ; _ 1 a f = _ 1 a f | | f a l s e ; i f ( n a m e = = " k e y p r e s s " & & ( n a v i g a t o r . a p p V e r s i o n . m a t c h ( / K o n q u e r o r | S a f a r i | K H T M L / ) | | _ 1 a c . d e t a c h E v e n t ) ) { n a m e = " k e y d o w n " ; } i f ( _ 1 a c . r e m o v e E v e n t L i s t e n e r ) { _ 1 a c . r e m o v e E v e n t L i s t e n e r ( n a m e , _ 1 a e , _ 1 a f ) ; } e l s e { i f ( _ 1 a c . d e t a c h E v e n t ) { t r y { _ 1 a c . d e t a c h E v e n t ( " o n " + n a m e , _ 1 a e ) ; } c a t c h ( e ) { } } } } } ) ; i f ( n a v i g a t o r . a p p V e r s i o n . m a t c h ( / \ b M S I E \ b / ) ) { E v e n t . o b s e r v e ( w i n d o w , " u n l o a d " , E v e n t . u n l o a d C a c h e , f a l s e ) ; } v a r   P o s i t i o n = { i n c l u d e S c r o l l O f f s e t s : f a l s e , p r e p a r e : f u n c t i o n ( ) { t h i s . d e l t a X = w i n d o w . p a g e X O f f s e t | | d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l L e f t | | d o c u m e n t . b o d y . s c r o l l L e f t | | 0 ; t h i s . d e l t a Y = w i n d o w . p a g e Y O f f s e t | | d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p | | d o c u m e n t . b o d y . s c r o l l T o p | | 0 ; } , r e a l O f f s e t : f u n c t i o n ( _ 1 b 0 ) { v a r   _ 1 b 1 = 0 , v a l u e L = 0 ; d o { _ 1 b 1 + = _ 1 b 0 . s c r o l l T o p | | 0 ; v a l u e L + = _ 1 b 0 . s c r o l l L e f t | | 0 ; _ 1 b 0 = _ 1 b 0 . p a r e n t N o d e ; } w h i l e ( _ 1 b 0 ) ; r e t u r n   [ v a l u e L , _ 1 b 1 ] ; } , c u m u l a t i v e O f f s e t : f u n c t i o n ( _ 1 b 2 ) { v a r   _ 1 b 3 = 0 , v a l u e L = 0 ; d o { _ 1 b 3 + = _ 1 b 2 . o f f s e t T o p | | 0 ; v a l u e L + = _ 1 b 2 . o f f s e t L e f t | | 0 ; _ 1 b 2 = _ 1 b 2 . o f f s e t P a r e n t ; } w h i l e ( _ 1 b 2 ) ; r e t u r n   [ v a l u e L , _ 1 b 3 ] ; } , p o s i t i o n e d O f f s e t : f u n c t i o n ( _ 1 b 4 ) { v a r   _ 1 b 5 = 0 , v a l u e L = 0 ; d o { _ 1 b 5 + = _ 1 b 4 . o f f s e t T o p | | 0 ; v a l u e L + = _ 1 b 4 . o f f s e t L e f t | | 0 ; _ 1 b 4 = _ 1 b 4 . o f f s e t P a r e n t ; i f ( _ 1 b 4 ) { p = E l e m e n t . g e t S t y l e ( _ 1 b 4 , " p o s i t i o n " ) ; i f ( p = = " r e l a t i v e " | | p = = " a b s o l u t e " ) { b r e a k ; } } } w h i l e ( _ 1 b 4 ) ; r e t u r n   [ v a l u e L , _ 1 b 5 ] ; } , o f f s e t P a r e n t : f u n c t i o n ( _ 1 b 6 ) { i f ( _ 1 b 6 . o f f s e t P a r e n t ) { r e t u r n   _ 1 b 6 . o f f s e t P a r e n t ; } i f ( _ 1 b 6 = = d o c u m e n t . b o d y ) { r e t u r n   _ 1 b 6 ; } w h i l e ( ( _ 1 b 6 = _ 1 b 6 . p a r e n t N o d e ) & & _ 1 b 6 ! = d o c u m e n t . b o d y ) { i f ( E l e m e n t . g e t S t y l e ( _ 1 b 6 , " p o s i t i o n " ) ! = " s t a t i c " ) { r e t u r n   _ 1 b 6 ; } } r e t u r n   d o c u m e n t . b o d y ; } , w i t h i n : f u n c t i o n ( _ 1 b 7 , x , y ) { i f ( t h i s . i n c l u d e S c r o l l O f f s e t s ) { r e t u r n   t h i s . w i t h i n I n c l u d i n g S c r o l l o f f s e t s ( _ 1 b 7 , x , y ) ; } t h i s . x c o m p = x ; t h i s . y c o m p = y ; t h i s . o f f s e t = t h i s . c u m u l a t i v e O f f s e t ( _ 1 b 7 ) ; r e t u r n   ( y > = t h i s . o f f s e t [ 1 ] & & y < t h i s . o f f s e t [ 1 ] + _ 1 b 7 . o f f s e t H e i g h t & & x > = t h i s . o f f s e t [ 0 ] & & x < t h i s . o f f s e t [ 0 ] + _ 1 b 7 . o f f s e t W i d t h ) ; } , w i t h i n I n c l u d i n g S c r o l l o f f s e t s : f u n c t i o n ( _ 1 b a , x , y ) { v a r   _ 1 b d = t h i s . r e a l O f f s e t ( _ 1 b a ) ; t h i s . x c o m p = x + _ 1 b d [ 0 ] - t h i s . d e l t a X ; t h i s . y c o m p = y + _ 1 b d [ 1 ] - t h i s . d e l t a Y ; t h i s . o f f s e t = t h i s . c u m u l a t i v e O f f s e t ( _ 1 b a ) ; r e t u r n   ( t h i s . y c o m p > = t h i s . o f f s e t [ 1 ] & & t h i s . y c o m p < t h i s . o f f s e t [ 1 ] + _ 1 b a . o f f s e t H e i g h t & & t h i s . x c o m p > = t h i s . o f f s e t [ 0 ] & & t h i s . x c o m p < t h i s . o f f s e t [ 0 ] + _ 1 b a . o f f s e t W i d t h ) ; } , o v e r l a p : f u n c t i o n ( m o d e , _ 1 b f ) { i f ( ! m o d e ) { r e t u r n   0 ; } i f ( m o d e = = " v e r t i c a l " ) { r e t u r n   ( ( t h i s . o f f s e t [ 1 ] + _ 1 b f . o f f s e t H e i g h t ) - t h i s . y c o m p ) / _ 1 b f . o f f s e t H e i g h t ; } i f ( m o d e = = " h o r i z o n t a l " ) { r e t u r n   ( ( t h i s . o f f s e t [ 0 ] + _ 1 b f . o f f s e t W i d t h ) - t h i s . x c o m p ) / _ 1 b f . o f f s e t W i d t h ; } } , p a g e : f u n c t i o n ( _ 1 c 0 ) { v a r   _ 1 c 1 = 0 , v a l u e L = 0 ; v a r   _ 1 c 2 = _ 1 c 0 ; d o { _ 1 c 1 + = _ 1 c 2 . o f f s e t T o p | | 0 ; v a l u e L + = _ 1 c 2 . o f f s e t L e f t | | 0 ; i f ( _ 1 c 2 . o f f s e t P a r e n t = = d o c u m e n t . b o d y ) { i f ( E l e m e n t . g e t S t y l e ( _ 1 c 2 , " p o s i t i o n " ) = = " a b s o l u t e " ) { b r e a k ; } } } w h i l e ( _ 1 c 2 = _ 1 c 2 . o f f s e t P a r e n t ) ; _ 1 c 2 = _ 1 c 0 ; d o { i f ( ! w i n d o w . o p e r a | | _ 1 c 2 . t a g N a m e = = " B O D Y " ) { _ 1 c 1 - = _ 1 c 2 . s c r o l l T o p | | 0 ; v a l u e L - = _ 1 c 2 . s c r o l l L e f t | | 0 ; } } w h i l e ( _ 1 c 2 = _ 1 c 2 . p a r e n t N o d e ) ; r e t u r n   [ v a l u e L , _ 1 c 1 ] ; } , c l o n e : f u n c t i o n ( _ 1 c 3 , _ 1 c 4 ) { v a r   _ 1 c 5 = O b j e c t . e x t e n d ( { s e t L e f t : t r u e , s e t T o p : t r u e , s e t W i d t h : t r u e , s e t H e i g h t : t r u e , o f f s e t T o p : 0 , o f f s e t L e f t : 0 } , a r g u m e n t s [ 2 ] | | { } ) ; _ 1 c 3 = $ ( _ 1 c 3 ) ; v a r   p = P o s i t i o n . p a g e ( _ 1 c 3 ) ; _ 1 c 4 = $ ( _ 1 c 4 ) ; v a r   _ 1 c 7 = [ 0 , 0 ] ; v a r   _ 1 c 8 = n u l l ; i f ( E l e m e n t . g e t S t y l e ( _ 1 c 4 , " p o s i t i o n " ) = = " a b s o l u t e " ) { _ 1 c 8 = P o s i t i o n . o f f s e t P a r e n t ( _ 1 c 4 ) ; _ 1 c 7 = P o s i t i o n . p a g e ( _ 1 c 8 ) ; } i f ( _ 1 c 8 = = d o c u m e n t . b o d y ) { _ 1 c 7 [ 0 ] - = d o c u m e n t . b o d y . o f f s e t L e f t ; _ 1 c 7 [ 1 ] - = d o c u m e n t . b o d y . o f f s e t T o p ; } i f ( _ 1 c 5 . s e t L e f t ) { _ 1 c 4 . s t y l e . l e f t = ( p [ 0 ] - _ 1 c 7 [ 0 ] + _ 1 c 5 . o f f s e t L e f t ) + " p x " ; } i f ( _ 1 c 5 . s e t T o p ) { _ 1 c 4 . s t y l e . t o p = ( p [ 1 ] - _ 1 c 7 [ 1 ] + _ 1 c 5 . o f f s e t T o p ) + " p x " ; } i f ( _ 1 c 5 . s e t W i d t h ) { _ 1 c 4 . s t y l e . w i d t h = _ 1 c 3 . o f f s e t W i d t h + " p x " ; } i f ( _ 1 c 5 . s e t H e i g h t ) { _ 1 c 4 . s t y l e . h e i g h t = _ 1 c 3 . o f f s e t H e i g h t + " p x " ; } } , a b s o l u t i z e : f u n c t i o n ( _ 1 c 9 ) { _ 1 c 9 = $ ( _ 1 c 9 ) ; i f ( _ 1 c 9 . s t y l e . p o s i t i o n = = " a b s o l u t e " ) { r e t u r n ; } P o s i t i o n . p r e p a r e ( ) ; v a r   _ 1 c a = P o s i t i o n . p o s i t i o n e d O f f s e t ( _ 1 c 9 ) ; v a r   t o p = _ 1 c a [ 1 ] ; v a r   l e f t = _ 1 c a [ 0 ] ; v a r   _ 1 c d = _ 1 c 9 . c l i e n t W i d t h ; v a r   _ 1 c e = _ 1 c 9 . c l i e n t H e i g h t ; _ 1 c 9 . _ o r i g i n a l L e f t = l e f t - p a r s e F l o a t ( _ 1 c 9 . s t y l e . l e f t | | 0 ) ; _ 1 c 9 . _ o r i g i n a l T o p = t o p - p a r s e F l o a t ( _ 1 c 9 . s t y l e . t o p | | 0 ) ; _ 1 c 9 . _ o r i g i n a l W i d t h = _ 1 c 9 . s t y l e . w i d t h ; _ 1 c 9 . _ o r i g i n a l H e i g h t = _ 1 c 9 . s t y l e . h e i g h t ; _ 1 c 9 . s t y l e . p o s i t i o n = " a b s o l u t e " ; _ 1 c 9 . s t y l e . t o p = t o p + " p x " ; _ 1 c 9 . s t y l e . l e f t = l e f t + " p x " ; _ 1 c 9 . s t y l e . w i d t h = _ 1 c d + " p x " ; _ 1 c 9 . s t y l e . h e i g h t = _ 1 c e + " p x " ; } , r e l a t i v i z e : f u n c t i o n ( _ 1 c f ) { _ 1 c f = $ ( _ 1 c f ) ; i f ( _ 1 c f . s t y l e . p o s i t i o n = = " r e l a t i v e " ) { r e t u r n ; } P o s i t i o n . p r e p a r e ( ) ; _ 1 c f . s t y l e . p o s i t i o n = " r e l a t i v e " ; v a r   t o p = p a r s e F l o a t ( _ 1 c f . s t y l e . t o p | | 0 ) - ( _ 1 c f . _ o r i g i n a l T o p | | 0 ) ; v a r   l e f t = p a r s e F l o a t ( _ 1 c f . s t y l e . l e f t | | 0 ) - ( _ 1 c f . _ o r i g i n a l L e f t | | 0 ) ; _ 1 c f . s t y l e . t o p = t o p + " p x " ; _ 1 c f . s t y l e . l e f t = l e f t + " p x " ; _ 1 c f . s t y l e . h e i g h t = _ 1 c f . _ o r i g i n a l H e i g h t ; _ 1 c f . s t y l e . w i d t h = _ 1 c f . _ o r i g i n a l W i d t h ; } } ; i f ( / K o n q u e r o r | S a f a r i | K H T M L / . t e s t ( n a v i g a t o r . u s e r A g e n t ) ) { P o s i t i o n . c u m u l a t i v e O f f s e t = f u n c t i o n ( _ 1 d 2 ) { v a r   _ 1 d 3 = 0 , v a l u e L = 0 ; d o { _ 1 d 3 + = _ 1 d 2 . o f f s e t T o p | | 0 ; v a l u e L + = _ 1 d 2 . o f f s e t L e f t | | 0 ; i f ( _ 1 d 2 . o f f s e t P a r e n t = = d o c u m e n t . b o d y ) { i f ( E l e m e n t . g e t S t y l e ( _ 1 d 2 , " p o s i t i o n " ) = = " a b s o l u t e " ) { b r e a k ; } } _ 1 d 2 = _ 1 d 2 . o f f s e t P a r e n t ; } w h i l e ( _ 1 d 2 ) ; r e t u r n   [ v a l u e L , _ 1 d 3 ] ; } ; } E l e m e n t . a d d M e t h o d s ( ) ;  
  
 S t r i n g . p r o t o t y p e . p a r s e C o l o r = f u n c t i o n ( ) { v a r   _ 1 = " # " ; i f ( t h i s . s l i c e ( 0 , 4 ) = = " r g b ( " ) { v a r   _ 2 = t h i s . s l i c e ( 4 , t h i s . l e n g t h - 1 ) . s p l i t ( " , " ) ; v a r   i = 0 ; d o { _ 1 + = p a r s e I n t ( _ 2 [ i ] ) . t o C o l o r P a r t ( ) ; } w h i l e ( + + i < 3 ) ; } e l s e { i f ( t h i s . s l i c e ( 0 , 1 ) = = " # " ) { i f ( t h i s . l e n g t h = = 4 ) { f o r ( v a r   i = 1 ; i < 4 ; i + + ) { _ 1 + = ( t h i s . c h a r A t ( i ) + t h i s . c h a r A t ( i ) ) . t o L o w e r C a s e ( ) ; } } i f ( t h i s . l e n g t h = = 7 ) { _ 1 = t h i s . t o L o w e r C a s e ( ) ; } } } r e t u r n   ( _ 1 . l e n g t h = = 7 ? _ 1 : ( a r g u m e n t s [ 0 ] | | t h i s ) ) ; } ; E l e m e n t . c o l l e c t T e x t N o d e s = f u n c t i o n ( _ 5 ) { r e t u r n   $ A ( $ ( _ 5 ) . c h i l d N o d e s ) . c o l l e c t ( f u n c t i o n ( _ 6 ) { r e t u r n   ( _ 6 . n o d e T y p e = = 3 ? _ 6 . n o d e V a l u e : ( _ 6 . h a s C h i l d N o d e s ( ) ? E l e m e n t . c o l l e c t T e x t N o d e s ( _ 6 ) : " " ) ) ; } ) . f l a t t e n ( ) . j o i n ( " " ) ; } ; E l e m e n t . c o l l e c t T e x t N o d e s I g n o r e C l a s s = f u n c t i o n ( _ 7 , _ 8 ) { r e t u r n   $ A ( $ ( _ 7 ) . c h i l d N o d e s ) . c o l l e c t ( f u n c t i o n ( _ 9 ) { r e t u r n   ( _ 9 . n o d e T y p e = = 3 ? _ 9 . n o d e V a l u e : ( ( _ 9 . h a s C h i l d N o d e s ( ) & & ! E l e m e n t . h a s C l a s s N a m e ( _ 9 , _ 8 ) ) ? E l e m e n t . c o l l e c t T e x t N o d e s I g n o r e C l a s s ( _ 9 , _ 8 ) : " " ) ) ; } ) . f l a t t e n ( ) . j o i n ( " " ) ; } ; E l e m e n t . s e t C o n t e n t Z o o m = f u n c t i o n ( _ a , _ b ) { _ a = $ ( _ a ) ; E l e m e n t . s e t S t y l e ( _ a , { f o n t S i z e : ( _ b / 1 0 0 ) + " e m " } ) ; i f ( n a v i g a t o r . a p p V e r s i o n . i n d e x O f ( " A p p l e W e b K i t " ) > 0 ) { w i n d o w . s c r o l l B y ( 0 , 0 ) ; } } ; E l e m e n t . g e t O p a c i t y = f u n c t i o n ( _ c ) { v a r   _ d ; i f ( _ d = E l e m e n t . g e t S t y l e ( _ c , " o p a c i t y " ) ) { r e t u r n   p a r s e F l o a t ( _ d ) ; } i f ( _ d = ( E l e m e n t . g e t S t y l e ( _ c , " f i l t e r " ) | | " " ) . m a t c h ( / a l p h a \ ( o p a c i t y = ( . * ) \ ) / ) ) { i f ( _ d [ 1 ] ) { r e t u r n   p a r s e F l o a t ( _ d [ 1 ] ) / 1 0 0 ; } } r e t u r n   1 ; } ; E l e m e n t . s e t O p a c i t y = f u n c t i o n ( _ e , _ f ) { _ e = $ ( _ e ) ; i f ( _ f = = 1 ) { E l e m e n t . s e t S t y l e ( _ e , { o p a c i t y : ( / G e c k o / . t e s t ( n a v i g a t o r . u s e r A g e n t ) & & ! / K o n q u e r o r | S a f a r i | K H T M L / . t e s t ( n a v i g a t o r . u s e r A g e n t ) ) ? 0 . 9 9 9 9 9 9 : 1 } ) ; i f ( / M S I E / . t e s t ( n a v i g a t o r . u s e r A g e n t ) & & ! w i n d o w . o p e r a ) { E l e m e n t . s e t S t y l e ( _ e , { f i l t e r : E l e m e n t . g e t S t y l e ( _ e , " f i l t e r " ) . r e p l a c e ( / a l p h a \ ( [ ^ \ ) ] * \ ) / g i , " " ) } ) ; } } e l s e { i f ( _ f < 0 . 0 0 0 0 1 ) { _ f = 0 ; } E l e m e n t . s e t S t y l e ( _ e , { o p a c i t y : _ f } ) ; i f ( / M S I E / . t e s t ( n a v i g a t o r . u s e r A g e n t ) & & ! w i n d o w . o p e r a ) { E l e m e n t . s e t S t y l e ( _ e , { f i l t e r : E l e m e n t . g e t S t y l e ( _ e , " f i l t e r " ) . r e p l a c e ( / a l p h a \ ( [ ^ \ ) ] * \ ) / g i , " " ) + " a l p h a ( o p a c i t y = " + _ f * 1 0 0 + " ) " } ) ; } } } ; E l e m e n t . g e t I n l i n e O p a c i t y = f u n c t i o n ( _ 1 0 ) { r e t u r n   $ ( _ 1 0 ) . s t y l e . o p a c i t y | | " " ; } ; E l e m e n t . c h i l d r e n W i t h C l a s s N a m e = f u n c t i o n ( _ 1 1 , _ 1 2 , _ 1 3 ) { v a r   _ 1 4 = n e w   R e g E x p ( " ( ^ | \ \ s ) " + _ 1 2 + " ( \ \ s | $ ) " ) ; v a r   _ 1 5 = $ A ( $ ( _ 1 1 ) . g e t E l e m e n t s B y T a g N a m e ( " * " ) ) [ _ 1 3 ? " d e t e c t " : " s e l e c t " ] ( f u n c t i o n ( c ) { r e t u r n   ( c . c l a s s N a m e & & c . c l a s s N a m e . m a t c h ( _ 1 4 ) ) ; } ) ; i f ( ! _ 1 5 ) { _ 1 5 = [ ] ; } r e t u r n   _ 1 5 ; } ; E l e m e n t . f o r c e R e r e n d e r i n g = f u n c t i o n ( _ 1 7 ) { t r y { _ 1 7 = $ ( _ 1 7 ) ; v a r   n = d o c u m e n t . c r e a t e T e x t N o d e ( "   " ) ; _ 1 7 . a p p e n d C h i l d ( n ) ; _ 1 7 . r e m o v e C h i l d ( n ) ; } c a t c h ( e ) { } } ; A r r a y . p r o t o t y p e . c a l l = f u n c t i o n ( ) { v a r   _ 1 9 = a r g u m e n t s ; t h i s . e a c h ( f u n c t i o n ( f ) { f . a p p l y ( t h i s , _ 1 9 ) ; } ) ; } ; v a r   E f f e c t = { _ e l e m e n t D o e s N o t E x i s t E r r o r : { n a m e : " E l e m e n t D o e s N o t E x i s t E r r o r " , m e s s a g e : " T h e   s p e c i f i e d   D O M   e l e m e n t   d o e s   n o t   e x i s t ,   b u t   i s   r e q u i r e d   f o r   t h i s   e f f e c t   t o   o p e r a t e " } , t a g i f y T e x t : f u n c t i o n ( _ 1 b ) { i f ( t y p e o f   B u i l d e r = = " u n d e f i n e d " ) { t h r o w   ( " E f f e c t . t a g i f y T e x t   r e q u i r e s   i n c l u d i n g   s c r i p t . a c u l o . u s '   b u i l d e r . j s   l i b r a r y " ) ; } v a r   _ 1 c = " p o s i t i o n : r e l a t i v e " ; i f ( / M S I E / . t e s t ( n a v i g a t o r . u s e r A g e n t ) & & ! w i n d o w . o p e r a ) { _ 1 c + = " ; z o o m : 1 " ; } _ 1 b = $ ( _ 1 b ) ; $ A ( _ 1 b . c h i l d N o d e s ) . e a c h ( f u n c t i o n ( _ 1 d ) { i f ( _ 1 d . n o d e T y p e = = 3 ) { _ 1 d . n o d e V a l u e . t o A r r a y ( ) . e a c h ( f u n c t i o n ( _ 1 e ) { _ 1 b . i n s e r t B e f o r e ( B u i l d e r . n o d e ( " s p a n " , { s t y l e : _ 1 c } , _ 1 e = = "   " ? S t r i n g . f r o m C h a r C o d e ( 1 6 0 ) : _ 1 e ) , _ 1 d ) ; } ) ; E l e m e n t . r e m o v e ( _ 1 d ) ; } } ) ; } , m u l t i p l e : f u n c t i o n ( _ 1 f , _ 2 0 ) { v a r   _ 2 1 ; i f ( ( ( t y p e o f   _ 1 f = = " o b j e c t " ) | | ( t y p e o f   _ 1 f = = " f u n c t i o n " ) ) & & ( _ 1 f . l e n g t h ) ) { _ 2 1 = _ 1 f ; } e l s e { _ 2 1 = $ ( _ 1 f ) . c h i l d N o d e s ; } v a r   _ 2 2 = O b j e c t . e x t e n d ( { s p e e d : 0 . 1 , d e l a y : 0 } , a r g u m e n t s [ 2 ] | | { } ) ; v a r   _ 2 3 = _ 2 2 . d e l a y ; $ A ( _ 2 1 ) . e a c h ( f u n c t i o n ( _ 2 4 , _ 2 5 ) { n e w   _ 2 0 ( _ 2 4 , O b j e c t . e x t e n d ( _ 2 2 , { d e l a y : _ 2 5 * _ 2 2 . s p e e d + _ 2 3 } ) ) ; } ) ; } , P A I R S : { " s l i d e " : [ " S l i d e D o w n " , " S l i d e U p " ] , " b l i n d " : [ " B l i n d D o w n " , " B l i n d U p " ] , " a p p e a r " : [ " A p p e a r " , " F a d e " ] } , t o g g l e : f u n c t i o n ( _ 2 6 , _ 2 7 ) { _ 2 6 = $ ( _ 2 6 ) ; _ 2 7 = ( _ 2 7 | | " a p p e a r " ) . t o L o w e r C a s e ( ) ; v a r   _ 2 8 = O b j e c t . e x t e n d ( { q u e u e : { p o s i t i o n : " e n d " , s c o p e : ( _ 2 6 . i d | | " g l o b a l " ) , l i m i t : 1 } } , a r g u m e n t s [ 2 ] | | { } ) ; E f f e c t [ _ 2 6 . v i s i b l e ( ) ? E f f e c t . P A I R S [ _ 2 7 ] [ 1 ] : E f f e c t . P A I R S [ _ 2 7 ] [ 0 ] ] ( _ 2 6 , _ 2 8 ) ; } } ; v a r   E f f e c t 2 = E f f e c t ; E f f e c t . T r a n s i t i o n s = { } ; E f f e c t . T r a n s i t i o n s . l i n e a r = P r o t o t y p e . K ; E f f e c t . T r a n s i t i o n s . s i n o i d a l = f u n c t i o n ( p o s ) { r e t u r n   ( - M a t h . c o s ( p o s * M a t h . P I ) / 2 ) + 0 . 5 ; } ; E f f e c t . T r a n s i t i o n s . r e v e r s e = f u n c t i o n ( p o s ) { r e t u r n   1 - p o s ; } ; E f f e c t . T r a n s i t i o n s . f l i c k e r = f u n c t i o n ( p o s ) { r e t u r n   ( ( - M a t h . c o s ( p o s * M a t h . P I ) / 4 ) + 0 . 7 5 ) + M a t h . r a n d o m ( ) / 4 ; } ; E f f e c t . T r a n s i t i o n s . w o b b l e = f u n c t i o n ( p o s ) { r e t u r n   ( - M a t h . c o s ( p o s * M a t h . P I * ( 9 * p o s ) ) / 2 ) + 0 . 5 ; } ; E f f e c t . T r a n s i t i o n s . p u l s e = f u n c t i o n ( p o s ) { r e t u r n   ( M a t h . f l o o r ( p o s * 1 0 ) % 2 = = 0 ? ( p o s * 1 0 - M a t h . f l o o r ( p o s * 1 0 ) ) : 1 - ( p o s * 1 0 - M a t h . f l o o r ( p o s * 1 0 ) ) ) ; } ; E f f e c t . T r a n s i t i o n s . n o n e = f u n c t i o n ( p o s ) { r e t u r n   0 ; } ; E f f e c t . T r a n s i t i o n s . f u l l = f u n c t i o n ( p o s ) { r e t u r n   1 ; } ; E f f e c t . S c o p e d Q u e u e = C l a s s . c r e a t e ( ) ; O b j e c t . e x t e n d ( O b j e c t . e x t e n d ( E f f e c t . S c o p e d Q u e u e . p r o t o t y p e , E n u m e r a b l e ) , { i n i t i a l i z e : f u n c t i o n ( ) { t h i s . e f f e c t s = [ ] ; t h i s . i n t e r v a l = n u l l ; } , _ e a c h : f u n c t i o n ( _ 3 0 ) { t h i s . e f f e c t s . _ e a c h ( _ 3 0 ) ; } , a d d : f u n c t i o n ( _ 3 1 ) { v a r   _ 3 2 = n e w   D a t e ( ) . g e t T i m e ( ) ; v a r   _ 3 3 = ( t y p e o f   _ 3 1 . o p t i o n s . q u e u e = = " s t r i n g " ) ? _ 3 1 . o p t i o n s . q u e u e : _ 3 1 . o p t i o n s . q u e u e . p o s i t i o n ; s w i t c h ( _ 3 3 ) { c a s e   " f r o n t " : t h i s . e f f e c t s . f i n d A l l ( f u n c t i o n ( e ) { r e t u r n   e . s t a t e = = " i d l e " ; } ) . e a c h ( f u n c t i o n ( e ) { e . s t a r t O n + = _ 3 1 . f i n i s h O n ; e . f i n i s h O n + = _ 3 1 . f i n i s h O n ; } ) ; b r e a k ; c a s e   " e n d " : _ 3 2 = t h i s . e f f e c t s . p l u c k ( " f i n i s h O n " ) . m a x ( ) | | _ 3 2 ; b r e a k ; } _ 3 1 . s t a r t O n + = _ 3 2 ; _ 3 1 . f i n i s h O n + = _ 3 2 ; i f ( ! _ 3 1 . o p t i o n s . q u e u e . l i m i t | | ( t h i s . e f f e c t s . l e n g t h < _ 3 1 . o p t i o n s . q u e u e . l i m i t ) ) { t h i s . e f f e c t s . p u s h ( _ 3 1 ) ; } i f ( ! t h i s . i n t e r v a l ) { t h i s . i n t e r v a l = s e t I n t e r v a l ( t h i s . l o o p . b i n d ( t h i s ) , 4 0 ) ; } } , r e m o v e : f u n c t i o n ( _ 3 6 ) { t h i s . e f f e c t s = t h i s . e f f e c t s . r e j e c t ( f u n c t i o n ( e ) { r e t u r n   e = = _ 3 6 ; } ) ; i f ( t h i s . e f f e c t s . l e n g t h = = 0 ) { c l e a r I n t e r v a l ( t h i s . i n t e r v a l ) ; t h i s . i n t e r v a l = n u l l ; } } , l o o p : f u n c t i o n ( ) { v a r   _ 3 8 = n e w   D a t e ( ) . g e t T i m e ( ) ; t h i s . e f f e c t s . i n v o k e ( " l o o p " , _ 3 8 ) ; } } ) ; E f f e c t . Q u e u e s = { i n s t a n c e s : $ H ( ) , g e t : f u n c t i o n ( _ 3 9 ) { i f ( t y p e o f   _ 3 9 ! = " s t r i n g " ) { r e t u r n   _ 3 9 ; } i f ( ! t h i s . i n s t a n c e s [ _ 3 9 ] ) { t h i s . i n s t a n c e s [ _ 3 9 ] = n e w   E f f e c t . S c o p e d Q u e u e ( ) ; } r e t u r n   t h i s . i n s t a n c e s [ _ 3 9 ] ; } } ; E f f e c t . Q u e u e = E f f e c t . Q u e u e s . g e t ( " g l o b a l " ) ; E f f e c t . D e f a u l t O p t i o n s = { t r a n s i t i o n : E f f e c t . T r a n s i t i o n s . s i n o i d a l , d u r a t i o n : 1 , f p s : 2 5 , s y n c : f a l s e , f r o m : 0 , t o : 1 , d e l a y : 0 , q u e u e : " p a r a l l e l " } ; E f f e c t . B a s e = f u n c t i o n ( ) { } ; E f f e c t . B a s e . p r o t o t y p e = { p o s i t i o n : n u l l , s t a r t : f u n c t i o n ( _ 3 a ) { t h i s . o p t i o n s = O b j e c t . e x t e n d ( O b j e c t . e x t e n d ( { } , E f f e c t . D e f a u l t O p t i o n s ) , _ 3 a | | { } ) ; t h i s . c u r r e n t F r a m e = 0 ; t h i s . s t a t e = " i d l e " ; t h i s . s t a r t O n = t h i s . o p t i o n s . d e l a y * 1 0 0 0 ; t h i s . f i n i s h O n = t h i s . s t a r t O n + ( t h i s . o p t i o n s . d u r a t i o n * 1 0 0 0 ) ; t h i s . e v e n t ( " b e f o r e S t a r t " ) ; i f ( ! t h i s . o p t i o n s . s y n c ) { E f f e c t . Q u e u e s . g e t ( t y p e o f   t h i s . o p t i o n s . q u e u e = = " s t r i n g " ? " g l o b a l " : t h i s . o p t i o n s . q u e u e . s c o p e ) . a d d ( t h i s ) ; } } , l o o p : f u n c t i o n ( _ 3 b ) { i f ( _ 3 b > = t h i s . s t a r t O n ) { i f ( _ 3 b > = t h i s . f i n i s h O n ) { t h i s . r e n d e r ( 1 ) ; t h i s . c a n c e l ( ) ; t h i s . e v e n t ( " b e f o r e F i n i s h " ) ; i f ( t h i s . f i n i s h ) { t h i s . f i n i s h ( ) ; } t h i s . e v e n t ( " a f t e r F i n i s h " ) ; r e t u r n ; } v a r   p o s = ( _ 3 b - t h i s . s t a r t O n ) / ( t h i s . f i n i s h O n - t h i s . s t a r t O n ) ; v a r   _ 3 d = M a t h . r o u n d ( p o s * t h i s . o p t i o n s . f p s * t h i s . o p t i o n s . d u r a t i o n ) ; i f ( _ 3 d > t h i s . c u r r e n t F r a m e ) { t h i s . r e n d e r ( p o s ) ; t h i s . c u r r e n t F r a m e = _ 3 d ; } } } , r e n d e r : f u n c t i o n ( p o s ) { i f ( t h i s . s t a t e = = " i d l e " ) { t h i s . s t a t e = " r u n n i n g " ; t h i s . e v e n t ( " b e f o r e S e t u p " ) ; i f ( t h i s . s e t u p ) { t h i s . s e t u p ( ) ; } t h i s . e v e n t ( " a f t e r S e t u p " ) ; } i f ( t h i s . s t a t e = = " r u n n i n g " ) { i f ( t h i s . o p t i o n s . t r a n s i t i o n ) { p o s = t h i s . o p t i o n s . t r a n s i t i o n ( p o s ) ; } p o s * = ( t h i s . o p t i o n s . t o - t h i s . o p t i o n s . f r o m ) ; p o s + = t h i s . o p t i o n s . f r o m ; t h i s . p o s i t i o n = p o s ; t h i s . e v e n t ( " b e f o r e U p d a t e " ) ; i f ( t h i s . u p d a t e ) { t h i s . u p d a t e ( p o s ) ; } t h i s . e v e n t ( " a f t e r U p d a t e " ) ; } } , c a n c e l : f u n c t i o n ( ) { i f ( ! t h i s . o p t i o n s . s y n c ) { E f f e c t . Q u e u e s . g e t ( t y p e o f   t h i s . o p t i o n s . q u e u e = = " s t r i n g " ? " g l o b a l " : t h i s . o p t i o n s . q u e u e . s c o p e ) . r e m o v e ( t h i s ) ; } t h i s . s t a t e = " f i n i s h e d " ; } , e v e n t : f u n c t i o n ( _ 3 f ) { i f ( t h i s . o p t i o n s [ _ 3 f + " I n t e r n a l " ] ) { t h i s . o p t i o n s [ _ 3 f + " I n t e r n a l " ] ( t h i s ) ; } i f ( t h i s . o p t i o n s [ _ 3 f ] ) { t h i s . o p t i o n s [ _ 3 f ] ( t h i s ) ; } } , i n s p e c t : f u n c t i o n ( ) { r e t u r n   " # < E f f e c t : " + $ H ( t h i s ) . i n s p e c t ( ) + " , o p t i o n s : " + $ H ( t h i s . o p t i o n s ) . i n s p e c t ( ) + " > " ; } } ; E f f e c t . P a r a l l e l = C l a s s . c r e a t e ( ) ; O b j e c t . e x t e n d ( O b j e c t . e x t e n d ( E f f e c t . P a r a l l e l . p r o t o t y p e , E f f e c t . B a s e . p r o t o t y p e ) , { i n i t i a l i z e : f u n c t i o n ( _ 4 0 ) { t h i s . e f f e c t s = _ 4 0 | | [ ] ; t h i s . s t a r t ( a r g u m e n t s [ 1 ] ) ; } , u p d a t e : f u n c t i o n ( _ 4 1 ) { t h i s . e f f e c t s . i n v o k e ( " r e n d e r " , _ 4 1 ) ; } , f i n i s h : f u n c t i o n ( _ 4 2 ) { t h i s . e f f e c t s . e a c h ( f u n c t i o n ( _ 4 3 ) { _ 4 3 . r e n d e r ( 1 ) ; _ 4 3 . c a n c e l ( ) ; _ 4 3 . e v e n t ( " b e f o r e F i n i s h " ) ; i f ( _ 4 3 . f i n i s h ) { _ 4 3 . f i n i s h ( _ 4 2 ) ; } _ 4 3 . e v e n t ( " a f t e r F i n i s h " ) ; } ) ; } } ) ; E f f e c t . O p a c i t y = C l a s s . c r e a t e ( ) ; O b j e c t . e x t e n d ( O b j e c t . e x t e n d ( E f f e c t . O p a c i t y . p r o t o t y p e , E f f e c t . B a s e . p r o t o t y p e ) , { i n i t i a l i z e : f u n c t i o n ( _ 4 4 ) { t h i s . e l e m e n t = $ ( _ 4 4 ) ; i f ( ! t h i s . e l e m e n t ) { t h r o w   ( E f f e c t . _ e l e m e n t D o e s N o t E x i s t E r r o r ) ; } i f ( / M S I E / . t e s t ( n a v i g a t o r . u s e r A g e n t ) & & ! w i n d o w . o p e r a & & ( ! t h i s . e l e m e n t . c u r r e n t S t y l e . h a s L a y o u t ) ) { t h i s . e l e m e n t . s e t S t y l e ( { z o o m : 1 } ) ; } v a r   _ 4 5 = O b j e c t . e x t e n d ( { f r o m : t h i s . e l e m e n t . g e t O p a c i t y ( ) | | 0 , t o : 1 } , a r g u m e n t s [ 1 ] | | { } ) ; t h i s . s t a r t ( _ 4 5 ) ; } , u p d a t e : f u n c t i o n ( _ 4 6 ) { t h i s . e l e m e n t . s e t O p a c i t y ( _ 4 6 ) ; } } ) ; E f f e c t . M o v e = C l a s s . c r e a t e ( ) ; O b j e c t . e x t e n d ( O b j e c t . e x t e n d ( E f f e c t . M o v e . p r o t o t y p e , E f f e c t . B a s e . p r o t o t y p e ) , { i n i t i a l i z e : f u n c t i o n ( _ 4 7 ) { t h i s . e l e m e n t = $ ( _ 4 7 ) ; i f ( ! t h i s . e l e m e n t ) { t h r o w   ( E f f e c t . _ e l e m e n t D o e s N o t E x i s t E r r o r ) ; } v a r   _ 4 8 = O b j e c t . e x t e n d ( { x : 0 , y : 0 , m o d e : " r e l a t i v e " } , a r g u m e n t s [ 1 ] | | { } ) ; t h i s . s t a r t ( _ 4 8 ) ; } , s e t u p : f u n c t i o n ( ) { t h i s . e l e m e n t . m a k e P o s i t i o n e d ( ) ; t h i s . o r i g i n a l L e f t = p a r s e F l o a t ( t h i s . e l e m e n t . g e t S t y l e ( " l e f t " ) | | " 0 " ) ; t h i s . o r i g i n a l T o p = p a r s e F l o a t ( t h i s . e l e m e n t . g e t S t y l e ( " t o p " ) | | " 0 " ) ; i f ( t h i s . o p t i o n s . m o d e = = " a b s o l u t e " ) { t h i s . o p t i o n s . x = t h i s . o p t i o n s . x - t h i s . o r i g i n a l L e f t ; t h i s . o p t i o n s . y = t h i s . o p t i o n s . y - t h i s . o r i g i n a l T o p ; } } , u p d a t e : f u n c t i o n ( _ 4 9 ) { t h i s . e l e m e n t . s e t S t y l e ( { l e f t : M a t h . r o u n d ( t h i s . o p t i o n s . x * _ 4 9 + t h i s . o r i g i n a l L e f t ) + " p x " , t o p : M a t h . r o u n d ( t h i s . o p t i o n s . y * _ 4 9 + t h i s . o r i g i n a l T o p ) + " p x " } ) ; } } ) ; E f f e c t . M o v e B y = f u n c t i o n ( _ 4 a , _ 4 b , _ 4 c ) { r e t u r n   n e w   E f f e c t . M o v e ( _ 4 a , O b j e c t . e x t e n d ( { x : _ 4 c , y : _ 4 b } , a r g u m e n t s [ 3 ] | | { } ) ) ; } ; E f f e c t . S c a l e = C l a s s . c r e a t e ( ) ; O b j e c t . e x t e n d ( O b j e c t . e x t e n d ( E f f e c t . S c a l e . p r o t o t y p e , E f f e c t . B a s e . p r o t o t y p e ) , { i n i t i a l i z e : f u n c t i o n ( _ 4 d , _ 4 e ) { t h i s . e l e m e n t = $ ( _ 4 d ) ; i f ( ! t h i s . e l e m e n t ) { t h r o w   ( E f f e c t . _ e l e m e n t D o e s N o t E x i s t E r r o r ) ; } v a r   _ 4 f = O b j e c t . e x t e n d ( { s c a l e X : t r u e , s c a l e Y : t r u e , s c a l e C o n t e n t : t r u e , s c a l e F r o m C e n t e r : f a l s e , s c a l e M o d e : " b o x " , s c a l e F r o m : 1 0 0 , s c a l e T o : _ 4 e } , a r g u m e n t s [ 2 ] | | { } ) ; t h i s . s t a r t ( _ 4 f ) ; } , s e t u p : f u n c t i o n ( ) { t h i s . r e s t o r e A f t e r F i n i s h = t h i s . o p t i o n s . r e s t o r e A f t e r F i n i s h | | f a l s e ; t h i s . e l e m e n t P o s i t i o n i n g = t h i s . e l e m e n t . g e t S t y l e ( " p o s i t i o n " ) ; t h i s . o r i g i n a l S t y l e = { } ; [ " t o p " , " l e f t " , " w i d t h " , " h e i g h t " , " f o n t S i z e " ] . e a c h ( f u n c t i o n ( k ) { t h i s . o r i g i n a l S t y l e [ k ] = t h i s . e l e m e n t . s t y l e [ k ] ; } . b i n d ( t h i s ) ) ; t h i s . o r i g i n a l T o p = t h i s . e l e m e n t . o f f s e t T o p ; t h i s . o r i g i n a l 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 ; v a r   _ 5 1 = t h i s . e l e m e n t . g e t S t y l e ( " f o n t - s i z e " ) | | " 1 0 0 % " ; [ " e m " , " p x " , " % " , " p t " ] . e a c h ( f u n c t i o n ( _ 5 2 ) { i f ( _ 5 1 . i n d e x O f ( _ 5 2 ) > 0 ) { t h i s . f o n t S i z e = p a r s e F l o a t ( _ 5 1 ) ; t h i s . f o n t S i z e T y p e = _ 5 2 ; } } . b i n d ( t h i s ) ) ; t h i s . f a c t o r = ( t h i s . o p t i o n s . s c a l e T o - t h i s . o p t i o n s . s c a l e F r o m ) / 1 0 0 ; t h i s . d i m s = n u l l ; i f ( t h i s . o p t i o n s . s c a l e M o d e = = " b o x " ) { t h i s . d i m s = [ t h i s . e l e m e n t . o f f s e t H e i g h t , t h i s . e l e m e n t . o f f s e t W i d t h ] ; } i f ( / ^ c o n t e n t / . t e s t ( t h i s . o p t i o n s . s c a l e M o d e ) ) { t h i s . d i m s = [ t h i s . e l e m e n t . s c r o l l H e i g h t , t h i s . e l e m e n t . s c r o l l W i d t h ] ; } i f ( ! t h i s . d i m s ) { t h i s . d i m s = [ t h i s . o p t i o n s . s c a l e M o d e . o r i g i n a l H e i g h t , t h i s . o p t i o n s . s c a l e M o d e . o r i g i n a l W i d t h ] ; } } , u p d a t e : f u n c t i o n ( _ 5 3 ) { v a r   _ 5 4 = ( t h i s . o p t i o n s . s c a l e F r o m / 1 0 0 ) + ( t h i s . f a c t o r * _ 5 3 ) ; i f ( t h i s . o p t i o n s . s c a l e C o n t e n t & & t h i s . f o n t S i z e ) { t h i s . e l e m e n t . s e t S t y l e ( { f o n t S i z e : t h i s . f o n t S i z e * _ 5 4 + t h i s . f o n t S i z e T y p e } ) ; } t h i s . s e t D i m e n s i o n s ( t h i s . d i m s [ 0 ] * _ 5 4 , t h i s . d i m s [ 1 ] * _ 5 4 ) ; } , f i n i s h : f u n c t i o n ( _ 5 5 ) { i f ( t h i s . r e s t o r e A f t e r F i n i s h ) { t h i s . e l e m e n t . s e t S t y l e ( t h i s . o r i g i n a l S t y l e ) ; } } , s e t D i m e n s i o n s : f u n c t i o n ( _ 5 6 , _ 5 7 ) { v a r   d = { } ; i f ( t h i s . o p t i o n s . s c a l e X ) { d . w i d t h = M a t h . r o u n d ( _ 5 7 ) + " p x " ; } i f ( t h i s . o p t i o n s . s c a l e Y ) { d . h e i g h t = M a t h . r o u n d ( _ 5 6 ) + " p x " ; } i f ( t h i s . o p t i o n s . s c a l e F r o m C e n t e r ) { v a r   _ 5 9 = ( _ 5 6 - t h i s . d i m s [ 0 ] ) / 2 ; v a r   _ 5 a = ( _ 5 7 - t h i s . d i m s [ 1 ] ) / 2 ; i f ( t h i s . e l e m e n t P o s i t i o n i n g = = " a b s o l u t e " ) { i f ( t h i s . o p t i o n s . s c a l e Y ) { d . t o p = t h i s . o r i g i n a l T o p - _ 5 9 + " p x " ; } i f ( t h i s . o p t i o n s . s c a l e X ) { d . l e f t = t h i s . o r i g i n a l L e f t - _ 5 a + " p x " ; } } e l s e { i f ( t h i s . o p t i o n s . s c a l e Y ) { d . t o p = - _ 5 9 + " p x " ; } i f ( t h i s . o p t i o n s . s c a l e X ) { d . l e f t = - _ 5 a + " p x " ; } } } t h i s . e l e m e n t . s e t S t y l e ( d ) ; } } ) ; E f f e c t . H i g h l i g h t = C l a s s . c r e a t e ( ) ; O b j e c t . e x t e n d ( O b j e c t . e x t e n d ( E f f e c t . H i g h l i g h t . p r o t o t y p e , E f f e c t . B a s e . p r o t o t y p e ) , { i n i t i a l i z e : f u n c t i o n ( _ 5 b ) { t h i s . e l e m e n t = $ ( _ 5 b ) ; i f ( ! t h i s . e l e m e n t ) { t h r o w   ( E f f e c t . _ e l e m e n t D o e s N o t E x i s t E r r o r ) ; } v a r   _ 5 c = O b j e c t . e x t e n d ( { s t a r t c o l o r : " # f f f f 9 9 " } , a r g u m e n t s [ 1 ] | | { } ) ; t h i s . s t a r t ( _ 5 c ) ; } , s e t u p : f u n c t i o n ( ) { i f ( t h i s . e l e m e n t . g e t S t y l e ( " d i s p l a y " ) = = " n o n e " ) { t h i s . c a n c e l ( ) ; r e t u r n ; } t h i s . o l d S t y l e = { b a c k g r o u n d I m a g e : t h i s . e l e m e n t . g e t S t y l e ( " b a c k g r o u n d - i m a g e " ) } ; t h i s . e l e m e n t . s e t S t y l e ( { b a c k g r o u n d I m a g e : " n o n e " } ) ; i f ( ! t h i s . o p t i o n s . e n d c o l o r ) { t h i s . o p t i o n s . e n d c o l o r = t h i s . e l e m e n t . g e t S t y l e ( " b a c k g r o u n d - c o l o r " ) . p a r s e C o l o r ( " # f f f f f f " ) ; } i f ( ! t h i s . o p t i o n s . r e s t o r e c o l o r ) { t h i s . o p t i o n s . r e s t o r e c o l o r = t h i s . e l e m e n t . g e t S t y l e ( " b a c k g r o u n d - c o l o r " ) ; } t h i s . _ b a s e = $ R ( 0 , 2 ) . m a p ( f u n c t i o n ( i ) { r e t u r n   p a r s e I n t ( t h i s . o p t i o n s . s t a r t c o l o r . s l i c e ( i * 2 + 1 , i * 2 + 3 ) , 1 6 ) ; } . b i n d ( t h i s ) ) ; t h i s . _ d e l t a = $ R ( 0 , 2 ) . m a p ( f u n c t i o n ( i ) { r e t u r n   p a r s e I n t ( t h i s . o p t i o n s . e n d c o l o r . s l i c e ( i * 2 + 1 , i * 2 + 3 ) , 1 6 ) - t h i s . _ b a s e [ i ] ; } . b i n d ( t h i s ) ) ; } , u p d a t e : f u n c t i o n ( _ 5 f ) { t h i s . e l e m e n t . s e t S t y l e ( { b a c k g r o u n d C o l o r : $ R ( 0 , 2 ) . i n j e c t ( " # " , f u n c t i o n ( m , v , i ) { r e t u r n   m + ( M a t h . r o u n d ( t h i s . _ b a s e [ i ] + ( t h i s . _ d e l t a [ i ] * _ 5 f ) ) . t o C o l o r P a r t ( ) ) ; } . b i n d ( t h i s ) ) } ) ; } , f i n i s h : f u n c t i o n ( ) { t h i s . e l e m e n t . s e t S t y l e ( O b j e c t . e x t e n d ( t h i s . o l d S t y l e , { b a c k g r o u n d C o l o r : t h i s . o p t i o n s . r e s t o r e c o l o r } ) ) ; } } ) ; E f f e c t . S c r o l l T o = C l a s s . c r e a t e ( ) ; O b j e c t . e x t e n d ( O b j e c t . e x t e n d ( E f f e c t . S c r o l l T o . p r o t o t y p e , E f f e c t . B a s e . p r o t o t y p e ) , { i n i t i a l i z e : f u n c t i o n ( _ 6 3 ) { t h i s . e l e m e n t = $ ( _ 6 3 ) ; t h i s . s t a r t ( a r g u m e n t s [ 1 ] | | { } ) ; } , s e t u p : f u n c t i o n ( ) { P o s i t i o n . p r e p a r e ( ) ; v a r   _ 6 4 = P o s i t i o n . c u m u l a t i v e O f f s e t ( t h i s . e l e m e n t ) ; i f ( t h i s . o p t i o n s . o f f s e t ) { _ 6 4 [ 1 ] + = t h i s . o p t i o n s . o f f s e t ; } v a r   m a x = w i n d o w . i n n e r H e i g h t ? w i n d o w . h e i g h t - w i n d o w . i n n e r 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 - ( d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t ? d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t : d o c u m e n t . b o d y . c l i e n t H e i g h t ) ; t h i s . s c r o l l S t a r t = P o s i t i o n . d e l t a Y ; t h i s . d e l t a = ( _ 6 4 [ 1 ] > m a x ? m a x : _ 6 4 [ 1 ] ) - t h i s . s c r o l l S t a r t ; } , u p d a t e : f u n c t i o n ( _ 6 6 ) { P o s i t i o n . p r e p a r e ( ) ; w i n d o w . s c r o l l T o ( P o s i t i o n . d e l t a X , t h i s . s c r o l l S t a r t + ( _ 6 6 * t h i s . d e l t a ) ) ; } } ) ; E f f e c t . F a d e = f u n c t i o n ( _ 6 7 ) { _ 6 7 = $ ( _ 6 7 ) ; v a r   _ 6 8 = _ 6 7 . g e t I n l i n e O p a c i t y ( ) ; v a r   _ 6 9 = O b j e c t . e x t e n d ( { f r o m : _ 6 7 . g e t O p a c i t y ( ) | | 1 , t o : 0 , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 6 a ) { i f ( _ 6 a . o p t i o n s . t o ! = 0 ) { r e t u r n ; } _ 6 a . e l e m e n t . h i d e ( ) ; _ 6 a . e l e m e n t . s e t S t y l e ( { o p a c i t y : _ 6 8 } ) ; } } , a r g u m e n t s [ 1 ] | | { } ) ; r e t u r n   n e w   E f f e c t . O p a c i t y ( _ 6 7 , _ 6 9 ) ; } ; E f f e c t . A p p e a r = f u n c t i o n ( _ 6 b ) { _ 6 b = $ ( _ 6 b ) ; v a r   _ 6 c = O b j e c t . e x t e n d ( { f r o m : ( _ 6 b . g e t S t y l e ( " d i s p l a y " ) = = " n o n e " ? 0 : _ 6 b . g e t O p a c i t y ( ) | | 0 ) , t o : 1 , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 6 d ) { _ 6 d . e l e m e n t . f o r c e R e r e n d e r i n g ( ) ; } , b e f o r e S e t u p : f u n c t i o n ( _ 6 e ) { _ 6 e . e l e m e n t . s e t O p a c i t y ( _ 6 e . o p t i o n s . f r o m ) ; _ 6 e . e l e m e n t . s h o w ( ) ; } } , a r g u m e n t s [ 1 ] | | { } ) ; r e t u r n   n e w   E f f e c t . O p a c i t y ( _ 6 b , _ 6 c ) ; } ; E f f e c t . P u f f = f u n c t i o n ( _ 6 f ) { _ 6 f = $ ( _ 6 f ) ; v a r   _ 7 0 = { o p a c i t y : _ 6 f . g e t I n l i n e O p a c i t y ( ) , p o s i t i o n : _ 6 f . g e t S t y l e ( " p o s i t i o n " ) , t o p : _ 6 f . s t y l e . t o p , l e f t : _ 6 f . s t y l e . l e f t , w i d t h : _ 6 f . s t y l e . w i d t h , h e i g h t : _ 6 f . s t y l e . h e i g h t } ; r e t u r n   n e w   E f f e c t . P a r a l l e l ( [ n e w   E f f e c t . S c a l e ( _ 6 f , 2 0 0 , { s y n c : t r u e , s c a l e F r o m C e n t e r : t r u e , s c a l e C o n t e n t : t r u e , r e s t o r e A f t e r F i n i s h : t r u e } ) , n e w   E f f e c t . O p a c i t y ( _ 6 f , { s y n c : t r u e , t o : 0 } ) ] , O b j e c t . e x t e n d ( { d u r a t i o n : 1 , b e f o r e S e t u p I n t e r n a l : f u n c t i o n ( _ 7 1 ) { P o s i t i o n . a b s o l u t i z e ( _ 7 1 . e f f e c t s [ 0 ] . e l e m e n t ) ; } , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 7 2 ) { _ 7 2 . e f f e c t s [ 0 ] . e l e m e n t . h i d e ( ) ; _ 7 2 . e f f e c t s [ 0 ] . e l e m e n t . s e t S t y l e ( _ 7 0 ) ; } } , a r g u m e n t s [ 1 ] | | { } ) ) ; } ; E f f e c t . B l i n d U p = f u n c t i o n ( _ 7 3 ) { _ 7 3 = $ ( _ 7 3 ) ; _ 7 3 . m a k e C l i p p i n g ( ) ; r e t u r n   n e w   E f f e c t . S c a l e ( _ 7 3 , 0 , O b j e c t . e x t e n d ( { s c a l e C o n t e n t : f a l s e , s c a l e X : f a l s e , r e s t o r e A f t e r F i n i s h : t r u e , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 7 4 ) { _ 7 4 . e l e m e n t . h i d e ( ) ; _ 7 4 . e l e m e n t . u n d o C l i p p i n g ( ) ; } } , a r g u m e n t s [ 1 ] | | { } ) ) ; } ; E f f e c t . B l i n d D o w n = f u n c t i o n ( _ 7 5 ) { _ 7 5 = $ ( _ 7 5 ) ; v a r   _ 7 6 = _ 7 5 . g e t D i m e n s i o n s ( ) ; r e t u r n   n e w   E f f e c t . S c a l e ( _ 7 5 , 1 0 0 , O b j e c t . e x t e n d ( { s c a l e C o n t e n t : f a l s e , s c a l e X : f a l s e , s c a l e F r o m : 0 , s c a l e M o d e : { o r i g i n a l H e i g h t : _ 7 6 . h e i g h t , o r i g i n a l W i d t h : _ 7 6 . w i d t h } , r e s t o r e A f t e r F i n i s h : t r u e , a f t e r S e t u p : f u n c t i o n ( _ 7 7 ) { _ 7 7 . e l e m e n t . m a k e C l i p p i n g ( ) ; _ 7 7 . e l e m e n t . s e t S t y l e ( { h e i g h t : " 0 p x " } ) ; _ 7 7 . e l e m e n t . s h o w ( ) ; } , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 7 8 ) { _ 7 8 . e l e m e n t . u n d o C l i p p i n g ( ) ; } } , a r g u m e n t s [ 1 ] | | { } ) ) ; } ; E f f e c t . S w i t c h O f f = f u n c t i o n ( _ 7 9 ) { _ 7 9 = $ ( _ 7 9 ) ; v a r   _ 7 a = _ 7 9 . g e t I n l i n e O p a c i t y ( ) ; r e t u r n   n e w   E f f e c t . A p p e a r ( _ 7 9 , O b j e c t . e x t e n d ( { d u r a t i o n : 0 . 4 , f r o m : 0 , t r a n s i t i o n : E f f e c t . T r a n s i t i o n s . f l i c k e r , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 7 b ) { n e w   E f f e c t . S c a l e ( _ 7 b . e l e m e n t , 1 , { d u r a t i o n : 0 . 3 , s c a l e F r o m C e n t e r : t r u e , s c a l e X : f a l s e , s c a l e C o n t e n t : f a l s e , r e s t o r e A f t e r F i n i s h : t r u e , b e f o r e S e t u p : f u n c t i o n ( _ 7 c ) { _ 7 c . e l e m e n t . m a k e P o s i t i o n e d ( ) ; _ 7 c . e l e m e n t . m a k e C l i p p i n g ( ) ; } , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 7 d ) { _ 7 d . e l e m e n t . h i d e ( ) ; _ 7 d . e l e m e n t . u n d o C l i p p i n g ( ) ; _ 7 d . e l e m e n t . u n d o P o s i t i o n e d ( ) ; _ 7 d . e l e m e n t . s e t S t y l e ( { o p a c i t y : _ 7 a } ) ; } } ) ; } } , a r g u m e n t s [ 1 ] | | { } ) ) ; } ; E f f e c t . D r o p O u t = f u n c t i o n ( _ 7 e ) { _ 7 e = $ ( _ 7 e ) ; v a r   _ 7 f = { t o p : _ 7 e . g e t S t y l e ( " t o p " ) , l e f t : _ 7 e . g e t S t y l e ( " l e f t " ) , o p a c i t y : _ 7 e . g e t I n l i n e O p a c i t y ( ) } ; r e t u r n   n e w   E f f e c t . P a r a l l e l ( [ n e w   E f f e c t . M o v e ( _ 7 e , { x : 0 , y : 1 0 0 , s y n c : t r u e } ) , n e w   E f f e c t . O p a c i t y ( _ 7 e , { s y n c : t r u e , t o : 0 } ) ] , O b j e c t . e x t e n d ( { d u r a t i o n : 0 . 5 , b e f o r e S e t u p : f u n c t i o n ( _ 8 0 ) { _ 8 0 . e f f e c t s [ 0 ] . e l e m e n t . m a k e P o s i t i o n e d ( ) ; } , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 8 1 ) { _ 8 1 . e f f e c t s [ 0 ] . e l e m e n t . h i d e ( ) ; _ 8 1 . e f f e c t s [ 0 ] . e l e m e n t . u n d o P o s i t i o n e d ( ) ; _ 8 1 . e f f e c t s [ 0 ] . e l e m e n t . s e t S t y l e ( _ 7 f ) ; } } , a r g u m e n t s [ 1 ] | | { } ) ) ; } ; E f f e c t . S h a k e = f u n c t i o n ( _ 8 2 ) { _ 8 2 = $ ( _ 8 2 ) ; v a r   _ 8 3 = { t o p : _ 8 2 . g e t S t y l e ( " t o p " ) , l e f t : _ 8 2 . g e t S t y l e ( " l e f t " ) } ; r e t u r n   n e w   E f f e c t . M o v e ( _ 8 2 , { x : 2 0 , y : 0 , d u r a t i o n : 0 . 0 5 , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 8 4 ) { n e w   E f f e c t . M o v e ( _ 8 4 . e l e m e n t , { x : - 4 0 , y : 0 , d u r a t i o n : 0 . 1 , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 8 5 ) { n e w   E f f e c t . M o v e ( _ 8 5 . e l e m e n t , { x : 4 0 , y : 0 , d u r a t i o n : 0 . 1 , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 8 6 ) { n e w   E f f e c t . M o v e ( _ 8 6 . e l e m e n t , { x : - 4 0 , y : 0 , d u r a t i o n : 0 . 1 , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 8 7 ) { n e w   E f f e c t . M o v e ( _ 8 7 . e l e m e n t , { x : 4 0 , y : 0 , d u r a t i o n : 0 . 1 , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 8 8 ) { n e w   E f f e c t . M o v e ( _ 8 8 . e l e m e n t , { x : - 2 0 , y : 0 , d u r a t i o n : 0 . 0 5 , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 8 9 ) { _ 8 9 . e l e m e n t . u n d o P o s i t i o n e d ( ) ; _ 8 9 . e l e m e n t . s e t S t y l e ( _ 8 3 ) ; } } ) ; } } ) ; } } ) ; } } ) ; } } ) ; } } ) ; } ; E f f e c t . S l i d e D o w n = f u n c t i o n ( _ 8 a ) { _ 8 a = $ ( _ 8 a ) ; _ 8 a . c l e a n W h i t e s p a c e ( ) ; v a r   _ 8 b = $ ( _ 8 a . f i r s t C h i l d ) . g e t S t y l e ( " b o t t o m " ) ; v a r   _ 8 c = _ 8 a . g e t D i m e n s i o n s ( ) ; r e t u r n   n e w   E f f e c t . S c a l e ( _ 8 a , 1 0 0 , O b j e c t . e x t e n d ( { s c a l e C o n t e n t : f a l s e , s c a l e X : f a l s e , s c a l e F r o m : w i n d o w . o p e r a ? 0 : 1 , s c a l e M o d e : { o r i g i n a l H e i g h t : _ 8 c . h e i g h t , o r i g i n a l W i d t h : _ 8 c . w i d t h } , r e s t o r e A f t e r F i n i s h : t r u e , a f t e r S e t u p : f u n c t i o n ( _ 8 d ) { _ 8 d . e l e m e n t . m a k e P o s i t i o n e d ( ) ; _ 8 d . e l e m e n t . f i r s t C h i l d . m a k e P o s i t i o n e d ( ) ; i f ( w i n d o w . o p e r a ) { _ 8 d . e l e m e n t . s e t S t y l e ( { t o p : " " } ) ; } _ 8 d . e l e m e n t . m a k e C l i p p i n g ( ) ; _ 8 d . e l e m e n t . s e t S t y l e ( { h e i g h t : " 0 p x " } ) ; _ 8 d . e l e m e n t . s h o w ( ) ; } , a f t e r U p d a t e I n t e r n a l : f u n c t i o n ( _ 8 e ) { _ 8 e . e l e m e n t . f i r s t C h i l d . s e t S t y l e ( { b o t t o m : ( _ 8 e . d i m s [ 0 ] - _ 8 e . e l e m e n t . c l i e n t H e i g h t ) + " p x " } ) ; } , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 8 f ) { _ 8 f . e l e m e n t . u n d o C l i p p i n g ( ) ; i f ( / M S I E / . t e s t ( n a v i g a t o r . u s e r A g e n t ) & & ! w i n d o w . o p e r a ) { _ 8 f . e l e m e n t . u n d o P o s i t i o n e d ( ) ; _ 8 f . e l e m e n t . f i r s t C h i l d . u n d o P o s i t i o n e d ( ) ; } e l s e { _ 8 f . e l e m e n t . f i r s t C h i l d . u n d o P o s i t i o n e d ( ) ; _ 8 f . e l e m e n t . u n d o P o s i t i o n e d ( ) ; } _ 8 f . e l e m e n t . f i r s t C h i l d . s e t S t y l e ( { b o t t o m : _ 8 b } ) ; } } , a r g u m e n t s [ 1 ] | | { } ) ) ; } ; E f f e c t . S l i d e U p = f u n c t i o n ( _ 9 0 ) { _ 9 0 = $ ( _ 9 0 ) ; _ 9 0 . c l e a n W h i t e s p a c e ( ) ; v a r   _ 9 1 = $ ( _ 9 0 . f i r s t C h i l d ) . g e t S t y l e ( " b o t t o m " ) ; r e t u r n   n e w   E f f e c t . S c a l e ( _ 9 0 , w i n d o w . o p e r a ? 0 : 1 , O b j e c t . e x t e n d ( { s c a l e C o n t e n t : f a l s e , s c a l e X : f a l s e , s c a l e M o d e : " b o x " , s c a l e F r o m : 1 0 0 , r e s t o r e A f t e r F i n i s h : t r u e , b e f o r e S t a r t I n t e r n a l : f u n c t i o n ( _ 9 2 ) { _ 9 2 . e l e m e n t . m a k e P o s i t i o n e d ( ) ; _ 9 2 . e l e m e n t . f i r s t C h i l d . m a k e P o s i t i o n e d ( ) ; i f ( w i n d o w . o p e r a ) { _ 9 2 . e l e m e n t . s e t S t y l e ( { t o p : " " } ) ; } _ 9 2 . e l e m e n t . m a k e C l i p p i n g ( ) ; _ 9 2 . e l e m e n t . s h o w ( ) ; } , a f t e r U p d a t e I n t e r n a l : f u n c t i o n ( _ 9 3 ) { _ 9 3 . e l e m e n t . f i r s t C h i l d . s e t S t y l e ( { b o t t o m : ( _ 9 3 . d i m s [ 0 ] - _ 9 3 . e l e m e n t . c l i e n t H e i g h t ) + " p x " } ) ; } , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 9 4 ) { _ 9 4 . e l e m e n t . h i d e ( ) ; _ 9 4 . e l e m e n t . u n d o C l i p p i n g ( ) ; _ 9 4 . e l e m e n t . f i r s t C h i l d . u n d o P o s i t i o n e d ( ) ; _ 9 4 . e l e m e n t . u n d o P o s i t i o n e d ( ) ; _ 9 4 . e l e m e n t . s e t S t y l e ( { b o t t o m : _ 9 1 } ) ; } } , a r g u m e n t s [ 1 ] | | { } ) ) ; } ; E f f e c t . S q u i s h = f u n c t i o n ( _ 9 5 ) { r e t u r n   n e w   E f f e c t . S c a l e ( _ 9 5 , w i n d o w . o p e r a ? 1 : 0 , { r e s t o r e A f t e r F i n i s h : t r u e , b e f o r e S e t u p : f u n c t i o n ( _ 9 6 ) { _ 9 6 . e l e m e n t . m a k e C l i p p i n g ( _ 9 6 . e l e m e n t ) ; } , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 9 7 ) { _ 9 7 . e l e m e n t . h i d e ( _ 9 7 . e l e m e n t ) ; _ 9 7 . e l e m e n t . u n d o C l i p p i n g ( _ 9 7 . e l e m e n t ) ; } } ) ; } ; E f f e c t . G r o w = f u n c t i o n ( _ 9 8 ) { _ 9 8 = $ ( _ 9 8 ) ; v a r   _ 9 9 = O b j e c t . e x t e n d ( { d i r e c t i o n : " c e n t e r " , m o v e T r a n s i t i o n : E f f e c t . T r a n s i t i o n s . s i n o i d a l , s c a l e T r a n s i t i o n : E f f e c t . T r a n s i t i o n s . s i n o i d a l , o p a c i t y T r a n s i t i o n : E f f e c t . T r a n s i t i o n s . f u l l } , a r g u m e n t s [ 1 ] | | { } ) ; v a r   _ 9 a = { t o p : _ 9 8 . s t y l e . t o p , l e f t : _ 9 8 . s t y l e . l e f t , h e i g h t : _ 9 8 . s t y l e . h e i g h t , w i d t h : _ 9 8 . s t y l e . w i d t h , o p a c i t y : _ 9 8 . g e t I n l i n e O p a c i t y ( ) } ; v a r   _ 9 b = _ 9 8 . g e t D i m e n s i o n s ( ) ; v a r   _ 9 c , i n i t i a l M o v e Y ; v a r   _ 9 d , m o v e Y ; s w i t c h ( _ 9 9 . d i r e c t i o n ) { c a s e   " t o p - l e f t " : _ 9 c = i n i t i a l M o v e Y = _ 9 d = m o v e Y = 0 ; b r e a k ; c a s e   " t o p - r i g h t " : _ 9 c = _ 9 b . w i d t h ; i n i t i a l M o v e Y = m o v e Y = 0 ; _ 9 d = - _ 9 b . w i d t h ; b r e a k ; c a s e   " b o t t o m - l e f t " : _ 9 c = _ 9 d = 0 ; i n i t i a l M o v e Y = _ 9 b . h e i g h t ; m o v e Y = - _ 9 b . h e i g h t ; b r e a k ; c a s e   " b o t t o m - r i g h t " : _ 9 c = _ 9 b . w i d t h ; i n i t i a l M o v e Y = _ 9 b . h e i g h t ; _ 9 d = - _ 9 b . w i d t h ; m o v e Y = - _ 9 b . h e i g h t ; b r e a k ; c a s e   " c e n t e r " : _ 9 c = _ 9 b . w i d t h / 2 ; i n i t i a l M o v e Y = _ 9 b . h e i g h t / 2 ; _ 9 d = - _ 9 b . w i d t h / 2 ; m o v e Y = - _ 9 b . h e i g h t / 2 ; b r e a k ; } r e t u r n   n e w   E f f e c t . M o v e ( _ 9 8 , { x : _ 9 c , y : i n i t i a l M o v e Y , d u r a t i o n : 0 . 0 1 , b e f o r e S e t u p : f u n c t i o n ( _ 9 e ) { _ 9 e . e l e m e n t . h i d e ( ) ; _ 9 e . e l e m e n t . m a k e C l i p p i n g ( ) ; _ 9 e . e l e m e n t . m a k e P o s i t i o n e d ( ) ; } , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ 9 f ) { n e w   E f f e c t . P a r a l l e l ( [ n e w   E f f e c t . O p a c i t y ( _ 9 f . e l e m e n t , { s y n c : t r u e , t o : 1 , f r o m : 0 , t r a n s i t i o n : _ 9 9 . o p a c i t y T r a n s i t i o n } ) , n e w   E f f e c t . M o v e ( _ 9 f . e l e m e n t , { x : _ 9 d , y : m o v e Y , s y n c : t r u e , t r a n s i t i o n : _ 9 9 . m o v e T r a n s i t i o n } ) , n e w   E f f e c t . S c a l e ( _ 9 f . e l e m e n t , 1 0 0 , { s c a l e M o d e : { o r i g i n a l H e i g h t : _ 9 b . h e i g h t , o r i g i n a l W i d t h : _ 9 b . w i d t h } , s y n c : t r u e , s c a l e F r o m : w i n d o w . o p e r a ? 1 : 0 , t r a n s i t i o n : _ 9 9 . s c a l e T r a n s i t i o n , r e s t o r e A f t e r F i n i s h : t r u e } ) ] , O b j e c t . e x t e n d ( { b e f o r e S e t u p : f u n c t i o n ( _ a 0 ) { _ a 0 . e f f e c t s [ 0 ] . e l e m e n t . s e t S t y l e ( { h e i g h t : " 0 p x " } ) ; _ a 0 . e f f e c t s [ 0 ] . e l e m e n t . s h o w ( ) ; } , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ a 1 ) { _ a 1 . e f f e c t s [ 0 ] . e l e m e n t . u n d o C l i p p i n g ( ) ; _ a 1 . e f f e c t s [ 0 ] . e l e m e n t . u n d o P o s i t i o n e d ( ) ; _ a 1 . e f f e c t s [ 0 ] . e l e m e n t . s e t S t y l e ( _ 9 a ) ; } } , _ 9 9 ) ) ; } } ) ; } ; E f f e c t . S h r i n k = f u n c t i o n ( _ a 2 ) { _ a 2 = $ ( _ a 2 ) ; v a r   _ a 3 = O b j e c t . e x t e n d ( { d i r e c t i o n : " c e n t e r " , m o v e T r a n s i t i o n : E f f e c t . T r a n s i t i o n s . s i n o i d a l , s c a l e T r a n s i t i o n : E f f e c t . T r a n s i t i o n s . s i n o i d a l , o p a c i t y T r a n s i t i o n : E f f e c t . T r a n s i t i o n s . n o n e } , a r g u m e n t s [ 1 ] | | { } ) ; v a r   _ a 4 = { t o p : _ a 2 . s t y l e . t o p , l e f t : _ a 2 . s t y l e . l e f t , h e i g h t : _ a 2 . s t y l e . h e i g h t , w i d t h : _ a 2 . s t y l e . w i d t h , o p a c i t y : _ a 2 . g e t I n l i n e O p a c i t y ( ) } ; v a r   _ a 5 = _ a 2 . g e t D i m e n s i o n s ( ) ; v a r   _ a 6 , m o v e Y ; s w i t c h ( _ a 3 . d i r e c t i o n ) { c a s e   " t o p - l e f t " : _ a 6 = m o v e Y = 0 ; b r e a k ; c a s e   " t o p - r i g h t " : _ a 6 = _ a 5 . w i d t h ; m o v e Y = 0 ; b r e a k ; c a s e   " b o t t o m - l e f t " : _ a 6 = 0 ; m o v e Y = _ a 5 . h e i g h t ; b r e a k ; c a s e   " b o t t o m - r i g h t " : _ a 6 = _ a 5 . w i d t h ; m o v e Y = _ a 5 . h e i g h t ; b r e a k ; c a s e   " c e n t e r " : _ a 6 = _ a 5 . w i d t h / 2 ; m o v e Y = _ a 5 . h e i g h t / 2 ; b r e a k ; } r e t u r n   n e w   E f f e c t . P a r a l l e l ( [ n e w   E f f e c t . O p a c i t y ( _ a 2 , { s y n c : t r u e , t o : 0 , f r o m : 1 , t r a n s i t i o n : _ a 3 . o p a c i t y T r a n s i t i o n } ) , n e w   E f f e c t . S c a l e ( _ a 2 , w i n d o w . o p e r a ? 1 : 0 , { s y n c : t r u e , t r a n s i t i o n : _ a 3 . s c a l e T r a n s i t i o n , r e s t o r e A f t e r F i n i s h : t r u e } ) , n e w   E f f e c t . M o v e ( _ a 2 , { x : _ a 6 , y : m o v e Y , s y n c : t r u e , t r a n s i t i o n : _ a 3 . m o v e T r a n s i t i o n } ) ] , O b j e c t . e x t e n d ( { b e f o r e S t a r t I n t e r n a l : f u n c t i o n ( _ a 7 ) { _ a 7 . e f f e c t s [ 0 ] . e l e m e n t . m a k e P o s i t i o n e d ( ) ; _ a 7 . e f f e c t s [ 0 ] . e l e m e n t . m a k e C l i p p i n g ( ) ; } , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ a 8 ) { _ a 8 . e f f e c t s [ 0 ] . e l e m e n t . h i d e ( ) ; _ a 8 . e f f e c t s [ 0 ] . e l e m e n t . u n d o C l i p p i n g ( ) ; _ a 8 . e f f e c t s [ 0 ] . e l e m e n t . u n d o P o s i t i o n e d ( ) ; _ a 8 . e f f e c t s [ 0 ] . e l e m e n t . s e t S t y l e ( _ a 4 ) ; } } , _ a 3 ) ) ; } ; E f f e c t . P u l s a t e = f u n c t i o n ( _ a 9 ) { _ a 9 = $ ( _ a 9 ) ; v a r   _ a a = a r g u m e n t s [ 1 ] | | { } ; v a r   _ a b = _ a 9 . g e t I n l i n e O p a c i t y ( ) ; v a r   _ a c = _ a a . t r a n s i t i o n | | E f f e c t . T r a n s i t i o n s . s i n o i d a l ; v a r   _ a d = f u n c t i o n ( p o s ) { r e t u r n   _ a c ( 1 - E f f e c t . T r a n s i t i o n s . p u l s e ( p o s ) ) ; } ; _ a d . b i n d ( _ a c ) ; r e t u r n   n e w   E f f e c t . O p a c i t y ( _ a 9 , O b j e c t . e x t e n d ( O b j e c t . e x t e n d ( { d u r a t i o n : 3 , f r o m : 0 , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ a f ) { _ a f . e l e m e n t . s e t S t y l e ( { o p a c i t y : _ a b } ) ; } } , _ a a ) , { t r a n s i t i o n : _ a d } ) ) ; } ; E f f e c t . F o l d = f u n c t i o n ( _ b 0 ) { _ b 0 = $ ( _ b 0 ) ; v a r   _ b 1 = { t o p : _ b 0 . s t y l e . t o p , l e f t : _ b 0 . s t y l e . l e f t , w i d t h : _ b 0 . s t y l e . w i d t h , h e i g h t : _ b 0 . s t y l e . h e i g h t } ; E l e m e n t . m a k e C l i p p i n g ( _ b 0 ) ; r e t u r n   n e w   E f f e c t . S c a l e ( _ b 0 , 5 , O b j e c t . e x t e n d ( { s c a l e C o n t e n t : f a l s e , s c a l e X : f a l s e , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ b 2 ) { n e w   E f f e c t . S c a l e ( _ b 0 , 1 , { s c a l e C o n t e n t : f a l s e , s c a l e Y : f a l s e , a f t e r F i n i s h I n t e r n a l : f u n c t i o n ( _ b 3 ) { _ b 3 . e l e m e n t . h i d e ( ) ; _ b 3 . e l e m e n t . u n d o C l i p p i n g ( ) ; _ b 3 . e l e m e n t . s e t S t y l e ( _ b 1 ) ; } } ) ; } } , a r g u m e n t s [ 1 ] | | { } ) ) ; } ; [ " s e t O p a c i t y " , " g e t O p a c i t y " , " g e t I n l i n e O p a c i t y " , " f o r c e R e r e n d e r i n g " , " s e t C o n t e n t Z o o m " , " c o l l e c t T e x t N o d e s " , " c o l l e c t T e x t N o d e s I g n o r e C l a s s " , " c h i l d r e n W i t h C l a s s N a m e " ] . e a c h ( f u n c t i o n ( f ) { E l e m e n t . M e t h o d s [ f ] = E l e m e n t [ f ] ; } ) ; E l e m e n t . M e t h o d s . v i s u a l E f f e c t = f u n c t i o n ( _ b 5 , _ b 6 , _ b 7 ) { s = _ b 6 . g s u b ( / _ / , " - " ) . c a m e l i z e ( ) ; e f f e c t _ c l a s s = s . c h a r A t ( 0 ) . t o U p p e r C a s e ( ) + s . s u b s t r i n g ( 1 ) ; n e w   E f f e c t [ e f f e c t _ c l a s s ] ( _ b 5 , _ b 7 ) ; r e t u r n   $ ( _ b 5 ) ; } ; E l e m e n t . a d d M e t h o d s ( ) ;  
  
 f u n c t i o n   b r a n d T r a y ( d i r )  
 	 {  
 	 	 i f ( b r a n d T r a y   ! =   0 )  
 	 	 	 {  
  
 	 	 	 	 i f ( d i r   ! =   0 )     / / m o v e   l e f t  
 	 	 	 	 	 {  
 	 	 	 	 	 	 i f ( b r a n d T r a y C o u n t e r   = =   0 )  
 	 	 	 	 	 	 	 {  
 	 	 	 	 	 	 	 	 $ ( ' b r a n d L o g o s G r o u p 2 ' ) . s t y l e . l e f t   =   b r a n d T r a y W i d t h ;  
 	 	 	 	 	 	 	 }  
 	 	 	 	 	 	 / / r e s e t   t h e   p h o t o   c o n t a i n e r s   a n d   t h e   c o u n t e r    
 	 	 	 	 	 	 i f ( b r a n d T r a y C o u n t e r   = =   ( b r a n d T r a y T o t a l - ( b r a n d T r a y T o t a l * 2 ) ) )  
 	 	 	 	 	 	 	 {  
 	 	 	 	 	 	 	 	 $ ( ' b r a n d L o g o s G r o u p 1 ' ) . s t y l e . l e f t   =   ' 0 p x ' ;  
 	 	 	 	 	 	 	 	 $ ( ' b r a n d L o g o s G r o u p 2 ' ) . s t y l e . l e f t   =   b r a n d T r a y W i d t h ;  
 	 	 	 	 	 	 	 	 b r a n d T r a y C o u n t e r   =   0 ;  
 	 	 	 	 	 	 	 }  
 	 	 	 	 	 	 b r a n d T r a y C o u n t e r   =   b r a n d T r a y C o u n t e r   - 1 ;  
 	 	 	 	 	 	 E f f e c t . M o v e B y (   ' b r a n d L o g o s G r o u p 1 ' ,   0 ,   - 1 7 5 ,   {   b e f o r e S t a r t :   f u n c t i o n ( )   {   d i s a b l e B r a n d T r a y B t n s ( 0 ) ;   } ,   a f t e r F i n i s h :   f u n c t i o n ( )   {   d i s a b l e B r a n d T r a y B t n s ( 1 ) ;   } ,   d u r a t i o n : 1 }   ) ;  
 	 	 	 	 	 	 E f f e c t . M o v e B y (   ' b r a n d L o g o s G r o u p 2 ' ,   0 ,   - 1 7 5 ,   { d u r a t i o n : 1 }   ) ;  
 	 	 	 	 	 	 $ ( ' n e x t ' ) . s t y l e . b a c k g r o u n d   =   ' u r l ( / A S C O v 2 / i m a g e s / n e w a r r o w 4 _ r i g h t _ o n . g i f )   n o - r e p e a t ' ;  
 	 	 	 	 	 }  
 	 	 	 	 e l s e     / / m o v e   r i g h t  
 	 	 	 	 	 {  
 	 	 	 	 	 	 i f ( b r a n d T r a y C o u n t e r   = =   0 )  
 	 	 	 	 	 	 	 {  
 	 	 	 	 	 	 	 	 $ ( ' b r a n d L o g o s G r o u p 2 ' ) . s t y l e . l e f t   =   b r a n d T r a y W i d t h R i g h t ;  
 	 	 	 	 	 	 	 }  
 	 	 	 	 	 	 / / r e s e t   t h e   p h o t o   c o n t a i n e r s   a n d   t h e   c o u n t e r  
 	 	 	 	 	 	 i f ( b r a n d T r a y C o u n t e r   = =   b r a n d T r a y T o t a l )  
 	 	 	 	 	 	 	 {  
 	 	 	 	 	 	 	 	 $ ( ' b r a n d L o g o s G r o u p 1 ' ) . s t y l e . l e f t   =   ' 0 p x ' ;  
 	 	 	 	 	 	 	 	 $ ( ' b r a n d L o g o s G r o u p 2 ' ) . s t y l e . l e f t   =   b r a n d T r a y W i d t h R i g h t ;  
 	 	 	 	 	 	 	 	 b r a n d T r a y C o u n t e r   =   0 ;  
 	 	 	 	 	 	 	 }  
 	 	 	 	 	 	 b r a n d T r a y C o u n t e r   =   b r a n d T r a y C o u n t e r   + 1 ;  
 	 	 	 	 	 	 E f f e c t . M o v e B y (   ' b r a n d L o g o s G r o u p 1 ' ,   0 ,   1 7 5 ,   {   b e f o r e S t a r t :   f u n c t i o n ( )   {   d i s a b l e B r a n d T r a y B t n s ( 0 ) ;   } ,   a f t e r F i n i s h :   f u n c t i o n ( )   {   d i s a b l e B r a n d T r a y B t n s ( 1 ) ;   } ,   d u r a t i o n : 1 }   ) ;  
 	 	 	 	 	 	 E f f e c t . M o v e B y (   ' b r a n d L o g o s G r o u p 2 ' ,   0 ,   1 7 5 ,   { d u r a t i o n : 1 }   ) ;  
 	 	 	 	 	 	 $ ( ' p r e v ' ) . s t y l e . b a c k g r o u n d   =   ' u r l ( / A S C O v 2 / i m a g e s / n e w a r r o w 4 _ l e f t _ o n . g i f )   n o - r e p e a t ' ;  
 	 	 	 	 	 }  
 	 	 	 }  
 	 }  
  
 / / t h i s   f u n c t i o n   d e a c t i v a t e s   b u t t o n   w h i l e   p h o t o   g a l l e r y   i s   m o v i n g  
 f u n c t i o n   d i s a b l e B r a n d T r a y B t n s ( a c t i v e )  
 	 {  
 	 	 i f ( a c t i v e   = =   0 )  
 	 	 	 {  
 	 	 	 	 $ ( ' n e x t ' ) . o n c l i c k   =     n u l l ;  
 	 	 	 	 $ ( ' p r e v ' ) . o n c l i c k   =     n u l l ;  
 	 	 	 }  
 	 	 i f ( a c t i v e   = =   1 )  
 	 	 	 {  
 	 	 	 	 $ ( ' n e x t ' ) . o n c l i c k   =     b r a n d T r a y ;  
 	 	 	 	 $ ( ' n e x t ' ) . s t y l e . b a c k g r o u n d   =   ' u r l ( / A S C O v 2 / i m a g e s / n e w a r r o w 4 _ r i g h t _ o f f . g i f )   n o - r e p e a t ' ;  
 	 	 	 	 $ ( ' p r e v ' ) . o n c l i c k   =     n e w   F u n c t i o n ( " b r a n d T r a y ( " + 0 + " ) " ) ;  
 	 	 	 	 $ ( ' p r e v ' ) . s t y l e . b a c k g r o u n d   =   ' u r l ( / A S C O v 2 / i m a g e s / n e w a r r o w 4 _ l e f t _ o f f . g i f )   n o - r e p e a t ' ;  
 	 	 	 }  
 	 }  
  
 f u n c t i o n   S e t E d i t i o n P r e f e r e n c e ( )  
 {  
 	 i f ( d o c u m e n t . g e t E l e m e n t B y I d ( ' p r e f s ' ) . s t y l e . v i s i b i l i t y = = ' h i d d e n ' )  
 	 	 {  
 	 	 	 M M _ s h o w H i d e L a y e r s ( ' p r e f s ' , ' ' , ' s h o w ' )  
 	 	 }  
 	 e l s e   i f ( d o c u m e n t . g e t E l e m e n t B y I d ( ' p r e f s ' ) . s t y l e . v i s i b i l i t y = = ' v i s i b l e ' )  
 	 	 {  
 	 	 	 M M _ s h o w H i d e L a y e r s ( ' p r e f s ' , ' ' , ' h i d e ' )  
 	 	 }  
 }  
 f u n c t i o n   s e t c o o k i e ( c o o k i e N a m e , c o o k i e V a l u e , n D a y s )   {    
 / / a l e r t ( c o o k i e V a l u e ) ;  
 / / a l e r t ( c o o k i e N a m e ) ;  
 v a r   t o d a y   =   n e w   D a t e ( ) ;    
 v a r   e x p i r e   =   n e w   D a t e ( ) ;    
 / / i f   ( n D a y s = = n u l l   ? ?   n D a y s = = 0 )   n D a y s = 1 ;    
 e x p i r e . s e t T i m e ( t o d a y . g e t T i m e ( )   +   3 6 0 0 0 0 0 * 2 4 * n D a y s ) ;    
 d o c u m e n t . c o o k i e   =   c o o k i e N a m e + " = " + e s c a p e ( c o o k i e V a l u e ) +   " ; e x p i r e s = " + e x p i r e . t o G M T S t r i n g ( ) ;  
 v a r   c u r e n t U r l = w i n d o w . l o c a t i o n ;  
 / / a l e r t ( " t e s t : " + g u p ( ' a d d i t i o n ' ) ) ;  
 v a r   a d d i t i o n V a l u e = g u p ( " e d i t i o n " ) ;  
 i f ( a d d i t i o n V a l u e . l e n g t h > 0 ) {  
 	   c u r e n t U r l = S t r i n g ( c u r e n t U r l ) ;  
 	 c u r e n t U r l = c u r e n t U r l . r e p l a c e ( " e d i t i o n = " + a d d i t i o n V a l u e , " e d i t i o n = " + c o o k i e V a l u e ) ;  
 } e l s e  
 {  
 	       c u r e n t U r l = S t r i n g ( c u r e n t U r l ) ;  
 	       i f ( c u r e n t U r l . i n d e x O f ( ' ? ' ) = = - 1 )  
 	 	       c u r e n t U r l + = " ? e d i t i o n = " + c o o k i e V a l u e ;  
 	       e l s e  
 	 	       c u r e n t U r l + = " & a m p ; e d i t i o n = " + c o o k i e V a l u e ;  
 }  
 / / a l e r t ( c u r e n t U r l ) ;  
 w i n d o w . l o c a t i o n = c u r e n t U r l ;  
 }    
  
  
  
 f u n c t i o n   M M _ f i n d O b j ( n ,   d )   {   / / v 4 . 0 1  
     v a r   p , i , x ;     i f ( ! d )   d = d o c u m e n t ;   i f ( ( p = n . i n d e x O f ( " ? " ) ) > 0 & & p a r e n t . f r a m e s . l e n g t h )   {  
 	 d = p a r e n t . f r a m e s [ n . s u b s t r i n g ( p + 1 ) ] . d o c u m e n t ;   n = n . s u b s t r i n g ( 0 , p ) ; }  
     i f ( ! ( x = d [ n ] ) & & d . a l l )   x = d . a l l [ n ] ;   f o r   ( i = 0 ; ! x & & i < d . f o r m s . l e n g t h ; i + + )   x = d . f o r m s [ i ] [ n ] ;  
     f o r ( i = 0 ; ! x & & d . l a y e r s & & i < d . l a y e r s . l e n g t h ; i + + )   x = M M _ f i n d O b j ( n , d . l a y e r s [ i ] . d o c u m e n t ) ;  
     i f ( ! x   & &   d . g e t E l e m e n t B y I d )   x = d . g e t E l e m e n t B y I d ( n ) ;   r e t u r n   x ;  
 }  
 f u n c t i o n   M M _ s h o w H i d e L a y e r s ( )   {   / / v 6 . 0  
     v a r   i , p , v , o b j , a r g s = M M _ s h o w H i d e L a y e r s . a r g u m e n t s ;  
     f o r   ( i = 0 ;   i < ( a r g s . l e n g t h - 2 ) ;   i + = 3 )   i f   ( ( o b j = M M _ f i n d O b j ( a r g s [ i ] ) ) ! = n u l l )   {   v = a r g s [ i + 2 ] ;  
 	 i f   ( o b j . s t y l e )   {   o b j = o b j . s t y l e ;   v = ( v = = ' s h o w ' ) ? ' v i s i b l e ' : ( v = = ' h i d e ' ) ? ' h i d d e n ' : v ;   }  
 	 o b j . v i s i b i l i t y = v ;   }  
 }  
  
  
 f u n c t i o n   g u p (   n a m e   ) {     n a m e   =   n a m e . r e p l a c e ( / [ \ [ ] / , " \ \ \ [ " ) . r e p l a c e ( / [ \ ] ] / , " \ \ \ ] " ) ;     v a r   r e g e x S   =   " [ \ \ ? & ] " + n a m e + " = ( [ ^ & # ] * ) " ;     v a r   r e g e x   =   n e w   R e g E x p (   r e g e x S   ) ;     v a r   r e s u l t s   =   r e g e x . e x e c (   w i n d o w . l o c a t i o n . h r e f   ) ;     i f (   r e s u l t s   = =   n u l l   )         r e t u r n   " " ;     e l s e         r e t u r n   r e s u l t s [ 1 ] ; }  
 e d i t i o n V a l u e = g u p ( " e d i t i o n " ) ;  
 f u n c t i o n   l o a d V i e w ( c o o k i e V a l u e )   {    
 	 / / a l e r t ( c o o k i e V a l u e ) ;  
 	 v a r   c u r e n t U r l = w i n d o w . l o c a t i o n ;  
 	 / / a l e r t ( " t e s t : " + g u p ( ' a d d i t i o n ' ) ) ;  
 	 / / v a r   a d d i t i o n V a l u e = g u p ( " e d i t i o n " ) ;  
 	 / / v a r   e d i t i o n V a l u e = g u p ( " e d i t i o n " ) ;  
 	 i f ( e d i t i o n V a l u e . l e n g t h > 0 ) {  
 	 	   c u r e n t U r l = S t r i n g ( c u r e n t U r l ) ;  
 	 	 c u r e n t U r l = c u r e n t U r l . r e p l a c e ( " e d i t i o n = " + e d i t i o n V a l u e , " e d i t i o n = " + c o o k i e V a l u e ) ;  
 	 } e l s e  
 	 {  
 	 	       c u r e n t U r l = S t r i n g ( c u r e n t U r l ) ;  
 	 	       i f ( c u r e n t U r l . i n d e x O f ( ' ? ' ) = = - 1 )  
 	 	 	       c u r e n t U r l + = " ? e d i t i o n = " + c o o k i e V a l u e ;  
 	 	       e l s e  
 	 	 	       c u r e n t U r l + = " & a m p ; e d i t i o n = " + c o o k i e V a l u e ;  
 	 }  
 	 w i n d o w . l o c a t i o n = c u r e n t U r l ;  
 }  
  
  
 i f ( e d i t i o n V a l u e = = n u l l   | |   e d i t i o n V a l u e . l e n g t h = = 0 ) {  
  
 v a r   n a m e = " v i e w T y p e " ;  
     v a r   c a   =   d o c u m e n t . c o o k i e . s p l i t ( ' ; ' ) ;  
     v a r   n a m e E Q   =   n a m e   +   " = " ;  
     f o r ( v a r   i = 0 ;   i   <   c a . l e n g t h ;   i + + )   {  
         v a r   c   =   c a [ i ] ;  
         w h i l e   ( c . c h a r A t ( 0 ) = = '   ' )   c   =   c . s u b s t r i n g ( 1 ,   c . l e n g t h ) ;   / / d e l e t e   s p a c e s  
         i f   ( c . i n d e x O f ( n a m e E Q )   = =   0 )  
 	 l o a d V i e w ( c . s u b s t r i n g ( n a m e E Q . l e n g t h ,   c . l e n g t h ) ) ;  
         }  
 }  
  
 / / c o p y   l e f t n a v   j s   f r o m   / p o r t a l / s i t e / a s c o v 2 / t e m p l a t e . N a v G e n e r a t i o n  
  
 	 w i t h ( m i l o n i c = n e w   m e n u n a m e ( " P r a c t i c e   &   G u i d e l i n e s " ) ) {  
 m a r g i n = 4 ;  
 s t y l e = v e r t S t y l e L e f t ;  
 t o p = " o f f s e t = 0 " ;  
 l e f t = " o f f s e t = 0 " ;  
 i t e m w i d t h = " 3 0 0 " ;  
 d i v i d e s = 2 ;  
    
 a I ( " t e x t = P r a c t i c e   M a n a g e m e n t   &   R e i m b u r s e m e n t ; u r l = / A S C O v 2 / P r a c t i c e + % 2 6 + G u i d e l i n e s / P r a c t i c e + M a n a g e m e n t + % 2 6 + R e i m b u r s e m e n t ; ; " ) ;  
    
 a I ( " t e x t = G u i d e l i n e s ; u r l = / A S C O v 2 / P r a c t i c e + % 2 6 + G u i d e l i n e s / G u i d e l i n e s ; ; " ) ;  
    
 a I ( " t e x t = A S C O   i n   A c t i o n ; u r l = h t t p : / / a s c o a c t i o n . a s c o . o r g ; ; " ) ;  
    
 a I ( " t e x t = W o r k f o r c e   I n i t i a t i v e s ; u r l = / A S C O v 2 / P r a c t i c e + % 2 6 + G u i d e l i n e s / W o r k f o r c e + I n i t i a t i v e s ; ; " ) ;  
    
 a I ( " t e x t = Q u a l i t y   C a r e ; u r l = / A S C O v 2 / P r a c t i c e + % 2 6 + G u i d e l i n e s / Q u a l i t y + C a r e ; ; " ) ;  
    
 a I ( " t e x t = S t a t e   A f f i l i a t e s ; u r l = / A S C O v 2 / P r a c t i c e + % 2 6 + G u i d e l i n e s / S t a t e + A f f i l i a t e s ; ; " ) ;  
    
 a I ( " t e x t = C a n c e r   P o r t a l s ; u r l = / A S C O v 2 / P r a c t i c e + % 2 6 + G u i d e l i n e s / C a n c e r + P o r t a l s ? i n t c m p = c p o r t a l s - l e f t n a v ; ; " ) ;  
    
 a I ( " t e x t = Q u a l i t y   O n c o l o g y   P r a c t i c e   I n i t i a t i v e ; u r l = / A S C O v 2 / P r a c t i c e + % 2 6 + G u i d e l i n e s / Q u a l i t y + O n c o l o g y + P r a c t i c e + I n i t i a t i v e ; ; " ) ;  
    
 a I ( " t e x t = G r a n t s   &   A w a r d s ; u r l = / A S C O v 2 / P r a c t i c e + % 2 6 + G u i d e l i n e s / G r a n t s + % 2 6 + A w a r d s ; ; " ) ;  
    
 a I ( " t e x t = F o r   Y o u r   P a t i e n t ; u r l = / A S C O v 2 / P r a c t i c e + % 2 6 + G u i d e l i n e s / F o r + Y o u r + P a t i e n t ; ; " ) ;  
    
 a I ( " t e x t = M e m b e r s h i p   D i r e c t o r y ; u r l = / A S C O v 2 / P r a c t i c e + % 2 6 + G u i d e l i n e s / M e m b e r s h i p + D i r e c t o r y ; ; " ) ;  
    
 a I ( " t e x t = A b s t r a c t s ; u r l = / A S C O v 2 / P r a c t i c e + % 2 6 + G u i d e l i n e s / A b s t r a c t s ; ; " ) ;  
    
 a I ( " t e x t = V i r t u a l   M e e t i n g ; u r l = / A S C O v 2 / P r a c t i c e + % 2 6 + G u i d e l i n e s / V i r t u a l + M e e t i n g ; ; " ) ;  
  
  
 }  
 	 	 	  
 	  
 	 w i t h ( m i l o n i c = n e w   m e n u n a m e ( " R e s e a r c h   R e s o u r c e s " ) ) {  
 m a r g i n = 4 ;  
 s t y l e = v e r t S t y l e L e f t ;  
 t o p = " o f f s e t = 0 " ;  
 l e f t = " o f f s e t = 0 " ;  
 i t e m w i d t h = " 3 0 0 " ;  
 d i v i d e s = 2 ;  
    
 a I ( " t e x t = R e s e a r c h   B l u e p r i n t ; u r l = / A S C O v 2 / R e s e a r c h + R e s o u r c e s / R e s e a r c h + B l u e p r i n t ; ; " ) ;  
  
 a I ( " t e x t = R e s e a r c h   A c t i v i t i e s ; u r l = / A S C O v 2 / R e s e a r c h + R e s o u r c e s / R e s e a r c h + A c t i v i t i e s ; ; " ) ;  
  
 a I ( " t e x t = C a n c e r P r o g r e s s . n e t ; u r l = h t t p : / / c a n c e r p r o g r e s s . n e t ; ; " ) ;    
    
 a I ( " t e x t = C a n c e r   P o r t a l s ; u r l = / A S C O v 2 / R e s e a r c h + R e s o u r c e s / C a n c e r + P o r t a l s ? i n t c m p = c p o r t a l s - l e f t n a v ; ; " ) ;  
    
 a I ( " t e x t = G r a n t s   &   A w a r d s ; u r l = / A S C O v 2 / R e s e a r c h + R e s o u r c e s / G r a n t s + % 2 6 + A w a r d s ; ; " ) ;  
    
 a I ( " t e x t = A b s t r a c t s ; u r l = / A S C O v 2 / R e s e a r c h + R e s o u r c e s / A b s t r a c t s ; ; " ) ;  
    
 a I ( " t e x t = M e e t i n g s ; u r l = / A S C O v 2 / R e s e a r c h + R e s o u r c e s / M e e t i n g s ; ; " ) ;  
    
 a I ( " t e x t = V i r t u a l   M e e t i n g ; u r l = / A S C O v 2 / R e s e a r c h + R e s o u r c e s / V i r t u a l + M e e t i n g ; ; " ) ;  
    
 a I ( " t e x t = E d u c a t i o n   &   T r a i n i n g ; u r l = / A S C O v 2 / R e s e a r c h + R e s o u r c e s / E d u c a t i o n + % 2 6 + T r a i n i n g ; ; " ) ;  
    
 }  
 	 	 	  
 	  
 	 w i t h ( m i l o n i c = n e w   m e n u n a m e ( " E d u c a t i o n   &   T r a i n i n g " ) ) {  
 m a r g i n = 4 ;  
 s t y l e = v e r t S t y l e L e f t ;  
 t o p = " o f f s e t = 0 " ;  
 l e f t = " o f f s e t = 0 " ;  
 i t e m w i d t h = " 3 0 0 " ;  
 d i v i d e s = 2 ;  
    
 a I ( " t e x t = T r a i n i n g ; u r l = / A S C O v 2 / E d u c a t i o n + % 2 6 + T r a i n i n g / T r a i n i n g ; ; " ) ;  
    
 a I ( " t e x t = E d u c a t i o n   R e s o u r c e s ; u r l = / A S C O v 2 / E d u c a t i o n + % 2 6 + T r a i n i n g / E d u c a t i o n + R e s o u r c e s ; ; " ) ;  
    
 a I ( " t e x t = A S C O   P r o g r a m   G u i d e l i n e s ; u r l = / A S C O v 2 / E d u c a t i o n + % 2 6 + T r a i n i n g / A S C O + P r o g r a m + G u i d e l i n e s ; ; " ) ;  
    
 a I ( " t e x t = A S C O   U n i v e r s i t y ; u r l = / A S C O v 2 / E d u c a t i o n + % 2 6 + T r a i n i n g / A S C O + U n i v e r s i t y ; ; " ) ;  
    
 a I ( " t e x t = C a r e e r   R e s o u r c e s ; u r l = / A S C O v 2 / E d u c a t i o n + % 2 6 + T r a i n i n g / C a r e e r + R e s o u r c e s ; ; " ) ;  
    
 a I ( " t e x t = I n t e r n a t i o n a l   E d u c a t i o n ; u r l = / A S C O v 2 / E d u c a t i o n + % 2 6 + T r a i n i n g / I n t e r n a t i o n a l + E d u c a t i o n ; ; " ) ;  
    
 a I ( " t e x t = E d u c a t i o n a l   B o o k ; u r l = / A S C O v 2 / E d u c a t i o n + % 2 6 + T r a i n i n g / E d u c a t i o n a l + B o o k ; ; " ) ;  
    
 a I ( " t e x t = M e e t i n g s ; u r l = / A S C O v 2 / E d u c a t i o n + % 2 6 + T r a i n i n g / M e e t i n g s ; ; " ) ;  
    
 }  
 	 	 	  
 	  
 	 w i t h ( m i l o n i c = n e w   m e n u n a m e ( " P u b l i c   P o l i c y " ) ) {  
 m a r g i n = 4 ;  
 s t y l e = v e r t S t y l e L e f t ;  
 t o p = " o f f s e t = 0 " ;  
 l e f t = " o f f s e t = 0 " ;  
 i t e m w i d t h = " 3 0 0 " ;  
 d i v i d e s = 2 ;  
    
 a I ( " t e x t = A S C O   i n   A c t i o n ; u r l = h t t p : / / a s c o a c t i o n . a s c o . o r g ; ; " ) ;  
    
 a I ( " t e x t = A d v o c a c y   T o o l s ; u r l = h t t p : / / a s c o a c t i o n . a s c o . o r g / A d v o c a c y T o o l s . a s p x ; ; " ) ;  
    
 a I ( " t e x t = P o l i c y   P r i o r i t i e s ; u r l = h t t p : / / a s c o a c t i o n . a s c o . o r g / P o l i c y P r i o r i t i e s . a s p x ; ; " ) ;  
  
 a I ( " t e x t = P o s i t i o n   S t a t e m e n t s ; u r l = h t t p : / / a s c o a c t i o n . a s c o . o r g / P o s i t i o n S t a t e m e n t s . a s p x ; ; " ) ;  
    
 }  
  
 w i t h ( m i l o n i c = n e w   m e n u n a m e ( " I n t e r n a t i o n a l   A f f a i r s " ) ) {  
 m a r g i n = 4 ;  
 s t y l e = v e r t S t y l e L e f t ;  
 t o p = " o f f s e t = 0 " ;  
 l e f t = " o f f s e t = 0 " ;  
 i t e m w i d t h = " 3 0 0 " ;  
 d i v i d e s = 2 ;  
 }  
 	 	 	  
 	  
 	 w i t h ( m i l o n i c = n e w   m e n u n a m e ( " G r a n t s   &   A w a r d s " ) ) {  
 m a r g i n = 4 ;  
 s t y l e = v e r t S t y l e L e f t ;  
 t o p = " o f f s e t = 0 " ;  
 l e f t = " o f f s e t = 0 " ;  
 i t e m w i d t h = " 3 0 0 " ;  
 d i v i d e s = 2 ;  
    
 a I ( " t e x t = C o n q u e r   C a n c e r   F o u n d a t i o n   G r a n t s ; u r l = / A S C O v 2 / G r a n t s + % 2 6 + A w a r d s / C o n q u e r + C a n c e r + F o u n d a t i o n + G r a n t s ; ; " ) ;  
    
 a I ( " t e x t = C o n q u e r   C a n c e r   F o u n d a t i o n   A w a r d s ; u r l = / A S C O v 2 / G r a n t s + % 2 6 + A w a r d s / C o n q u e r + C a n c e r + F o u n d a t i o n + A w a r d s ; ; " ) ;  
    
 a I ( " t e x t = A S C O   S p e c i a l   A w a r d s ; u r l = / A S C O v 2 / G r a n t s + % 2 6 + A w a r d s / A S C O + S p e c i a l + A w a r d s ; ; " ) ;  
    
 a I ( " t e x t = S t a t e   A f f i l i a t e   G r a n t   P r o g r a m ; u r l = / A S C O v 2 / G r a n t s + % 2 6 + A w a r d s / S t a t e + A f f i l i a t e + G r a n t + P r o g r a m ; ; " ) ;  
    
 }  
 	 	 	  
 	  
 	 w i t h ( m i l o n i c = n e w   m e n u n a m e ( " M u l t i M e d i a " ) ) {  
 m a r g i n = 4 ;  
 s t y l e = v e r t S t y l e L e f t ;  
 t o p = " o f f s e t = 0 " ;  
 l e f t = " o f f s e t = 0 " ;  
 i t e m w i d t h = " 3 0 0 " ;  
 d i v i d e s = 2 ;  
    
 a I ( " t e x t = M o b i l e   M e e t i n g s   &   P o d c a s t s ; u r l = / A S C O v 2 / M u l t i M e d i a / M o b i l e + M e e t i n g s + % 2 6 + P o d c a s t s ; ; " ) ;  
  
 a I ( " t e x t = M o b i l e   A p p s ; u r l = / A S C O v 2 / M u l t i M e d i a / M o b i l e + A p p s ; ; " ) ;  
  
 a I ( " t e x t = S o c i a l   M e d i a ; u r l = / A S C O v 2 / M y A S C O / S o c i a l + M e d i a ; ; " ) ;  
    
 a I ( " t e x t = A S C O   U n i v e r s i t y ; u r l = / A S C O v 2 / M u l t i M e d i a / A S C O + U n i v e r s i t y ; ; " ) ;  
    
 a I ( " t e x t = P h o t o   G a l l e r i e s ; u r l = / A S C O v 2 / M u l t i M e d i a / P h o t o + G a l l e r i e s ; ; " ) ;  
    
 a I ( " t e x t = R S S   C e n t r a l ; u r l = / A S C O v 2 / M u l t i M e d i a / R S S + C e n t r a l ; ; " ) ;  
    
 a I ( " t e x t = V i r t u a l   M e e t i n g ; u r l = / A S C O v 2 / M u l t i M e d i a / V i r t u a l + M e e t i n g ; ; " ) ;  
    
 a I ( " t e x t = A S C O   T V ; u r l = / A S C O v 2 / M u l t i M e d i a / A S C O + T V ; ; " ) ;  
    
 }  
 	 	 	  
 	  
 	 w i t h ( m i l o n i c = n e w   m e n u n a m e ( " P r e s s   C e n t e r " ) ) {  
 m a r g i n = 4 ;  
 s t y l e = v e r t S t y l e L e f t ;  
 t o p = " o f f s e t = 0 " ;  
 l e f t = " o f f s e t = 0 " ;  
 i t e m w i d t h = " 3 0 0 " ;  
 d i v i d e s = 2 ;  
    
 a I ( " t e x t = L a t e s t   N e w s   R e l e a s e s ; u r l = / A S C O v 2 / P r e s s + C e n t e r / L a t e s t + N e w s + R e l e a s e s ; ; " ) ;  
    
 a I ( " t e x t = M e d i a   R e s o u r c e s ; u r l = / A S C O v 2 / P r e s s + C e n t e r / M e d i a + R e s o u r c e s ; ; " ) ;  
    
 a I ( " t e x t = M e d i a   C o n t a c t ; u r l = / A S C O v 2 / P r e s s + C e n t e r / M e d i a + C o n t a c t ; ; " ) ;  
    
 a I ( " t e x t = M e e t i n g s   a n d   E v e n t s ; u r l = / A S C O v 2 / P r e s s + C e n t e r / M e e t i n g s + a n d + E v e n t s ; ; " ) ;  
    
 }  
    
  
  
  
  
  
 
