ÿþ/ *  
 C o p y r i g h t   ( c )   2 0 0 9 ,   Y a h o o !   I n c .   A l l   r i g h t s   r e s e r v e d .  
 C o d e   l i c e n s e d   u n d e r   t h e   B S D   L i c e n s e :  
 h t t p : / / d e v e l o p e r . y a h o o . n e t / y u i / l i c e n s e . t x t  
 v e r s i o n :   2 . 7 . 0  
 y u i l o a d e r - d o m - e v e n t . j s  
 * /  
 i f ( t y p e o f   Y A H O O = = " u n d e f i n e d " | | ! Y A H O O ) { v a r   Y A H O O = { } ; } Y A H O O . n a m e s p a c e = f u n c t i o n ( ) { v a r   A = a r g u m e n t s , E = n u l l , C , B , D ; f o r ( C = 0 ; C < A . l e n g t h ; C = C + 1 ) { D = ( " " + A [ C ] ) . s p l i t ( " . " ) ; E = Y A H O O ; f o r ( B = ( D [ 0 ] = = " Y A H O O " ) ? 1 : 0 ; B < D . l e n g t h ; B = B + 1 ) { E [ D [ B ] ] = E [ D [ B ] ] | | { } ; E = E [ D [ B ] ] ; } } r e t u r n   E ; } ; Y A H O O . l o g = f u n c t i o n ( D , A , C ) { v a r   B = Y A H O O . w i d g e t . L o g g e r ; i f ( B & & B . l o g ) { r e t u r n   B . l o g ( D , A , C ) ; } e l s e { r e t u r n   f a l s e ; } } ; Y A H O O . r e g i s t e r = f u n c t i o n ( A , E , D ) { v a r   I = Y A H O O . e n v . m o d u l e s , B , H , G , F , C ; i f ( ! I [ A ] ) { I [ A ] = { v e r s i o n s : [ ] , b u i l d s : [ ] } ; } B = I [ A ] ; H = D . v e r s i o n ; G = D . b u i l d ; F = Y A H O O . e n v . l i s t e n e r s ; B . n a m e = A ; B . v e r s i o n = H ; B . b u i l d = G ; B . v e r s i o n s . p u s h ( H ) ; B . b u i l d s . p u s h ( G ) ; B . m a i n C l a s s = E ; f o r ( C = 0 ; C < F . l e n g t h ; C = C + 1 ) { F [ C ] ( B ) ; } i f ( E ) { E . V E R S I O N = H ; E . B U I L D = G ; } e l s e { Y A H O O . l o g ( " m a i n C l a s s   i s   u n d e f i n e d   f o r   m o d u l e   " + A , " w a r n " ) ; } } ; Y A H O O . e n v = Y A H O O . e n v | | { m o d u l e s : [ ] , l i s t e n e r s : [ ] } ; Y A H O O . e n v . g e t V e r s i o n = f u n c t i o n ( A ) { r e t u r n   Y A H O O . e n v . m o d u l e s [ A ] | | n u l l ; } ; Y A H O O . e n v . u a = f u n c t i o n ( ) { v a r   C = { i e : 0 , o p e r a : 0 , g e c k o : 0 , w e b k i t : 0 , m o b i l e : n u l l , a i r : 0 , c a j a : 0 } , B = n a v i g a t o r . u s e r A g e n t , A ; i f ( ( / K H T M L / ) . t e s t ( B ) ) { C . w e b k i t = 1 ; } A = B . m a t c h ( / A p p l e W e b K i t \ / ( [ ^ \ s ] * ) / ) ; i f ( A & & A [ 1 ] ) { C . w e b k i t = p a r s e F l o a t ( A [ 1 ] ) ; i f ( /   M o b i l e \ / / . t e s t ( B ) ) { C . m o b i l e = " A p p l e " ; } e l s e { A = B . m a t c h ( / N o k i a N [ ^ \ / ] * / ) ; i f ( A ) { C . m o b i l e = A [ 0 ] ; } } A = B . m a t c h ( / A d o b e A I R \ / ( [ ^ \ s ] * ) / ) ; i f ( A ) { C . a i r = A [ 0 ] ; } } i f ( ! C . w e b k i t ) { A = B . m a t c h ( / O p e r a [ \ s \ / ] ( [ ^ \ s ] * ) / ) ; i f ( A & & A [ 1 ] ) { C . o p e r a = p a r s e F l o a t ( A [ 1 ] ) ; A = B . m a t c h ( / O p e r a   M i n i [ ^ ; ] * / ) ; i f ( A ) { C . m o b i l e = A [ 0 ] ; } } e l s e { A = B . m a t c h ( / M S I E \ s ( [ ^ ; ] * ) / ) ; i f ( A & & A [ 1 ] ) { C . i e = p a r s e F l o a t ( A [ 1 ] ) ; } e l s e { A = B . m a t c h ( / G e c k o \ / ( [ ^ \ s ] * ) / ) ; i f ( A ) { C . g e c k o = 1 ; A = B . m a t c h ( / r v : ( [ ^ \ s \ ) ] * ) / ) ; i f ( A & & A [ 1 ] ) { C . g e c k o = p a r s e F l o a t ( A [ 1 ] ) ; } } } } } A = B . m a t c h ( / C a j a \ / ( [ ^ \ s ] * ) / ) ; i f ( A & & A [ 1 ] ) { C . c a j a = p a r s e F l o a t ( A [ 1 ] ) ; } r e t u r n   C ; } ( ) ; ( f u n c t i o n ( ) { Y A H O O . n a m e s p a c e ( " u t i l " , " w i d g e t " , " e x a m p l e " ) ; i f ( " u n d e f i n e d " ! = = t y p e o f   Y A H O O _ c o n f i g ) { v a r   B = Y A H O O _ c o n f i g . l i s t e n e r , A = Y A H O O . e n v . l i s t e n e r s , D = t r u e , C ; i f ( B ) { f o r ( C = 0 ; C < A . l e n g t h ; C = C + 1 ) { i f ( A [ C ] = = B ) { D = f a l s e ; b r e a k ; } } i f ( D ) { A . p u s h ( B ) ; } } } } ) ( ) ; Y A H O O . l a n g = Y A H O O . l a n g | | { } ; ( f u n c t i o n ( ) { v a r   B = Y A H O O . l a n g , F = " [ o b j e c t   A r r a y ] " , C = " [ o b j e c t   F u n c t i o n ] " , A = O b j e c t . p r o t o t y p e , E = [ " t o S t r i n g " , " v a l u e O f " ] , D = { i s A r r a y : f u n c t i o n ( G ) { r e t u r n   A . t o S t r i n g . a p p l y ( G ) = = = F ; } , i s B o o l e a n : f u n c t i o n ( G ) { r e t u r n   t y p e o f   G = = = " b o o l e a n " ; } , i s F u n c t i o n : f u n c t i o n ( G ) { r e t u r n   A . t o S t r i n g . a p p l y ( G ) = = = C ; } , i s N u l l : f u n c t i o n ( G ) { r e t u r n   G = = = n u l l ; } , i s N u m b e r : f u n c t i o n ( G ) { r e t u r n   t y p e o f   G = = = " n u m b e r " & & i s F i n i t e ( G ) ; } , i s O b j e c t : f u n c t i o n ( G ) { r e t u r n ( G & & ( t y p e o f   G = = = " o b j e c t " | | B . i s F u n c t i o n ( G ) ) ) | | f a l s e ; } , i s S t r i n g : f u n c t i o n ( G ) { r e t u r n   t y p e o f   G = = = " s t r i n g " ; } , i s U n d e f i n e d : f u n c t i o n ( G ) { r e t u r n   t y p e o f   G = = = " u n d e f i n e d " ; } , _ I E E n u m F i x : ( Y A H O O . e n v . u a . i e ) ? f u n c t i o n ( I , H ) { v a r   G , K , J ; f o r ( G = 0 ; G < E . l e n g t h ; G = G + 1 ) { K = E [ G ] ; J = H [ K ] ; i f ( B . i s F u n c t i o n ( J ) & & J ! = A [ K ] ) { I [ K ] = J ; } } } : f u n c t i o n ( ) { } , e x t e n d : f u n c t i o n ( J , K , I ) { i f ( ! K | | ! J ) { t h r o w   n e w   E r r o r ( " e x t e n d   f a i l e d ,   p l e a s e   c h e c k   t h a t   " + " a l l   d e p e n d e n c i e s   a r e   i n c l u d e d . " ) ; } v a r   H = f u n c t i o n ( ) { } , G ; H . p r o t o t y p e = K . p r o t o t y p e ; J . p r o t o t y p e = n e w   H ( ) ; J . p r o t o t y p e . c o n s t r u c t o r = J ; J . s u p e r c l a s s = K . p r o t o t y p e ; i f ( K . p r o t o t y p e . c o n s t r u c t o r = = A . c o n s t r u c t o r ) { K . p r o t o t y p e . c o n s t r u c t o r = K ; } i f ( I ) { f o r ( G   i n   I ) { i f ( B . h a s O w n P r o p e r t y ( I , G ) ) { J . p r o t o t y p e [ G ] = I [ G ] ; } } B . _ I E E n u m F i x ( J . p r o t o t y p e , I ) ; } } , a u g m e n t O b j e c t : f u n c t i o n ( K , J ) { i f ( ! J | | ! K ) { t h r o w   n e w   E r r o r ( " A b s o r b   f a i l e d ,   v e r i f y   d e p e n d e n c i e s . " ) ; } v a r   G = a r g u m e n t s , I , L , H = G [ 2 ] ; i f ( H & & H ! = = t r u e ) { f o r ( I = 2 ; I < G . l e n g t h ; I = I + 1 ) { K [ G [ I ] ] = J [ G [ I ] ] ; } } e l s e { f o r ( L   i n   J ) { i f ( H | | ! ( L   i n   K ) ) { K [ L ] = J [ L ] ; } } B . _ I E E n u m F i x ( K , J ) ; } } , a u g m e n t P r o t o : f u n c t i o n ( J , I ) { i f ( ! I | | ! J ) { t h r o w   n e w   E r r o r ( " A u g m e n t   f a i l e d ,   v e r i f y   d e p e n d e n c i e s . " ) ; } v a r   G = [ J . p r o t o t y p e , I . p r o t o t y p e ] , H ; f o r ( H = 2 ; H < a r g u m e n t s . l e n g t h ; H = H + 1 ) { G . p u s h ( a r g u m e n t s [ H ] ) ; } B . a u g m e n t O b j e c t . a p p l y ( t h i s , G ) ; } , d u m p : f u n c t i o n ( G , L ) { v a r   I , K , N = [ ] , O = " { . . . } " , H = " f ( ) { . . . } " , M = " ,   " , J = "   = >   " ; i f ( ! B . i s O b j e c t ( G ) ) { r e t u r n   G + " " ; } e l s e { i f ( G   i n s t a n c e o f   D a t e | | ( " n o d e T y p e "   i n   G & & " t a g N a m e "   i n   G ) ) { r e t u r n   G ; } e l s e { i f ( B . i s F u n c t i o n ( G ) ) { r e t u r n   H ; } } } L = ( B . i s N u m b e r ( L ) ) ? L : 3 ; i f ( B . i s A r r a y ( G ) ) { N . p u s h ( " [ " ) ; f o r ( I = 0 , K = G . l e n g t h ; I < K ; I = I + 1 ) { i f ( B . i s O b j e c t ( G [ I ] ) ) { N . p u s h ( ( L > 0 ) ? B . d u m p ( G [ I ] , L - 1 ) : O ) ; } e l s e { N . p u s h ( G [ I ] ) ; } N . p u s h ( M ) ; } i f ( N . l e n g t h > 1 ) { N . p o p ( ) ; } N . p u s h ( " ] " ) ; } e l s e { N . p u s h ( " { " ) ; f o r ( I   i n   G ) { i f ( B . h a s O w n P r o p e r t y ( G , I ) ) { N . p u s h ( I + J ) ; i f ( B . i s O b j e c t ( G [ I ] ) ) { N . p u s h ( ( L > 0 ) ? B . d u m p ( G [ I ] , L - 1 ) : O ) ; } e l s e { N . p u s h ( G [ I ] ) ; } N . p u s h ( M ) ; } } i f ( N . l e n g t h > 1 ) { N . p o p ( ) ; } N . p u s h ( " } " ) ; } r e t u r n   N . j o i n ( " " ) ; } , s u b s t i t u t e : f u n c t i o n ( V , H , O ) { v a r   L , K , J , R , S , U , Q = [ ] , I , M = " d u m p " , P = "   " , G = " { " , T = " } " , N ; f o r ( ; ; ) { L = V . l a s t I n d e x O f ( G ) ; i f ( L < 0 ) { b r e a k ; } K = V . i n d e x O f ( T , L ) ; i f ( L + 1 > = K ) { b r e a k ; } I = V . s u b s t r i n g ( L + 1 , K ) ; R = I ; U = n u l l ; J = R . i n d e x O f ( P ) ; i f ( J > - 1 ) { U = R . s u b s t r i n g ( J + 1 ) ; R = R . s u b s t r i n g ( 0 , J ) ; } S = H [ R ] ; i f ( O ) { S = O ( R , S , U ) ; } i f ( B . i s O b j e c t ( S ) ) { i f ( B . i s A r r a y ( S ) ) { S = B . d u m p ( S , p a r s e I n t ( U , 1 0 ) ) ; } e l s e { U = U | | " " ; N = U . i n d e x O f ( M ) ; i f ( N > - 1 ) { U = U . s u b s t r i n g ( 4 ) ; } i f ( S . t o S t r i n g = = = A . t o S t r i n g | | N > - 1 ) { S = B . d u m p ( S , p a r s e I n t ( U , 1 0 ) ) ; } e l s e { S = S . t o S t r i n g ( ) ; } } } e l s e { i f ( ! B . i s S t r i n g ( S ) & & ! B . i s N u m b e r ( S ) ) { S = " ~ - " + Q . l e n g t h + " - ~ " ; Q [ Q . l e n g t h ] = I ; } } V = V . s u b s t r i n g ( 0 , L ) + S + V . s u b s t r i n g ( K + 1 ) ; } f o r ( L = Q . l e n g t h - 1 ; L > = 0 ; L = L - 1 ) { V = V . r e p l a c e ( n e w   R e g E x p ( " ~ - " + L + " - ~ " ) , " { " + Q [ L ] + " } " , " g " ) ; } r e t u r n   V ; } , t r i m : f u n c t i o n ( G ) { t r y { r e t u r n   G . r e p l a c e ( / ^ \ s + | \ s + $ / g , " " ) ; } c a t c h ( H ) { r e t u r n   G ; } } , m e r g e : f u n c t i o n ( ) { v a r   J = { } , H = a r g u m e n t s , G = H . l e n g t h , I ; f o r ( I = 0 ; I < G ; I = I + 1 ) { B . a u g m e n t O b j e c t ( J , H [ I ] , t r u e ) ; } r e t u r n   J ; } , l a t e r : f u n c t i o n ( N , H , O , J , K ) { N = N | | 0 ; H = H | | { } ; v a r   I = O , M = J , L , G ; i f ( B . i s S t r i n g ( O ) ) { I = H [ O ] ; } i f ( ! I ) { t h r o w   n e w   T y p e E r r o r ( " m e t h o d   u n d e f i n e d " ) ; } i f ( ! B . i s A r r a y ( M ) ) { M = [ J ] ; } L = f u n c t i o n ( ) { I . a p p l y ( H , M ) ; } ; G = ( K ) ? s e t I n t e r v a l ( L , N ) : s e t T i m e o u t ( L , N ) ; r e t u r n { i n t e r v a l : K , c a n c e l : f u n c t i o n ( ) { i f ( t h i s . i n t e r v a l ) { c l e a r I n t e r v a l ( G ) ; } e l s e { c l e a r T i m e o u t ( G ) ; } } } ; } , i s V a l u e : f u n c t i o n ( G ) { r e t u r n ( B . i s O b j e c t ( G ) | | B . i s S t r i n g ( G ) | | B . i s N u m b e r ( G ) | | B . i s B o o l e a n ( G ) ) ; } } ; B . h a s O w n P r o p e r t y = ( A . h a s O w n P r o p e r t y ) ? f u n c t i o n ( G , H ) { r e t u r n   G & & G . h a s O w n P r o p e r t y ( H ) ; } : f u n c t i o n ( G , H ) { r e t u r n   ! B . i s U n d e f i n e d ( G [ H ] ) & & G . c o n s t r u c t o r . p r o t o t y p e [ H ] ! = = G [ H ] ; } ; D . a u g m e n t O b j e c t ( B , D , t r u e ) ; Y A H O O . u t i l . L a n g = B ; B . a u g m e n t = B . a u g m e n t P r o t o ; Y A H O O . a u g m e n t = B . a u g m e n t P r o t o ; Y A H O O . e x t e n d = B . e x t e n d ; } ) ( ) ; Y A H O O . r e g i s t e r ( " y a h o o " , Y A H O O , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ; Y A H O O . u t i l . G e t = f u n c t i o n ( ) { v a r   M = { } , L = 0 , R = 0 , E = f a l s e , N = Y A H O O . e n v . u a , S = Y A H O O . l a n g ; v a r   J = f u n c t i o n ( W , T , X ) { v a r   U = X | | w i n d o w , Y = U . d o c u m e n t , Z = Y . c r e a t e E l e m e n t ( W ) ; f o r ( v a r   V   i n   T ) { i f ( T [ V ] & & Y A H O O . l a n g . h a s O w n P r o p e r t y ( T , V ) ) { Z . s e t A t t r i b u t e ( V , T [ V ] ) ; } } r e t u r n   Z ; } ; v a r   I = f u n c t i o n ( T , U , W ) { v a r   V = W | | " u t f - 8 " ; r e t u r n   J ( " l i n k " , { " i d " : " y u i _ _ d y n _ " + ( R + + ) , " t y p e " : " t e x t / c s s " , " c h a r s e t " : V , " r e l " : " s t y l e s h e e t " , " h r e f " : T } , U ) ;  
 } ; v a r   P = f u n c t i o n ( T , U , W ) { v a r   V = W | | " u t f - 8 " ; r e t u r n   J ( " s c r i p t " , { " i d " : " y u i _ _ d y n _ " + ( R + + ) , " t y p e " : " t e x t / j a v a s c r i p t " , " c h a r s e t " : V , " s r c " : T } , U ) ; } ; v a r   A = f u n c t i o n ( T , U ) { r e t u r n { t I d : T . t I d , w i n : T . w i n , d a t a : T . d a t a , n o d e s : T . n o d e s , m s g : U , p u r g e : f u n c t i o n ( ) { D ( t h i s . t I d ) ; } } ; } ; v a r   B = f u n c t i o n ( T , W ) { v a r   U = M [ W ] , V = ( S . i s S t r i n g ( T ) ) ? U . w i n . d o c u m e n t . g e t E l e m e n t B y I d ( T ) : T ; i f ( ! V ) { Q ( W , " t a r g e t   n o d e   n o t   f o u n d :   " + T ) ; } r e t u r n   V ; } ; v a r   Q = f u n c t i o n ( W , V ) { v a r   T = M [ W ] ; i f ( T . o n F a i l u r e ) { v a r   U = T . s c o p e | | T . w i n ; T . o n F a i l u r e . c a l l ( U , A ( T , V ) ) ; } } ; v a r   C = f u n c t i o n ( W ) { v a r   T = M [ W ] ; T . f i n i s h e d = t r u e ; i f ( T . a b o r t e d ) { v a r   V = " t r a n s a c t i o n   " + W + "   w a s   a b o r t e d " ; Q ( W , V ) ; r e t u r n ; } i f ( T . o n S u c c e s s ) { v a r   U = T . s c o p e | | T . w i n ; T . o n S u c c e s s . c a l l ( U , A ( T ) ) ; } } ; v a r   O = f u n c t i o n ( V ) { v a r   T = M [ V ] ; i f ( T . o n T i m e o u t ) { v a r   U = T . s c o p e | | T ; T . o n T i m e o u t . c a l l ( U , A ( T ) ) ; } } ; v a r   G = f u n c t i o n ( V , Z ) { v a r   U = M [ V ] ; i f ( U . t i m e r ) { U . t i m e r . c a n c e l ( ) ; } i f ( U . a b o r t e d ) { v a r   X = " t r a n s a c t i o n   " + V + "   w a s   a b o r t e d " ; Q ( V , X ) ; r e t u r n ; } i f ( Z ) { U . u r l . s h i f t ( ) ; i f ( U . v a r N a m e ) { U . v a r N a m e . s h i f t ( ) ; } } e l s e { U . u r l = ( S . i s S t r i n g ( U . u r l ) ) ? [ U . u r l ] : U . u r l ; i f ( U . v a r N a m e ) { U . v a r N a m e = ( S . i s S t r i n g ( U . v a r N a m e ) ) ? [ U . v a r N a m e ] : U . v a r N a m e ; } } v a r   c = U . w i n , b = c . d o c u m e n t , a = b . g e t E l e m e n t s B y T a g N a m e ( " h e a d " ) [ 0 ] , W ; i f ( U . u r l . l e n g t h = = = 0 ) { i f ( U . t y p e = = = " s c r i p t " & & N . w e b k i t & & N . w e b k i t < 4 2 0 & & ! U . f i n a l p a s s & & ! U . v a r N a m e ) { v a r   Y = P ( n u l l , U . w i n , U . c h a r s e t ) ; Y . i n n e r H T M L = ' Y A H O O . u t i l . G e t . _ f i n a l i z e ( " ' + V + ' " ) ; ' ; U . n o d e s . p u s h ( Y ) ; a . a p p e n d C h i l d ( Y ) ; } e l s e { C ( V ) ; } r e t u r n ; } v a r   T = U . u r l [ 0 ] ; i f ( ! T ) { U . u r l . s h i f t ( ) ; r e t u r n   G ( V ) ; } i f ( U . t i m e o u t ) { U . t i m e r = S . l a t e r ( U . t i m e o u t , U , O , V ) ; } i f ( U . t y p e = = = " s c r i p t " ) { W = P ( T , c , U . c h a r s e t ) ; } e l s e { W = I ( T , c , U . c h a r s e t ) ; } F ( U . t y p e , W , V , T , c , U . u r l . l e n g t h ) ; U . n o d e s . p u s h ( W ) ; i f ( U . i n s e r t B e f o r e ) { v a r   e = B ( U . i n s e r t B e f o r e , V ) ; i f ( e ) { e . p a r e n t N o d e . i n s e r t B e f o r e ( W , e ) ; } } e l s e { a . a p p e n d C h i l d ( W ) ; } i f ( ( N . w e b k i t | | N . g e c k o ) & & U . t y p e = = = " c s s " ) { G ( V , T ) ; } } ; v a r   K = f u n c t i o n ( ) { i f ( E ) { r e t u r n ; } E = t r u e ; f o r ( v a r   T   i n   M ) { v a r   U = M [ T ] ; i f ( U . a u t o p u r g e & & U . f i n i s h e d ) { D ( U . t I d ) ; d e l e t e   M [ T ] ; } } E = f a l s e ; } ; v a r   D = f u n c t i o n ( a ) { v a r   X = M [ a ] ; i f ( X ) { v a r   Z = X . n o d e s , T = Z . l e n g t h , Y = X . w i n . d o c u m e n t , W = Y . g e t E l e m e n t s B y T a g N a m e ( " h e a d " ) [ 0 ] ; i f ( X . i n s e r t B e f o r e ) { v a r   V = B ( X . i n s e r t B e f o r e , a ) ; i f ( V ) { W = V . p a r e n t N o d e ; } } f o r ( v a r   U = 0 ; U < T ; U = U + 1 ) { W . r e m o v e C h i l d ( Z [ U ] ) ; } X . n o d e s = [ ] ; } } ; v a r   H = f u n c t i o n ( U , T , V ) { v a r   X = " q " + ( L + + ) ; V = V | | { } ; i f ( L % Y A H O O . u t i l . G e t . P U R G E _ T H R E S H = = = 0 ) { K ( ) ; } M [ X ] = S . m e r g e ( V , { t I d : X , t y p e : U , u r l : T , f i n i s h e d : f a l s e , a b o r t e d : f a l s e , n o d e s : [ ] } ) ; v a r   W = M [ X ] ; W . w i n = W . w i n | | w i n d o w ; W . s c o p e = W . s c o p e | | W . w i n ; W . a u t o p u r g e = ( " a u t o p u r g e "   i n   W ) ? W . a u t o p u r g e : ( U = = = " s c r i p t " ) ? t r u e : f a l s e ; S . l a t e r ( 0 , W , G , X ) ; r e t u r n { t I d : X } ; } ; v a r   F = f u n c t i o n ( c , X , W , U , Y , Z , b ) { v a r   a = b | | G ; i f ( N . i e ) { X . o n r e a d y s t a t e c h a n g e = f u n c t i o n ( ) { v a r   d = t h i s . r e a d y S t a t e ; i f ( " l o a d e d " = = = d | | " c o m p l e t e " = = = d ) { X . o n r e a d y s t a t e c h a n g e = n u l l ; a ( W , U ) ; } } ; } e l s e { i f ( N . w e b k i t ) { i f ( c = = = " s c r i p t " ) { i f ( N . w e b k i t > = 4 2 0 ) { X . a d d E v e n t L i s t e n e r ( " l o a d " , f u n c t i o n ( ) { a ( W , U ) ; } ) ; } e l s e { v a r   T = M [ W ] ; i f ( T . v a r N a m e ) { v a r   V = Y A H O O . u t i l . G e t . P O L L _ F R E Q ; T . m a x a t t e m p t s = Y A H O O . u t i l . G e t . T I M E O U T / V ; T . a t t e m p t s = 0 ; T . _ c a c h e = T . v a r N a m e [ 0 ] . s p l i t ( " . " ) ; T . t i m e r = S . l a t e r ( V , T , f u n c t i o n ( j ) { v a r   f = t h i s . _ c a c h e , e = f . l e n g t h , d = t h i s . w i n , g ; f o r ( g = 0 ; g < e ; g = g + 1 ) { d = d [ f [ g ] ] ; i f ( ! d ) { t h i s . a t t e m p t s + + ; i f ( t h i s . a t t e m p t s + + > t h i s . m a x a t t e m p t s ) { v a r   h = " O v e r   r e t r y   l i m i t ,   g i v i n g   u p " ; T . t i m e r . c a n c e l ( ) ; Q ( W , h ) ; } e l s e { } r e t u r n ; } } T . t i m e r . c a n c e l ( ) ; a ( W , U ) ; } , n u l l , t r u e ) ; } e l s e { S . l a t e r ( Y A H O O . u t i l . G e t . P O L L _ F R E Q , n u l l , a , [ W , U ] ) ; } } } } e l s e { X . o n l o a d = f u n c t i o n ( ) { a ( W , U ) ; } ; } } } ; r e t u r n { P O L L _ F R E Q : 1 0 , P U R G E _ T H R E S H : 2 0 , T I M E O U T : 2 0 0 0 , _ f i n a l i z e : f u n c t i o n ( T ) { S . l a t e r ( 0 , n u l l , C , T ) ; } , a b o r t : f u n c t i o n ( U ) { v a r   V = ( S . i s S t r i n g ( U ) ) ? U : U . t I d ; v a r   T = M [ V ] ; i f ( T ) { T . a b o r t e d = t r u e ; } } , s c r i p t : f u n c t i o n ( T , U ) { r e t u r n   H ( " s c r i p t " , T , U ) ; } , c s s : f u n c t i o n ( T , U ) { r e t u r n   H ( " c s s " , T , U ) ; } } ; } ( ) ; Y A H O O . r e g i s t e r ( " g e t " , Y A H O O . u t i l . G e t , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ; ( f u n c t i o n ( ) { v a r   Y = Y A H O O , u t i l = Y . u t i l , l a n g = Y . l a n g , e n v = Y . e n v , P R O V = " _ p r o v i d e s " , S U P E R = " _ s u p e r s e d e s " , R E Q = " e x p a n d e d " , A F T E R = " _ a f t e r " ; v a r   Y U I = { d u p s A l l o w e d : { " y a h o o " : t r u e , " g e t " : t r u e } , i n f o : { " r o o t " : " 2 . 7 . 0 / b u i l d / " , " b a s e " : " h t t p : / / y u i . y a h o o a p i s . c o m / 2 . 7 . 0 / b u i l d / " , " c o m b o B a s e " : " h t t p : / / y u i . y a h o o a p i s . c o m / c o m b o ? " , " s k i n " : { " d e f a u l t S k i n " : " s a m " , " b a s e " : " a s s e t s / s k i n s / " , " p a t h " : " s k i n . c s s " , " a f t e r " : [ " r e s e t " , " f o n t s " , " g r i d s " , " b a s e " ] , " r o l l u p " : 3 } , d u p s A l l o w e d : [ " y a h o o " , " g e t " ] , " m o d u l e I n f o " : { " a n i m a t i o n " : { " t y p e " : " j s " , " p a t h " : " a n i m a t i o n / a n i m a t i o n - m i n . j s " , " r e q u i r e s " : [ " d o m " , " e v e n t " ] } , " a u t o c o m p l e t e " : { " t y p e " : " j s " , " p a t h " : " a u t o c o m p l e t e / a u t o c o m p l e t e - m i n . j s " , " r e q u i r e s " : [ " d o m " , " e v e n t " , " d a t a s o u r c e " ] , " o p t i o n a l " : [ " c o n n e c t i o n " , " a n i m a t i o n " ] , " s k i n n a b l e " : t r u e } , " b a s e " : { " t y p e " : " c s s " , " p a t h " : " b a s e / b a s e - m i n . c s s " , " a f t e r " : [ " r e s e t " , " f o n t s " , " g r i d s " ] } , " b u t t o n " : { " t y p e " : " j s " , " p a t h " : " b u t t o n / b u t t o n - m i n . j s " , " r e q u i r e s " : [ " e l e m e n t " ] , " o p t i o n a l " : [ " m e n u " ] , " s k i n n a b l e " : t r u e } , " c a l e n d a r " : { " t y p e " : " j s " , " p a t h " : " c a l e n d a r / c a l e n d a r - m i n . j s " , " r e q u i r e s " : [ " e v e n t " , " d o m " ] , " s k i n n a b l e " : t r u e } , " c a r o u s e l " : { " t y p e " : " j s " , " p a t h " : " c a r o u s e l / c a r o u s e l - m i n . j s " , " r e q u i r e s " : [ " e l e m e n t " ] , " o p t i o n a l " : [ " a n i m a t i o n " ] , " s k i n n a b l e " : t r u e } , " c h a r t s " : { " t y p e " : " j s " , " p a t h " : " c h a r t s / c h a r t s - m i n . j s " , " r e q u i r e s " : [ " e l e m e n t " , " j s o n " , " d a t a s o u r c e " ] } , " c o l o r p i c k e r " : { " t y p e " : " j s " , " p a t h " : " c o l o r p i c k e r / c o l o r p i c k e r - m i n . j s " , " r e q u i r e s " : [ " s l i d e r " , " e l e m e n t " ] , " o p t i o n a l " : [ " a n i m a t i o n " ] , " s k i n n a b l e " : t r u e } , " c o n n e c t i o n " : { " t y p e " : " j s " , " p a t h " : " c o n n e c t i o n / c o n n e c t i o n - m i n . j s " , " r e q u i r e s " : [ " e v e n t " ] } , " c o n t a i n e r " : { " t y p e " : " j s " , " p a t h " : " c o n t a i n e r / c o n t a i n e r - m i n . j s " , " r e q u i r e s " : [ " d o m " , " e v e n t " ] , " o p t i o n a l " : [ " d r a g d r o p " , " a n i m a t i o n " , " c o n n e c t i o n " ] , " s u p e r s e d e s " : [ " c o n t a i n e r c o r e " ] , " s k i n n a b l e " : t r u e } , " c o n t a i n e r c o r e " : { " t y p e " : " j s " , " p a t h " : " c o n t a i n e r / c o n t a i n e r _ c o r e - m i n . j s " , " r e q u i r e s " : [ " d o m " , " e v e n t " ] , " p k g " : " c o n t a i n e r " } , " c o o k i e " : { " t y p e " : " j s " , " p a t h " : " c o o k i e / c o o k i e - m i n . j s " , " r e q u i r e s " : [ " y a h o o " ] } , " d a t a s o u r c e " : { " t y p e " : " j s " , " p a t h " : " d a t a s o u r c e / d a t a s o u r c e - m i n . j s " , " r e q u i r e s " : [ " e v e n t " ] , " o p t i o n a l " : [ " c o n n e c t i o n " ] } , " d a t a t a b l e " : { " t y p e " : " j s " , " p a t h " : " d a t a t a b l e / d a t a t a b l e - m i n . j s " , " r e q u i r e s " : [ " e l e m e n t " , " d a t a s o u r c e " ] , " o p t i o n a l " : [ " c a l e n d a r " , " d r a g d r o p " , " p a g i n a t o r " ] , " s k i n n a b l e " : t r u e } , " d o m " : { " t y p e " : " j s " , " p a t h " : " d o m / d o m - m i n . j s " , " r e q u i r e s " : [ " y a h o o " ] } , " d r a g d r o p " : { " t y p e " : " j s " , " p a t h " : " d r a g d r o p / d r a g d r o p - m i n . j s " , " r e q u i r e s " : [ " d o m " , " e v e n t " ] } , " e d i t o r " : { " t y p e " : " j s " , " p a t h " : " e d i t o r / e d i t o r - m i n . j s " , " r e q u i r e s " : [ " m e n u " , " e l e m e n t " , " b u t t o n " ] , " o p t i o n a l " : [ " a n i m a t i o n " , " d r a g d r o p " ] , " s u p e r s e d e s " : [ " s i m p l e e d i t o r " ] , " s k i n n a b l e " : t r u e } , " e l e m e n t " : { " t y p e " : " j s " , " p a t h " : " e l e m e n t / e l e m e n t - m i n . j s " , " r e q u i r e s " : [ " d o m " , " e v e n t " ] } , " e v e n t " : { " t y p e " : " j s " , " p a t h " : " e v e n t / e v e n t - m i n . j s " , " r e q u i r e s " : [ " y a h o o " ] } , " f o n t s " : { " t y p e " : " c s s " , " p a t h " : " f o n t s / f o n t s - m i n . c s s " } , " g e t " : { " t y p e " : " j s " , " p a t h " : " g e t / g e t - m i n . j s " , " r e q u i r e s " : [ " y a h o o " ] } , " g r i d s " : { " t y p e " : " c s s " , " p a t h " : " g r i d s / g r i d s - m i n . c s s " , " r e q u i r e s " : [ " f o n t s " ] , " o p t i o n a l " : [ " r e s e t " ] } , " h i s t o r y " : { " t y p e " : " j s " , " p a t h " : " h i s t o r y / h i s t o r y - m i n . j s " , " r e q u i r e s " : [ " e v e n t " ] } , " i m a g e c r o p p e r " : { " t y p e " : " j s " , " p a t h " : " i m a g e c r o p p e r / i m a g e c r o p p e r - m i n . j s " , " r e q u i r e s " : [ " d o m " , " e v e n t " , " d r a g d r o p " , " e l e m e n t " , " r e s i z e " ] , " s k i n n a b l e " : t r u e } , " i m a g e l o a d e r " : { " t y p e " : " j s " , " p a t h " : " i m a g e l o a d e r / i m a g e l o a d e r - m i n . j s " , " r e q u i r e s " : [ " e v e n t " , " d o m " ] } , " j s o n " : { " t y p e " : " j s " , " p a t h " : " j s o n / j s o n - m i n . j s " , " r e q u i r e s " : [ " y a h o o " ] } , " l a y o u t " : { " t y p e " : " j s " , " p a t h " : " l a y o u t / l a y o u t - m i n . j s " , " r e q u i r e s " : [ " d o m " , " e v e n t " , " e l e m e n t " ] , " o p t i o n a l " : [ " a n i m a t i o n " , " d r a g d r o p " , " r e s i z e " , " s e l e c t o r " ] , " s k i n n a b l e " : t r u e } , " l o g g e r " : { " t y p e " : " j s " , " p a t h " : " l o g g e r / l o g g e r - m i n . j s " , " r e q u i r e s " : [ " e v e n t " , " d o m " ] , " o p t i o n a l " : [ " d r a g d r o p " ] , " s k i n n a b l e " : t r u e } , " m e n u " : { " t y p e " : " j s " , " p a t h " : " m e n u / m e n u - m i n . j s " , " r e q u i r e s " : [ " c o n t a i n e r c o r e " ] , " s k i n n a b l e " : t r u e } , " p a g i n a t o r " : { " t y p e " : " j s " , " p a t h " : " p a g i n a t o r / p a g i n a t o r - m i n . j s " , " r e q u i r e s " : [ " e l e m e n t " ] , " s k i n n a b l e " : t r u e } , " p r o f i l e r " : { " t y p e " : " j s " , " p a t h " : " p r o f i l e r / p r o f i l e r - m i n . j s " , " r e q u i r e s " : [ " y a h o o " ] } , " p r o f i l e r v i e w e r " : { " t y p e " : " j s " , " p a t h " : " p r o f i l e r v i e w e r / p r o f i l e r v i e w e r - m i n . j s " , " r e q u i r e s " : [ " p r o f i l e r " , " y u i l o a d e r " , " e l e m e n t " ] , " s k i n n a b l e " : t r u e } , " r e s e t " : { " t y p e " : " c s s " , " p a t h " : " r e s e t / r e s e t - m i n . c s s " } , " r e s e t - f o n t s - g r i d s " : { " t y p e " : " c s s " , " p a t h " : " r e s e t - f o n t s - g r i d s / r e s e t - f o n t s - g r i d s . c s s " , " s u p e r s e d e s " : [ " r e s e t " , " f o n t s " , " g r i d s " , " r e s e t - f o n t s " ] , " r o l l u p " : 4 } , " r e s e t - f o n t s " : { " t y p e " : " c s s " , " p a t h " : " r e s e t - f o n t s / r e s e t - f o n t s . c s s " , " s u p e r s e d e s " : [ " r e s e t " , " f o n t s " ] , " r o l l u p " : 2 } , " r e s i z e " : { " t y p e " : " j s " , " p a t h " : " r e s i z e / r e s i z e - m i n . j s " , " r e q u i r e s " : [ " d o m " , " e v e n t " , " d r a g d r o p " , " e l e m e n t " ] , " o p t i o n a l " : [ " a n i m a t i o n " ] , " s k i n n a b l e " : t r u e } , " s e l e c t o r " : { " t y p e " : " j s " , " p a t h " : " s e l e c t o r / s e l e c t o r - m i n . j s " , " r e q u i r e s " : [ " y a h o o " , " d o m " ] } , " s i m p l e e d i t o r " : { " t y p e " : " j s " , " p a t h " : " e d i t o r / s i m p l e e d i t o r - m i n . j s " , " r e q u i r e s " : [ " e l e m e n t " ] , " o p t i o n a l " : [ " c o n t a i n e r c o r e " , " m e n u " , " b u t t o n " , " a n i m a t i o n " , " d r a g d r o p " ] , " s k i n n a b l e " : t r u e , " p k g " : " e d i t o r " } , " s l i d e r " : { " t y p e " : " j s " , " p a t h " : " s l i d e r / s l i d e r - m i n . j s " , " r e q u i r e s " : [ " d r a g d r o p " ] , " o p t i o n a l " : [ " a n i m a t i o n " ] , " s k i n n a b l e " : t r u e } , " s t y l e s h e e t " : { " t y p e " : " j s " , " p a t h " : " s t y l e s h e e t / s t y l e s h e e t - m i n . j s " , " r e q u i r e s " : [ " y a h o o " ] } , " t a b v i e w " : { " t y p e " : " j s " , " p a t h " : " t a b v i e w / t a b v i e w - m i n . j s " , " r e q u i r e s " : [ " e l e m e n t " ] , " o p t i o n a l " : [ " c o n n e c t i o n " ] , " s k i n n a b l e " : t r u e } , " t r e e v i e w " : { " t y p e " : " j s " , " p a t h " : " t r e e v i e w / t r e e v i e w - m i n . j s " , " r e q u i r e s " : [ " e v e n t " , " d o m " ] , " o p t i o n a l " : [ " j s o n " ] , " s k i n n a b l e " : t r u e } , " u p l o a d e r " : { " t y p e " : " j s " , " p a t h " : " u p l o a d e r / u p l o a d e r . j s " , " r e q u i r e s " : [ " e l e m e n t " ] } , " u t i l i t i e s " : { " t y p e " : " j s " , " p a t h " : " u t i l i t i e s / u t i l i t i e s . j s " , " s u p e r s e d e s " : [ " y a h o o " , " e v e n t " , " d r a g d r o p " , " a n i m a t i o n " , " d o m " , " c o n n e c t i o n " , " e l e m e n t " , " y a h o o - d o m - e v e n t " , " g e t " , " y u i l o a d e r " , " y u i l o a d e r - d o m - e v e n t " ] , " r o l l u p " : 8 } , " y a h o o " : { " t y p e " : " j s " , " p a t h " : " y a h o o / y a h o o - m i n . j s " } , " y a h o o - d o m - e v e n t " : { " t y p e " : " j s " , " p a t h " : " y a h o o - d o m - e v e n t / y a h o o - d o m - e v e n t . j s " , " s u p e r s e d e s " : [ " y a h o o " , " e v e n t " , " d o m " ] , " r o l l u p " : 3 } , " y u i l o a d e r " : { " t y p e " : " j s " , " p a t h " : " y u i l o a d e r / y u i l o a d e r - m i n . j s " , " s u p e r s e d e s " : [ " y a h o o " , " g e t " ] } , " y u i l o a d e r - d o m - e v e n t " : { " t y p e " : " j s " , " p a t h " : " y u i l o a d e r - d o m - e v e n t / y u i l o a d e r - d o m - e v e n t . j s " , " s u p e r s e d e s " : [ " y a h o o " , " d o m " , " e v e n t " , " g e t " , " y u i l o a d e r " , " y a h o o - d o m - e v e n t " ] , " r o l l u p " : 5 } , " y u i t e s t " : { " t y p e " : " j s " , " p a t h " : " y u i t e s t / y u i t e s t - m i n . j s " , " r e q u i r e s " : [ " l o g g e r " ] , " s k i n n a b l e " : t r u e } } } , O b j e c t U t i l : { a p p e n d A r r a y : f u n c t i o n ( o , a ) { i f ( a ) { f o r ( v a r   i = 0 ;  
 i < a . l e n g t h ; i = i + 1 ) { o [ a [ i ] ] = t r u e ; } } } , k e y s : f u n c t i o n ( o , o r d e r e d ) { v a r   a = [ ] , i ; f o r ( i   i n   o ) { i f ( l a n g . h a s O w n P r o p e r t y ( o , i ) ) { a . p u s h ( i ) ; } } r e t u r n   a ; } } , A r r a y U t i l : { a p p e n d A r r a y : f u n c t i o n ( a 1 , a 2 ) { A r r a y . p r o t o t y p e . p u s h . a p p l y ( a 1 , a 2 ) ; } , i n d e x O f : f u n c t i o n ( a , v a l ) { f o r ( v a r   i = 0 ; i < a . l e n g t h ; i = i + 1 ) { i f ( a [ i ] = = = v a l ) { r e t u r n   i ; } } r e t u r n   - 1 ; } , t o O b j e c t : f u n c t i o n ( a ) { v a r   o = { } ; f o r ( v a r   i = 0 ; i < a . l e n g t h ; i = i + 1 ) { o [ a [ i ] ] = t r u e ; } r e t u r n   o ; } , u n i q : f u n c t i o n ( a ) { r e t u r n   Y U I . O b j e c t U t i l . k e y s ( Y U I . A r r a y U t i l . t o O b j e c t ( a ) ) ; } } } ; Y A H O O . u t i l . Y U I L o a d e r = f u n c t i o n ( o ) { t h i s . _ i n t e r n a l C a l l b a c k = n u l l ; t h i s . _ u s e Y a h o o L i s t e n e r = f a l s e ; t h i s . o n S u c c e s s = n u l l ; t h i s . o n F a i l u r e = Y . l o g ; t h i s . o n P r o g r e s s = n u l l ; t h i s . o n T i m e o u t = n u l l ; t h i s . s c o p e = t h i s ; t h i s . d a t a = n u l l ; t h i s . i n s e r t B e f o r e = n u l l ; t h i s . c h a r s e t = n u l l ; t h i s . v a r N a m e = n u l l ; t h i s . b a s e = Y U I . i n f o . b a s e ; t h i s . c o m b o B a s e = Y U I . i n f o . c o m b o B a s e ; t h i s . c o m b i n e = f a l s e ; t h i s . r o o t = Y U I . i n f o . r o o t ; t h i s . t i m e o u t = 0 ; t h i s . i g n o r e = n u l l ; t h i s . f o r c e = n u l l ; t h i s . a l l o w R o l l u p = t r u e ; t h i s . f i l t e r = n u l l ; t h i s . r e q u i r e d = { } ; t h i s . m o d u l e I n f o = l a n g . m e r g e ( Y U I . i n f o . m o d u l e I n f o ) ; t h i s . r o l l u p s = n u l l ; t h i s . l o a d O p t i o n a l = f a l s e ; t h i s . s o r t e d = [ ] ; t h i s . l o a d e d = { } ; t h i s . d i r t y = t r u e ; t h i s . i n s e r t e d = { } ; v a r   s e l f = t h i s ; e n v . l i s t e n e r s . p u s h ( f u n c t i o n ( m ) { i f ( s e l f . _ u s e Y a h o o L i s t e n e r ) { s e l f . l o a d N e x t ( m . n a m e ) ; } } ) ; t h i s . s k i n = l a n g . m e r g e ( Y U I . i n f o . s k i n ) ; t h i s . _ c o n f i g ( o ) ; } ; Y . u t i l . Y U I L o a d e r . p r o t o t y p e = { F I L T E R S : { R A W : { " s e a r c h E x p " : " - m i n \ \ . j s " , " r e p l a c e S t r " : " . j s " } , D E B U G : { " s e a r c h E x p " : " - m i n \ \ . j s " , " r e p l a c e S t r " : " - d e b u g . j s " } } , S K I N _ P R E F I X : " s k i n - " , _ c o n f i g : f u n c t i o n ( o ) { i f ( o ) { f o r ( v a r   i   i n   o ) { i f ( l a n g . h a s O w n P r o p e r t y ( o , i ) ) { i f ( i = = " r e q u i r e " ) { t h i s . r e q u i r e ( o [ i ] ) ; } e l s e { t h i s [ i ] = o [ i ] ; } } } } v a r   f = t h i s . f i l t e r ; i f ( l a n g . i s S t r i n g ( f ) ) { f = f . t o U p p e r C a s e ( ) ; i f ( f = = = " D E B U G " ) { t h i s . r e q u i r e ( " l o g g e r " ) ; } i f ( ! Y . w i d g e t . L o g W r i t e r ) { Y . w i d g e t . L o g W r i t e r = f u n c t i o n ( ) { r e t u r n   Y ; } ; } t h i s . f i l t e r = t h i s . F I L T E R S [ f ] ; } } , a d d M o d u l e : f u n c t i o n ( o ) { i f ( ! o | | ! o . n a m e | | ! o . t y p e | | ( ! o . p a t h & & ! o . f u l l p a t h ) ) { r e t u r n   f a l s e ; } o . e x t = ( " e x t "   i n   o ) ? o . e x t : t r u e ; o . r e q u i r e s = o . r e q u i r e s | | [ ] ; t h i s . m o d u l e I n f o [ o . n a m e ] = o ; t h i s . d i r t y = t r u e ; r e t u r n   t r u e ; } , r e q u i r e : f u n c t i o n ( w h a t ) { v a r   a = ( t y p e o f   w h a t = = = " s t r i n g " ) ? a r g u m e n t s : w h a t ; t h i s . d i r t y = t r u e ; Y U I . O b j e c t U t i l . a p p e n d A r r a y ( t h i s . r e q u i r e d , a ) ; } , _ a d d S k i n : f u n c t i o n ( s k i n , m o d ) { v a r   n a m e = t h i s . f o r m a t S k i n ( s k i n ) , i n f o = t h i s . m o d u l e I n f o , s i n f = t h i s . s k i n , e x t = i n f o [ m o d ] & & i n f o [ m o d ] . e x t ; i f ( ! i n f o [ n a m e ] ) { t h i s . a d d M o d u l e ( { " n a m e " : n a m e , " t y p e " : " c s s " , " p a t h " : s i n f . b a s e + s k i n + " / " + s i n f . p a t h , " a f t e r " : s i n f . a f t e r , " r o l l u p " : s i n f . r o l l u p , " e x t " : e x t } ) ; } i f ( m o d ) { n a m e = t h i s . f o r m a t S k i n ( s k i n , m o d ) ; i f ( ! i n f o [ n a m e ] ) { v a r   m d e f = i n f o [ m o d ] , p k g = m d e f . p k g | | m o d ; t h i s . a d d M o d u l e ( { " n a m e " : n a m e , " t y p e " : " c s s " , " a f t e r " : s i n f . a f t e r , " p a t h " : p k g + " / " + s i n f . b a s e + s k i n + " / " + m o d + " . c s s " , " e x t " : e x t } ) ; } } r e t u r n   n a m e ; } , g e t R e q u i r e s : f u n c t i o n ( m o d ) { i f ( ! m o d ) { r e t u r n [ ] ; } i f ( ! t h i s . d i r t y & & m o d . e x p a n d e d ) { r e t u r n   m o d . e x p a n d e d ; } m o d . r e q u i r e s = m o d . r e q u i r e s | | [ ] ; v a r   i , d = [ ] , r = m o d . r e q u i r e s , o = m o d . o p t i o n a l , i n f o = t h i s . m o d u l e I n f o , m ; f o r ( i = 0 ; i < r . l e n g t h ; i = i + 1 ) { d . p u s h ( r [ i ] ) ; m = i n f o [ r [ i ] ] ; Y U I . A r r a y U t i l . a p p e n d A r r a y ( d , t h i s . g e t R e q u i r e s ( m ) ) ; } i f ( o & & t h i s . l o a d O p t i o n a l ) { f o r ( i = 0 ; i < o . l e n g t h ; i = i + 1 ) { d . p u s h ( o [ i ] ) ; Y U I . A r r a y U t i l . a p p e n d A r r a y ( d , t h i s . g e t R e q u i r e s ( i n f o [ o [ i ] ] ) ) ; } } m o d . e x p a n d e d = Y U I . A r r a y U t i l . u n i q ( d ) ; r e t u r n   m o d . e x p a n d e d ; } , g e t P r o v i d e s : f u n c t i o n ( n a m e , n o t M e ) { v a r   a d d M e = ! ( n o t M e ) , c k e y = ( a d d M e ) ? P R O V : S U P E R , m = t h i s . m o d u l e I n f o [ n a m e ] , o = { } ; i f ( ! m ) { r e t u r n   o ; } i f ( m [ c k e y ] ) { r e t u r n   m [ c k e y ] ; } v a r   s = m . s u p e r s e d e s , d o n e = { } , m e = t h i s ; v a r   a d d = f u n c t i o n ( m m ) { i f ( ! d o n e [ m m ] ) { d o n e [ m m ] = t r u e ; l a n g . a u g m e n t O b j e c t ( o , m e . g e t P r o v i d e s ( m m ) ) ; } } ; i f ( s ) { f o r ( v a r   i = 0 ; i < s . l e n g t h ; i = i + 1 ) { a d d ( s [ i ] ) ; } } m [ S U P E R ] = o ; m [ P R O V ] = l a n g . m e r g e ( o ) ; m [ P R O V ] [ n a m e ] = t r u e ; r e t u r n   m [ c k e y ] ; } , c a l c u l a t e : f u n c t i o n ( o ) { i f ( o | | t h i s . d i r t y ) { t h i s . _ c o n f i g ( o ) ; t h i s . _ s e t u p ( ) ; t h i s . _ e x p l o d e ( ) ; i f ( t h i s . a l l o w R o l l u p ) { t h i s . _ r o l l u p ( ) ; } t h i s . _ r e d u c e ( ) ; t h i s . _ s o r t ( ) ; t h i s . d i r t y = f a l s e ; } } , _ s e t u p : f u n c t i o n ( ) { v a r   i n f o = t h i s . m o d u l e I n f o , n a m e , i , j ; f o r ( n a m e   i n   i n f o ) { i f ( l a n g . h a s O w n P r o p e r t y ( i n f o , n a m e ) ) { v a r   m = i n f o [ n a m e ] ; i f ( m & & m . s k i n n a b l e ) { v a r   o = t h i s . s k i n . o v e r r i d e s , s m o d ; i f ( o & & o [ n a m e ] ) { f o r ( i = 0 ; i < o [ n a m e ] . l e n g t h ; i = i + 1 ) { s m o d = t h i s . _ a d d S k i n ( o [ n a m e ] [ i ] , n a m e ) ; } } e l s e { s m o d = t h i s . _ a d d S k i n ( t h i s . s k i n . d e f a u l t S k i n , n a m e ) ; } m . r e q u i r e s . p u s h ( s m o d ) ; } } } v a r   l = l a n g . m e r g e ( t h i s . i n s e r t e d ) ; i f ( ! t h i s . _ s a n d b o x ) { l = l a n g . m e r g e ( l , e n v . m o d u l e s ) ; } i f ( t h i s . i g n o r e ) { Y U I . O b j e c t U t i l . a p p e n d A r r a y ( l , t h i s . i g n o r e ) ; } i f ( t h i s . f o r c e ) { f o r ( i = 0 ; i < t h i s . f o r c e . l e n g t h ; i = i + 1 ) { i f ( t h i s . f o r c e [ i ]   i n   l ) { d e l e t e   l [ t h i s . f o r c e [ i ] ] ; } } } f o r ( j   i n   l ) { i f ( l a n g . h a s O w n P r o p e r t y ( l , j ) ) { l a n g . a u g m e n t O b j e c t ( l , t h i s . g e t P r o v i d e s ( j ) ) ; } } t h i s . l o a d e d = l ; } , _ e x p l o d e : f u n c t i o n ( ) { v a r   r = t h i s . r e q u i r e d , i , m o d ; f o r ( i   i n   r ) { i f ( l a n g . h a s O w n P r o p e r t y ( r , i ) ) { m o d = t h i s . m o d u l e I n f o [ i ] ; i f ( m o d ) { v a r   r e q = t h i s . g e t R e q u i r e s ( m o d ) ; i f ( r e q ) { Y U I . O b j e c t U t i l . a p p e n d A r r a y ( r , r e q ) ; } } } } } , _ s k i n : f u n c t i o n ( ) { } , f o r m a t S k i n : f u n c t i o n ( s k i n , m o d ) { v a r   s = t h i s . S K I N _ P R E F I X + s k i n ; i f ( m o d ) { s = s + " - " + m o d ; } r e t u r n   s ; } , p a r s e S k i n : f u n c t i o n ( m o d ) { i f ( m o d . i n d e x O f ( t h i s . S K I N _ P R E F I X ) = = = 0 ) { v a r   a = m o d . s p l i t ( " - " ) ; r e t u r n { s k i n : a [ 1 ] , m o d u l e : a [ 2 ] } ; } r e t u r n   n u l l ; } , _ r o l l u p : f u n c t i o n ( ) { v a r   i , j , m , s , r o l l u p s = { } , r = t h i s . r e q u i r e d , r o l l , i n f o = t h i s . m o d u l e I n f o ; i f ( t h i s . d i r t y | | ! t h i s . r o l l u p s ) { f o r ( i   i n   i n f o ) { i f ( l a n g . h a s O w n P r o p e r t y ( i n f o , i ) ) { m = i n f o [ i ] ; i f ( m & & m . r o l l u p ) { r o l l u p s [ i ] = m ; } } } t h i s . r o l l u p s = r o l l u p s ; } f o r ( ; ; ) { v a r   r o l l e d = f a l s e ; f o r ( i   i n   r o l l u p s ) { i f ( ! r [ i ] & & ! t h i s . l o a d e d [ i ] ) { m = i n f o [ i ] ; s = m . s u p e r s e d e s ; r o l l = f a l s e ; i f ( ! m . r o l l u p ) { c o n t i n u e ; } v a r   s k i n = ( m . e x t ) ? f a l s e : t h i s . p a r s e S k i n ( i ) , c = 0 ; i f ( s k i n ) { f o r ( j   i n   r ) { i f ( l a n g . h a s O w n P r o p e r t y ( r , j ) ) { i f ( i ! = = j & & t h i s . p a r s e S k i n ( j ) ) { c + + ; r o l l = ( c > = m . r o l l u p ) ; i f ( r o l l ) { b r e a k ; } } } } } e l s e { f o r ( j = 0 ; j < s . l e n g t h ; j = j + 1 ) { i f ( t h i s . l o a d e d [ s [ j ] ] & & ( ! Y U I . d u p s A l l o w e d [ s [ j ] ] ) ) { r o l l = f a l s e ; b r e a k ; } e l s e { i f ( r [ s [ j ] ] ) { c + + ; r o l l = ( c > = m . r o l l u p ) ; i f ( r o l l ) { b r e a k ; } } } } } i f ( r o l l ) { r [ i ] = t r u e ; r o l l e d = t r u e ; t h i s . g e t R e q u i r e s ( m ) ; } } } i f ( ! r o l l e d ) { b r e a k ; } } } , _ r e d u c e : f u n c t i o n ( ) { v a r   i , j , s , m , r = t h i s . r e q u i r e d ; f o r ( i   i n   r ) { i f ( i   i n   t h i s . l o a d e d ) { d e l e t e   r [ i ] ; } e l s e { v a r   s k i n D e f = t h i s . p a r s e S k i n ( i ) ; i f ( s k i n D e f ) { i f ( ! s k i n D e f . m o d u l e ) { v a r   s k i n _ p r e = t h i s . S K I N _ P R E F I X + s k i n D e f . s k i n ; f o r ( j   i n   r ) { i f ( l a n g . h a s O w n P r o p e r t y ( r , j ) ) { m = t h i s . m o d u l e I n f o [ j ] ; v a r   e x t = m & & m . e x t ; i f ( ! e x t & & j ! = = i & & j . i n d e x O f ( s k i n _ p r e ) > - 1 ) { d e l e t e   r [ j ] ; } } } } } e l s e { m = t h i s . m o d u l e I n f o [ i ] ; s = m & & m . s u p e r s e d e s ; i f ( s ) { f o r ( j = 0 ; j < s . l e n g t h ; j = j + 1 ) { i f ( s [ j ]   i n   r ) { d e l e t e   r [ s [ j ] ] ; } } } } } } } , _ o n F a i l u r e : f u n c t i o n ( m s g ) { Y A H O O . l o g ( " F a i l u r e " , " i n f o " , " l o a d e r " ) ; v a r   f = t h i s . o n F a i l u r e ; i f ( f ) { f . c a l l ( t h i s . s c o p e , { m s g : " f a i l u r e :   " + m s g , d a t a : t h i s . d a t a , s u c c e s s : f a l s e } ) ;  
 } } , _ o n T i m e o u t : f u n c t i o n ( ) { Y A H O O . l o g ( " T i m e o u t " , " i n f o " , " l o a d e r " ) ; v a r   f = t h i s . o n T i m e o u t ; i f ( f ) { f . c a l l ( t h i s . s c o p e , { m s g : " t i m e o u t " , d a t a : t h i s . d a t a , s u c c e s s : f a l s e } ) ; } } , _ s o r t : f u n c t i o n ( ) { v a r   s = [ ] , i n f o = t h i s . m o d u l e I n f o , l o a d e d = t h i s . l o a d e d , c h e c k O p t i o n a l = ! t h i s . l o a d O p t i o n a l , m e = t h i s ; v a r   r e q u i r e s = f u n c t i o n ( a a , b b ) { v a r   m m = i n f o [ a a ] ; i f ( l o a d e d [ b b ] | | ! m m ) { r e t u r n   f a l s e ; } v a r   i i , r r = m m . e x p a n d e d , a f t e r = m m . a f t e r , o t h e r = i n f o [ b b ] , o p t i o n a l = m m . o p t i o n a l ; i f ( r r & & Y U I . A r r a y U t i l . i n d e x O f ( r r , b b ) > - 1 ) { r e t u r n   t r u e ; } i f ( a f t e r & & Y U I . A r r a y U t i l . i n d e x O f ( a f t e r , b b ) > - 1 ) { r e t u r n   t r u e ; } i f ( c h e c k O p t i o n a l & & o p t i o n a l & & Y U I . A r r a y U t i l . i n d e x O f ( o p t i o n a l , b b ) > - 1 ) { r e t u r n   t r u e ; } v a r   s s = i n f o [ b b ] & & i n f o [ b b ] . s u p e r s e d e s ; i f ( s s ) { f o r ( i i = 0 ; i i < s s . l e n g t h ; i i = i i + 1 ) { i f ( r e q u i r e s ( a a , s s [ i i ] ) ) { r e t u r n   t r u e ; } } } i f ( m m . e x t & & m m . t y p e = = " c s s " & & ! o t h e r . e x t & & o t h e r . t y p e = = " c s s " ) { r e t u r n   t r u e ; } r e t u r n   f a l s e ; } ; f o r ( v a r   i   i n   t h i s . r e q u i r e d ) { i f ( l a n g . h a s O w n P r o p e r t y ( t h i s . r e q u i r e d , i ) ) { s . p u s h ( i ) ; } } v a r   p = 0 ; f o r ( ; ; ) { v a r   l = s . l e n g t h , a , b , j , k , m o v e d = f a l s e ; f o r ( j = p ; j < l ; j = j + 1 ) { a = s [ j ] ; f o r ( k = j + 1 ; k < l ; k = k + 1 ) { i f ( r e q u i r e s ( a , s [ k ] ) ) { b = s . s p l i c e ( k , 1 ) ; s . s p l i c e ( j , 0 , b [ 0 ] ) ; m o v e d = t r u e ; b r e a k ; } } i f ( m o v e d ) { b r e a k ; } e l s e { p = p + 1 ; } } i f ( ! m o v e d ) { b r e a k ; } } t h i s . s o r t e d = s ; } , t o S t r i n g : f u n c t i o n ( ) { v a r   o = { t y p e : " Y U I L o a d e r " , b a s e : t h i s . b a s e , f i l t e r : t h i s . f i l t e r , r e q u i r e d : t h i s . r e q u i r e d , l o a d e d : t h i s . l o a d e d , i n s e r t e d : t h i s . i n s e r t e d } ; l a n g . d u m p ( o , 1 ) ; } , _ c o m b i n e : f u n c t i o n ( ) { t h i s . _ c o m b i n i n g = [ ] ; v a r   s e l f = t h i s , s = t h i s . s o r t e d , l e n = s . l e n g t h , j s = t h i s . c o m b o B a s e , c s s = t h i s . c o m b o B a s e , t a r g e t , s t a r t L e n = j s . l e n g t h , i , m , t y p e = t h i s . l o a d T y p e ; Y A H O O . l o g ( " t y p e   " + t y p e ) ; f o r ( i = 0 ; i < l e n ; i = i + 1 ) { m = t h i s . m o d u l e I n f o [ s [ i ] ] ; i f ( m & & ! m . e x t & & ( ! t y p e | | t y p e = = = m . t y p e ) ) { t a r g e t = t h i s . r o o t + m . p a t h ; t a r g e t + = " & " ; i f ( m . t y p e = = " j s " ) { j s + = t a r g e t ; } e l s e { c s s + = t a r g e t ; } t h i s . _ c o m b i n i n g . p u s h ( s [ i ] ) ; } } i f ( t h i s . _ c o m b i n i n g . l e n g t h ) { Y A H O O . l o g ( " A t t e m p t i n g   t o   c o m b i n e :   " + t h i s . _ c o m b i n i n g , " i n f o " , " l o a d e r " ) ; v a r   c a l l b a c k = f u n c t i o n ( o ) { v a r   c = t h i s . _ c o m b i n i n g , l e n = c . l e n g t h , i , m ; f o r ( i = 0 ; i < l e n ; i = i + 1 ) { t h i s . i n s e r t e d [ c [ i ] ] = t r u e ; } t h i s . l o a d N e x t ( o . d a t a ) ; } , l o a d S c r i p t = f u n c t i o n ( ) { i f ( j s . l e n g t h > s t a r t L e n ) { Y A H O O . u t i l . G e t . s c r i p t ( s e l f . _ f i l t e r ( j s ) , { d a t a : s e l f . _ l o a d i n g , o n S u c c e s s : c a l l b a c k , o n F a i l u r e : s e l f . _ o n F a i l u r e , o n T i m e o u t : s e l f . _ o n T i m e o u t , i n s e r t B e f o r e : s e l f . i n s e r t B e f o r e , c h a r s e t : s e l f . c h a r s e t , t i m e o u t : s e l f . t i m e o u t , s c o p e : s e l f } ) ; } } ; i f ( c s s . l e n g t h > s t a r t L e n ) { Y A H O O . u t i l . G e t . c s s ( t h i s . _ f i l t e r ( c s s ) , { d a t a : t h i s . _ l o a d i n g , o n S u c c e s s : l o a d S c r i p t , o n F a i l u r e : t h i s . _ o n F a i l u r e , o n T i m e o u t : t h i s . _ o n T i m e o u t , i n s e r t B e f o r e : t h i s . i n s e r t B e f o r e , c h a r s e t : t h i s . c h a r s e t , t i m e o u t : t h i s . t i m e o u t , s c o p e : s e l f } ) ; } e l s e { l o a d S c r i p t ( ) ; } r e t u r n ; } e l s e { t h i s . l o a d N e x t ( t h i s . _ l o a d i n g ) ; } } , i n s e r t : f u n c t i o n ( o , t y p e ) { t h i s . c a l c u l a t e ( o ) ; t h i s . _ l o a d i n g = t r u e ; t h i s . l o a d T y p e = t y p e ; i f ( t h i s . c o m b i n e ) { r e t u r n   t h i s . _ c o m b i n e ( ) ; } i f ( ! t y p e ) { v a r   s e l f = t h i s ; t h i s . _ i n t e r n a l C a l l b a c k = f u n c t i o n ( ) { s e l f . _ i n t e r n a l C a l l b a c k = n u l l ; s e l f . i n s e r t ( n u l l , " j s " ) ; } ; t h i s . i n s e r t ( n u l l , " c s s " ) ; r e t u r n ; } t h i s . l o a d N e x t ( ) ; } , s a n d b o x : f u n c t i o n ( o , t y p e ) { t h i s . _ c o n f i g ( o ) ; i f ( ! t h i s . o n S u c c e s s ) { t h r o w   n e w   E r r o r ( " Y o u   m u s t   s u p p l y   a n   o n S u c c e s s   h a n d l e r   f o r   y o u r   s a n d b o x " ) ; } t h i s . _ s a n d b o x = t r u e ; v a r   s e l f = t h i s ; i f ( ! t y p e | | t y p e ! = = " j s " ) { t h i s . _ i n t e r n a l C a l l b a c k = f u n c t i o n ( ) { s e l f . _ i n t e r n a l C a l l b a c k = n u l l ; s e l f . s a n d b o x ( n u l l , " j s " ) ; } ; t h i s . i n s e r t ( n u l l , " c s s " ) ; r e t u r n ; } i f ( ! u t i l . C o n n e c t ) { v a r   l d = n e w   Y A H O O . u t i l . Y U I L o a d e r ( ) ; l d . i n s e r t ( { b a s e : t h i s . b a s e , f i l t e r : t h i s . f i l t e r , r e q u i r e : " c o n n e c t i o n " , i n s e r t B e f o r e : t h i s . i n s e r t B e f o r e , c h a r s e t : t h i s . c h a r s e t , o n S u c c e s s : f u n c t i o n ( ) { t h i s . s a n d b o x ( n u l l , " j s " ) ; } , s c o p e : t h i s } , " j s " ) ; r e t u r n ; } t h i s . _ s c r i p t T e x t = [ ] ; t h i s . _ l o a d C o u n t = 0 ; t h i s . _ s t o p C o u n t = t h i s . s o r t e d . l e n g t h ; t h i s . _ x h r = [ ] ; t h i s . c a l c u l a t e ( ) ; v a r   s = t h i s . s o r t e d , l = s . l e n g t h , i , m , u r l ; f o r ( i = 0 ; i < l ; i = i + 1 ) { m = t h i s . m o d u l e I n f o [ s [ i ] ] ; i f ( ! m ) { t h i s . _ o n F a i l u r e ( " u n d e f i n e d   m o d u l e   " + m ) ; f o r ( v a r   j = 0 ; j < t h i s . _ x h r . l e n g t h ; j = j + 1 ) { t h i s . _ x h r [ j ] . a b o r t ( ) ; } r e t u r n ; } i f ( m . t y p e ! = = " j s " ) { t h i s . _ l o a d C o u n t + + ; c o n t i n u e ; } u r l = m . f u l l p a t h ; u r l = ( u r l ) ? t h i s . _ f i l t e r ( u r l ) : t h i s . _ u r l ( m . p a t h ) ; v a r   x h r D a t a = { s u c c e s s : f u n c t i o n ( o ) { v a r   i d x = o . a r g u m e n t [ 0 ] , n a m e = o . a r g u m e n t [ 2 ] ; t h i s . _ s c r i p t T e x t [ i d x ] = o . r e s p o n s e T e x t ; i f ( t h i s . o n P r o g r e s s ) { t h i s . o n P r o g r e s s . c a l l ( t h i s . s c o p e , { n a m e : n a m e , s c r i p t T e x t : o . r e s p o n s e T e x t , x h r R e s p o n s e : o , d a t a : t h i s . d a t a } ) ; } t h i s . _ l o a d C o u n t + + ; i f ( t h i s . _ l o a d C o u n t > = t h i s . _ s t o p C o u n t ) { v a r   v = t h i s . v a r N a m e | | " Y A H O O " ; v a r   t = " ( f u n c t i o n ( )   { \ n " ; v a r   b = " \ n r e t u r n   " + v + " ; \ n } ) ( ) ; " ; v a r   r e f = e v a l ( t + t h i s . _ s c r i p t T e x t . j o i n ( " \ n " ) + b ) ; t h i s . _ p u s h E v e n t s ( r e f ) ; i f ( r e f ) { t h i s . o n S u c c e s s . c a l l ( t h i s . s c o p e , { r e f e r e n c e : r e f , d a t a : t h i s . d a t a } ) ; } e l s e { t h i s . _ o n F a i l u r e . c a l l ( t h i s . v a r N a m e + "   r e f e r e n c e   f a i l u r e " ) ; } } } , f a i l u r e : f u n c t i o n ( o ) { t h i s . o n F a i l u r e . c a l l ( t h i s . s c o p e , { m s g : " X H R   f a i l u r e " , x h r R e s p o n s e : o , d a t a : t h i s . d a t a } ) ; } , s c o p e : t h i s , a r g u m e n t : [ i , u r l , s [ i ] ] } ; t h i s . _ x h r . p u s h ( u t i l . C o n n e c t . a s y n c R e q u e s t ( " G E T " , u r l , x h r D a t a ) ) ; } } , l o a d N e x t : f u n c t i o n ( m n a m e ) { i f ( ! t h i s . _ l o a d i n g ) { r e t u r n ; } i f ( m n a m e ) { i f ( m n a m e ! = = t h i s . _ l o a d i n g ) { r e t u r n ; } t h i s . i n s e r t e d [ m n a m e ] = t r u e ; i f ( t h i s . o n P r o g r e s s ) { t h i s . o n P r o g r e s s . c a l l ( t h i s . s c o p e , { n a m e : m n a m e , d a t a : t h i s . d a t a } ) ; } } v a r   s = t h i s . s o r t e d , l e n = s . l e n g t h , i , m ; f o r ( i = 0 ; i < l e n ; i = i + 1 ) { i f ( s [ i ]   i n   t h i s . i n s e r t e d ) { c o n t i n u e ; } i f ( s [ i ] = = = t h i s . _ l o a d i n g ) { r e t u r n ; } m = t h i s . m o d u l e I n f o [ s [ i ] ] ; i f ( ! m ) { t h i s . o n F a i l u r e . c a l l ( t h i s . s c o p e , { m s g : " u n d e f i n e d   m o d u l e   " + m , d a t a : t h i s . d a t a } ) ; r e t u r n ; } i f ( ! t h i s . l o a d T y p e | | t h i s . l o a d T y p e = = = m . t y p e ) { t h i s . _ l o a d i n g = s [ i ] ; v a r   f n = ( m . t y p e = = = " c s s " ) ? u t i l . G e t . c s s : u t i l . G e t . s c r i p t , u r l = m . f u l l p a t h , s e l f = t h i s , c = f u n c t i o n ( o ) { s e l f . l o a d N e x t ( o . d a t a ) ; } ; u r l = ( u r l ) ? t h i s . _ f i l t e r ( u r l ) : t h i s . _ u r l ( m . p a t h ) ; i f ( e n v . u a . w e b k i t & & e n v . u a . w e b k i t < 4 2 0 & & m . t y p e = = = " j s " & & ! m . v a r N a m e ) { c = n u l l ; t h i s . _ u s e Y a h o o L i s t e n e r = t r u e ; } f n ( u r l , { d a t a : s [ i ] , o n S u c c e s s : c , o n F a i l u r e : t h i s . _ o n F a i l u r e , o n T i m e o u t : t h i s . _ o n T i m e o u t , i n s e r t B e f o r e : t h i s . i n s e r t B e f o r e , c h a r s e t : t h i s . c h a r s e t , t i m e o u t : t h i s . t i m e o u t , v a r N a m e : m . v a r N a m e , s c o p e : s e l f } ) ; r e t u r n ; } } t h i s . _ l o a d i n g = n u l l ; i f ( t h i s . _ i n t e r n a l C a l l b a c k ) { v a r   f = t h i s . _ i n t e r n a l C a l l b a c k ; t h i s . _ i n t e r n a l C a l l b a c k = n u l l ; f . c a l l ( t h i s ) ; } e l s e { i f ( t h i s . o n S u c c e s s ) { t h i s . _ p u s h E v e n t s ( ) ; t h i s . o n S u c c e s s . c a l l ( t h i s . s c o p e , { d a t a : t h i s . d a t a } ) ; } } } , _ p u s h E v e n t s : f u n c t i o n ( r e f ) { v a r   r = r e f | | Y A H O O ; i f ( r . u t i l & & r . u t i l . E v e n t ) { r . u t i l . E v e n t . _ l o a d ( ) ; } } , _ f i l t e r : f u n c t i o n ( s t r ) { v a r   f = t h i s . f i l t e r ; r e t u r n ( f ) ? s t r . r e p l a c e ( n e w   R e g E x p ( f . s e a r c h E x p , " g " ) , f . r e p l a c e S t r ) : s t r ; } , _ u r l : f u n c t i o n ( p a t h ) { r e t u r n   t h i s . _ f i l t e r ( ( t h i s . b a s e | | " " ) + p a t h ) ; } } ; } ) ( ) ; Y A H O O . r e g i s t e r ( " y u i l o a d e r " , Y A H O O . u t i l . Y U I L o a d e r , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ;  
 ( f u n c t i o n ( ) { Y A H O O . e n v . _ i d _ c o u n t e r = Y A H O O . e n v . _ i d _ c o u n t e r | | 0 ; v a r   E = Y A H O O . u t i l , L = Y A H O O . l a n g , m = Y A H O O . e n v . u a , A = Y A H O O . l a n g . t r i m , d = { } , h = { } , N = / ^ t ( ? : a b l e | d | h ) $ / i , X = / c o l o r $ / i , K = w i n d o w . d o c u m e n t , W = K . d o c u m e n t E l e m e n t , e = " o w n e r D o c u m e n t " , n = " d e f a u l t V i e w " , v = " d o c u m e n t E l e m e n t " , t = " c o m p a t M o d e " , b = " o f f s e t L e f t " , P = " o f f s e t T o p " , u = " o f f s e t P a r e n t " , Z = " p a r e n t N o d e " , l = " n o d e T y p e " , C = " t a g N a m e " , O = " s c r o l l L e f t " , i = " s c r o l l T o p " , Q = " g e t B o u n d i n g C l i e n t R e c t " , w = " g e t C o m p u t e d S t y l e " , a = " c u r r e n t S t y l e " , M = " C S S 1 C o m p a t " , c = " B a c k C o m p a t " , g = " c l a s s " , F = " c l a s s N a m e " , J = " " , B = "   " , s = " ( ? : ^ | \ \ s ) " , k = " ( ? =   | $ ) " , U = " g " , p = " p o s i t i o n " , f = " f i x e d " , V = " r e l a t i v e " , j = " l e f t " , o = " t o p " , r = " m e d i u m " , q = " b o r d e r L e f t W i d t h " , R = " b o r d e r T o p W i d t h " , D = m . o p e r a , I = m . w e b k i t , H = m . g e c k o , T = m . i e ; E . D o m = { C U S T O M _ A T T R I B U T E S : ( ! W . h a s A t t r i b u t e ) ? { " f o r " : " h t m l F o r " , " c l a s s " : F } : { " h t m l F o r " : " f o r " , " c l a s s N a m e " : g } , g e t : f u n c t i o n ( y ) { v a r   A A , Y , z , x , G ; i f ( y ) { i f ( y [ l ] | | y . i t e m ) { r e t u r n   y ; } i f ( t y p e o f   y = = = " s t r i n g " ) { A A = y ; y = K . g e t E l e m e n t B y I d ( y ) ; i f ( y & & y . i d = = = A A ) { r e t u r n   y ; } e l s e { i f ( y & & K . a l l ) { y = n u l l ; Y = K . a l l [ A A ] ; f o r ( x = 0 , G = Y . l e n g t h ; x < G ; + + x ) { i f ( Y [ x ] . i d = = = A A ) { r e t u r n   Y [ x ] ; } } } } r e t u r n   y ; } i f ( y . D O M _ E V E N T S ) { y = y . g e t ( " e l e m e n t " ) ; } i f ( " l e n g t h "   i n   y ) { z = [ ] ; f o r ( x = 0 , G = y . l e n g t h ; x < G ; + + x ) { z [ z . l e n g t h ] = E . D o m . g e t ( y [ x ] ) ; } r e t u r n   z ; } r e t u r n   y ; } r e t u r n   n u l l ; } , g e t C o m p u t e d S t y l e : f u n c t i o n ( G , Y ) { i f ( w i n d o w [ w ] ) { r e t u r n   G [ e ] [ n ] [ w ] ( G , n u l l ) [ Y ] ; } e l s e { i f ( G [ a ] ) { r e t u r n   E . D o m . I E _ C o m p u t e d S t y l e . g e t ( G , Y ) ; } } } , g e t S t y l e : f u n c t i o n ( G , Y ) { r e t u r n   E . D o m . b a t c h ( G , E . D o m . _ g e t S t y l e , Y ) ; } , _ g e t S t y l e : f u n c t i o n ( ) { i f ( w i n d o w [ w ] ) { r e t u r n   f u n c t i o n ( G , y ) { y = ( y = = = " f l o a t " ) ? y = " c s s F l o a t " : E . D o m . _ t o C a m e l ( y ) ; v a r   x = G . s t y l e [ y ] , Y ; i f ( ! x ) { Y = G [ e ] [ n ] [ w ] ( G , n u l l ) ; i f ( Y ) { x = Y [ y ] ; } } r e t u r n   x ; } ; } e l s e { i f ( W [ a ] ) { r e t u r n   f u n c t i o n ( G , y ) { v a r   x ; s w i t c h ( y ) { c a s e " o p a c i t y " : x = 1 0 0 ; t r y { x = G . f i l t e r s [ " D X I m a g e T r a n s f o r m . M i c r o s o f t . A l p h a " ] . o p a c i t y ; } c a t c h ( z ) { t r y { x = G . f i l t e r s ( " a l p h a " ) . o p a c i t y ; } c a t c h ( Y ) { } } r e t u r n   x / 1 0 0 ; c a s e " f l o a t " : y = " s t y l e F l o a t " ; d e f a u l t : y = E . D o m . _ t o C a m e l ( y ) ; x = G [ a ] ? G [ a ] [ y ] : n u l l ; r e t u r n ( G . s t y l e [ y ] | | x ) ; } } ; } } } ( ) , s e t S t y l e : f u n c t i o n ( G , Y , x ) { E . D o m . b a t c h ( G , E . D o m . _ s e t S t y l e , { p r o p : Y , v a l : x } ) ; } , _ s e t S t y l e : f u n c t i o n ( ) { i f ( T ) { r e t u r n   f u n c t i o n ( Y , G ) { v a r   x = E . D o m . _ t o C a m e l ( G . p r o p ) , y = G . v a l ; i f ( Y ) { s w i t c h ( x ) { c a s e " o p a c i t y " : i f ( L . i s S t r i n g ( Y . s t y l e . f i l t e r ) ) { Y . s t y l e . f i l t e r = " a l p h a ( o p a c i t y = " + y * 1 0 0 + " ) " ; i f ( ! Y [ a ] | | ! Y [ a ] . h a s L a y o u t ) { Y . s t y l e . z o o m = 1 ; } } b r e a k ; c a s e " f l o a t " : x = " s t y l e F l o a t " ; d e f a u l t : Y . s t y l e [ x ] = y ; } } e l s e { } } ; } e l s e { r e t u r n   f u n c t i o n ( Y , G ) { v a r   x = E . D o m . _ t o C a m e l ( G . p r o p ) , y = G . v a l ; i f ( Y ) { i f ( x = = " f l o a t " ) { x = " c s s F l o a t " ; } Y . s t y l e [ x ] = y ; } e l s e { } } ; } } ( ) , g e t X Y : f u n c t i o n ( G ) { r e t u r n   E . D o m . b a t c h ( G , E . D o m . _ g e t X Y ) ; } , _ c a n P o s i t i o n : f u n c t i o n ( G ) { r e t u r n ( E . D o m . _ g e t S t y l e ( G , " d i s p l a y " ) ! = = " n o n e " & & E . D o m . _ i n D o c ( G ) ) ; } , _ g e t X Y : f u n c t i o n ( ) { i f ( K [ v ] [ Q ] ) { r e t u r n   f u n c t i o n ( y ) { v a r   z , Y , A A , A F , A E , A D , A C , G , x , A B = M a t h . f l o o r , A G = f a l s e ; i f ( E . D o m . _ c a n P o s i t i o n ( y ) ) { A A = y [ Q ] ( ) ; A F = y [ e ] ; z = E . D o m . g e t D o c u m e n t S c r o l l L e f t ( A F ) ; Y = E . D o m . g e t D o c u m e n t S c r o l l T o p ( A F ) ; A G = [ A B ( A A [ j ] ) , A B ( A A [ o ] ) ] ; i f ( T & & m . i e < 8 ) { A E = 2 ; A D = 2 ; A C = A F [ t ] ; G = S ( A F [ v ] , q ) ; x = S ( A F [ v ] , R ) ; i f ( m . i e = = = 6 ) { i f ( A C ! = = c ) { A E = 0 ; A D = 0 ; } } i f ( ( A C = = c ) ) { i f ( G ! = = r ) { A E = p a r s e I n t ( G , 1 0 ) ; } i f ( x ! = = r ) { A D = p a r s e I n t ( x , 1 0 ) ; } } A G [ 0 ] - = A E ; A G [ 1 ] - = A D ; } i f ( ( Y | | z ) ) { A G [ 0 ] + = z ; A G [ 1 ] + = Y ; } A G [ 0 ] = A B ( A G [ 0 ] ) ; A G [ 1 ] = A B ( A G [ 1 ] ) ; } e l s e { } r e t u r n   A G ; } ; } e l s e { r e t u r n   f u n c t i o n ( y ) { v a r   x , Y , A A , A B , A C , z = f a l s e , G = y ; i f ( E . D o m . _ c a n P o s i t i o n ( y ) ) { z = [ y [ b ] , y [ P ] ] ; x = E . D o m . g e t D o c u m e n t S c r o l l L e f t ( y [ e ] ) ; Y = E . D o m . g e t D o c u m e n t S c r o l l T o p ( y [ e ] ) ; A C = ( ( H | | m . w e b k i t > 5 1 9 ) ? t r u e : f a l s e ) ; w h i l e ( ( G = G [ u ] ) ) { z [ 0 ] + = G [ b ] ; z [ 1 ] + = G [ P ] ; i f ( A C ) { z = E . D o m . _ c a l c B o r d e r s ( G , z ) ; } } i f ( E . D o m . _ g e t S t y l e ( y , p ) ! = = f ) { G = y ; w h i l e ( ( G = G [ Z ] ) & & G [ C ] ) { A A = G [ i ] ; A B = G [ O ] ; i f ( H & & ( E . D o m . _ g e t S t y l e ( G , " o v e r f l o w " ) ! = = " v i s i b l e " ) ) { z = E . D o m . _ c a l c B o r d e r s ( G , z ) ; } i f ( A A | | A B ) { z [ 0 ] - = A B ; z [ 1 ] - = A A ; } } z [ 0 ] + = x ; z [ 1 ] + = Y ; } e l s e { i f ( D ) { z [ 0 ] - = x ; z [ 1 ] - = Y ; } e l s e { i f ( I | | H ) { z [ 0 ] + = x ; z [ 1 ] + = Y ; } } } z [ 0 ] = M a t h . f l o o r ( z [ 0 ] ) ; z [ 1 ] = M a t h . f l o o r ( z [ 1 ] ) ; } e l s e { } r e t u r n   z ; } ; } } ( ) , g e t X : f u n c t i o n ( G ) { v a r   Y = f u n c t i o n ( x ) { r e t u r n   E . D o m . g e t X Y ( x ) [ 0 ] ; } ; r e t u r n   E . D o m . b a t c h ( G , Y , E . D o m , t r u e ) ; } , g e t Y : f u n c t i o n ( G ) { v a r   Y = f u n c t i o n ( x ) { r e t u r n   E . D o m . g e t X Y ( x ) [ 1 ] ; } ; r e t u r n   E . D o m . b a t c h ( G , Y , E . D o m , t r u e ) ; } , s e t X Y : f u n c t i o n ( G , x , Y ) { E . D o m . b a t c h ( G , E . D o m . _ s e t X Y , { p o s : x , n o R e t r y : Y } ) ; } , _ s e t X Y : f u n c t i o n ( G , z ) { v a r   A A = E . D o m . _ g e t S t y l e ( G , p ) , y = E . D o m . s e t S t y l e , A D = z . p o s , Y = z . n o R e t r y , A B = [ p a r s e I n t ( E . D o m . g e t C o m p u t e d S t y l e ( G , j ) , 1 0 ) , p a r s e I n t ( E . D o m . g e t C o m p u t e d S t y l e ( G , o ) , 1 0 ) ] , A C , x ; i f ( A A = = " s t a t i c " ) { A A = V ; y ( G , p , A A ) ; } A C = E . D o m . _ g e t X Y ( G ) ; i f ( ! A D | | A C = = = f a l s e ) { r e t u r n   f a l s e ; } i f ( i s N a N ( A B [ 0 ] ) ) { A B [ 0 ] = ( A A = = V ) ? 0 : G [ b ] ; } i f ( i s N a N ( A B [ 1 ] ) ) { A B [ 1 ] = ( A A = = V ) ? 0 : G [ P ] ; } i f ( A D [ 0 ] ! = = n u l l ) { y ( G , j , A D [ 0 ] - A C [ 0 ] + A B [ 0 ] + " p x " ) ; } i f ( A D [ 1 ] ! = = n u l l ) { y ( G , o , A D [ 1 ] - A C [ 1 ] + A B [ 1 ] + " p x " ) ; } i f ( ! Y ) { x = E . D o m . _ g e t X Y ( G ) ; i f ( ( A D [ 0 ] ! = = n u l l & & x [ 0 ] ! = A D [ 0 ] ) | | ( A D [ 1 ] ! = = n u l l & & x [ 1 ] ! = A D [ 1 ] ) ) { E . D o m . _ s e t X Y ( G , { p o s : A D , n o R e t r y : t r u e } ) ; } } } , s e t X : f u n c t i o n ( Y , G ) { E . D o m . s e t X Y ( Y , [ G , n u l l ] ) ; } , s e t Y : f u n c t i o n ( G , Y ) { E . D o m . s e t X Y ( G , [ n u l l , Y ] ) ; } , g e t R e g i o n : f u n c t i o n ( G ) { v a r   Y = f u n c t i o n ( x ) { v a r   y = f a l s e ; i f ( E . D o m . _ c a n P o s i t i o n ( x ) ) { y = E . R e g i o n . g e t R e g i o n ( x ) ; } e l s e { } r e t u r n   y ; } ; r e t u r n   E . D o m . b a t c h ( G , Y , E . D o m , t r u e ) ; } , g e t C l i e n t W i d t h : f u n c t i o n ( ) { r e t u r n   E . D o m . g e t V i e w p o r t W i d t h ( ) ; } , g e t C l i e n t H e i g h t : f u n c t i o n ( ) { r e t u r n   E . D o m . g e t V i e w p o r t H e i g h 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 ( A B , A F , A C , A E , x , A D ) { A B = L . t r i m ( A B ) ; A F = A F | | " * " ; A C = ( A C ) ? E . D o m . g e t ( A C ) : n u l l | | K ; i f ( ! A C ) { r e t u r n [ ] ; } v a r   Y = [ ] , G = A C . g e t E l e m e n t s B y T a g N a m e ( A F ) , z = E . D o m . h a s C l a s s ; f o r ( v a r   y = 0 , A A = G . l e n g t h ; y < A A ; + + y ) { i f ( z ( G [ y ] , A B ) ) { Y [ Y . l e n g t h ] = G [ y ] ; } } i f ( A E ) { E . D o m . b a t c h ( Y , A E , x , A D ) ; } r e t u r n   Y ; } , h a s C l a s s : f u n c t i o n ( Y , G ) { r e t u r n   E . D o m . b a t c h ( Y , E . D o m . _ h a s C l a s s , G ) ; } , _ h a s C l a s s : f u n c t i o n ( x , Y ) { v a r   G = f a l s e , y ; i f ( x & & Y ) { y = E . D o m . g e t A t t r i b u t e ( x , F ) | | J ; i f ( Y . e x e c ) { G = Y . t e s t ( y ) ; } e l s e { G = Y & & ( B + y + B ) . i n d e x O f ( B + Y + B ) > - 1 ; } } e l s e { } r e t u r n   G ; } , a d d C l a s s : f u n c t i o n ( Y , G ) { r e t u r n   E . D o m . b a t c h ( Y , E . D o m . _ a d d C l a s s , G ) ; } , _ a d d C l a s s : f u n c t i o n ( x , Y ) { v a r   G = f a l s e , y ; i f ( x & & Y ) { y = E . D o m . g e t A t t r i b u t e ( x , F ) | | J ; i f ( ! E . D o m . _ h a s C l a s s ( x , Y ) ) { E . D o m . s e t A t t r i b u t e ( x , F , A ( y + B + Y ) ) ; G = t r u e ; } } e l s e { } r e t u r n   G ; } , r e m o v e C l a s s : f u n c t i o n ( Y , G ) { r e t u r n   E . D o m . b a t c h ( Y , E . D o m . _ r e m o v e C l a s s , G ) ; } , _ r e m o v e C l a s s : f u n c t i o n ( y , x ) { v a r   Y = f a l s e , A A , z , G ; i f ( y & & x ) { A A = E . D o m . g e t A t t r i b u t e ( y , F ) | | J ; E . D o m . s e t A t t r i b u t e ( y , F , A A . r e p l a c e ( E . D o m . _ g e t C l a s s R e g e x ( x ) , J ) ) ; z = E . D o m . g e t A t t r i b u t e ( y , F ) ; i f ( A A ! = = z ) { E . D o m . s e t A t t r i b u t e ( y , F , A ( z ) ) ; Y = t r u e ; i f ( E . D o m . g e t A t t r i b u t e ( y , F ) = = = " " ) { G = ( y . h a s A t t r i b u t e & & y . h a s A t t r i b u t e ( g ) ) ? g : F ; y . r e m o v e A t t r i b u t e ( G ) ; } } } e l s e { } r e t u r n   Y ; } , r e p l a c e C l a s s : f u n c t i o n ( x , Y , G ) { r e t u r n   E . D o m . b a t c h ( x , E . D o m . _ r e p l a c e C l a s s , { f r o m : Y , t o : G } ) ;  
 } , _ r e p l a c e C l a s s : f u n c t i o n ( y , x ) { v a r   Y , A B , A A , G = f a l s e , z ; i f ( y & & x ) { A B = x . f r o m ; A A = x . t o ; i f ( ! A A ) { G = f a l s e ; } e l s e { i f ( ! A B ) { G = E . D o m . _ a d d C l a s s ( y , x . t o ) ; } e l s e { i f ( A B ! = = A A ) { z = E . D o m . g e t A t t r i b u t e ( y , F ) | | J ; Y = ( B + z . r e p l a c e ( E . D o m . _ g e t C l a s s R e g e x ( A B ) , B + A A ) ) . s p l i t ( E . D o m . _ g e t C l a s s R e g e x ( A A ) ) ; Y . s p l i c e ( 1 , 0 , B + A A ) ; E . D o m . s e t A t t r i b u t e ( y , F , A ( Y . j o i n ( J ) ) ) ; G = t r u e ; } } } } e l s e { } r e t u r n   G ; } , g e n e r a t e I d : f u n c t i o n ( G , x ) { x = x | | " y u i - g e n " ; v a r   Y = f u n c t i o n ( y ) { i f ( y & & y . i d ) { r e t u r n   y . i d ; } v a r   z = x + Y A H O O . e n v . _ i d _ c o u n t e r + + ; i f ( y ) { i f ( y [ e ] . g e t E l e m e n t B y I d ( z ) ) { r e t u r n   E . D o m . g e n e r a t e I d ( y , z + x ) ; } y . i d = z ; } r e t u r n   z ; } ; r e t u r n   E . D o m . b a t c h ( G , Y , E . D o m , t r u e ) | | Y . a p p l y ( E . D o m , a r g u m e n t s ) ; } , i s A n c e s t o r : f u n c t i o n ( Y , x ) { Y = E . D o m . g e t ( Y ) ; x = E . D o m . g e t ( x ) ; v a r   G = f a l s e ; i f ( ( Y & & x ) & & ( Y [ l ] & & x [ l ] ) ) { i f ( Y . c o n t a i n s & & Y ! = = x ) { G = Y . c o n t a i n s ( x ) ; } e l s e { i f ( Y . c o m p a r e D o c u m e n t P o s i t i o n ) { G = ! ! ( Y . c o m p a r e D o c u m e n t P o s i t i o n ( x ) & 1 6 ) ; } } } e l s e { } r e t u r n   G ; } , i n D o c u m e n t : f u n c t i o n ( G , Y ) { r e t u r n   E . D o m . _ i n D o c ( E . D o m . g e t ( G ) , Y ) ; } , _ i n D o c : f u n c t i o n ( Y , x ) { v a r   G = f a l s e ; i f ( Y & & Y [ C ] ) { x = x | | Y [ e ] ; G = E . D o m . i s A n c e s t o r ( x [ v ] , Y ) ; } e l s e { } r e t u r n   G ; } , g e t E l e m e n t s B y : f u n c t i o n ( Y , A F , A B , A D , y , A C , A E ) { A F = A F | | " * " ; A B = ( A B ) ? E . D o m . g e t ( A B ) : n u l l | | K ; i f ( ! A B ) { r e t u r n [ ] ; } v a r   x = [ ] , G = A B . g e t E l e m e n t s B y T a g N a m e ( A F ) ; f o r ( v a r   z = 0 , A A = G . l e n g t h ; z < A A ; + + z ) { i f ( Y ( G [ z ] ) ) { i f ( A E ) { x = G [ z ] ; b r e a k ; } e l s e { x [ x . l e n g t h ] = G [ z ] ; } } } i f ( A D ) { E . D o m . b a t c h ( x , A D , y , A C ) ; } r e t u r n   x ; } , g e t E l e m e n t B y : f u n c t i o n ( x , G , Y ) { r e t u r n   E . D o m . g e t E l e m e n t s B y ( x , G , Y , n u l l , n u l l , n u l l , t r u e ) ; } , b a t c h : f u n c t i o n ( x , A B , A A , z ) { v a r   y = [ ] , Y = ( z ) ? A A : w i n d o w ; x = ( x & & ( x [ C ] | | x . i t e m ) ) ? x : E . D o m . g e t ( x ) ; i f ( x & & A B ) { i f ( x [ C ] | | x . l e n g t h = = = u n d e f i n e d ) { r e t u r n   A B . c a l l ( Y , x , A A ) ; } f o r ( v a r   G = 0 ; G < x . l e n g t h ; + + G ) { y [ y . l e n g t h ] = A B . c a l l ( Y , x [ G ] , A A ) ; } } e l s e { r e t u r n   f a l s e ; } r e t u r n   y ; } , g e t D o c u m e n t H e i g h t : f u n c t i o n ( ) { v a r   Y = ( K [ t ] ! = M | | I ) ? K . b o d y . s c r o l l H e i g h t : W . s c r o l l H e i g h t , G = M a t h . m a x ( Y , E . D o m . g e t V i e w p o r t H e i g h t ( ) ) ; r e t u r n   G ; } , g e t D o c u m e n t W i d t h : f u n c t i o n ( ) { v a r   Y = ( K [ t ] ! = M | | I ) ? K . b o d y . s c r o l l W i d t h : W . s c r o l l W i d t h , G = M a t h . m a x ( Y , E . D o m . g e t V i e w p o r t W i d t h ( ) ) ; r e t u r n   G ; } , g e t V i e w p o r t H e i g h t : f u n c t i o n ( ) { v a r   G = s e l f . i n n e r H e i g h t , Y = K [ t ] ; i f ( ( Y | | T ) & & ! D ) { G = ( Y = = M ) ? W . c l i e n t H e i g h t : K . b o d y . c l i e n t H e i g h t ; } r e t u r n   G ; } , g e t V i e w p o r t W i d t h : f u n c t i o n ( ) { v a r   G = s e l f . i n n e r W i d t h , Y = K [ t ] ; i f ( Y | | T ) { G = ( Y = = M ) ? W . c l i e n t W i d t h : K . b o d y . c l i e n t W i d t h ; } r e t u r n   G ; } , g e t A n c e s t o r B y : f u n c t i o n ( G , Y ) { w h i l e ( ( G = G [ Z ] ) ) { i f ( E . D o m . _ t e s t E l e m e n t ( G , Y ) ) { r e t u r n   G ; } } r e t u r n   n u l l ; } , g e t A n c e s t o r B y C l a s s N a m e : f u n c t i o n ( Y , G ) { Y = E . D o m . g e t ( Y ) ; i f ( ! Y ) { r e t u r n   n u l l ; } v a r   x = f u n c t i o n ( y ) { r e t u r n   E . D o m . h a s C l a s s ( y , G ) ; } ; r e t u r n   E . D o m . g e t A n c e s t o r B y ( Y , x ) ; } , g e t A n c e s t o r B y T a g N a m e : f u n c t i o n ( Y , G ) { Y = E . D o m . g e t ( Y ) ; i f ( ! Y ) { r e t u r n   n u l l ; } v a r   x = f u n c t i o n ( y ) { r e t u r n   y [ C ] & & y [ C ] . t o U p p e r C a s e ( ) = = G . t o U p p e r C a s e ( ) ; } ; r e t u r n   E . D o m . g e t A n c e s t o r B y ( Y , x ) ; } , g e t P r e v i o u s S i b l i n g B y : f u n c t i o n ( G , Y ) { w h i l e ( G ) { G = G . p r e v i o u s S i b l i n g ; i f ( E . D o m . _ t e s t E l e m e n t ( G , Y ) ) { r e t u r n   G ; } } r e t u r n   n u l l ; } , g e t P r e v i o u s S i b l i n g : f u n c t i o n ( G ) { G = E . D o m . g e t ( G ) ; i f ( ! G ) { r e t u r n   n u l l ; } r e t u r n   E . D o m . g e t P r e v i o u s S i b l i n g B y ( G ) ; } , g e t N e x t S i b l i n g B y : f u n c t i o n ( G , Y ) { w h i l e ( G ) { G = G . n e x t S i b l i n g ; i f ( E . D o m . _ t e s t E l e m e n t ( G , Y ) ) { r e t u r n   G ; } } r e t u r n   n u l l ; } , g e t N e x t S i b l i n g : f u n c t i o n ( G ) { G = E . D o m . g e t ( G ) ; i f ( ! G ) { r e t u r n   n u l l ; } r e t u r n   E . D o m . g e t N e x t S i b l i n g B y ( G ) ; } , g e t F i r s t C h i l d B y : f u n c t i o n ( G , x ) { v a r   Y = ( E . D o m . _ t e s t E l e m e n t ( G . f i r s t C h i l d , x ) ) ? G . f i r s t C h i l d : n u l l ; r e t u r n   Y | | E . D o m . g e t N e x t S i b l i n g B y ( G . f i r s t C h i l d , x ) ; } , g e t F i r s t C h i l d : f u n c t i o n ( G , Y ) { G = E . D o m . g e t ( G ) ; i f ( ! G ) { r e t u r n   n u l l ; } r e t u r n   E . D o m . g e t F i r s t C h i l d B y ( G ) ; } , g e t L a s t C h i l d B y : f u n c t i o n ( G , x ) { i f ( ! G ) { r e t u r n   n u l l ; } v a r   Y = ( E . D o m . _ t e s t E l e m e n t ( G . l a s t C h i l d , x ) ) ? G . l a s t C h i l d : n u l l ; r e t u r n   Y | | E . D o m . g e t P r e v i o u s S i b l i n g B y ( G . l a s t C h i l d , x ) ; } , g e t L a s t C h i l d : f u n c t i o n ( G ) { G = E . D o m . g e t ( G ) ; r e t u r n   E . D o m . g e t L a s t C h i l d B y ( G ) ; } , g e t C h i l d r e n B y : f u n c t i o n ( Y , y ) { v a r   x = E . D o m . g e t F i r s t C h i l d B y ( Y , y ) , G = x ? [ x ] : [ ] ; E . D o m . g e t N e x t S i b l i n g B y ( x , f u n c t i o n ( z ) { i f ( ! y | | y ( z ) ) { G [ G . l e n g t h ] = z ; } r e t u r n   f a l s e ; } ) ; r e t u r n   G ; } , g e t C h i l d r e n : f u n c t i o n ( G ) { G = E . D o m . g e t ( G ) ; i f ( ! G ) { } r e t u r n   E . D o m . g e t C h i l d r e n B y ( G ) ; } , g e t D o c u m e n t S c r o l l L e f t : f u n c t i o n ( G ) { G = G | | K ; r e t u r n   M a t h . m a x ( G [ v ] . s c r o l l L e f t , G . b o d y . s c r o l l L e f t ) ; } , g e t D o c u m e n t S c r o l l T o p : f u n c t i o n ( G ) { G = G | | K ; r e t u r n   M a t h . m a x ( G [ v ] . s c r o l l T o p , G . b o d y . s c r o l l T o p ) ; } , i n s e r t B e f o r e : f u n c t i o n ( Y , G ) { Y = E . D o m . g e t ( Y ) ; G = E . D o m . g e t ( G ) ; i f ( ! Y | | ! G | | ! G [ Z ] ) { r e t u r n   n u l l ; } r e t u r n   G [ Z ] . i n s e r t B e f o r e ( Y , G ) ; } , i n s e r t A f t e r : f u n c t i o n ( Y , G ) { Y = E . D o m . g e t ( Y ) ; G = E . D o m . g e t ( G ) ; i f ( ! Y | | ! G | | ! G [ Z ] ) { r e t u r n   n u l l ; } i f ( G . n e x t S i b l i n g ) { r e t u r n   G [ Z ] . i n s e r t B e f o r e ( Y , G . n e x t S i b l i n g ) ; } e l s e { r e t u r n   G [ Z ] . a p p e n d C h i l d ( Y ) ; } } , g e t C l i e n t R e g i o n : f u n c t i o n ( ) { v a r   x = E . D o m . g e t D o c u m e n t S c r o l l T o p ( ) , Y = E . D o m . g e t D o c u m e n t S c r o l l L e f t ( ) , y = E . D o m . g e t V i e w p o r t W i d t h ( ) + Y , G = E . D o m . g e t V i e w p o r t H e i g h t ( ) + x ; r e t u r n   n e w   E . R e g i o n ( x , y , G , Y ) ; } , s e t A t t r i b u t e : f u n c t i o n ( Y , G , x ) { G = E . D o m . C U S T O M _ A T T R I B U T E S [ G ] | | G ; Y . s e t A t t r i b u t e ( G , x ) ; } , g e t A t t r i b u t e : f u n c t i o n ( Y , G ) { G = E . D o m . C U S T O M _ A T T R I B U T E S [ G ] | | G ; r e t u r n   Y . g e t A t t r i b u t e ( G ) ; } , _ t o C a m e l : f u n c t i o n ( Y ) { v a r   x = d ; f u n c t i o n   G ( y , z ) { r e t u r n   z . t o U p p e r C a s e ( ) ; } r e t u r n   x [ Y ] | | ( x [ Y ] = Y . i n d e x O f ( " - " ) = = = - 1 ? Y : Y . r e p l a c e ( / - ( [ a - z ] ) / g i , G ) ) ; } , _ g e t C l a s s R e g e x : f u n c t i o n ( Y ) { v a r   G ; i f ( Y ! = = u n d e f i n e d ) { i f ( Y . e x e c ) { G = Y ; } e l s e { G = h [ Y ] ; i f ( ! G ) { Y = Y . r e p l a c e ( E . D o m . _ p a t t e r n s . C L A S S _ R E _ T O K E N S , " \ \ $ 1 " ) ; G = h [ Y ] = n e w   R e g E x p ( s + Y + k , U ) ; } } } r e t u r n   G ; } , _ p a t t e r n s : { R O O T _ T A G : / ^ b o d y | h t m l $ / i , C L A S S _ R E _ T O K E N S : / ( [ \ . \ ( \ ) \ ^ \ $ \ * \ + \ ? \ | \ [ \ ] \ { \ } ] ) / g } , _ t e s t E l e m e n t : f u n c t i o n ( G , Y ) { r e t u r n   G & & G [ l ] = = 1 & & ( ! Y | | Y ( G ) ) ; } , _ c a l c B o r d e r s : f u n c t i o n ( x , y ) { v a r   Y = p a r s e I n t ( E . D o m [ w ] ( x , R ) , 1 0 ) | | 0 , G = p a r s e I n t ( E . D o m [ w ] ( x , q ) , 1 0 ) | | 0 ; i f ( H ) { i f ( N . t e s t ( x [ C ] ) ) { Y = 0 ; G = 0 ; } } y [ 0 ] + = G ; y [ 1 ] + = Y ; r e t u r n   y ; } } ; v a r   S = E . D o m [ w ] ; i f ( m . o p e r a ) { E . D o m [ w ] = f u n c t i o n ( Y , G ) { v a r   x = S ( Y , G ) ; i f ( X . t e s t ( G ) ) { x = E . D o m . C o l o r . t o R G B ( x ) ; } r e t u r n   x ; } ; } i f ( m . w e b k i t ) { E . D o m [ w ] = f u n c t i o n ( Y , G ) { v a r   x = S ( Y , G ) ; i f ( x = = = " r g b a ( 0 ,   0 ,   0 ,   0 ) " ) { x = " t r a n s p a r e n t " ; } r e t u r n   x ; } ; } } ) ( ) ; Y A H O O . u t i l . R e g i o n = f u n c t i o n ( C , D , A , B ) { t h i s . t o p = C ; t h i s . y = C ; t h i s [ 1 ] = C ; t h i s . r i g h t = D ; t h i s . b o t t o m = A ; t h i s . l e f t = B ; t h i s . x = B ; t h i s [ 0 ] = B ; t h i s . w i d t h = t h i s . r i g h t - t h i s . l e f t ; t h i s . h e i g h t = t h i s . b o t t o m - t h i s . t o p ; } ; Y A H O O . u t i l . R e g i o n . p r o t o t y p e . c o n t a i n s = f u n c t i o n ( A ) { r e t u r n ( A . l e f t > = t h i s . l e f t & & A . r i g h t < = t h i s . r i g h t & & A . t o p > = t h i s . t o p & & A . b o t t o m < = t h i s . b o t t o m ) ; } ; Y A H O O . u t i l . R e g i o n . p r o t o t y p e . g e t A r e a = f u n c t i o n ( ) { r e t u r n ( ( t h i s . b o t t o m - t h i s . t o p ) * ( t h i s . r i g h t - t h i s . l e f t ) ) ; } ; Y A H O O . u t i l . R e g i o n . p r o t o t y p e . i n t e r s e c t = f u n c t i o n ( E ) { v a r   C = M a t h . m a x ( t h i s . t o p , E . t o p ) , D = M a t h . m i n ( t h i s . r i g h t , E . r i g h t ) , A = M a t h . m i n ( t h i s . b o t t o m , E . b o t t o m ) , B = M a t h . m a x ( t h i s . l e f t , E . l e f t ) ; i f ( A > = C & & D > = B ) { r e t u r n   n e w   Y A H O O . u t i l . R e g i o n ( C , D , A , B ) ;  
 } e l s e { r e t u r n   n u l l ; } } ; Y A H O O . u t i l . R e g i o n . p r o t o t y p e . u n i o n = f u n c t i o n ( E ) { v a r   C = M a t h . m i n ( t h i s . t o p , E . t o p ) , D = M a t h . m a x ( t h i s . r i g h t , E . r i g h t ) , A = M a t h . m a x ( t h i s . b o t t o m , E . b o t t o m ) , B = M a t h . m i n ( t h i s . l e f t , E . l e f t ) ; r e t u r n   n e w   Y A H O O . u t i l . R e g i o n ( C , D , A , B ) ; } ; Y A H O O . u t i l . R e g i o n . p r o t o t y p e . t o S t r i n g = f u n c t i o n ( ) { r e t u r n ( " R e g i o n   { " + " t o p :   " + t h i s . t o p + " ,   r i g h t :   " + t h i s . r i g h t + " ,   b o t t o m :   " + t h i s . b o t t o m + " ,   l e f t :   " + t h i s . l e f t + " ,   h e i g h t :   " + t h i s . h e i g h t + " ,   w i d t h :   " + t h i s . w i d t h + " } " ) ; } ; Y A H O O . u t i l . R e g i o n . g e t R e g i o n = f u n c t i o n ( D ) { v a r   F = Y A H O O . u t i l . D o m . g e t X Y ( D ) , C = F [ 1 ] , E = F [ 0 ] + D . o f f s e t W i d t h , A = F [ 1 ] + D . o f f s e t H e i g h t , B = F [ 0 ] ; r e t u r n   n e w   Y A H O O . u t i l . R e g i o n ( C , E , A , B ) ; } ; Y A H O O . u t i l . P o i n t = f u n c t i o n ( A , B ) { i f ( Y A H O O . l a n g . i s A r r a y ( A ) ) { B = A [ 1 ] ; A = A [ 0 ] ; } Y A H O O . u t i l . P o i n t . s u p e r c l a s s . c o n s t r u c t o r . c a l l ( t h i s , B , A , B , A ) ; } ; Y A H O O . e x t e n d ( Y A H O O . u t i l . P o i n t , Y A H O O . u t i l . R e g i o n ) ; ( f u n c t i o n ( ) { v a r   B = Y A H O O . u t i l , A = " c l i e n t T o p " , F = " c l i e n t L e f t " , J = " p a r e n t N o d e " , K = " r i g h t " , W = " h a s L a y o u t " , I = " p x " , U = " o p a c i t y " , L = " a u t o " , D = " b o r d e r L e f t W i d t h " , G = " b o r d e r T o p W i d t h " , P = " b o r d e r R i g h t W i d t h " , V = " b o r d e r B o t t o m W i d t h " , S = " v i s i b l e " , Q = " t r a n s p a r e n t " , N = " h e i g h t " , E = " w i d t h " , H = " s t y l e " , T = " c u r r e n t S t y l e " , R = / ^ w i d t h | h e i g h t $ / , O = / ^ ( \ d [ . \ d ] * ) + ( e m | e x | p x | g d | r e m | v w | v h | v m | c h | m m | c m | i n | p t | p c | d e g | r a d | m s | s | h z | k h z | % ) { 1 } ? / i , M = { g e t : f u n c t i o n ( X , Z ) { v a r   Y = " " , a = X [ T ] [ Z ] ; i f ( Z = = = U ) { Y = B . D o m . g e t S t y l e ( X , U ) ; } e l s e { i f ( ! a | | ( a . i n d e x O f & & a . i n d e x O f ( I ) > - 1 ) ) { Y = a ; } e l s e { i f ( B . D o m . I E _ C O M P U T E D [ Z ] ) { Y = B . D o m . I E _ C O M P U T E D [ Z ] ( X , Z ) ; } e l s e { i f ( O . t e s t ( a ) ) { Y = B . D o m . I E . C o m p u t e d S t y l e . g e t P i x e l ( X , Z ) ; } e l s e { Y = a ; } } } } r e t u r n   Y ; } , g e t O f f s e t : f u n c t i o n ( Z , e ) { v a r   b = Z [ T ] [ e ] , X = e . c h a r A t ( 0 ) . t o U p p e r C a s e ( ) + e . s u b s t r ( 1 ) , c = " o f f s e t " + X , Y = " p i x e l " + X , a = " " , d ; i f ( b = = L ) { d = Z [ c ] ; i f ( d = = = u n d e f i n e d ) { a = 0 ; } a = d ; i f ( R . t e s t ( e ) ) { Z [ H ] [ e ] = d ; i f ( Z [ c ] > d ) { a = d - ( Z [ c ] - d ) ; } Z [ H ] [ e ] = L ; } } e l s e { i f ( ! Z [ H ] [ Y ] & & ! Z [ H ] [ e ] ) { Z [ H ] [ e ] = b ; } a = Z [ H ] [ Y ] ; } r e t u r n   a + I ; } , g e t B o r d e r W i d t h : f u n c t i o n ( X , Z ) { v a r   Y = n u l l ; i f ( ! X [ T ] [ W ] ) { X [ H ] . z o o m = 1 ; } s w i t c h ( Z ) { c a s e   G : Y = X [ A ] ; b r e a k ; c a s e   V : Y = X . o f f s e t H e i g h t - X . c l i e n t H e i g h t - X [ A ] ; b r e a k ; c a s e   D : Y = X [ F ] ; b r e a k ; c a s e   P : Y = X . o f f s e t W i d t h - X . c l i e n t W i d t h - X [ F ] ; b r e a k ; } r e t u r n   Y + I ; } , g e t P i x e l : f u n c t i o n ( Y , X ) { v a r   a = n u l l , b = Y [ T ] [ K ] , Z = Y [ T ] [ X ] ; Y [ H ] [ K ] = Z ; a = Y [ H ] . p i x e l R i g h t ; Y [ H ] [ K ] = b ; r e t u r n   a + I ; } , g e t M a r g i n : f u n c t i o n ( Y , X ) { v a r   Z ; i f ( Y [ T ] [ X ] = = L ) { Z = 0 + I ; } e l s e { Z = B . D o m . I E . C o m p u t e d S t y l e . g e t P i x e l ( Y , X ) ; } r e t u r n   Z ; } , g e t V i s i b i l i t y : f u n c t i o n ( Y , X ) { v a r   Z ; w h i l e ( ( Z = Y [ T ] ) & & Z [ X ] = = " i n h e r i t " ) { Y = Y [ J ] ; } r e t u r n ( Z ) ? Z [ X ] : S ; } , g e t C o l o r : f u n c t i o n ( Y , X ) { r e t u r n   B . D o m . C o l o r . t o R G B ( Y [ T ] [ X ] ) | | Q ; } , g e t B o r d e r C o l o r : f u n c t i o n ( Y , X ) { v a r   Z = Y [ T ] , a = Z [ X ] | | Z . c o l o r ; r e t u r n   B . D o m . C o l o r . t o R G B ( B . D o m . C o l o r . t o H e x ( a ) ) ; } } , C = { } ; C . t o p = C . r i g h t = C . b o t t o m = C . l e f t = C [ E ] = C [ N ] = M . g e t O f f s e t ; C . c o l o r = M . g e t C o l o r ; C [ G ] = C [ P ] = C [ V ] = C [ D ] = M . g e t B o r d e r W i d t h ; C . m a r g i n T o p = C . m a r g i n R i g h t = C . m a r g i n B o t t o m = C . m a r g i n L e f t = M . g e t M a r g i n ; C . v i s i b i l i t y = M . g e t V i s i b i l i t y ; C . b o r d e r C o l o r = C . b o r d e r T o p C o l o r = C . b o r d e r R i g h t C o l o r = C . b o r d e r B o t t o m C o l o r = C . b o r d e r L e f t C o l o r = M . g e t B o r d e r C o l o r ; B . D o m . I E _ C O M P U T E D = C ; B . D o m . I E _ C o m p u t e d S t y l e = M ; } ) ( ) ; ( f u n c t i o n ( ) { v a r   C = " t o S t r i n g " , A = p a r s e I n t , B = R e g E x p , D = Y A H O O . u t i l ; D . D o m . C o l o r = { K E Y W O R D S : { b l a c k : " 0 0 0 " , s i l v e r : " c 0 c 0 c 0 " , g r a y : " 8 0 8 0 8 0 " , w h i t e : " f f f " , m a r o o n : " 8 0 0 0 0 0 " , r e d : " f 0 0 " , p u r p l e : " 8 0 0 0 8 0 " , f u c h s i a : " f 0 f " , g r e e n : " 0 0 8 0 0 0 " , l i m e : " 0 f 0 " , o l i v e : " 8 0 8 0 0 0 " , y e l l o w : " f f 0 " , n a v y : " 0 0 0 0 8 0 " , b l u e : " 0 0 f " , t e a l : " 0 0 8 0 8 0 " , a q u a : " 0 f f " } , r e _ R G B : / ^ r g b \ ( ( [ 0 - 9 ] + ) \ s * , \ s * ( [ 0 - 9 ] + ) \ s * , \ s * ( [ 0 - 9 ] + ) \ ) $ / i , r e _ h e x : / ^ # ? ( [ 0 - 9 A - F ] { 2 } ) ( [ 0 - 9 A - F ] { 2 } ) ( [ 0 - 9 A - F ] { 2 } ) $ / i , r e _ h e x 3 : / ( [ 0 - 9 A - F ] ) / g i , t o R G B : f u n c t i o n ( E ) { i f ( ! D . D o m . C o l o r . r e _ R G B . t e s t ( E ) ) { E = D . D o m . C o l o r . t o H e x ( E ) ; } i f ( D . D o m . C o l o r . r e _ h e x . e x e c ( E ) ) { E = " r g b ( " + [ A ( B . $ 1 , 1 6 ) , A ( B . $ 2 , 1 6 ) , A ( B . $ 3 , 1 6 ) ] . j o i n ( " ,   " ) + " ) " ; } r e t u r n   E ; } , t o H e x : f u n c t i o n ( H ) { H = D . D o m . C o l o r . K E Y W O R D S [ H ] | | H ; i f ( D . D o m . C o l o r . r e _ R G B . e x e c ( H ) ) { v a r   G = ( B . $ 1 . l e n g t h = = = 1 ) ? " 0 " + B . $ 1 : N u m b e r ( B . $ 1 ) , F = ( B . $ 2 . l e n g t h = = = 1 ) ? " 0 " + B . $ 2 : N u m b e r ( B . $ 2 ) , E = ( B . $ 3 . l e n g t h = = = 1 ) ? " 0 " + B . $ 3 : N u m b e r ( B . $ 3 ) ; H = [ G [ C ] ( 1 6 ) , F [ C ] ( 1 6 ) , E [ C ] ( 1 6 ) ] . j o i n ( " " ) ; } i f ( H . l e n g t h < 6 ) { H = H . r e p l a c e ( D . D o m . C o l o r . r e _ h e x 3 , " $ 1 $ 1 " ) ; } i f ( H ! = = " t r a n s p a r e n t " & & H . i n d e x O f ( " # " ) < 0 ) { H = " # " + H ; } r e t u r n   H . t o L o w e r C a s e ( ) ; } } ; } ( ) ) ; Y A H O O . r e g i s t e r ( " d o m " , Y A H O O . u t i l . D o m , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ; Y A H O O . u t i l . C u s t o m E v e n t = f u n c t i o n ( D , C , B , A ) { t h i s . t y p e = D ; t h i s . s c o p e = C | | w i n d o w ; t h i s . s i l e n t = B ; t h i s . s i g n a t u r e = A | | Y A H O O . u t i l . C u s t o m E v e n t . L I S T ; t h i s . s u b s c r i b e r s = [ ] ; i f ( ! t h i s . s i l e n t ) { } v a r   E = " _ Y U I C E O n S u b s c r i b e " ; i f ( D ! = = E ) { t h i s . s u b s c r i b e E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( E , t h i s , t r u e ) ; } t h i s . l a s t E r r o r = n u l l ; } ; Y A H O O . u t i l . C u s t o m E v e n t . L I S T = 0 ; Y A H O O . u t i l . C u s t o m E v e n t . F L A T = 1 ; Y A H O O . u t i l . C u s t o m E v e n t . p r o t o t y p e = { s u b s c r i b e : f u n c t i o n ( A , B , C ) { i f ( ! A ) { t h r o w   n e w   E r r o r ( " I n v a l i d   c a l l b a c k   f o r   s u b s c r i b e r   t o   ' " + t h i s . t y p e + " ' " ) ; } i f ( t h i s . s u b s c r i b e E v e n t ) { t h i s . s u b s c r i b e E v e n t . f i r e ( A , B , C ) ; } t h i s . s u b s c r i b e r s . p u s h ( n e w   Y A H O O . u t i l . S u b s c r i b e r ( A , B , C ) ) ; } , u n s u b s c r i b e : f u n c t i o n ( D , F ) { i f ( ! D ) { r e t u r n   t h i s . u n s u b s c r i b e A l l ( ) ; } v a r   E = f a l s e ; f o r ( v a r   B = 0 , A = t h i s . s u b s c r i b e r s . l e n g t h ; B < A ; + + B ) { v a r   C = t h i s . s u b s c r i b e r s [ B ] ; i f ( C & & C . c o n t a i n s ( D , F ) ) { t h i s . _ d e l e t e ( B ) ; E = t r u e ; } } r e t u r n   E ; } , f i r e : f u n c t i o n ( ) { t h i s . l a s t E r r o r = n u l l ; v a r   K = [ ] , E = t h i s . s u b s c r i b e r s . l e n g t h ; i f ( ! E & & t h i s . s i l e n t ) { r e t u r n   t r u e ; } v a r   I = [ ] . s l i c e . c a l l ( a r g u m e n t s , 0 ) , G = t r u e , D , J = f a l s e ; i f ( ! t h i s . s i l e n t ) { } v a r   C = t h i s . s u b s c r i b e r s . s l i c e ( ) , A = Y A H O O . u t i l . E v e n t . t h r o w E r r o r s ; f o r ( D = 0 ; D < E ; + + D ) { v a r   M = C [ D ] ; i f ( ! M ) { J = t r u e ; } e l s e { i f ( ! t h i s . s i l e n t ) { } v a r   L = M . g e t S c o p e ( t h i s . s c o p e ) ; i f ( t h i s . s i g n a t u r e = = Y A H O O . u t i l . C u s t o m E v e n t . F L A T ) { v a r   B = n u l l ; i f ( I . l e n g t h > 0 ) { B = I [ 0 ] ; } t r y { G = M . f n . c a l l ( L , B , M . o b j ) ; } c a t c h ( F ) { t h i s . l a s t E r r o r = F ; i f ( A ) { t h r o w   F ; } } } e l s e { t r y { G = M . f n . c a l l ( L , t h i s . t y p e , I , M . o b j ) ; } c a t c h ( H ) { t h i s . l a s t E r r o r = H ; i f ( A ) { t h r o w   H ; } } } i f ( f a l s e = = = G ) { i f ( ! t h i s . s i l e n t ) { } b r e a k ; } } } r e t u r n ( G ! = = f a l s e ) ; } , u n s u b s c r i b e A l l : f u n c t i o n ( ) { v a r   A = t h i s . s u b s c r i b e r s . l e n g t h , B ; f o r ( B = A - 1 ; B > - 1 ; B - - ) { t h i s . _ d e l e t e ( B ) ; } t h i s . s u b s c r i b e r s = [ ] ; r e t u r n   A ; } , _ d e l e t e : f u n c t i o n ( A ) { v a r   B = t h i s . s u b s c r i b e r s [ A ] ; i f ( B ) { d e l e t e   B . f n ; d e l e t e   B . o b j ; } t h i s . s u b s c r i b e r s . s p l i c e ( A , 1 ) ; } , t o S t r i n g : f u n c t i o n ( ) { r e t u r n " C u s t o m E v e n t :   " + " ' " + t h i s . t y p e + " ' ,   " + " c o n t e x t :   " + t h i s . s c o p e ; } } ; Y A H O O . u t i l . S u b s c r i b e r = f u n c t i o n ( A , B , C ) { t h i s . f n = A ; t h i s . o b j = Y A H O O . l a n g . i s U n d e f i n e d ( B ) ? n u l l : B ; t h i s . o v e r r i d e C o n t e x t = C ; } ; Y A H O O . u t i l . S u b s c r i b e r . p r o t o t y p e . g e t S c o p e = f u n c t i o n ( A ) { i f ( t h i s . o v e r r i d e C o n t e x t ) { i f ( t h i s . o v e r r i d e C o n t e x t = = = t r u e ) { r e t u r n   t h i s . o b j ; } e l s e { r e t u r n   t h i s . o v e r r i d e C o n t e x t ; } } r e t u r n   A ; } ; Y A H O O . u t i l . S u b s c r i b e r . p r o t o t y p e . c o n t a i n s = f u n c t i o n ( A , B ) { i f ( B ) { r e t u r n ( t h i s . f n = = A & & t h i s . o b j = = B ) ; } e l s e { r e t u r n ( t h i s . f n = = A ) ; } } ; Y A H O O . u t i l . S u b s c r i b e r . p r o t o t y p e . t o S t r i n g = f u n c t i o n ( ) { r e t u r n " S u b s c r i b e r   {   o b j :   " + t h i s . o b j + " ,   o v e r r i d e C o n t e x t :   " + ( t h i s . o v e r r i d e C o n t e x t | | " n o " ) + "   } " ; } ; i f ( ! Y A H O O . u t i l . E v e n t ) { Y A H O O . u t i l . E v e n t = f u n c t i o n ( ) { v a r   H = f a l s e ; v a r   I = [ ] ; v a r   J = [ ] ; v a r   G = [ ] ; v a r   E = [ ] ; v a r   C = 0 ; v a r   F = [ ] ; v a r   B = [ ] ; v a r   A = 0 ; v a r   D = { 6 3 2 3 2 : 3 8 , 6 3 2 3 3 : 4 0 , 6 3 2 3 4 : 3 7 , 6 3 2 3 5 : 3 9 , 6 3 2 7 6 : 3 3 , 6 3 2 7 7 : 3 4 , 2 5 : 9 } ; v a r   K = Y A H O O . e n v . u a . i e ? " f o c u s i n " : " f o c u s " ; v a r   L = Y A H O O . e n v . u a . i e ? " f o c u s o u t " : " b l u r " ; r e t u r n { P O L L _ R E T R Y S : 2 0 0 0 , P O L L _ I N T E R V A L : 2 0 , E L : 0 , T Y P E : 1 , F N : 2 , W F N : 3 , U N L O A D _ O B J : 3 , A D J _ S C O P E : 4 , O B J : 5 , O V E R R I D E : 6 , l a s t E r r o r : n u l l , i s S a f a r i : Y A H O O . e n v . u a . w e b k i t , w e b k i t : Y A H O O . e n v . u a . w e b k i t , i s I E : Y A H O O . e n v . u a . i e , _ i n t e r v a l : n u l l , _ d r i : n u l l , D O M R e a d y : f a l s e , t h r o w E r r o r s : f a l s e , s t a r t I n t e r v a l : f u n c t i o n ( ) { i f ( ! t h i s . _ i n t e r v a l ) { v a r   M = t h i s ; v a r   N = f u n c t i o n ( ) { M . _ t r y P r e l o a d A t t a c h ( ) ; } ; t h i s . _ i n t e r v a l = s e t I n t e r v a l ( N , t h i s . P O L L _ I N T E R V A L ) ; } } , o n A v a i l a b l e : f u n c t i o n ( S , O , Q , R , P ) { v a r   M = ( Y A H O O . l a n g . i s S t r i n g ( S ) ) ? [ S ] : S ; f o r ( v a r   N = 0 ; N < M . l e n g t h ; N = N + 1 ) { F . p u s h ( { i d : M [ N ] , f n : O , o b j : Q , o v e r r i d e C o n t e x t : R , c h e c k R e a d y : P } ) ; } C = t h i s . P O L L _ R E T R Y S ; t h i s . s t a r t I n t e r v a l ( ) ; } , o n C o n t e n t R e a d y : f u n c t i o n ( P , M , N , O ) { t h i s . o n A v a i l a b l e ( P , M , N , O , t r u e ) ; } , o n D O M R e a d y : f u n c t i o n ( M , N , O ) { i f ( t h i s . D O M R e a d y ) { s e t T i m e o u t ( f u n c t i o n ( ) { v a r   P = w i n d o w ; i f ( O ) { i f ( O = = = t r u e ) { P = N ; } e l s e { P = O ; } } M . c a l l ( P , " D O M R e a d y " , [ ] , N ) ; } , 0 ) ; } e l s e { t h i s . D O M R e a d y E v e n t . s u b s c r i b e ( M , N , O ) ; } } , _ a d d L i s t e n e r : f u n c t i o n ( O , M , Y , S , W , b ) { i f ( ! Y | | ! Y . c a l l ) { r e t u r n   f a l s e ; } i f ( t h i s . _ i s V a l i d C o l l e c t i o n ( O ) ) { v a r   Z = t r u e ; f o r ( v a r   T = 0 , V = O . l e n g t h ; T < V ; + + T ) { Z = t h i s . o n ( O [ T ] , M , Y , S , W ) & & Z ; } r e t u r n   Z ; } e l s e { i f ( Y A H O O . l a n g . i s S t r i n g ( O ) ) { v a r   R = t h i s . g e t E l ( O ) ; i f ( R ) { O = R ; } e l s e { t h i s . o n A v a i l a b l e ( O , f u n c t i o n ( ) { Y A H O O . u t i l . E v e n t . o n ( O , M , Y , S , W ) ; } ) ; r e t u r n   t r u e ; } } } i f ( ! O ) { r e t u r n   f a l s e ; } i f ( " u n l o a d " = = M & & S ! = = t h i s ) { J [ J . l e n g t h ] = [ O , M , Y , S , W ] ; r e t u r n   t r u e ; } v a r   N = O ; i f ( W ) { i f ( W = = = t r u e ) { N = S ; } e l s e { N = W ; } } v a r   P = f u n c t i o n ( c ) { r e t u r n   Y . c a l l ( N , Y A H O O . u t i l . E v e n t . g e t E v e n t ( c , O ) , S ) ; } ; v a r   a = [ O , M , Y , P , N , S , W ] ; v a r   U = I . l e n g t h ; I [ U ] = a ; i f ( t h i s . u s e L e g a c y E v e n t ( O , M ) ) { v a r   Q = t h i s . g e t L e g a c y I n d e x ( O , M ) ; i f ( Q = = - 1 | | O ! = G [ Q ] [ 0 ] ) { Q = G . l e n g t h ; B [ O . i d + M ] = Q ; G [ Q ] = [ O , M , O [ " o n " + M ] ] ; E [ Q ] = [ ] ; O [ " o n " + M ] = f u n c t i o n ( c ) { Y A H O O . u t i l . E v e n t . f i r e L e g a c y E v e n t ( Y A H O O . u t i l . E v e n t . g e t E v e n t ( c ) , Q ) ; } ; } E [ Q ] . p u s h ( a ) ; } e l s e { t r y { t h i s . _ s i m p l e A d d ( O , M , P , b ) ; } c a t c h ( X ) { t h i s . l a s t E r r o r = X ; t h i s . r e m o v e L i s t e n e r ( O , M , Y ) ; r e t u r n   f a l s e ; } } r e t u r n   t r u e ; } , a d d L i s t e n e r : f u n c t i o n ( N , Q , M , O , P ) { r e t u r n   t h i s . _ a d d L i s t e n e r ( N , Q , M , O , P , f a l s e ) ; } , a d d F o c u s L i s t e n e r : f u n c t i o n ( N , M , O , P ) { r e t u r n   t h i s . _ a d d L i s t e n e r ( N , K , M , O , P , t r u e ) ; } , r e m o v e F o c u s L i s t e n e r : f u n c t i o n ( N , M ) { r e t u r n   t h i s . r e m o v e L i s t e n e r ( N , K , M ) ; } , a d d B l u r L i s t e n e r : f u n c t i o n ( N , M , O , P ) { r e t u r n   t h i s . _ a d d L i s t e n e r ( N , L , M , O , P , t r u e ) ; } , r e m o v e B l u r L i s t e n e r : f u n c t i o n ( N , M ) { r e t u r n   t h i s . r e m o v e L i s t e n e r ( N , L , M ) ; } , f i r e L e g a c y E v e n t : f u n c t i o n ( R , P ) { v a r   T = t r u e , M , V , U , N , S ; V = E [ P ] . s l i c e ( ) ; f o r ( v a r   O = 0 , Q = V . l e n g t h ; O < Q ; + + O ) { U = V [ O ] ; i f ( U & & U [ t h i s . W F N ] ) { N = U [ t h i s . A D J _ S C O P E ] ; S = U [ t h i s . W F N ] . c a l l ( N , R ) ; T = ( T & & S ) ; } } M = G [ P ] ; i f ( M & & M [ 2 ] ) { M [ 2 ] ( R ) ; } r e t u r n   T ; } , g e t L e g a c y I n d e x : f u n c t i o n ( N , O ) { v a r   M = t h i s . g e n e r a t e I d ( N ) + O ; i f ( t y p e o f   B [ M ] = = " u n d e f i n e d " ) { r e t u r n   - 1 ; } e l s e { r e t u r n   B [ M ] ; } } , u s e L e g a c y E v e n t : f u n c t i o n ( M , N ) { r e t u r n ( t h i s . w e b k i t & & t h i s . w e b k i t < 4 1 9 & & ( " c l i c k " = = N | | " d b l c l i c k " = = N ) ) ; } , r e m o v e L i s t e n e r : f u n c t i o n ( N , M , V ) { v a r   Q , T , X ; i f ( t y p e o f   N = = " s t r i n g " ) { N = t h i s . g e t E l ( N ) ; } e l s e { i f ( t h i s . _ i s V a l i d C o l l e c t i o n ( N ) ) { v a r   W = t r u e ; f o r ( Q = N . l e n g t h - 1 ; Q > - 1 ; Q - - ) { W = ( t h i s . r e m o v e L i s t e n e r ( N [ Q ] , M , V ) & & W ) ; } r e t u r n   W ; } } i f ( ! V | | ! V . c a l l ) { r e t u r n   t h i s . p u r g e E l e m e n t ( N , f a l s e , M ) ; } i f ( " u n l o a d " = = M ) { f o r ( Q = J . l e n g t h - 1 ; Q > - 1 ; Q - - ) { X = J [ Q ] ; i f ( X & & X [ 0 ] = = N & & X [ 1 ] = = M & & X [ 2 ] = = V ) { J . s p l i c e ( Q , 1 ) ; r e t u r n   t r u e ; } } r e t u r n   f a l s e ; } v a r   R = n u l l ; v a r   S = a r g u m e n t s [ 3 ] ; i f ( " u n d e f i n e d " = = = t y p e o f   S ) { S = t h i s . _ g e t C a c h e I n d e x ( N , M , V ) ; } i f ( S > = 0 ) { R = I [ S ] ; } i f ( ! N | | ! R ) { r e t u r n   f a l s e ; } i f ( t h i s . u s e L e g a c y E v e n t ( N , M ) ) { v a r   P = t h i s . g e t L e g a c y I n d e x ( N , M ) ; v a r   O = E [ P ] ; i f ( O ) { f o r ( Q = 0 , T = O . l e n g t h ; Q < T ; + + Q ) { X = O [ Q ] ; i f ( X & & X [ t h i s . E L ] = = N & & X [ t h i s . T Y P E ] = = M & & X [ t h i s . F N ] = = V ) { O . s p l i c e ( Q , 1 ) ; b r e a k ; } } } } e l s e { t r y { t h i s . _ s i m p l e R e m o v e ( N , M , R [ t h i s . W F N ] , f a l s e ) ; } c a t c h ( U ) { t h i s . l a s t E r r o r = U ; r e t u r n   f a l s e ; } } d e l e t e   I [ S ] [ t h i s . W F N ] ; d e l e t e   I [ S ] [ t h i s . F N ] ;  
 I . s p l i c e ( S , 1 ) ; r e t u r n   t r u e ; } , g e t T a r g e t : f u n c t i o n ( O , N ) { v a r   M = O . t a r g e t | | O . s r c E l e m e n t ; r e t u r n   t h i s . r e s o l v e T e x t N o d e ( M ) ; } , r e s o l v e T e x t N o d e : f u n c t i o n ( N ) { t r y { i f ( N & & 3 = = N . n o d e T y p e ) { r e t u r n   N . p a r e n t N o d e ; } } c a t c h ( M ) { } r e t u r n   N ; } , g e t P a g e X : f u n c t i o n ( N ) { v a r   M = N . p a g e X ; i f ( ! M & & 0 ! = = M ) { M = N . c l i e n t X | | 0 ; i f ( t h i s . i s I E ) { M + = t h i s . _ g e t S c r o l l L e f t ( ) ; } } r e t u r n   M ; } , g e t P a g e Y : f u n c t i o n ( M ) { v a r   N = M . p a g e Y ; i f ( ! N & & 0 ! = = N ) { N = M . c l i e n t Y | | 0 ; i f ( t h i s . i s I E ) { N + = t h i s . _ g e t S c r o l l T o p ( ) ; } } r e t u r n   N ; } , g e t X Y : f u n c t i o n ( M ) { r e t u r n [ t h i s . g e t P a g e X ( M ) , t h i s . g e t P a g e Y ( M ) ] ; } , g e t R e l a t e d T a r g e t : f u n c t i o n ( N ) { v a r   M = N . r e l a t e d T a r g e t ; i f ( ! M ) { i f ( N . t y p e = = " m o u s e o u t " ) { M = N . t o E l e m e n t ; } e l s e { i f ( N . t y p e = = " m o u s e o v e r " ) { M = N . f r o m E l e m e n t ; } } } r e t u r n   t h i s . r e s o l v e T e x t N o d e ( M ) ; } , g e t T i m e : f u n c t i o n ( O ) { i f ( ! O . t i m e ) { v a r   N = n e w   D a t e ( ) . g e t T i m e ( ) ; t r y { O . t i m e = N ; } c a t c h ( M ) { t h i s . l a s t E r r o r = M ; r e t u r n   N ; } } r e t u r n   O . t i m e ; } , s t o p E v e n t : f u n c t i o n ( M ) { t h i s . s t o p P r o p a g a t i o n ( M ) ; t h i s . p r e v e n t D e f a u l t ( M ) ; } , s t o p P r o p a g a t i o n : f u n c t i o n ( M ) { i f ( M . s t o p P r o p a g a t i o n ) { M . s t o p P r o p a g a t i o n ( ) ; } e l s e { M . c a n c e l B u b b l e = t r u e ; } } , p r e v e n t D e f a u l t : f u n c t i o n ( M ) { i f ( M . p r e v e n t D e f a u l t ) { M . p r e v e n t D e f a u l t ( ) ; } e l s e { M . r e t u r n V a l u e = f a l s e ; } } , g e t E v e n t : f u n c t i o n ( O , M ) { v a r   N = O | | w i n d o w . e v e n t ; i f ( ! N ) { v a r   P = t h i s . g e t E v e n t . c a l l e r ; w h i l e ( P ) { N = P . a r g u m e n t s [ 0 ] ; i f ( N & & E v e n t = = N . c o n s t r u c t o r ) { b r e a k ; } P = P . c a l l e r ; } } r e t u r n   N ; } , g e t C h a r C o d e : f u n c t i o n ( N ) { v a r   M = N . k e y C o d e | | N . c h a r C o d e | | 0 ; i f ( Y A H O O . e n v . u a . w e b k i t & & ( M   i n   D ) ) { M = D [ M ] ; } r e t u r n   M ; } , _ g e t C a c h e I n d e x : f u n c t i o n ( Q , R , P ) { f o r ( v a r   O = 0 , N = I . l e n g t h ; O < N ; O = O + 1 ) { v a r   M = I [ O ] ; i f ( M & & M [ t h i s . F N ] = = P & & M [ t h i s . E L ] = = Q & & M [ t h i s . T Y P E ] = = R ) { r e t u r n   O ; } } r e t u r n   - 1 ; } , g e n e r a t e I d : f u n c t i o n ( M ) { v a r   N = M . i d ; i f ( ! N ) { N = " y u i e v t a u t o i d - " + A ; + + A ; M . i d = N ; } r e t u r n   N ; } , _ i s V a l i d C o l l e c t i o n : f u n c t i o n ( N ) { t r y { r e t u r n ( N & & t y p e o f   N ! = = " s t r i n g " & & N . l e n g t h & & ! N . t a g N a m e & & ! N . a l e r t & & t y p e o f   N [ 0 ] ! = = " u n d e f i n e d " ) ; } c a t c h ( M ) { r e t u r n   f a l s e ; } } , e l C a c h e : { } , g e t E l : f u n c t i o n ( M ) { r e t u r n ( t y p e o f   M = = = " s t r i n g " ) ? d o c u m e n t . g e t E l e m e n t B y I d ( M ) : M ; } , c l e a r C a c h e : f u n c t i o n ( ) { } , D O M R e a d y E v e n t : n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " D O M R e a d y " , t h i s ) , _ l o a d : f u n c t i o n ( N ) { i f ( ! H ) { H = t r u e ; v a r   M = Y A H O O . u t i l . E v e n t ; M . _ r e a d y ( ) ; M . _ t r y P r e l o a d A t t a c h ( ) ; } } , _ r e a d y : f u n c t i o n ( N ) { v a r   M = Y A H O O . u t i l . E v e n t ; i f ( ! M . D O M R e a d y ) { M . D O M R e a d y = t r u e ; M . D O M R e a d y E v e n t . f i r e ( ) ; M . _ s i m p l e R e m o v e ( d o c u m e n t , " D O M C o n t e n t L o a d e d " , M . _ r e a d y ) ; } } , _ t r y P r e l o a d A t t a c h : f u n c t i o n ( ) { i f ( F . l e n g t h = = = 0 ) { C = 0 ; i f ( t h i s . _ i n t e r v a l ) { 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 ; } r e t u r n ; } i f ( t h i s . l o c k e d ) { r e t u r n ; } i f ( t h i s . i s I E ) { i f ( ! t h i s . D O M R e a d y ) { t h i s . s t a r t I n t e r v a l ( ) ; r e t u r n ; } } t h i s . l o c k e d = t r u e ; v a r   S = ! H ; i f ( ! S ) { S = ( C > 0 & & F . l e n g t h > 0 ) ; } v a r   R = [ ] ; v a r   T = f u n c t i o n ( V , W ) { v a r   U = V ; i f ( W . o v e r r i d e C o n t e x t ) { i f ( W . o v e r r i d e C o n t e x t = = = t r u e ) { U = W . o b j ; } e l s e { U = W . o v e r r i d e C o n t e x t ; } } W . f n . c a l l ( U , W . o b j ) ; } ; v a r   N , M , Q , P , O = [ ] ; f o r ( N = 0 , M = F . l e n g t h ; N < M ; N = N + 1 ) { Q = F [ N ] ; i f ( Q ) { P = t h i s . g e t E l ( Q . i d ) ; i f ( P ) { i f ( Q . c h e c k R e a d y ) { i f ( H | | P . n e x t S i b l i n g | | ! S ) { O . p u s h ( Q ) ; F [ N ] = n u l l ; } } e l s e { T ( P , Q ) ; F [ N ] = n u l l ; } } e l s e { R . p u s h ( Q ) ; } } } f o r ( N = 0 , M = O . l e n g t h ; N < M ; N = N + 1 ) { Q = O [ N ] ; T ( t h i s . g e t E l ( Q . i d ) , Q ) ; } C - - ; i f ( S ) { f o r ( N = F . l e n g t h - 1 ; N > - 1 ; N - - ) { Q = F [ N ] ; i f ( ! Q | | ! Q . i d ) { F . s p l i c e ( N , 1 ) ; } } t h i s . s t a r t I n t e r v a l ( ) ; } e l s e { i f ( t h i s . _ i n t e r v a l ) { 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 ; } } t h i s . l o c k e d = f a l s e ; } , p u r g e E l e m e n t : f u n c t i o n ( Q , R , T ) { v a r   O = ( Y A H O O . l a n g . i s S t r i n g ( Q ) ) ? t h i s . g e t E l ( Q ) : Q ; v a r   S = t h i s . g e t L i s t e n e r s ( O , T ) , P , M ; i f ( S ) { f o r ( P = S . l e n g t h - 1 ; P > - 1 ; P - - ) { v a r   N = S [ P ] ; t h i s . r e m o v e L i s t e n e r ( O , N . t y p e , N . f n ) ; } } i f ( R & & O & & O . c h i l d N o d e s ) { f o r ( P = 0 , M = O . c h i l d N o d e s . l e n g t h ; P < M ; + + P ) { t h i s . p u r g e E l e m e n t ( O . c h i l d N o d e s [ P ] , R , T ) ; } } } , g e t L i s t e n e r s : f u n c t i o n ( O , M ) { v a r   R = [ ] , N ; i f ( ! M ) { N = [ I , J ] ; } e l s e { i f ( M = = = " u n l o a d " ) { N = [ J ] ; } e l s e { N = [ I ] ; } } v a r   T = ( Y A H O O . l a n g . i s S t r i n g ( O ) ) ? t h i s . g e t E l ( O ) : O ; f o r ( v a r   Q = 0 ; Q < N . l e n g t h ; Q = Q + 1 ) { v a r   V = N [ Q ] ; i f ( V ) { f o r ( v a r   S = 0 , U = V . l e n g t h ; S < U ; + + S ) { v a r   P = V [ S ] ; i f ( P & & P [ t h i s . E L ] = = = T & & ( ! M | | M = = = P [ t h i s . T Y P E ] ) ) { R . p u s h ( { t y p e : P [ t h i s . T Y P E ] , f n : P [ t h i s . F N ] , o b j : P [ t h i s . O B J ] , a d j u s t : P [ t h i s . O V E R R I D E ] , s c o p e : P [ t h i s . A D J _ S C O P E ] , i n d e x : S } ) ; } } } } r e t u r n ( R . l e n g t h ) ? R : n u l l ; } , _ u n l o a d : f u n c t i o n ( T ) { v a r   N = Y A H O O . u t i l . E v e n t , Q , P , O , S , R , U = J . s l i c e ( ) , M ; f o r ( Q = 0 , S = J . l e n g t h ; Q < S ; + + Q ) { O = U [ Q ] ; i f ( O ) { M = w i n d o w ; i f ( O [ N . A D J _ S C O P E ] ) { i f ( O [ N . A D J _ S C O P E ] = = = t r u e ) { M = O [ N . U N L O A D _ O B J ] ; } e l s e { M = O [ N . A D J _ S C O P E ] ; } } O [ N . F N ] . c a l l ( M , N . g e t E v e n t ( T , O [ N . E L ] ) , O [ N . U N L O A D _ O B J ] ) ; U [ Q ] = n u l l ; } } O = n u l l ; M = n u l l ; J = n u l l ; i f ( I ) { f o r ( P = I . l e n g t h - 1 ; P > - 1 ; P - - ) { O = I [ P ] ; i f ( O ) { N . r e m o v e L i s t e n e r ( O [ N . E L ] , O [ N . T Y P E ] , O [ N . F N ] , P ) ; } } O = n u l l ; } G = n u l l ; N . _ s i m p l e R e m o v e ( w i n d o w , " u n l o a d " , N . _ u n l o a d ) ; } , _ g e t S c r o l l L e f t : f u n c t i o n ( ) { r e t u r n   t h i s . _ g e t S c r o l l ( ) [ 1 ] ; } , _ g e t S c r o l l T o p : f u n c t i o n ( ) { r e t u r n   t h i s . _ g e t S c r o l l ( ) [ 0 ] ; } , _ g e t S c r o l l : f u n c t i o n ( ) { v a r   M = d o c u m e n t . d o c u m e n t E l e m e n t , N = d o c u m e n t . b o d y ; i f ( M & & ( M . s c r o l l T o p | | M . s c r o l l L e f t ) ) { r e t u r n [ M . s c r o l l T o p , M . s c r o l l L e f t ] ; } e l s e { i f ( N ) { r e t u r n [ N . s c r o l l T o p , N . s c r o l l L e f t ] ; } e l s e { r e t u r n [ 0 , 0 ] ; } } } , r e g C E : f u n c t i o n ( ) { } , _ s i m p l e A d d : f u n c t i o n ( ) { i f ( w i n d o w . a d d E v e n t L i s t e n e r ) { r e t u r n   f u n c t i o n ( O , P , N , M ) { O . a d d E v e n t L i s t e n e r ( P , N , ( M ) ) ; } ; } e l s e { i f ( w i n d o w . a t t a c h E v e n t ) { r e t u r n   f u n c t i o n ( O , P , N , M ) { O . a t t a c h E v e n t ( " o n " + P , N ) ; } ; } e l s e { r e t u r n   f u n c t i o n ( ) { } ; } } } ( ) , _ s i m p l e R e m o v e : f u n c t i o n ( ) { i f ( w i n d o w . r e m o v e E v e n t L i s t e n e r ) { r e t u r n   f u n c t i o n ( O , P , N , M ) { O . r e m o v e E v e n t L i s t e n e r ( P , N , ( M ) ) ; } ; } e l s e { i f ( w i n d o w . d e t a c h E v e n t ) { r e t u r n   f u n c t i o n ( N , O , M ) { N . d e t a c h E v e n t ( " o n " + O , M ) ; } ; } e l s e { r e t u r n   f u n c t i o n ( ) { } ; } } } ( ) } ; } ( ) ; ( f u n c t i o n ( ) { v a r   E U = Y A H O O . u t i l . E v e n t ; E U . o n = E U . a d d L i s t e n e r ; E U . o n F o c u s = E U . a d d F o c u s L i s t e n e r ; E U . o n B l u r = E U . a d d B l u r L i s t e n e r ;  
 / *   D O M R e a d y :   b a s e d   o n   w o r k   b y :   D e a n   E d w a r d s / J o h n   R e s i g / M a t t h i a s   M i l l e r   * /  
 i f ( E U . i s I E ) { Y A H O O . u t i l . E v e n t . o n D O M R e a d y ( Y A H O O . u t i l . E v e n t . _ t r y P r e l o a d A t t a c h , Y A H O O . u t i l . E v e n t , t r u e ) ; v a r   n = d o c u m e n t . c r e a t e E l e m e n t ( " p " ) ; E U . _ d r i = s e t I n t e r v a l ( f u n c t i o n ( ) { t r y { n . d o S c r o l l ( " l e f t " ) ; c l e a r I n t e r v a l ( E U . _ d r i ) ; E U . _ d r i = n u l l ; E U . _ r e a d y ( ) ; n = n u l l ; } c a t c h ( e x ) { } } , E U . P O L L _ I N T E R V A L ) ; } e l s e { i f ( E U . w e b k i t & & E U . w e b k i t < 5 2 5 ) { E U . _ d r i = s e t I n t e r v a l ( f u n c t i o n ( ) { v a r   r s = d o c u m e n t . r e a d y S t a t e ; i f ( " l o a d e d " = = r s | | " c o m p l e t e " = = r s ) { c l e a r I n t e r v a l ( E U . _ d r i ) ; E U . _ d r i = n u l l ; E U . _ r e a d y ( ) ; } } , E U . P O L L _ I N T E R V A L ) ; } e l s e { E U . _ s i m p l e A d d ( d o c u m e n t , " D O M C o n t e n t L o a d e d " , E U . _ r e a d y ) ; } } E U . _ s i m p l e A d d ( w i n d o w , " l o a d " , E U . _ l o a d ) ; E U . _ s i m p l e A d d ( w i n d o w , " u n l o a d " , E U . _ u n l o a d ) ; E U . _ t r y P r e l o a d A t t a c h ( ) ; } ) ( ) ; } Y A H O O . u t i l . E v e n t P r o v i d e r = f u n c t i o n ( ) { } ; Y A H O O . u t i l . E v e n t P r o v i d e r . p r o t o t y p e = { _ _ y u i _ e v e n t s : n u l l , _ _ y u i _ s u b s c r i b e r s : n u l l , s u b s c r i b e : f u n c t i o n ( A , C , F , E ) { t h i s . _ _ y u i _ e v e n t s = t h i s . _ _ y u i _ e v e n t s | | { } ; v a r   D = t h i s . _ _ y u i _ e v e n t s [ A ] ; i f ( D ) { D . s u b s c r i b e ( C , F , E ) ;  
 } e l s e { t h i s . _ _ y u i _ s u b s c r i b e r s = t h i s . _ _ y u i _ s u b s c r i b e r s | | { } ; v a r   B = t h i s . _ _ y u i _ s u b s c r i b e r s ; i f ( ! B [ A ] ) { B [ A ] = [ ] ; } B [ A ] . p u s h ( { f n : C , o b j : F , o v e r r i d e C o n t e x t : E } ) ; } } , u n s u b s c r i b e : f u n c t i o n ( C , E , G ) { t h i s . _ _ y u i _ e v e n t s = t h i s . _ _ y u i _ e v e n t s | | { } ; v a r   A = t h i s . _ _ y u i _ e v e n t s ; i f ( C ) { v a r   F = A [ C ] ; i f ( F ) { r e t u r n   F . u n s u b s c r i b e ( E , G ) ; } } e l s e { v a r   B = t r u e ; f o r ( v a r   D   i n   A ) { i f ( Y A H O O . l a n g . h a s O w n P r o p e r t y ( A , D ) ) { B = B & & A [ D ] . u n s u b s c r i b e ( E , G ) ; } } r e t u r n   B ; } r e t u r n   f a l s e ; } , u n s u b s c r i b e A l l : f u n c t i o n ( A ) { r e t u r n   t h i s . u n s u b s c r i b e ( A ) ; } , c r e a t e E v e n t : f u n c t i o n ( G , D ) { t h i s . _ _ y u i _ e v e n t s = t h i s . _ _ y u i _ e v e n t s | | { } ; v a r   A = D | | { } ; v a r   I = t h i s . _ _ y u i _ e v e n t s ; i f ( I [ G ] ) { } e l s e { v a r   H = A . s c o p e | | t h i s ; v a r   E = ( A . s i l e n t ) ; v a r   B = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( G , H , E , Y A H O O . u t i l . C u s t o m E v e n t . F L A T ) ; I [ G ] = B ; i f ( A . o n S u b s c r i b e C a l l b a c k ) { B . s u b s c r i b e E v e n t . s u b s c r i b e ( A . o n S u b s c r i b e C a l l b a c k ) ; } t h i s . _ _ y u i _ s u b s c r i b e r s = t h i s . _ _ y u i _ s u b s c r i b e r s | | { } ; v a r   F = t h i s . _ _ y u i _ s u b s c r i b e r s [ G ] ; i f ( F ) { f o r ( v a r   C = 0 ; C < F . l e n g t h ; + + C ) { B . s u b s c r i b e ( F [ C ] . f n , F [ C ] . o b j , F [ C ] . o v e r r i d e C o n t e x t ) ; } } } r e t u r n   I [ G ] ; } , f i r e E v e n t : f u n c t i o n ( E , D , A , C ) { t h i s . _ _ y u i _ e v e n t s = t h i s . _ _ y u i _ e v e n t s | | { } ; v a r   G = t h i s . _ _ y u i _ e v e n t s [ E ] ; i f ( ! G ) { r e t u r n   n u l l ; } v a r   B = [ ] ; f o r ( v a r   F = 1 ; F < a r g u m e n t s . l e n g t h ; + + F ) { B . p u s h ( a r g u m e n t s [ F ] ) ; } r e t u r n   G . f i r e . a p p l y ( G , B ) ; } , h a s E v e n t : f u n c t i o n ( A ) { i f ( t h i s . _ _ y u i _ e v e n t s ) { i f ( t h i s . _ _ y u i _ e v e n t s [ A ] ) { r e t u r n   t r u e ; } } r e t u r n   f a l s e ; } } ; ( f u n c t i o n ( ) { v a r   A = Y A H O O . u t i l . E v e n t , C = Y A H O O . l a n g ; Y A H O O . u t i l . K e y L i s t e n e r = f u n c t i o n ( D , I , E , F ) { i f ( ! D ) { } e l s e { i f ( ! I ) { } e l s e { i f ( ! E ) { } } } i f ( ! F ) { F = Y A H O O . u t i l . K e y L i s t e n e r . K E Y D O W N ; } v a r   G = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " k e y P r e s s e d " ) ; t h i s . e n a b l e d E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " e n a b l e d " ) ; t h i s . d i s a b l e d E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " d i s a b l e d " ) ; i f ( C . i s S t r i n g ( D ) ) { D = d o c u m e n t . g e t E l e m e n t B y I d ( D ) ; } i f ( C . i s F u n c t i o n ( E ) ) { G . s u b s c r i b e ( E ) ; } e l s e { G . s u b s c r i b e ( E . f n , E . s c o p e , E . c o r r e c t S c o p e ) ; } f u n c t i o n   H ( O , N ) { i f ( ! I . s h i f t ) { I . s h i f t = f a l s e ; } i f ( ! I . a l t ) { I . a l t = f a l s e ; } i f ( ! I . c t r l ) { I . c t r l = f a l s e ; } i f ( O . s h i f t K e y = = I . s h i f t & & O . a l t K e y = = I . a l t & & O . c t r l K e y = = I . c t r l ) { v a r   J , M = I . k e y s , L ; i f ( Y A H O O . l a n g . i s A r r a y ( M ) ) { f o r ( v a r   K = 0 ; K < M . l e n g t h ; K + + ) { J = M [ K ] ; L = A . g e t C h a r C o d e ( O ) ; i f ( J = = L ) { G . f i r e ( L , O ) ; b r e a k ; } } } e l s e { L = A . g e t C h a r C o d e ( O ) ; i f ( M = = L ) { G . f i r e ( L , O ) ; } } } } t h i s . e n a b l e = f u n c t i o n ( ) { i f ( ! t h i s . e n a b l e d ) { A . o n ( D , F , H ) ; t h i s . e n a b l e d E v e n t . f i r e ( I ) ; } t h i s . e n a b l e d = t r u e ; } ; t h i s . d i s a b l e = f u n c t i o n ( ) { i f ( t h i s . e n a b l e d ) { A . r e m o v e L i s t e n e r ( D , F , H ) ; t h i s . d i s a b l e d E v e n t . f i r e ( I ) ; } t h i s . e n a b l e d = f a l s e ; } ; t h i s . t o S t r i n g = f u n c t i o n ( ) { r e t u r n " K e y L i s t e n e r   [ " + I . k e y s + " ]   " + D . t a g N a m e + ( D . i d ? " [ " + D . i d + " ] " : " " ) ; } ; } ; v a r   B = Y A H O O . u t i l . K e y L i s t e n e r ; B . K E Y D O W N = " k e y d o w n " ; B . K E Y U P = " k e y u p " ; B . K E Y = { A L T : 1 8 , B A C K _ S P A C E : 8 , C A P S _ L O C K : 2 0 , C O N T R O L : 1 7 , D E L E T E : 4 6 , D O W N : 4 0 , E N D : 3 5 , E N T E R : 1 3 , E S C A P E : 2 7 , H O M E : 3 6 , L E F T : 3 7 , M E T A : 2 2 4 , N U M _ L O C K : 1 4 4 , P A G E _ D O W N : 3 4 , P A G E _ U P : 3 3 , P A U S E : 1 9 , P R I N T S C R E E N : 4 4 , R I G H T : 3 9 , S C R O L L _ L O C K : 1 4 5 , S H I F T : 1 6 , S P A C E : 3 2 , T A B : 9 , U P : 3 8 } ; } ) ( ) ; Y A H O O . r e g i s t e r ( " e v e n t " , Y A H O O . u t i l . E v e n t , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ; Y A H O O . r e g i s t e r ( " y u i l o a d e r - d o m - e v e n t " ,   Y A H O O ,   { v e r s i o n :   " 2 . 7 . 0 " ,   b u i l d :   " 1 7 9 9 " } ) ;  
  
 / *  
 C o p y r i g h t   ( c )   2 0 0 9 ,   Y a h o o !   I n c .   A l l   r i g h t s   r e s e r v e d .  
 C o d e   l i c e n s e d   u n d e r   t h e   B S D   L i c e n s e :  
 h t t p : / / d e v e l o p e r . y a h o o . n e t / y u i / l i c e n s e . t x t  
 v e r s i o n :   2 . 7 . 0  
 c o n t a i n e r - m i n . j s  
 * /  
 ( f u n c t i o n ( ) { Y A H O O . u t i l . C o n f i g = f u n c t i o n ( D ) { i f ( D ) { t h i s . i n i t ( D ) ; } } ; v a r   B = Y A H O O . l a n g , C = Y A H O O . u t i l . C u s t o m E v e n t , A = Y A H O O . u t i l . C o n f i g ; A . C O N F I G _ C H A N G E D _ E V E N T = " c o n f i g C h a n g e d " ; A . B O O L E A N _ T Y P E = " b o o l e a n " ; A . p r o t o t y p e = { o w n e r : n u l l , q u e u e I n P r o g r e s s : f a l s e , c o n f i g : n u l l , i n i t i a l C o n f i g : n u l l , e v e n t Q u e u e : n u l l , c o n f i g C h a n g e d E v e n t : n u l l , i n i t : f u n c t i o n ( D ) { t h i s . o w n e r = D ; t h i s . c o n f i g C h a n g e d E v e n t = t h i s . c r e a t e E v e n t ( A . C O N F I G _ C H A N G E D _ E V E N T ) ; t h i s . c o n f i g C h a n g e d E v e n t . s i g n a t u r e = C . L I S T ; t h i s . q u e u e I n P r o g r e s s = f a l s e ; t h i s . c o n f i g = { } ; t h i s . i n i t i a l C o n f i g = { } ; t h i s . e v e n t Q u e u e = [ ] ; } , c h e c k B o o l e a n : f u n c t i o n ( D ) { r e t u r n ( t y p e o f   D = = A . B O O L E A N _ T Y P E ) ; } , c h e c k N u m b e r : f u n c t i o n ( D ) { r e t u r n ( ! i s N a N ( D ) ) ; } , f i r e E v e n t : f u n c t i o n ( D , F ) { v a r   E = t h i s . c o n f i g [ D ] ; i f ( E & & E . e v e n t ) { E . e v e n t . f i r e ( F ) ; } } , a d d P r o p e r t y : f u n c t i o n ( E , D ) { E = E . t o L o w e r C a s e ( ) ; t h i s . c o n f i g [ E ] = D ; D . e v e n t = t h i s . c r e a t e E v e n t ( E , { s c o p e : t h i s . o w n e r } ) ; D . e v e n t . s i g n a t u r e = C . L I S T ; D . k e y = E ; i f ( D . h a n d l e r ) { D . e v e n t . s u b s c r i b e ( D . h a n d l e r , t h i s . o w n e r ) ; } t h i s . s e t P r o p e r t y ( E , D . v a l u e , t r u e ) ; i f ( ! D . s u p p r e s s E v e n t ) { t h i s . q u e u e P r o p e r t y ( E , D . v a l u e ) ; } } , g e t C o n f i g : f u n c t i o n ( ) { v a r   D = { } , F = t h i s . c o n f i g , G , E ; f o r ( G   i n   F ) { i f ( B . h a s O w n P r o p e r t y ( F , G ) ) { E = F [ G ] ; i f ( E & & E . e v e n t ) { D [ G ] = E . v a l u e ; } } } r e t u r n   D ; } , g e t P r o p e r t y : f u n c t i o n ( D ) { v a r   E = t h i s . c o n f i g [ D . t o L o w e r C a s e ( ) ] ; i f ( E & & E . e v e n t ) { r e t u r n   E . v a l u e ; } e l s e { r e t u r n   u n d e f i n e d ; } } , r e s e t P r o p e r t y : f u n c t i o n ( D ) { D = D . t o L o w e r C a s e ( ) ; v a r   E = t h i s . c o n f i g [ D ] ; i f ( E & & E . e v e n t ) { i f ( t h i s . i n i t i a l C o n f i g [ D ] & & ! B . i s U n d e f i n e d ( t h i s . i n i t i a l C o n f i g [ D ] ) ) { t h i s . s e t P r o p e r t y ( D , t h i s . i n i t i a l C o n f i g [ D ] ) ; r e t u r n   t r u e ; } } e l s e { r e t u r n   f a l s e ; } } , s e t P r o p e r t y : f u n c t i o n ( E , G , D ) { v a r   F ; E = E . t o L o w e r C a s e ( ) ; i f ( t h i s . q u e u e I n P r o g r e s s & & ! D ) { t h i s . q u e u e P r o p e r t y ( E , G ) ; r e t u r n   t r u e ; } e l s e { F = t h i s . c o n f i g [ E ] ; i f ( F & & F . e v e n t ) { i f ( F . v a l i d a t o r & & ! F . v a l i d a t o r ( G ) ) { r e t u r n   f a l s e ; } e l s e { F . v a l u e = G ; i f ( ! D ) { t h i s . f i r e E v e n t ( E , G ) ; t h i s . c o n f i g C h a n g e d E v e n t . f i r e ( [ E , G ] ) ; } r e t u r n   t r u e ; } } e l s e { r e t u r n   f a l s e ; } } } , q u e u e P r o p e r t y : f u n c t i o n ( S , P ) { S = S . t o L o w e r C a s e ( ) ; v a r   R = t h i s . c o n f i g [ S ] , K = f a l s e , J , G , H , I , O , Q , F , M , N , D , L , T , E ; i f ( R & & R . e v e n t ) { i f ( ! B . i s U n d e f i n e d ( P ) & & R . v a l i d a t o r & & ! R . v a l i d a t o r ( P ) ) { r e t u r n   f a l s e ; } e l s e { i f ( ! B . i s U n d e f i n e d ( P ) ) { R . v a l u e = P ; } e l s e { P = R . v a l u e ; } K = f a l s e ; J = t h i s . e v e n t Q u e u e . l e n g t h ; f o r ( L = 0 ; L < J ; L + + ) { G = t h i s . e v e n t Q u e u e [ L ] ; i f ( G ) { H = G [ 0 ] ; I = G [ 1 ] ; i f ( H = = S ) { t h i s . e v e n t Q u e u e [ L ] = n u l l ; t h i s . e v e n t Q u e u e . p u s h ( [ S , ( ! B . i s U n d e f i n e d ( P ) ? P : I ) ] ) ; K = t r u e ; b r e a k ; } } } i f ( ! K & & ! B . i s U n d e f i n e d ( P ) ) { t h i s . e v e n t Q u e u e . p u s h ( [ S , P ] ) ; } } i f ( R . s u p e r c e d e s ) { O = R . s u p e r c e d e s . l e n g t h ; f o r ( T = 0 ; T < O ; T + + ) { Q = R . s u p e r c e d e s [ T ] ; F = t h i s . e v e n t Q u e u e . l e n g t h ; f o r ( E = 0 ; E < F ; E + + ) { M = t h i s . e v e n t Q u e u e [ E ] ; i f ( M ) { N = M [ 0 ] ; D = M [ 1 ] ; i f ( N = = Q . t o L o w e r C a s e ( ) ) { t h i s . e v e n t Q u e u e . p u s h ( [ N , D ] ) ; t h i s . e v e n t Q u e u e [ E ] = n u l l ; b r e a k ; } } } } } r e t u r n   t r u e ; } e l s e { r e t u r n   f a l s e ; } } , r e f i r e E v e n t : f u n c t i o n ( D ) { D = D . t o L o w e r C a s e ( ) ; v a r   E = t h i s . c o n f i g [ D ] ; i f ( E & & E . e v e n t & & ! B . i s U n d e f i n e d ( E . v a l u e ) ) { i f ( t h i s . q u e u e I n P r o g r e s s ) { t h i s . q u e u e P r o p e r t y ( D ) ; } e l s e { t h i s . f i r e E v e n t ( D , E . v a l u e ) ; } } } , a p p l y C o n f i g : f u n c t i o n ( D , G ) { v a r   F , E ; i f ( G ) { E = { } ; f o r ( F   i n   D ) { i f ( B . h a s O w n P r o p e r t y ( D , F ) ) { E [ F . t o L o w e r C a s e ( ) ] = D [ F ] ; } } t h i s . i n i t i a l C o n f i g = E ; } f o r ( F   i n   D ) { i f ( B . h a s O w n P r o p e r t y ( D , F ) ) { t h i s . q u e u e P r o p e r t y ( F , D [ F ] ) ; } } } , r e f r e s h : f u n c t i o n ( ) { v a r   D ; f o r ( D   i n   t h i s . c o n f i g ) { i f ( B . h a s O w n P r o p e r t y ( t h i s . c o n f i g , D ) ) { t h i s . r e f i r e E v e n t ( D ) ; } } } , f i r e Q u e u e : f u n c t i o n ( ) { v a r   E , H , D , G , F ; t h i s . q u e u e I n P r o g r e s s = t r u e ; f o r ( E = 0 ; E < t h i s . e v e n t Q u e u e . l e n g t h ; E + + ) { H = t h i s . e v e n t Q u e u e [ E ] ; i f ( H ) { D = H [ 0 ] ; G = H [ 1 ] ; F = t h i s . c o n f i g [ D ] ; F . v a l u e = G ; t h i s . e v e n t Q u e u e [ E ] = n u l l ; t h i s . f i r e E v e n t ( D , G ) ; } } t h i s . q u e u e I n P r o g r e s s = f a l s e ; t h i s . e v e n t Q u e u e = [ ] ; } , s u b s c r i b e T o C o n f i g E v e n t : f u n c t i o n ( E , F , H , D ) { v a r   G = t h i s . c o n f i g [ E . t o L o w e r C a s e ( ) ] ; i f ( G & & G . e v e n t ) { i f ( ! A . a l r e a d y S u b s c r i b e d ( G . e v e n t , F , H ) ) { G . e v e n t . s u b s c r i b e ( F , H , D ) ; } r e t u r n   t r u e ; } e l s e { r e t u r n   f a l s e ; } } , u n s u b s c r i b e F r o m C o n f i g E v e n t : f u n c t i o n ( D , E , G ) { v a r   F = t h i s . c o n f i g [ D . t o L o w e r C a s e ( ) ] ; i f ( F & & F . e v e n t ) { r e t u r n   F . e v e n t . u n s u b s c r i b e ( E , G ) ; } e l s e { r e t u r n   f a l s e ; } } , t o S t r i n g : f u n c t i o n ( ) { v a r   D = " C o n f i g " ; i f ( t h i s . o w n e r ) { D + = "   [ " + t h i s . o w n e r . t o S t r i n g ( ) + " ] " ; } r e t u r n   D ; } , o u t p u t E v e n t Q u e u e : f u n c t i o n ( ) { v a r   D = " " , G , E , F = t h i s . e v e n t Q u e u e . l e n g t h ; f o r ( E = 0 ; E < F ; E + + ) { G = t h i s . e v e n t Q u e u e [ E ] ; i f ( G ) { D + = G [ 0 ] + " = " + G [ 1 ] + " ,   " ; } } r e t u r n   D ; } , d e s t r o y : f u n c t i o n ( ) { v a r   E = t h i s . c o n f i g , D , F ; f o r ( D   i n   E ) { i f ( B . h a s O w n P r o p e r t y ( E , D ) ) { F = E [ D ] ; F . e v e n t . u n s u b s c r i b e A l l ( ) ; F . e v e n t = n u l l ; } } t h i s . c o n f i g C h a n g e d E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . c o n f i g C h a n g e d E v e n t = n u l l ; t h i s . o w n e r = n u l l ; t h i s . c o n f i g = n u l l ; t h i s . i n i t i a l C o n f i g = n u l l ; t h i s . e v e n t Q u e u e = n u l l ; } } ; A . a l r e a d y S u b s c r i b e d = f u n c t i o n ( E , H , I ) { v a r   F = E . s u b s c r i b e r s . l e n g t h , D , G ; i f ( F > 0 ) { G = F - 1 ; d o { D = E . s u b s c r i b e r s [ G ] ; i f ( D & & D . o b j = = I & & D . f n = = H ) { r e t u r n   t r u e ; } } w h i l e ( G - - ) ; } r e t u r n   f a l s e ; } ; Y A H O O . l a n g . a u g m e n t P r o t o ( A , Y A H O O . u t i l . E v e n t P r o v i d e r ) ; } ( ) ) ; ( f u n c t i o n ( ) { Y A H O O . w i d g e t . M o d u l e = f u n c t i o n ( R , Q ) { i f ( R ) { t h i s . i n i t ( R , Q ) ; } e l s e { } } ; v a r   F = Y A H O O . u t i l . D o m , D = Y A H O O . u t i l . C o n f i g , N = Y A H O O . u t i l . E v e n t , M = Y A H O O . u t i l . C u s t o m E v e n t , G = Y A H O O . w i d g e t . M o d u l e , I = Y A H O O . e n v . u a , H , P , O , E , A = { " B E F O R E _ I N I T " : " b e f o r e I n i t " , " I N I T " : " i n i t " , " A P P E N D " : " a p p e n d " , " B E F O R E _ R E N D E R " : " b e f o r e R e n d e r " , " R E N D E R " : " r e n d e r " , " C H A N G E _ H E A D E R " : " c h a n g e H e a d e r " , " C H A N G E _ B O D Y " : " c h a n g e B o d y " , " C H A N G E _ F O O T E R " : " c h a n g e F o o t e r " , " C H A N G E _ C O N T E N T " : " c h a n g e C o n t e n t " , " D E S T O R Y " : " d e s t r o y " , " B E F O R E _ S H O W " : " b e f o r e S h o w " , " S H O W " : " s h o w " , " B E F O R E _ H I D E " : " b e f o r e H i d e " , " H I D E " : " h i d e " } , J = { " V I S I B L E " : { k e y : " v i s i b l e " , v a l u e : t r u e , v a l i d a t o r : Y A H O O . l a n g . i s B o o l e a n } , " E F F E C T " : { k e y : " e f f e c t " , s u p p r e s s E v e n t : t r u e , s u p e r c e d e s : [ " v i s i b l e " ] } , " M O N I T O R _ R E S I Z E " : { k e y : " m o n i t o r r e s i z e " , v a l u e : t r u e } , " A P P E N D _ T O _ D O C U M E N T _ B O D Y " : { k e y : " a p p e n d t o d o c u m e n t b o d y " , v a l u e : f a l s e } } ; G . I M G _ R O O T = n u l l ; G . I M G _ R O O T _ S S L = n u l l ; G . C S S _ M O D U L E = " y u i - m o d u l e " ; G . C S S _ H E A D E R = " h d " ; G . C S S _ B O D Y = " b d " ; G . C S S _ F O O T E R = " f t " ; G . R E S I Z E _ M O N I T O R _ S E C U R E _ U R L = " j a v a s c r i p t : f a l s e ; " ; G . R E S I Z E _ M O N I T O R _ B U F F E R = 1 ; G . t e x t R e s i z e E v e n t = n e w   M ( " t e x t R e s i z e " ) ; G . f o r c e D o c u m e n t R e d r a w = f u n c t i o n ( ) { v a r   Q = d o c u m e n t . d o c u m e n t E l e m e n t ; i f ( Q ) { Q . c l a s s N a m e + = "   " ; Q . c l a s s N a m e = Y A H O O . l a n g . t r i m ( Q . c l a s s N a m e ) ; } } ; f u n c t i o n   L ( ) { i f ( ! H ) { H = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; H . i n n e r H T M L = ( ' < d i v   c l a s s = " ' + G . C S S _ H E A D E R + ' " > < / d i v > ' + ' < d i v   c l a s s = " ' + G . C S S _ B O D Y + ' " > < / d i v > < d i v   c l a s s = " ' + G . C S S _ F O O T E R + ' " > < / d i v > ' ) ; P = H . f i r s t C h i l d ; O = P . n e x t S i b l i n g ; E = O . n e x t S i b l i n g ; } r e t u r n   H ; } f u n c t i o n   K ( ) { i f ( ! P ) { L ( ) ; } r e t u r n ( P . c l o n e N o d e ( f a l s e ) ) ; } f u n c t i o n   B ( ) { i f ( ! O ) { L ( ) ; } r e t u r n ( O . c l o n e N o d e ( f a l s e ) ) ; } f u n c t i o n   C ( ) { i f ( ! E ) { L ( ) ; } r e t u r n ( E . c l o n e N o d e ( f a l s e ) ) ; } G . p r o t o t y p e = { c o n s t r u c t o r : G , e l e m e n t : n u l l , h e a d e r : n u l l , b o d y : n u l l , f o o t e r : n u l l , i d : n u l l , i m a g e R o o t : G . I M G _ R O O T , i n i t E v e n t s : f u n c t i o n ( ) { v a r   Q = M . L I S T ;  
 t h i s . b e f o r e I n i t E v e n t = t h i s . c r e a t e E v e n t ( A . B E F O R E _ I N I T ) ; t h i s . b e f o r e I n i t E v e n t . s i g n a t u r e = Q ; t h i s . i n i t E v e n t = t h i s . c r e a t e E v e n t ( A . I N I T ) ; t h i s . i n i t E v e n t . s i g n a t u r e = Q ; t h i s . a p p e n d E v e n t = t h i s . c r e a t e E v e n t ( A . A P P E N D ) ; t h i s . a p p e n d E v e n t . s i g n a t u r e = Q ; t h i s . b e f o r e R e n d e r E v e n t = t h i s . c r e a t e E v e n t ( A . B E F O R E _ R E N D E R ) ; t h i s . b e f o r e R e n d e r E v e n t . s i g n a t u r e = Q ; t h i s . r e n d e r E v e n t = t h i s . c r e a t e E v e n t ( A . R E N D E R ) ; t h i s . r e n d e r E v e n t . s i g n a t u r e = Q ; t h i s . c h a n g e H e a d e r E v e n t = t h i s . c r e a t e E v e n t ( A . C H A N G E _ H E A D E R ) ; t h i s . c h a n g e H e a d e r E v e n t . s i g n a t u r e = Q ; t h i s . c h a n g e B o d y E v e n t = t h i s . c r e a t e E v e n t ( A . C H A N G E _ B O D Y ) ; t h i s . c h a n g e B o d y E v e n t . s i g n a t u r e = Q ; t h i s . c h a n g e F o o t e r E v e n t = t h i s . c r e a t e E v e n t ( A . C H A N G E _ F O O T E R ) ; t h i s . c h a n g e F o o t e r E v e n t . s i g n a t u r e = Q ; t h i s . c h a n g e C o n t e n t E v e n t = t h i s . c r e a t e E v e n t ( A . C H A N G E _ C O N T E N T ) ; t h i s . c h a n g e C o n t e n t E v e n t . s i g n a t u r e = Q ; t h i s . d e s t r o y E v e n t = t h i s . c r e a t e E v e n t ( A . D E S T O R Y ) ; t h i s . d e s t r o y E v e n t . s i g n a t u r e = Q ; t h i s . b e f o r e S h o w E v e n t = t h i s . c r e a t e E v e n t ( A . B E F O R E _ S H O W ) ; t h i s . b e f o r e S h o w E v e n t . s i g n a t u r e = Q ; t h i s . s h o w E v e n t = t h i s . c r e a t e E v e n t ( A . S H O W ) ; t h i s . s h o w E v e n t . s i g n a t u r e = Q ; t h i s . b e f o r e H i d e E v e n t = t h i s . c r e a t e E v e n t ( A . B E F O R E _ H I D E ) ; t h i s . b e f o r e H i d e E v e n t . s i g n a t u r e = Q ; t h i s . h i d e E v e n t = t h i s . c r e a t e E v e n t ( A . H I D E ) ; t h i s . h i d e E v e n t . s i g n a t u r e = Q ; } , p l a t f o r m : f u n c t i o n ( ) { v a r   Q = n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) ; i f ( Q . i n d e x O f ( " w i n d o w s " ) ! = - 1 | | Q . i n d e x O f ( " w i n 3 2 " ) ! = - 1 ) { r e t u r n " w i n d o w s " ; } e l s e { i f ( Q . i n d e x O f ( " m a c i n t o s h " ) ! = - 1 ) { r e t u r n " m a c " ; } e l s e { r e t u r n   f a l s e ; } } } ( ) , b r o w s e r : f u n c t i o n ( ) { v a r   Q = n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) ; i f ( Q . i n d e x O f ( " o p e r a " ) ! = - 1 ) { r e t u r n " o p e r a " ; } e l s e { i f ( Q . i n d e x O f ( " m s i e   7 " ) ! = - 1 ) { r e t u r n " i e 7 " ; } e l s e { i f ( Q . i n d e x O f ( " m s i e " ) ! = - 1 ) { r e t u r n " i e " ; } e l s e { i f ( Q . i n d e x O f ( " s a f a r i " ) ! = - 1 ) { r e t u r n " s a f a r i " ; } e l s e { i f ( Q . i n d e x O f ( " g e c k o " ) ! = - 1 ) { r e t u r n " g e c k o " ; } e l s e { r e t u r n   f a l s e ; } } } } } } ( ) , i s S e c u r e : f u n c t i o n ( ) { i f ( w i n d o w . l o c a t i o n . h r e f . t o L o w e r C a s e ( ) . i n d e x O f ( " h t t p s " ) = = = 0 ) { r e t u r n   t r u e ; } e l s e { r e t u r n   f a l s e ; } } ( ) , i n i t D e f a u l t C o n f i g : f u n c t i o n ( ) { t h i s . c f g . a d d P r o p e r t y ( J . V I S I B L E . k e y , { h a n d l e r : t h i s . c o n f i g V i s i b l e , v a l u e : J . V I S I B L E . v a l u e , v a l i d a t o r : J . V I S I B L E . v a l i d a t o r } ) ; t h i s . c f g . a d d P r o p e r t y ( J . E F F E C T . k e y , { s u p p r e s s E v e n t : J . E F F E C T . s u p p r e s s E v e n t , s u p e r c e d e s : J . E F F E C T . s u p e r c e d e s } ) ; t h i s . c f g . a d d P r o p e r t y ( J . M O N I T O R _ R E S I Z E . k e y , { h a n d l e r : t h i s . c o n f i g M o n i t o r R e s i z e , v a l u e : J . M O N I T O R _ R E S I Z E . v a l u e } ) ; t h i s . c f g . a d d P r o p e r t y ( J . A P P E N D _ T O _ D O C U M E N T _ B O D Y . k e y , { v a l u e : J . A P P E N D _ T O _ D O C U M E N T _ B O D Y . v a l u e } ) ; } , i n i t : f u n c t i o n ( V , U ) { v a r   S , W ; t h i s . i n i t E v e n t s ( ) ; t h i s . b e f o r e I n i t E v e n t . f i r e ( G ) ; t h i s . c f g = n e w   D ( t h i s ) ; i f ( t h i s . i s S e c u r e ) { t h i s . i m a g e R o o t = G . I M G _ R O O T _ S S L ; } i f ( t y p e o f   V = = " s t r i n g " ) { S = V ; V = d o c u m e n t . g e t E l e m e n t B y I d ( V ) ; i f ( ! V ) { V = ( L ( ) ) . c l o n e N o d e ( f a l s e ) ; V . i d = S ; } } t h i s . i d = F . g e n e r a t e I d ( V ) ; t h i s . e l e m e n t = V ; W = t h i s . e l e m e n t . f i r s t C h i l d ; i f ( W ) { v a r   R = f a l s e , Q = f a l s e , T = f a l s e ; d o { i f ( 1 = = W . n o d e T y p e ) { i f ( ! R & & F . h a s C l a s s ( W , G . C S S _ H E A D E R ) ) { t h i s . h e a d e r = W ; R = t r u e ; } e l s e { i f ( ! Q & & F . h a s C l a s s ( W , G . C S S _ B O D Y ) ) { t h i s . b o d y = W ; Q = t r u e ; } e l s e { i f ( ! T & & F . h a s C l a s s ( W , G . C S S _ F O O T E R ) ) { t h i s . f o o t e r = W ; T = t r u e ; } } } } } w h i l e ( ( W = W . n e x t S i b l i n g ) ) ; } t h i s . i n i t D e f a u l t C o n f i g ( ) ; F . a d d C l a s s ( t h i s . e l e m e n t , G . C S S _ M O D U L E ) ; i f ( U ) { t h i s . c f g . a p p l y C o n f i g ( U , t r u e ) ; } i f ( ! D . a l r e a d y S u b s c r i b e d ( t h i s . r e n d e r E v e n t , t h i s . c f g . f i r e Q u e u e , t h i s . c f g ) ) { t h i s . r e n d e r E v e n t . s u b s c r i b e ( t h i s . c f g . f i r e Q u e u e , t h i s . c f g , t r u e ) ; } t h i s . i n i t E v e n t . f i r e ( G ) ; } , i n i t R e s i z e M o n i t o r : f u n c t i o n ( ) { v a r   R = ( I . g e c k o & & t h i s . p l a t f o r m = = " w i n d o w s " ) ; i f ( R ) { v a r   Q = t h i s ; s e t T i m e o u t ( f u n c t i o n ( ) { Q . _ i n i t R e s i z e M o n i t o r ( ) ; } , 0 ) ; } e l s e { t h i s . _ i n i t R e s i z e M o n i t o r ( ) ; } } , _ i n i t R e s i z e M o n i t o r : f u n c t i o n ( ) { v a r   Q , S , U ; f u n c t i o n   W ( ) { G . t e x t R e s i z e E v e n t . f i r e ( ) ; } i f ( ! I . o p e r a ) { S = F . g e t ( " _ y u i R e s i z e M o n i t o r " ) ; v a r   V = t h i s . _ s u p p o r t s C W R e s i z e ( ) ; i f ( ! S ) { S = d o c u m e n t . c r e a t e E l e m e n t ( " i f r a m e " ) ; i f ( t h i s . i s S e c u r e & & G . R E S I Z E _ M O N I T O R _ S E C U R E _ U R L & & I . i e ) { S . s r c = G . R E S I Z E _ M O N I T O R _ S E C U R E _ U R L ; } i f ( ! V ) { U = [ " < h t m l > < h e a d > < s c r i p t   " , ' t y p e = " t e x t / j a v a s c r i p t " > ' , " w i n d o w . o n r e s i z e = f u n c t i o n ( ) { w i n d o w . p a r e n t . " , " Y A H O O . w i d g e t . M o d u l e . t e x t R e s i z e E v e n t . " , " f i r e ( ) ; } ; < " , " / s c r i p t > < / h e a d > " , " < b o d y > < / b o d y > < / h t m l > " ] . j o i n ( " " ) ; S . s r c = " d a t a : t e x t / h t m l ; c h a r s e t = u t f - 8 , " + e n c o d e U R I C o m p o n e n t ( U ) ; } S . i d = " _ y u i R e s i z e M o n i t o r " ; S . t i t l e = " T e x t   R e s i z e   M o n i t o r " ; S . s t y l e . p o s i t i o n = " a b s o l u t e " ; S . s t y l e . v i s i b i l i t y = " h i d d e n " ; v a r   R = d o c u m e n t . b o d y , T = R . f i r s t C h i l d ; i f ( T ) { R . i n s e r t B e f o r e ( S , T ) ; } e l s e { R . a p p e n d C h i l d ( S ) ; } S . s t y l e . w i d t h = " 2 e m " ; S . s t y l e . h e i g h t = " 2 e m " ; S . s t y l e . t o p = ( - 1 * ( S . o f f s e t H e i g h t + G . R E S I Z E _ M O N I T O R _ B U F F E R ) ) + " p x " ; S . s t y l e . l e f t = " 0 " ; S . s t y l e . b o r d e r W i d t h = " 0 " ; S . s t y l e . v i s i b i l i t y = " v i s i b l e " ; i f ( I . w e b k i t ) { Q = S . c o n t e n t W i n d o w . d o c u m e n t ; Q . o p e n ( ) ; Q . c l o s e ( ) ; } } i f ( S & & S . c o n t e n t W i n d o w ) { G . t e x t R e s i z e E v e n t . s u b s c r i b e ( t h i s . o n D o m R e s i z e , t h i s , t r u e ) ; i f ( ! G . t e x t R e s i z e I n i t i a l i z e d ) { i f ( V ) { i f ( ! N . o n ( S . c o n t e n t W i n d o w , " r e s i z e " , W ) ) { N . o n ( S , " r e s i z e " , W ) ; } } G . t e x t R e s i z e I n i t i a l i z e d = t r u e ; } t h i s . r e s i z e M o n i t o r = S ; } } } , _ s u p p o r t s C W R e s i z e : f u n c t i o n ( ) { v a r   Q = t r u e ; i f ( I . g e c k o & & I . g e c k o < = 1 . 8 ) { Q = f a l s e ; } r e t u r n   Q ; } , o n D o m R e s i z e : f u n c t i o n ( S , R ) { v a r   Q = - 1 * ( t h i s . r e s i z e M o n i t o r . o f f s e t H e i g h t + G . R E S I Z E _ M O N I T O R _ B U F F E R ) ; t h i s . r e s i z e M o n i t o r . s t y l e . t o p = Q + " p x " ; t h i s . r e s i z e M o n i t o r . s t y l e . l e f t = " 0 " ; } , s e t H e a d e r : f u n c t i o n ( R ) { v a r   Q = t h i s . h e a d e r | | ( t h i s . h e a d e r = K ( ) ) ; i f ( R . n o d e N a m e ) { Q . i n n e r H T M L = " " ; Q . a p p e n d C h i l d ( R ) ; } e l s e { Q . i n n e r H T M L = R ; } t h i s . c h a n g e H e a d e r E v e n t . f i r e ( R ) ; t h i s . c h a n g e C o n t e n t E v e n t . f i r e ( ) ; } , a p p e n d T o H e a d e r : f u n c t i o n ( R ) { v a r   Q = t h i s . h e a d e r | | ( t h i s . h e a d e r = K ( ) ) ; Q . a p p e n d C h i l d ( R ) ; t h i s . c h a n g e H e a d e r E v e n t . f i r e ( R ) ; t h i s . c h a n g e C o n t e n t E v e n t . f i r e ( ) ; } , s e t B o d y : f u n c t i o n ( R ) { v a r   Q = t h i s . b o d y | | ( t h i s . b o d y = B ( ) ) ; i f ( R . n o d e N a m e ) { Q . i n n e r H T M L = " " ; Q . a p p e n d C h i l d ( R ) ; } e l s e { Q . i n n e r H T M L = R ; } t h i s . c h a n g e B o d y E v e n t . f i r e ( R ) ; t h i s . c h a n g e C o n t e n t E v e n t . f i r e ( ) ; } , a p p e n d T o B o d y : f u n c t i o n ( R ) { v a r   Q = t h i s . b o d y | | ( t h i s . b o d y = B ( ) ) ; Q . a p p e n d C h i l d ( R ) ; t h i s . c h a n g e B o d y E v e n t . f i r e ( R ) ; t h i s . c h a n g e C o n t e n t E v e n t . f i r e ( ) ; } , s e t F o o t e r : f u n c t i o n ( R ) { v a r   Q = t h i s . f o o t e r | | ( t h i s . f o o t e r = C ( ) ) ; i f ( R . n o d e N a m e ) { Q . i n n e r H T M L = " " ; Q . a p p e n d C h i l d ( R ) ; } e l s e { Q . i n n e r H T M L = R ; } t h i s . c h a n g e F o o t e r E v e n t . f i r e ( R ) ; t h i s . c h a n g e C o n t e n t E v e n t . f i r e ( ) ; } , a p p e n d T o F o o t e r : f u n c t i o n ( R ) { v a r   Q = t h i s . f o o t e r | | ( t h i s . f o o t e r = C ( ) ) ; Q . a p p e n d C h i l d ( R ) ; t h i s . c h a n g e F o o t e r E v e n t . f i r e ( R ) ; t h i s . c h a n g e C o n t e n t E v e n t . f i r e ( ) ; } , r e n d e r : f u n c t i o n ( S , Q ) { v a r   T = t h i s , U ; f u n c t i o n   R ( V ) { i f ( t y p e o f   V = = " s t r i n g " ) { V = d o c u m e n t . g e t E l e m e n t B y I d ( V ) ; } i f ( V ) { T . _ a d d T o P a r e n t ( V , T . e l e m e n t ) ; T . a p p e n d E v e n t . f i r e ( ) ; } } t h i s . b e f o r e R e n d e r E v e n t . f i r e ( ) ; i f ( ! Q ) { Q = t h i s . e l e m e n t ; } i f ( S ) { R ( S ) ; } e l s e { i f ( ! F . i n D o c u m e n t ( t h i s . e l e m e n t ) ) { r e t u r n   f a l s e ; } } i f ( t h i s . h e a d e r & & ! F . i n D o c u m e n t ( t h i s . h e a d e r ) ) { U = Q . f i r s t C h i l d ;  
 i f ( U ) { Q . i n s e r t B e f o r e ( t h i s . h e a d e r , U ) ; } e l s e { Q . a p p e n d C h i l d ( t h i s . h e a d e r ) ; } } i f ( t h i s . b o d y & & ! F . i n D o c u m e n t ( t h i s . b o d y ) ) { i f ( t h i s . f o o t e r & & F . i s A n c e s t o r ( t h i s . m o d u l e E l e m e n t , t h i s . f o o t e r ) ) { Q . i n s e r t B e f o r e ( t h i s . b o d y , t h i s . f o o t e r ) ; } e l s e { Q . a p p e n d C h i l d ( t h i s . b o d y ) ; } } i f ( t h i s . f o o t e r & & ! F . i n D o c u m e n t ( t h i s . f o o t e r ) ) { Q . a p p e n d C h i l d ( t h i s . f o o t e r ) ; } t h i s . r e n d e r E v e n t . f i r e ( ) ; r e t u r n   t r u e ; } , d e s t r o y : f u n c t i o n ( ) { v a r   Q ; i f ( t h i s . e l e m e n t ) { N . p u r g e E l e m e n t ( t h i s . e l e m e n t , t r u e ) ; Q = t h i s . e l e m e n t . p a r e n t N o d e ; } i f ( Q ) { Q . r e m o v e C h i l d ( t h i s . e l e m e n t ) ; } t h i s . e l e m e n t = n u l l ; t h i s . h e a d e r = n u l l ; t h i s . b o d y = n u l l ; t h i s . f o o t e r = n u l l ; G . t e x t R e s i z e E v e n t . u n s u b s c r i b e ( t h i s . o n D o m R e s i z e , t h i s ) ; t h i s . c f g . d e s t r o y ( ) ; t h i s . c f g = n u l l ; t h i s . d e s t r o y E v e n t . f i r e ( ) ; } , s h o w : f u n c t i o n ( ) { t h i s . c f g . s e t P r o p e r t y ( " v i s i b l e " , t r u e ) ; } , h i d e : f u n c t i o n ( ) { t h i s . c f g . s e t P r o p e r t y ( " v i s i b l e " , f a l s e ) ; } , c o n f i g V i s i b l e : f u n c t i o n ( R , Q , S ) { v a r   T = Q [ 0 ] ; i f ( T ) { t h i s . b e f o r e S h o w E v e n t . f i r e ( ) ; F . s e t S t y l e ( t h i s . e l e m e n t , " d i s p l a y " , " b l o c k " ) ; t h i s . s h o w E v e n t . f i r e ( ) ; } e l s e { t h i s . b e f o r e H i d e E v e n t . f i r e ( ) ; F . s e t S t y l e ( t h i s . e l e m e n t , " d i s p l a y " , " n o n e " ) ; t h i s . h i d e E v e n t . f i r e ( ) ; } } , c o n f i g M o n i t o r R e s i z e : f u n c t i o n ( S , R , T ) { v a r   Q = R [ 0 ] ; i f ( Q ) { t h i s . i n i t R e s i z e M o n i t o r ( ) ; } e l s e { G . t e x t R e s i z e E v e n t . u n s u b s c r i b e ( t h i s . o n D o m R e s i z e , t h i s , t r u e ) ; t h i s . r e s i z e M o n i t o r = n u l l ; } } , _ a d d T o P a r e n t : f u n c t i o n ( Q , R ) { i f ( ! t h i s . c f g . g e t P r o p e r t y ( " a p p e n d t o d o c u m e n t b o d y " ) & & Q = = = d o c u m e n t . b o d y & & Q . f i r s t C h i l d ) { Q . i n s e r t B e f o r e ( R , Q . f i r s t C h i l d ) ; } e l s e { Q . a p p e n d C h i l d ( R ) ; } } , t o S t r i n g : f u n c t i o n ( ) { r e t u r n " M o d u l e   " + t h i s . i d ; } } ; Y A H O O . l a n g . a u g m e n t P r o t o ( G , Y A H O O . u t i l . E v e n t P r o v i d e r ) ; } ( ) ) ; ( f u n c t i o n ( ) { Y A H O O . w i d g e t . O v e r l a y = f u n c t i o n ( P , O ) { Y A H O O . w i d g e t . O v e r l a y . s u p e r c l a s s . c o n s t r u c t o r . c a l l ( t h i s , P , O ) ; } ; v a r   I = Y A H O O . l a n g , M = Y A H O O . u t i l . C u s t o m E v e n t , G = Y A H O O . w i d g e t . M o d u l e , N = Y A H O O . u t i l . E v e n t , F = Y A H O O . u t i l . D o m , D = Y A H O O . u t i l . C o n f i g , K = Y A H O O . e n v . u a , B = Y A H O O . w i d g e t . O v e r l a y , H = " s u b s c r i b e " , E = " u n s u b s c r i b e " , C = " c o n t a i n e d " , J , A = { " B E F O R E _ M O V E " : " b e f o r e M o v e " , " M O V E " : " m o v e " } , L = { " X " : { k e y : " x " , v a l i d a t o r : I . i s N u m b e r , s u p p r e s s E v e n t : t r u e , s u p e r c e d e s : [ " i f r a m e " ] } , " Y " : { k e y : " y " , v a l i d a t o r : I . i s N u m b e r , s u p p r e s s E v e n t : t r u e , s u p e r c e d e s : [ " i f r a m e " ] } , " X Y " : { k e y : " x y " , s u p p r e s s E v e n t : t r u e , s u p e r c e d e s : [ " i f r a m e " ] } , " C O N T E X T " : { k e y : " c o n t e x t " , s u p p r e s s E v e n t : t r u e , s u p e r c e d e s : [ " i f r a m e " ] } , " F I X E D _ C E N T E R " : { k e y : " f i x e d c e n t e r " , v a l u e : f a l s e , s u p e r c e d e s : [ " i f r a m e " , " v i s i b l e " ] } , " W I D T H " : { k e y : " w i d t h " , s u p p r e s s E v e n t : t r u e , s u p e r c e d e s : [ " c o n t e x t " , " f i x e d c e n t e r " , " i f r a m e " ] } , " H E I G H T " : { k e y : " h e i g h t " , s u p p r e s s E v e n t : t r u e , s u p e r c e d e s : [ " c o n t e x t " , " f i x e d c e n t e r " , " i f r a m e " ] } , " A U T O _ F I L L _ H E I G H T " : { k e y : " a u t o f i l l h e i g h t " , s u p e r c e d e s : [ " h e i g h t " ] , v a l u e : " b o d y " } , " Z I N D E X " : { k e y : " z i n d e x " , v a l u e : n u l l } , " C O N S T R A I N _ T O _ V I E W P O R T " : { k e y : " c o n s t r a i n t o v i e w p o r t " , v a l u e : f a l s e , v a l i d a t o r : I . i s B o o l e a n , s u p e r c e d e s : [ " i f r a m e " , " x " , " y " , " x y " ] } , " I F R A M E " : { k e y : " i f r a m e " , v a l u e : ( K . i e = = 6 ? t r u e : f a l s e ) , v a l i d a t o r : I . i s B o o l e a n , s u p e r c e d e s : [ " z i n d e x " ] } , " P R E V E N T _ C O N T E X T _ O V E R L A P " : { k e y : " p r e v e n t c o n t e x t o v e r l a p " , v a l u e : f a l s e , v a l i d a t o r : I . i s B o o l e a n , s u p e r c e d e s : [ " c o n s t r a i n t o v i e w p o r t " ] } } ; B . I F R A M E _ S R C = " j a v a s c r i p t : f a l s e ; " ; B . I F R A M E _ O F F S E T = 3 ; B . V I E W P O R T _ O F F S E T = 1 0 ; B . T O P _ L E F T = " t l " ; B . T O P _ R I G H T = " t r " ; B . B O T T O M _ L E F T = " b l " ; B . B O T T O M _ R I G H T = " b r " ; B . C S S _ O V E R L A Y = " y u i - o v e r l a y " ; B . S T D _ M O D _ R E = / ^ \ s * ? ( b o d y | f o o t e r | h e a d e r ) \ s * ? $ / i ; B . w i n d o w S c r o l l E v e n t = n e w   M ( " w i n d o w S c r o l l " ) ; B . w i n d o w R e s i z e E v e n t = n e w   M ( " w i n d o w R e s i z e " ) ; B . w i n d o w S c r o l l H a n d l e r = f u n c t i o n ( P ) { v a r   O = N . g e t T a r g e t ( P ) ; i f ( ! O | | O = = = w i n d o w | | O = = = w i n d o w . d o c u m e n t ) { i f ( K . i e ) { i f ( ! w i n d o w . s c r o l l E n d ) { w i n d o w . s c r o l l E n d = - 1 ; } c l e a r T i m e o u t ( w i n d o w . s c r o l l E n d ) ; w i n d o w . s c r o l l E n d = s e t T i m e o u t ( f u n c t i o n ( ) { B . w i n d o w S c r o l l E v e n t . f i r e ( ) ; } , 1 ) ; } e l s e { B . w i n d o w S c r o l l E v e n t . f i r e ( ) ; } } } ; B . w i n d o w R e s i z e H a n d l e r = f u n c t i o n ( O ) { i f ( K . i e ) { i f ( ! w i n d o w . r e s i z e E n d ) { w i n d o w . r e s i z e E n d = - 1 ; } c l e a r T i m e o u t ( w i n d o w . r e s i z e E n d ) ; w i n d o w . r e s i z e E n d = s e t T i m e o u t ( f u n c t i o n ( ) { B . w i n d o w R e s i z e E v e n t . f i r e ( ) ; } , 1 0 0 ) ; } e l s e { B . w i n d o w R e s i z e E v e n t . f i r e ( ) ; } } ; B . _ i n i t i a l i z e d = n u l l ; i f ( B . _ i n i t i a l i z e d = = = n u l l ) { N . o n ( w i n d o w , " s c r o l l " , B . w i n d o w S c r o l l H a n d l e r ) ; N . o n ( w i n d o w , " r e s i z e " , B . w i n d o w R e s i z e H a n d l e r ) ; B . _ i n i t i a l i z e d = t r u e ; } B . _ T R I G G E R _ M A P = { " w i n d o w S c r o l l " : B . w i n d o w S c r o l l E v e n t , " w i n d o w R e s i z e " : B . w i n d o w R e s i z e E v e n t , " t e x t R e s i z e " : G . t e x t R e s i z e E v e n t } ; Y A H O O . e x t e n d ( B , G , { C O N T E X T _ T R I G G E R S : [ ] , i n i t : f u n c t i o n ( P , O ) { B . s u p e r c l a s s . i n i t . c a l l ( t h i s , P ) ; t h i s . b e f o r e I n i t E v e n t . f i r e ( B ) ; F . a d d C l a s s ( t h i s . e l e m e n t , B . C S S _ O V E R L A Y ) ; i f ( O ) { t h i s . c f g . a p p l y C o n f i g ( O , t r u e ) ; } i f ( t h i s . p l a t f o r m = = " m a c " & & K . g e c k o ) { i f ( ! D . a l r e a d y S u b s c r i b e d ( t h i s . s h o w E v e n t , t h i s . s h o w M a c G e c k o S c r o l l b a r s , t h i s ) ) { t h i s . s h o w E v e n t . s u b s c r i b e ( t h i s . s h o w M a c G e c k o S c r o l l b a r s , t h i s , t r u e ) ; } i f ( ! D . a l r e a d y S u b s c r i b e d ( t h i s . h i d e E v e n t , t h i s . h i d e M a c G e c k o S c r o l l b a r s , t h i s ) ) { t h i s . h i d e E v e n t . s u b s c r i b e ( t h i s . h i d e M a c G e c k o S c r o l l b a r s , t h i s , t r u e ) ; } } t h i s . i n i t E v e n t . f i r e ( B ) ; } , i n i t E v e n t s : f u n c t i o n ( ) { B . s u p e r c l a s s . i n i t E v e n t s . c a l l ( t h i s ) ; v a r   O = M . L I S T ; t h i s . b e f o r e M o v e E v e n t = t h i s . c r e a t e E v e n t ( A . B E F O R E _ M O V E ) ; t h i s . b e f o r e M o v e E v e n t . s i g n a t u r e = O ; t h i s . m o v e E v e n t = t h i s . c r e a t e E v e n t ( A . M O V E ) ; t h i s . m o v e E v e n t . s i g n a t u r e = O ; } , i n i t D e f a u l t C o n f i g : f u n c t i o n ( ) { B . s u p e r c l a s s . i n i t D e f a u l t C o n f i g . c a l l ( t h i s ) ; v a r   O = t h i s . c f g ; O . a d d P r o p e r t y ( L . X . k e y , { h a n d l e r : t h i s . c o n f i g X , v a l i d a t o r : L . X . v a l i d a t o r , s u p p r e s s E v e n t : L . X . s u p p r e s s E v e n t , s u p e r c e d e s : L . X . s u p e r c e d e s } ) ; O . a d d P r o p e r t y ( L . Y . k e y , { h a n d l e r : t h i s . c o n f i g Y , v a l i d a t o r : L . Y . v a l i d a t o r , s u p p r e s s E v e n t : L . Y . s u p p r e s s E v e n t , s u p e r c e d e s : L . Y . s u p e r c e d e s } ) ; O . a d d P r o p e r t y ( L . X Y . k e y , { h a n d l e r : t h i s . c o n f i g X Y , s u p p r e s s E v e n t : L . X Y . s u p p r e s s E v e n t , s u p e r c e d e s : L . X Y . s u p e r c e d e s } ) ; O . a d d P r o p e r t y ( L . C O N T E X T . k e y , { h a n d l e r : t h i s . c o n f i g C o n t e x t , s u p p r e s s E v e n t : L . C O N T E X T . s u p p r e s s E v e n t , s u p e r c e d e s : L . C O N T E X T . s u p e r c e d e s } ) ; O . a d d P r o p e r t y ( L . F I X E D _ C E N T E R . k e y , { h a n d l e r : t h i s . c o n f i g F i x e d C e n t e r , v a l u e : L . F I X E D _ C E N T E R . v a l u e , v a l i d a t o r : L . F I X E D _ C E N T E R . v a l i d a t o r , s u p e r c e d e s : L . F I X E D _ C E N T E R . s u p e r c e d e s } ) ; O . a d d P r o p e r t y ( L . W I D T H . k e y , { h a n d l e r : t h i s . c o n f i g W i d t h , s u p p r e s s E v e n t : L . W I D T H . s u p p r e s s E v e n t , s u p e r c e d e s : L . W I D T H . s u p e r c e d e s } ) ; O . a d d P r o p e r t y ( L . H E I G H T . k e y , { h a n d l e r : t h i s . c o n f i g H e i g h t , s u p p r e s s E v e n t : L . H E I G H T . s u p p r e s s E v e n t , s u p e r c e d e s : L . H E I G H T . s u p e r c e d e s } ) ; O . a d d P r o p e r t y ( L . A U T O _ F I L L _ H E I G H T . k e y , { h a n d l e r : t h i s . c o n f i g A u t o F i l l H e i g h t , v a l u e : L . A U T O _ F I L L _ H E I G H T . v a l u e , v a l i d a t o r : t h i s . _ v a l i d a t e A u t o F i l l , s u p e r c e d e s : L . A U T O _ F I L L _ H E I G H T . s u p e r c e d e s } ) ; O . a d d P r o p e r t y ( L . Z I N D E X . k e y , { h a n d l e r : t h i s . c o n f i g z I n d e x , v a l u e : L . Z I N D E X . v a l u e } ) ; O . a d d P r o p e r t y ( L . C O N S T R A I N _ T O _ V I E W P O R T . k e y , { h a n d l e r : t h i s . c o n f i g C o n s t r a i n T o V i e w p o r t , v a l u e : L . C O N S T R A I N _ T O _ V I E W P O R T . v a l u e , v a l i d a t o r : L . C O N S T R A I N _ T O _ V I E W P O R T . v a l i d a t o r , s u p e r c e d e s : L . C O N S T R A I N _ T O _ V I E W P O R T . s u p e r c e d e s } ) ;  
 O . a d d P r o p e r t y ( L . I F R A M E . k e y , { h a n d l e r : t h i s . c o n f i g I f r a m e , v a l u e : L . I F R A M E . v a l u e , v a l i d a t o r : L . I F R A M E . v a l i d a t o r , s u p e r c e d e s : L . I F R A M E . s u p e r c e d e s } ) ; O . a d d P r o p e r t y ( L . P R E V E N T _ C O N T E X T _ O V E R L A P . k e y , { v a l u e : L . P R E V E N T _ C O N T E X T _ O V E R L A P . v a l u e , v a l i d a t o r : L . P R E V E N T _ C O N T E X T _ O V E R L A P . v a l i d a t o r , s u p e r c e d e s : L . P R E V E N T _ C O N T E X T _ O V E R L A P . s u p e r c e d e s } ) ; } , m o v e T o : f u n c t i o n ( O , P ) { t h i s . c f g . s e t P r o p e r t y ( " x y " , [ O , P ] ) ; } , h i d e M a c G e c k o S c r o l l b a r s : f u n c t i o n ( ) { F . r e p l a c e C l a s s ( t h i s . e l e m e n t , " s h o w - s c r o l l b a r s " , " h i d e - s c r o l l b a r s " ) ; } , s h o w M a c G e c k o S c r o l l b a r s : f u n c t i o n ( ) { F . r e p l a c e C l a s s ( t h i s . e l e m e n t , " h i d e - s c r o l l b a r s " , " s h o w - s c r o l l b a r s " ) ; } , _ s e t D o m V i s i b i l i t y : f u n c t i o n ( O ) { F . s e t S t y l e ( t h i s . e l e m e n t , " v i s i b i l i t y " , ( O ) ? " v i s i b l e " : " h i d d e n " ) ; i f ( O ) { F . r e m o v e C l a s s ( t h i s . e l e m e n t , " y u i - o v e r l a y - h i d d e n " ) ; } e l s e { F . a d d C l a s s ( t h i s . e l e m e n t , " y u i - o v e r l a y - h i d d e n " ) ; } } , c o n f i g V i s i b l e : f u n c t i o n ( R , O , X ) { v a r   Q = O [ 0 ] , S = F . g e t S t y l e ( t h i s . e l e m e n t , " v i s i b i l i t y " ) , Y = t h i s . c f g . g e t P r o p e r t y ( " e f f e c t " ) , V = [ ] , U = ( t h i s . p l a t f o r m = = " m a c " & & K . g e c k o ) , g = D . a l r e a d y S u b s c r i b e d , W , P , f , c , b , a , d , Z , T ; i f ( S = = " i n h e r i t " ) { f = t h i s . e l e m e n t . p a r e n t N o d e ; w h i l e ( f . n o d e T y p e ! = 9 & & f . n o d e T y p e ! = 1 1 ) { S = F . g e t S t y l e ( f , " v i s i b i l i t y " ) ; i f ( S ! = " i n h e r i t " ) { b r e a k ; } f = f . p a r e n t N o d e ; } i f ( S = = " i n h e r i t " ) { S = " v i s i b l e " ; } } i f ( Y ) { i f ( Y   i n s t a n c e o f   A r r a y ) { Z = Y . l e n g t h ; f o r ( c = 0 ; c < Z ; c + + ) { W = Y [ c ] ; V [ V . l e n g t h ] = W . e f f e c t ( t h i s , W . d u r a t i o n ) ; } } e l s e { V [ V . l e n g t h ] = Y . e f f e c t ( t h i s , Y . d u r a t i o n ) ; } } i f ( Q ) { i f ( U ) { t h i s . s h o w M a c G e c k o S c r o l l b a r s ( ) ; } i f ( Y ) { i f ( Q ) { i f ( S ! = " v i s i b l e " | | S = = = " " ) { t h i s . b e f o r e S h o w E v e n t . f i r e ( ) ; T = V . l e n g t h ; f o r ( b = 0 ; b < T ; b + + ) { P = V [ b ] ; i f ( b = = = 0 & & ! g ( P . a n i m a t e I n C o m p l e t e E v e n t , t h i s . s h o w E v e n t . f i r e , t h i s . s h o w E v e n t ) ) { P . a n i m a t e I n C o m p l e t e E v e n t . s u b s c r i b e ( t h i s . s h o w E v e n t . f i r e , t h i s . s h o w E v e n t , t r u e ) ; } P . a n i m a t e I n ( ) ; } } } } e l s e { i f ( S ! = " v i s i b l e " | | S = = = " " ) { t h i s . b e f o r e S h o w E v e n t . f i r e ( ) ; t h i s . _ s e t D o m V i s i b i l i t y ( t r u e ) ; t h i s . c f g . r e f i r e E v e n t ( " i f r a m e " ) ; t h i s . s h o w E v e n t . f i r e ( ) ; } e l s e { t h i s . _ s e t D o m V i s i b i l i t y ( t r u e ) ; } } } e l s e { i f ( U ) { t h i s . h i d e M a c G e c k o S c r o l l b a r s ( ) ; } i f ( Y ) { i f ( S = = " v i s i b l e " ) { t h i s . b e f o r e H i d e E v e n t . f i r e ( ) ; T = V . l e n g t h ; f o r ( a = 0 ; a < T ; a + + ) { d = V [ a ] ; i f ( a = = = 0 & & ! g ( d . a n i m a t e O u t C o m p l e t e E v e n t , t h i s . h i d e E v e n t . f i r e , t h i s . h i d e E v e n t ) ) { d . a n i m a t e O u t C o m p l e t e E v e n t . s u b s c r i b e ( t h i s . h i d e E v e n t . f i r e , t h i s . h i d e E v e n t , t r u e ) ; } d . a n i m a t e O u t ( ) ; } } e l s e { i f ( S = = = " " ) { t h i s . _ s e t D o m V i s i b i l i t y ( f a l s e ) ; } } } e l s e { i f ( S = = " v i s i b l e " | | S = = = " " ) { t h i s . b e f o r e H i d e E v e n t . f i r e ( ) ; t h i s . _ s e t D o m V i s i b i l i t y ( f a l s e ) ; t h i s . h i d e E v e n t . f i r e ( ) ; } e l s e { t h i s . _ s e t D o m V i s i b i l i t y ( f a l s e ) ; } } } } , d o C e n t e r O n D O M E v e n t : f u n c t i o n ( ) { v a r   O = t h i s . c f g , P = O . g e t P r o p e r t y ( " f i x e d c e n t e r " ) ; i f ( O . g e t P r o p e r t y ( " v i s i b l e " ) ) { i f ( P & & ( P ! = = C | | t h i s . f i t s I n V i e w p o r t ( ) ) ) { t h i s . c e n t e r ( ) ; } } } , f i t s I n V i e w p o r t : f u n c t i o n ( ) { v a r   S = B . V I E W P O R T _ O F F S E T , Q = t h i s . e l e m e n t , T = Q . o f f s e t W i d t h , R = Q . o f f s e t H e i g h t , O = F . g e t V i e w p o r t W i d t h ( ) , P = F . g e t V i e w p o r t H e i g h t ( ) ; r e t u r n ( ( T + S < O ) & & ( R + S < P ) ) ; } , c o n f i g F i x e d C e n t e r : f u n c t i o n ( S , Q , T ) { v a r   U = Q [ 0 ] , P = D . a l r e a d y S u b s c r i b e d , R = B . w i n d o w R e s i z e E v e n t , O = B . w i n d o w S c r o l l E v e n t ; i f ( U ) { t h i s . c e n t e r ( ) ; i f ( ! P ( t h i s . b e f o r e S h o w E v e n t , t h i s . c e n t e r ) ) { t h i s . b e f o r e S h o w E v e n t . s u b s c r i b e ( t h i s . c e n t e r ) ; } i f ( ! P ( R , t h i s . d o C e n t e r O n D O M E v e n t , t h i s ) ) { R . s u b s c r i b e ( t h i s . d o C e n t e r O n D O M E v e n t , t h i s , t r u e ) ; } i f ( ! P ( O , t h i s . d o C e n t e r O n D O M E v e n t , t h i s ) ) { O . s u b s c r i b e ( t h i s . d o C e n t e r O n D O M E v e n t , t h i s , t r u e ) ; } } e l s e { t h i s . b e f o r e S h o w E v e n t . u n s u b s c r i b e ( t h i s . c e n t e r ) ; R . u n s u b s c r i b e ( t h i s . d o C e n t e r O n D O M E v e n t , t h i s ) ; O . u n s u b s c r i b e ( t h i s . d o C e n t e r O n D O M E v e n t , t h i s ) ; } } , c o n f i g H e i g h t : f u n c t i o n ( R , P , S ) { v a r   O = P [ 0 ] , Q = t h i s . e l e m e n t ; F . s e t S t y l e ( Q , " h e i g h t " , O ) ; t h i s . c f g . r e f i r e E v e n t ( " i f r a m e " ) ; } , c o n f i g A u t o F i l l H e i g h t : f u n c t i o n ( T , S , P ) { v a r   V = S [ 0 ] , Q = t h i s . c f g , U = " a u t o f i l l h e i g h t " , W = " h e i g h t " , R = Q . g e t P r o p e r t y ( U ) , O = t h i s . _ a u t o F i l l O n H e i g h t C h a n g e ; Q . u n s u b s c r i b e F r o m C o n f i g E v e n t ( W , O ) ; G . t e x t R e s i z e E v e n t . u n s u b s c r i b e ( O ) ; t h i s . c h a n g e C o n t e n t E v e n t . u n s u b s c r i b e ( O ) ; i f ( R & & V ! = = R & & t h i s [ R ] ) { F . s e t S t y l e ( t h i s [ R ] , W , " " ) ; } i f ( V ) { V = I . t r i m ( V . t o L o w e r C a s e ( ) ) ; Q . s u b s c r i b e T o C o n f i g E v e n t ( W , O , t h i s [ V ] , t h i s ) ; G . t e x t R e s i z e E v e n t . s u b s c r i b e ( O , t h i s [ V ] , t h i s ) ; t h i s . c h a n g e C o n t e n t E v e n t . s u b s c r i b e ( O , t h i s [ V ] , t h i s ) ; Q . s e t P r o p e r t y ( U , V , t r u e ) ; } } , c o n f i g W i d t h : f u n c t i o n ( R , O , S ) { v a r   Q = O [ 0 ] , P = t h i s . e l e m e n t ; F . s e t S t y l e ( P , " w i d t h " , Q ) ; t h i s . c f g . r e f i r e E v e n t ( " i f r a m e " ) ; } , c o n f i g z I n d e x : f u n c t i o n ( Q , O , R ) { v a r   S = O [ 0 ] , P = t h i s . e l e m e n t ; i f ( ! S ) { S = F . g e t S t y l e ( P , " z I n d e x " ) ; i f ( ! S | | i s N a N ( S ) ) { S = 0 ; } } i f ( t h i s . i f r a m e | | t h i s . c f g . g e t P r o p e r t y ( " i f r a m e " ) = = = t r u e ) { i f ( S < = 0 ) { S = 1 ; } } F . s e t S t y l e ( P , " z I n d e x " , S ) ; t h i s . c f g . s e t P r o p e r t y ( " z I n d e x " , S , t r u e ) ; i f ( t h i s . i f r a m e ) { t h i s . s t a c k I f r a m e ( ) ; } } , c o n f i g X Y : f u n c t i o n ( Q , P , R ) { v a r   T = P [ 0 ] , O = T [ 0 ] , S = T [ 1 ] ; t h i s . c f g . s e t P r o p e r t y ( " x " , O ) ; t h i s . c f g . s e t P r o p e r t y ( " y " , S ) ; t h i s . b e f o r e M o v e E v e n t . f i r e ( [ O , S ] ) ; O = t h i s . c f g . g e t P r o p e r t y ( " x " ) ; S = t h i s . c f g . g e t P r o p e r t y ( " y " ) ; t h i s . c f g . r e f i r e E v e n t ( " i f r a m e " ) ; t h i s . m o v e E v e n t . f i r e ( [ O , S ] ) ; } , c o n f i g X : f u n c t i o n ( Q , P , R ) { v a r   O = P [ 0 ] , S = t h i s . c f g . g e t P r o p e r t y ( " y " ) ; t h i s . c f g . s e t P r o p e r t y ( " x " , O , t r u e ) ; t h i s . c f g . s e t P r o p e r t y ( " y " , S , t r u e ) ; t h i s . b e f o r e M o v e E v e n t . f i r e ( [ O , S ] ) ; O = t h i s . c f g . g e t P r o p e r t y ( " x " ) ; S = t h i s . c f g . g e t P r o p e r t y ( " y " ) ; F . s e t X ( t h i s . e l e m e n t , O , t r u e ) ; t h i s . c f g . s e t P r o p e r t y ( " x y " , [ O , S ] , t r u e ) ; t h i s . c f g . r e f i r e E v e n t ( " i f r a m e " ) ; t h i s . m o v e E v e n t . f i r e ( [ O , S ] ) ; } , c o n f i g Y : f u n c t i o n ( Q , P , R ) { v a r   O = t h i s . c f g . g e t P r o p e r t y ( " x " ) , S = P [ 0 ] ; t h i s . c f g . s e t P r o p e r t y ( " x " , O , t r u e ) ; t h i s . c f g . s e t P r o p e r t y ( " y " , S , t r u e ) ; t h i s . b e f o r e M o v e E v e n t . f i r e ( [ O , S ] ) ; O = t h i s . c f g . g e t P r o p e r t y ( " x " ) ; S = t h i s . c f g . g e t P r o p e r t y ( " y " ) ; F . s e t Y ( t h i s . e l e m e n t , S , t r u e ) ; t h i s . c f g . s e t P r o p e r t y ( " x y " , [ O , S ] , t r u e ) ; t h i s . c f g . r e f i r e E v e n t ( " i f r a m e " ) ; t h i s . m o v e E v e n t . f i r e ( [ O , S ] ) ; } , s h o w I f r a m e : f u n c t i o n ( ) { v a r   P = t h i s . i f r a m e , O ; i f ( P ) { O = t h i s . e l e m e n t . p a r e n t N o d e ; i f ( O ! = P . p a r e n t N o d e ) { t h i s . _ a d d T o P a r e n t ( O , P ) ; } P . s t y l e . d i s p l a y = " b l o c k " ; } } , h i d e I f r a m e : f u n c t i o n ( ) { i f ( t h i s . i f r a m e ) { t h i s . i f r a m e . s t y l e . d i s p l a y = " n o n e " ; } } , s y n c I f r a m e : f u n c t i o n ( ) { v a r   O = t h i s . i f r a m e , Q = t h i s . e l e m e n t , S = B . I F R A M E _ O F F S E T , P = ( S * 2 ) , R ; i f ( O ) { O . s t y l e . w i d t h = ( Q . o f f s e t W i d t h + P + " p x " ) ; O . s t y l e . h e i g h t = ( Q . o f f s e t H e i g h t + P + " p x " ) ; R = t h i s . c f g . g e t P r o p e r t y ( " x y " ) ; i f ( ! I . i s A r r a y ( R ) | | ( i s N a N ( R [ 0 ] ) | | i s N a N ( R [ 1 ] ) ) ) { t h i s . s y n c P o s i t i o n ( ) ; R = t h i s . c f g . g e t P r o p e r t y ( " x y " ) ; } F . s e t X Y ( O , [ ( R [ 0 ] - S ) , ( R [ 1 ] - S ) ] ) ; } } , s t a c k I f r a m e : f u n c t i o n ( ) { i f ( t h i s . i f r a m e ) { v a r   O = F . g e t S t y l e ( t h i s . e l e m e n t , " z I n d e x " ) ; i f ( ! Y A H O O . l a n g . i s U n d e f i n e d ( O ) & & ! i s N a N ( O ) ) { F . s e t S t y l e ( t h i s . i f r a m e , " z I n d e x " , ( O - 1 ) ) ; } } } , c o n f i g I f r a m e : f u n c t i o n ( R , Q , S ) { v a r   O = Q [ 0 ] ; f u n c t i o n   T ( ) { v a r   V = t h i s . i f r a m e , W = t h i s . e l e m e n t , X ; i f ( ! V ) { i f ( ! J ) { J = d o c u m e n t . c r e a t e E l e m e n t ( " i f r a m e " ) ; i f ( t h i s . i s S e c u r e ) { J . s r c = B . I F R A M E _ S R C ; } i f ( K . i e ) { J . s t y l e . f i l t e r = " a l p h a ( o p a c i t y = 0 ) " ;  
 J . f r a m e B o r d e r = 0 ; } e l s e { J . s t y l e . o p a c i t y = " 0 " ; } J . s t y l e . p o s i t i o n = " a b s o l u t e " ; J . s t y l e . b o r d e r = " n o n e " ; J . s t y l e . m a r g i n = " 0 " ; J . s t y l e . p a d d i n g = " 0 " ; J . s t y l e . d i s p l a y = " n o n e " ; J . t a b I n d e x = - 1 ; } V = J . c l o n e N o d e ( f a l s e ) ; X = W . p a r e n t N o d e ; v a r   U = X | | d o c u m e n t . b o d y ; t h i s . _ a d d T o P a r e n t ( U , V ) ; t h i s . i f r a m e = V ; } t h i s . s h o w I f r a m e ( ) ; t h i s . s y n c I f r a m e ( ) ; t h i s . s t a c k I f r a m e ( ) ; i f ( ! t h i s . _ h a s I f r a m e E v e n t L i s t e n e r s ) { t h i s . s h o w E v e n t . s u b s c r i b e ( t h i s . s h o w I f r a m e ) ; t h i s . h i d e E v e n t . s u b s c r i b e ( t h i s . h i d e I f r a m e ) ; t h i s . c h a n g e C o n t e n t E v e n t . s u b s c r i b e ( t h i s . s y n c I f r a m e ) ; t h i s . _ h a s I f r a m e E v e n t L i s t e n e r s = t r u e ; } } f u n c t i o n   P ( ) { T . c a l l ( t h i s ) ; t h i s . b e f o r e S h o w E v e n t . u n s u b s c r i b e ( P ) ; t h i s . _ i f r a m e D e f e r r e d = f a l s e ; } i f ( O ) { i f ( t h i s . c f g . g e t P r o p e r t y ( " v i s i b l e " ) ) { T . c a l l ( t h i s ) ; } e l s e { i f ( ! t h i s . _ i f r a m e D e f e r r e d ) { t h i s . b e f o r e S h o w E v e n t . s u b s c r i b e ( P ) ; t h i s . _ i f r a m e D e f e r r e d = t r u e ; } } } e l s e { t h i s . h i d e I f r a m e ( ) ; i f ( t h i s . _ h a s I f r a m e E v e n t L i s t e n e r s ) { t h i s . s h o w E v e n t . u n s u b s c r i b e ( t h i s . s h o w I f r a m e ) ; t h i s . h i d e E v e n t . u n s u b s c r i b e ( t h i s . h i d e I f r a m e ) ; t h i s . c h a n g e C o n t e n t E v e n t . u n s u b s c r i b e ( t h i s . s y n c I f r a m e ) ; t h i s . _ h a s I f r a m e E v e n t L i s t e n e r s = f a l s e ; } } } , _ p r i m e X Y F r o m D O M : f u n c t i o n ( ) { i f ( Y A H O O . l a n g . i s U n d e f i n e d ( t h i s . c f g . g e t P r o p e r t y ( " x y " ) ) ) { t h i s . s y n c P o s i t i o n ( ) ; t h i s . c f g . r e f i r e E v e n t ( " x y " ) ; t h i s . b e f o r e S h o w E v e n t . u n s u b s c r i b e ( t h i s . _ p r i m e X Y F r o m D O M ) ; } } , c o n f i g C o n s t r a i n T o V i e w p o r t : f u n c t i o n ( P , O , Q ) { v a r   R = O [ 0 ] ; i f ( R ) { i f ( ! D . a l r e a d y S u b s c r i b e d ( t h i s . b e f o r e M o v e E v e n t , t h i s . e n f o r c e C o n s t r a i n t s , t h i s ) ) { t h i s . b e f o r e M o v e E v e n t . s u b s c r i b e ( t h i s . e n f o r c e C o n s t r a i n t s , t h i s , t r u e ) ; } i f ( ! D . a l r e a d y S u b s c r i b e d ( t h i s . b e f o r e S h o w E v e n t , t h i s . _ p r i m e X Y F r o m D O M ) ) { t h i s . b e f o r e S h o w E v e n t . s u b s c r i b e ( t h i s . _ p r i m e X Y F r o m D O M ) ; } } e l s e { t h i s . b e f o r e S h o w E v e n t . u n s u b s c r i b e ( t h i s . _ p r i m e X Y F r o m D O M ) ; t h i s . b e f o r e M o v e E v e n t . u n s u b s c r i b e ( t h i s . e n f o r c e C o n s t r a i n t s , t h i s ) ; } } , c o n f i g C o n t e x t : f u n c t i o n ( T , S , P ) { v a r   W = S [ 0 ] , Q , O , U , R , V = t h i s . C O N T E X T _ T R I G G E R S ; i f ( W ) { Q = W [ 0 ] ; O = W [ 1 ] ; U = W [ 2 ] ; R = W [ 3 ] ; i f ( V & & V . l e n g t h > 0 ) { R = ( R | | [ ] ) . c o n c a t ( V ) ; } i f ( Q ) { i f ( t y p e o f   Q = = " s t r i n g " ) { t h i s . c f g . s e t P r o p e r t y ( " c o n t e x t " , [ d o c u m e n t . g e t E l e m e n t B y I d ( Q ) , O , U , R ] , t r u e ) ; } i f ( O & & U ) { t h i s . a l i g n ( O , U ) ; } i f ( t h i s . _ c o n t e x t T r i g g e r s ) { t h i s . _ p r o c e s s T r i g g e r s ( t h i s . _ c o n t e x t T r i g g e r s , E , t h i s . _ a l i g n O n T r i g g e r ) ; } i f ( R ) { t h i s . _ p r o c e s s T r i g g e r s ( R , H , t h i s . _ a l i g n O n T r i g g e r ) ; t h i s . _ c o n t e x t T r i g g e r s = R ; } } } } , _ a l i g n O n T r i g g e r : f u n c t i o n ( P , O ) { t h i s . a l i g n ( ) ; } , _ f i n d T r i g g e r C E : f u n c t i o n ( O ) { v a r   P = n u l l ; i f ( O   i n s t a n c e o f   M ) { P = O ; } e l s e { i f ( B . _ T R I G G E R _ M A P [ O ] ) { P = B . _ T R I G G E R _ M A P [ O ] ; } } r e t u r n   P ; } , _ p r o c e s s T r i g g e r s : f u n c t i o n ( S , U , R ) { v a r   Q , T ; f o r ( v a r   P = 0 , O = S . l e n g t h ; P < O ; + + P ) { Q = S [ P ] ; T = t h i s . _ f i n d T r i g g e r C E ( Q ) ; i f ( T ) { T [ U ] ( R , t h i s , t r u e ) ; } e l s e { t h i s [ U ] ( Q , R ) ; } } } , a l i g n : f u n c t i o n ( P , O ) { v a r   U = t h i s . c f g . g e t P r o p e r t y ( " c o n t e x t " ) , T = t h i s , S , R , V ; f u n c t i o n   Q ( W , X ) { s w i t c h ( P ) { c a s e   B . T O P _ L E F T : T . m o v e T o ( X , W ) ; b r e a k ; c a s e   B . T O P _ R I G H T : T . m o v e T o ( ( X - R . o f f s e t W i d t h ) , W ) ; b r e a k ; c a s e   B . B O T T O M _ L E F T : T . m o v e T o ( X , ( W - R . o f f s e t H e i g h t ) ) ; b r e a k ; c a s e   B . B O T T O M _ R I G H T : T . m o v e T o ( ( X - R . o f f s e t W i d t h ) , ( W - R . o f f s e t H e i g h t ) ) ; b r e a k ; } } i f ( U ) { S = U [ 0 ] ; R = t h i s . e l e m e n t ; T = t h i s ; i f ( ! P ) { P = U [ 1 ] ; } i f ( ! O ) { O = U [ 2 ] ; } i f ( R & & S ) { V = F . g e t R e g i o n ( S ) ; s w i t c h ( O ) { c a s e   B . T O P _ L E F T : Q ( V . t o p , V . l e f t ) ; b r e a k ; c a s e   B . T O P _ R I G H T : Q ( V . t o p , V . r i g h t ) ; b r e a k ; c a s e   B . B O T T O M _ L E F T : Q ( V . b o t t o m , V . l e f t ) ; b r e a k ; c a s e   B . B O T T O M _ R I G H T : Q ( V . b o t t o m , V . r i g h t ) ; b r e a k ; } } } } , e n f o r c e C o n s t r a i n t s : f u n c t i o n ( P , O , Q ) { v a r   S = O [ 0 ] ; v a r   R = t h i s . g e t C o n s t r a i n e d X Y ( S [ 0 ] , S [ 1 ] ) ; t h i s . c f g . s e t P r o p e r t y ( " x " , R [ 0 ] , t r u e ) ; t h i s . c f g . s e t P r o p e r t y ( " y " , R [ 1 ] , t r u e ) ; t h i s . c f g . s e t P r o p e r t y ( " x y " , R , t r u e ) ; } , g e t C o n s t r a i n e d X : f u n c t i o n ( V ) { v a r   S = t h i s , O = S . e l e m e n t , e = O . o f f s e t W i d t h , c = B . V I E W P O R T _ O F F S E T , h = F . g e t V i e w p o r t W i d t h ( ) , d = F . g e t D o c u m e n t S c r o l l L e f t ( ) , Y = ( e + c < h ) , b = t h i s . c f g . g e t P r o p e r t y ( " c o n t e x t " ) , Q , X , j , T = f a l s e , f , W , g = d + c , P = d + h - e - c , i = V , U = { " t l t r " : t r u e , " b l b r " : t r u e , " b r b l " : t r u e , " t r t l " : t r u e } ; v a r   Z = f u n c t i o n ( ) { v a r   k ; i f ( ( S . c f g . g e t P r o p e r t y ( " x " ) - d ) > X ) { k = ( X - e ) ; } e l s e { k = ( X + j ) ; } S . c f g . s e t P r o p e r t y ( " x " , ( k + d ) , t r u e ) ; r e t u r n   k ; } ; v a r   R = f u n c t i o n ( ) { i f ( ( S . c f g . g e t P r o p e r t y ( " x " ) - d ) > X ) { r e t u r n ( W - c ) ; } e l s e { r e t u r n ( f - c ) ; } } ; v a r   a = f u n c t i o n ( ) { v a r   k = R ( ) , l ; i f ( e > k ) { i f ( T ) { Z ( ) ; } e l s e { Z ( ) ; T = t r u e ; l = a ( ) ; } } r e t u r n   l ; } ; i f ( V < g | | V > P ) { i f ( Y ) { i f ( t h i s . c f g . g e t P r o p e r t y ( " p r e v e n t c o n t e x t o v e r l a p " ) & & b & & U [ ( b [ 1 ] + b [ 2 ] ) ] ) { Q = b [ 0 ] ; X = F . g e t X ( Q ) - d ; j = Q . o f f s e t W i d t h ; f = X ; W = ( h - ( X + j ) ) ; a ( ) ; i = t h i s . c f g . g e t P r o p e r t y ( " x " ) ; } e l s e { i f ( V < g ) { i = g ; } e l s e { i f ( V > P ) { i = P ; } } } } e l s e { i = c + d ; } } r e t u r n   i ; } , g e t C o n s t r a i n e d Y : f u n c t i o n ( Z ) { v a r   W = t h i s , P = W . e l e m e n t , i = P . o f f s e t H e i g h t , h = B . V I E W P O R T _ O F F S E T , d = F . g e t V i e w p o r t H e i g h t ( ) , g = F . g e t D o c u m e n t S c r o l l T o p ( ) , e = ( i + h < d ) , f = t h i s . c f g . g e t P r o p e r t y ( " c o n t e x t " ) , U , a , b , X = f a l s e , V , Q , c = g + h , S = g + d - i - h , O = Z , Y = { " t r b r " : t r u e , " t l b l " : t r u e , " b l t l " : t r u e , " b r t r " : t r u e } ; v a r   T = f u n c t i o n ( ) { v a r   k ; i f ( ( W . c f g . g e t P r o p e r t y ( " y " ) - g ) > a ) { k = ( a - i ) ; } e l s e { k = ( a + b ) ; } W . c f g . s e t P r o p e r t y ( " y " , ( k + g ) , t r u e ) ; r e t u r n   k ; } ; v a r   R = f u n c t i o n ( ) { i f ( ( W . c f g . g e t P r o p e r t y ( " y " ) - g ) > a ) { r e t u r n ( Q - h ) ; } e l s e { r e t u r n ( V - h ) ; } } ; v a r   j = f u n c t i o n ( ) { v a r   l = R ( ) , k ; i f ( i > l ) { i f ( X ) { T ( ) ; } e l s e { T ( ) ; X = t r u e ; k = j ( ) ; } } r e t u r n   k ; } ; i f ( Z < c | | Z > S ) { i f ( e ) { i f ( t h i s . c f g . g e t P r o p e r t y ( " p r e v e n t c o n t e x t o v e r l a p " ) & & f & & Y [ ( f [ 1 ] + f [ 2 ] ) ] ) { U = f [ 0 ] ; b = U . o f f s e t H e i g h t ; a = ( F . g e t Y ( U ) - g ) ; V = a ; Q = ( d - ( a + b ) ) ; j ( ) ; O = W . c f g . g e t P r o p e r t y ( " y " ) ; } e l s e { i f ( Z < c ) { O = c ; } e l s e { i f ( Z > S ) { O = S ; } } } } e l s e { O = h + g ; } } r e t u r n   O ; } , g e t C o n s t r a i n e d X Y : f u n c t i o n ( O , P ) { r e t u r n [ t h i s . g e t C o n s t r a i n e d X ( O ) , t h i s . g e t C o n s t r a i n e d Y ( P ) ] ; } , c e n t e r : f u n c t i o n ( ) { v a r   R = B . V I E W P O R T _ O F F S E T , S = t h i s . e l e m e n t . o f f s e t W i d t h , Q = t h i s . e l e m e n t . o f f s e t H e i g h t , P = F . g e t V i e w p o r t W i d t h ( ) , T = F . g e t V i e w p o r t H e i g h t ( ) , O , U ; i f ( S < P ) { O = ( P / 2 ) - ( S / 2 ) + F . g e t D o c u m e n t S c r o l l L e f t ( ) ; } e l s e { O = R + F . g e t D o c u m e n t S c r o l l L e f t ( ) ; } i f ( Q < T ) { U = ( T / 2 ) - ( Q / 2 ) + F . g e t D o c u m e n t S c r o l l T o p ( ) ; } e l s e { U = R + F . g e t D o c u m e n t S c r o l l T o p ( ) ; } t h i s . c f g . s e t P r o p e r t y ( " x y " , [ p a r s e I n t ( O , 1 0 ) , p a r s e I n t ( U , 1 0 ) ] ) ; t h i s . c f g . r e f i r e E v e n t ( " i f r a m e " ) ; i f ( K . w e b k i t ) { t h i s . f o r c e C o n t a i n e r R e d r a w ( ) ; } } , s y n c P o s i t i o n : f u n c t i o n ( ) { v a r   O = F . g e t X Y ( t h i s . e l e m e n t ) ; t h i s . c f g . s e t P r o p e r t y ( " x " , O [ 0 ] , t r u e ) ; t h i s . c f g . s e t P r o p e r t y ( " y " , O [ 1 ] , t r u e ) ; t h i s . c f g . s e t P r o p e r t y ( " x y " , O , t r u e ) ; } , o n D o m R e s i z e : f u n c t i o n ( Q , P ) { v a r   O = t h i s ; B . s u p e r c l a s s . o n D o m R e s i z e . c a l l ( t h i s , Q , P ) ; s e t T i m e o u t ( f u n c t i o n ( ) { O . s y n c P o s i t i o n ( ) ; O . c f g . r e f i r e E v e n t ( " i f r a m e " ) ; O . c f g . r e f i r e E v e n t ( " c o n t e x t " ) ; } , 0 ) ; } , _ g e t C o m p u t e d H e i g h t : ( f u n c t i o n ( ) { 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 ) { r e t u r n   f u n c t i o n ( P ) { v a r   O = n u l l ; i f ( P . o w n e r D o c u m e n t & & P . o w n e r D o c u m e n t . d e f a u l t V i e w ) { v a r   Q = P . o w n e r 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 ( P , " " ) ; i f ( Q ) { O = p a r s e I n t ( Q . h e i g h t , 1 0 ) ; } } r e t u r n ( I . i s N u m b e r ( O ) ) ? O : n u l l ; } ; } e l s e { r e t u r n   f u n c t i o n ( P ) { v a r   O = n u l l ;  
 i f ( P . s t y l e . p i x e l H e i g h t ) { O = P . s t y l e . p i x e l H e i g h t ; } r e t u r n ( I . i s N u m b e r ( O ) ) ? O : n u l l ; } ; } } ) ( ) , _ v a l i d a t e A u t o F i l l H e i g h t : f u n c t i o n ( O ) { r e t u r n ( ! O ) | | ( I . i s S t r i n g ( O ) & & B . S T D _ M O D _ R E . t e s t ( O ) ) ; } , _ a u t o F i l l O n H e i g h t C h a n g e : f u n c t i o n ( R , P , Q ) { v a r   O = t h i s . c f g . g e t P r o p e r t y ( " h e i g h t " ) ; i f ( ( O & & O ! = = " a u t o " ) | | ( O = = = 0 ) ) { t h i s . f i l l H e i g h t ( Q ) ; } } , _ g e t P r e c i s e H e i g h t : f u n c t i o n ( P ) { v a r   O = P . o f f s e t H e i g h t ; i f ( P . g e t B o u n d i n g C l i e n t R e c t ) { v a r   Q = P . g e t B o u n d i n g C l i e n t R e c t ( ) ; O = Q . b o t t o m - Q . t o p ; } r e t u r n   O ; } , f i l l H e i g h t : f u n c t i o n ( R ) { i f ( R ) { v a r   P = t h i s . i n n e r E l e m e n t | | t h i s . e l e m e n t , O = [ t h i s . h e a d e r , t h i s . b o d y , t h i s . f o o t e r ] , V , W = 0 , X = 0 , T = 0 , Q = f a l s e ; f o r ( v a r   U = 0 , S = O . l e n g t h ; U < S ; U + + ) { V = O [ U ] ; i f ( V ) { i f ( R ! = = V ) { X + = t h i s . _ g e t P r e c i s e H e i g h t ( V ) ; } e l s e { Q = t r u e ; } } } i f ( Q ) { i f ( K . i e | | K . o p e r a ) { F . s e t S t y l e ( R , " h e i g h t " , 0 + " p x " ) ; } W = t h i s . _ g e t C o m p u t e d H e i g h t ( P ) ; i f ( W = = = n u l l ) { F . a d d C l a s s ( P , " y u i - o v e r r i d e - p a d d i n g " ) ; W = P . c l i e n t H e i g h t ; F . r e m o v e C l a s s ( P , " y u i - o v e r r i d e - p a d d i n g " ) ; } T = M a t h . m a x ( W - X , 0 ) ; F . s e t S t y l e ( R , " h e i g h t " , T + " p x " ) ; i f ( R . o f f s e t H e i g h t ! = T ) { T = M a t h . m a x ( T - ( R . o f f s e t H e i g h t - T ) , 0 ) ; } F . s e t S t y l e ( R , " h e i g h t " , T + " p x " ) ; } } } , b r i n g T o T o p : f u n c t i o n ( ) { v a r   S = [ ] , R = t h i s . e l e m e n t ; f u n c t i o n   V ( Z , Y ) { v a r   b = F . g e t S t y l e ( Z , " z I n d e x " ) , a = F . g e t S t y l e ( Y , " z I n d e x " ) , X = ( ! b | | i s N a N ( b ) ) ? 0 : p a r s e I n t ( b , 1 0 ) , W = ( ! a | | i s N a N ( a ) ) ? 0 : p a r s e I n t ( a , 1 0 ) ; i f ( X > W ) { r e t u r n   - 1 ; } e l s e { i f ( X < W ) { r e t u r n   1 ; } e l s e { r e t u r n   0 ; } } } f u n c t i o n   Q ( Y ) { v a r   X = F . h a s C l a s s ( Y , B . C S S _ O V E R L A Y ) , W = Y A H O O . w i d g e t . P a n e l ; i f ( X & & ! F . i s A n c e s t o r ( R , Y ) ) { i f ( W & & F . h a s C l a s s ( Y , W . C S S _ P A N E L ) ) { S [ S . l e n g t h ] = Y . p a r e n t N o d e ; } e l s e { S [ S . l e n g t h ] = Y ; } } } F . g e t E l e m e n t s B y ( Q , " D I V " , d o c u m e n t . b o d y ) ; S . s o r t ( V ) ; v a r   O = S [ 0 ] , U ; i f ( O ) { U = F . g e t S t y l e ( O , " z I n d e x " ) ; i f ( ! i s N a N ( U ) ) { v a r   T = f a l s e ; i f ( O ! = R ) { T = t r u e ; } e l s e { i f ( S . l e n g t h > 1 ) { v a r   P = F . g e t S t y l e ( S [ 1 ] , " z I n d e x " ) ; i f ( ! i s N a N ( P ) & & ( U = = P ) ) { T = t r u e ; } } } i f ( T ) { t h i s . c f g . s e t P r o p e r t y ( " z i n d e x " , ( p a r s e I n t ( U , 1 0 ) + 2 ) ) ; } } } } , d e s t r o y : f u n c t i o n ( ) { i f ( t h i s . i f r a m e ) { t h i s . i f r a m e . p a r e n t N o d e . r e m o v e C h i l d ( t h i s . i f r a m e ) ; } t h i s . i f r a m e = n u l l ; B . w i n d o w R e s i z e E v e n t . u n s u b s c r i b e ( t h i s . d o C e n t e r O n D O M E v e n t , t h i s ) ; B . w i n d o w S c r o l l E v e n t . u n s u b s c r i b e ( t h i s . d o C e n t e r O n D O M E v e n t , t h i s ) ; G . t e x t R e s i z e E v e n t . u n s u b s c r i b e ( t h i s . _ a u t o F i l l O n H e i g h t C h a n g e ) ; B . s u p e r c l a s s . d e s t r o y . c a l l ( t h i s ) ; } , f o r c e C o n t a i n e r R e d r a w : f u n c t i o n ( ) { v a r   O = t h i s ; F . a d d C l a s s ( O . e l e m e n t , " y u i - f o r c e - r e d r a w " ) ; s e t T i m e o u t ( f u n c t i o n ( ) { F . r e m o v e C l a s s ( O . e l e m e n t , " y u i - f o r c e - r e d r a w " ) ; } , 0 ) ; } , t o S t r i n g : f u n c t i o n ( ) { r e t u r n " O v e r l a y   " + t h i s . i d ; } } ) ; } ( ) ) ; ( f u n c t i o n ( ) { Y A H O O . w i d g e t . O v e r l a y M a n a g e r = f u n c t i o n ( G ) { t h i s . i n i t ( G ) ; } ; v a r   D = Y A H O O . w i d g e t . O v e r l a y , C = Y A H O O . u t i l . E v e n t , E = Y A H O O . u t i l . D o m , B = Y A H O O . u t i l . C o n f i g , F = Y A H O O . u t i l . C u s t o m E v e n t , A = Y A H O O . w i d g e t . O v e r l a y M a n a g e r ; A . C S S _ F O C U S E D = " f o c u s e d " ; A . p r o t o t y p e = { c o n s t r u c t o r : A , o v e r l a y s : n u l l , i n i t D e f a u l t C o n f i g : f u n c t i o n ( ) { t h i s . c f g . a d d P r o p e r t y ( " o v e r l a y s " , { s u p p r e s s E v e n t : t r u e } ) ; t h i s . c f g . a d d P r o p e r t y ( " f o c u s e v e n t " , { v a l u e : " m o u s e d o w n " } ) ; } , i n i t : f u n c t i o n ( I ) { t h i s . c f g = n e w   B ( t h i s ) ; t h i s . i n i t D e f a u l t C o n f i g ( ) ; i f ( I ) { t h i s . c f g . a p p l y C o n f i g ( I , t r u e ) ; } t h i s . c f g . f i r e Q u e u e ( ) ; v a r   H = n u l l ; t h i s . g e t A c t i v e = f u n c t i o n ( ) { r e t u r n   H ; } ; t h i s . f o c u s = f u n c t i o n ( J ) { v a r   K = t h i s . f i n d ( J ) ; i f ( K ) { K . f o c u s ( ) ; } } ; t h i s . r e m o v e = f u n c t i o n ( K ) { v a r   M = t h i s . f i n d ( K ) , J ; i f ( M ) { i f ( H = = M ) { H = n u l l ; } v a r   L = ( M . e l e m e n t = = = n u l l & & M . c f g = = = n u l l ) ? t r u e : f a l s e ; i f ( ! L ) { J = E . g e t S t y l e ( M . e l e m e n t , " z I n d e x " ) ; M . c f g . s e t P r o p e r t y ( " z I n d e x " , - 1 0 0 0 , t r u e ) ; } t h i s . o v e r l a y s . s o r t ( t h i s . c o m p a r e Z I n d e x D e s c ) ; t h i s . o v e r l a y s = t h i s . o v e r l a y s . s l i c e ( 0 , ( t h i s . o v e r l a y s . l e n g t h - 1 ) ) ; M . h i d e E v e n t . u n s u b s c r i b e ( M . b l u r ) ; M . d e s t r o y E v e n t . u n s u b s c r i b e ( t h i s . _ o n O v e r l a y D e s t r o y , M ) ; M . f o c u s E v e n t . u n s u b s c r i b e ( t h i s . _ o n O v e r l a y F o c u s H a n d l e r , M ) ; M . b l u r E v e n t . u n s u b s c r i b e ( t h i s . _ o n O v e r l a y B l u r H a n d l e r , M ) ; i f ( ! L ) { C . r e m o v e L i s t e n e r ( M . e l e m e n t , t h i s . c f g . g e t P r o p e r t y ( " f o c u s e v e n t " ) , t h i s . _ o n O v e r l a y E l e m e n t F o c u s ) ; M . c f g . s e t P r o p e r t y ( " z I n d e x " , J , t r u e ) ; M . c f g . s e t P r o p e r t y ( " m a n a g e r " , n u l l ) ; } i f ( M . f o c u s E v e n t . _ m a n a g e d ) { M . f o c u s E v e n t = n u l l ; } i f ( M . b l u r E v e n t . _ m a n a g e d ) { M . b l u r E v e n t = n u l l ; } i f ( M . f o c u s . _ m a n a g e d ) { M . f o c u s = n u l l ; } i f ( M . b l u r . _ m a n a g e d ) { M . b l u r = n u l l ; } } } ; t h i s . b l u r A l l = f u n c t i o n ( ) { v a r   K = t h i s . o v e r l a y s . l e n g t h , J ; i f ( K > 0 ) { J = K - 1 ; d o { t h i s . o v e r l a y s [ J ] . b l u r ( ) ; } w h i l e ( J - - ) ; } } ; t h i s . _ m a n a g e B l u r = f u n c t i o n ( J ) { v a r   K = f a l s e ; i f ( H = = J ) { E . r e m o v e C l a s s ( H . e l e m e n t , A . C S S _ F O C U S E D ) ; H = n u l l ; K = t r u e ; } r e t u r n   K ; } ; t h i s . _ m a n a g e F o c u s = f u n c t i o n ( J ) { v a r   K = f a l s e ; i f ( H ! = J ) { i f ( H ) { H . b l u r ( ) ; } H = J ; t h i s . b r i n g T o T o p ( H ) ; E . a d d C l a s s ( H . e l e m e n t , A . C S S _ F O C U S E D ) ; K = t r u e ; } r e t u r n   K ; } ; v a r   G = t h i s . c f g . g e t P r o p e r t y ( " o v e r l a y s " ) ; i f ( ! t h i s . o v e r l a y s ) { t h i s . o v e r l a y s = [ ] ; } i f ( G ) { t h i s . r e g i s t e r ( G ) ; t h i s . o v e r l a y s . s o r t ( t h i s . c o m p a r e Z I n d e x D e s c ) ; } } , _ o n O v e r l a y E l e m e n t F o c u s : f u n c t i o n ( I ) { v a r   G = C . g e t T a r g e t ( I ) , H = t h i s . c l o s e ; i f ( H & & ( G = = H | | E . i s A n c e s t o r ( H , G ) ) ) { t h i s . b l u r ( ) ; } e l s e { t h i s . f o c u s ( ) ; } } , _ o n O v e r l a y D e s t r o y : f u n c t i o n ( H , G , I ) { t h i s . r e m o v e ( I ) ; } , _ o n O v e r l a y F o c u s H a n d l e r : f u n c t i o n ( H , G , I ) { t h i s . _ m a n a g e F o c u s ( I ) ; } , _ o n O v e r l a y B l u r H a n d l e r : f u n c t i o n ( H , G , I ) { t h i s . _ m a n a g e B l u r ( I ) ; } , _ b i n d F o c u s : f u n c t i o n ( G ) { v a r   H = t h i s ; i f ( ! G . f o c u s E v e n t ) { G . f o c u s E v e n t = G . c r e a t e E v e n t ( " f o c u s " ) ; G . f o c u s E v e n t . s i g n a t u r e = F . L I S T ; G . f o c u s E v e n t . _ m a n a g e d = t r u e ; } e l s e { G . f o c u s E v e n t . s u b s c r i b e ( H . _ o n O v e r l a y F o c u s H a n d l e r , G , H ) ; } i f ( ! G . f o c u s ) { C . o n ( G . e l e m e n t , H . c f g . g e t P r o p e r t y ( " f o c u s e v e n t " ) , H . _ o n O v e r l a y E l e m e n t F o c u s , n u l l , G ) ; G . f o c u s = f u n c t i o n ( ) { i f ( H . _ m a n a g e F o c u s ( t h i s ) ) { i f ( t h i s . c f g . g e t P r o p e r t y ( " v i s i b l e " ) & & t h i s . f o c u s F i r s t ) { t h i s . f o c u s F i r s t ( ) ; } t h i s . f o c u s E v e n t . f i r e ( ) ; } } ; G . f o c u s . _ m a n a g e d = t r u e ; } } , _ b i n d B l u r : f u n c t i o n ( G ) { v a r   H = t h i s ; i f ( ! G . b l u r E v e n t ) { G . b l u r E v e n t = G . c r e a t e E v e n t ( " b l u r " ) ; G . b l u r E v e n t . s i g n a t u r e = F . L I S T ; G . f o c u s E v e n t . _ m a n a g e d = t r u e ; } e l s e { G . b l u r E v e n t . s u b s c r i b e ( H . _ o n O v e r l a y B l u r H a n d l e r , G , H ) ; } i f ( ! G . b l u r ) { G . b l u r = f u n c t i o n ( ) { i f ( H . _ m a n a g e B l u r ( t h i s ) ) { t h i s . b l u r E v e n t . f i r e ( ) ; } } ; G . b l u r . _ m a n a g e d = t r u e ; } G . h i d e E v e n t . s u b s c r i b e ( G . b l u r ) ; } , _ b i n d D e s t r o y : f u n c t i o n ( G ) { v a r   H = t h i s ; G . d e s t r o y E v e n t . s u b s c r i b e ( H . _ o n O v e r l a y D e s t r o y , G , H ) ; } , _ s y n c Z I n d e x : f u n c t i o n ( G ) { v a r   H = E . g e t S t y l e ( G . e l e m e n t , " z I n d e x " ) ; i f ( ! i s N a N ( H ) ) { G . c f g . s e t P r o p e r t y ( " z I n d e x " , p a r s e I n t ( H , 1 0 ) ) ; } e l s e { G . c f g . s e t P r o p e r t y ( " z I n d e x " , 0 ) ; } } , r e g i s t e r : f u n c t i o n ( G ) { v a r   J = f a l s e , H , I ; i f ( G   i n s t a n c e o f   D ) { G . c f g . a d d P r o p e r t y ( " m a n a g e r " , { v a l u e : t h i s } ) ; t h i s . _ b i n d F o c u s ( G ) ; t h i s . _ b i n d B l u r ( G ) ; t h i s . _ b i n d D e s t r o y ( G ) ; t h i s . _ s y n c Z I n d e x ( G ) ; t h i s . o v e r l a y s . p u s h ( G ) ; t h i s . b r i n g T o T o p ( G ) ; J = t r u e ; } e l s e { i f ( G   i n s t a n c e o f   A r r a y ) { f o r ( H = 0 , I = G . l e n g t h ; H < I ; H + + ) { J = t h i s . r e g i s t e r ( G [ H ] ) | | J ; } } } r e t u r n   J ; } , b r i n g T o T o p : f u n c t i o n ( M ) { v a r   I = t h i s . f i n d ( M ) , L , G , J ; i f ( I ) { J = t h i s . o v e r l a y s ; J . s o r t ( t h i s . c o m p a r e Z I n d e x D e s c ) ; G = J [ 0 ] ; i f ( G ) { L = E . g e t S t y l e ( G . e l e m e n t , " z I n d e x " ) ;  
 i f ( ! i s N a N ( L ) ) { v a r   K = f a l s e ; i f ( G ! = = I ) { K = t r u e ; } e l s e { i f ( J . l e n g t h > 1 ) { v a r   H = E . g e t S t y l e ( J [ 1 ] . e l e m e n t , " z I n d e x " ) ; i f ( ! i s N a N ( H ) & & ( L = = H ) ) { K = t r u e ; } } } i f ( K ) { I . c f g . s e t P r o p e r t y ( " z i n d e x " , ( p a r s e I n t ( L , 1 0 ) + 2 ) ) ; } } J . s o r t ( t h i s . c o m p a r e Z I n d e x D e s c ) ; } } } , f i n d : f u n c t i o n ( G ) { v a r   K = G   i n s t a n c e o f   D , I = t h i s . o v e r l a y s , M = I . l e n g t h , J = n u l l , L , H ; i f ( K | | t y p e o f   G = = " s t r i n g " ) { f o r ( H = M - 1 ; H > = 0 ; H - - ) { L = I [ H ] ; i f ( ( K & & ( L = = = G ) ) | | ( L . i d = = G ) ) { J = L ; b r e a k ; } } } r e t u r n   J ; } , c o m p a r e Z I n d e x D e s c : f u n c t i o n ( J , I ) { v a r   H = ( J . c f g ) ? J . c f g . g e t P r o p e r t y ( " z I n d e x " ) : n u l l , G = ( I . c f g ) ? I . c f g . g e t P r o p e r t y ( " z I n d e x " ) : n u l l ; i f ( H = = = n u l l & & G = = = n u l l ) { r e t u r n   0 ; } e l s e { i f ( H = = = n u l l ) { r e t u r n   1 ; } e l s e { i f ( G = = = n u l l ) { r e t u r n   - 1 ; } e l s e { i f ( H > G ) { r e t u r n   - 1 ; } e l s e { i f ( H < G ) { r e t u r n   1 ; } e l s e { r e t u r n   0 ; } } } } } } , s h o w A l l : f u n c t i o n ( ) { v a r   H = t h i s . o v e r l a y s , I = H . l e n g t h , G ; f o r ( G = I - 1 ; G > = 0 ; G - - ) { H [ G ] . s h o w ( ) ; } } , h i d e A l l : f u n c t i o n ( ) { v a r   H = t h i s . o v e r l a y s , I = H . l e n g t h , G ; f o r ( G = I - 1 ; G > = 0 ; G - - ) { H [ G ] . h i d e ( ) ; } } , t o S t r i n g : f u n c t i o n ( ) { r e t u r n " O v e r l a y M a n a g e r " ; } } ; } ( ) ) ; ( f u n c t i o n ( ) { Y A H O O . w i d g e t . T o o l t i p = f u n c t i o n ( P , O ) { Y A H O O . w i d g e t . T o o l t i p . s u p e r c l a s s . c o n s t r u c t o r . c a l l ( t h i s , P , O ) ; } ; v a r   E = Y A H O O . l a n g , N = Y A H O O . u t i l . E v e n t , M = Y A H O O . u t i l . C u s t o m E v e n t , C = Y A H O O . u t i l . D o m , J = Y A H O O . w i d g e t . T o o l t i p , H = Y A H O O . e n v . u a , G = ( H . i e & & ( H . i e < = 6 | | d o c u m e n t . c o m p a t M o d e = = " B a c k C o m p a t " ) ) , F , I = { " P R E V E N T _ O V E R L A P " : { k e y : " p r e v e n t o v e r l a p " , v a l u e : t r u e , v a l i d a t o r : E . i s B o o l e a n , s u p e r c e d e s : [ " x " , " y " , " x y " ] } , " S H O W _ D E L A Y " : { k e y : " s h o w d e l a y " , v a l u e : 2 0 0 , v a l i d a t o r : E . i s N u m b e r } , " A U T O _ D I S M I S S _ D E L A Y " : { k e y : " a u t o d i s m i s s d e l a y " , v a l u e : 5 0 0 0 , v a l i d a t o r : E . i s N u m b e r } , " H I D E _ D E L A Y " : { k e y : " h i d e d e l a y " , v a l u e : 2 5 0 , v a l i d a t o r : E . i s N u m b e r } , " T E X T " : { k e y : " t e x t " , s u p p r e s s E v e n t : t r u e } , " C O N T A I N E R " : { k e y : " c o n t a i n e r " } , " D I S A B L E D " : { k e y : " d i s a b l e d " , v a l u e : f a l s e , s u p p r e s s E v e n t : t r u e } } , A = { " C O N T E X T _ M O U S E _ O V E R " : " c o n t e x t M o u s e O v e r " , " C O N T E X T _ M O U S E _ O U T " : " c o n t e x t M o u s e O u t " , " C O N T E X T _ T R I G G E R " : " c o n t e x t T r i g g e r " } ; J . C S S _ T O O L T I P = " y u i - t t " ; f u n c t i o n   K ( Q , O ) { v a r   P = t h i s . c f g , R = P . g e t P r o p e r t y ( " w i d t h " ) ; i f ( R = = O ) { P . s e t P r o p e r t y ( " w i d t h " , Q ) ; } } f u n c t i o n   D ( P , O ) { i f ( " _ o r i g i n a l W i d t h "   i n   t h i s ) { K . c a l l ( t h i s , t h i s . _ o r i g i n a l W i d t h , t h i s . _ f o r c e d W i d t h ) ; } v a r   Q = d o c u m e n t . b o d y , U = t h i s . c f g , T = U . g e t P r o p e r t y ( " w i d t h " ) , R , S ; i f ( ( ! T | | T = = " a u t o " ) & & ( U . g e t P r o p e r t y ( " c o n t a i n e r " ) ! = Q | | U . g e t P r o p e r t y ( " x " ) > = C . g e t V i e w p o r t W i d t h ( ) | | U . g e t P r o p e r t y ( " y " ) > = C . g e t V i e w p o r t H e i g h t ( ) ) ) { S = t h i s . e l e m e n t . c l o n e N o d e ( t r u e ) ; S . s t y l e . v i s i b i l i t y = " h i d d e n " ; S . s t y l e . t o p = " 0 p x " ; S . s t y l e . l e f t = " 0 p x " ; Q . a p p e n d C h i l d ( S ) ; R = ( S . o f f s e t W i d t h + " p x " ) ; Q . r e m o v e C h i l d ( S ) ; S = n u l l ; U . s e t P r o p e r t y ( " w i d t h " , R ) ; U . r e f i r e E v e n t ( " x y " ) ; t h i s . _ o r i g i n a l W i d t h = T | | " " ; t h i s . _ f o r c e d W i d t h = R ; } } f u n c t i o n   B ( P , O , Q ) { t h i s . r e n d e r ( Q ) ; } f u n c t i o n   L ( ) { N . o n D O M R e a d y ( B , t h i s . c f g . g e t P r o p e r t y ( " c o n t a i n e r " ) , t h i s ) ; } Y A H O O . e x t e n d ( J , Y A H O O . w i d g e t . O v e r l a y , { i n i t : f u n c t i o n ( P , O ) { J . s u p e r c l a s s . i n i t . c a l l ( t h i s , P ) ; t h i s . b e f o r e I n i t E v e n t . f i r e ( J ) ; C . a d d C l a s s ( t h i s . e l e m e n t , J . C S S _ T O O L T I P ) ; i f ( O ) { t h i s . c f g . a p p l y C o n f i g ( O , t r u e ) ; } t h i s . c f g . q u e u e P r o p e r t y ( " v i s i b l e " , f a l s e ) ; t h i s . c f g . q u e u e P r o p e r t y ( " c o n s t r a i n t o v i e w p o r t " , t r u e ) ; t h i s . s e t B o d y ( " " ) ; t h i s . s u b s c r i b e ( " c h a n g e C o n t e n t " , D ) ; t h i s . s u b s c r i b e ( " i n i t " , L ) ; t h i s . s u b s c r i b e ( " r e n d e r " , t h i s . o n R e n d e r ) ; t h i s . i n i t E v e n t . f i r e ( J ) ; } , i n i t E v e n t s : f u n c t i o n ( ) { J . s u p e r c l a s s . i n i t E v e n t s . c a l l ( t h i s ) ; v a r   O = M . L I S T ; t h i s . c o n t e x t M o u s e O v e r E v e n t = t h i s . c r e a t e E v e n t ( A . C O N T E X T _ M O U S E _ O V E R ) ; t h i s . c o n t e x t M o u s e O v e r E v e n t . s i g n a t u r e = O ; t h i s . c o n t e x t M o u s e O u t E v e n t = t h i s . c r e a t e E v e n t ( A . C O N T E X T _ M O U S E _ O U T ) ; t h i s . c o n t e x t M o u s e O u t E v e n t . s i g n a t u r e = O ; t h i s . c o n t e x t T r i g g e r E v e n t = t h i s . c r e a t e E v e n t ( A . C O N T E X T _ T R I G G E R ) ; t h i s . c o n t e x t T r i g g e r E v e n t . s i g n a t u r e = O ; } , i n i t D e f a u l t C o n f i g : f u n c t i o n ( ) { J . s u p e r c l a s s . i n i t D e f a u l t C o n f i g . c a l l ( t h i s ) ; t h i s . c f g . a d d P r o p e r t y ( I . P R E V E N T _ O V E R L A P . k e y , { v a l u e : I . P R E V E N T _ O V E R L A P . v a l u e , v a l i d a t o r : I . P R E V E N T _ O V E R L A P . v a l i d a t o r , s u p e r c e d e s : I . P R E V E N T _ O V E R L A P . s u p e r c e d e s } ) ; t h i s . c f g . a d d P r o p e r t y ( I . S H O W _ D E L A Y . k e y , { h a n d l e r : t h i s . c o n f i g S h o w D e l a y , v a l u e : 2 0 0 , v a l i d a t o r : I . S H O W _ D E L A Y . v a l i d a t o r } ) ; t h i s . c f g . a d d P r o p e r t y ( I . A U T O _ D I S M I S S _ D E L A Y . k e y , { h a n d l e r : t h i s . c o n f i g A u t o D i s m i s s D e l a y , v a l u e : I . A U T O _ D I S M I S S _ D E L A Y . v a l u e , v a l i d a t o r : I . A U T O _ D I S M I S S _ D E L A Y . v a l i d a t o r } ) ; t h i s . c f g . a d d P r o p e r t y ( I . H I D E _ D E L A Y . k e y , { h a n d l e r : t h i s . c o n f i g H i d e D e l a y , v a l u e : I . H I D E _ D E L A Y . v a l u e , v a l i d a t o r : I . H I D E _ D E L A Y . v a l i d a t o r } ) ; t h i s . c f g . a d d P r o p e r t y ( I . T E X T . k e y , { h a n d l e r : t h i s . c o n f i g T e x t , s u p p r e s s E v e n t : I . T E X T . s u p p r e s s E v e n t } ) ; t h i s . c f g . a d d P r o p e r t y ( I . C O N T A I N E R . k e y , { h a n d l e r : t h i s . c o n f i g C o n t a i n e r , v a l u e : d o c u m e n t . b o d y } ) ; t h i s . c f g . a d d P r o p e r t y ( I . D I S A B L E D . k e y , { h a n d l e r : t h i s . c o n f i g C o n t a i n e r , v a l u e : I . D I S A B L E D . v a l u e , s u p r e s s E v e n t : I . D I S A B L E D . s u p p r e s s E v e n t } ) ; } , c o n f i g T e x t : f u n c t i o n ( P , O , Q ) { v a r   R = O [ 0 ] ; i f ( R ) { t h i s . s e t B o d y ( R ) ; } } , c o n f i g C o n t a i n e r : f u n c t i o n ( Q , P , R ) { v a r   O = P [ 0 ] ; i f ( t y p e o f   O = = " s t r i n g " ) { t h i s . c f g . s e t P r o p e r t y ( " c o n t a i n e r " , d o c u m e n t . g e t E l e m e n t B y I d ( O ) , t r u e ) ; } } , _ r e m o v e E v e n t L i s t e n e r s : f u n c t i o n ( ) { v a r   R = t h i s . _ c o n t e x t , O , Q , P ; i f ( R ) { O = R . l e n g t h ; i f ( O > 0 ) { P = O - 1 ; d o { Q = R [ P ] ; N . r e m o v e L i s t e n e r ( Q , " m o u s e o v e r " , t h i s . o n C o n t e x t M o u s e O v e r ) ; N . r e m o v e L i s t e n e r ( Q , " m o u s e m o v e " , t h i s . o n C o n t e x t M o u s e M o v e ) ; N . r e m o v e L i s t e n e r ( Q , " m o u s e o u t " , t h i s . o n C o n t e x t M o u s e O u t ) ; } w h i l e ( P - - ) ; } } } , c o n f i g C o n t e x t : f u n c t i o n ( T , P , U ) { v a r   S = P [ 0 ] , V , O , R , Q ; i f ( S ) { i f ( ! ( S   i n s t a n c e o f   A r r a y ) ) { i f ( t y p e o f   S = = " s t r i n g " ) { t h i s . c f g . s e t P r o p e r t y ( " c o n t e x t " , [ d o c u m e n t . g e t E l e m e n t B y I d ( S ) ] , t r u e ) ; } e l s e { t h i s . c f g . s e t P r o p e r t y ( " c o n t e x t " , [ S ] , t r u e ) ; } S = t h i s . c f g . g e t P r o p e r t y ( " c o n t e x t " ) ; } t h i s . _ r e m o v e E v e n t L i s t e n e r s ( ) ; t h i s . _ c o n t e x t = S ; V = t h i s . _ c o n t e x t ; i f ( V ) { O = V . l e n g t h ; i f ( O > 0 ) { Q = O - 1 ; d o { R = V [ Q ] ; N . o n ( R , " m o u s e o v e r " , t h i s . o n C o n t e x t M o u s e O v e r , t h i s ) ; N . o n ( R , " m o u s e m o v e " , t h i s . o n C o n t e x t M o u s e M o v e , t h i s ) ; N . o n ( R , " m o u s e o u t " , t h i s . o n C o n t e x t M o u s e O u t , t h i s ) ; } w h i l e ( Q - - ) ; } } } } , o n C o n t e x t M o u s e M o v e : f u n c t i o n ( P , O ) { O . p a g e X = N . g e t P a g e X ( P ) ; O . p a g e Y = N . g e t P a g e Y ( P ) ; } , o n C o n t e x t M o u s e O v e r : f u n c t i o n ( Q , P ) { v a r   O = t h i s ; i f ( O . t i t l e ) { P . _ t e m p T i t l e = O . t i t l e ; O . t i t l e = " " ; } i f ( P . f i r e E v e n t ( " c o n t e x t M o u s e O v e r " , O , Q ) ! = = f a l s e & & ! P . c f g . g e t P r o p e r t y ( " d i s a b l e d " ) ) { i f ( P . h i d e P r o c I d ) { c l e a r T i m e o u t ( P . h i d e P r o c I d ) ; P . h i d e P r o c I d = n u l l ; } N . o n ( O , " m o u s e m o v e " , P . o n C o n t e x t M o u s e M o v e , P ) ; P . s h o w P r o c I d = P . d o S h o w ( Q , O ) ; } } , o n C o n t e x t M o u s e O u t : f u n c t i o n ( Q , P ) { v a r   O = t h i s ; i f ( P . _ t e m p T i t l e ) { O . t i t l e = P . _ t e m p T i t l e ; P . _ t e m p T i t l e = n u l l ; } i f ( P . s h o w P r o c I d ) { c l e a r T i m e o u t ( P . s h o w P r o c I d ) ; P . s h o w P r o c I d = n u l l ; } i f ( P . h i d e P r o c I d ) { c l e a r T i m e o u t ( P . h i d e P r o c I d ) ; P . h i d e P r o c I d = n u l l ; } P . f i r e E v e n t ( " c o n t e x t M o u s e O u t " , O , Q ) ; P . h i d e P r o c I d = s e t T i m e o u t ( f u n c t i o n ( ) { P . h i d e ( ) ; } , P . c f g . g e t P r o p e r t y ( " h i d e d e l a y " ) ) ; } , d o S h o w : f u n c t i o n ( Q , O ) { v a r   R = 2 5 , P = t h i s ;  
 i f ( H . o p e r a & & O . t a g N a m e & & O . t a g N a m e . t o U p p e r C a s e ( ) = = " A " ) { R + = 1 2 ; } r e t u r n   s e t T i m e o u t ( f u n c t i o n ( ) { v a r   S = P . c f g . g e t P r o p e r t y ( " t e x t " ) ; i f ( P . _ t e m p T i t l e & & ( S = = = " " | | Y A H O O . l a n g . i s U n d e f i n e d ( S ) | | Y A H O O . l a n g . i s N u l l ( S ) ) ) { P . s e t B o d y ( P . _ t e m p T i t l e ) ; } e l s e { P . c f g . r e f i r e E v e n t ( " t e x t " ) ; } P . m o v e T o ( P . p a g e X , P . p a g e Y + R ) ; i f ( P . c f g . g e t P r o p e r t y ( " p r e v e n t o v e r l a p " ) ) { P . p r e v e n t O v e r l a p ( P . p a g e X , P . p a g e Y ) ; } N . r e m o v e L i s t e n e r ( O , " m o u s e m o v e " , P . o n C o n t e x t M o u s e M o v e ) ; P . c o n t e x t T r i g g e r E v e n t . f i r e ( O ) ; P . s h o w ( ) ; P . h i d e P r o c I d = P . d o H i d e ( ) ; } , t h i s . c f g . g e t P r o p e r t y ( " s h o w d e l a y " ) ) ; } , d o H i d e : f u n c t i o n ( ) { v a r   O = t h i s ; r e t u r n   s e t T i m e o u t ( f u n c t i o n ( ) { O . h i d e ( ) ; } , t h i s . c f g . g e t P r o p e r t y ( " a u t o d i s m i s s d e l a y " ) ) ; } , p r e v e n t O v e r l a p : f u n c t i o n ( S , R ) { v a r   O = t h i s . e l e m e n t . o f f s e t H e i g h t , Q = n e w   Y A H O O . u t i l . P o i n t ( S , R ) , P = C . g e t R e g i o n ( t h i s . e l e m e n t ) ; P . t o p - = 5 ; P . l e f t - = 5 ; P . r i g h t + = 5 ; P . b o t t o m + = 5 ; i f ( P . c o n t a i n s ( Q ) ) { t h i s . c f g . s e t P r o p e r t y ( " y " , ( R - O - 5 ) ) ; } } , o n R e n d e r : f u n c t i o n ( S , R ) { f u n c t i o n   T ( ) { v a r   W = t h i s . e l e m e n t , V = t h i s . u n d e r l a y ; i f ( V ) { V . s t y l e . w i d t h = ( W . o f f s e t W i d t h + 6 ) + " p x " ; V . s t y l e . h e i g h t = ( W . o f f s e t H e i g h t + 1 ) + " p x " ; } } f u n c t i o n   P ( ) { C . a d d C l a s s ( t h i s . u n d e r l a y , " y u i - t t - s h a d o w - v i s i b l e " ) ; i f ( H . i e ) { t h i s . f o r c e U n d e r l a y R e d r a w ( ) ; } } f u n c t i o n   O ( ) { C . r e m o v e C l a s s ( t h i s . u n d e r l a y , " y u i - t t - s h a d o w - v i s i b l e " ) ; } f u n c t i o n   U ( ) { v a r   X = t h i s . u n d e r l a y , W , V , Z , Y ; i f ( ! X ) { W = t h i s . e l e m e n t ; V = Y A H O O . w i d g e t . M o d u l e ; Z = H . i e ; Y = t h i s ; i f ( ! F ) { F = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; F . c l a s s N a m e = " y u i - t t - s h a d o w " ; } X = F . c l o n e N o d e ( f a l s e ) ; W . a p p e n d C h i l d ( X ) ; t h i s . u n d e r l a y = X ; t h i s . _ s h a d o w = t h i s . u n d e r l a y ; P . c a l l ( t h i s ) ; t h i s . s u b s c r i b e ( " b e f o r e S h o w " , P ) ; t h i s . s u b s c r i b e ( " h i d e " , O ) ; i f ( G ) { w i n d o w . s e t T i m e o u t ( f u n c t i o n ( ) { T . c a l l ( Y ) ; } , 0 ) ; t h i s . c f g . s u b s c r i b e T o C o n f i g E v e n t ( " w i d t h " , T ) ; t h i s . c f g . s u b s c r i b e T o C o n f i g E v e n t ( " h e i g h t " , T ) ; t h i s . s u b s c r i b e ( " c h a n g e C o n t e n t " , T ) ; V . t e x t R e s i z e E v e n t . s u b s c r i b e ( T , t h i s , t r u e ) ; t h i s . s u b s c r i b e ( " d e s t r o y " , f u n c t i o n ( ) { V . t e x t R e s i z e E v e n t . u n s u b s c r i b e ( T , t h i s ) ; } ) ; } } } f u n c t i o n   Q ( ) { U . c a l l ( t h i s ) ; t h i s . u n s u b s c r i b e ( " b e f o r e S h o w " , Q ) ; } i f ( t h i s . c f g . g e t P r o p e r t y ( " v i s i b l e " ) ) { U . c a l l ( t h i s ) ; } e l s e { t h i s . s u b s c r i b e ( " b e f o r e S h o w " , Q ) ; } } , f o r c e U n d e r l a y R e d r a w : f u n c t i o n ( ) { v a r   O = t h i s ; C . a d d C l a s s ( O . u n d e r l a y , " y u i - f o r c e - r e d r a w " ) ; s e t T i m e o u t ( f u n c t i o n ( ) { C . r e m o v e C l a s s ( O . u n d e r l a y , " y u i - f o r c e - r e d r a w " ) ; } , 0 ) ; } , d e s t r o y : f u n c t i o n ( ) { t h i s . _ r e m o v e E v e n t L i s t e n e r s ( ) ; J . s u p e r c l a s s . d e s t r o y . c a l l ( t h i s ) ; } , t o S t r i n g : f u n c t i o n ( ) { r e t u r n " T o o l t i p   " + t h i s . i d ; } } ) ; } ( ) ) ; ( f u n c t i o n ( ) { Y A H O O . w i d g e t . P a n e l = f u n c t i o n ( V , U ) { Y A H O O . w i d g e t . P a n e l . s u p e r c l a s s . c o n s t r u c t o r . c a l l ( t h i s , V , U ) ; } ; v a r   S = n u l l ; v a r   E = Y A H O O . l a n g , F = Y A H O O . u t i l , A = F . D o m , T = F . E v e n t , M = F . C u s t o m E v e n t , K = Y A H O O . u t i l . K e y L i s t e n e r , I = F . C o n f i g , H = Y A H O O . w i d g e t . O v e r l a y , O = Y A H O O . w i d g e t . P a n e l , L = Y A H O O . e n v . u a , P = ( L . i e & & ( L . i e < = 6 | | d o c u m e n t . c o m p a t M o d e = = " B a c k C o m p a t " ) ) , G , Q , C , D = { " S H O W _ M A S K " : " s h o w M a s k " , " H I D E _ M A S K " : " h i d e M a s k " , " D R A G " : " d r a g " } , N = { " C L O S E " : { k e y : " c l o s e " , v a l u e : t r u e , v a l i d a t o r : E . i s B o o l e a n , s u p e r c e d e s : [ " v i s i b l e " ] } , " D R A G G A B L E " : { k e y : " d r a g g a b l e " , v a l u e : ( F . D D ? t r u e : f a l s e ) , v a l i d a t o r : E . i s B o o l e a n , s u p e r c e d e s : [ " v i s i b l e " ] } , " D R A G _ O N L Y " : { k e y : " d r a g o n l y " , v a l u e : f a l s e , v a l i d a t o r : E . i s B o o l e a n , s u p e r c e d e s : [ " d r a g g a b l e " ] } , " U N D E R L A Y " : { k e y : " u n d e r l a y " , v a l u e : " s h a d o w " , s u p e r c e d e s : [ " v i s i b l e " ] } , " M O D A L " : { k e y : " m o d a l " , v a l u e : f a l s e , v a l i d a t o r : E . i s B o o l e a n , s u p e r c e d e s : [ " v i s i b l e " , " z i n d e x " ] } , " K E Y _ L I S T E N E R S " : { k e y : " k e y l i s t e n e r s " , s u p p r e s s E v e n t : t r u e , s u p e r c e d e s : [ " v i s i b l e " ] } , " S T R I N G S " : { k e y : " s t r i n g s " , s u p e r c e d e s : [ " c l o s e " ] , v a l i d a t o r : E . i s O b j e c t , v a l u e : { c l o s e : " C l o s e " } } } ; O . C S S _ P A N E L = " y u i - p a n e l " ; O . C S S _ P A N E L _ C O N T A I N E R = " y u i - p a n e l - c o n t a i n e r " ; O . F O C U S A B L E = [ " a " , " b u t t o n " , " s e l e c t " , " t e x t a r e a " , " i n p u t " , " i f r a m e " ] ; f u n c t i o n   J ( V , U ) { i f ( ! t h i s . h e a d e r & & t h i s . c f g . g e t P r o p e r t y ( " d r a g g a b l e " ) ) { t h i s . s e t H e a d e r ( " & # 1 6 0 ; " ) ; } } f u n c t i o n   R ( V , U , W ) { v a r   Z = W [ 0 ] , X = W [ 1 ] , Y = t h i s . c f g , a = Y . g e t P r o p e r t y ( " w i d t h " ) ; i f ( a = = X ) { Y . s e t P r o p e r t y ( " w i d t h " , Z ) ; } t h i s . u n s u b s c r i b e ( " h i d e " , R , W ) ; } f u n c t i o n   B ( V , U ) { v a r   Y , X , W ; i f ( P ) { Y = t h i s . c f g ; X = Y . g e t P r o p e r t y ( " w i d t h " ) ; i f ( ! X | | X = = " a u t o " ) { W = ( t h i s . e l e m e n t . o f f s e t W i d t h + " p x " ) ; Y . s e t P r o p e r t y ( " w i d t h " , W ) ; t h i s . s u b s c r i b e ( " h i d e " , R , [ ( X | | " " ) , W ] ) ; } } } Y A H O O . e x t e n d ( O , H , { i n i t : f u n c t i o n ( V , U ) { O . s u p e r c l a s s . i n i t . c a l l ( t h i s , V ) ; t h i s . b e f o r e I n i t E v e n t . f i r e ( O ) ; A . a d d C l a s s ( t h i s . e l e m e n t , O . C S S _ P A N E L ) ; t h i s . b u i l d W r a p p e r ( ) ; i f ( U ) { t h i s . c f g . a p p l y C o n f i g ( U , t r u e ) ; } t h i s . s u b s c r i b e ( " s h o w M a s k " , t h i s . _ a d d F o c u s H a n d l e r s ) ; t h i s . s u b s c r i b e ( " h i d e M a s k " , t h i s . _ r e m o v e F o c u s H a n d l e r s ) ; t h i s . s u b s c r i b e ( " b e f o r e R e n d e r " , J ) ; t h i s . s u b s c r i b e ( " r e n d e r " , f u n c t i o n ( ) { t h i s . s e t F i r s t L a s t F o c u s a b l e ( ) ; t h i s . s u b s c r i b e ( " c h a n g e C o n t e n t " , t h i s . s e t F i r s t L a s t F o c u s a b l e ) ; } ) ; t h i s . s u b s c r i b e ( " s h o w " , t h i s . f o c u s F i r s t ) ; t h i s . i n i t E v e n t . f i r e ( O ) ; } , _ o n E l e m e n t F o c u s : f u n c t i o n ( Z ) { i f ( S = = = t h i s ) { v a r   Y = T . g e t T a r g e t ( Z ) , X = d o c u m e n t . d o c u m e n t E l e m e n t , V = ( Y ! = = X & & Y ! = = w i n d o w ) ; i f ( V & & Y ! = = t h i s . e l e m e n t & & Y ! = = t h i s . m a s k & & ! A . i s A n c e s t o r ( t h i s . e l e m e n t , Y ) ) { t r y { i f ( t h i s . f i r s t E l e m e n t ) { t h i s . f i r s t E l e m e n t . f o c u s ( ) ; } e l s e { i f ( t h i s . _ m o d a l F o c u s ) { t h i s . _ m o d a l F o c u s . f o c u s ( ) ; } e l s e { t h i s . i n n e r E l e m e n t . f o c u s ( ) ; } } } c a t c h ( W ) { t r y { i f ( V & & Y ! = = d o c u m e n t . b o d y ) { Y . b l u r ( ) ; } } c a t c h ( U ) { } } } } } , _ a d d F o c u s H a n d l e r s : f u n c t i o n ( V , U ) { i f ( ! t h i s . f i r s t E l e m e n t ) { i f ( L . w e b k i t | | L . o p e r a ) { i f ( ! t h i s . _ m o d a l F o c u s ) { t h i s . _ c r e a t e H i d d e n F o c u s E l e m e n t ( ) ; } } e l s e { t h i s . i n n e r E l e m e n t . t a b I n d e x = 0 ; } } t h i s . s e t T a b L o o p ( t h i s . f i r s t E l e m e n t , t h i s . l a s t E l e m e n t ) ; T . o n F o c u s ( d o c u m e n t . d o c u m e n t E l e m e n t , t h i s . _ o n E l e m e n t F o c u s , t h i s , t r u e ) ; S = t h i s ; } , _ c r e a t e H i d d e n F o c u s E l e m e n t : f u n c t i o n ( ) { v a r   U = d o c u m e n t . c r e a t e E l e m e n t ( " b u t t o n " ) ; U . s t y l e . h e i g h t = " 1 p x " ; U . s t y l e . w i d t h = " 1 p x " ; U . s t y l e . p o s i t i o n = " a b s o l u t e " ; U . s t y l e . l e f t = " - 1 0 0 0 0 e m " ; U . s t y l e . o p a c i t y = 0 ; U . t a b I n d e x = - 1 ; t h i s . i n n e r E l e m e n t . a p p e n d C h i l d ( U ) ; t h i s . _ m o d a l F o c u s = U ; } , _ r e m o v e F o c u s H a n d l e r s : f u n c t i o n ( V , U ) { T . r e m o v e F o c u s L i s t e n e r ( d o c u m e n t . d o c u m e n t E l e m e n t , t h i s . _ o n E l e m e n t F o c u s , t h i s ) ; i f ( S = = t h i s ) { S = n u l l ; } } , f o c u s F i r s t : f u n c t i o n ( W , U , Y ) { v a r   V = t h i s . f i r s t E l e m e n t ; i f ( U & & U [ 1 ] ) { T . s t o p E v e n t ( U [ 1 ] ) ; } i f ( V ) { t r y { V . f o c u s ( ) ; } c a t c h ( X ) { } } } , f o c u s L a s t : f u n c t i o n ( W , U , Y ) { v a r   V = t h i s . l a s t E l e m e n t ; i f ( U & & U [ 1 ] ) { T . s t o p E v e n t ( U [ 1 ] ) ; } i f ( V ) { t r y { V . f o c u s ( ) ; } c a t c h ( X ) { } } } , s e t T a b L o o p : f u n c t i o n ( X , Z ) { v a r   V = t h i s . p r e v e n t B a c k T a b , W = t h i s . p r e v e n t T a b O u t , U = t h i s . s h o w E v e n t , Y = t h i s . h i d e E v e n t ; i f ( V ) { V . d i s a b l e ( ) ; U . u n s u b s c r i b e ( V . e n a b l e , V ) ; Y . u n s u b s c r i b e ( V . d i s a b l e , V ) ; V = t h i s . p r e v e n t B a c k T a b = n u l l ; } i f ( W ) { W . d i s a b l e ( ) ; U . u n s u b s c r i b e ( W . e n a b l e , W ) ; Y . u n s u b s c r i b e ( W . d i s a b l e , W ) ; W = t h i s . p r e v e n t T a b O u t = n u l l ; } i f ( X ) { t h i s . p r e v e n t B a c k T a b = n e w   K ( X , { s h i f t : t r u e , k e y s : 9 } , { f n : t h i s . f o c u s L a s t , s c o p e : t h i s , c o r r e c t S c o p e : t r u e } ) ; V = t h i s . p r e v e n t B a c k T a b ; U . s u b s c r i b e ( V . e n a b l e , V , t r u e ) ;  
 Y . s u b s c r i b e ( V . d i s a b l e , V , t r u e ) ; } i f ( Z ) { t h i s . p r e v e n t T a b O u t = n e w   K ( Z , { s h i f t : f a l s e , k e y s : 9 } , { f n : t h i s . f o c u s F i r s t , s c o p e : t h i s , c o r r e c t S c o p e : t r u e } ) ; W = t h i s . p r e v e n t T a b O u t ; U . s u b s c r i b e ( W . e n a b l e , W , t r u e ) ; Y . s u b s c r i b e ( W . d i s a b l e , W , t r u e ) ; } } , g e t F o c u s a b l e E l e m e n t s : f u n c t i o n ( U ) { U = U | | t h i s . i n n e r E l e m e n t ; v a r   X = { } ; f o r ( v a r   W = 0 ; W < O . F O C U S A B L E . l e n g t h ; W + + ) { X [ O . F O C U S A B L E [ W ] ] = t r u e ; } f u n c t i o n   V ( Y ) { i f ( Y . f o c u s & & Y . t y p e ! = = " h i d d e n " & & ! Y . d i s a b l e d & & X [ Y . t a g N a m e . t o L o w e r C a s e ( ) ] ) { r e t u r n   t r u e ; } r e t u r n   f a l s e ; } r e t u r n   A . g e t E l e m e n t s B y ( V , n u l l , U ) ; } , s e t F i r s t L a s t F o c u s a b l e : f u n c t i o n ( ) { t h i s . f i r s t E l e m e n t = n u l l ; t h i s . l a s t E l e m e n t = n u l l ; v a r   U = t h i s . g e t F o c u s a b l e E l e m e n t s ( ) ; t h i s . f o c u s a b l e E l e m e n t s = U ; i f ( U . l e n g t h > 0 ) { t h i s . f i r s t E l e m e n t = U [ 0 ] ; t h i s . l a s t E l e m e n t = U [ U . l e n g t h - 1 ] ; } i f ( t h i s . c f g . g e t P r o p e r t y ( " m o d a l " ) ) { t h i s . s e t T a b L o o p ( t h i s . f i r s t E l e m e n t , t h i s . l a s t E l e m e n t ) ; } } , i n i t E v e n t s : f u n c t i o n ( ) { O . s u p e r c l a s s . i n i t E v e n t s . c a l l ( t h i s ) ; v a r   U = M . L I S T ; t h i s . s h o w M a s k E v e n t = t h i s . c r e a t e E v e n t ( D . S H O W _ M A S K ) ; t h i s . s h o w M a s k E v e n t . s i g n a t u r e = U ; t h i s . h i d e M a s k E v e n t = t h i s . c r e a t e E v e n t ( D . H I D E _ M A S K ) ; t h i s . h i d e M a s k E v e n t . s i g n a t u r e = U ; t h i s . d r a g E v e n t = t h i s . c r e a t e E v e n t ( D . D R A G ) ; t h i s . d r a g E v e n t . s i g n a t u r e = U ; } , i n i t D e f a u l t C o n f i g : f u n c t i o n ( ) { O . s u p e r c l a s s . i n i t D e f a u l t C o n f i g . c a l l ( t h i s ) ; t h i s . c f g . a d d P r o p e r t y ( N . C L O S E . k e y , { h a n d l e r : t h i s . c o n f i g C l o s e , v a l u e : N . C L O S E . v a l u e , v a l i d a t o r : N . C L O S E . v a l i d a t o r , s u p e r c e d e s : N . C L O S E . s u p e r c e d e s } ) ; t h i s . c f g . a d d P r o p e r t y ( N . D R A G G A B L E . k e y , { h a n d l e r : t h i s . c o n f i g D r a g g a b l e , v a l u e : ( F . D D ) ? t r u e : f a l s e , v a l i d a t o r : N . D R A G G A B L E . v a l i d a t o r , s u p e r c e d e s : N . D R A G G A B L E . s u p e r c e d e s } ) ; t h i s . c f g . a d d P r o p e r t y ( N . D R A G _ O N L Y . k e y , { v a l u e : N . D R A G _ O N L Y . v a l u e , v a l i d a t o r : N . D R A G _ O N L Y . v a l i d a t o r , s u p e r c e d e s : N . D R A G _ O N L Y . s u p e r c e d e s } ) ; t h i s . c f g . a d d P r o p e r t y ( N . U N D E R L A Y . k e y , { h a n d l e r : t h i s . c o n f i g U n d e r l a y , v a l u e : N . U N D E R L A Y . v a l u e , s u p e r c e d e s : N . U N D E R L A Y . s u p e r c e d e s } ) ; t h i s . c f g . a d d P r o p e r t y ( N . M O D A L . k e y , { h a n d l e r : t h i s . c o n f i g M o d a l , v a l u e : N . M O D A L . v a l u e , v a l i d a t o r : N . M O D A L . v a l i d a t o r , s u p e r c e d e s : N . M O D A L . s u p e r c e d e s } ) ; t h i s . c f g . a d d P r o p e r t y ( N . K E Y _ L I S T E N E R S . k e y , { h a n d l e r : t h i s . c o n f i g K e y L i s t e n e r s , s u p p r e s s E v e n t : N . K E Y _ L I S T E N E R S . s u p p r e s s E v e n t , s u p e r c e d e s : N . K E Y _ L I S T E N E R S . s u p e r c e d e s } ) ; t h i s . c f g . a d d P r o p e r t y ( N . S T R I N G S . k e y , { v a l u e : N . S T R I N G S . v a l u e , h a n d l e r : t h i s . c o n f i g S t r i n g s , v a l i d a t o r : N . S T R I N G S . v a l i d a t o r , s u p e r c e d e s : N . S T R I N G S . s u p e r c e d e s } ) ; } , c o n f i g C l o s e : f u n c t i o n ( X , V , Y ) { v a r   Z = V [ 0 ] , W = t h i s . c l o s e , U = t h i s . c f g . g e t P r o p e r t y ( " s t r i n g s " ) ; i f ( Z ) { i f ( ! W ) { i f ( ! C ) { C = d o c u m e n t . c r e a t e E l e m e n t ( " a " ) ; C . c l a s s N a m e = " c o n t a i n e r - c l o s e " ; C . h r e f = " # " ; } W = C . c l o n e N o d e ( t r u e ) ; t h i s . i n n e r E l e m e n t . a p p e n d C h i l d ( W ) ; W . i n n e r H T M L = ( U & & U . c l o s e ) ? U . c l o s e : " & # 1 6 0 ; " ; T . o n ( W , " c l i c k " , t h i s . _ d o C l o s e , t h i s , t r u e ) ; t h i s . c l o s e = W ; } e l s e { W . s t y l e . d i s p l a y = " b l o c k " ; } } e l s e { i f ( W ) { W . s t y l e . d i s p l a y = " n o n e " ; } } } , _ d o C l o s e : f u n c t i o n ( U ) { T . p r e v e n t D e f a u l t ( U ) ; t h i s . h i d e ( ) ; } , c o n f i g D r a g g a b l e : f u n c t i o n ( V , U , W ) { v a r   X = U [ 0 ] ; i f ( X ) { i f ( ! F . D D ) { t h i s . c f g . s e t P r o p e r t y ( " d r a g g a b l e " , f a l s e ) ; r e t u r n ; } i f ( t h i s . h e a d e r ) { A . s e t S t y l e ( t h i s . h e a d e r , " c u r s o r " , " m o v e " ) ; t h i s . r e g i s t e r D r a g D r o p ( ) ; } t h i s . s u b s c r i b e ( " b e f o r e S h o w " , B ) ; } e l s e { i f ( t h i s . d d ) { t h i s . d d . u n r e g ( ) ; } i f ( t h i s . h e a d e r ) { A . s e t S t y l e ( t h i s . h e a d e r , " c u r s o r " , " a u t o " ) ; } t h i s . u n s u b s c r i b e ( " b e f o r e S h o w " , B ) ; } } , c o n f i g U n d e r l a y : f u n c t i o n ( d , c , Z ) { v a r   b = ( t h i s . p l a t f o r m = = " m a c " & & L . g e c k o ) , e = c [ 0 ] . t o L o w e r C a s e ( ) , V = t h i s . u n d e r l a y , W = t h i s . e l e m e n t ; f u n c t i o n   X ( ) { v a r   f = f a l s e ; i f ( ! V ) { i f ( ! Q ) { Q = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; Q . c l a s s N a m e = " u n d e r l a y " ; } V = Q . c l o n e N o d e ( f a l s e ) ; t h i s . e l e m e n t . a p p e n d C h i l d ( V ) ; t h i s . u n d e r l a y = V ; i f ( P ) { t h i s . s i z e U n d e r l a y ( ) ; t h i s . c f g . s u b s c r i b e T o C o n f i g E v e n t ( " w i d t h " , t h i s . s i z e U n d e r l a y ) ; t h i s . c f g . s u b s c r i b e T o C o n f i g E v e n t ( " h e i g h t " , t h i s . s i z e U n d e r l a y ) ; t h i s . c h a n g e C o n t e n t E v e n t . s u b s c r i b e ( t h i s . s i z e U n d e r l a y ) ; Y A H O O . w i d g e t . M o d u l e . t e x t R e s i z e E v e n t . s u b s c r i b e ( t h i s . s i z e U n d e r l a y , t h i s , t r u e ) ; } i f ( L . w e b k i t & & L . w e b k i t < 4 2 0 ) { t h i s . c h a n g e C o n t e n t E v e n t . s u b s c r i b e ( t h i s . f o r c e U n d e r l a y R e d r a w ) ; } f = t r u e ; } } f u n c t i o n   a ( ) { v a r   f = X . c a l l ( t h i s ) ; i f ( ! f & & P ) { t h i s . s i z e U n d e r l a y ( ) ; } t h i s . _ u n d e r l a y D e f e r r e d = f a l s e ; t h i s . b e f o r e S h o w E v e n t . u n s u b s c r i b e ( a ) ; } f u n c t i o n   Y ( ) { i f ( t h i s . _ u n d e r l a y D e f e r r e d ) { t h i s . b e f o r e S h o w E v e n t . u n s u b s c r i b e ( a ) ; t h i s . _ u n d e r l a y D e f e r r e d = f a l s e ; } i f ( V ) { t h i s . c f g . u n s u b s c r i b e F r o m C o n f i g E v e n t ( " w i d t h " , t h i s . s i z e U n d e r l a y ) ; t h i s . c f g . u n s u b s c r i b e F r o m C o n f i g E v e n t ( " h e i g h t " , t h i s . s i z e U n d e r l a y ) ; t h i s . c h a n g e C o n t e n t E v e n t . u n s u b s c r i b e ( t h i s . s i z e U n d e r l a y ) ; t h i s . c h a n g e C o n t e n t E v e n t . u n s u b s c r i b e ( t h i s . f o r c e U n d e r l a y R e d r a w ) ; Y A H O O . w i d g e t . M o d u l e . t e x t R e s i z e E v e n t . u n s u b s c r i b e ( t h i s . s i z e U n d e r l a y , t h i s , t r u e ) ; t h i s . e l e m e n t . r e m o v e C h i l d ( V ) ; t h i s . u n d e r l a y = n u l l ; } } s w i t c h ( e ) { c a s e " s h a d o w " : A . r e m o v e C l a s s ( W , " m a t t e " ) ; A . a d d C l a s s ( W , " s h a d o w " ) ; b r e a k ; c a s e " m a t t e " : i f ( ! b ) { Y . c a l l ( t h i s ) ; } A . r e m o v e C l a s s ( W , " s h a d o w " ) ; A . a d d C l a s s ( W , " m a t t e " ) ; b r e a k ; d e f a u l t : i f ( ! b ) { Y . c a l l ( t h i s ) ; } A . r e m o v e C l a s s ( W , " s h a d o w " ) ; A . r e m o v e C l a s s ( W , " m a t t e " ) ; b r e a k ; } i f ( ( e = = " s h a d o w " ) | | ( b & & ! V ) ) { i f ( t h i s . c f g . g e t P r o p e r t y ( " v i s i b l e " ) ) { v a r   U = X . c a l l ( t h i s ) ; i f ( ! U & & P ) { t h i s . s i z e U n d e r l a y ( ) ; } } e l s e { i f ( ! t h i s . _ u n d e r l a y D e f e r r e d ) { t h i s . b e f o r e S h o w E v e n t . s u b s c r i b e ( a ) ; t h i s . _ u n d e r l a y D e f e r r e d = t r u e ; } } } } , c o n f i g M o d a l : f u n c t i o n ( V , U , X ) { v a r   W = U [ 0 ] ; i f ( W ) { i f ( ! t h i s . _ h a s M o d a l i t y E v e n t L i s t e n e r s ) { t h i s . s u b s c r i b e ( " b e f o r e S h o w " , t h i s . b u i l d M a s k ) ; t h i s . s u b s c r i b e ( " b e f o r e S h o w " , t h i s . b r i n g T o T o p ) ; t h i s . s u b s c r i b e ( " b e f o r e S h o w " , t h i s . s h o w M a s k ) ; t h i s . s u b s c r i b e ( " h i d e " , t h i s . h i d e M a s k ) ; H . w i n d o w R e s i z e E v e n t . s u b s c r i b e ( t h i s . s i z e M a s k , t h i s , t r u e ) ; t h i s . _ h a s M o d a l i t y E v e n t L i s t e n e r s = t r u e ; } } e l s e { i f ( t h i s . _ h a s M o d a l i t y E v e n t L i s t e n e r s ) { i f ( t h i s . c f g . g e t P r o p e r t y ( " v i s i b l e " ) ) { t h i s . h i d e M a s k ( ) ; t h i s . r e m o v e M a s k ( ) ; } t h i s . u n s u b s c r i b e ( " b e f o r e S h o w " , t h i s . b u i l d M a s k ) ; t h i s . u n s u b s c r i b e ( " b e f o r e S h o w " , t h i s . b r i n g T o T o p ) ; t h i s . u n s u b s c r i b e ( " b e f o r e S h o w " , t h i s . s h o w M a s k ) ; t h i s . u n s u b s c r i b e ( " h i d e " , t h i s . h i d e M a s k ) ; H . w i n d o w R e s i z e E v e n t . u n s u b s c r i b e ( t h i s . s i z e M a s k , t h i s ) ; t h i s . _ h a s M o d a l i t y E v e n t L i s t e n e r s = f a l s e ; } } } , r e m o v e M a s k : f u n c t i o n ( ) { v a r   V = t h i s . m a s k , U ; i f ( V ) { t h i s . h i d e M a s k ( ) ; U = V . p a r e n t N o d e ; i f ( U ) { U . r e m o v e C h i l d ( V ) ; } t h i s . m a s k = n u l l ; } } , c o n f i g K e y L i s t e n e r s : f u n c t i o n ( X , U , a ) { v a r   W = U [ 0 ] , Z , Y , V ; i f ( W ) { i f ( W   i n s t a n c e o f   A r r a y ) { Y = W . l e n g t h ; f o r ( V = 0 ; V < Y ; V + + ) { Z = W [ V ] ; i f ( ! I . a l r e a d y S u b s c r i b e d ( t h i s . s h o w E v e n t , Z . e n a b l e , Z ) ) { t h i s . s h o w E v e n t . s u b s c r i b e ( Z . e n a b l e , Z , t r u e ) ; } i f ( ! I . a l r e a d y S u b s c r i b e d ( t h i s . h i d e E v e n t , Z . d i s a b l e , Z ) ) { t h i s . h i d e E v e n t . s u b s c r i b e ( Z . d i s a b l e , Z , t r u e ) ; t h i s . d e s t r o y E v e n t . s u b s c r i b e ( Z . d i s a b l e , Z , t r u e ) ; } } } e l s e { i f ( ! I . a l r e a d y S u b s c r i b e d ( t h i s . s h o w E v e n t , W . e n a b l e , W ) ) { t h i s . s h o w E v e n t . s u b s c r i b e ( W . e n a b l e , W , t r u e ) ; } i f ( ! I . a l r e a d y S u b s c r i b e d ( t h i s . h i d e E v e n t , W . d i s a b l e , W ) ) { t h i s . h i d e E v e n t . s u b s c r i b e ( W . d i s a b l e , W , t r u e ) ;  
 t h i s . d e s t r o y E v e n t . s u b s c r i b e ( W . d i s a b l e , W , t r u e ) ; } } } } , c o n f i g S t r i n g s : f u n c t i o n ( V , U , W ) { v a r   X = E . m e r g e ( N . S T R I N G S . v a l u e , U [ 0 ] ) ; t h i s . c f g . s e t P r o p e r t y ( N . S T R I N G S . k e y , X , t r u e ) ; } , c o n f i g H e i g h t : f u n c t i o n ( X , V , Y ) { v a r   U = V [ 0 ] , W = t h i s . i n n e r E l e m e n t ; A . s e t S t y l e ( W , " h e i g h t " , U ) ; t h i s . c f g . r e f i r e E v e n t ( " i f r a m e " ) ; } , _ a u t o F i l l O n H e i g h t C h a n g e : f u n c t i o n ( X , V , W ) { O . s u p e r c l a s s . _ a u t o F i l l O n H e i g h t C h a n g e . a p p l y ( t h i s , a r g u m e n t s ) ; i f ( P ) { v a r   U = t h i s ; s e t T i m e o u t ( f u n c t i o n ( ) { U . s i z e U n d e r l a y ( ) ; } , 0 ) ; } } , c o n f i g W i d t h : f u n c t i o n ( X , U , Y ) { v a r   W = U [ 0 ] , V = t h i s . i n n e r E l e m e n t ; A . s e t S t y l e ( V , " w i d t h " , W ) ; t h i s . c f g . r e f i r e E v e n t ( " i f r a m e " ) ; } , c o n f i g z I n d e x : f u n c t i o n ( V , U , X ) { O . s u p e r c l a s s . c o n f i g z I n d e x . c a l l ( t h i s , V , U , X ) ; i f ( t h i s . m a s k | | t h i s . c f g . g e t P r o p e r t y ( " m o d a l " ) = = = t r u e ) { v a r   W = A . g e t S t y l e ( t h i s . e l e m e n t , " z I n d e x " ) ; i f ( ! W | | i s N a N ( W ) ) { W = 0 ; } i f ( W = = = 0 ) { t h i s . c f g . s e t P r o p e r t y ( " z I n d e x " , 1 ) ; } e l s e { t h i s . s t a c k M a s k ( ) ; } } } , b u i l d W r a p p e r : f u n c t i o n ( ) { v a r   W = t h i s . e l e m e n t . p a r e n t N o d e , U = t h i s . e l e m e n t , 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 . c l a s s N a m e = O . C S S _ P A N E L _ C O N T A I N E R ; V . i d = U . i d + " _ c " ; i f ( W ) { W . i n s e r t B e f o r e ( V , U ) ; } V . a p p e n d C h i l d ( U ) ; t h i s . e l e m e n t = V ; t h i s . i n n e r E l e m e n t = U ; A . s e t S t y l e ( t h i s . i n n e r E l e m e n t , " v i s i b i l i t y " , " i n h e r i t " ) ; } , s i z e U n d e r l a y : f u n c t i o n ( ) { v a r   V = t h i s . u n d e r l a y , U ; i f ( V ) { U = t h i s . e l e m e n t ; V . s t y l e . w i d t h = U . o f f s e t W i d t h + " p x " ; V . s t y l e . h e i g h t = U . o f f s e t H e i g h t + " p x " ; } } , r e g i s t e r D r a g D r o p : f u n c t i o n ( ) { v a r   V = t h i s ; i f ( t h i s . h e a d e r ) { i f ( ! F . D D ) { r e t u r n ; } v a r   U = ( t h i s . c f g . g e t P r o p e r t y ( " d r a g o n l y " ) = = = t r u e ) ; t h i s . d d = n e w   F . D D ( t h i s . e l e m e n t . i d , t h i s . i d , { d r a g O n l y : U } ) ; i f ( ! t h i s . h e a d e r . i d ) { t h i s . h e a d e r . i d = t h i s . i d + " _ h " ; } t h i s . d d . s t a r t D r a g = f u n c t i o n ( ) { v a r   X , Z , W , c , b , a ; i f ( Y A H O O . e n v . u a . i e = = 6 ) { A . a d d C l a s s ( V . e l e m e n t , " d r a g " ) ; } i f ( V . c f g . g e t P r o p e r t y ( " c o n s t r a i n t o v i e w p o r t " ) ) { v a r   Y = H . V I E W P O R T _ O F F S E T ; X = V . e l e m e n t . o f f s e t H e i g h t ; Z = V . e l e m e n t . o f f s e t W i d t h ; W = A . g e t V i e w p o r t W i d t h ( ) ; c = A . g e t V i e w p o r t H e i g h t ( ) ; b = A . g e t D o c u m e n t S c r o l l L e f t ( ) ; a = A . g e t D o c u m e n t S c r o l l T o p ( ) ; i f ( X + Y < c ) { t h i s . m i n Y = a + Y ; t h i s . m a x Y = a + c - X - Y ; } e l s e { t h i s . m i n Y = a + Y ; t h i s . m a x Y = a + Y ; } i f ( Z + Y < W ) { t h i s . m i n X = b + Y ; t h i s . m a x X = b + W - Z - Y ; } e l s e { t h i s . m i n X = b + Y ; t h i s . m a x X = b + Y ; } t h i s . c o n s t r a i n X = t r u e ; t h i s . c o n s t r a i n Y = t r u e ; } e l s e { t h i s . c o n s t r a i n X = f a l s e ; t h i s . c o n s t r a i n Y = f a l s e ; } V . d r a g E v e n t . f i r e ( " s t a r t D r a g " , a r g u m e n t s ) ; } ; t h i s . d d . o n D r a g = f u n c t i o n ( ) { V . s y n c P o s i t i o n ( ) ; V . c f g . r e f i r e E v e n t ( " i f r a m e " ) ; i f ( t h i s . p l a t f o r m = = " m a c " & & Y A H O O . e n v . u a . g e c k o ) { t h i s . s h o w M a c G e c k o S c r o l l b a r s ( ) ; } V . d r a g E v e n t . f i r e ( " o n D r a g " , a r g u m e n t s ) ; } ; t h i s . d d . e n d D r a g = f u n c t i o n ( ) { i f ( Y A H O O . e n v . u a . i e = = 6 ) { A . r e m o v e C l a s s ( V . e l e m e n t , " d r a g " ) ; } V . d r a g E v e n t . f i r e ( " e n d D r a g " , a r g u m e n t s ) ; V . m o v e E v e n t . f i r e ( V . c f g . g e t P r o p e r t y ( " x y " ) ) ; } ; t h i s . d d . s e t H a n d l e E l I d ( t h i s . h e a d e r . i d ) ; t h i s . d d . a d d I n v a l i d H a n d l e T y p e ( " I N P U T " ) ; t h i s . d d . a d d I n v a l i d H a n d l e T y p e ( " S E L E C T " ) ; t h i s . d d . a d d I n v a l i d H a n d l e T y p e ( " T E X T A R E A " ) ; } } , b u i l d M a s k : f u n c t i o n ( ) { v a r   U = t h i s . m a s k ; i f ( ! U ) { i f ( ! G ) { G = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; G . c l a s s N a m e = " m a s k " ; G . i n n e r H T M L = " & # 1 6 0 ; " ; } U = G . c l o n e N o d e ( t r u e ) ; U . i d = t h i s . i d + " _ m a s k " ; d o c u m e n t . b o d y . i n s e r t B e f o r e ( U , d o c u m e n t . b o d y . f i r s t C h i l d ) ; t h i s . m a s k = U ; i f ( Y A H O O . e n v . u a . g e c k o & & t h i s . p l a t f o r m = = " m a c " ) { A . a d d C l a s s ( t h i s . m a s k , " b l o c k - s c r o l l b a r s " ) ; } t h i s . s t a c k M a s k ( ) ; } } , h i d e M a s k : f u n c t i o n ( ) { i f ( t h i s . c f g . g e t P r o p e r t y ( " m o d a l " ) & & t h i s . m a s k ) { t h i s . m a s k . s t y l e . d i s p l a y = " n o n e " ; A . r e m o v e C l a s s ( d o c u m e n t . b o d y , " m a s k e d " ) ; t h i s . h i d e M a s k E v e n t . f i r e ( ) ; } } , s h o w M a s k : f u n c t i o n ( ) { i f ( t h i s . c f g . g e t P r o p e r t y ( " m o d a l " ) & & t h i s . m a s k ) { A . a d d C l a s s ( d o c u m e n t . b o d y , " m a s k e d " ) ; t h i s . s i z e M a s k ( ) ; t h i s . m a s k . s t y l e . d i s p l a y = " b l o c k " ; t h i s . s h o w M a s k E v e n t . f i r e ( ) ; } } , s i z e M a s k : f u n c t i o n ( ) { i f ( t h i s . m a s k ) { v a r   V = t h i s . m a s k , W = A . g e t V i e w p o r t W i d t h ( ) , U = A . g e t V i e w p o r t H e i g h t ( ) ; i f ( V . o f f s e t H e i g h t > U ) { V . s t y l e . h e i g h t = U + " p x " ; } i f ( V . o f f s e t W i d t h > W ) { V . s t y l e . w i d t h = W + " p x " ; } V . s t y l e . h e i g h t = A . g e t D o c u m e n t H e i g h t ( ) + " p x " ; V . s t y l e . w i d t h = A . g e t D o c u m e n t W i d t h ( ) + " p x " ; } } , s t a c k M a s k : f u n c t i o n ( ) { i f ( t h i s . m a s k ) { v a r   U = A . g e t S t y l e ( t h i s . e l e m e n t , " z I n d e x " ) ; i f ( ! Y A H O O . l a n g . i s U n d e f i n e d ( U ) & & ! i s N a N ( U ) ) { A . s e t S t y l e ( t h i s . m a s k , " z I n d e x " , U - 1 ) ; } } } , r e n d e r : f u n c t i o n ( U ) { r e t u r n   O . s u p e r c l a s s . r e n d e r . c a l l ( t h i s , U , t h i s . i n n e r E l e m e n t ) ; } , d e s t r o y : f u n c t i o n ( ) { H . w i n d o w R e s i z e E v e n t . u n s u b s c r i b e ( t h i s . s i z e M a s k , t h i s ) ; t h i s . r e m o v e M a s k ( ) ; i f ( t h i s . c l o s e ) { T . p u r g e E l e m e n t ( t h i s . c l o s e ) ; } O . s u p e r c l a s s . d e s t r o y . c a l l ( t h i s ) ; } , f o r c e U n d e r l a y R e d r a w : f u n c t i o n ( ) { v a r   U = t h i s . u n d e r l a y ; A . a d d C l a s s ( U , " y u i - f o r c e - r e d r a w " ) ; s e t T i m e o u t ( f u n c t i o n ( ) { A . r e m o v e C l a s s ( U , " y u i - f o r c e - r e d r a w " ) ; } , 0 ) ; } , t o S t r i n g : f u n c t i o n ( ) { r e t u r n " P a n e l   " + t h i s . i d ; } } ) ; } ( ) ) ; ( f u n c t i o n ( ) { Y A H O O . w i d g e t . D i a l o g = f u n c t i o n ( J , I ) { Y A H O O . w i d g e t . D i a l o g . s u p e r c l a s s . c o n s t r u c t o r . c a l l ( t h i s , J , I ) ; } ; v a r   B = Y A H O O . u t i l . E v e n t , G = Y A H O O . u t i l . C u s t o m E v e n t , E = Y A H O O . u t i l . D o m , A = Y A H O O . w i d g e t . D i a l o g , F = Y A H O O . l a n g , H = { " B E F O R E _ S U B M I T " : " b e f o r e S u b m i t " , " S U B M I T " : " s u b m i t " , " M A N U A L _ S U B M I T " : " m a n u a l S u b m i t " , " A S Y N C _ S U B M I T " : " a s y n c S u b m i t " , " F O R M _ S U B M I T " : " f o r m S u b m i t " , " C A N C E L " : " c a n c e l " } , C = { " P O S T _ M E T H O D " : { k e y : " p o s t m e t h o d " , v a l u e : " a s y n c " } , " P O S T _ D A T A " : { k e y : " p o s t d a t a " , v a l u e : n u l l } , " B U T T O N S " : { k e y : " b u t t o n s " , v a l u e : " n o n e " , s u p e r c e d e s : [ " v i s i b l e " ] } , " H I D E A F T E R S U B M I T " : { k e y : " h i d e a f t e r s u b m i t " , v a l u e : t r u e } } ; A . C S S _ D I A L O G = " y u i - d i a l o g " ; f u n c t i o n   D ( ) { v a r   L = t h i s . _ a B u t t o n s , J , K , I ; i f ( F . i s A r r a y ( L ) ) { J = L . l e n g t h ; i f ( J > 0 ) { I = J - 1 ; d o { K = L [ I ] ; i f ( Y A H O O . w i d g e t . B u t t o n & & K   i n s t a n c e o f   Y A H O O . w i d g e t . B u t t o n ) { K . d e s t r o y ( ) ; } e l s e { i f ( K . t a g N a m e . t o U p p e r C a s e ( ) = = " B U T T O N " ) { B . p u r g e E l e m e n t ( K ) ; B . p u r g e E l e m e n t ( K , f a l s e ) ; } } } w h i l e ( I - - ) ; } } } Y A H O O . e x t e n d ( A , Y A H O O . w i d g e t . P a n e l , { f o r m : n u l l , i n i t D e f a u l t C o n f i g : f u n c t i o n ( ) { A . s u p e r c l a s s . i n i t D e f a u l t C o n f i g . c a l l ( t h i s ) ; t h i s . c a l l b a c k = { s u c c e s s : n u l l , f a i l u r e : n u l l , a r g u m e n t : n u l l } ; t h i s . c f g . a d d P r o p e r t y ( C . P O S T _ M E T H O D . k e y , { h a n d l e r : t h i s . c o n f i g P o s t M e t h o d , v a l u e : C . P O S T _ M E T H O D . v a l u e , v a l i d a t o r : f u n c t i o n ( I ) { i f ( I ! = " f o r m " & & I ! = " a s y n c " & & I ! = " n o n e " & & I ! = " m a n u a l " ) { r e t u r n   f a l s e ; } e l s e { r e t u r n   t r u e ; } } } ) ; t h i s . c f g . a d d P r o p e r t y ( C . P O S T _ D A T A . k e y , { v a l u e : C . P O S T _ D A T A . v a l u e } ) ; t h i s . c f g . a d d P r o p e r t y ( C . H I D E A F T E R S U B M I T . k e y , { v a l u e : C . H I D E A F T E R S U B M I T . v a l u e } ) ; t h i s . c f g . a d d P r o p e r t y ( C . B U T T O N S . k e y , { h a n d l e r : t h i s . c o n f i g B u t t o n s , v a l u e : C . B U T T O N S . v a l u e , s u p e r c e d e s : C . B U T T O N S . s u p e r c e d e s } ) ; } , i n i t E v e n t s : f u n c t i o n ( ) { A . s u p e r c l a s s . i n i t E v e n t s . c a l l ( t h i s ) ; v a r   I = G . L I S T ; t h i s . b e f o r e S u b m i t E v e n t = t h i s . c r e a t e E v e n t ( H . B E F O R E _ S U B M I T ) ; t h i s . b e f o r e S u b m i t E v e n t . s i g n a t u r e = I ; t h i s . s u b m i t E v e n t = t h i s . c r e a t e E v e n t ( H . S U B M I T ) ; t h i s . s u b m i t E v e n t . s i g n a t u r e = I ; t h i s . m a n u a l S u b m i t E v e n t = t h i s . c r e a t e E v e n t ( H . M A N U A L _ S U B M I T ) ; t h i s . m a n u a l S u b m i t E v e n t . s i g n a t u r e = I ; t h i s . a s y n c S u b m i t E v e n t = t h i s . c r e a t e E v e n t ( H . A S Y N C _ S U B M I T ) ;  
 t h i s . a s y n c S u b m i t E v e n t . s i g n a t u r e = I ; t h i s . f o r m S u b m i t E v e n t = t h i s . c r e a t e E v e n t ( H . F O R M _ S U B M I T ) ; t h i s . f o r m S u b m i t E v e n t . s i g n a t u r e = I ; t h i s . c a n c e l E v e n t = t h i s . c r e a t e E v e n t ( H . C A N C E L ) ; t h i s . c a n c e l E v e n t . s i g n a t u r e = I ; } , i n i t : f u n c t i o n ( J , I ) { A . s u p e r c l a s s . i n i t . c a l l ( t h i s , J ) ; t h i s . b e f o r e I n i t E v e n t . f i r e ( A ) ; E . a d d C l a s s ( t h i s . e l e m e n t , A . C S S _ D I A L O G ) ; t h i s . c f g . s e t P r o p e r t y ( " v i s i b l e " , f a l s e ) ; i f ( I ) { t h i s . c f g . a p p l y C o n f i g ( I , t r u e ) ; } t h i s . s h o w E v e n t . s u b s c r i b e ( t h i s . f o c u s F i r s t , t h i s , t r u e ) ; t h i s . b e f o r e H i d e E v e n t . s u b s c r i b e ( t h i s . b l u r B u t t o n s , t h i s , t r u e ) ; t h i s . s u b s c r i b e ( " c h a n g e B o d y " , t h i s . r e g i s t e r F o r m ) ; t h i s . i n i t E v e n t . f i r e ( A ) ; } , d o S u b m i t : f u n c t i o n ( ) { v a r   P = Y A H O O . u t i l . C o n n e c t , Q = t h i s . f o r m , K = f a l s e , N = f a l s e , R , M , L , I ; s w i t c h ( t h i s . c f g . g e t P r o p e r t y ( " p o s t m e t h o d " ) ) { c a s e " a s y n c " : R = Q . e l e m e n t s ; M = R . l e n g t h ; i f ( M > 0 ) { L = M - 1 ; d o { i f ( R [ L ] . t y p e = = " f i l e " ) { K = t r u e ; b r e a k ; } } w h i l e ( L - - ) ; } i f ( K & & Y A H O O . e n v . u a . i e & & t h i s . i s S e c u r e ) { N = t r u e ; } I = t h i s . _ g e t F o r m A t t r i b u t e s ( Q ) ; P . s e t F o r m ( Q , K , N ) ; v a r   J = t h i s . c f g . g e t P r o p e r t y ( " p o s t d a t a " ) ; v a r   O = P . a s y n c R e q u e s t ( I . m e t h o d , I . a c t i o n , t h i s . c a l l b a c k , J ) ; t h i s . a s y n c S u b m i t E v e n t . f i r e ( O ) ; b r e a k ; c a s e " f o r m " : Q . s u b m i t ( ) ; t h i s . f o r m S u b m i t E v e n t . f i r e ( ) ; b r e a k ; c a s e " n o n e " : c a s e " m a n u a l " : t h i s . m a n u a l S u b m i t E v e n t . f i r e ( ) ; b r e a k ; } } , _ g e t F o r m A t t r i b u t e s : f u n c t i o n ( K ) { v a r   I = { m e t h o d : n u l l , a c t i o n : n u l l } ; i f ( K ) { i f ( K . g e t A t t r i b u t e N o d e ) { v a r   J = K . g e t A t t r i b u t e N o d e ( " a c t i o n " ) ; v a r   L = K . g e t A t t r i b u t e N o d e ( " m e t h o d " ) ; i f ( J ) { I . a c t i o n = J . v a l u e ; } i f ( L ) { I . m e t h o d = L . v a l u e ; } } e l s e { I . a c t i o n = K . g e t A t t r i b u t e ( " a c t i o n " ) ; I . m e t h o d = K . g e t A t t r i b u t e ( " m e t h o d " ) ; } } I . m e t h o d = ( F . i s S t r i n g ( I . m e t h o d ) ? I . m e t h o d : " P O S T " ) . t o U p p e r C a s e ( ) ; I . a c t i o n = F . i s S t r i n g ( I . a c t i o n ) ? I . a c t i o n : " " ; r e t u r n   I ; } , r e g i s t e r F o r m : f u n c t i o n ( ) { v a r   I = t h i s . e l e m e n t . g e t E l e m e n t s B y T a g N a m e ( " f o r m " ) [ 0 ] ; i f ( t h i s . f o r m ) { i f ( t h i s . f o r m = = I & & E . i s A n c e s t o r ( t h i s . e l e m e n t , t h i s . f o r m ) ) { r e t u r n ; } e l s e { B . p u r g e E l e m e n t ( t h i s . f o r m ) ; t h i s . f o r m = n u l l ; } } i f ( ! I ) { I = d o c u m e n t . c r e a t e E l e m e n t ( " f o r m " ) ; I . n a m e = " f r m _ " + t h i s . i d ; t h i s . b o d y . a p p e n d C h i l d ( I ) ; } i f ( I ) { t h i s . f o r m = I ; B . o n ( I , " s u b m i t " , t h i s . _ s u b m i t H a n d l e r , t h i s , t r u e ) ; } } , _ s u b m i t H a n d l e r : f u n c t i o n ( I ) { B . s t o p E v e n t ( I ) ; t h i s . s u b m i t ( ) ; t h i s . f o r m . b l u r ( ) ; } , s e t T a b L o o p : f u n c t i o n ( I , J ) { I = I | | t h i s . f i r s t B u t t o n ; J = t h i s . l a s t B u t t o n | | J ; A . s u p e r c l a s s . s e t T a b L o o p . c a l l ( t h i s , I , J ) ; } , s e t F i r s t L a s t F o c u s a b l e : f u n c t i o n ( ) { A . s u p e r c l a s s . s e t F i r s t L a s t F o c u s a b l e . c a l l ( t h i s ) ; v a r   J , I , K , L = t h i s . f o c u s a b l e E l e m e n t s ; t h i s . f i r s t F o r m E l e m e n t = n u l l ; t h i s . l a s t F o r m E l e m e n t = n u l l ; i f ( t h i s . f o r m & & L & & L . l e n g t h > 0 ) { I = L . l e n g t h ; f o r ( J = 0 ; J < I ; + + J ) { K = L [ J ] ; i f ( t h i s . f o r m = = = K . f o r m ) { t h i s . f i r s t F o r m E l e m e n t = K ; b r e a k ; } } f o r ( J = I - 1 ; J > = 0 ; - - J ) { K = L [ J ] ; i f ( t h i s . f o r m = = = K . f o r m ) { t h i s . l a s t F o r m E l e m e n t = K ; b r e a k ; } } } } , c o n f i g C l o s e : f u n c t i o n ( J , I , K ) { A . s u p e r c l a s s . c o n f i g C l o s e . a p p l y ( t h i s , a r g u m e n t s ) ; } , _ d o C l o s e : f u n c t i o n ( I ) { B . p r e v e n t D e f a u l t ( I ) ; t h i s . c a n c e l ( ) ; } , c o n f i g B u t t o n s : f u n c t i o n ( S , R , M ) { v a r   N = Y A H O O . w i d g e t . B u t t o n , U = R [ 0 ] , K = t h i s . i n n e r E l e m e n t , T , P , J , Q , O , I , L ; D . c a l l ( t h i s ) ; t h i s . _ a B u t t o n s = n u l l ; i f ( F . i s A r r a y ( U ) ) { O = d o c u m e n t . c r e a t e E l e m e n t ( " s p a n " ) ; O . c l a s s N a m e = " b u t t o n - g r o u p " ; Q = U . l e n g t h ; t h i s . _ a B u t t o n s = [ ] ; t h i s . d e f a u l t H t m l B u t t o n = n u l l ; f o r ( L = 0 ; L < Q ; L + + ) { T = U [ L ] ; i f ( N ) { J = n e w   N ( { l a b e l : T . t e x t } ) ; J . a p p e n d T o ( O ) ; P = J . g e t ( " e l e m e n t " ) ; i f ( T . i s D e f a u l t ) { J . a d d C l a s s ( " d e f a u l t " ) ; t h i s . d e f a u l t H t m l B u t t o n = P ; } i f ( F . i s F u n c t i o n ( T . h a n d l e r ) ) { J . s e t ( " o n c l i c k " , { f n : T . h a n d l e r , o b j : t h i s , s c o p e : t h i s } ) ; } e l s e { i f ( F . i s O b j e c t ( T . h a n d l e r ) & & F . i s F u n c t i o n ( T . h a n d l e r . f n ) ) { J . s e t ( " o n c l i c k " , { f n : T . h a n d l e r . f n , o b j : ( ( ! F . i s U n d e f i n e d ( T . h a n d l e r . o b j ) ) ? T . h a n d l e r . o b j : t h i s ) , s c o p e : ( T . h a n d l e r . s c o p e | | t h i s ) } ) ; } } t h i s . _ a B u t t o n s [ t h i s . _ a B u t t o n s . l e n g t h ] = J ; } e l s e { P = d o c u m e n t . c r e a t e E l e m e n t ( " b u t t o n " ) ; P . s e t A t t r i b u t e ( " t y p e " , " b u t t o n " ) ; i f ( T . i s D e f a u l t ) { P . c l a s s N a m e = " d e f a u l t " ; t h i s . d e f a u l t H t m l B u t t o n = P ; } P . i n n e r H T M L = T . t e x t ; i f ( F . i s F u n c t i o n ( T . h a n d l e r ) ) { B . o n ( P , " c l i c k " , T . h a n d l e r , t h i s , t r u e ) ; } e l s e { i f ( F . i s O b j e c t ( T . h a n d l e r ) & & F . i s F u n c t i o n ( T . h a n d l e r . f n ) ) { B . o n ( P , " c l i c k " , T . h a n d l e r . f n , ( ( ! F . i s U n d e f i n e d ( T . h a n d l e r . o b j ) ) ? T . h a n d l e r . o b j : t h i s ) , ( T . h a n d l e r . s c o p e | | t h i s ) ) ; } } O . a p p e n d C h i l d ( P ) ; t h i s . _ a B u t t o n s [ t h i s . _ a B u t t o n s . l e n g t h ] = P ; } T . h t m l B u t t o n = P ; i f ( L = = = 0 ) { t h i s . f i r s t B u t t o n = P ; } i f ( L = = ( Q - 1 ) ) { t h i s . l a s t B u t t o n = P ; } } t h i s . s e t F o o t e r ( O ) ; I = t h i s . f o o t e r ; i f ( E . i n D o c u m e n t ( t h i s . e l e m e n t ) & & ! E . i s A n c e s t o r ( K , I ) ) { K . a p p e n d C h i l d ( I ) ; } t h i s . b u t t o n S p a n = O ; } e l s e { O = t h i s . b u t t o n S p a n ; I = t h i s . f o o t e r ; i f ( O & & I ) { I . r e m o v e C h i l d ( O ) ; t h i s . b u t t o n S p a n = n u l l ; t h i s . f i r s t B u t t o n = n u l l ; t h i s . l a s t B u t t o n = n u l l ; t h i s . d e f a u l t H t m l B u t t o n = n u l l ; } } t h i s . c h a n g e C o n t e n t E v e n t . f i r e ( ) ; } , g e t B u t t o n s : f u n c t i o n ( ) { r e t u r n   t h i s . _ a B u t t o n s | | n u l l ; } , f o c u s F i r s t : f u n c t i o n ( K , I , M ) { v a r   J = t h i s . f i r s t F o r m E l e m e n t ; i f ( I & & I [ 1 ] ) { B . s t o p E v e n t ( I [ 1 ] ) ; } i f ( J ) { t r y { J . f o c u s ( ) ; } c a t c h ( L ) { } } e l s e { i f ( t h i s . d e f a u l t H t m l B u t t o n ) { t h i s . f o c u s D e f a u l t B u t t o n ( ) ; } e l s e { t h i s . f o c u s F i r s t B u t t o n ( ) ; } } } , f o c u s L a s t : f u n c t i o n ( K , I , M ) { v a r   N = t h i s . c f g . g e t P r o p e r t y ( " b u t t o n s " ) , J = t h i s . l a s t F o r m E l e m e n t ; i f ( I & & I [ 1 ] ) { B . s t o p E v e n t ( I [ 1 ] ) ; } i f ( N & & F . i s A r r a y ( N ) ) { t h i s . f o c u s L a s t B u t t o n ( ) ; } e l s e { i f ( J ) { t r y { J . f o c u s ( ) ; } c a t c h ( L ) { } } } } , _ g e t B u t t o n : f u n c t i o n ( J ) { v a r   I = Y A H O O . w i d g e t . B u t t o n ; i f ( I & & J & & J . n o d e N a m e & & J . i d ) { J = I . g e t B u t t o n ( J . i d ) | | J ; } r e t u r n   J ; } , f o c u s D e f a u l t B u t t o n : f u n c t i o n ( ) { v a r   I = t h i s . _ g e t B u t t o n ( t h i s . d e f a u l t H t m l B u t t o n ) ; i f ( I ) { t r y { I . f o c u s ( ) ; } c a t c h ( J ) { } } } , b l u r B u t t o n s : f u n c t i o n ( ) { v a r   N = t h i s . c f g . g e t P r o p e r t y ( " b u t t o n s " ) , K , M , J , I ; i f ( N & & F . i s A r r a y ( N ) ) { K = N . l e n g t h ; i f ( K > 0 ) { I = ( K - 1 ) ; d o { M = N [ I ] ; i f ( M ) { J = t h i s . _ g e t B u t t o n ( M . h t m l B u t t o n ) ; i f ( J ) { t r y { J . b l u r ( ) ; } c a t c h ( L ) { } } } } w h i l e ( I - - ) ; } } } , f o c u s F i r s t B u t t o n : f u n c t i o n ( ) { v a r   L = t h i s . c f g . g e t P r o p e r t y ( " b u t t o n s " ) , K , I ; i f ( L & & F . i s A r r a y ( L ) ) { K = L [ 0 ] ; i f ( K ) { I = t h i s . _ g e t B u t t o n ( K . h t m l B u t t o n ) ; i f ( I ) { t r y { I . f o c u s ( ) ; } c a t c h ( J ) { } } } } } , f o c u s L a s t B u t t o n : f u n c t i o n ( ) { v a r   M = t h i s . c f g . g e t P r o p e r t y ( " b u t t o n s " ) , J , L , I ; i f ( M & & F . i s A r r a y ( M ) ) { J = M . l e n g t h ; i f ( J > 0 ) { L = M [ ( J - 1 ) ] ; i f ( L ) { I = t h i s . _ g e t B u t t o n ( L . h t m l B u t t o n ) ; i f ( I ) { t r y { I . f o c u s ( ) ; } c a t c h ( K ) { } } } } } } , c o n f i g P o s t M e t h o d : f u n c t i o n ( J , I , K ) { t h i s . r e g i s t e r F o r m ( ) ; } , v a l i d a t e : f u n c t i o n ( ) { r e t u r n   t r u e ; } , s u b m i t : f u n c t i o n ( ) { i f ( t h i s . v a l i d a t e ( ) ) { t h i s . b e f o r e S u b m i t E v e n t . f i r e ( ) ; t h i s . d o S u b m i t ( ) ; t h i s . s u b m i t E v e n t . f i r e ( ) ; i f ( t h i s . c f g . g e t P r o p e r t y ( " h i d e a f t e r s u b m i t " ) ) { t h i s . h i d e ( ) ; } r e t u r n   t r u e ; } e l s e { r e t u r n   f a l s e ; } } , c a n c e l : f u n c t i o n ( ) { t h i s . c a n c e l E v e n t . f i r e ( ) ; t h i s . h i d e ( ) ; } , g e t D a t a : f u n c t i o n ( ) { v a r   Y = t h i s . f o r m , K , R , U , M , S , P , O , J , V , L , W , Z , I , N , a , X , T ; f u n c t i o n   Q ( c ) { v a r   b = c . t a g N a m e . t o U p p e r C a s e ( ) ; r e t u r n ( ( b = = " I N P U T " | | b = = " T E X T A R E A " | | b = = " S E L E C T " ) & & c . n a m e = = M ) ; } i f ( Y ) { K = Y . e l e m e n t s ; R = K . l e n g t h ; U = { } ; f o r ( X = 0 ; X < R ; X + + ) { M = K [ X ] . n a m e ; S = E . g e t E l e m e n t s B y ( Q , " * " , Y ) ;  
 P = S . l e n g t h ; i f ( P > 0 ) { i f ( P = = 1 ) { S = S [ 0 ] ; O = S . t y p e ; J = S . t a g N a m e . t o U p p e r C a s e ( ) ; s w i t c h ( J ) { c a s e " I N P U T " : i f ( O = = " c h e c k b o x " ) { U [ M ] = S . c h e c k e d ; } e l s e { i f ( O ! = " r a d i o " ) { U [ M ] = S . v a l u e ; } } b r e a k ; c a s e " T E X T A R E A " : U [ M ] = S . v a l u e ; b r e a k ; c a s e " S E L E C T " : V = S . o p t i o n s ; L = V . l e n g t h ; W = [ ] ; f o r ( T = 0 ; T < L ; T + + ) { Z = V [ T ] ; i f ( Z . s e l e c t e d ) { I = Z . v a l u e ; i f ( ! I | | I = = = " " ) { I = Z . t e x t ; } W [ W . l e n g t h ] = I ; } } U [ M ] = W ; b r e a k ; } } e l s e { O = S [ 0 ] . t y p e ; s w i t c h ( O ) { c a s e " r a d i o " : f o r ( T = 0 ; T < P ; T + + ) { N = S [ T ] ; i f ( N . c h e c k e d ) { U [ M ] = N . v a l u e ; b r e a k ; } } b r e a k ; c a s e " c h e c k b o x " : W = [ ] ; f o r ( T = 0 ; T < P ; T + + ) { a = S [ T ] ; i f ( a . c h e c k e d ) { W [ W . l e n g t h ] = a . v a l u e ; } } U [ M ] = W ; b r e a k ; } } } } } r e t u r n   U ; } , d e s t r o y : f u n c t i o n ( ) { D . c a l l ( t h i s ) ; t h i s . _ a B u t t o n s = n u l l ; v a r   I = t h i s . e l e m e n t . g e t E l e m e n t s B y T a g N a m e ( " f o r m " ) , J ; i f ( I . l e n g t h > 0 ) { J = I [ 0 ] ; i f ( J ) { B . p u r g e E l e m e n t ( J ) ; i f ( J . p a r e n t N o d e ) { J . p a r e n t N o d e . r e m o v e C h i l d ( J ) ; } t h i s . f o r m = n u l l ; } } A . s u p e r c l a s s . d e s t r o y . c a l l ( t h i s ) ; } , t o S t r i n g : f u n c t i o n ( ) { r e t u r n " D i a l o g   " + t h i s . i d ; } } ) ; } ( ) ) ; ( f u n c t i o n ( ) { Y A H O O . w i d g e t . S i m p l e D i a l o g = f u n c t i o n ( E , D ) { Y A H O O . w i d g e t . S i m p l e D i a l o g . s u p e r c l a s s . c o n s t r u c t o r . c a l l ( t h i s , E , D ) ; } ; v a r   C = Y A H O O . u t i l . D o m , B = Y A H O O . w i d g e t . S i m p l e D i a l o g , A = { " I C O N " : { k e y : " i c o n " , v a l u e : " n o n e " , s u p p r e s s E v e n t : t r u e } , " T E X T " : { k e y : " t e x t " , v a l u e : " " , s u p p r e s s E v e n t : t r u e , s u p e r c e d e s : [ " i c o n " ] } } ; B . I C O N _ B L O C K = " b l c k i c o n " ; B . I C O N _ A L A R M = " a l r t i c o n " ; B . I C O N _ H E L P = " h l p i c o n " ; B . I C O N _ I N F O = " i n f o i c o n " ; B . I C O N _ W A R N = " w a r n i c o n " ; B . I C O N _ T I P = " t i p i c o n " ; B . I C O N _ C S S _ C L A S S N A M E = " y u i - i c o n " ; B . C S S _ S I M P L E D I A L O G = " y u i - s i m p l e - d i a l o g " ; Y A H O O . e x t e n d ( B , Y A H O O . w i d g e t . D i a l o g , { i n i t D e f a u l t C o n f i g : f u n c t i o n ( ) { B . s u p e r c l a s s . i n i t D e f a u l t C o n f i g . c a l l ( t h i s ) ; t h i s . c f g . a d d P r o p e r t y ( A . I C O N . k e y , { h a n d l e r : t h i s . c o n f i g I c o n , v a l u e : A . I C O N . v a l u e , s u p p r e s s E v e n t : A . I C O N . s u p p r e s s E v e n t } ) ; t h i s . c f g . a d d P r o p e r t y ( A . T E X T . k e y , { h a n d l e r : t h i s . c o n f i g T e x t , v a l u e : A . T E X T . v a l u e , s u p p r e s s E v e n t : A . T E X T . s u p p r e s s E v e n t , s u p e r c e d e s : A . T E X T . s u p e r c e d e s } ) ; } , i n i t : f u n c t i o n ( E , D ) { B . s u p e r c l a s s . i n i t . c a l l ( t h i s , E ) ; t h i s . b e f o r e I n i t E v e n t . f i r e ( B ) ; C . a d d C l a s s ( t h i s . e l e m e n t , B . C S S _ S I M P L E D I A L O G ) ; t h i s . c f g . q u e u e P r o p e r t y ( " p o s t m e t h o d " , " m a n u a l " ) ; i f ( D ) { t h i s . c f g . a p p l y C o n f i g ( D , t r u e ) ; } t h i s . b e f o r e R e n d e r E v e n t . s u b s c r i b e ( f u n c t i o n ( ) { i f ( ! t h i s . b o d y ) { t h i s . s e t B o d y ( " " ) ; } } , t h i s , t r u e ) ; t h i s . i n i t E v e n t . f i r e ( B ) ; } , r e g i s t e r F o r m : f u n c t i o n ( ) { B . s u p e r c l a s s . r e g i s t e r F o r m . c a l l ( t h i s ) ; t h i s . f o r m . i n n e r H T M L + = ' < i n p u t   t y p e = " h i d d e n "   n a m e = " ' + t h i s . i d + ' "   v a l u e = " " / > ' ; } , c o n f i g I c o n : f u n c t i o n ( F , E , J ) { v a r   K = E [ 0 ] , D = t h i s . b o d y , I = B . I C O N _ C S S _ C L A S S N A M E , H , G ; i f ( K & & K ! = " n o n e " ) { H = C . g e t E l e m e n t s B y C l a s s N a m e ( I , " * " , D ) ; i f ( H ) { G = H . p a r e n t N o d e ; i f ( G ) { G . r e m o v e C h i l d ( H ) ; H = n u l l ; } } i f ( K . i n d e x O f ( " . " ) = = - 1 ) { H = d o c u m e n t . c r e a t e E l e m e n t ( " s p a n " ) ; H . c l a s s N a m e = ( I + "   " + K ) ; H . i n n e r H T M L = " & # 1 6 0 ; " ; } e l s e { H = d o c u m e n t . c r e a t e E l e m e n t ( " i m g " ) ; H . s r c = ( t h i s . i m a g e R o o t + K ) ; H . c l a s s N a m e = I ; } i f ( H ) { D . i n s e r t B e f o r e ( H , D . f i r s t C h i l d ) ; } } } , c o n f i g T e x t : f u n c t i o n ( E , D , F ) { v a r   G = D [ 0 ] ; i f ( G ) { t h i s . s e t B o d y ( G ) ; t h i s . c f g . r e f i r e E v e n t ( " i c o n " ) ; } } , t o S t r i n g : f u n c t i o n ( ) { r e t u r n " S i m p l e D i a l o g   " + t h i s . i d ; } } ) ; } ( ) ) ; ( f u n c t i o n ( ) { Y A H O O . w i d g e t . C o n t a i n e r E f f e c t = f u n c t i o n ( E , H , G , D , F ) { i f ( ! F ) { F = Y A H O O . u t i l . A n i m ; } t h i s . o v e r l a y = E ; t h i s . a t t r I n = H ; t h i s . a t t r O u t = G ; t h i s . t a r g e t E l e m e n t = D | | E . e l e m e n t ; t h i s . a n i m C l a s s = F ; } ; v a r   B = Y A H O O . u t i l . D o m , C = Y A H O O . u t i l . C u s t o m E v e n t , A = Y A H O O . w i d g e t . C o n t a i n e r E f f e c t ; A . F A D E = f u n c t i o n ( D , F ) { v a r   G = Y A H O O . u t i l . E a s i n g , I = { a t t r i b u t e s : { o p a c i t y : { f r o m : 0 , t o : 1 } } , d u r a t i o n : F , m e t h o d : G . e a s e I n } , E = { a t t r i b u t e s : { o p a c i t y : { t o : 0 } } , d u r a t i o n : F , m e t h o d : G . e a s e O u t } , H = n e w   A ( D , I , E , D . e l e m e n t ) ; H . h a n d l e U n d e r l a y S t a r t = f u n c t i o n ( ) { v a r   K = t h i s . o v e r l a y . u n d e r l a y ; i f ( K & & Y A H O O . e n v . u a . i e ) { v a r   J = ( K . f i l t e r s & & K . f i l t e r s . l e n g t h > 0 ) ; i f ( J ) { B . a d d C l a s s ( D . e l e m e n t , " y u i - e f f e c t - f a d e " ) ; } } } ; H . h a n d l e U n d e r l a y C o m p l e t e = f u n c t i o n ( ) { v a r   J = t h i s . o v e r l a y . u n d e r l a y ; i f ( J & & Y A H O O . e n v . u a . i e ) { B . r e m o v e C l a s s ( D . e l e m e n t , " y u i - e f f e c t - f a d e " ) ; } } ; H . h a n d l e S t a r t A n i m a t e I n = f u n c t i o n ( K , J , L ) { B . a d d C l a s s ( L . o v e r l a y . e l e m e n t , " h i d e - s e l e c t " ) ; i f ( ! L . o v e r l a y . u n d e r l a y ) { L . o v e r l a y . c f g . r e f i r e E v e n t ( " u n d e r l a y " ) ; } L . h a n d l e U n d e r l a y S t a r t ( ) ; L . o v e r l a y . _ s e t D o m V i s i b i l i t y ( t r u e ) ; B . s e t S t y l e ( L . o v e r l a y . e l e m e n t , " o p a c i t y " , 0 ) ; } ; H . h a n d l e C o m p l e t e A n i m a t e I n = f u n c t i o n ( K , J , L ) { B . r e m o v e C l a s s ( L . o v e r l a y . e l e m e n t , " h i d e - s e l e c t " ) ; i f ( L . o v e r l a y . e l e m e n t . s t y l e . f i l t e r ) { L . o v e r l a y . e l e m e n t . s t y l e . f i l t e r = n u l l ; } L . h a n d l e U n d e r l a y C o m p l e t e ( ) ; L . o v e r l a y . c f g . r e f i r e E v e n t ( " i f r a m e " ) ; L . a n i m a t e I n C o m p l e t e E v e n t . f i r e ( ) ; } ; H . h a n d l e S t a r t A n i m a t e O u t = f u n c t i o n ( K , J , L ) { B . a d d C l a s s ( L . o v e r l a y . e l e m e n t , " h i d e - s e l e c t " ) ; L . h a n d l e U n d e r l a y S t a r t ( ) ; } ; H . h a n d l e C o m p l e t e A n i m a t e O u t = f u n c t i o n ( K , J , L ) { B . r e m o v e C l a s s ( L . o v e r l a y . e l e m e n t , " h i d e - s e l e c t " ) ; i f ( L . o v e r l a y . e l e m e n t . s t y l e . f i l t e r ) { L . o v e r l a y . e l e m e n t . s t y l e . f i l t e r = n u l l ; } L . o v e r l a y . _ s e t D o m V i s i b i l i t y ( f a l s e ) ; B . s e t S t y l e ( L . o v e r l a y . e l e m e n t , " o p a c i t y " , 1 ) ; L . h a n d l e U n d e r l a y C o m p l e t e ( ) ; L . o v e r l a y . c f g . r e f i r e E v e n t ( " i f r a m e " ) ; L . a n i m a t e O u t C o m p l e t e E v e n t . f i r e ( ) ; } ; H . i n i t ( ) ; r e t u r n   H ; } ; A . S L I D E = f u n c t i o n ( F , D ) { v a r   I = Y A H O O . u t i l . E a s i n g , L = F . c f g . g e t P r o p e r t y ( " x " ) | | B . g e t X ( F . e l e m e n t ) , K = F . c f g . g e t P r o p e r t y ( " y " ) | | B . g e t Y ( F . e l e m e n t ) , M = B . g e t C l i e n t W i d t h ( ) , H = F . e l e m e n t . o f f s e t W i d t h , J = { a t t r i b u t e s : { p o i n t s : { t o : [ L , K ] } } , d u r a t i o n : D , m e t h o d : I . e a s e I n } , E = { a t t r i b u t e s : { p o i n t s : { t o : [ ( M + 2 5 ) , K ] } } , d u r a t i o n : D , m e t h o d : I . e a s e O u t } , G = n e w   A ( F , J , E , F . e l e m e n t , Y A H O O . u t i l . M o t i o n ) ; G . h a n d l e S t a r t A n i m a t e I n = f u n c t i o n ( O , N , P ) { P . o v e r l a y . e l e m e n t . s t y l e . l e f t = ( ( - 2 5 ) - H ) + " p x " ; P . o v e r l a y . e l e m e n t . s t y l e . t o p = K + " p x " ; } ; G . h a n d l e T w e e n A n i m a t e I n = f u n c t i o n ( Q , P , R ) { v a r   S = B . g e t X Y ( R . o v e r l a y . e l e m e n t ) , O = S [ 0 ] , N = S [ 1 ] ; i f ( B . g e t S t y l e ( R . o v e r l a y . e l e m e n t , " v i s i b i l i t y " ) = = " h i d d e n " & & O < L ) { R . o v e r l a y . _ s e t D o m V i s i b i l i t y ( t r u e ) ; } R . o v e r l a y . c f g . s e t P r o p e r t y ( " x y " , [ O , N ] , t r u e ) ; R . o v e r l a y . c f g . r e f i r e E v e n t ( " i f r a m e " ) ; } ; G . h a n d l e C o m p l e t e A n i m a t e I n = f u n c t i o n ( O , N , P ) { P . o v e r l a y . c f g . s e t P r o p e r t y ( " x y " , [ L , K ] , t r u e ) ; P . s t a r t X = L ; P . s t a r t Y = K ; P . o v e r l a y . c f g . r e f i r e E v e n t ( " i f r a m e " ) ; P . a n i m a t e I n C o m p l e t e E v e n t . f i r e ( ) ; } ; G . h a n d l e S t a r t A n i m a t e O u t = f u n c t i o n ( O , N , R ) { v a r   P = B . g e t V i e w p o r t W i d t h ( ) , S = B . g e t X Y ( R . o v e r l a y . e l e m e n t ) , Q = S [ 1 ] ; R . a n i m O u t . a t t r i b u t e s . p o i n t s . t o = [ ( P + 2 5 ) , Q ] ; } ; G . h a n d l e T w e e n A n i m a t e O u t = f u n c t i o n ( P , O , Q ) { v a r   S = B . g e t X Y ( Q . o v e r l a y . e l e m e n t ) , N = S [ 0 ] , R = S [ 1 ] ; Q . o v e r l a y . c f g . s e t P r o p e r t y ( " x y " , [ N , R ] , t r u e ) ; Q . o v e r l a y . c f g . r e f i r e E v e n t ( " i f r a m e " ) ; } ; G . h a n d l e C o m p l e t e A n i m a t e O u t = f u n c t i o n ( O , N , P ) { P . o v e r l a y . _ s e t D o m V i s i b i l i t y ( f a l s e ) ; P . o v e r l a y . c f g . s e t P r o p e r t y ( " x y " , [ L , K ] ) ; P . a n i m a t e O u t C o m p l e t e E v e n t . f i r e ( ) ; } ; G . i n i t ( ) ; r e t u r n   G ; } ; A . p r o t o t y p e = { i n i t : f u n c t i o n ( ) { t h i s . b e f o r e A n i m a t e I n E v e n t = t h i s . c r e a t e E v e n t ( " b e f o r e A n i m a t e I n " ) ; t h i s . b e f o r e A n i m a t e I n E v e n t . s i g n a t u r e = C . L I S T ; t h i s . b e f o r e A n i m a t e O u t E v e n t = t h i s . c r e a t e E v e n t ( " b e f o r e A n i m a t e O u t " ) ;  
 t h i s . b e f o r e A n i m a t e O u t E v e n t . s i g n a t u r e = C . L I S T ; t h i s . a n i m a t e I n C o m p l e t e E v e n t = t h i s . c r e a t e E v e n t ( " a n i m a t e I n C o m p l e t e " ) ; t h i s . a n i m a t e I n C o m p l e t e E v e n t . s i g n a t u r e = C . L I S T ; t h i s . a n i m a t e O u t C o m p l e t e E v e n t = t h i s . c r e a t e E v e n t ( " a n i m a t e O u t C o m p l e t e " ) ; t h i s . a n i m a t e O u t C o m p l e t e E v e n t . s i g n a t u r e = C . L I S T ; t h i s . a n i m I n = n e w   t h i s . a n i m C l a s s ( t h i s . t a r g e t E l e m e n t , t h i s . a t t r I n . a t t r i b u t e s , t h i s . a t t r I n . d u r a t i o n , t h i s . a t t r I n . m e t h o d ) ; t h i s . a n i m I n . o n S t a r t . s u b s c r i b e ( t h i s . h a n d l e S t a r t A n i m a t e I n , t h i s ) ; t h i s . a n i m I n . o n T w e e n . s u b s c r i b e ( t h i s . h a n d l e T w e e n A n i m a t e I n , t h i s ) ; t h i s . a n i m I n . o n C o m p l e t e . s u b s c r i b e ( t h i s . h a n d l e C o m p l e t e A n i m a t e I n , t h i s ) ; t h i s . a n i m O u t = n e w   t h i s . a n i m C l a s s ( t h i s . t a r g e t E l e m e n t , t h i s . a t t r O u t . a t t r i b u t e s , t h i s . a t t r O u t . d u r a t i o n , t h i s . a t t r O u t . m e t h o d ) ; t h i s . a n i m O u t . o n S t a r t . s u b s c r i b e ( t h i s . h a n d l e S t a r t A n i m a t e O u t , t h i s ) ; t h i s . a n i m O u t . o n T w e e n . s u b s c r i b e ( t h i s . h a n d l e T w e e n A n i m a t e O u t , t h i s ) ; t h i s . a n i m O u t . o n C o m p l e t e . s u b s c r i b e ( t h i s . h a n d l e C o m p l e t e A n i m a t e O u t , t h i s ) ; } , a n i m a t e I n : f u n c t i o n ( ) { t h i s . b e f o r e A n i m a t e I n E v e n t . f i r e ( ) ; t h i s . a n i m I n . a n i m a t e ( ) ; } , a n i m a t e O u t : f u n c t i o n ( ) { t h i s . b e f o r e A n i m a t e O u t E v e n t . f i r e ( ) ; t h i s . a n i m O u t . a n i m a t e ( ) ; } , h a n d l e S t a r t A n i m a t e I n : f u n c t i o n ( E , D , F ) { } , h a n d l e T w e e n A n i m a t e I n : f u n c t i o n ( E , D , F ) { } , h a n d l e C o m p l e t e A n i m a t e I n : f u n c t i o n ( E , D , F ) { } , h a n d l e S t a r t A n i m a t e O u t : f u n c t i o n ( E , D , F ) { } , h a n d l e T w e e n A n i m a t e O u t : f u n c t i o n ( E , D , F ) { } , h a n d l e C o m p l e t e A n i m a t e O u t : f u n c t i o n ( E , D , F ) { } , t o S t r i n g : f u n c t i o n ( ) { v a r   D = " C o n t a i n e r E f f e c t " ; i f ( t h i s . o v e r l a y ) { D + = "   [ " + t h i s . o v e r l a y . t o S t r i n g ( ) + " ] " ; } r e t u r n   D ; } } ; Y A H O O . l a n g . a u g m e n t P r o t o ( A , Y A H O O . u t i l . E v e n t P r o v i d e r ) ; } ) ( ) ; Y A H O O . r e g i s t e r ( " c o n t a i n e r " , Y A H O O . w i d g e t . M o d u l e , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ;  
  
  
 / *  
 C o p y r i g h t   ( c )   2 0 0 9 ,   Y a h o o !   I n c .   A l l   r i g h t s   r e s e r v e d .  
 C o d e   l i c e n s e d   u n d e r   t h e   B S D   L i c e n s e :  
 h t t p : / / d e v e l o p e r . y a h o o . n e t / y u i / l i c e n s e . t x t  
 v e r s i o n :   2 . 7 . 0  
 y a h o o - d o m - e v e n t . j s  
 * /  
 i f ( t y p e o f   Y A H O O = = " u n d e f i n e d " | | ! Y A H O O ) { v a r   Y A H O O = { } ; } Y A H O O . n a m e s p a c e = f u n c t i o n ( ) { v a r   A = a r g u m e n t s , E = n u l l , C , B , D ; f o r ( C = 0 ; C < A . l e n g t h ; C = C + 1 ) { D = ( " " + A [ C ] ) . s p l i t ( " . " ) ; E = Y A H O O ; f o r ( B = ( D [ 0 ] = = " Y A H O O " ) ? 1 : 0 ; B < D . l e n g t h ; B = B + 1 ) { E [ D [ B ] ] = E [ D [ B ] ] | | { } ; E = E [ D [ B ] ] ; } } r e t u r n   E ; } ; Y A H O O . l o g = f u n c t i o n ( D , A , C ) { v a r   B = Y A H O O . w i d g e t . L o g g e r ; i f ( B & & B . l o g ) { r e t u r n   B . l o g ( D , A , C ) ; } e l s e { r e t u r n   f a l s e ; } } ; Y A H O O . r e g i s t e r = f u n c t i o n ( A , E , D ) { v a r   I = Y A H O O . e n v . m o d u l e s , B , H , G , F , C ; i f ( ! I [ A ] ) { I [ A ] = { v e r s i o n s : [ ] , b u i l d s : [ ] } ; } B = I [ A ] ; H = D . v e r s i o n ; G = D . b u i l d ; F = Y A H O O . e n v . l i s t e n e r s ; B . n a m e = A ; B . v e r s i o n = H ; B . b u i l d = G ; B . v e r s i o n s . p u s h ( H ) ; B . b u i l d s . p u s h ( G ) ; B . m a i n C l a s s = E ; f o r ( C = 0 ; C < F . l e n g t h ; C = C + 1 ) { F [ C ] ( B ) ; } i f ( E ) { E . V E R S I O N = H ; E . B U I L D = G ; } e l s e { Y A H O O . l o g ( " m a i n C l a s s   i s   u n d e f i n e d   f o r   m o d u l e   " + A , " w a r n " ) ; } } ; Y A H O O . e n v = Y A H O O . e n v | | { m o d u l e s : [ ] , l i s t e n e r s : [ ] } ; Y A H O O . e n v . g e t V e r s i o n = f u n c t i o n ( A ) { r e t u r n   Y A H O O . e n v . m o d u l e s [ A ] | | n u l l ; } ; Y A H O O . e n v . u a = f u n c t i o n ( ) { v a r   C = { i e : 0 , o p e r a : 0 , g e c k o : 0 , w e b k i t : 0 , m o b i l e : n u l l , a i r : 0 , c a j a : 0 } , B = n a v i g a t o r . u s e r A g e n t , A ; i f ( ( / K H T M L / ) . t e s t ( B ) ) { C . w e b k i t = 1 ; } A = B . m a t c h ( / A p p l e W e b K i t \ / ( [ ^ \ s ] * ) / ) ; i f ( A & & A [ 1 ] ) { C . w e b k i t = p a r s e F l o a t ( A [ 1 ] ) ; i f ( /   M o b i l e \ / / . t e s t ( B ) ) { C . m o b i l e = " A p p l e " ; } e l s e { A = B . m a t c h ( / N o k i a N [ ^ \ / ] * / ) ; i f ( A ) { C . m o b i l e = A [ 0 ] ; } } A = B . m a t c h ( / A d o b e A I R \ / ( [ ^ \ s ] * ) / ) ; i f ( A ) { C . a i r = A [ 0 ] ; } } i f ( ! C . w e b k i t ) { A = B . m a t c h ( / O p e r a [ \ s \ / ] ( [ ^ \ s ] * ) / ) ; i f ( A & & A [ 1 ] ) { C . o p e r a = p a r s e F l o a t ( A [ 1 ] ) ; A = B . m a t c h ( / O p e r a   M i n i [ ^ ; ] * / ) ; i f ( A ) { C . m o b i l e = A [ 0 ] ; } } e l s e { A = B . m a t c h ( / M S I E \ s ( [ ^ ; ] * ) / ) ; i f ( A & & A [ 1 ] ) { C . i e = p a r s e F l o a t ( A [ 1 ] ) ; } e l s e { A = B . m a t c h ( / G e c k o \ / ( [ ^ \ s ] * ) / ) ; i f ( A ) { C . g e c k o = 1 ; A = B . m a t c h ( / r v : ( [ ^ \ s \ ) ] * ) / ) ; i f ( A & & A [ 1 ] ) { C . g e c k o = p a r s e F l o a t ( A [ 1 ] ) ; } } } } } A = B . m a t c h ( / C a j a \ / ( [ ^ \ s ] * ) / ) ; i f ( A & & A [ 1 ] ) { C . c a j a = p a r s e F l o a t ( A [ 1 ] ) ; } r e t u r n   C ; } ( ) ; ( f u n c t i o n ( ) { Y A H O O . n a m e s p a c e ( " u t i l " , " w i d g e t " , " e x a m p l e " ) ; i f ( " u n d e f i n e d " ! = = t y p e o f   Y A H O O _ c o n f i g ) { v a r   B = Y A H O O _ c o n f i g . l i s t e n e r , A = Y A H O O . e n v . l i s t e n e r s , D = t r u e , C ; i f ( B ) { f o r ( C = 0 ; C < A . l e n g t h ; C = C + 1 ) { i f ( A [ C ] = = B ) { D = f a l s e ; b r e a k ; } } i f ( D ) { A . p u s h ( B ) ; } } } } ) ( ) ; Y A H O O . l a n g = Y A H O O . l a n g | | { } ; ( f u n c t i o n ( ) { v a r   B = Y A H O O . l a n g , F = " [ o b j e c t   A r r a y ] " , C = " [ o b j e c t   F u n c t i o n ] " , A = O b j e c t . p r o t o t y p e , E = [ " t o S t r i n g " , " v a l u e O f " ] , D = { i s A r r a y : f u n c t i o n ( G ) { r e t u r n   A . t o S t r i n g . a p p l y ( G ) = = = F ; } , i s B o o l e a n : f u n c t i o n ( G ) { r e t u r n   t y p e o f   G = = = " b o o l e a n " ; } , i s F u n c t i o n : f u n c t i o n ( G ) { r e t u r n   A . t o S t r i n g . a p p l y ( G ) = = = C ; } , i s N u l l : f u n c t i o n ( G ) { r e t u r n   G = = = n u l l ; } , i s N u m b e r : f u n c t i o n ( G ) { r e t u r n   t y p e o f   G = = = " n u m b e r " & & i s F i n i t e ( G ) ; } , i s O b j e c t : f u n c t i o n ( G ) { r e t u r n ( G & & ( t y p e o f   G = = = " o b j e c t " | | B . i s F u n c t i o n ( G ) ) ) | | f a l s e ; } , i s S t r i n g : f u n c t i o n ( G ) { r e t u r n   t y p e o f   G = = = " s t r i n g " ; } , i s U n d e f i n e d : f u n c t i o n ( G ) { r e t u r n   t y p e o f   G = = = " u n d e f i n e d " ; } , _ I E E n u m F i x : ( Y A H O O . e n v . u a . i e ) ? f u n c t i o n ( I , H ) { v a r   G , K , J ; f o r ( G = 0 ; G < E . l e n g t h ; G = G + 1 ) { K = E [ G ] ; J = H [ K ] ; i f ( B . i s F u n c t i o n ( J ) & & J ! = A [ K ] ) { I [ K ] = J ; } } } : f u n c t i o n ( ) { } , e x t e n d : f u n c t i o n ( J , K , I ) { i f ( ! K | | ! J ) { t h r o w   n e w   E r r o r ( " e x t e n d   f a i l e d ,   p l e a s e   c h e c k   t h a t   " + " a l l   d e p e n d e n c i e s   a r e   i n c l u d e d . " ) ; } v a r   H = f u n c t i o n ( ) { } , G ; H . p r o t o t y p e = K . p r o t o t y p e ; J . p r o t o t y p e = n e w   H ( ) ; J . p r o t o t y p e . c o n s t r u c t o r = J ; J . s u p e r c l a s s = K . p r o t o t y p e ; i f ( K . p r o t o t y p e . c o n s t r u c t o r = = A . c o n s t r u c t o r ) { K . p r o t o t y p e . c o n s t r u c t o r = K ; } i f ( I ) { f o r ( G   i n   I ) { i f ( B . h a s O w n P r o p e r t y ( I , G ) ) { J . p r o t o t y p e [ G ] = I [ G ] ; } } B . _ I E E n u m F i x ( J . p r o t o t y p e , I ) ; } } , a u g m e n t O b j e c t : f u n c t i o n ( K , J ) { i f ( ! J | | ! K ) { t h r o w   n e w   E r r o r ( " A b s o r b   f a i l e d ,   v e r i f y   d e p e n d e n c i e s . " ) ; } v a r   G = a r g u m e n t s , I , L , H = G [ 2 ] ; i f ( H & & H ! = = t r u e ) { f o r ( I = 2 ; I < G . l e n g t h ; I = I + 1 ) { K [ G [ I ] ] = J [ G [ I ] ] ; } } e l s e { f o r ( L   i n   J ) { i f ( H | | ! ( L   i n   K ) ) { K [ L ] = J [ L ] ; } } B . _ I E E n u m F i x ( K , J ) ; } } , a u g m e n t P r o t o : f u n c t i o n ( J , I ) { i f ( ! I | | ! J ) { t h r o w   n e w   E r r o r ( " A u g m e n t   f a i l e d ,   v e r i f y   d e p e n d e n c i e s . " ) ; } v a r   G = [ J . p r o t o t y p e , I . p r o t o t y p e ] , H ; f o r ( H = 2 ; H < a r g u m e n t s . l e n g t h ; H = H + 1 ) { G . p u s h ( a r g u m e n t s [ H ] ) ; } B . a u g m e n t O b j e c t . a p p l y ( t h i s , G ) ; } , d u m p : f u n c t i o n ( G , L ) { v a r   I , K , N = [ ] , O = " { . . . } " , H = " f ( ) { . . . } " , M = " ,   " , J = "   = >   " ; i f ( ! B . i s O b j e c t ( G ) ) { r e t u r n   G + " " ; } e l s e { i f ( G   i n s t a n c e o f   D a t e | | ( " n o d e T y p e "   i n   G & & " t a g N a m e "   i n   G ) ) { r e t u r n   G ; } e l s e { i f ( B . i s F u n c t i o n ( G ) ) { r e t u r n   H ; } } } L = ( B . i s N u m b e r ( L ) ) ? L : 3 ; i f ( B . i s A r r a y ( G ) ) { N . p u s h ( " [ " ) ; f o r ( I = 0 , K = G . l e n g t h ; I < K ; I = I + 1 ) { i f ( B . i s O b j e c t ( G [ I ] ) ) { N . p u s h ( ( L > 0 ) ? B . d u m p ( G [ I ] , L - 1 ) : O ) ; } e l s e { N . p u s h ( G [ I ] ) ; } N . p u s h ( M ) ; } i f ( N . l e n g t h > 1 ) { N . p o p ( ) ; } N . p u s h ( " ] " ) ; } e l s e { N . p u s h ( " { " ) ; f o r ( I   i n   G ) { i f ( B . h a s O w n P r o p e r t y ( G , I ) ) { N . p u s h ( I + J ) ; i f ( B . i s O b j e c t ( G [ I ] ) ) { N . p u s h ( ( L > 0 ) ? B . d u m p ( G [ I ] , L - 1 ) : O ) ; } e l s e { N . p u s h ( G [ I ] ) ; } N . p u s h ( M ) ; } } i f ( N . l e n g t h > 1 ) { N . p o p ( ) ; } N . p u s h ( " } " ) ; } r e t u r n   N . j o i n ( " " ) ; } , s u b s t i t u t e : f u n c t i o n ( V , H , O ) { v a r   L , K , J , R , S , U , Q = [ ] , I , M = " d u m p " , P = "   " , G = " { " , T = " } " , N ; f o r ( ; ; ) { L = V . l a s t I n d e x O f ( G ) ; i f ( L < 0 ) { b r e a k ; } K = V . i n d e x O f ( T , L ) ; i f ( L + 1 > = K ) { b r e a k ; } I = V . s u b s t r i n g ( L + 1 , K ) ; R = I ; U = n u l l ; J = R . i n d e x O f ( P ) ; i f ( J > - 1 ) { U = R . s u b s t r i n g ( J + 1 ) ; R = R . s u b s t r i n g ( 0 , J ) ; } S = H [ R ] ; i f ( O ) { S = O ( R , S , U ) ; } i f ( B . i s O b j e c t ( S ) ) { i f ( B . i s A r r a y ( S ) ) { S = B . d u m p ( S , p a r s e I n t ( U , 1 0 ) ) ; } e l s e { U = U | | " " ; N = U . i n d e x O f ( M ) ; i f ( N > - 1 ) { U = U . s u b s t r i n g ( 4 ) ; } i f ( S . t o S t r i n g = = = A . t o S t r i n g | | N > - 1 ) { S = B . d u m p ( S , p a r s e I n t ( U , 1 0 ) ) ; } e l s e { S = S . t o S t r i n g ( ) ; } } } e l s e { i f ( ! B . i s S t r i n g ( S ) & & ! B . i s N u m b e r ( S ) ) { S = " ~ - " + Q . l e n g t h + " - ~ " ; Q [ Q . l e n g t h ] = I ; } } V = V . s u b s t r i n g ( 0 , L ) + S + V . s u b s t r i n g ( K + 1 ) ; } f o r ( L = Q . l e n g t h - 1 ; L > = 0 ; L = L - 1 ) { V = V . r e p l a c e ( n e w   R e g E x p ( " ~ - " + L + " - ~ " ) , " { " + Q [ L ] + " } " , " g " ) ; } r e t u r n   V ; } , t r i m : f u n c t i o n ( G ) { t r y { r e t u r n   G . r e p l a c e ( / ^ \ s + | \ s + $ / g , " " ) ; } c a t c h ( H ) { r e t u r n   G ; } } , m e r g e : f u n c t i o n ( ) { v a r   J = { } , H = a r g u m e n t s , G = H . l e n g t h , I ; f o r ( I = 0 ; I < G ; I = I + 1 ) { B . a u g m e n t O b j e c t ( J , H [ I ] , t r u e ) ; } r e t u r n   J ; } , l a t e r : f u n c t i o n ( N , H , O , J , K ) { N = N | | 0 ; H = H | | { } ; v a r   I = O , M = J , L , G ; i f ( B . i s S t r i n g ( O ) ) { I = H [ O ] ; } i f ( ! I ) { t h r o w   n e w   T y p e E r r o r ( " m e t h o d   u n d e f i n e d " ) ; } i f ( ! B . i s A r r a y ( M ) ) { M = [ J ] ; } L = f u n c t i o n ( ) { I . a p p l y ( H , M ) ; } ; G = ( K ) ? s e t I n t e r v a l ( L , N ) : s e t T i m e o u t ( L , N ) ; r e t u r n { i n t e r v a l : K , c a n c e l : f u n c t i o n ( ) { i f ( t h i s . i n t e r v a l ) { c l e a r I n t e r v a l ( G ) ; } e l s e { c l e a r T i m e o u t ( G ) ; } } } ; } , i s V a l u e : f u n c t i o n ( G ) { r e t u r n ( B . i s O b j e c t ( G ) | | B . i s S t r i n g ( G ) | | B . i s N u m b e r ( G ) | | B . i s B o o l e a n ( G ) ) ; } } ; B . h a s O w n P r o p e r t y = ( A . h a s O w n P r o p e r t y ) ? f u n c t i o n ( G , H ) { r e t u r n   G & & G . h a s O w n P r o p e r t y ( H ) ; } : f u n c t i o n ( G , H ) { r e t u r n   ! B . i s U n d e f i n e d ( G [ H ] ) & & G . c o n s t r u c t o r . p r o t o t y p e [ H ] ! = = G [ H ] ; } ; D . a u g m e n t O b j e c t ( B , D , t r u e ) ; Y A H O O . u t i l . L a n g = B ; B . a u g m e n t = B . a u g m e n t P r o t o ; Y A H O O . a u g m e n t = B . a u g m e n t P r o t o ; Y A H O O . e x t e n d = B . e x t e n d ; } ) ( ) ; Y A H O O . r e g i s t e r ( " y a h o o " , Y A H O O , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ; ( f u n c t i o n ( ) { Y A H O O . e n v . _ i d _ c o u n t e r = Y A H O O . e n v . _ i d _ c o u n t e r | | 0 ; v a r   E = Y A H O O . u t i l , L = Y A H O O . l a n g , m = Y A H O O . e n v . u a , A = Y A H O O . l a n g . t r i m , d = { } , h = { } , N = / ^ t ( ? : a b l e | d | h ) $ / i , X = / c o l o r $ / i , K = w i n d o w . d o c u m e n t , W = K . d o c u m e n t E l e m e n t , e = " o w n e r D o c u m e n t " , n = " d e f a u l t V i e w " , v = " d o c u m e n t E l e m e n t " , t = " c o m p a t M o d e " , b = " o f f s e t L e f t " , P = " o f f s e t T o p " , u = " o f f s e t P a r e n t " , Z = " p a r e n t N o d e " , l = " n o d e T y p e " , C = " t a g N a m e " , O = " s c r o l l L e f t " , i = " s c r o l l T o p " , Q = " g e t B o u n d i n g C l i e n t R e c t " , w = " g e t C o m p u t e d S t y l e " , a = " c u r r e n t S t y l e " , M = " C S S 1 C o m p a t " , c = " B a c k C o m p a t " , g = " c l a s s " , F = " c l a s s N a m e " , J = " " , B = "   " , s = " ( ? : ^ | \ \ s ) " , k = " ( ? =   | $ ) " , U = " g " , p = " p o s i t i o n " , f = " f i x e d " , V = " r e l a t i v e " , j = " l e f t " , o = " t o p " , r = " m e d i u m " , q = " b o r d e r L e f t W i d t h " , R = " b o r d e r T o p W i d t h " , D = m . o p e r a , I = m . w e b k i t , H = m . g e c k o , T = m . i e ; E . D o m = { C U S T O M _ A T T R I B U T E S : ( ! W . h a s A t t r i b u t e ) ? { " f o r " : " h t m l F o r " , " c l a s s " : F } : { " h t m l F o r " : " f o r " , " c l a s s N a m e " : g } , g e t : f u n c t i o n ( y ) { v a r   A A , Y , z , x , G ; i f ( y ) { i f ( y [ l ] | | y . i t e m ) { r e t u r n   y ; } i f ( t y p e o f   y = = = " s t r i n g " ) { A A = y ; y = K . g e t E l e m e n t B y I d ( y ) ; i f ( y & & y . i d = = = A A ) { r e t u r n   y ; } e l s e { i f ( y & & K . a l l ) { y = n u l l ; Y = K . a l l [ A A ] ; f o r ( x = 0 , G = Y . l e n g t h ; x < G ; + + x ) { i f ( Y [ x ] . i d = = = A A ) { r e t u r n   Y [ x ] ; } } } } r e t u r n   y ; } i f ( y . D O M _ E V E N T S ) { y = y . g e t ( " e l e m e n t " ) ; } i f ( " l e n g t h "   i n   y ) { z = [ ] ; f o r ( x = 0 , G = y . l e n g t h ; x < G ; + + x ) { z [ z . l e n g t h ] = E . D o m . g e t ( y [ x ] ) ; } r e t u r n   z ; } r e t u r n   y ; } r e t u r n   n u l l ; } , g e t C o m p u t e d S t y l e : f u n c t i o n ( G , Y ) { i f ( w i n d o w [ w ] ) { r e t u r n   G [ e ] [ n ] [ w ] ( G , n u l l ) [ Y ] ; } e l s e { i f ( G [ a ] ) { r e t u r n   E . D o m . I E _ C o m p u t e d S t y l e . g e t ( G , Y ) ; } } } , g e t S t y l e : f u n c t i o n ( G , Y ) { r e t u r n   E . D o m . b a t c h ( G , E . D o m . _ g e t S t y l e , Y ) ; } , _ g e t S t y l e : f u n c t i o n ( ) { i f ( w i n d o w [ w ] ) { r e t u r n   f u n c t i o n ( G , y ) { y = ( y = = = " f l o a t " ) ? y = " c s s F l o a t " : E . D o m . _ t o C a m e l ( y ) ; v a r   x = G . s t y l e [ y ] , Y ; i f ( ! x ) { Y = G [ e ] [ n ] [ w ] ( G , n u l l ) ; i f ( Y ) { x = Y [ y ] ; } } r e t u r n   x ; } ; } e l s e { i f ( W [ a ] ) { r e t u r n   f u n c t i o n ( G , y ) { v a r   x ; s w i t c h ( y ) { c a s e " o p a c i t y " : x = 1 0 0 ; t r y { x = G . f i l t e r s [ " D X I m a g e T r a n s f o r m . M i c r o s o f t . A l p h a " ] . o p a c i t y ; } c a t c h ( z ) { t r y { x = G . f i l t e r s ( " a l p h a " ) . o p a c i t y ; } c a t c h ( Y ) { } } r e t u r n   x / 1 0 0 ; c a s e " f l o a t " : y = " s t y l e F l o a t " ; d e f a u l t : y = E . D o m . _ t o C a m e l ( y ) ; x = G [ a ] ? G [ a ] [ y ] : n u l l ; r e t u r n ( G . s t y l e [ y ] | | x ) ; } } ; } } } ( ) , s e t S t y l e : f u n c t i o n ( G , Y , x ) { E . D o m . b a t c h ( G , E . D o m . _ s e t S t y l e , { p r o p : Y , v a l : x } ) ; } , _ s e t S t y l e : f u n c t i o n ( ) { i f ( T ) { r e t u r n   f u n c t i o n ( Y , G ) { v a r   x = E . D o m . _ t o C a m e l ( G . p r o p ) , y = G . v a l ; i f ( Y ) { s w i t c h ( x ) { c a s e " o p a c i t y " : i f ( L . i s S t r i n g ( Y . s t y l e . f i l t e r ) ) { Y . s t y l e . f i l t e r = " a l p h a ( o p a c i t y = " + y * 1 0 0 + " ) " ; i f ( ! Y [ a ] | | ! Y [ a ] . h a s L a y o u t ) { Y . s t y l e . z o o m = 1 ; } } b r e a k ; c a s e " f l o a t " : x = " s t y l e F l o a t " ; d e f a u l t : Y . s t y l e [ x ] = y ; } } e l s e { } } ; } e l s e { r e t u r n   f u n c t i o n ( Y , G ) { v a r   x = E . D o m . _ t o C a m e l ( G . p r o p ) , y = G . v a l ; i f ( Y ) { i f ( x = = " f l o a t " ) { x = " c s s F l o a t " ; } Y . s t y l e [ x ] = y ; } e l s e { } } ; } } ( ) , g e t X Y : f u n c t i o n ( G ) { r e t u r n   E . D o m . b a t c h ( G , E . D o m . _ g e t X Y ) ; } , _ c a n P o s i t i o n : f u n c t i o n ( G ) { r e t u r n ( E . D o m . _ g e t S t y l e ( G , " d i s p l a y " ) ! = = " n o n e " & & E . D o m . _ i n D o c ( G ) ) ; } , _ g e t X Y : f u n c t i o n ( ) { i f ( K [ v ] [ Q ] ) { r e t u r n   f u n c t i o n ( y ) { v a r   z , Y , A A , A F , A E , A D , A C , G , x , A B = M a t h . f l o o r , A G = f a l s e ; i f ( E . D o m . _ c a n P o s i t i o n ( y ) ) { A A = y [ Q ] ( ) ; A F = y [ e ] ; z = E . D o m . g e t D o c u m e n t S c r o l l L e f t ( A F ) ; Y = E . D o m . g e t D o c u m e n t S c r o l l T o p ( A F ) ; A G = [ A B ( A A [ j ] ) , A B ( A A [ o ] ) ] ; i f ( T & & m . i e < 8 ) { A E = 2 ; A D = 2 ; A C = A F [ t ] ; G = S ( A F [ v ] , q ) ; x = S ( A F [ v ] , R ) ; i f ( m . i e = = = 6 ) { i f ( A C ! = = c ) { A E = 0 ; A D = 0 ; } } i f ( ( A C = = c ) ) { i f ( G ! = = r ) { A E = p a r s e I n t ( G , 1 0 ) ; } i f ( x ! = = r ) { A D = p a r s e I n t ( x , 1 0 ) ; } } A G [ 0 ] - = A E ; A G [ 1 ] - = A D ; } i f ( ( Y | | z ) ) { A G [ 0 ] + = z ; A G [ 1 ] + = Y ; } A G [ 0 ] = A B ( A G [ 0 ] ) ; A G [ 1 ] = A B ( A G [ 1 ] ) ; } e l s e { } r e t u r n   A G ; } ; } e l s e { r e t u r n   f u n c t i o n ( y ) { v a r   x , Y , A A , A B , A C , z = f a l s e , G = y ; i f ( E . D o m . _ c a n P o s i t i o n ( y ) ) { z = [ y [ b ] , y [ P ] ] ; x = E . D o m . g e t D o c u m e n t S c r o l l L e f t ( y [ e ] ) ; Y = E . D o m . g e t D o c u m e n t S c r o l l T o p ( y [ e ] ) ; A C = ( ( H | | m . w e b k i t > 5 1 9 ) ? t r u e : f a l s e ) ; w h i l e ( ( G = G [ u ] ) ) { z [ 0 ] + = G [ b ] ; z [ 1 ] + = G [ P ] ; i f ( A C ) { z = E . D o m . _ c a l c B o r d e r s ( G , z ) ; } } i f ( E . D o m . _ g e t S t y l e ( y , p ) ! = = f ) { G = y ; w h i l e ( ( G = G [ Z ] ) & & G [ C ] ) { A A = G [ i ] ; A B = G [ O ] ; i f ( H & & ( E . D o m . _ g e t S t y l e ( G , " o v e r f l o w " ) ! = = " v i s i b l e " ) ) { z = E . D o m . _ c a l c B o r d e r s ( G , z ) ; } i f ( A A | | A B ) { z [ 0 ] - = A B ; z [ 1 ] - = A A ; } } z [ 0 ] + = x ; z [ 1 ] + = Y ; } e l s e { i f ( D ) { z [ 0 ] - = x ; z [ 1 ] - = Y ; } e l s e { i f ( I | | H ) { z [ 0 ] + = x ; z [ 1 ] + = Y ; } } } z [ 0 ] = M a t h . f l o o r ( z [ 0 ] ) ; z [ 1 ] = M a t h . f l o o r ( z [ 1 ] ) ; } e l s e { } r e t u r n   z ; } ; } } ( ) , g e t X : f u n c t i o n ( G ) { v a r   Y = f u n c t i o n ( x ) { r e t u r n   E . D o m . g e t X Y ( x ) [ 0 ] ; } ; r e t u r n   E . D o m . b a t c h ( G , Y , E . D o m , t r u e ) ; } , g e t Y : f u n c t i o n ( G ) { v a r   Y = f u n c t i o n ( x ) { r e t u r n   E . D o m . g e t X Y ( x ) [ 1 ] ; } ; r e t u r n   E . D o m . b a t c h ( G , Y , E . D o m , t r u e ) ; } , s e t X Y : f u n c t i o n ( G , x , Y ) { E . D o m . b a t c h ( G , E . D o m . _ s e t X Y , { p o s : x , n o R e t r y : Y } ) ; } , _ s e t X Y : f u n c t i o n ( G , z ) { v a r   A A = E . D o m . _ g e t S t y l e ( G , p ) , y = E . D o m . s e t S t y l e , A D = z . p o s , Y = z . n o R e t r y , A B = [ p a r s e I n t ( E . D o m . g e t C o m p u t e d S t y l e ( G , j ) , 1 0 ) , p a r s e I n t ( E . D o m . g e t C o m p u t e d S t y l e ( G , o ) , 1 0 ) ] , A C , x ; i f ( A A = = " s t a t i c " ) { A A = V ; y ( G , p , A A ) ; } A C = E . D o m . _ g e t X Y ( G ) ; i f ( ! A D | | A C = = = f a l s e ) { r e t u r n   f a l s e ; } i f ( i s N a N ( A B [ 0 ] ) ) { A B [ 0 ] = ( A A = = V ) ? 0 : G [ b ] ; } i f ( i s N a N ( A B [ 1 ] ) ) { A B [ 1 ] = ( A A = = V ) ? 0 : G [ P ] ; } i f ( A D [ 0 ] ! = = n u l l ) { y ( G , j , A D [ 0 ] - A C [ 0 ] + A B [ 0 ] + " p x " ) ; } i f ( A D [ 1 ] ! = = n u l l ) { y ( G , o , A D [ 1 ] - A C [ 1 ] + A B [ 1 ] + " p x " ) ; } i f ( ! Y ) { x = E . D o m . _ g e t X Y ( G ) ; i f ( ( A D [ 0 ] ! = = n u l l & & x [ 0 ] ! = A D [ 0 ] ) | | ( A D [ 1 ] ! = = n u l l & & x [ 1 ] ! = A D [ 1 ] ) ) { E . D o m . _ s e t X Y ( G , { p o s : A D , n o R e t r y : t r u e } ) ; } } } , s e t X : f u n c t i o n ( Y , G ) { E . D o m . s e t X Y ( Y , [ G , n u l l ] ) ; } , s e t Y : f u n c t i o n ( G , Y ) { E . D o m . s e t X Y ( G , [ n u l l , Y ] ) ; } , g e t R e g i o n : f u n c t i o n ( G ) { v a r   Y = f u n c t i o n ( x ) { v a r   y = f a l s e ; i f ( E . D o m . _ c a n P o s i t i o n ( x ) ) { y = E . R e g i o n . g e t R e g i o n ( x ) ; } e l s e { } r e t u r n   y ; } ; r e t u r n   E . D o m . b a t c h ( G , Y , E . D o m , t r u e ) ; } , g e t C l i e n t W i d t h : f u n c t i o n ( ) { r e t u r n   E . D o m . g e t V i e w p o r t W i d t h ( ) ; } , g e t C l i e n t H e i g h t : f u n c t i o n ( ) { r e t u r n   E . D o m . g e t V i e w p o r t H e i g h 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 ( A B , A F , A C , A E , x , A D ) { A B = L . t r i m ( A B ) ; A F = A F | | " * " ; A C = ( A C ) ? E . D o m . g e t ( A C ) : n u l l | | K ; i f ( ! A C ) { r e t u r n [ ] ; } v a r   Y = [ ] , G = A C . g e t E l e m e n t s B y T a g N a m e ( A F ) , z = E . D o m . h a s C l a s s ; f o r ( v a r   y = 0 , A A = G . l e n g t h ; y < A A ; + + y ) { i f ( z ( G [ y ] , A B ) ) { Y [ Y . l e n g t h ] = G [ y ] ; } } i f ( A E ) { E . D o m . b a t c h ( Y , A E , x , A D ) ; } r e t u r n   Y ; } , h a s C l a s s : f u n c t i o n ( Y , G ) { r e t u r n   E . D o m . b a t c h ( Y , E . D o m . _ h a s C l a s s , G ) ; } , _ h a s C l a s s : f u n c t i o n ( x , Y ) { v a r   G = f a l s e , y ; i f ( x & & Y ) { y = E . D o m . g e t A t t r i b u t e ( x , F ) | | J ; i f ( Y . e x e c ) { G = Y . t e s t ( y ) ; } e l s e { G = Y & & ( B + y + B ) . i n d e x O f ( B + Y + B ) > - 1 ; } } e l s e { } r e t u r n   G ; } , a d d C l a s s : f u n c t i o n ( Y , G ) { r e t u r n   E . D o m . b a t c h ( Y , E . D o m . _ a d d C l a s s , G ) ; } , _ a d d C l a s s : f u n c t i o n ( x , Y ) { v a r   G = f a l s e , y ; i f ( x & & Y ) { y = E . D o m . g e t A t t r i b u t e ( x , F ) | | J ; i f ( ! E . D o m . _ h a s C l a s s ( x , Y ) ) { E . D o m . s e t A t t r i b u t e ( x , F , A ( y + B + Y ) ) ; G = t r u e ; } } e l s e { } r e t u r n   G ; } , r e m o v e C l a s s : f u n c t i o n ( Y , G ) { r e t u r n   E . D o m . b a t c h ( Y , E . D o m . _ r e m o v e C l a s s , G ) ; } , _ r e m o v e C l a s s : f u n c t i o n ( y , x ) { v a r   Y = f a l s e , A A , z , G ; i f ( y & & x ) { A A = E . D o m . g e t A t t r i b u t e ( y , F ) | | J ; E . D o m . s e t A t t r i b u t e ( y , F , A A . r e p l a c e ( E . D o m . _ g e t C l a s s R e g e x ( x ) , J ) ) ; z = E . D o m . g e t A t t r i b u t e ( y , F ) ; i f ( A A ! = = z ) { E . D o m . s e t A t t r i b u t e ( y , F , A ( z ) ) ; Y = t r u e ; i f ( E . D o m . g e t A t t r i b u t e ( y , F ) = = = " " ) { G = ( y . h a s A t t r i b u t e & & y . h a s A t t r i b u t e ( g ) ) ? g : F ; y . r e m o v e A t t r i b u t e ( G ) ; } } } e l s e { } r e t u r n   Y ; } , r e p l a c e C l a s s : f u n c t i o n ( x , Y , G ) { r e t u r n   E . D o m . b a t c h ( x , E . D o m . _ r e p l a c e C l a s s , { f r o m : Y , t o : G } ) ;  
 } , _ r e p l a c e C l a s s : f u n c t i o n ( y , x ) { v a r   Y , A B , A A , G = f a l s e , z ; i f ( y & & x ) { A B = x . f r o m ; A A = x . t o ; i f ( ! A A ) { G = f a l s e ; } e l s e { i f ( ! A B ) { G = E . D o m . _ a d d C l a s s ( y , x . t o ) ; } e l s e { i f ( A B ! = = A A ) { z = E . D o m . g e t A t t r i b u t e ( y , F ) | | J ; Y = ( B + z . r e p l a c e ( E . D o m . _ g e t C l a s s R e g e x ( A B ) , B + A A ) ) . s p l i t ( E . D o m . _ g e t C l a s s R e g e x ( A A ) ) ; Y . s p l i c e ( 1 , 0 , B + A A ) ; E . D o m . s e t A t t r i b u t e ( y , F , A ( Y . j o i n ( J ) ) ) ; G = t r u e ; } } } } e l s e { } r e t u r n   G ; } , g e n e r a t e I d : f u n c t i o n ( G , x ) { x = x | | " y u i - g e n " ; v a r   Y = f u n c t i o n ( y ) { i f ( y & & y . i d ) { r e t u r n   y . i d ; } v a r   z = x + Y A H O O . e n v . _ i d _ c o u n t e r + + ; i f ( y ) { i f ( y [ e ] . g e t E l e m e n t B y I d ( z ) ) { r e t u r n   E . D o m . g e n e r a t e I d ( y , z + x ) ; } y . i d = z ; } r e t u r n   z ; } ; r e t u r n   E . D o m . b a t c h ( G , Y , E . D o m , t r u e ) | | Y . a p p l y ( E . D o m , a r g u m e n t s ) ; } , i s A n c e s t o r : f u n c t i o n ( Y , x ) { Y = E . D o m . g e t ( Y ) ; x = E . D o m . g e t ( x ) ; v a r   G = f a l s e ; i f ( ( Y & & x ) & & ( Y [ l ] & & x [ l ] ) ) { i f ( Y . c o n t a i n s & & Y ! = = x ) { G = Y . c o n t a i n s ( x ) ; } e l s e { i f ( Y . c o m p a r e D o c u m e n t P o s i t i o n ) { G = ! ! ( Y . c o m p a r e D o c u m e n t P o s i t i o n ( x ) & 1 6 ) ; } } } e l s e { } r e t u r n   G ; } , i n D o c u m e n t : f u n c t i o n ( G , Y ) { r e t u r n   E . D o m . _ i n D o c ( E . D o m . g e t ( G ) , Y ) ; } , _ i n D o c : f u n c t i o n ( Y , x ) { v a r   G = f a l s e ; i f ( Y & & Y [ C ] ) { x = x | | Y [ e ] ; G = E . D o m . i s A n c e s t o r ( x [ v ] , Y ) ; } e l s e { } r e t u r n   G ; } , g e t E l e m e n t s B y : f u n c t i o n ( Y , A F , A B , A D , y , A C , A E ) { A F = A F | | " * " ; A B = ( A B ) ? E . D o m . g e t ( A B ) : n u l l | | K ; i f ( ! A B ) { r e t u r n [ ] ; } v a r   x = [ ] , G = A B . g e t E l e m e n t s B y T a g N a m e ( A F ) ; f o r ( v a r   z = 0 , A A = G . l e n g t h ; z < A A ; + + z ) { i f ( Y ( G [ z ] ) ) { i f ( A E ) { x = G [ z ] ; b r e a k ; } e l s e { x [ x . l e n g t h ] = G [ z ] ; } } } i f ( A D ) { E . D o m . b a t c h ( x , A D , y , A C ) ; } r e t u r n   x ; } , g e t E l e m e n t B y : f u n c t i o n ( x , G , Y ) { r e t u r n   E . D o m . g e t E l e m e n t s B y ( x , G , Y , n u l l , n u l l , n u l l , t r u e ) ; } , b a t c h : f u n c t i o n ( x , A B , A A , z ) { v a r   y = [ ] , Y = ( z ) ? A A : w i n d o w ; x = ( x & & ( x [ C ] | | x . i t e m ) ) ? x : E . D o m . g e t ( x ) ; i f ( x & & A B ) { i f ( x [ C ] | | x . l e n g t h = = = u n d e f i n e d ) { r e t u r n   A B . c a l l ( Y , x , A A ) ; } f o r ( v a r   G = 0 ; G < x . l e n g t h ; + + G ) { y [ y . l e n g t h ] = A B . c a l l ( Y , x [ G ] , A A ) ; } } e l s e { r e t u r n   f a l s e ; } r e t u r n   y ; } , g e t D o c u m e n t H e i g h t : f u n c t i o n ( ) { v a r   Y = ( K [ t ] ! = M | | I ) ? K . b o d y . s c r o l l H e i g h t : W . s c r o l l H e i g h t , G = M a t h . m a x ( Y , E . D o m . g e t V i e w p o r t H e i g h t ( ) ) ; r e t u r n   G ; } , g e t D o c u m e n t W i d t h : f u n c t i o n ( ) { v a r   Y = ( K [ t ] ! = M | | I ) ? K . b o d y . s c r o l l W i d t h : W . s c r o l l W i d t h , G = M a t h . m a x ( Y , E . D o m . g e t V i e w p o r t W i d t h ( ) ) ; r e t u r n   G ; } , g e t V i e w p o r t H e i g h t : f u n c t i o n ( ) { v a r   G = s e l f . i n n e r H e i g h t , Y = K [ t ] ; i f ( ( Y | | T ) & & ! D ) { G = ( Y = = M ) ? W . c l i e n t H e i g h t : K . b o d y . c l i e n t H e i g h t ; } r e t u r n   G ; } , g e t V i e w p o r t W i d t h : f u n c t i o n ( ) { v a r   G = s e l f . i n n e r W i d t h , Y = K [ t ] ; i f ( Y | | T ) { G = ( Y = = M ) ? W . c l i e n t W i d t h : K . b o d y . c l i e n t W i d t h ; } r e t u r n   G ; } , g e t A n c e s t o r B y : f u n c t i o n ( G , Y ) { w h i l e ( ( G = G [ Z ] ) ) { i f ( E . D o m . _ t e s t E l e m e n t ( G , Y ) ) { r e t u r n   G ; } } r e t u r n   n u l l ; } , g e t A n c e s t o r B y C l a s s N a m e : f u n c t i o n ( Y , G ) { Y = E . D o m . g e t ( Y ) ; i f ( ! Y ) { r e t u r n   n u l l ; } v a r   x = f u n c t i o n ( y ) { r e t u r n   E . D o m . h a s C l a s s ( y , G ) ; } ; r e t u r n   E . D o m . g e t A n c e s t o r B y ( Y , x ) ; } , g e t A n c e s t o r B y T a g N a m e : f u n c t i o n ( Y , G ) { Y = E . D o m . g e t ( Y ) ; i f ( ! Y ) { r e t u r n   n u l l ; } v a r   x = f u n c t i o n ( y ) { r e t u r n   y [ C ] & & y [ C ] . t o U p p e r C a s e ( ) = = G . t o U p p e r C a s e ( ) ; } ; r e t u r n   E . D o m . g e t A n c e s t o r B y ( Y , x ) ; } , g e t P r e v i o u s S i b l i n g B y : f u n c t i o n ( G , Y ) { w h i l e ( G ) { G = G . p r e v i o u s S i b l i n g ; i f ( E . D o m . _ t e s t E l e m e n t ( G , Y ) ) { r e t u r n   G ; } } r e t u r n   n u l l ; } , g e t P r e v i o u s S i b l i n g : f u n c t i o n ( G ) { G = E . D o m . g e t ( G ) ; i f ( ! G ) { r e t u r n   n u l l ; } r e t u r n   E . D o m . g e t P r e v i o u s S i b l i n g B y ( G ) ; } , g e t N e x t S i b l i n g B y : f u n c t i o n ( G , Y ) { w h i l e ( G ) { G = G . n e x t S i b l i n g ; i f ( E . D o m . _ t e s t E l e m e n t ( G , Y ) ) { r e t u r n   G ; } } r e t u r n   n u l l ; } , g e t N e x t S i b l i n g : f u n c t i o n ( G ) { G = E . D o m . g e t ( G ) ; i f ( ! G ) { r e t u r n   n u l l ; } r e t u r n   E . D o m . g e t N e x t S i b l i n g B y ( G ) ; } , g e t F i r s t C h i l d B y : f u n c t i o n ( G , x ) { v a r   Y = ( E . D o m . _ t e s t E l e m e n t ( G . f i r s t C h i l d , x ) ) ? G . f i r s t C h i l d : n u l l ; r e t u r n   Y | | E . D o m . g e t N e x t S i b l i n g B y ( G . f i r s t C h i l d , x ) ; } , g e t F i r s t C h i l d : f u n c t i o n ( G , Y ) { G = E . D o m . g e t ( G ) ; i f ( ! G ) { r e t u r n   n u l l ; } r e t u r n   E . D o m . g e t F i r s t C h i l d B y ( G ) ; } , g e t L a s t C h i l d B y : f u n c t i o n ( G , x ) { i f ( ! G ) { r e t u r n   n u l l ; } v a r   Y = ( E . D o m . _ t e s t E l e m e n t ( G . l a s t C h i l d , x ) ) ? G . l a s t C h i l d : n u l l ; r e t u r n   Y | | E . D o m . g e t P r e v i o u s S i b l i n g B y ( G . l a s t C h i l d , x ) ; } , g e t L a s t C h i l d : f u n c t i o n ( G ) { G = E . D o m . g e t ( G ) ; r e t u r n   E . D o m . g e t L a s t C h i l d B y ( G ) ; } , g e t C h i l d r e n B y : f u n c t i o n ( Y , y ) { v a r   x = E . D o m . g e t F i r s t C h i l d B y ( Y , y ) , G = x ? [ x ] : [ ] ; E . D o m . g e t N e x t S i b l i n g B y ( x , f u n c t i o n ( z ) { i f ( ! y | | y ( z ) ) { G [ G . l e n g t h ] = z ; } r e t u r n   f a l s e ; } ) ; r e t u r n   G ; } , g e t C h i l d r e n : f u n c t i o n ( G ) { G = E . D o m . g e t ( G ) ; i f ( ! G ) { } r e t u r n   E . D o m . g e t C h i l d r e n B y ( G ) ; } , g e t D o c u m e n t S c r o l l L e f t : f u n c t i o n ( G ) { G = G | | K ; r e t u r n   M a t h . m a x ( G [ v ] . s c r o l l L e f t , G . b o d y . s c r o l l L e f t ) ; } , g e t D o c u m e n t S c r o l l T o p : f u n c t i o n ( G ) { G = G | | K ; r e t u r n   M a t h . m a x ( G [ v ] . s c r o l l T o p , G . b o d y . s c r o l l T o p ) ; } , i n s e r t B e f o r e : f u n c t i o n ( Y , G ) { Y = E . D o m . g e t ( Y ) ; G = E . D o m . g e t ( G ) ; i f ( ! Y | | ! G | | ! G [ Z ] ) { r e t u r n   n u l l ; } r e t u r n   G [ Z ] . i n s e r t B e f o r e ( Y , G ) ; } , i n s e r t A f t e r : f u n c t i o n ( Y , G ) { Y = E . D o m . g e t ( Y ) ; G = E . D o m . g e t ( G ) ; i f ( ! Y | | ! G | | ! G [ Z ] ) { r e t u r n   n u l l ; } i f ( G . n e x t S i b l i n g ) { r e t u r n   G [ Z ] . i n s e r t B e f o r e ( Y , G . n e x t S i b l i n g ) ; } e l s e { r e t u r n   G [ Z ] . a p p e n d C h i l d ( Y ) ; } } , g e t C l i e n t R e g i o n : f u n c t i o n ( ) { v a r   x = E . D o m . g e t D o c u m e n t S c r o l l T o p ( ) , Y = E . D o m . g e t D o c u m e n t S c r o l l L e f t ( ) , y = E . D o m . g e t V i e w p o r t W i d t h ( ) + Y , G = E . D o m . g e t V i e w p o r t H e i g h t ( ) + x ; r e t u r n   n e w   E . R e g i o n ( x , y , G , Y ) ; } , s e t A t t r i b u t e : f u n c t i o n ( Y , G , x ) { G = E . D o m . C U S T O M _ A T T R I B U T E S [ G ] | | G ; Y . s e t A t t r i b u t e ( G , x ) ; } , g e t A t t r i b u t e : f u n c t i o n ( Y , G ) { G = E . D o m . C U S T O M _ A T T R I B U T E S [ G ] | | G ; r e t u r n   Y . g e t A t t r i b u t e ( G ) ; } , _ t o C a m e l : f u n c t i o n ( Y ) { v a r   x = d ; f u n c t i o n   G ( y , z ) { r e t u r n   z . t o U p p e r C a s e ( ) ; } r e t u r n   x [ Y ] | | ( x [ Y ] = Y . i n d e x O f ( " - " ) = = = - 1 ? Y : Y . r e p l a c e ( / - ( [ a - z ] ) / g i , G ) ) ; } , _ g e t C l a s s R e g e x : f u n c t i o n ( Y ) { v a r   G ; i f ( Y ! = = u n d e f i n e d ) { i f ( Y . e x e c ) { G = Y ; } e l s e { G = h [ Y ] ; i f ( ! G ) { Y = Y . r e p l a c e ( E . D o m . _ p a t t e r n s . C L A S S _ R E _ T O K E N S , " \ \ $ 1 " ) ; G = h [ Y ] = n e w   R e g E x p ( s + Y + k , U ) ; } } } r e t u r n   G ; } , _ p a t t e r n s : { R O O T _ T A G : / ^ b o d y | h t m l $ / i , C L A S S _ R E _ T O K E N S : / ( [ \ . \ ( \ ) \ ^ \ $ \ * \ + \ ? \ | \ [ \ ] \ { \ } ] ) / g } , _ t e s t E l e m e n t : f u n c t i o n ( G , Y ) { r e t u r n   G & & G [ l ] = = 1 & & ( ! Y | | Y ( G ) ) ; } , _ c a l c B o r d e r s : f u n c t i o n ( x , y ) { v a r   Y = p a r s e I n t ( E . D o m [ w ] ( x , R ) , 1 0 ) | | 0 , G = p a r s e I n t ( E . D o m [ w ] ( x , q ) , 1 0 ) | | 0 ; i f ( H ) { i f ( N . t e s t ( x [ C ] ) ) { Y = 0 ; G = 0 ; } } y [ 0 ] + = G ; y [ 1 ] + = Y ; r e t u r n   y ; } } ; v a r   S = E . D o m [ w ] ; i f ( m . o p e r a ) { E . D o m [ w ] = f u n c t i o n ( Y , G ) { v a r   x = S ( Y , G ) ; i f ( X . t e s t ( G ) ) { x = E . D o m . C o l o r . t o R G B ( x ) ; } r e t u r n   x ; } ; } i f ( m . w e b k i t ) { E . D o m [ w ] = f u n c t i o n ( Y , G ) { v a r   x = S ( Y , G ) ; i f ( x = = = " r g b a ( 0 ,   0 ,   0 ,   0 ) " ) { x = " t r a n s p a r e n t " ; } r e t u r n   x ; } ; } } ) ( ) ; Y A H O O . u t i l . R e g i o n = f u n c t i o n ( C , D , A , B ) { t h i s . t o p = C ; t h i s . y = C ; t h i s [ 1 ] = C ; t h i s . r i g h t = D ; t h i s . b o t t o m = A ; t h i s . l e f t = B ; t h i s . x = B ; t h i s [ 0 ] = B ; t h i s . w i d t h = t h i s . r i g h t - t h i s . l e f t ; t h i s . h e i g h t = t h i s . b o t t o m - t h i s . t o p ; } ; Y A H O O . u t i l . R e g i o n . p r o t o t y p e . c o n t a i n s = f u n c t i o n ( A ) { r e t u r n ( A . l e f t > = t h i s . l e f t & & A . r i g h t < = t h i s . r i g h t & & A . t o p > = t h i s . t o p & & A . b o t t o m < = t h i s . b o t t o m ) ; } ; Y A H O O . u t i l . R e g i o n . p r o t o t y p e . g e t A r e a = f u n c t i o n ( ) { r e t u r n ( ( t h i s . b o t t o m - t h i s . t o p ) * ( t h i s . r i g h t - t h i s . l e f t ) ) ; } ; Y A H O O . u t i l . R e g i o n . p r o t o t y p e . i n t e r s e c t = f u n c t i o n ( E ) { v a r   C = M a t h . m a x ( t h i s . t o p , E . t o p ) , D = M a t h . m i n ( t h i s . r i g h t , E . r i g h t ) , A = M a t h . m i n ( t h i s . b o t t o m , E . b o t t o m ) , B = M a t h . m a x ( t h i s . l e f t , E . l e f t ) ; i f ( A > = C & & D > = B ) { r e t u r n   n e w   Y A H O O . u t i l . R e g i o n ( C , D , A , B ) ;  
 } e l s e { r e t u r n   n u l l ; } } ; Y A H O O . u t i l . R e g i o n . p r o t o t y p e . u n i o n = f u n c t i o n ( E ) { v a r   C = M a t h . m i n ( t h i s . t o p , E . t o p ) , D = M a t h . m a x ( t h i s . r i g h t , E . r i g h t ) , A = M a t h . m a x ( t h i s . b o t t o m , E . b o t t o m ) , B = M a t h . m i n ( t h i s . l e f t , E . l e f t ) ; r e t u r n   n e w   Y A H O O . u t i l . R e g i o n ( C , D , A , B ) ; } ; Y A H O O . u t i l . R e g i o n . p r o t o t y p e . t o S t r i n g = f u n c t i o n ( ) { r e t u r n ( " R e g i o n   { " + " t o p :   " + t h i s . t o p + " ,   r i g h t :   " + t h i s . r i g h t + " ,   b o t t o m :   " + t h i s . b o t t o m + " ,   l e f t :   " + t h i s . l e f t + " ,   h e i g h t :   " + t h i s . h e i g h t + " ,   w i d t h :   " + t h i s . w i d t h + " } " ) ; } ; Y A H O O . u t i l . R e g i o n . g e t R e g i o n = f u n c t i o n ( D ) { v a r   F = Y A H O O . u t i l . D o m . g e t X Y ( D ) , C = F [ 1 ] , E = F [ 0 ] + D . o f f s e t W i d t h , A = F [ 1 ] + D . o f f s e t H e i g h t , B = F [ 0 ] ; r e t u r n   n e w   Y A H O O . u t i l . R e g i o n ( C , E , A , B ) ; } ; Y A H O O . u t i l . P o i n t = f u n c t i o n ( A , B ) { i f ( Y A H O O . l a n g . i s A r r a y ( A ) ) { B = A [ 1 ] ; A = A [ 0 ] ; } Y A H O O . u t i l . P o i n t . s u p e r c l a s s . c o n s t r u c t o r . c a l l ( t h i s , B , A , B , A ) ; } ; Y A H O O . e x t e n d ( Y A H O O . u t i l . P o i n t , Y A H O O . u t i l . R e g i o n ) ; ( f u n c t i o n ( ) { v a r   B = Y A H O O . u t i l , A = " c l i e n t T o p " , F = " c l i e n t L e f t " , J = " p a r e n t N o d e " , K = " r i g h t " , W = " h a s L a y o u t " , I = " p x " , U = " o p a c i t y " , L = " a u t o " , D = " b o r d e r L e f t W i d t h " , G = " b o r d e r T o p W i d t h " , P = " b o r d e r R i g h t W i d t h " , V = " b o r d e r B o t t o m W i d t h " , S = " v i s i b l e " , Q = " t r a n s p a r e n t " , N = " h e i g h t " , E = " w i d t h " , H = " s t y l e " , T = " c u r r e n t S t y l e " , R = / ^ w i d t h | h e i g h t $ / , O = / ^ ( \ d [ . \ d ] * ) + ( e m | e x | p x | g d | r e m | v w | v h | v m | c h | m m | c m | i n | p t | p c | d e g | r a d | m s | s | h z | k h z | % ) { 1 } ? / i , M = { g e t : f u n c t i o n ( X , Z ) { v a r   Y = " " , a = X [ T ] [ Z ] ; i f ( Z = = = U ) { Y = B . D o m . g e t S t y l e ( X , U ) ; } e l s e { i f ( ! a | | ( a . i n d e x O f & & a . i n d e x O f ( I ) > - 1 ) ) { Y = a ; } e l s e { i f ( B . D o m . I E _ C O M P U T E D [ Z ] ) { Y = B . D o m . I E _ C O M P U T E D [ Z ] ( X , Z ) ; } e l s e { i f ( O . t e s t ( a ) ) { Y = B . D o m . I E . C o m p u t e d S t y l e . g e t P i x e l ( X , Z ) ; } e l s e { Y = a ; } } } } r e t u r n   Y ; } , g e t O f f s e t : f u n c t i o n ( Z , e ) { v a r   b = Z [ T ] [ e ] , X = e . c h a r A t ( 0 ) . t o U p p e r C a s e ( ) + e . s u b s t r ( 1 ) , c = " o f f s e t " + X , Y = " p i x e l " + X , a = " " , d ; i f ( b = = L ) { d = Z [ c ] ; i f ( d = = = u n d e f i n e d ) { a = 0 ; } a = d ; i f ( R . t e s t ( e ) ) { Z [ H ] [ e ] = d ; i f ( Z [ c ] > d ) { a = d - ( Z [ c ] - d ) ; } Z [ H ] [ e ] = L ; } } e l s e { i f ( ! Z [ H ] [ Y ] & & ! Z [ H ] [ e ] ) { Z [ H ] [ e ] = b ; } a = Z [ H ] [ Y ] ; } r e t u r n   a + I ; } , g e t B o r d e r W i d t h : f u n c t i o n ( X , Z ) { v a r   Y = n u l l ; i f ( ! X [ T ] [ W ] ) { X [ H ] . z o o m = 1 ; } s w i t c h ( Z ) { c a s e   G : Y = X [ A ] ; b r e a k ; c a s e   V : Y = X . o f f s e t H e i g h t - X . c l i e n t H e i g h t - X [ A ] ; b r e a k ; c a s e   D : Y = X [ F ] ; b r e a k ; c a s e   P : Y = X . o f f s e t W i d t h - X . c l i e n t W i d t h - X [ F ] ; b r e a k ; } r e t u r n   Y + I ; } , g e t P i x e l : f u n c t i o n ( Y , X ) { v a r   a = n u l l , b = Y [ T ] [ K ] , Z = Y [ T ] [ X ] ; Y [ H ] [ K ] = Z ; a = Y [ H ] . p i x e l R i g h t ; Y [ H ] [ K ] = b ; r e t u r n   a + I ; } , g e t M a r g i n : f u n c t i o n ( Y , X ) { v a r   Z ; i f ( Y [ T ] [ X ] = = L ) { Z = 0 + I ; } e l s e { Z = B . D o m . I E . C o m p u t e d S t y l e . g e t P i x e l ( Y , X ) ; } r e t u r n   Z ; } , g e t V i s i b i l i t y : f u n c t i o n ( Y , X ) { v a r   Z ; w h i l e ( ( Z = Y [ T ] ) & & Z [ X ] = = " i n h e r i t " ) { Y = Y [ J ] ; } r e t u r n ( Z ) ? Z [ X ] : S ; } , g e t C o l o r : f u n c t i o n ( Y , X ) { r e t u r n   B . D o m . C o l o r . t o R G B ( Y [ T ] [ X ] ) | | Q ; } , g e t B o r d e r C o l o r : f u n c t i o n ( Y , X ) { v a r   Z = Y [ T ] , a = Z [ X ] | | Z . c o l o r ; r e t u r n   B . D o m . C o l o r . t o R G B ( B . D o m . C o l o r . t o H e x ( a ) ) ; } } , C = { } ; C . t o p = C . r i g h t = C . b o t t o m = C . l e f t = C [ E ] = C [ N ] = M . g e t O f f s e t ; C . c o l o r = M . g e t C o l o r ; C [ G ] = C [ P ] = C [ V ] = C [ D ] = M . g e t B o r d e r W i d t h ; C . m a r g i n T o p = C . m a r g i n R i g h t = C . m a r g i n B o t t o m = C . m a r g i n L e f t = M . g e t M a r g i n ; C . v i s i b i l i t y = M . g e t V i s i b i l i t y ; C . b o r d e r C o l o r = C . b o r d e r T o p C o l o r = C . b o r d e r R i g h t C o l o r = C . b o r d e r B o t t o m C o l o r = C . b o r d e r L e f t C o l o r = M . g e t B o r d e r C o l o r ; B . D o m . I E _ C O M P U T E D = C ; B . D o m . I E _ C o m p u t e d S t y l e = M ; } ) ( ) ; ( f u n c t i o n ( ) { v a r   C = " t o S t r i n g " , A = p a r s e I n t , B = R e g E x p , D = Y A H O O . u t i l ; D . D o m . C o l o r = { K E Y W O R D S : { b l a c k : " 0 0 0 " , s i l v e r : " c 0 c 0 c 0 " , g r a y : " 8 0 8 0 8 0 " , w h i t e : " f f f " , m a r o o n : " 8 0 0 0 0 0 " , r e d : " f 0 0 " , p u r p l e : " 8 0 0 0 8 0 " , f u c h s i a : " f 0 f " , g r e e n : " 0 0 8 0 0 0 " , l i m e : " 0 f 0 " , o l i v e : " 8 0 8 0 0 0 " , y e l l o w : " f f 0 " , n a v y : " 0 0 0 0 8 0 " , b l u e : " 0 0 f " , t e a l : " 0 0 8 0 8 0 " , a q u a : " 0 f f " } , r e _ R G B : / ^ r g b \ ( ( [ 0 - 9 ] + ) \ s * , \ s * ( [ 0 - 9 ] + ) \ s * , \ s * ( [ 0 - 9 ] + ) \ ) $ / i , r e _ h e x : / ^ # ? ( [ 0 - 9 A - F ] { 2 } ) ( [ 0 - 9 A - F ] { 2 } ) ( [ 0 - 9 A - F ] { 2 } ) $ / i , r e _ h e x 3 : / ( [ 0 - 9 A - F ] ) / g i , t o R G B : f u n c t i o n ( E ) { i f ( ! D . D o m . C o l o r . r e _ R G B . t e s t ( E ) ) { E = D . D o m . C o l o r . t o H e x ( E ) ; } i f ( D . D o m . C o l o r . r e _ h e x . e x e c ( E ) ) { E = " r g b ( " + [ A ( B . $ 1 , 1 6 ) , A ( B . $ 2 , 1 6 ) , A ( B . $ 3 , 1 6 ) ] . j o i n ( " ,   " ) + " ) " ; } r e t u r n   E ; } , t o H e x : f u n c t i o n ( H ) { H = D . D o m . C o l o r . K E Y W O R D S [ H ] | | H ; i f ( D . D o m . C o l o r . r e _ R G B . e x e c ( H ) ) { v a r   G = ( B . $ 1 . l e n g t h = = = 1 ) ? " 0 " + B . $ 1 : N u m b e r ( B . $ 1 ) , F = ( B . $ 2 . l e n g t h = = = 1 ) ? " 0 " + B . $ 2 : N u m b e r ( B . $ 2 ) , E = ( B . $ 3 . l e n g t h = = = 1 ) ? " 0 " + B . $ 3 : N u m b e r ( B . $ 3 ) ; H = [ G [ C ] ( 1 6 ) , F [ C ] ( 1 6 ) , E [ C ] ( 1 6 ) ] . j o i n ( " " ) ; } i f ( H . l e n g t h < 6 ) { H = H . r e p l a c e ( D . D o m . C o l o r . r e _ h e x 3 , " $ 1 $ 1 " ) ; } i f ( H ! = = " t r a n s p a r e n t " & & H . i n d e x O f ( " # " ) < 0 ) { H = " # " + H ; } r e t u r n   H . t o L o w e r C a s e ( ) ; } } ; } ( ) ) ; Y A H O O . r e g i s t e r ( " d o m " , Y A H O O . u t i l . D o m , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ; Y A H O O . u t i l . C u s t o m E v e n t = f u n c t i o n ( D , C , B , A ) { t h i s . t y p e = D ; t h i s . s c o p e = C | | w i n d o w ; t h i s . s i l e n t = B ; t h i s . s i g n a t u r e = A | | Y A H O O . u t i l . C u s t o m E v e n t . L I S T ; t h i s . s u b s c r i b e r s = [ ] ; i f ( ! t h i s . s i l e n t ) { } v a r   E = " _ Y U I C E O n S u b s c r i b e " ; i f ( D ! = = E ) { t h i s . s u b s c r i b e E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( E , t h i s , t r u e ) ; } t h i s . l a s t E r r o r = n u l l ; } ; Y A H O O . u t i l . C u s t o m E v e n t . L I S T = 0 ; Y A H O O . u t i l . C u s t o m E v e n t . F L A T = 1 ; Y A H O O . u t i l . C u s t o m E v e n t . p r o t o t y p e = { s u b s c r i b e : f u n c t i o n ( A , B , C ) { i f ( ! A ) { t h r o w   n e w   E r r o r ( " I n v a l i d   c a l l b a c k   f o r   s u b s c r i b e r   t o   ' " + t h i s . t y p e + " ' " ) ; } i f ( t h i s . s u b s c r i b e E v e n t ) { t h i s . s u b s c r i b e E v e n t . f i r e ( A , B , C ) ; } t h i s . s u b s c r i b e r s . p u s h ( n e w   Y A H O O . u t i l . S u b s c r i b e r ( A , B , C ) ) ; } , u n s u b s c r i b e : f u n c t i o n ( D , F ) { i f ( ! D ) { r e t u r n   t h i s . u n s u b s c r i b e A l l ( ) ; } v a r   E = f a l s e ; f o r ( v a r   B = 0 , A = t h i s . s u b s c r i b e r s . l e n g t h ; B < A ; + + B ) { v a r   C = t h i s . s u b s c r i b e r s [ B ] ; i f ( C & & C . c o n t a i n s ( D , F ) ) { t h i s . _ d e l e t e ( B ) ; E = t r u e ; } } r e t u r n   E ; } , f i r e : f u n c t i o n ( ) { t h i s . l a s t E r r o r = n u l l ; v a r   K = [ ] , E = t h i s . s u b s c r i b e r s . l e n g t h ; i f ( ! E & & t h i s . s i l e n t ) { r e t u r n   t r u e ; } v a r   I = [ ] . s l i c e . c a l l ( a r g u m e n t s , 0 ) , G = t r u e , D , J = f a l s e ; i f ( ! t h i s . s i l e n t ) { } v a r   C = t h i s . s u b s c r i b e r s . s l i c e ( ) , A = Y A H O O . u t i l . E v e n t . t h r o w E r r o r s ; f o r ( D = 0 ; D < E ; + + D ) { v a r   M = C [ D ] ; i f ( ! M ) { J = t r u e ; } e l s e { i f ( ! t h i s . s i l e n t ) { } v a r   L = M . g e t S c o p e ( t h i s . s c o p e ) ; i f ( t h i s . s i g n a t u r e = = Y A H O O . u t i l . C u s t o m E v e n t . F L A T ) { v a r   B = n u l l ; i f ( I . l e n g t h > 0 ) { B = I [ 0 ] ; } t r y { G = M . f n . c a l l ( L , B , M . o b j ) ; } c a t c h ( F ) { t h i s . l a s t E r r o r = F ; i f ( A ) { t h r o w   F ; } } } e l s e { t r y { G = M . f n . c a l l ( L , t h i s . t y p e , I , M . o b j ) ; } c a t c h ( H ) { t h i s . l a s t E r r o r = H ; i f ( A ) { t h r o w   H ; } } } i f ( f a l s e = = = G ) { i f ( ! t h i s . s i l e n t ) { } b r e a k ; } } } r e t u r n ( G ! = = f a l s e ) ; } , u n s u b s c r i b e A l l : f u n c t i o n ( ) { v a r   A = t h i s . s u b s c r i b e r s . l e n g t h , B ; f o r ( B = A - 1 ; B > - 1 ; B - - ) { t h i s . _ d e l e t e ( B ) ; } t h i s . s u b s c r i b e r s = [ ] ; r e t u r n   A ; } , _ d e l e t e : f u n c t i o n ( A ) { v a r   B = t h i s . s u b s c r i b e r s [ A ] ; i f ( B ) { d e l e t e   B . f n ; d e l e t e   B . o b j ; } t h i s . s u b s c r i b e r s . s p l i c e ( A , 1 ) ; } , t o S t r i n g : f u n c t i o n ( ) { r e t u r n " C u s t o m E v e n t :   " + " ' " + t h i s . t y p e + " ' ,   " + " c o n t e x t :   " + t h i s . s c o p e ; } } ; Y A H O O . u t i l . S u b s c r i b e r = f u n c t i o n ( A , B , C ) { t h i s . f n = A ; t h i s . o b j = Y A H O O . l a n g . i s U n d e f i n e d ( B ) ? n u l l : B ; t h i s . o v e r r i d e C o n t e x t = C ; } ; Y A H O O . u t i l . S u b s c r i b e r . p r o t o t y p e . g e t S c o p e = f u n c t i o n ( A ) { i f ( t h i s . o v e r r i d e C o n t e x t ) { i f ( t h i s . o v e r r i d e C o n t e x t = = = t r u e ) { r e t u r n   t h i s . o b j ; } e l s e { r e t u r n   t h i s . o v e r r i d e C o n t e x t ; } } r e t u r n   A ; } ; Y A H O O . u t i l . S u b s c r i b e r . p r o t o t y p e . c o n t a i n s = f u n c t i o n ( A , B ) { i f ( B ) { r e t u r n ( t h i s . f n = = A & & t h i s . o b j = = B ) ; } e l s e { r e t u r n ( t h i s . f n = = A ) ; } } ; Y A H O O . u t i l . S u b s c r i b e r . p r o t o t y p e . t o S t r i n g = f u n c t i o n ( ) { r e t u r n " S u b s c r i b e r   {   o b j :   " + t h i s . o b j + " ,   o v e r r i d e C o n t e x t :   " + ( t h i s . o v e r r i d e C o n t e x t | | " n o " ) + "   } " ; } ; i f ( ! Y A H O O . u t i l . E v e n t ) { Y A H O O . u t i l . E v e n t = f u n c t i o n ( ) { v a r   H = f a l s e ; v a r   I = [ ] ; v a r   J = [ ] ; v a r   G = [ ] ; v a r   E = [ ] ; v a r   C = 0 ; v a r   F = [ ] ; v a r   B = [ ] ; v a r   A = 0 ; v a r   D = { 6 3 2 3 2 : 3 8 , 6 3 2 3 3 : 4 0 , 6 3 2 3 4 : 3 7 , 6 3 2 3 5 : 3 9 , 6 3 2 7 6 : 3 3 , 6 3 2 7 7 : 3 4 , 2 5 : 9 } ; v a r   K = Y A H O O . e n v . u a . i e ? " f o c u s i n " : " f o c u s " ; v a r   L = Y A H O O . e n v . u a . i e ? " f o c u s o u t " : " b l u r " ; r e t u r n { P O L L _ R E T R Y S : 2 0 0 0 , P O L L _ I N T E R V A L : 2 0 , E L : 0 , T Y P E : 1 , F N : 2 , W F N : 3 , U N L O A D _ O B J : 3 , A D J _ S C O P E : 4 , O B J : 5 , O V E R R I D E : 6 , l a s t E r r o r : n u l l , i s S a f a r i : Y A H O O . e n v . u a . w e b k i t , w e b k i t : Y A H O O . e n v . u a . w e b k i t , i s I E : Y A H O O . e n v . u a . i e , _ i n t e r v a l : n u l l , _ d r i : n u l l , D O M R e a d y : f a l s e , t h r o w E r r o r s : f a l s e , s t a r t I n t e r v a l : f u n c t i o n ( ) { i f ( ! t h i s . _ i n t e r v a l ) { v a r   M = t h i s ; v a r   N = f u n c t i o n ( ) { M . _ t r y P r e l o a d A t t a c h ( ) ; } ; t h i s . _ i n t e r v a l = s e t I n t e r v a l ( N , t h i s . P O L L _ I N T E R V A L ) ; } } , o n A v a i l a b l e : f u n c t i o n ( S , O , Q , R , P ) { v a r   M = ( Y A H O O . l a n g . i s S t r i n g ( S ) ) ? [ S ] : S ; f o r ( v a r   N = 0 ; N < M . l e n g t h ; N = N + 1 ) { F . p u s h ( { i d : M [ N ] , f n : O , o b j : Q , o v e r r i d e C o n t e x t : R , c h e c k R e a d y : P } ) ; } C = t h i s . P O L L _ R E T R Y S ; t h i s . s t a r t I n t e r v a l ( ) ; } , o n C o n t e n t R e a d y : f u n c t i o n ( P , M , N , O ) { t h i s . o n A v a i l a b l e ( P , M , N , O , t r u e ) ; } , o n D O M R e a d y : f u n c t i o n ( M , N , O ) { i f ( t h i s . D O M R e a d y ) { s e t T i m e o u t ( f u n c t i o n ( ) { v a r   P = w i n d o w ; i f ( O ) { i f ( O = = = t r u e ) { P = N ; } e l s e { P = O ; } } M . c a l l ( P , " D O M R e a d y " , [ ] , N ) ; } , 0 ) ; } e l s e { t h i s . D O M R e a d y E v e n t . s u b s c r i b e ( M , N , O ) ; } } , _ a d d L i s t e n e r : f u n c t i o n ( O , M , Y , S , W , b ) { i f ( ! Y | | ! Y . c a l l ) { r e t u r n   f a l s e ; } i f ( t h i s . _ i s V a l i d C o l l e c t i o n ( O ) ) { v a r   Z = t r u e ; f o r ( v a r   T = 0 , V = O . l e n g t h ; T < V ; + + T ) { Z = t h i s . o n ( O [ T ] , M , Y , S , W ) & & Z ; } r e t u r n   Z ; } e l s e { i f ( Y A H O O . l a n g . i s S t r i n g ( O ) ) { v a r   R = t h i s . g e t E l ( O ) ; i f ( R ) { O = R ; } e l s e { t h i s . o n A v a i l a b l e ( O , f u n c t i o n ( ) { Y A H O O . u t i l . E v e n t . o n ( O , M , Y , S , W ) ; } ) ; r e t u r n   t r u e ; } } } i f ( ! O ) { r e t u r n   f a l s e ; } i f ( " u n l o a d " = = M & & S ! = = t h i s ) { J [ J . l e n g t h ] = [ O , M , Y , S , W ] ; r e t u r n   t r u e ; } v a r   N = O ; i f ( W ) { i f ( W = = = t r u e ) { N = S ; } e l s e { N = W ; } } v a r   P = f u n c t i o n ( c ) { r e t u r n   Y . c a l l ( N , Y A H O O . u t i l . E v e n t . g e t E v e n t ( c , O ) , S ) ; } ; v a r   a = [ O , M , Y , P , N , S , W ] ; v a r   U = I . l e n g t h ; I [ U ] = a ; i f ( t h i s . u s e L e g a c y E v e n t ( O , M ) ) { v a r   Q = t h i s . g e t L e g a c y I n d e x ( O , M ) ; i f ( Q = = - 1 | | O ! = G [ Q ] [ 0 ] ) { Q = G . l e n g t h ; B [ O . i d + M ] = Q ; G [ Q ] = [ O , M , O [ " o n " + M ] ] ; E [ Q ] = [ ] ; O [ " o n " + M ] = f u n c t i o n ( c ) { Y A H O O . u t i l . E v e n t . f i r e L e g a c y E v e n t ( Y A H O O . u t i l . E v e n t . g e t E v e n t ( c ) , Q ) ; } ; } E [ Q ] . p u s h ( a ) ; } e l s e { t r y { t h i s . _ s i m p l e A d d ( O , M , P , b ) ; } c a t c h ( X ) { t h i s . l a s t E r r o r = X ; t h i s . r e m o v e L i s t e n e r ( O , M , Y ) ; r e t u r n   f a l s e ; } } r e t u r n   t r u e ; } , a d d L i s t e n e r : f u n c t i o n ( N , Q , M , O , P ) { r e t u r n   t h i s . _ a d d L i s t e n e r ( N , Q , M , O , P , f a l s e ) ; } , a d d F o c u s L i s t e n e r : f u n c t i o n ( N , M , O , P ) { r e t u r n   t h i s . _ a d d L i s t e n e r ( N , K , M , O , P , t r u e ) ; } , r e m o v e F o c u s L i s t e n e r : f u n c t i o n ( N , M ) { r e t u r n   t h i s . r e m o v e L i s t e n e r ( N , K , M ) ; } , a d d B l u r L i s t e n e r : f u n c t i o n ( N , M , O , P ) { r e t u r n   t h i s . _ a d d L i s t e n e r ( N , L , M , O , P , t r u e ) ; } , r e m o v e B l u r L i s t e n e r : f u n c t i o n ( N , M ) { r e t u r n   t h i s . r e m o v e L i s t e n e r ( N , L , M ) ; } , f i r e L e g a c y E v e n t : f u n c t i o n ( R , P ) { v a r   T = t r u e , M , V , U , N , S ; V = E [ P ] . s l i c e ( ) ; f o r ( v a r   O = 0 , Q = V . l e n g t h ; O < Q ; + + O ) { U = V [ O ] ; i f ( U & & U [ t h i s . W F N ] ) { N = U [ t h i s . A D J _ S C O P E ] ; S = U [ t h i s . W F N ] . c a l l ( N , R ) ; T = ( T & & S ) ; } } M = G [ P ] ; i f ( M & & M [ 2 ] ) { M [ 2 ] ( R ) ; } r e t u r n   T ; } , g e t L e g a c y I n d e x : f u n c t i o n ( N , O ) { v a r   M = t h i s . g e n e r a t e I d ( N ) + O ; i f ( t y p e o f   B [ M ] = = " u n d e f i n e d " ) { r e t u r n   - 1 ; } e l s e { r e t u r n   B [ M ] ; } } , u s e L e g a c y E v e n t : f u n c t i o n ( M , N ) { r e t u r n ( t h i s . w e b k i t & & t h i s . w e b k i t < 4 1 9 & & ( " c l i c k " = = N | | " d b l c l i c k " = = N ) ) ; } , r e m o v e L i s t e n e r : f u n c t i o n ( N , M , V ) { v a r   Q , T , X ; i f ( t y p e o f   N = = " s t r i n g " ) { N = t h i s . g e t E l ( N ) ; } e l s e { i f ( t h i s . _ i s V a l i d C o l l e c t i o n ( N ) ) { v a r   W = t r u e ; f o r ( Q = N . l e n g t h - 1 ; Q > - 1 ; Q - - ) { W = ( t h i s . r e m o v e L i s t e n e r ( N [ Q ] , M , V ) & & W ) ; } r e t u r n   W ; } } i f ( ! V | | ! V . c a l l ) { r e t u r n   t h i s . p u r g e E l e m e n t ( N , f a l s e , M ) ; } i f ( " u n l o a d " = = M ) { f o r ( Q = J . l e n g t h - 1 ; Q > - 1 ; Q - - ) { X = J [ Q ] ; i f ( X & & X [ 0 ] = = N & & X [ 1 ] = = M & & X [ 2 ] = = V ) { J . s p l i c e ( Q , 1 ) ; r e t u r n   t r u e ; } } r e t u r n   f a l s e ; } v a r   R = n u l l ; v a r   S = a r g u m e n t s [ 3 ] ; i f ( " u n d e f i n e d " = = = t y p e o f   S ) { S = t h i s . _ g e t C a c h e I n d e x ( N , M , V ) ; } i f ( S > = 0 ) { R = I [ S ] ; } i f ( ! N | | ! R ) { r e t u r n   f a l s e ; } i f ( t h i s . u s e L e g a c y E v e n t ( N , M ) ) { v a r   P = t h i s . g e t L e g a c y I n d e x ( N , M ) ; v a r   O = E [ P ] ; i f ( O ) { f o r ( Q = 0 , T = O . l e n g t h ; Q < T ; + + Q ) { X = O [ Q ] ; i f ( X & & X [ t h i s . E L ] = = N & & X [ t h i s . T Y P E ] = = M & & X [ t h i s . F N ] = = V ) { O . s p l i c e ( Q , 1 ) ; b r e a k ; } } } } e l s e { t r y { t h i s . _ s i m p l e R e m o v e ( N , M , R [ t h i s . W F N ] , f a l s e ) ; } c a t c h ( U ) { t h i s . l a s t E r r o r = U ; r e t u r n   f a l s e ; } } d e l e t e   I [ S ] [ t h i s . W F N ] ; d e l e t e   I [ S ] [ t h i s . F N ] ;  
 I . s p l i c e ( S , 1 ) ; r e t u r n   t r u e ; } , g e t T a r g e t : f u n c t i o n ( O , N ) { v a r   M = O . t a r g e t | | O . s r c E l e m e n t ; r e t u r n   t h i s . r e s o l v e T e x t N o d e ( M ) ; } , r e s o l v e T e x t N o d e : f u n c t i o n ( N ) { t r y { i f ( N & & 3 = = N . n o d e T y p e ) { r e t u r n   N . p a r e n t N o d e ; } } c a t c h ( M ) { } r e t u r n   N ; } , g e t P a g e X : f u n c t i o n ( N ) { v a r   M = N . p a g e X ; i f ( ! M & & 0 ! = = M ) { M = N . c l i e n t X | | 0 ; i f ( t h i s . i s I E ) { M + = t h i s . _ g e t S c r o l l L e f t ( ) ; } } r e t u r n   M ; } , g e t P a g e Y : f u n c t i o n ( M ) { v a r   N = M . p a g e Y ; i f ( ! N & & 0 ! = = N ) { N = M . c l i e n t Y | | 0 ; i f ( t h i s . i s I E ) { N + = t h i s . _ g e t S c r o l l T o p ( ) ; } } r e t u r n   N ; } , g e t X Y : f u n c t i o n ( M ) { r e t u r n [ t h i s . g e t P a g e X ( M ) , t h i s . g e t P a g e Y ( M ) ] ; } , g e t R e l a t e d T a r g e t : f u n c t i o n ( N ) { v a r   M = N . r e l a t e d T a r g e t ; i f ( ! M ) { i f ( N . t y p e = = " m o u s e o u t " ) { M = N . t o E l e m e n t ; } e l s e { i f ( N . t y p e = = " m o u s e o v e r " ) { M = N . f r o m E l e m e n t ; } } } r e t u r n   t h i s . r e s o l v e T e x t N o d e ( M ) ; } , g e t T i m e : f u n c t i o n ( O ) { i f ( ! O . t i m e ) { v a r   N = n e w   D a t e ( ) . g e t T i m e ( ) ; t r y { O . t i m e = N ; } c a t c h ( M ) { t h i s . l a s t E r r o r = M ; r e t u r n   N ; } } r e t u r n   O . t i m e ; } , s t o p E v e n t : f u n c t i o n ( M ) { t h i s . s t o p P r o p a g a t i o n ( M ) ; t h i s . p r e v e n t D e f a u l t ( M ) ; } , s t o p P r o p a g a t i o n : f u n c t i o n ( M ) { i f ( M . s t o p P r o p a g a t i o n ) { M . s t o p P r o p a g a t i o n ( ) ; } e l s e { M . c a n c e l B u b b l e = t r u e ; } } , p r e v e n t D e f a u l t : f u n c t i o n ( M ) { i f ( M . p r e v e n t D e f a u l t ) { M . p r e v e n t D e f a u l t ( ) ; } e l s e { M . r e t u r n V a l u e = f a l s e ; } } , g e t E v e n t : f u n c t i o n ( O , M ) { v a r   N = O | | w i n d o w . e v e n t ; i f ( ! N ) { v a r   P = t h i s . g e t E v e n t . c a l l e r ; w h i l e ( P ) { N = P . a r g u m e n t s [ 0 ] ; i f ( N & & E v e n t = = N . c o n s t r u c t o r ) { b r e a k ; } P = P . c a l l e r ; } } r e t u r n   N ; } , g e t C h a r C o d e : f u n c t i o n ( N ) { v a r   M = N . k e y C o d e | | N . c h a r C o d e | | 0 ; i f ( Y A H O O . e n v . u a . w e b k i t & & ( M   i n   D ) ) { M = D [ M ] ; } r e t u r n   M ; } , _ g e t C a c h e I n d e x : f u n c t i o n ( Q , R , P ) { f o r ( v a r   O = 0 , N = I . l e n g t h ; O < N ; O = O + 1 ) { v a r   M = I [ O ] ; i f ( M & & M [ t h i s . F N ] = = P & & M [ t h i s . E L ] = = Q & & M [ t h i s . T Y P E ] = = R ) { r e t u r n   O ; } } r e t u r n   - 1 ; } , g e n e r a t e I d : f u n c t i o n ( M ) { v a r   N = M . i d ; i f ( ! N ) { N = " y u i e v t a u t o i d - " + A ; + + A ; M . i d = N ; } r e t u r n   N ; } , _ i s V a l i d C o l l e c t i o n : f u n c t i o n ( N ) { t r y { r e t u r n ( N & & t y p e o f   N ! = = " s t r i n g " & & N . l e n g t h & & ! N . t a g N a m e & & ! N . a l e r t & & t y p e o f   N [ 0 ] ! = = " u n d e f i n e d " ) ; } c a t c h ( M ) { r e t u r n   f a l s e ; } } , e l C a c h e : { } , g e t E l : f u n c t i o n ( M ) { r e t u r n ( t y p e o f   M = = = " s t r i n g " ) ? d o c u m e n t . g e t E l e m e n t B y I d ( M ) : M ; } , c l e a r C a c h e : f u n c t i o n ( ) { } , D O M R e a d y E v e n t : n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " D O M R e a d y " , t h i s ) , _ l o a d : f u n c t i o n ( N ) { i f ( ! H ) { H = t r u e ; v a r   M = Y A H O O . u t i l . E v e n t ; M . _ r e a d y ( ) ; M . _ t r y P r e l o a d A t t a c h ( ) ; } } , _ r e a d y : f u n c t i o n ( N ) { v a r   M = Y A H O O . u t i l . E v e n t ; i f ( ! M . D O M R e a d y ) { M . D O M R e a d y = t r u e ; M . D O M R e a d y E v e n t . f i r e ( ) ; M . _ s i m p l e R e m o v e ( d o c u m e n t , " D O M C o n t e n t L o a d e d " , M . _ r e a d y ) ; } } , _ t r y P r e l o a d A t t a c h : f u n c t i o n ( ) { i f ( F . l e n g t h = = = 0 ) { C = 0 ; i f ( t h i s . _ i n t e r v a l ) { 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 ; } r e t u r n ; } i f ( t h i s . l o c k e d ) { r e t u r n ; } i f ( t h i s . i s I E ) { i f ( ! t h i s . D O M R e a d y ) { t h i s . s t a r t I n t e r v a l ( ) ; r e t u r n ; } } t h i s . l o c k e d = t r u e ; v a r   S = ! H ; i f ( ! S ) { S = ( C > 0 & & F . l e n g t h > 0 ) ; } v a r   R = [ ] ; v a r   T = f u n c t i o n ( V , W ) { v a r   U = V ; i f ( W . o v e r r i d e C o n t e x t ) { i f ( W . o v e r r i d e C o n t e x t = = = t r u e ) { U = W . o b j ; } e l s e { U = W . o v e r r i d e C o n t e x t ; } } W . f n . c a l l ( U , W . o b j ) ; } ; v a r   N , M , Q , P , O = [ ] ; f o r ( N = 0 , M = F . l e n g t h ; N < M ; N = N + 1 ) { Q = F [ N ] ; i f ( Q ) { P = t h i s . g e t E l ( Q . i d ) ; i f ( P ) { i f ( Q . c h e c k R e a d y ) { i f ( H | | P . n e x t S i b l i n g | | ! S ) { O . p u s h ( Q ) ; F [ N ] = n u l l ; } } e l s e { T ( P , Q ) ; F [ N ] = n u l l ; } } e l s e { R . p u s h ( Q ) ; } } } f o r ( N = 0 , M = O . l e n g t h ; N < M ; N = N + 1 ) { Q = O [ N ] ; T ( t h i s . g e t E l ( Q . i d ) , Q ) ; } C - - ; i f ( S ) { f o r ( N = F . l e n g t h - 1 ; N > - 1 ; N - - ) { Q = F [ N ] ; i f ( ! Q | | ! Q . i d ) { F . s p l i c e ( N , 1 ) ; } } t h i s . s t a r t I n t e r v a l ( ) ; } e l s e { i f ( t h i s . _ i n t e r v a l ) { 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 ; } } t h i s . l o c k e d = f a l s e ; } , p u r g e E l e m e n t : f u n c t i o n ( Q , R , T ) { v a r   O = ( Y A H O O . l a n g . i s S t r i n g ( Q ) ) ? t h i s . g e t E l ( Q ) : Q ; v a r   S = t h i s . g e t L i s t e n e r s ( O , T ) , P , M ; i f ( S ) { f o r ( P = S . l e n g t h - 1 ; P > - 1 ; P - - ) { v a r   N = S [ P ] ; t h i s . r e m o v e L i s t e n e r ( O , N . t y p e , N . f n ) ; } } i f ( R & & O & & O . c h i l d N o d e s ) { f o r ( P = 0 , M = O . c h i l d N o d e s . l e n g t h ; P < M ; + + P ) { t h i s . p u r g e E l e m e n t ( O . c h i l d N o d e s [ P ] , R , T ) ; } } } , g e t L i s t e n e r s : f u n c t i o n ( O , M ) { v a r   R = [ ] , N ; i f ( ! M ) { N = [ I , J ] ; } e l s e { i f ( M = = = " u n l o a d " ) { N = [ J ] ; } e l s e { N = [ I ] ; } } v a r   T = ( Y A H O O . l a n g . i s S t r i n g ( O ) ) ? t h i s . g e t E l ( O ) : O ; f o r ( v a r   Q = 0 ; Q < N . l e n g t h ; Q = Q + 1 ) { v a r   V = N [ Q ] ; i f ( V ) { f o r ( v a r   S = 0 , U = V . l e n g t h ; S < U ; + + S ) { v a r   P = V [ S ] ; i f ( P & & P [ t h i s . E L ] = = = T & & ( ! M | | M = = = P [ t h i s . T Y P E ] ) ) { R . p u s h ( { t y p e : P [ t h i s . T Y P E ] , f n : P [ t h i s . F N ] , o b j : P [ t h i s . O B J ] , a d j u s t : P [ t h i s . O V E R R I D E ] , s c o p e : P [ t h i s . A D J _ S C O P E ] , i n d e x : S } ) ; } } } } r e t u r n ( R . l e n g t h ) ? R : n u l l ; } , _ u n l o a d : f u n c t i o n ( T ) { v a r   N = Y A H O O . u t i l . E v e n t , Q , P , O , S , R , U = J . s l i c e ( ) , M ; f o r ( Q = 0 , S = J . l e n g t h ; Q < S ; + + Q ) { O = U [ Q ] ; i f ( O ) { M = w i n d o w ; i f ( O [ N . A D J _ S C O P E ] ) { i f ( O [ N . A D J _ S C O P E ] = = = t r u e ) { M = O [ N . U N L O A D _ O B J ] ; } e l s e { M = O [ N . A D J _ S C O P E ] ; } } O [ N . F N ] . c a l l ( M , N . g e t E v e n t ( T , O [ N . E L ] ) , O [ N . U N L O A D _ O B J ] ) ; U [ Q ] = n u l l ; } } O = n u l l ; M = n u l l ; J = n u l l ; i f ( I ) { f o r ( P = I . l e n g t h - 1 ; P > - 1 ; P - - ) { O = I [ P ] ; i f ( O ) { N . r e m o v e L i s t e n e r ( O [ N . E L ] , O [ N . T Y P E ] , O [ N . F N ] , P ) ; } } O = n u l l ; } G = n u l l ; N . _ s i m p l e R e m o v e ( w i n d o w , " u n l o a d " , N . _ u n l o a d ) ; } , _ g e t S c r o l l L e f t : f u n c t i o n ( ) { r e t u r n   t h i s . _ g e t S c r o l l ( ) [ 1 ] ; } , _ g e t S c r o l l T o p : f u n c t i o n ( ) { r e t u r n   t h i s . _ g e t S c r o l l ( ) [ 0 ] ; } , _ g e t S c r o l l : f u n c t i o n ( ) { v a r   M = d o c u m e n t . d o c u m e n t E l e m e n t , N = d o c u m e n t . b o d y ; i f ( M & & ( M . s c r o l l T o p | | M . s c r o l l L e f t ) ) { r e t u r n [ M . s c r o l l T o p , M . s c r o l l L e f t ] ; } e l s e { i f ( N ) { r e t u r n [ N . s c r o l l T o p , N . s c r o l l L e f t ] ; } e l s e { r e t u r n [ 0 , 0 ] ; } } } , r e g C E : f u n c t i o n ( ) { } , _ s i m p l e A d d : f u n c t i o n ( ) { i f ( w i n d o w . a d d E v e n t L i s t e n e r ) { r e t u r n   f u n c t i o n ( O , P , N , M ) { O . a d d E v e n t L i s t e n e r ( P , N , ( M ) ) ; } ; } e l s e { i f ( w i n d o w . a t t a c h E v e n t ) { r e t u r n   f u n c t i o n ( O , P , N , M ) { O . a t t a c h E v e n t ( " o n " + P , N ) ; } ; } e l s e { r e t u r n   f u n c t i o n ( ) { } ; } } } ( ) , _ s i m p l e R e m o v e : f u n c t i o n ( ) { i f ( w i n d o w . r e m o v e E v e n t L i s t e n e r ) { r e t u r n   f u n c t i o n ( O , P , N , M ) { O . r e m o v e E v e n t L i s t e n e r ( P , N , ( M ) ) ; } ; } e l s e { i f ( w i n d o w . d e t a c h E v e n t ) { r e t u r n   f u n c t i o n ( N , O , M ) { N . d e t a c h E v e n t ( " o n " + O , M ) ; } ; } e l s e { r e t u r n   f u n c t i o n ( ) { } ; } } } ( ) } ; } ( ) ; ( f u n c t i o n ( ) { v a r   E U = Y A H O O . u t i l . E v e n t ; E U . o n = E U . a d d L i s t e n e r ; E U . o n F o c u s = E U . a d d F o c u s L i s t e n e r ; E U . o n B l u r = E U . a d d B l u r L i s t e n e r ;  
 / *   D O M R e a d y :   b a s e d   o n   w o r k   b y :   D e a n   E d w a r d s / J o h n   R e s i g / M a t t h i a s   M i l l e r   * /  
 i f ( E U . i s I E ) { Y A H O O . u t i l . E v e n t . o n D O M R e a d y ( Y A H O O . u t i l . E v e n t . _ t r y P r e l o a d A t t a c h , Y A H O O . u t i l . E v e n t , t r u e ) ; v a r   n = d o c u m e n t . c r e a t e E l e m e n t ( " p " ) ; E U . _ d r i = s e t I n t e r v a l ( f u n c t i o n ( ) { t r y { n . d o S c r o l l ( " l e f t " ) ; c l e a r I n t e r v a l ( E U . _ d r i ) ; E U . _ d r i = n u l l ; E U . _ r e a d y ( ) ; n = n u l l ; } c a t c h ( e x ) { } } , E U . P O L L _ I N T E R V A L ) ; } e l s e { i f ( E U . w e b k i t & & E U . w e b k i t < 5 2 5 ) { E U . _ d r i = s e t I n t e r v a l ( f u n c t i o n ( ) { v a r   r s = d o c u m e n t . r e a d y S t a t e ; i f ( " l o a d e d " = = r s | | " c o m p l e t e " = = r s ) { c l e a r I n t e r v a l ( E U . _ d r i ) ; E U . _ d r i = n u l l ; E U . _ r e a d y ( ) ; } } , E U . P O L L _ I N T E R V A L ) ; } e l s e { E U . _ s i m p l e A d d ( d o c u m e n t , " D O M C o n t e n t L o a d e d " , E U . _ r e a d y ) ; } } E U . _ s i m p l e A d d ( w i n d o w , " l o a d " , E U . _ l o a d ) ; E U . _ s i m p l e A d d ( w i n d o w , " u n l o a d " , E U . _ u n l o a d ) ; E U . _ t r y P r e l o a d A t t a c h ( ) ; } ) ( ) ; } Y A H O O . u t i l . E v e n t P r o v i d e r = f u n c t i o n ( ) { } ; Y A H O O . u t i l . E v e n t P r o v i d e r . p r o t o t y p e = { _ _ y u i _ e v e n t s : n u l l , _ _ y u i _ s u b s c r i b e r s : n u l l , s u b s c r i b e : f u n c t i o n ( A , C , F , E ) { t h i s . _ _ y u i _ e v e n t s = t h i s . _ _ y u i _ e v e n t s | | { } ; v a r   D = t h i s . _ _ y u i _ e v e n t s [ A ] ; i f ( D ) { D . s u b s c r i b e ( C , F , E ) ;  
 } e l s e { t h i s . _ _ y u i _ s u b s c r i b e r s = t h i s . _ _ y u i _ s u b s c r i b e r s | | { } ; v a r   B = t h i s . _ _ y u i _ s u b s c r i b e r s ; i f ( ! B [ A ] ) { B [ A ] = [ ] ; } B [ A ] . p u s h ( { f n : C , o b j : F , o v e r r i d e C o n t e x t : E } ) ; } } , u n s u b s c r i b e : f u n c t i o n ( C , E , G ) { t h i s . _ _ y u i _ e v e n t s = t h i s . _ _ y u i _ e v e n t s | | { } ; v a r   A = t h i s . _ _ y u i _ e v e n t s ; i f ( C ) { v a r   F = A [ C ] ; i f ( F ) { r e t u r n   F . u n s u b s c r i b e ( E , G ) ; } } e l s e { v a r   B = t r u e ; f o r ( v a r   D   i n   A ) { i f ( Y A H O O . l a n g . h a s O w n P r o p e r t y ( A , D ) ) { B = B & & A [ D ] . u n s u b s c r i b e ( E , G ) ; } } r e t u r n   B ; } r e t u r n   f a l s e ; } , u n s u b s c r i b e A l l : f u n c t i o n ( A ) { r e t u r n   t h i s . u n s u b s c r i b e ( A ) ; } , c r e a t e E v e n t : f u n c t i o n ( G , D ) { t h i s . _ _ y u i _ e v e n t s = t h i s . _ _ y u i _ e v e n t s | | { } ; v a r   A = D | | { } ; v a r   I = t h i s . _ _ y u i _ e v e n t s ; i f ( I [ G ] ) { } e l s e { v a r   H = A . s c o p e | | t h i s ; v a r   E = ( A . s i l e n t ) ; v a r   B = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( G , H , E , Y A H O O . u t i l . C u s t o m E v e n t . F L A T ) ; I [ G ] = B ; i f ( A . o n S u b s c r i b e C a l l b a c k ) { B . s u b s c r i b e E v e n t . s u b s c r i b e ( A . o n S u b s c r i b e C a l l b a c k ) ; } t h i s . _ _ y u i _ s u b s c r i b e r s = t h i s . _ _ y u i _ s u b s c r i b e r s | | { } ; v a r   F = t h i s . _ _ y u i _ s u b s c r i b e r s [ G ] ; i f ( F ) { f o r ( v a r   C = 0 ; C < F . l e n g t h ; + + C ) { B . s u b s c r i b e ( F [ C ] . f n , F [ C ] . o b j , F [ C ] . o v e r r i d e C o n t e x t ) ; } } } r e t u r n   I [ G ] ; } , f i r e E v e n t : f u n c t i o n ( E , D , A , C ) { t h i s . _ _ y u i _ e v e n t s = t h i s . _ _ y u i _ e v e n t s | | { } ; v a r   G = t h i s . _ _ y u i _ e v e n t s [ E ] ; i f ( ! G ) { r e t u r n   n u l l ; } v a r   B = [ ] ; f o r ( v a r   F = 1 ; F < a r g u m e n t s . l e n g t h ; + + F ) { B . p u s h ( a r g u m e n t s [ F ] ) ; } r e t u r n   G . f i r e . a p p l y ( G , B ) ; } , h a s E v e n t : f u n c t i o n ( A ) { i f ( t h i s . _ _ y u i _ e v e n t s ) { i f ( t h i s . _ _ y u i _ e v e n t s [ A ] ) { r e t u r n   t r u e ; } } r e t u r n   f a l s e ; } } ; ( f u n c t i o n ( ) { v a r   A = Y A H O O . u t i l . E v e n t , C = Y A H O O . l a n g ; Y A H O O . u t i l . K e y L i s t e n e r = f u n c t i o n ( D , I , E , F ) { i f ( ! D ) { } e l s e { i f ( ! I ) { } e l s e { i f ( ! E ) { } } } i f ( ! F ) { F = Y A H O O . u t i l . K e y L i s t e n e r . K E Y D O W N ; } v a r   G = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " k e y P r e s s e d " ) ; t h i s . e n a b l e d E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " e n a b l e d " ) ; t h i s . d i s a b l e d E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " d i s a b l e d " ) ; i f ( C . i s S t r i n g ( D ) ) { D = d o c u m e n t . g e t E l e m e n t B y I d ( D ) ; } i f ( C . i s F u n c t i o n ( E ) ) { G . s u b s c r i b e ( E ) ; } e l s e { G . s u b s c r i b e ( E . f n , E . s c o p e , E . c o r r e c t S c o p e ) ; } f u n c t i o n   H ( O , N ) { i f ( ! I . s h i f t ) { I . s h i f t = f a l s e ; } i f ( ! I . a l t ) { I . a l t = f a l s e ; } i f ( ! I . c t r l ) { I . c t r l = f a l s e ; } i f ( O . s h i f t K e y = = I . s h i f t & & O . a l t K e y = = I . a l t & & O . c t r l K e y = = I . c t r l ) { v a r   J , M = I . k e y s , L ; i f ( Y A H O O . l a n g . i s A r r a y ( M ) ) { f o r ( v a r   K = 0 ; K < M . l e n g t h ; K + + ) { J = M [ K ] ; L = A . g e t C h a r C o d e ( O ) ; i f ( J = = L ) { G . f i r e ( L , O ) ; b r e a k ; } } } e l s e { L = A . g e t C h a r C o d e ( O ) ; i f ( M = = L ) { G . f i r e ( L , O ) ; } } } } t h i s . e n a b l e = f u n c t i o n ( ) { i f ( ! t h i s . e n a b l e d ) { A . o n ( D , F , H ) ; t h i s . e n a b l e d E v e n t . f i r e ( I ) ; } t h i s . e n a b l e d = t r u e ; } ; t h i s . d i s a b l e = f u n c t i o n ( ) { i f ( t h i s . e n a b l e d ) { A . r e m o v e L i s t e n e r ( D , F , H ) ; t h i s . d i s a b l e d E v e n t . f i r e ( I ) ; } t h i s . e n a b l e d = f a l s e ; } ; t h i s . t o S t r i n g = f u n c t i o n ( ) { r e t u r n " K e y L i s t e n e r   [ " + I . k e y s + " ]   " + D . t a g N a m e + ( D . i d ? " [ " + D . i d + " ] " : " " ) ; } ; } ; v a r   B = Y A H O O . u t i l . K e y L i s t e n e r ; B . K E Y D O W N = " k e y d o w n " ; B . K E Y U P = " k e y u p " ; B . K E Y = { A L T : 1 8 , B A C K _ S P A C E : 8 , C A P S _ L O C K : 2 0 , C O N T R O L : 1 7 , D E L E T E : 4 6 , D O W N : 4 0 , E N D : 3 5 , E N T E R : 1 3 , E S C A P E : 2 7 , H O M E : 3 6 , L E F T : 3 7 , M E T A : 2 2 4 , N U M _ L O C K : 1 4 4 , P A G E _ D O W N : 3 4 , P A G E _ U P : 3 3 , P A U S E : 1 9 , P R I N T S C R E E N : 4 4 , R I G H T : 3 9 , S C R O L L _ L O C K : 1 4 5 , S H I F T : 1 6 , S P A C E : 3 2 , T A B : 9 , U P : 3 8 } ; } ) ( ) ; Y A H O O . r e g i s t e r ( " e v e n t " , Y A H O O . u t i l . E v e n t , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ; Y A H O O . r e g i s t e r ( " y a h o o - d o m - e v e n t " ,   Y A H O O ,   { v e r s i o n :   " 2 . 7 . 0 " ,   b u i l d :   " 1 7 9 9 " } ) ;  
  
  
 / *  
 C o p y r i g h t   ( c )   2 0 0 9 ,   Y a h o o !   I n c .   A l l   r i g h t s   r e s e r v e d .  
 C o d e   l i c e n s e d   u n d e r   t h e   B S D   L i c e n s e :  
 h t t p : / / d e v e l o p e r . y a h o o . n e t / y u i / l i c e n s e . t x t  
 v e r s i o n :   2 . 7 . 0  
 d r a g d r o p - m i n . j s  
 * /  
 i f ( ! Y A H O O . u t i l . D r a g D r o p M g r ) { Y A H O O . u t i l . D r a g D r o p M g r = f u n c t i o n ( ) { v a r   A = Y A H O O . u t i l . E v e n t , B = Y A H O O . u t i l . D o m ; r e t u r n { u s e S h i m : f a l s e , _ s h i m A c t i v e : f a l s e , _ s h i m S t a t e : f a l s e , _ d e b u g S h i m : f a l s e , _ c r e a t e S h i m : f u n c t i o n ( ) { v a r   C = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; C . i d = " y u i - d d m - s h i m " ; i f ( d o c u m e n t . b o d y . f i r s t C h i l d ) { d o c u m e n t . b o d y . i n s e r t B e f o r e ( C , d o c u m e n t . b o d y . f i r s t C h i l d ) ; } e l s e { d o c u m e n t . b o d y . a p p e n d C h i l d ( C ) ; } C . s t y l e . d i s p l a y = " n o n e " ; C . s t y l e . b a c k g r o u n d C o l o r = " r e d " ; C . s t y l e . p o s i t i o n = " a b s o l u t e " ; C . s t y l e . z I n d e x = " 9 9 9 9 9 " ; B . s e t S t y l e ( C , " o p a c i t y " , " 0 " ) ; t h i s . _ s h i m = C ; A . o n ( C , " m o u s e u p " , t h i s . h a n d l e M o u s e U p , t h i s , t r u e ) ; A . o n ( C , " m o u s e m o v e " , t h i s . h a n d l e M o u s e M o v e , t h i s , t r u e ) ; A . o n ( w i n d o w , " s c r o l l " , t h i s . _ s i z e S h i m , t h i s , t r u e ) ; } , _ s i z e S h i m : f u n c t i o n ( ) { i f ( t h i s . _ s h i m A c t i v e ) { v a r   C = t h i s . _ s h i m ; C . s t y l e . h e i g h t = B . g e t D o c u m e n t H e i g h t ( ) + " p x " ; C . s t y l e . w i d t h = B . g e t D o c u m e n t W i d t h ( ) + " p x " ; C . s t y l e . t o p = " 0 " ; C . s t y l e . l e f t = " 0 " ; } } , _ a c t i v a t e S h i m : f u n c t i o n ( ) { i f ( t h i s . u s e S h i m ) { i f ( ! t h i s . _ s h i m ) { t h i s . _ c r e a t e S h i m ( ) ; } t h i s . _ s h i m A c t i v e = t r u e ; v a r   C = t h i s . _ s h i m , D = " 0 " ; i f ( t h i s . _ d e b u g S h i m ) { D = " . 5 " ; } B . s e t S t y l e ( C , " o p a c i t y " , D ) ; t h i s . _ s i z e S h i m ( ) ; C . s t y l e . d i s p l a y = " b l o c k " ; } } , _ d e a c t i v a t e S h i m : f u n c t i o n ( ) { t h i s . _ s h i m . s t y l e . d i s p l a y = " n o n e " ; t h i s . _ s h i m A c t i v e = f a l s e ; } , _ s h i m : n u l l , i d s : { } , h a n d l e I d s : { } , d r a g C u r r e n t : n u l l , d r a g O v e r s : { } , d e l t a X : 0 , d e l t a Y : 0 , p r e v e n t D e f a u l t : t r u e , s t o p P r o p a g a t i o n : t r u e , i n i t i a l i z e d : f a l s e , l o c k e d : f a l s e , i n t e r a c t i o n I n f o : n u l l , i n i t : f u n c t i o n ( ) { t h i s . i n i t i a l i z e d = t r u e ; } , P O I N T : 0 , I N T E R S E C T : 1 , S T R I C T _ I N T E R S E C T : 2 , m o d e : 0 , _ e x e c O n A l l : f u n c t i o n ( E , D ) { f o r ( v a r   F   i n   t h i s . i d s ) { f o r ( v a r   C   i n   t h i s . i d s [ F ] ) { v a r   G = t h i s . i d s [ F ] [ C ] ; i f ( ! t h i s . i s T y p e O f D D ( G ) ) { c o n t i n u e ; } G [ E ] . a p p l y ( G , D ) ; } } } , _ o n L o a d : f u n c t i o n ( ) { t h i s . i n i t ( ) ; A . o n ( d o c u m e n t , " m o u s e u p " , t h i s . h a n d l e M o u s e U p , t h i s , t r u e ) ; A . o n ( d o c u m e n t , " m o u s e m o v e " , t h i s . h a n d l e M o u s e M o v e , t h i s , t r u e ) ; A . o n ( w i n d o w , " u n l o a d " , t h i s . _ o n U n l o a d , t h i s , t r u e ) ; A . o n ( w i n d o w , " r e s i z e " , t h i s . _ o n R e s i z e , t h i s , t r u e ) ; } , _ o n R e s i z e : f u n c t i o n ( C ) { t h i s . _ e x e c O n A l l ( " r e s e t C o n s t r a i n t s " , [ ] ) ; } , l o c k : f u n c t i o n ( ) { t h i s . l o c k e d = t r u e ; } , u n l o c k : f u n c t i o n ( ) { t h i s . l o c k e d = f a l s e ; } , i s L o c k e d : f u n c t i o n ( ) { r e t u r n   t h i s . l o c k e d ; } , l o c a t i o n C a c h e : { } , u s e C a c h e : t r u e , c l i c k P i x e l T h r e s h : 3 , c l i c k T i m e T h r e s h : 1 0 0 0 , d r a g T h r e s h M e t : f a l s e , c l i c k T i m e o u t : n u l l , s t a r t X : 0 , s t a r t Y : 0 , f r o m T i m e o u t : f a l s e , r e g D r a g D r o p : f u n c t i o n ( D , C ) { i f ( ! t h i s . i n i t i a l i z e d ) { t h i s . i n i t ( ) ; } i f ( ! t h i s . i d s [ C ] ) { t h i s . i d s [ C ] = { } ; } t h i s . i d s [ C ] [ D . i d ] = D ; } , r e m o v e D D F r o m G r o u p : f u n c t i o n ( E , C ) { i f ( ! t h i s . i d s [ C ] ) { t h i s . i d s [ C ] = { } ; } v a r   D = t h i s . i d s [ C ] ; i f ( D & & D [ E . i d ] ) { d e l e t e   D [ E . i d ] ; } } , _ r e m o v e : f u n c t i o n ( E ) { f o r ( v a r   D   i n   E . g r o u p s ) { i f ( D ) { v a r   C = t h i s . i d s [ D ] ; i f ( C & & C [ E . i d ] ) { d e l e t e   C [ E . i d ] ; } } } d e l e t e   t h i s . h a n d l e I d s [ E . i d ] ; } , r e g H a n d l e : f u n c t i o n ( D , C ) { i f ( ! t h i s . h a n d l e I d s [ D ] ) { t h i s . h a n d l e I d s [ D ] = { } ; } t h i s . h a n d l e I d s [ D ] [ C ] = C ; } , i s D r a g D r o p : f u n c t i o n ( C ) { r e t u r n ( t h i s . g e t D D B y I d ( C ) ) ? t r u e : f a l s e ; } , g e t R e l a t e d : f u n c t i o n ( H , D ) { v a r   G = [ ] ; f o r ( v a r   F   i n   H . g r o u p s ) { f o r ( v a r   E   i n   t h i s . i d s [ F ] ) { v a r   C = t h i s . i d s [ F ] [ E ] ; i f ( ! t h i s . i s T y p e O f D D ( C ) ) { c o n t i n u e ; } i f ( ! D | | C . i s T a r g e t ) { G [ G . l e n g t h ] = C ; } } } r e t u r n   G ; } , i s L e g a l T a r g e t : f u n c t i o n ( G , F ) { v a r   D = t h i s . g e t R e l a t e d ( G , t r u e ) ; f o r ( v a r   E = 0 , C = D . l e n g t h ; E < C ; + + E ) { i f ( D [ E ] . i d = = F . i d ) { r e t u r n   t r u e ; } } r e t u r n   f a l s e ; } , i s T y p e O f D D : f u n c t i o n ( C ) { r e t u r n ( C & & C . _ _ y g D r a g D r o p ) ; } , i s H a n d l e : f u n c t i o n ( D , C ) { r e t u r n ( t h i s . h a n d l e I d s [ D ] & & t h i s . h a n d l e I d s [ D ] [ C ] ) ; } , g e t D D B y I d : f u n c t i o n ( D ) { f o r ( v a r   C   i n   t h i s . i d s ) { i f ( t h i s . i d s [ C ] [ D ] ) { r e t u r n   t h i s . i d s [ C ] [ D ] ; } } r e t u r n   n u l l ; } , h a n d l e M o u s e D o w n : f u n c t i o n ( E , D ) { t h i s . c u r r e n t T a r g e t = Y A H O O . u t i l . E v e n t . g e t T a r g e t ( E ) ; t h i s . d r a g C u r r e n t = D ; v a r   C = D . g e t E l ( ) ; t h i s . s t a r t X = Y A H O O . u t i l . E v e n t . g e t P a g e X ( E ) ; t h i s . s t a r t Y = Y A H O O . u t i l . E v e n t . g e t P a g e Y ( E ) ; t h i s . d e l t a X = t h i s . s t a r t X - C . o f f s e t L e f t ; t h i s . d e l t a Y = t h i s . s t a r t Y - C . o f f s e t T o p ; t h i s . d r a g T h r e s h M e t = f a l s e ; t h i s . c l i c k T i m e o u t = s e t T i m e o u t ( f u n c t i o n ( ) { v a r   F = Y A H O O . u t i l . D D M ; F . s t a r t D r a g ( F . s t a r t X , F . s t a r t Y ) ; F . f r o m T i m e o u t = t r u e ; } , t h i s . c l i c k T i m e T h r e s h ) ; } , s t a r t D r a g : f u n c t i o n ( C , E ) { i f ( t h i s . d r a g C u r r e n t & & t h i s . d r a g C u r r e n t . u s e S h i m ) { t h i s . _ s h i m S t a t e = t h i s . u s e S h i m ; t h i s . u s e S h i m = t r u e ; } t h i s . _ a c t i v a t e S h i m ( ) ; c l e a r T i m e o u t ( t h i s . c l i c k T i m e o u t ) ; v a r   D = t h i s . d r a g C u r r e n t ; i f ( D & & D . e v e n t s . b 4 S t a r t D r a g ) { D . b 4 S t a r t D r a g ( C , E ) ; D . f i r e E v e n t ( " b 4 S t a r t D r a g E v e n t " , { x : C , y : E } ) ; } i f ( D & & D . e v e n t s . s t a r t D r a g ) { D . s t a r t D r a g ( C , E ) ; D . f i r e E v e n t ( " s t a r t D r a g E v e n t " , { x : C , y : E } ) ; } t h i s . d r a g T h r e s h M e t = t r u e ; } , h a n d l e M o u s e U p : f u n c t i o n ( C ) { i f ( t h i s . d r a g C u r r e n t ) { c l e a r T i m e o u t ( t h i s . c l i c k T i m e o u t ) ; i f ( t h i s . d r a g T h r e s h M e t ) { i f ( t h i s . f r o m T i m e o u t ) { t h i s . f r o m T i m e o u t = f a l s e ; t h i s . h a n d l e M o u s e M o v e ( C ) ; } t h i s . f r o m T i m e o u t = f a l s e ; t h i s . f i r e E v e n t s ( C , t r u e ) ; } e l s e { } t h i s . s t o p D r a g ( C ) ; t h i s . s t o p E v e n t ( C ) ; } } , s t o p E v e n t : f u n c t i o n ( C ) { i f ( t h i s . s t o p P r o p a g a t i o n ) { Y A H O O . u t i l . E v e n t . s t o p P r o p a g a t i o n ( C ) ; } i f ( t h i s . p r e v e n t D e f a u l t ) { Y A H O O . u t i l . E v e n t . p r e v e n t D e f a u l t ( C ) ; } } , s t o p D r a g : f u n c t i o n ( E , D ) { v a r   C = t h i s . d r a g C u r r e n t ; i f ( C & & ! D ) { i f ( t h i s . d r a g T h r e s h M e t ) { i f ( C . e v e n t s . b 4 E n d D r a g ) { C . b 4 E n d D r a g ( E ) ; C . f i r e E v e n t ( " b 4 E n d D r a g E v e n t " , { e : E } ) ; } i f ( C . e v e n t s . e n d D r a g ) { C . e n d D r a g ( E ) ; C . f i r e E v e n t ( " e n d D r a g E v e n t " , { e : E } ) ; } } i f ( C . e v e n t s . m o u s e U p ) { C . o n M o u s e U p ( E ) ; C . f i r e E v e n t ( " m o u s e U p E v e n t " , { e : E } ) ; } } i f ( t h i s . _ s h i m A c t i v e ) { t h i s . _ d e a c t i v a t e S h i m ( ) ; i f ( t h i s . d r a g C u r r e n t & & t h i s . d r a g C u r r e n t . u s e S h i m ) { t h i s . u s e S h i m = t h i s . _ s h i m S t a t e ; t h i s . _ s h i m S t a t e = f a l s e ; } } t h i s . d r a g C u r r e n t = n u l l ; t h i s . d r a g O v e r s = { } ; } , h a n d l e M o u s e M o v e : f u n c t i o n ( F ) { v a r   C = t h i s . d r a g C u r r e n t ; i f ( C ) { i f ( Y A H O O . u t i l . E v e n t . i s I E & & ! F . b u t t o n ) { t h i s . s t o p E v e n t ( F ) ; r e t u r n   t h i s . h a n d l e M o u s e U p ( F ) ; } e l s e { i f ( F . c l i e n t X < 0 | | F . c l i e n t Y < 0 ) { } } i f ( ! t h i s . d r a g T h r e s h M e t ) { v a r   E = M a t h . a b s ( t h i s . s t a r t X - Y A H O O . u t i l . E v e n t . g e t P a g e X ( F ) ) ; v a r   D = M a t h . a b s ( t h i s . s t a r t Y - Y A H O O . u t i l . E v e n t . g e t P a g e Y ( F ) ) ; i f ( E > t h i s . c l i c k P i x e l T h r e s h | | D > t h i s . c l i c k P i x e l T h r e s h ) { t h i s . s t a r t D r a g ( t h i s . s t a r t X , t h i s . s t a r t Y ) ; } } i f ( t h i s . d r a g T h r e s h M e t ) { i f ( C & & C . e v e n t s . b 4 D r a g ) { C . b 4 D r a g ( F ) ; C . f i r e E v e n t ( " b 4 D r a g E v e n t " , { e : F } ) ; } i f ( C & & C . e v e n t s . d r a g ) { C . o n D r a g ( F ) ; C . f i r e E v e n t ( " d r a g E v e n t " , { e : F } ) ; } i f ( C ) { t h i s . f i r e E v e n t s ( F , f a l s e ) ; } } t h i s . s t o p E v e n t ( F ) ; } } , f i r e E v e n t s : f u n c t i o n ( V , L ) { v a r   a = t h i s . d r a g C u r r e n t ; i f ( ! a | | a . i s L o c k e d ( ) | | a . d r a g O n l y ) { r e t u r n ; } v a r   N = Y A H O O . u t i l . E v e n t . g e t P a g e X ( V ) , M = Y A H O O . u t i l . E v e n t . g e t P a g e Y ( V ) , P = n e w   Y A H O O . u t i l . P o i n t ( N , M ) , K = a . g e t T a r g e t C o o r d ( P . x , P . y ) , F = a . g e t D r a g E l ( ) , E = [ " o u t " , " o v e r " , " d r o p " , " e n t e r " ] , U = n e w   Y A H O O . u t i l . R e g i o n ( K . y , K . x + F . o f f s e t W i d t h , K . y + F . o f f s e t H e i g h t , K . x ) , I = [ ] , D = { } , Q = [ ] , c = { o u t E v t s : [ ] , o v e r E v t s : [ ] , d r o p E v t s : [ ] , e n t e r E v t s : [ ] } ; f o r ( v a r   S   i n   t h i s . d r a g O v e r s ) { v a r   d = t h i s . d r a g O v e r s [ S ] ; i f ( ! t h i s . i s T y p e O f D D ( d ) ) { c o n t i n u e ;  
 } i f ( ! t h i s . i s O v e r T a r g e t ( P , d , t h i s . m o d e , U ) ) { c . o u t E v t s . p u s h ( d ) ; } I [ S ] = t r u e ; d e l e t e   t h i s . d r a g O v e r s [ S ] ; } f o r ( v a r   R   i n   a . g r o u p s ) { i f ( " s t r i n g " ! = t y p e o f   R ) { c o n t i n u e ; } f o r ( S   i n   t h i s . i d s [ R ] ) { v a r   G = t h i s . i d s [ R ] [ S ] ; i f ( ! t h i s . i s T y p e O f D D ( G ) ) { c o n t i n u e ; } i f ( G . i s T a r g e t & & ! G . i s L o c k e d ( ) & & G ! = a ) { i f ( t h i s . i s O v e r T a r g e t ( P , G , t h i s . m o d e , U ) ) { D [ R ] = t r u e ; i f ( L ) { c . d r o p E v t s . p u s h ( G ) ; } e l s e { i f ( ! I [ G . i d ] ) { c . e n t e r E v t s . p u s h ( G ) ; } e l s e { c . o v e r E v t s . p u s h ( G ) ; } t h i s . d r a g O v e r s [ G . i d ] = G ; } } } } } t h i s . i n t e r a c t i o n I n f o = { o u t : c . o u t E v t s , e n t e r : c . e n t e r E v t s , o v e r : c . o v e r E v t s , d r o p : c . d r o p E v t s , p o i n t : P , d r a g g e d R e g i o n : U , s o u r c e R e g i o n : t h i s . l o c a t i o n C a c h e [ a . i d ] , v a l i d D r o p : L } ; f o r ( v a r   C   i n   D ) { Q . p u s h ( C ) ; } i f ( L & & ! c . d r o p E v t s . l e n g t h ) { t h i s . i n t e r a c t i o n I n f o . v a l i d D r o p = f a l s e ; i f ( a . e v e n t s . i n v a l i d D r o p ) { a . o n I n v a l i d D r o p ( V ) ; a . f i r e E v e n t ( " i n v a l i d D r o p E v e n t " , { e : V } ) ; } } f o r ( S = 0 ; S < E . l e n g t h ; S + + ) { v a r   Y = n u l l ; i f ( c [ E [ S ] + " E v t s " ] ) { Y = c [ E [ S ] + " E v t s " ] ; } i f ( Y & & Y . l e n g t h ) { v a r   H = E [ S ] . c h a r A t ( 0 ) . t o U p p e r C a s e ( ) + E [ S ] . s u b s t r ( 1 ) , X = " o n D r a g " + H , J = " b 4 D r a g " + H , O = " d r a g " + H + " E v e n t " , W = " d r a g " + H ; i f ( t h i s . m o d e ) { i f ( a . e v e n t s [ J ] ) { a [ J ] ( V , Y , Q ) ; a . f i r e E v e n t ( J + " E v e n t " , { e v e n t : V , i n f o : Y , g r o u p : Q } ) ; } i f ( a . e v e n t s [ W ] ) { a [ X ] ( V , Y , Q ) ; a . f i r e E v e n t ( O , { e v e n t : V , i n f o : Y , g r o u p : Q } ) ; } } e l s e { f o r ( v a r   Z = 0 , T = Y . l e n g t h ; Z < T ; + + Z ) { i f ( a . e v e n t s [ J ] ) { a [ J ] ( V , Y [ Z ] . i d , Q [ 0 ] ) ; a . f i r e E v e n t ( J + " E v e n t " , { e v e n t : V , i n f o : Y [ Z ] . i d , g r o u p : Q [ 0 ] } ) ; } i f ( a . e v e n t s [ W ] ) { a [ X ] ( V , Y [ Z ] . i d , Q [ 0 ] ) ; a . f i r e E v e n t ( O , { e v e n t : V , i n f o : Y [ Z ] . i d , g r o u p : Q [ 0 ] } ) ; } } } } } } , g e t B e s t M a t c h : f u n c t i o n ( E ) { v a r   G = n u l l ; v a r   D = E . l e n g t h ; i f ( D = = 1 ) { G = E [ 0 ] ; } e l s e { f o r ( v a r   F = 0 ; F < D ; + + F ) { v a r   C = E [ F ] ; i f ( t h i s . m o d e = = t h i s . I N T E R S E C T & & C . c u r s o r I s O v e r ) { G = C ; b r e a k ; } e l s e { i f ( ! G | | ! G . o v e r l a p | | ( C . o v e r l a p & & G . o v e r l a p . g e t A r e a ( ) < C . o v e r l a p . g e t A r e a ( ) ) ) { G = C ; } } } } r e t u r n   G ; } , r e f r e s h C a c h e : f u n c t i o n ( D ) { v a r   F = D | | t h i s . i d s ; f o r ( v a r   C   i n   F ) { i f ( " s t r i n g " ! = t y p e o f   C ) { c o n t i n u e ; } f o r ( v a r   E   i n   t h i s . i d s [ C ] ) { v a r   G = t h i s . i d s [ C ] [ E ] ; i f ( t h i s . i s T y p e O f D D ( G ) ) { v a r   H = t h i s . g e t L o c a t i o n ( G ) ; i f ( H ) { t h i s . l o c a t i o n C a c h e [ G . i d ] = H ; } e l s e { d e l e t e   t h i s . l o c a t i o n C a c h e [ G . i d ] ; } } } } } , v e r i f y E l : f u n c t i o n ( D ) { t r y { i f ( D ) { v a r   C = D . o f f s e t P a r e n t ; i f ( C ) { r e t u r n   t r u e ; } } } c a t c h ( E ) { } r e t u r n   f a l s e ; } , g e t L o c a t i o n : f u n c t i o n ( H ) { i f ( ! t h i s . i s T y p e O f D D ( H ) ) { r e t u r n   n u l l ; } v a r   F = H . g e t E l ( ) , K , E , D , M , L , N , C , J , G ; t r y { K = Y A H O O . u t i l . D o m . g e t X Y ( F ) ; } c a t c h ( I ) { } i f ( ! K ) { r e t u r n   n u l l ; } E = K [ 0 ] ; D = E + F . o f f s e t W i d t h ; M = K [ 1 ] ; L = M + F . o f f s e t H e i g h t ; N = M - H . p a d d i n g [ 0 ] ; C = D + H . p a d d i n g [ 1 ] ; J = L + H . p a d d i n g [ 2 ] ; G = E - H . p a d d i n g [ 3 ] ; r e t u r n   n e w   Y A H O O . u t i l . R e g i o n ( N , C , J , G ) ; } , i s O v e r T a r g e t : f u n c t i o n ( K , C , E , F ) { v a r   G = t h i s . l o c a t i o n C a c h e [ C . i d ] ; i f ( ! G | | ! t h i s . u s e C a c h e ) { G = t h i s . g e t L o c a t i o n ( C ) ; t h i s . l o c a t i o n C a c h e [ C . i d ] = G ; } i f ( ! G ) { r e t u r n   f a l s e ; } C . c u r s o r I s O v e r = G . c o n t a i n s ( K ) ; v a r   J = t h i s . d r a g C u r r e n t ; i f ( ! J | | ( ! E & & ! J . c o n s t r a i n X & & ! J . c o n s t r a i n Y ) ) { r e t u r n   C . c u r s o r I s O v e r ; } C . o v e r l a p = n u l l ; i f ( ! F ) { v a r   H = J . g e t T a r g e t C o o r d ( K . x , K . y ) ; v a r   D = J . g e t D r a g E l ( ) ; F = n e w   Y A H O O . u t i l . R e g i o n ( H . y , H . x + D . o f f s e t W i d t h , H . y + D . o f f s e t H e i g h t , H . x ) ; } v a r   I = F . i n t e r s e c t ( G ) ; i f ( I ) { C . o v e r l a p = I ; r e t u r n ( E ) ? t r u e : C . c u r s o r I s O v e r ; } e l s e { r e t u r n   f a l s e ; } } , _ o n U n l o a d : f u n c t i o n ( D , C ) { t h i s . u n r e g A l l ( ) ; } , u n r e g A l l : f u n c t i o n ( ) { i f ( t h i s . d r a g C u r r e n t ) { t h i s . s t o p D r a g ( ) ; t h i s . d r a g C u r r e n t = n u l l ; } t h i s . _ e x e c O n A l l ( " u n r e g " , [ ] ) ; t h i s . i d s = { } ; } , e l e m e n t C a c h e : { } , g e t E l W r a p p e r : f u n c t i o n ( D ) { v a r   C = t h i s . e l e m e n t C a c h e [ D ] ; i f ( ! C | | ! C . e l ) { C = t h i s . e l e m e n t C a c h e [ D ] = n e w   t h i s . E l e m e n t W r a p p e r ( Y A H O O . u t i l . D o m . g e t ( D ) ) ; } r e t u r n   C ; } , g e t E l e m e n t : f u n c t i o n ( C ) { r e t u r n   Y A H O O . u t i l . D o m . g e t ( C ) ; } , g e t C s s : f u n c t i o n ( D ) { v a r   C = Y A H O O . u t i l . D o m . g e t ( D ) ; r e t u r n ( C ) ? C . s t y l e : n u l l ; } , E l e m e n t W r a p p e r : f u n c t i o n ( C ) { t h i s . e l = C | | n u l l ; t h i s . i d = t h i s . e l & & C . i d ; t h i s . c s s = t h i s . e l & & C . s t y l e ; } , g e t P o s X : f u n c t i o n ( C ) { r e t u r n   Y A H O O . u t i l . D o m . g e t X ( C ) ; } , g e t P o s Y : f u n c t i o n ( C ) { r e t u r n   Y A H O O . u t i l . D o m . g e t Y ( C ) ; } , s w a p N o d e : f u n c t i o n ( E , C ) { i f ( E . s w a p N o d e ) { E . s w a p N o d e ( C ) ; } e l s e { v a r   F = C . p a r e n t N o d e ; v a r   D = C . n e x t S i b l i n g ; i f ( D = = E ) { F . i n s e r t B e f o r e ( E , C ) ; } e l s e { i f ( C = = E . n e x t S i b l i n g ) { F . i n s e r t B e f o r e ( C , E ) ; } e l s e { E . p a r e n t N o d e . r e p l a c e C h i l d ( C , E ) ; F . i n s e r t B e f o r e ( E , D ) ; } } } } , g e t S c r o l l : f u n c t i o n ( ) { v a r   E , C , F = d o c u m e n t . d o c u m e n t E l e m e n t , D = d o c u m e n t . b o d y ; i f ( F & & ( F . s c r o l l T o p | | F . s c r o l l L e f t ) ) { E = F . s c r o l l T o p ; C = F . s c r o l l L e f t ; } e l s e { i f ( D ) { E = D . s c r o l l T o p ; C = D . s c r o l l L e f t ; } e l s e { } } r e t u r n { t o p : E , l e f t : C } ; } , g e t S t y l e : f u n c t i o n ( D , C ) { r e t u r n   Y A H O O . u t i l . D o m . g e t S t y l e ( D , C ) ; } , g e t S c r o l l T o p : f u n c t i o n ( ) { r e t u r n   t h i s . g e t S c r o l l ( ) . t o p ; } , g e t S c r o l l L e f t : f u n c t i o n ( ) { r e t u r n   t h i s . g e t S c r o l l ( ) . l e f t ; } , m o v e T o E l : f u n c t i o n ( C , E ) { v a r   D = Y A H O O . u t i l . D o m . g e t X Y ( E ) ; Y A H O O . u t i l . D o m . s e t X Y ( C , D ) ; } , g e t C l i e n t H e i g h t : f u n c t i o n ( ) { r e t u r n   Y A H O O . u t i l . D o m . g e t V i e w p o r t H e i g h t ( ) ; } , g e t C l i e n t W i d t h : f u n c t i o n ( ) { r e t u r n   Y A H O O . u t i l . D o m . g e t V i e w p o r t W i d t h ( ) ; } , n u m e r i c S o r t : f u n c t i o n ( D , C ) { r e t u r n ( D - C ) ; } , _ t i m e o u t C o u n t : 0 , _ a d d L i s t e n e r s : f u n c t i o n ( ) { v a r   C = Y A H O O . u t i l . D D M ; i f ( Y A H O O . u t i l . E v e n t & & d o c u m e n t ) { C . _ o n L o a d ( ) ; } e l s e { i f ( C . _ t i m e o u t C o u n t > 2 0 0 0 ) { } e l s e { s e t T i m e o u t ( C . _ a d d L i s t e n e r s , 1 0 ) ; i f ( d o c u m e n t & & d o c u m e n t . b o d y ) { C . _ t i m e o u t C o u n t + = 1 ; } } } } , h a n d l e W a s C l i c k e d : f u n c t i o n ( C , E ) { i f ( t h i s . i s H a n d l e ( E , C . i d ) ) { r e t u r n   t r u e ; } e l s e { v a r   D = C . p a r e n t N o d e ; w h i l e ( D ) { i f ( t h i s . i s H a n d l e ( E , D . i d ) ) { r e t u r n   t r u e ; } e l s e { D = D . p a r e n t N o d e ; } } } r e t u r n   f a l s e ; } } ; } ( ) ; Y A H O O . u t i l . D D M = Y A H O O . u t i l . D r a g D r o p M g r ; Y A H O O . u t i l . D D M . _ a d d L i s t e n e r s ( ) ; } ( f u n c t i o n ( ) { v a r   A = Y A H O O . u t i l . E v e n t ; v a r   B = Y A H O O . u t i l . D o m ; Y A H O O . u t i l . D r a g D r o p = f u n c t i o n ( E , C , D ) { i f ( E ) { t h i s . i n i t ( E , C , D ) ; } } ; Y A H O O . u t i l . D r a g D r o p . p r o t o t y p e = { e v e n t s : n u l l , o n : f u n c t i o n ( ) { t h i s . s u b s c r i b e . a p p l y ( t h i s , a r g u m e n t s ) ; } , i d : n u l l , c o n f i g : n u l l , d r a g E l I d : n u l l , h a n d l e E l I d : n u l l , i n v a l i d H a n d l e T y p e s : n u l l , i n v a l i d H a n d l e I d s : n u l l , i n v a l i d H a n d l e C l a s s e s : n u l l , s t a r t P a g e X : 0 , s t a r t P a g e Y : 0 , g r o u p s : n u l l , l o c k e d : f a l s e , l o c k : f u n c t i o n ( ) { t h i s . l o c k e d = t r u e ; } , u n l o c k : f u n c t i o n ( ) { t h i s . l o c k e d = f a l s e ; } , i s T a r g e t : t r u e , p a d d i n g : n u l l , d r a g O n l y : f a l s e , u s e S h i m : f a l s e , _ d o m R e f : n u l l , _ _ y g D r a g D r o p : t r u e , c o n s t r a i n X : f a l s e , c o n s t r a i n Y : f a l s e , m i n X : 0 , m a x X : 0 , m i n Y : 0 , m a x Y : 0 , d e l t a X : 0 , d e l t a Y : 0 , m a i n t a i n O f f s e t : f a l s e , x T i c k s : n u l l , y T i c k s : n u l l , p r i m a r y B u t t o n O n l y : t r u e , a v a i l a b l e : f a l s e , h a s O u t e r H a n d l e s : f a l s e , c u r s o r I s O v e r : f a l s e , o v e r l a p : n u l l , b 4 S t a r t D r a g : f u n c t i o n ( C , D ) { } , s t a r t D r a g : f u n c t i o n ( C , D ) { } , b 4 D r a g : f u n c t i o n ( C ) { } , o n D r a g : f u n c t i o n ( C ) { } , o n D r a g E n t e r : f u n c t i o n ( C , D ) { } , b 4 D r a g O v e r : f u n c t i o n ( C ) { } , o n D r a g O v e r : f u n c t i o n ( C , D ) { } , b 4 D r a g O u t : f u n c t i o n ( C ) { } , o n D r a g O u t : f u n c t i o n ( C , D ) { } , b 4 D r a g D r o p : f u n c t i o n ( C ) { } , o n D r a g D r o p : f u n c t i o n ( C , D ) { } , o n I n v a l i d D r o p : f u n c t i o n ( C ) { } , b 4 E n d D r a g : f u n c t i o n ( C ) { } , e n d D r a g : f u n c t i o n ( C ) { } , b 4 M o u s e D o w n : f u n c t i o n ( C ) { } , o n M o u s e D o w n : f u n c t i o n ( C ) { } , o n M o u s e U p : f u n c t i o n ( C ) { } , o n A v a i l a b l e : f u n c t i o n ( ) { } , g e t E l : f u n c t i o n ( ) { i f ( ! t h i s . _ d o m R e f ) { t h i s . _ d o m R e f = B . g e t ( t h i s . i d ) ;  
 } r e t u r n   t h i s . _ d o m R e f ; } , g e t D r a g E l : f u n c t i o n ( ) { r e t u r n   B . g e t ( t h i s . d r a g E l I d ) ; } , i n i t : f u n c t i o n ( F , C , D ) { t h i s . i n i t T a r g e t ( F , C , D ) ; A . o n ( t h i s . _ d o m R e f | | t h i s . i d , " m o u s e d o w n " , t h i s . h a n d l e M o u s e D o w n , t h i s , t r u e ) ; f o r ( v a r   E   i n   t h i s . e v e n t s ) { t h i s . c r e a t e E v e n t ( E + " E v e n t " ) ; } } , i n i t T a r g e t : f u n c t i o n ( E , C , D ) { t h i s . c o n f i g = D | | { } ; t h i s . e v e n t s = { } ; t h i s . D D M = Y A H O O . u t i l . D D M ; t h i s . g r o u p s = { } ; i f ( t y p e o f   E ! = = " s t r i n g " ) { t h i s . _ d o m R e f = E ; E = B . g e n e r a t e I d ( E ) ; } t h i s . i d = E ; t h i s . a d d T o G r o u p ( ( C ) ? C : " d e f a u l t " ) ; t h i s . h a n d l e E l I d = E ; A . o n A v a i l a b l e ( E , t h i s . h a n d l e O n A v a i l a b l e , t h i s , t r u e ) ; t h i s . s e t D r a g E l I d ( E ) ; t h i s . i n v a l i d H a n d l e T y p e s = { A : " A " } ; t h i s . i n v a l i d H a n d l e I d s = { } ; t h i s . i n v a l i d H a n d l e C l a s s e s = [ ] ; t h i s . a p p l y C o n f i g ( ) ; } , a p p l y C o n f i g : f u n c t i o n ( ) { t h i s . e v e n t s = { m o u s e D o w n : t r u e , b 4 M o u s e D o w n : t r u e , m o u s e U p : t r u e , b 4 S t a r t D r a g : t r u e , s t a r t D r a g : t r u e , b 4 E n d D r a g : t r u e , e n d D r a g : t r u e , d r a g : t r u e , b 4 D r a g : t r u e , i n v a l i d D r o p : t r u e , b 4 D r a g O u t : t r u e , d r a g O u t : t r u e , d r a g E n t e r : t r u e , b 4 D r a g O v e r : t r u e , d r a g O v e r : t r u e , b 4 D r a g D r o p : t r u e , d r a g D r o p : t r u e } ; i f ( t h i s . c o n f i g . e v e n t s ) { f o r ( v a r   C   i n   t h i s . c o n f i g . e v e n t s ) { i f ( t h i s . c o n f i g . e v e n t s [ C ] = = = f a l s e ) { t h i s . e v e n t s [ C ] = f a l s e ; } } } t h i s . p a d d i n g = t h i s . c o n f i g . p a d d i n g | | [ 0 , 0 , 0 , 0 ] ; t h i s . i s T a r g e t = ( t h i s . c o n f i g . i s T a r g e t ! = = f a l s e ) ; t h i s . m a i n t a i n O f f s e t = ( t h i s . c o n f i g . m a i n t a i n O f f s e t ) ; t h i s . p r i m a r y B u t t o n O n l y = ( t h i s . c o n f i g . p r i m a r y B u t t o n O n l y ! = = f a l s e ) ; t h i s . d r a g O n l y = ( ( t h i s . c o n f i g . d r a g O n l y = = = t r u e ) ? t r u e : f a l s e ) ; t h i s . u s e S h i m = ( ( t h i s . c o n f i g . u s e S h i m = = = t r u e ) ? t r u e : f a l s e ) ; } , h a n d l e O n A v a i l a b l e : f u n c t i o n ( ) { t h i s . a v a i l a b l e = t r u e ; t h i s . r e s e t C o n s t r a i n t s ( ) ; t h i s . o n A v a i l a b l e ( ) ; } , s e t P a d d i n g : f u n c t i o n ( E , C , F , D ) { i f ( ! C & & 0 ! = = C ) { t h i s . p a d d i n g = [ E , E , E , E ] ; } e l s e { i f ( ! F & & 0 ! = = F ) { t h i s . p a d d i n g = [ E , C , E , C ] ; } e l s e { t h i s . p a d d i n g = [ E , C , F , D ] ; } } } , s e t I n i t P o s i t i o n : f u n c t i o n ( F , E ) { v a r   G = t h i s . g e t E l ( ) ; i f ( ! t h i s . D D M . v e r i f y E l ( G ) ) { i f ( G & & G . s t y l e & & ( G . s t y l e . d i s p l a y = = " n o n e " ) ) { } e l s e { } r e t u r n ; } v a r   D = F | | 0 ; v a r   C = E | | 0 ; v a r   H = B . g e t X Y ( G ) ; t h i s . i n i t P a g e X = H [ 0 ] - D ; t h i s . i n i t P a g e Y = H [ 1 ] - C ; t h i s . l a s t P a g e X = H [ 0 ] ; t h i s . l a s t P a g e Y = H [ 1 ] ; t h i s . s e t S t a r t P o s i t i o n ( H ) ; } , s e t S t a r t P o s i t i o n : f u n c t i o n ( D ) { v a r   C = D | | B . g e t X Y ( t h i s . g e t E l ( ) ) ; t h i s . d e l t a S e t X Y = n u l l ; t h i s . s t a r t P a g e X = C [ 0 ] ; t h i s . s t a r t P a g e Y = C [ 1 ] ; } , a d d T o G r o u p : f u n c t i o n ( C ) { t h i s . g r o u p s [ C ] = t r u e ; t h i s . D D M . r e g D r a g D r o p ( t h i s , C ) ; } , r e m o v e F r o m G r o u p : f u n c t i o n ( C ) { i f ( t h i s . g r o u p s [ C ] ) { d e l e t e   t h i s . g r o u p s [ C ] ; } t h i s . D D M . r e m o v e D D F r o m G r o u p ( t h i s , C ) ; } , s e t D r a g E l I d : f u n c t i o n ( C ) { t h i s . d r a g E l I d = C ; } , s e t H a n d l e E l I d : f u n c t i o n ( C ) { i f ( t y p e o f   C ! = = " s t r i n g " ) { C = B . g e n e r a t e I d ( C ) ; } t h i s . h a n d l e E l I d = C ; t h i s . D D M . r e g H a n d l e ( t h i s . i d , C ) ; } , s e t O u t e r H a n d l e E l I d : f u n c t i o n ( C ) { i f ( t y p e o f   C ! = = " s t r i n g " ) { C = B . g e n e r a t e I d ( C ) ; } A . o n ( C , " m o u s e d o w n " , t h i s . h a n d l e M o u s e D o w n , t h i s , t r u e ) ; t h i s . s e t H a n d l e E l I d ( C ) ; t h i s . h a s O u t e r H a n d l e s = t r u e ; } , u n r e g : f u n c t i o n ( ) { A . r e m o v e L i s t e n e r ( t h i s . i d , " m o u s e d o w n " , t h i s . h a n d l e M o u s e D o w n ) ; t h i s . _ d o m R e f = n u l l ; t h i s . D D M . _ r e m o v e ( t h i s ) ; } , i s L o c k e d : f u n c t i o n ( ) { r e t u r n ( t h i s . D D M . i s L o c k e d ( ) | | t h i s . l o c k e d ) ; } , h a n d l e M o u s e D o w n : f u n c t i o n ( J , I ) { v a r   D = J . w h i c h | | J . b u t t o n ; i f ( t h i s . p r i m a r y B u t t o n O n l y & & D > 1 ) { r e t u r n ; } i f ( t h i s . i s L o c k e d ( ) ) { r e t u r n ; } v a r   C = t h i s . b 4 M o u s e D o w n ( J ) , F = t r u e ; i f ( t h i s . e v e n t s . b 4 M o u s e D o w n ) { F = t h i s . f i r e E v e n t ( " b 4 M o u s e D o w n E v e n t " , J ) ; } v a r   E = t h i s . o n M o u s e D o w n ( J ) , H = t r u e ; i f ( t h i s . e v e n t s . m o u s e D o w n ) { H = t h i s . f i r e E v e n t ( " m o u s e D o w n E v e n t " , J ) ; } i f ( ( C = = = f a l s e ) | | ( E = = = f a l s e ) | | ( F = = = f a l s e ) | | ( H = = = f a l s e ) ) { r e t u r n ; } t h i s . D D M . r e f r e s h C a c h e ( t h i s . g r o u p s ) ; v a r   G = n e w   Y A H O O . u t i l . P o i n t ( A . g e t P a g e X ( J ) , A . g e t P a g e Y ( J ) ) ; i f ( ! t h i s . h a s O u t e r H a n d l e s & & ! t h i s . D D M . i s O v e r T a r g e t ( G , t h i s ) ) { } e l s e { i f ( t h i s . c l i c k V a l i d a t o r ( J ) ) { t h i s . s e t S t a r t P o s i t i o n ( ) ; t h i s . D D M . h a n d l e M o u s e D o w n ( J , t h i s ) ; t h i s . D D M . s t o p E v e n t ( J ) ; } e l s e { } } } , c l i c k V a l i d a t o r : f u n c t i o n ( D ) { v a r   C = Y A H O O . u t i l . E v e n t . g e t T a r g e t ( D ) ; r e t u r n ( t h i s . i s V a l i d H a n d l e C h i l d ( C ) & & ( t h i s . i d = = t h i s . h a n d l e E l I d | | t h i s . D D M . h a n d l e W a s C l i c k e d ( C , t h i s . i d ) ) ) ; } , g e t T a r g e t C o o r d : f u n c t i o n ( E , D ) { v a r   C = E - t h i s . d e l t a X ; v a r   F = D - t h i s . d e l t a Y ; i f ( t h i s . c o n s t r a i n X ) { i f ( C < t h i s . m i n X ) { C = t h i s . m i n X ; } i f ( C > t h i s . m a x X ) { C = t h i s . m a x X ; } } i f ( t h i s . c o n s t r a i n Y ) { i f ( F < t h i s . m i n Y ) { F = t h i s . m i n Y ; } i f ( F > t h i s . m a x Y ) { F = t h i s . m a x Y ; } } C = t h i s . g e t T i c k ( C , t h i s . x T i c k s ) ; F = t h i s . g e t T i c k ( F , t h i s . y T i c k s ) ; r e t u r n { x : C , y : F } ; } , a d d I n v a l i d H a n d l e T y p e : f u n c t i o n ( C ) { v a r   D = C . t o U p p e r C a s e ( ) ; t h i s . i n v a l i d H a n d l e T y p e s [ D ] = D ; } , a d d I n v a l i d H a n d l e I d : f u n c t i o n ( C ) { i f ( t y p e o f   C ! = = " s t r i n g " ) { C = B . g e n e r a t e I d ( C ) ; } t h i s . i n v a l i d H a n d l e I d s [ C ] = C ; } , a d d I n v a l i d H a n d l e C l a s s : f u n c t i o n ( C ) { t h i s . i n v a l i d H a n d l e C l a s s e s . p u s h ( C ) ; } , r e m o v e I n v a l i d H a n d l e T y p e : f u n c t i o n ( C ) { v a r   D = C . t o U p p e r C a s e ( ) ; d e l e t e   t h i s . i n v a l i d H a n d l e T y p e s [ D ] ; } , r e m o v e I n v a l i d H a n d l e I d : f u n c t i o n ( C ) { i f ( t y p e o f   C ! = = " s t r i n g " ) { C = B . g e n e r a t e I d ( C ) ; } d e l e t e   t h i s . i n v a l i d H a n d l e I d s [ C ] ; } , r e m o v e I n v a l i d H a n d l e C l a s s : f u n c t i o n ( D ) { f o r ( v a r   E = 0 , C = t h i s . i n v a l i d H a n d l e C l a s s e s . l e n g t h ; E < C ; + + E ) { i f ( t h i s . i n v a l i d H a n d l e C l a s s e s [ E ] = = D ) { d e l e t e   t h i s . i n v a l i d H a n d l e C l a s s e s [ E ] ; } } } , i s V a l i d H a n d l e C h i l d : f u n c t i o n ( F ) { v a r   E = t r u e ; v a r   H ; t r y { H = F . n o d e N a m e . t o U p p e r C a s e ( ) ; } c a t c h ( G ) { H = F . n o d e N a m e ; } E = E & & ! t h i s . i n v a l i d H a n d l e T y p e s [ H ] ; E = E & & ! t h i s . i n v a l i d H a n d l e I d s [ F . i d ] ; f o r ( v a r   D = 0 , C = t h i s . i n v a l i d H a n d l e C l a s s e s . l e n g t h ; E & & D < C ; + + D ) { E = ! B . h a s C l a s s ( F , t h i s . i n v a l i d H a n d l e C l a s s e s [ D ] ) ; } r e t u r n   E ; } , s e t X T i c k s : f u n c t i o n ( F , C ) { t h i s . x T i c k s = [ ] ; t h i s . x T i c k S i z e = C ; v a r   E = { } ; f o r ( v a r   D = t h i s . i n i t P a g e X ; D > = t h i s . m i n X ; D = D - C ) { i f ( ! E [ D ] ) { t h i s . x T i c k s [ t h i s . x T i c k s . l e n g t h ] = D ; E [ D ] = t r u e ; } } f o r ( D = t h i s . i n i t P a g e X ; D < = t h i s . m a x X ; D = D + C ) { i f ( ! E [ D ] ) { t h i s . x T i c k s [ t h i s . x T i c k s . l e n g t h ] = D ; E [ D ] = t r u e ; } } t h i s . x T i c k s . s o r t ( t h i s . D D M . n u m e r i c S o r t ) ; } , s e t Y T i c k s : f u n c t i o n ( F , C ) { t h i s . y T i c k s = [ ] ; t h i s . y T i c k S i z e = C ; v a r   E = { } ; f o r ( v a r   D = t h i s . i n i t P a g e Y ; D > = t h i s . m i n Y ; D = D - C ) { i f ( ! E [ D ] ) { t h i s . y T i c k s [ t h i s . y T i c k s . l e n g t h ] = D ; E [ D ] = t r u e ; } } f o r ( D = t h i s . i n i t P a g e Y ; D < = t h i s . m a x Y ; D = D + C ) { i f ( ! E [ D ] ) { t h i s . y T i c k s [ t h i s . y T i c k s . l e n g t h ] = D ; E [ D ] = t r u e ; } } t h i s . y T i c k s . s o r t ( t h i s . D D M . n u m e r i c S o r t ) ; } , s e t X C o n s t r a i n t : f u n c t i o n ( E , D , C ) { t h i s . l e f t C o n s t r a i n t = p a r s e I n t ( E , 1 0 ) ; t h i s . r i g h t C o n s t r a i n t = p a r s e I n t ( D , 1 0 ) ; t h i s . m i n X = t h i s . i n i t P a g e X - t h i s . l e f t C o n s t r a i n t ; t h i s . m a x X = t h i s . i n i t P a g e X + t h i s . r i g h t C o n s t r a i n t ; i f ( C ) { t h i s . s e t X T i c k s ( t h i s . i n i t P a g e X , C ) ; } t h i s . c o n s t r a i n X = t r u e ; } , c l e a r C o n s t r a i n t s : f u n c t i o n ( ) { t h i s . c o n s t r a i n X = f a l s e ; t h i s . c o n s t r a i n Y = f a l s e ; t h i s . c l e a r T i c k s ( ) ; } , c l e a r T i c k s : f u n c t i o n ( ) { t h i s . x T i c k s = n u l l ; t h i s . y T i c k s = n u l l ; t h i s . x T i c k S i z e = 0 ; t h i s . y T i c k S i z e = 0 ; } , s e t Y C o n s t r a i n t : f u n c t i o n ( C , E , D ) { t h i s . t o p C o n s t r a i n t = p a r s e I n t ( C , 1 0 ) ; t h i s . b o t t o m C o n s t r a i n t = p a r s e I n t ( E , 1 0 ) ; t h i s . m i n Y = t h i s . i n i t P a g e Y - t h i s . t o p C o n s t r a i n t ; t h i s . m a x Y = t h i s . i n i t P a g e Y + t h i s . b o t t o m C o n s t r a i n t ; i f ( D ) { t h i s . s e t Y T i c k s ( t h i s . i n i t P a g e Y , D ) ;  
 } t h i s . c o n s t r a i n Y = t r u e ; } , r e s e t C o n s t r a i n t s : f u n c t i o n ( ) { i f ( t h i s . i n i t P a g e X | | t h i s . i n i t P a g e X = = = 0 ) { v a r   D = ( t h i s . m a i n t a i n O f f s e t ) ? t h i s . l a s t P a g e X - t h i s . i n i t P a g e X : 0 ; v a r   C = ( t h i s . m a i n t a i n O f f s e t ) ? t h i s . l a s t P a g e Y - t h i s . i n i t P a g e Y : 0 ; t h i s . s e t I n i t P o s i t i o n ( D , C ) ; } e l s e { t h i s . s e t I n i t P o s i t i o n ( ) ; } i f ( t h i s . c o n s t r a i n X ) { t h i s . s e t X C o n s t r a i n t ( t h i s . l e f t C o n s t r a i n t , t h i s . r i g h t C o n s t r a i n t , t h i s . x T i c k S i z e ) ; } i f ( t h i s . c o n s t r a i n Y ) { t h i s . s e t Y C o n s t r a i n t ( t h i s . t o p C o n s t r a i n t , t h i s . b o t t o m C o n s t r a i n t , t h i s . y T i c k S i z e ) ; } } , g e t T i c k : f u n c t i o n ( I , F ) { i f ( ! F ) { r e t u r n   I ; } e l s e { i f ( F [ 0 ] > = I ) { r e t u r n   F [ 0 ] ; } e l s e { f o r ( v a r   D = 0 , C = F . l e n g t h ; D < C ; + + D ) { v a r   E = D + 1 ; i f ( F [ E ] & & F [ E ] > = I ) { v a r   H = I - F [ D ] ; v a r   G = F [ E ] - I ; r e t u r n ( G > H ) ? F [ D ] : F [ E ] ; } } r e t u r n   F [ F . l e n g t h - 1 ] ; } } } , t o S t r i n g : f u n c t i o n ( ) { r e t u r n ( " D r a g D r o p   " + t h i s . i d ) ; } } ; Y A H O O . a u g m e n t ( Y A H O O . u t i l . D r a g D r o p , Y A H O O . u t i l . E v e n t P r o v i d e r ) ; } ) ( ) ; Y A H O O . u t i l . D D = f u n c t i o n ( C , A , B ) { i f ( C ) { t h i s . i n i t ( C , A , B ) ; } } ; Y A H O O . e x t e n d ( Y A H O O . u t i l . D D , Y A H O O . u t i l . D r a g D r o p , { s c r o l l : t r u e , a u t o O f f s e t : f u n c t i o n ( C , B ) { v a r   A = C - t h i s . s t a r t P a g e X ; v a r   D = B - t h i s . s t a r t P a g e Y ; t h i s . s e t D e l t a ( A , D ) ; } , s e t D e l t a : f u n c t i o n ( B , A ) { t h i s . d e l t a X = B ; t h i s . d e l t a Y = A ; } , s e t D r a g E l P o s : f u n c t i o n ( C , B ) { v a r   A = t h i s . g e t D r a g E l ( ) ; t h i s . a l i g n E l W i t h M o u s e ( A , C , B ) ; } , a l i g n E l W i t h M o u s e : f u n c t i o n ( C , G , F ) { v a r   E = t h i s . g e t T a r g e t C o o r d ( G , F ) ; i f ( ! t h i s . d e l t a S e t X Y ) { v a r   H = [ E . x , E . y ] ; Y A H O O . u t i l . D o m . s e t X Y ( C , H ) ; v a r   D = p a r s e I n t ( Y A H O O . u t i l . D o m . g e t S t y l e ( C , " l e f t " ) , 1 0 ) ; v a r   B = p a r s e I n t ( Y A H O O . u t i l . D o m . g e t S t y l e ( C , " t o p " ) , 1 0 ) ; t h i s . d e l t a S e t X Y = [ D - E . x , B - E . y ] ; } e l s e { Y A H O O . u t i l . D o m . s e t S t y l e ( C , " l e f t " , ( E . x + t h i s . d e l t a S e t X Y [ 0 ] ) + " p x " ) ; Y A H O O . u t i l . D o m . s e t S t y l e ( C , " t o p " , ( E . y + t h i s . d e l t a S e t X Y [ 1 ] ) + " p x " ) ; } t h i s . c a c h e P o s i t i o n ( E . x , E . y ) ; v a r   A = t h i s ; s e t T i m e o u t ( f u n c t i o n ( ) { A . a u t o S c r o l l . c a l l ( A , E . x , E . y , C . o f f s e t H e i g h t , C . o f f s e t W i d t h ) ; } , 0 ) ; } , c a c h e P o s i t i o n : f u n c t i o n ( B , A ) { i f ( B ) { t h i s . l a s t P a g e X = B ; t h i s . l a s t P a g e Y = A ; } e l s e { v a r   C = Y A H O O . u t i l . D o m . g e t X Y ( t h i s . g e t E l ( ) ) ; t h i s . l a s t P a g e X = C [ 0 ] ; t h i s . l a s t P a g e Y = C [ 1 ] ; } } , a u t o S c r o l l : f u n c t i o n ( J , I , E , K ) { i f ( t h i s . s c r o l l ) { v a r   L = t h i s . D D M . g e t C l i e n t H e i g h t ( ) ; v a r   B = t h i s . D D M . g e t C l i e n t W i d t h ( ) ; v a r   N = t h i s . D D M . g e t S c r o l l T o p ( ) ; v a r   D = t h i s . D D M . g e t S c r o l l L e f t ( ) ; v a r   H = E + I ; v a r   M = K + J ; v a r   G = ( L + N - I - t h i s . d e l t a Y ) ; v a r   F = ( B + D - J - t h i s . d e l t a X ) ; v a r   C = 4 0 ; v a r   A = ( d o c u m e n t . a l l ) ? 8 0 : 3 0 ; i f ( H > L & & G < C ) { w i n d o w . s c r o l l T o ( D , N + A ) ; } i f ( I < N & & N > 0 & & I - N < C ) { w i n d o w . s c r o l l T o ( D , N - A ) ; } i f ( M > B & & F < C ) { w i n d o w . s c r o l l T o ( D + A , N ) ; } i f ( J < D & & D > 0 & & J - D < C ) { w i n d o w . s c r o l l T o ( D - A , N ) ; } } } , a p p l y C o n f i g : f u n c t i o n ( ) { Y A H O O . u t i l . D D . s u p e r c l a s s . a p p l y C o n f i g . c a l l ( t h i s ) ; t h i s . s c r o l l = ( t h i s . c o n f i g . s c r o l l ! = = f a l s e ) ; } , b 4 M o u s e D o w n : f u n c t i o n ( A ) { t h i s . s e t S t a r t P o s i t i o n ( ) ; t h i s . a u t o O f f s e t ( Y A H O O . u t i l . E v e n t . g e t P a g e X ( A ) , Y A H O O . u t i l . E v e n t . g e t P a g e Y ( A ) ) ; } , b 4 D r a g : f u n c t i o n ( A ) { t h i s . s e t D r a g E l P o s ( Y A H O O . u t i l . E v e n t . g e t P a g e X ( A ) , Y A H O O . u t i l . E v e n t . g e t P a g e Y ( A ) ) ; } , t o S t r i n g : f u n c t i o n ( ) { r e t u r n ( " D D   " + t h i s . i d ) ; } } ) ; Y A H O O . u t i l . D D P r o x y = f u n c t i o n ( C , A , B ) { i f ( C ) { t h i s . i n i t ( C , A , B ) ; t h i s . i n i t F r a m e ( ) ; } } ; Y A H O O . u t i l . D D P r o x y . d r a g E l I d = " y g d d f d i v " ; Y A H O O . e x t e n d ( Y A H O O . u t i l . D D P r o x y , Y A H O O . u t i l . D D , { r e s i z e F r a m e : t r u e , c e n t e r F r a m e : f a l s e , c r e a t e F r a m e : f u n c t i o n ( ) { v a r   B = t h i s , A = d o c u m e n t . b o d y ; i f ( ! A | | ! A . f i r s t C h i l d ) { s e t T i m e o u t ( f u n c t i o n ( ) { B . c r e a t e F r a m e ( ) ; } , 5 0 ) ; r e t u r n ; } v a r   F = t h i s . g e t D r a g E l ( ) , E = Y A H O O . u t i l . D o m ; i f ( ! F ) { F = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; F . i d = t h i s . d r a g E l I d ; v a r   D = F . s t y l e ; D . p o s i t i o n = " a b s o l u t e " ; D . v i s i b i l i t y = " h i d d e n " ; D . c u r s o r = " m o v e " ; D . b o r d e r = " 2 p x   s o l i d   # a a a " ; D . z I n d e x = 9 9 9 ; D . h e i g h t = " 2 5 p x " ; D . w i d t h = " 2 5 p x " ; v a r   C = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; E . s e t S t y l e ( C , " h e i g h t " , " 1 0 0 % " ) ; E . s e t S t y l e ( C , " w i d t h " , " 1 0 0 % " ) ; E . s e t S t y l e ( C , " b a c k g r o u n d - c o l o r " , " # c c c " ) ; E . s e t S t y l e ( C , " o p a c i t y " , " 0 " ) ; F . a p p e n d C h i l d ( C ) ; A . i n s e r t B e f o r e ( F , A . f i r s t C h i l d ) ; } } , i n i t F r a m e : f u n c t i o n ( ) { t h i s . c r e a t e F r a m e ( ) ; } , a p p l y C o n f i g : f u n c t i o n ( ) { Y A H O O . u t i l . D D P r o x y . s u p e r c l a s s . a p p l y C o n f i g . c a l l ( t h i s ) ; t h i s . r e s i z e F r a m e = ( t h i s . c o n f i g . r e s i z e F r a m e ! = = f a l s e ) ; t h i s . c e n t e r F r a m e = ( t h i s . c o n f i g . c e n t e r F r a m e ) ; t h i s . s e t D r a g E l I d ( t h i s . c o n f i g . d r a g E l I d | | Y A H O O . u t i l . D D P r o x y . d r a g E l I d ) ; } , s h o w F r a m e : f u n c t i o n ( E , D ) { v a r   C = t h i s . g e t E l ( ) ; v a r   A = t h i s . g e t D r a g E l ( ) ; v a r   B = A . s t y l e ; t h i s . _ r e s i z e P r o x y ( ) ; i f ( t h i s . c e n t e r F r a m e ) { t h i s . s e t D e l t a ( M a t h . r o u n d ( p a r s e I n t ( B . w i d t h , 1 0 ) / 2 ) , M a t h . r o u n d ( p a r s e I n t ( B . h e i g h t , 1 0 ) / 2 ) ) ; } t h i s . s e t D r a g E l P o s ( E , D ) ; Y A H O O . u t i l . D o m . s e t S t y l e ( A , " v i s i b i l i t y " , " v i s i b l e " ) ; } , _ r e s i z e P r o x y : f u n c t i o n ( ) { i f ( t h i s . r e s i z e F r a m e ) { v a r   H = Y A H O O . u t i l . D o m ; v a r   B = t h i s . g e t E l ( ) ; v a r   C = t h i s . g e t D r a g E l ( ) ; v a r   G = p a r s e I n t ( H . g e t S t y l e ( C , " b o r d e r T o p W i d t h " ) , 1 0 ) ; v a r   I = p a r s e I n t ( H . g e t S t y l e ( C , " b o r d e r R i g h t W i d t h " ) , 1 0 ) ; v a r   F = p a r s e I n t ( H . g e t S t y l e ( C , " b o r d e r B o t t o m W i d t h " ) , 1 0 ) ; v a r   D = p a r s e I n t ( H . g e t S t y l e ( C , " b o r d e r L e f t W i d t h " ) , 1 0 ) ; i f ( i s N a N ( G ) ) { G = 0 ; } i f ( i s N a N ( I ) ) { I = 0 ; } i f ( i s N a N ( F ) ) { F = 0 ; } i f ( i s N a N ( D ) ) { D = 0 ; } v a r   E = M a t h . m a x ( 0 , B . o f f s e t W i d t h - I - D ) ; v a r   A = M a t h . m a x ( 0 , B . o f f s e t H e i g h t - G - F ) ; H . s e t S t y l e ( C , " w i d t h " , E + " p x " ) ; H . s e t S t y l e ( C , " h e i g h t " , A + " p x " ) ; } } , b 4 M o u s e D o w n : f u n c t i o n ( B ) { t h i s . s e t S t a r t P o s i t i o n ( ) ; v a r   A = Y A H O O . u t i l . E v e n t . g e t P a g e X ( B ) ; v a r   C = Y A H O O . u t i l . E v e n t . g e t P a g e Y ( B ) ; t h i s . a u t o O f f s e t ( A , C ) ; } , b 4 S t a r t D r a g : f u n c t i o n ( A , B ) { t h i s . s h o w F r a m e ( A , B ) ; } , b 4 E n d D r a g : f u n c t i o n ( A ) { Y A H O O . u t i l . D o m . s e t S t y l e ( t h i s . g e t D r a g E l ( ) , " v i s i b i l i t y " , " h i d d e n " ) ; } , e n d D r a g : f u n c t i o n ( D ) { v a r   C = Y A H O O . u t i l . D o m ; v a r   B = t h i s . g e t E l ( ) ; v a r   A = t h i s . g e t D r a g E l ( ) ; C . s e t S t y l e ( A , " v i s i b i l i t y " , " " ) ; C . s e t S t y l e ( B , " v i s i b i l i t y " , " h i d d e n " ) ; Y A H O O . u t i l . D D M . m o v e T o E l ( B , A ) ; C . s e t S t y l e ( A , " v i s i b i l i t y " , " h i d d e n " ) ; C . s e t S t y l e ( B , " v i s i b i l i t y " , " " ) ; } , t o S t r i n g : f u n c t i o n ( ) { r e t u r n ( " D D P r o x y   " + t h i s . i d ) ; } } ) ; Y A H O O . u t i l . D D T a r g e t = f u n c t i o n ( C , A , B ) { i f ( C ) { t h i s . i n i t T a r g e t ( C , A , B ) ; } } ; Y A H O O . e x t e n d ( Y A H O O . u t i l . D D T a r g e t , Y A H O O . u t i l . D r a g D r o p , { t o S t r i n g : f u n c t i o n ( ) { r e t u r n ( " D D T a r g e t   " + t h i s . i d ) ; } } ) ; Y A H O O . r e g i s t e r ( " d r a g d r o p " , Y A H O O . u t i l . D r a g D r o p M g r , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ;  
  
  
 / *  
 C o p y r i g h t   ( c )   2 0 0 9 ,   Y a h o o !   I n c .   A l l   r i g h t s   r e s e r v e d .  
 C o d e   l i c e n s e d   u n d e r   t h e   B S D   L i c e n s e :  
 h t t p : / / d e v e l o p e r . y a h o o . n e t / y u i / l i c e n s e . t x t  
 v e r s i o n :   2 . 7 . 0  
 e l e m e n t - m i n . j s  
 * /  
 Y A H O O . u t i l . A t t r i b u t e = f u n c t i o n ( B , A ) { i f ( A ) { t h i s . o w n e r = A ; t h i s . c o n f i g u r e ( B , t r u e ) ; } } ; Y A H O O . u t i l . A t t r i b u t e . p r o t o t y p e = { n a m e : u n d e f i n e d , v a l u e : n u l l , o w n e r : n u l l , r e a d O n l y : f a l s e , w r i t e O n c e : f a l s e , _ i n i t i a l C o n f i g : n u l l , _ w r i t t e n : f a l s e , m e t h o d : n u l l , s e t t e r : n u l l , g e t t e r : n u l l , v a l i d a t o r : n u l l , g e t V a l u e : f u n c t i o n ( ) { v a r   A = t h i s . v a l u e ; i f ( t h i s . g e t t e r ) { A = t h i s . g e t t e r . c a l l ( t h i s . o w n e r , t h i s . n a m e ) ; } r e t u r n   A ; } , s e t V a l u e : f u n c t i o n ( F , B ) { v a r   E , A = t h i s . o w n e r , C = t h i s . n a m e ; v a r   D = { t y p e : C , p r e v V a l u e : t h i s . g e t V a l u e ( ) , n e w V a l u e : F } ; i f ( t h i s . r e a d O n l y | | ( t h i s . w r i t e O n c e & & t h i s . _ w r i t t e n ) ) { r e t u r n   f a l s e ; } i f ( t h i s . v a l i d a t o r & & ! t h i s . v a l i d a t o r . c a l l ( A , F ) ) { r e t u r n   f a l s e ; } i f ( ! B ) { E = A . f i r e B e f o r e C h a n g e E v e n t ( D ) ; i f ( E = = = f a l s e ) { r e t u r n   f a l s e ; } } i f ( t h i s . s e t t e r ) { F = t h i s . s e t t e r . c a l l ( A , F , t h i s . n a m e ) ; i f ( F = = = u n d e f i n e d ) { } } i f ( t h i s . m e t h o d ) { t h i s . m e t h o d . c a l l ( A , F , t h i s . n a m e ) ; } t h i s . v a l u e = F ; t h i s . _ w r i t t e n = t r u e ; D . t y p e = C ; i f ( ! B ) { t h i s . o w n e r . f i r e C h a n g e E v e n t ( D ) ; } r e t u r n   t r u e ; } , c o n f i g u r e : f u n c t i o n ( B , C ) { B = B | | { } ; i f ( C ) { t h i s . _ w r i t t e n = f a l s e ; } t h i s . _ i n i t i a l C o n f i g = t h i s . _ i n i t i a l C o n f i g | | { } ; f o r ( v a r   A   i n   B ) { i f ( B . h a s O w n P r o p e r t y ( A ) ) { t h i s [ A ] = B [ A ] ; i f ( C ) { t h i s . _ i n i t i a l C o n f i g [ A ] = B [ A ] ; } } } } , r e s e t V a l u e : f u n c t i o n ( ) { r e t u r n   t h i s . s e t V a l u e ( t h i s . _ i n i t i a l C o n f i g . v a l u e ) ; } , r e s e t C o n f i g : f u n c t i o n ( ) { t h i s . c o n f i g u r e ( t h i s . _ i n i t i a l C o n f i g , t r u e ) ; } , r e f r e s h : f u n c t i o n ( A ) { t h i s . s e t V a l u e ( t h i s . v a l u e , A ) ; } } ; ( f u n c t i o n ( ) { v a r   A = Y A H O O . u t i l . L a n g ; Y A H O O . u t i l . A t t r i b u t e P r o v i d e r = f u n c t i o n ( ) { } ; Y A H O O . u t i l . A t t r i b u t e P r o v i d e r . p r o t o t y p e = { _ c o n f i g s : n u l l , g e t : f u n c t i o n ( C ) { t h i s . _ c o n f i g s = t h i s . _ c o n f i g s | | { } ; v a r   B = t h i s . _ c o n f i g s [ C ] ; i f ( ! B | | ! t h i s . _ c o n f i g s . h a s O w n P r o p e r t y ( C ) ) { r e t u r n   n u l l ; } r e t u r n   B . g e t V a l u e ( ) ; } , s e t : f u n c t i o n ( D , E , B ) { t h i s . _ c o n f i g s = t h i s . _ c o n f i g s | | { } ; v a r   C = t h i s . _ c o n f i g s [ D ] ; i f ( ! C ) { r e t u r n   f a l s e ; } r e t u r n   C . s e t V a l u e ( E , B ) ; } , g e t A t t r i b u t e K e y s : f u n c t i o n ( ) { t h i s . _ c o n f i g s = t h i s . _ c o n f i g s ; v a r   C = [ ] , B ; f o r ( B   i n   t h i s . _ c o n f i g s ) { i f ( A . h a s O w n P r o p e r t y ( t h i s . _ c o n f i g s , B ) & & ! A . i s U n d e f i n e d ( t h i s . _ c o n f i g s [ B ] ) ) { C [ C . l e n g t h ] = B ; } } r e t u r n   C ; } , s e t A t t r i b u t e s : f u n c t i o n ( D , B ) { f o r ( v a r   C   i n   D ) { i f ( A . h a s O w n P r o p e r t y ( D , C ) ) { t h i s . s e t ( C , D [ C ] , B ) ; } } } , r e s e t V a l u e : f u n c t i o n ( C , B ) { t h i s . _ c o n f i g s = t h i s . _ c o n f i g s | | { } ; i f ( t h i s . _ c o n f i g s [ C ] ) { t h i s . s e t ( C , t h i s . _ c o n f i g s [ C ] . _ i n i t i a l C o n f i g . v a l u e , B ) ; r e t u r n   t r u e ; } r e t u r n   f a l s e ; } , r e f r e s h : f u n c t i o n ( E , C ) { t h i s . _ c o n f i g s = t h i s . _ c o n f i g s | | { } ; v a r   F = t h i s . _ c o n f i g s ; E = ( ( A . i s S t r i n g ( E ) ) ? [ E ] : E ) | | t h i s . g e t A t t r i b u t e K e y s ( ) ; f o r ( v a r   D = 0 , B = E . l e n g t h ; D < B ; + + D ) { i f ( F . h a s O w n P r o p e r t y ( E [ D ] ) ) { t h i s . _ c o n f i g s [ E [ D ] ] . r e f r e s h ( C ) ; } } } , r e g i s t e r : f u n c t i o n ( B , C ) { t h i s . s e t A t t r i b u t e C o n f i g ( B , C ) ; } , g e t A t t r i b u t e C o n f i g : f u n c t i o n ( C ) { t h i s . _ c o n f i g s = t h i s . _ c o n f i g s | | { } ; v a r   B = t h i s . _ c o n f i g s [ C ] | | { } ; v a r   D = { } ; f o r ( C   i n   B ) { i f ( A . h a s O w n P r o p e r t y ( B , C ) ) { D [ C ] = B [ C ] ; } } r e t u r n   D ; } , s e t A t t r i b u t e C o n f i g : f u n c t i o n ( B , C , D ) { t h i s . _ c o n f i g s = t h i s . _ c o n f i g s | | { } ; C = C | | { } ; i f ( ! t h i s . _ c o n f i g s [ B ] ) { C . n a m e = B ; t h i s . _ c o n f i g s [ B ] = t h i s . c r e a t e A t t r i b u t e ( C ) ; } e l s e { t h i s . _ c o n f i g s [ B ] . c o n f i g u r e ( C , D ) ; } } , c o n f i g u r e A t t r i b u t e : f u n c t i o n ( B , C , D ) { t h i s . s e t A t t r i b u t e C o n f i g ( B , C , D ) ; } , r e s e t A t t r i b u t e C o n f i g : f u n c t i o n ( B ) { t h i s . _ c o n f i g s = t h i s . _ c o n f i g s | | { } ; t h i s . _ c o n f i g s [ B ] . r e s e t C o n f i g ( ) ; } , s u b s c r i b e : f u n c t i o n ( B , C ) { t h i s . _ e v e n t s = t h i s . _ e v e n t s | | { } ; i f ( ! ( B   i n   t h i s . _ e v e n t s ) ) { t h i s . _ e v e n t s [ B ] = t h i s . c r e a t e E v e n t ( B ) ; } Y A H O O . u t i l . E v e n t P r o v i d e r . p r o t o t y p e . s u b s c r i b e . a p p l y ( t h i s , a r g u m e n t s ) ; } , o n : f u n c t i o n ( ) { t h i s . s u b s c r i b e . a p p l y ( t h i s , a r g u m e n t s ) ; } , a d d L i s t e n e r : f u n c t i o n ( ) { t h i s . s u b s c r i b e . a p p l y ( t h i s , a r g u m e n t s ) ; } , f i r e B e f o r e C h a n g e E v e n t : f u n c t i o n ( C ) { v a r   B = " b e f o r e " ; B + = C . t y p e . c h a r A t ( 0 ) . t o U p p e r C a s e ( ) + C . t y p e . s u b s t r ( 1 ) + " C h a n g e " ; C . t y p e = B ; r e t u r n   t h i s . f i r e E v e n t ( C . t y p e , C ) ; } , f i r e C h a n g e E v e n t : f u n c t i o n ( B ) { B . t y p e + = " C h a n g e " ; r e t u r n   t h i s . f i r e E v e n t ( B . t y p e , B ) ; } , c r e a t e A t t r i b u t e : f u n c t i o n ( B ) { r e t u r n   n e w   Y A H O O . u t i l . A t t r i b u t e ( B , t h i s ) ; } } ; Y A H O O . a u g m e n t ( Y A H O O . u t i l . A t t r i b u t e P r o v i d e r , Y A H O O . u t i l . E v e n t P r o v i d e r ) ; } ) ( ) ; ( f u n c t i o n ( ) { v a r   B = Y A H O O . u t i l . D o m , C = Y A H O O . u t i l . A t t r i b u t e P r o v i d e r ; v a r   A = f u n c t i o n ( D , E ) { t h i s . i n i t . a p p l y ( t h i s , a r g u m e n t s ) ; } ; A . D O M _ E V E N T S = { " c l i c k " : t r u e , " d b l c l i c k " : t r u e , " k e y d o w n " : t r u e , " k e y p r e s s " : t r u e , " k e y u p " : t r u e , " m o u s e d o w n " : t r u e , " m o u s e m o v e " : t r u e , " m o u s e o u t " : t r u e , " m o u s e o v e r " : t r u e , " m o u s e u p " : t r u e , " f o c u s " : t r u e , " b l u r " : t r u e , " s u b m i t " : t r u e , " c h a n g e " : t r u e } ; A . p r o t o t y p e = { D O M _ E V E N T S : n u l l , D E F A U L T _ H T M L _ S E T T E R : f u n c t i o n ( F , D ) { v a r   E = t h i s . g e t ( " e l e m e n t " ) ; i f ( E ) { E [ D ] = F ; } } , D E F A U L T _ H T M L _ G E T T E R : f u n c t i o n ( D ) { v a r   E = t h i s . g e t ( " e l e m e n t " ) , F ; i f ( E ) { F = E [ D ] ; } r e t u r n   F ; } , a p p e n d C h i l d : f u n c t i o n ( D ) { D = D . g e t ? D . g e t ( " e l e m e n t " ) : D ; r e t u r n   t h i s . g e t ( " e l e m e n t " ) . a p p e n d C h i l d ( D ) ; } , g e t E l e m e n t s B y T a g N a m e : f u n c t i o n ( D ) { r e t u r n   t h i s . g e t ( " e l e m e n t " ) . g e t E l e m e n t s B y T a g N a m e ( D ) ; } , h a s C h i l d N o d e s : f u n c t i o n ( ) { r e t u r n   t h i s . g e t ( " e l e m e n t " ) . h a s C h i l d N o d e s ( ) ; } , i n s e r t B e f o r e : f u n c t i o n ( D , E ) { D = D . g e t ? D . g e t ( " e l e m e n t " ) : D ; E = ( E & & E . g e t ) ? E . g e t ( " e l e m e n t " ) : E ; r e t u r n   t h i s . g e t ( " e l e m e n t " ) . i n s e r t B e f o r e ( D , E ) ; } , r e m o v e C h i l d : f u n c t i o n ( D ) { D = D . g e t ? D . g e t ( " e l e m e n t " ) : D ; r e t u r n   t h i s . g e t ( " e l e m e n t " ) . r e m o v e C h i l d ( D ) ; } , r e p l a c e C h i l d : f u n c t i o n ( D , E ) { D = D . g e t ? D . g e t ( " e l e m e n t " ) : D ; E = E . g e t ? E . g e t ( " e l e m e n t " ) : E ; r e t u r n   t h i s . g e t ( " e l e m e n t " ) . r e p l a c e C h i l d ( D , E ) ; } , i n i t A t t r i b u t e s : f u n c t i o n ( D ) { } , a d d L i s t e n e r : f u n c t i o n ( H , G , I , F ) { v a r   E = t h i s . g e t ( " e l e m e n t " ) | | t h i s . g e t ( " i d " ) ; F = F | | t h i s ; v a r   D = t h i s ; i f ( ! t h i s . _ e v e n t s [ H ] ) { i f ( E & & t h i s . D O M _ E V E N T S [ H ] ) { Y A H O O . u t i l . E v e n t . a d d L i s t e n e r ( E , H , f u n c t i o n ( J ) { i f ( J . s r c E l e m e n t & & ! J . t a r g e t ) { J . t a r g e t = J . s r c E l e m e n t ; } D . f i r e E v e n t ( H , J ) ; } , I , F ) ; } t h i s . c r e a t e E v e n t ( H , t h i s ) ; } r e t u r n   Y A H O O . u t i l . E v e n t P r o v i d e r . p r o t o t y p e . s u b s c r i b e . a p p l y ( t h i s , a r g u m e n t s ) ; } , o n : f u n c t i o n ( ) { r e t u r n   t h i s . a d d L i s t e n e r . a p p l y ( t h i s , a r g u m e n t s ) ; } , s u b s c r i b e : f u n c t i o n ( ) { r e t u r n   t h i s . a d d L i s t e n e r . a p p l y ( t h i s , a r g u m e n t s ) ; } , r e m o v e L i s t e n e r : f u n c t i o n ( E , D ) { r e t u r n   t h i s . u n s u b s c r i b e . a p p l y ( t h i s , a r g u m e n t s ) ; } , a d d C l a s s : f u n c t i o n ( D ) { B . a d d C l a s s ( t h i s . g e t ( " e l e m e n t " ) , D ) ; } , 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 ( E , D ) { r e t u r n   B . g e t E l e m e n t s B y C l a s s N a m e ( E , D , t h i s . g e t ( " e l e m e n t " ) ) ; } , h a s C l a s s : f u n c t i o n ( D ) { r e t u r n   B . h a s C l a s s ( t h i s . g e t ( " e l e m e n t " ) , D ) ; } , r e m o v e C l a s s : f u n c t i o n ( D ) { r e t u r n   B . r e m o v e C l a s s ( t h i s . g e t ( " e l e m e n t " ) , D ) ; } , r e p l a c e C l a s s : f u n c t i o n ( E , D ) { r e t u r n   B . r e p l a c e C l a s s ( t h i s . g e t ( " e l e m e n t " ) , E , D ) ; } , s e t S t y l e : f u n c t i o n ( E , D ) { r e t u r n   B . s e t S t y l e ( t h i s . g e t ( " e l e m e n t " ) , E , D ) ; } , g e t S t y l e : f u n c t i o n ( D ) { r e t u r n   B . g e t S t y l e ( t h i s . g e t ( " e l e m e n t " ) , D ) ; } , f i r e Q u e u e : f u n c t i o n ( ) { v a r   E = t h i s . _ q u e u e ; f o r ( v a r   F = 0 , D = E . l e n g t h ; F < D ; + + F ) { t h i s [ E [ F ] [ 0 ] ] . a p p l y ( t h i s , E [ F ] [ 1 ] ) ; } } , a p p e n d T o : f u n c t i o n ( E , F ) { E = ( E . g e t ) ? E . g e t ( " e l e m e n t " ) : B . g e t ( E ) ; t h i s . f i r e E v e n t ( " b e f o r e A p p e n d T o " , { t y p e : " b e f o r e A p p e n d T o " , t a r g e t : E } ) ;  
 F = ( F & & F . g e t ) ? F . g e t ( " e l e m e n t " ) : B . g e t ( F ) ; v a r   D = t h i s . g e t ( " e l e m e n t " ) ; i f ( ! D ) { r e t u r n   f a l s e ; } i f ( ! E ) { r e t u r n   f a l s e ; } i f ( D . p a r e n t ! = E ) { i f ( F ) { E . i n s e r t B e f o r e ( D , F ) ; } e l s e { E . a p p e n d C h i l d ( D ) ; } } t h i s . f i r e E v e n t ( " a p p e n d T o " , { t y p e : " a p p e n d T o " , t a r g e t : E } ) ; r e t u r n   D ; } , g e t : f u n c t i o n ( D ) { v a r   F = t h i s . _ c o n f i g s | | { } , E = F . e l e m e n t ; i f ( E & & ! F [ D ] & & ! Y A H O O . l a n g . i s U n d e f i n e d ( E . v a l u e [ D ] ) ) { t h i s . _ s e t H T M L A t t r C o n f i g ( D ) ; } r e t u r n   C . p r o t o t y p e . g e t . c a l l ( t h i s , D ) ; } , s e t A t t r i b u t e s : f u n c t i o n ( J , G ) { v a r   E = { } , H = t h i s . _ c o n f i g O r d e r ; f o r ( v a r   I = 0 , D = H . l e n g t h ; I < D ; + + I ) { i f ( J [ H [ I ] ] ! = = u n d e f i n e d ) { E [ H [ I ] ] = t r u e ; t h i s . s e t ( H [ I ] , J [ H [ I ] ] , G ) ; } } f o r ( v a r   F   i n   J ) { i f ( J . h a s O w n P r o p e r t y ( F ) & & ! E [ F ] ) { t h i s . s e t ( F , J [ F ] , G ) ; } } } , s e t : f u n c t i o n ( E , G , D ) { v a r   F = t h i s . g e t ( " e l e m e n t " ) ; i f ( ! F ) { t h i s . _ q u e u e [ t h i s . _ q u e u e . l e n g t h ] = [ " s e t " , a r g u m e n t s ] ; i f ( t h i s . _ c o n f i g s [ E ] ) { t h i s . _ c o n f i g s [ E ] . v a l u e = G ; } r e t u r n ; } i f ( ! t h i s . _ c o n f i g s [ E ] & & ! Y A H O O . l a n g . i s U n d e f i n e d ( F [ E ] ) ) { t h i s . _ s e t H T M L A t t r C o n f i g ( E ) ; } r e t u r n   C . p r o t o t y p e . s e t . a p p l y ( t h i s , a r g u m e n t s ) ; } , s e t A t t r i b u t e C o n f i g : f u n c t i o n ( D , E , F ) { t h i s . _ c o n f i g O r d e r . p u s h ( D ) ; C . p r o t o t y p e . s e t A t t r i b u t e C o n f i g . a p p l y ( t h i s , a r g u m e n t s ) ; } , c r e a t e E v e n t : f u n c t i o n ( E , D ) { t h i s . _ e v e n t s [ E ] = t r u e ; r e t u r n   C . p r o t o t y p e . c r e a t e E v e n t . a p p l y ( t h i s , a r g u m e n t s ) ; } , i n i t : f u n c t i o n ( E , D ) { t h i s . _ i n i t E l e m e n t ( E , D ) ; } , d e s t r o y : f u n c t i o n ( ) { v a r   D = t h i s . g e t ( " e l e m e n t " ) ; Y A H O O . u t i l . E v e n t . p u r g e E l e m e n t ( D , t r u e ) ; t h i s . u n s u b s c r i b e A l l ( ) ; i f ( D & & D . p a r e n t N o d e ) { D . p a r e n t N o d e . r e m o v e C h i l d ( D ) ; } t h i s . _ q u e u e = [ ] ; t h i s . _ e v e n t s = { } ; t h i s . _ c o n f i g s = { } ; t h i s . _ c o n f i g O r d e r = [ ] ; } , _ i n i t E l e m e n t : f u n c t i o n ( F , E ) { t h i s . _ q u e u e = t h i s . _ q u e u e | | [ ] ; t h i s . _ e v e n t s = t h i s . _ e v e n t s | | { } ; t h i s . _ c o n f i g s = t h i s . _ c o n f i g s | | { } ; t h i s . _ c o n f i g O r d e r = [ ] ; E = E | | { } ; E . e l e m e n t = E . e l e m e n t | | F | | n u l l ; v a r   H = f a l s e ; v a r   D = A . D O M _ E V E N T S ; t h i s . D O M _ E V E N T S = t h i s . D O M _ E V E N T S | | { } ; f o r ( v a r   G   i n   D ) { i f ( D . h a s O w n P r o p e r t y ( G ) ) { t h i s . D O M _ E V E N T S [ G ] = D [ G ] ; } } i f ( t y p e o f   E . e l e m e n t = = = " s t r i n g " ) { t h i s . _ s e t H T M L A t t r C o n f i g ( " i d " , { v a l u e : E . e l e m e n t } ) ; } i f ( B . g e t ( E . e l e m e n t ) ) { H = t r u e ; t h i s . _ i n i t H T M L E l e m e n t ( E ) ; t h i s . _ i n i t C o n t e n t ( E ) ; } Y A H O O . u t i l . E v e n t . o n A v a i l a b l e ( E . e l e m e n t , f u n c t i o n ( ) { i f ( ! H ) { t h i s . _ i n i t H T M L E l e m e n t ( E ) ; } t h i s . f i r e E v e n t ( " a v a i l a b l e " , { t y p e : " a v a i l a b l e " , t a r g e t : B . g e t ( E . e l e m e n t ) } ) ; } , t h i s , t r u e ) ; Y A H O O . u t i l . E v e n t . o n C o n t e n t R e a d y ( E . e l e m e n t , f u n c t i o n ( ) { i f ( ! H ) { t h i s . _ i n i t C o n t e n t ( E ) ; } t h i s . f i r e E v e n t ( " c o n t e n t R e a d y " , { t y p e : " c o n t e n t R e a d y " , t a r g e t : B . g e t ( E . e l e m e n t ) } ) ; } , t h i s , t r u e ) ; } , _ i n i t H T M L E l e m e n t : f u n c t i o n ( D ) { t h i s . s e t A t t r i b u t e C o n f i g ( " e l e m e n t " , { v a l u e : B . g e t ( D . e l e m e n t ) , r e a d O n l y : t r u e } ) ; } , _ i n i t C o n t e n t : f u n c t i o n ( D ) { t h i s . i n i t A t t r i b u t e s ( D ) ; t h i s . s e t A t t r i b u t e s ( D , t r u e ) ; t h i s . f i r e Q u e u e ( ) ; } , _ s e t H T M L A t t r C o n f i g : f u n c t i o n ( D , F ) { v a r   E = t h i s . g e t ( " e l e m e n t " ) ; F = F | | { } ; F . n a m e = D ; F . s e t t e r = F . s e t t e r | | t h i s . D E F A U L T _ H T M L _ S E T T E R ; F . g e t t e r = F . g e t t e r | | t h i s . D E F A U L T _ H T M L _ G E T T E R ; F . v a l u e = F . v a l u e | | E [ D ] ; t h i s . _ c o n f i g s [ D ] = n e w   Y A H O O . u t i l . A t t r i b u t e ( F , t h i s ) ; } } ; Y A H O O . a u g m e n t ( A , C ) ; Y A H O O . u t i l . E l e m e n t = A ; } ) ( ) ; Y A H O O . r e g i s t e r ( " e l e m e n t " , Y A H O O . u t i l . E l e m e n t , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ;  
  
 / *  
 C o p y r i g h t   ( c )   2 0 0 9 ,   Y a h o o !   I n c .   A l l   r i g h t s   r e s e r v e d .  
 C o d e   l i c e n s e d   u n d e r   t h e   B S D   L i c e n s e :  
 h t t p : / / d e v e l o p e r . y a h o o . n e t / y u i / l i c e n s e . t x t  
 v e r s i o n :   2 . 7 . 0  
 r e s i z e - m i n . j s  
 * /  
 ( f u n c t i o n ( ) { v a r   E = Y A H O O . u t i l . D o m , A = Y A H O O . u t i l . E v e n t , C = Y A H O O . l a n g ; v a r   B = f u n c t i o n ( F , D ) { v a r   G = { e l e m e n t : F , a t t r i b u t e s : D | | { } } ; B . s u p e r c l a s s . c o n s t r u c t o r . c a l l ( t h i s , G . e l e m e n t , G . a t t r i b u t e s ) ; } ; B . _ i n s t a n c e s = { } ; B . g e t R e s i z e B y I d = f u n c t i o n ( D ) { i f ( B . _ i n s t a n c e s [ D ] ) { r e t u r n   B . _ i n s t a n c e s [ D ] ; } r e t u r n   f a l s e ; } ; Y A H O O . e x t e n d ( B , Y A H O O . u t i l . E l e m e n t , { C S S _ R E S I Z E : " y u i - r e s i z e " , C S S _ D R A G : " y u i - d r a g g a b l e " , C S S _ H O V E R : " y u i - r e s i z e - h o v e r " , C S S _ P R O X Y : " y u i - r e s i z e - p r o x y " , C S S _ W R A P : " y u i - r e s i z e - w r a p " , C S S _ K N O B : " y u i - r e s i z e - k n o b " , C S S _ H I D D E N : " y u i - r e s i z e - h i d d e n " , C S S _ H A N D L E : " y u i - r e s i z e - h a n d l e " , C S S _ S T A T U S : " y u i - r e s i z e - s t a t u s " , C S S _ G H O S T : " y u i - r e s i z e - g h o s t " , C S S _ R E S I Z I N G : " y u i - r e s i z e - r e s i z i n g " , _ r e s i z e E v e n t : n u l l , d d : n u l l , b r o w s e r : Y A H O O . e n v . u a , _ l o c k e d : n u l l , _ p o s i t i o n e d : n u l l , _ d d s : n u l l , _ w r a p : n u l l , _ p r o x y : n u l l , _ h a n d l e s : n u l l , _ c u r r e n t H a n d l e : n u l l , _ c u r r e n t D D : n u l l , _ c a c h e : n u l l , _ a c t i v e : n u l l , _ c r e a t e P r o x y : f u n c t i o n ( ) { i f ( t h i s . g e t ( " p r o x y " ) ) { t h i s . _ p r o x y = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; t h i s . _ p r o x y . c l a s s N a m e = t h i s . C S S _ P R O X Y ; t h i s . _ p r o x y . s t y l e . h e i g h t = t h i s . g e t ( " e l e m e n t " ) . c l i e n t H e i g h t + " p x " ; t h i s . _ p r o x y . s t y l e . w i d t h = t h i s . g e t ( " e l e m e n t " ) . c l i e n t W i d t h + " p x " ; t h i s . _ w r a p . p a r e n t N o d e . a p p e n d C h i l d ( t h i s . _ p r o x y ) ; } e l s e { t h i s . s e t ( " a n i m a t e " , f a l s e ) ; } } , _ c r e a t e W r a p : f u n c t i o n ( ) { t h i s . _ p o s i t i o n e d = f a l s e ; i f ( t h i s . g e t ( " w r a p " ) = = = f a l s e ) { s w i t c h ( t h i s . g e t ( " 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 ( ) ) { c a s e " i m g " : c a s e " t e x t a r e a " : c a s e " i n p u t " : c a s e " i f r a m e " : c a s e " s e l e c t " : t h i s . s e t ( " w r a p " , t r u e ) ; b r e a k ; } } i f ( t h i s . g e t ( " w r a p " ) = = = t r u e ) { t h i s . _ w r a p = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; t h i s . _ w r a p . i d = t h i s . g e t ( " e l e m e n t " ) . i d + " _ w r a p " ; t h i s . _ w r a p . c l a s s N a m e = t h i s . C S S _ W R A P ; i f ( t h i s . g e t ( " 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 ( ) = = " t e x t a r e a " ) { E . a d d C l a s s ( t h i s . _ w r a p , " y u i - r e s i z e - t e x t a r e a " ) ; } E . s e t S t y l e ( t h i s . _ w r a p , " w i d t h " , t h i s . g e t ( " w i d t h " ) + " p x " ) ; E . s e t S t y l e ( t h i s . _ w r a p , " h e i g h t " , t h i s . g e t ( " h e i g h t " ) + " p x " ) ; E . s e t S t y l e ( t h i s . _ w r a p , " z - i n d e x " , t h i s . g e t S t y l e ( " z - i n d e x " ) ) ; t h i s . s e t S t y l e ( " z - i n d e x " , 0 ) ; v a r   F = E . g e t S t y l e ( t h i s . g e t ( " e l e m e n t " ) , " p o s i t i o n " ) ; E . s e t S t y l e ( t h i s . _ w r a p , " p o s i t i o n " , ( ( F = = " s t a t i c " ) ? " r e l a t i v e " : F ) ) ; E . s e t S t y l e ( t h i s . _ w r a p , " t o p " , E . g e t S t y l e ( t h i s . g e t ( " e l e m e n t " ) , " t o p " ) ) ; E . s e t S t y l e ( t h i s . _ w r a p , " l e f t " , E . g e t S t y l e ( t h i s . g e t ( " e l e m e n t " ) , " l e f t " ) ) ; i f ( E . g e t S t y l e ( t h i s . g e t ( " e l e m e n t " ) , " p o s i t i o n " ) = = " a b s o l u t e " ) { t h i s . _ p o s i t i o n e d = t r u e ; E . s e t S t y l e ( t h i s . g e t ( " e l e m e n t " ) , " p o s i t i o n " , " r e l a t i v e " ) ; E . s e t S t y l e ( t h i s . g e t ( " e l e m e n t " ) , " t o p " , " 0 " ) ; E . s e t S t y l e ( t h i s . g e t ( " e l e m e n t " ) , " l e f t " , " 0 " ) ; } v a r   D = t h i s . g e t ( " e l e m e n t " ) . p a r e n t N o d e ; D . r e p l a c e C h i l d ( t h i s . _ w r a p , t h i s . g e t ( " e l e m e n t " ) ) ; t h i s . _ w r a p . a p p e n d C h i l d ( t h i s . g e t ( " e l e m e n t " ) ) ; } e l s e { t h i s . _ w r a p = t h i s . g e t ( " e l e m e n t " ) ; i f ( E . g e t S t y l e ( t h i s . _ w r a p , " p o s i t i o n " ) = = " a b s o l u t e " ) { t h i s . _ p o s i t i o n e d = t r u e ; } } i f ( t h i s . g e t ( " d r a g g a b l e " ) ) { t h i s . _ s e t u p D r a g D r o p ( ) ; } i f ( t h i s . g e t ( " h o v e r " ) ) { E . a d d C l a s s ( t h i s . _ w r a p , t h i s . C S S _ H O V E R ) ; } i f ( t h i s . g e t ( " k n o b H a n d l e s " ) ) { E . a d d C l a s s ( t h i s . _ w r a p , t h i s . C S S _ K N O B ) ; } i f ( t h i s . g e t ( " h i d d e n H a n d l e s " ) ) { E . a d d C l a s s ( t h i s . _ w r a p , t h i s . C S S _ H I D D E N ) ; } E . a d d C l a s s ( t h i s . _ w r a p , t h i s . C S S _ R E S I Z E ) ; } , _ s e t u p D r a g D r o p : f u n c t i o n ( ) { E . a d d C l a s s ( t h i s . _ w r a p , t h i s . C S S _ D R A G ) ; t h i s . d d = n e w   Y A H O O . u t i l . D D ( t h i s . _ w r a p , t h i s . g e t ( " i d " ) + " - r e s i z e " , { d r a g O n l y : t r u e , u s e S h i m : t h i s . g e t ( " u s e S h i m " ) } ) ; t h i s . d d . o n ( " d r a g E v e n t " , f u n c t i o n ( ) { t h i s . f i r e E v e n t ( " d r a g E v e n t " , a r g u m e n t s ) ; } , t h i s , t r u e ) ; } , _ c r e a t e H a n d l e s : f u n c t i o n ( ) { t h i s . _ h a n d l e s = { } ; t h i s . _ d d s = { } ; v a r   G = t h i s . g e t ( " h a n d l e s " ) ; f o r ( v a r   F = 0 ; F < G . l e n g t h ; F + + ) { t h i s . _ h a n d l e s [ G [ F ] ] = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; t h i s . _ h a n d l e s [ G [ F ] ] . i d = E . g e n e r a t e I d ( t h i s . _ h a n d l e s [ G [ F ] ] ) ; t h i s . _ h a n d l e s [ G [ F ] ] . c l a s s N a m e = t h i s . C S S _ H A N D L E + "   " + t h i s . C S S _ H A N D L E + " - " + G [ F ] ; v a r   D = 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 . c l a s s N a m e = t h i s . C S S _ H A N D L E + " - i n n e r - " + G [ F ] ; t h i s . _ h a n d l e s [ G [ F ] ] . a p p e n d C h i l d ( D ) ; t h i s . _ w r a p . a p p e n d C h i l d ( t h i s . _ h a n d l e s [ G [ F ] ] ) ; A . o n ( t h i s . _ h a n d l e s [ G [ F ] ] , " m o u s e o v e r " , t h i s . _ h a n d l e M o u s e O v e r , t h i s , t r u e ) ; A . o n ( t h i s . _ h a n d l e s [ G [ F ] ] , " m o u s e o u t " , t h i s . _ h a n d l e M o u s e O u t , t h i s , t r u e ) ; t h i s . _ d d s [ G [ F ] ] = n e w   Y A H O O . u t i l . D r a g D r o p ( t h i s . _ h a n d l e s [ G [ F ] ] , t h i s . g e t ( " i d " ) + " - h a n d l e - " + G , { u s e S h i m : t h i s . g e t ( " u s e S h i m " ) } ) ; t h i s . _ d d s [ G [ F ] ] . s e t P a d d i n g ( 1 5 , 1 5 , 1 5 , 1 5 ) ; t h i s . _ d d s [ G [ F ] ] . o n ( " s t a r t D r a g E v e n t " , t h i s . _ h a n d l e S t a r t D r a g , t h i s . _ d d s [ G [ F ] ] , t h i s ) ; t h i s . _ d d s [ G [ F ] ] . o n ( " m o u s e D o w n E v e n t " , t h i s . _ h a n d l e M o u s e D o w n , t h i s . _ d d s [ G [ F ] ] , t h i s ) ; } t h i s . _ s t a t u s = d o c u m e n t . c r e a t e E l e m e n t ( " s p a n " ) ; t h i s . _ s t a t u s . c l a s s N a m e = t h i s . C S S _ S T A T U S ; d o c u m e n t . b o d y . i n s e r t B e f o r e ( t h i s . _ s t a t u s , d o c u m e n t . b o d y . f i r s t C h i l d ) ; } , _ i e S e l e c t F i x : f u n c t i o n ( ) { r e t u r n   f a l s e ; } , _ i e S e l e c t B a c k : n u l l , _ s e t A u t o R a t i o : f u n c t i o n ( D ) { i f ( t h i s . g e t ( " a u t o R a t i o " ) ) { i f ( D & & D . s h i f t K e y ) { t h i s . s e t ( " r a t i o " , t r u e ) ; } e l s e { t h i s . s e t ( " r a t i o " , t h i s . _ c o n f i g s . r a t i o . _ i n i t i a l C o n f i g . v a l u e ) ; } } } , _ h a n d l e M o u s e D o w n : f u n c t i o n ( D ) { i f ( t h i s . _ l o c k e d ) { r e t u r n   f a l s e ; } i f ( E . g e t S t y l e ( t h i s . _ w r a p , " p o s i t i o n " ) = = " a b s o l u t e " ) { t h i s . _ p o s i t i o n e d = t r u e ; } i f ( D ) { t h i s . _ s e t A u t o R a t i o ( D ) ; } i f ( t h i s . b r o w s e r . i e ) { t h i s . _ i e S e l e c t B a c k = d o c u m e n t . b o d y . o n s e l e c t s t a r t ; d o c u m e n t . b o d y . o n s e l e c t s t a r t = t h i s . _ i e S e l e c t F i x ; } } , _ h a n d l e M o u s e O v e r : f u n c t i o n ( G ) { i f ( t h i s . _ l o c k e d ) { r e t u r n   f a l s e ; } E . r e m o v e C l a s s ( t h i s . _ w r a p , t h i s . C S S _ R E S I Z E ) ; i f ( t h i s . g e t ( " h o v e r " ) ) { E . r e m o v e C l a s s ( t h i s . _ w r a p , t h i s . C S S _ H O V E R ) ; } v a r   D = A . g e t T a r g e t ( G ) ; i f ( ! E . h a s C l a s s ( D , t h i s . C S S _ H A N D L E ) ) { D = D . p a r e n t N o d e ; } i f ( E . h a s C l a s s ( D , t h i s . C S S _ H A N D L E ) & & ! t h i s . _ a c t i v e ) { E . a d d C l a s s ( D , t h i s . C S S _ H A N D L E + " - a c t i v e " ) ; f o r ( v a r   F   i n   t h i s . _ h a n d l e s ) { i f ( C . h a s O w n P r o p e r t y ( t h i s . _ h a n d l e s , F ) ) { i f ( t h i s . _ h a n d l e s [ F ] = = D ) { E . a d d C l a s s ( D , t h i s . C S S _ H A N D L E + " - " + F + " - a c t i v e " ) ; b r e a k ; } } } } E . a d d C l a s s ( t h i s . _ w r a p , t h i s . C S S _ R E S I Z E ) ; } , _ h a n d l e M o u s e O u t : f u n c t i o n ( G ) { E . r e m o v e C l a s s ( t h i s . _ w r a p , t h i s . C S S _ R E S I Z E ) ; i f ( t h i s . g e t ( " h o v e r " ) & & ! t h i s . _ a c t i v e ) { E . a d d C l a s s ( t h i s . _ w r a p , t h i s . C S S _ H O V E R ) ; } v a r   D = A . g e t T a r g e t ( G ) ; i f ( ! E . h a s C l a s s ( D , t h i s . C S S _ H A N D L E ) ) { D = D . p a r e n t N o d e ; } i f ( E . h a s C l a s s ( D , t h i s . C S S _ H A N D L E ) & & ! t h i s . _ a c t i v e ) { E . r e m o v e C l a s s ( D , t h i s . C S S _ H A N D L E + " - a c t i v e " ) ; f o r ( v a r   F   i n   t h i s . _ h a n d l e s ) { i f ( C . h a s O w n P r o p e r t y ( t h i s . _ h a n d l e s , F ) ) { i f ( t h i s . _ h a n d l e s [ F ] = = D ) { E . r e m o v e C l a s s ( D , t h i s . C S S _ H A N D L E + " - " + F + " - a c t i v e " ) ; b r e a k ; } } } } E . a d d C l a s s ( t h i s . _ w r a p , t h i s . C S S _ R E S I Z E ) ; } , _ h a n d l e S t a r t D r a g : f u n c t i o n ( G , F ) { v a r   D = F . g e t D r a g E l ( ) ; i f ( E . h a s C l a s s ( D , t h i s . C S S _ H A N D L E ) ) { i f ( E . g e t S t y l e ( t h i s . _ w r a p , " p o s i t i o n " ) = = " a b s o l u t e " ) { t h i s . _ p o s i t i o n e d = t r u e ; } t h i s . _ a c t i v e = t r u e ; t h i s . _ c u r r e n t D D = F ; i f ( t h i s . _ p r o x y ) { t h i s . _ p r o x y . s t y l e . v i s i b i l i t y = " v i s i b l e " ; t h i s . _ p r o x y . s t y l e . z I n d e x = " 1 0 0 0 " ; t h i s . _ p r o x y . s t y l e . h e i g h t = t h i s . g e t ( " e l e m e n t " ) . c l i e n t H e i g h t + " p x " ; t h i s . _ p r o x y . s t y l e . w i d t h = t h i s . g e t ( " e l e m e n t " ) . c l i e n t W i d t h + " p x " ;  
 } f o r ( v a r   H   i n   t h i s . _ h a n d l e s ) { i f ( C . h a s O w n P r o p e r t y ( t h i s . _ h a n d l e s , H ) ) { i f ( t h i s . _ h a n d l e s [ H ] = = D ) { t h i s . _ c u r r e n t H a n d l e = H ; v a r   I = " _ h a n d l e _ f o r _ " + H ; E . a d d C l a s s ( D , t h i s . C S S _ H A N D L E + " - " + H + " - a c t i v e " ) ; F . o n ( " d r a g E v e n t " , t h i s [ I ] , t h i s , t r u e ) ; F . o n ( " m o u s e U p E v e n t " , t h i s . _ h a n d l e M o u s e U p , t h i s , t r u e ) ; b r e a k ; } } } E . a d d C l a s s ( D , t h i s . C S S _ H A N D L E + " - a c t i v e " ) ; i f ( t h i s . g e t ( " p r o x y " ) ) { v a r   J = E . g e t X Y ( t h i s . g e t ( " e l e m e n t " ) ) ; E . s e t X Y ( t h i s . _ p r o x y , J ) ; i f ( t h i s . g e t ( " g h o s t " ) ) { t h i s . a d d C l a s s ( t h i s . C S S _ G H O S T ) ; } } E . a d d C l a s s ( t h i s . _ w r a p , t h i s . C S S _ R E S I Z I N G ) ; t h i s . _ s e t C a c h e ( ) ; t h i s . _ u p d a t e S t a t u s ( t h i s . _ c a c h e . h e i g h t , t h i s . _ c a c h e . w i d t h , t h i s . _ c a c h e . t o p , t h i s . _ c a c h e . l e f t ) ; t h i s . f i r e E v e n t ( " s t a r t R e s i z e " , { t y p e : " s t a r t r e s i z e " , t a r g e t : t h i s } ) ; } } , _ s e t C a c h e : f u n c t i o n ( ) { t h i s . _ c a c h e . x y = E . g e t X Y ( t h i s . _ w r a p ) ; E . s e t X Y ( t h i s . _ w r a p , t h i s . _ c a c h e . x y ) ; t h i s . _ c a c h e . h e i g h t = t h i s . g e t ( " c l i e n t H e i g h t " ) ; t h i s . _ c a c h e . w i d t h = t h i s . g e t ( " c l i e n t W i d t h " ) ; t h i s . _ c a c h e . s t a r t . h e i g h t = t h i s . _ c a c h e . h e i g h t ; t h i s . _ c a c h e . s t a r t . w i d t h = t h i s . _ c a c h e . w i d t h ; t h i s . _ c a c h e . s t a r t . t o p = t h i s . _ c a c h e . x y [ 1 ] ; t h i s . _ c a c h e . s t a r t . l e f t = t h i s . _ c a c h e . x y [ 0 ] ; t h i s . _ c a c h e . t o p = t h i s . _ c a c h e . x y [ 1 ] ; t h i s . _ c a c h e . l e f t = t h i s . _ c a c h e . x y [ 0 ] ; t h i s . s e t ( " h e i g h t " , t h i s . _ c a c h e . h e i g h t , t r u e ) ; t h i s . s e t ( " w i d t h " , t h i s . _ c a c h e . w i d t h , t r u e ) ; } , _ h a n d l e M o u s e U p : f u n c t i o n ( F ) { t h i s . _ a c t i v e = f a l s e ; v a r   G = " _ h a n d l e _ f o r _ " + t h i s . _ c u r r e n t H a n d l e ; t h i s . _ c u r r e n t D D . u n s u b s c r i b e ( " d r a g E v e n t " , t h i s [ G ] , t h i s , t r u e ) ; t h i s . _ c u r r e n t D D . u n s u b s c r i b e ( " m o u s e U p E v e n t " , t h i s . _ h a n d l e M o u s e U p , t h i s , t r u e ) ; i f ( t h i s . _ p r o x y ) { t h i s . _ p r o x y . s t y l e . v i s i b i l i t y = " h i d d e n " ; t h i s . _ p r o x y . s t y l e . z I n d e x = " - 1 " ; i f ( t h i s . g e t ( " s e t S i z e " ) ) { t h i s . r e s i z e ( F , t h i s . _ c a c h e . h e i g h t , t h i s . _ c a c h e . w i d t h , t h i s . _ c a c h e . t o p , t h i s . _ c a c h e . l e f t , t r u e ) ; } e l s e { t h i s . f i r e E v e n t ( " r e s i z e " , { e v : " r e s i z e " , t a r g e t : t h i s , h e i g h t : t h i s . _ c a c h e . h e i g h t , w i d t h : t h i s . _ c a c h e . w i d t h , t o p : t h i s . _ c a c h e . t o p , l e f t : t h i s . _ c a c h e . l e f t } ) ; } i f ( t h i s . g e t ( " g h o s t " ) ) { t h i s . r e m o v e C l a s s ( t h i s . C S S _ G H O S T ) ; } } i f ( t h i s . g e t ( " h o v e r " ) ) { E . a d d C l a s s ( t h i s . _ w r a p , t h i s . C S S _ H O V E R ) ; } i f ( t h i s . _ s t a t u s ) { E . s e t S t y l e ( t h i s . _ s t a t u s , " d i s p l a y " , " n o n e " ) ; } i f ( t h i s . b r o w s e r . i e ) { d o c u m e n t . b o d y . o n s e l e c t s t a r t = t h i s . _ i e S e l e c t B a c k ; } i f ( t h i s . b r o w s e r . i e ) { E . r e m o v e C l a s s ( t h i s . _ w r a p , t h i s . C S S _ R E S I Z E ) ; } f o r ( v a r   D   i n   t h i s . _ h a n d l e s ) { i f ( C . h a s O w n P r o p e r t y ( t h i s . _ h a n d l e s , D ) ) { E . r e m o v e C l a s s ( t h i s . _ h a n d l e s [ D ] , t h i s . C S S _ H A N D L E + " - a c t i v e " ) ; } } i f ( t h i s . g e t ( " h o v e r " ) & & ! t h i s . _ a c t i v e ) { E . a d d C l a s s ( t h i s . _ w r a p , t h i s . C S S _ H O V E R ) ; } E . r e m o v e C l a s s ( t h i s . _ w r a p , t h i s . C S S _ R E S I Z I N G ) ; E . r e m o v e C l a s s ( t h i s . _ h a n d l e s [ t h i s . _ c u r r e n t H a n d l e ] , t h i s . C S S _ H A N D L E + " - " + t h i s . _ c u r r e n t H a n d l e + " - a c t i v e " ) ; E . r e m o v e C l a s s ( t h i s . _ h a n d l e s [ t h i s . _ c u r r e n t H a n d l e ] , t h i s . C S S _ H A N D L E + " - a c t i v e " ) ; i f ( t h i s . b r o w s e r . i e ) { E . a d d C l a s s ( t h i s . _ w r a p , t h i s . C S S _ R E S I Z E ) ; } t h i s . _ r e s i z e E v e n t = n u l l ; t h i s . _ c u r r e n t H a n d l e = n u l l ; i f ( ! t h i s . g e t ( " a n i m a t e " ) ) { t h i s . s e t ( " h e i g h t " , t h i s . _ c a c h e . h e i g h t , t r u e ) ; t h i s . s e t ( " w i d t h " , t h i s . _ c a c h e . w i d t h , t r u e ) ; } t h i s . f i r e E v e n t ( " e n d R e s i z e " , { e v : " e n d R e s i z e " , t a r g e t : t h i s , h e i g h t : t h i s . _ c a c h e . h e i g h t , w i d t h : t h i s . _ c a c h e . w i d t h , t o p : t h i s . _ c a c h e . t o p , l e f t : t h i s . _ c a c h e . l e f t } ) ; } , _ s e t R a t i o : f u n c t i o n ( K , N , Q , I ) { v a r   O = K , G = N ; i f ( t h i s . g e t ( " r a t i o " ) ) { v a r   P = t h i s . _ c a c h e . h e i g h t , H = t h i s . _ c a c h e . w i d t h , F = p a r s e I n t ( t h i s . g e t ( " h e i g h t " ) , 1 0 ) , L = p a r s e I n t ( t h i s . g e t ( " w i d t h " ) , 1 0 ) , M = t h i s . g e t ( " m a x H e i g h t " ) , R = t h i s . g e t ( " m i n H e i g h t " ) , D = t h i s . g e t ( " m a x W i d t h " ) , J = t h i s . g e t ( " m i n W i d t h " ) ; s w i t c h ( t h i s . _ c u r r e n t H a n d l e ) { c a s e " l " : K = F * ( N / L ) ; K = M a t h . m i n ( M a t h . m a x ( R , K ) , M ) ; N = L * ( K / F ) ; Q = ( t h i s . _ c a c h e . s t a r t . t o p - ( - ( ( F - K ) / 2 ) ) ) ; I = ( t h i s . _ c a c h e . s t a r t . l e f t - ( - ( ( L - N ) ) ) ) ; b r e a k ; c a s e " r " : K = F * ( N / L ) ; K = M a t h . m i n ( M a t h . m a x ( R , K ) , M ) ; N = L * ( K / F ) ; Q = ( t h i s . _ c a c h e . s t a r t . t o p - ( - ( ( F - K ) / 2 ) ) ) ; b r e a k ; c a s e " t " : N = L * ( K / F ) ; K = F * ( N / L ) ; I = ( t h i s . _ c a c h e . s t a r t . l e f t - ( - ( ( L - N ) / 2 ) ) ) ; Q = ( t h i s . _ c a c h e . s t a r t . t o p - ( - ( ( F - K ) ) ) ) ; b r e a k ; c a s e " b " : N = L * ( K / F ) ; K = F * ( N / L ) ; I = ( t h i s . _ c a c h e . s t a r t . l e f t - ( - ( ( L - N ) / 2 ) ) ) ; b r e a k ; c a s e " b l " : K = F * ( N / L ) ; N = L * ( K / F ) ; I = ( t h i s . _ c a c h e . s t a r t . l e f t - ( - ( ( L - N ) ) ) ) ; b r e a k ; c a s e " b r " : K = F * ( N / L ) ; N = L * ( K / F ) ; b r e a k ; c a s e " t l " : K = F * ( N / L ) ; N = L * ( K / F ) ; I = ( t h i s . _ c a c h e . s t a r t . l e f t - ( - ( ( L - N ) ) ) ) ; Q = ( t h i s . _ c a c h e . s t a r t . t o p - ( - ( ( F - K ) ) ) ) ; b r e a k ; c a s e " t r " : K = F * ( N / L ) ; N = L * ( K / F ) ; I = ( t h i s . _ c a c h e . s t a r t . l e f t ) ; Q = ( t h i s . _ c a c h e . s t a r t . t o p - ( - ( ( F - K ) ) ) ) ; b r e a k ; } O = t h i s . _ c h e c k H e i g h t ( K ) ; G = t h i s . _ c h e c k W i d t h ( N ) ; i f ( ( O ! = K ) | | ( G ! = N ) ) { Q = 0 ; I = 0 ; i f ( O ! = K ) { G = t h i s . _ c a c h e . w i d t h ; } i f ( G ! = N ) { O = t h i s . _ c a c h e . h e i g h t ; } } } r e t u r n [ O , G , Q , I ] ; } , _ u p d a t e S t a t u s : f u n c t i o n ( K , G , J , F ) { i f ( t h i s . _ r e s i z e E v e n t & & ( ! C . i s S t r i n g ( t h i s . _ r e s i z e E v e n t ) ) ) { K = ( ( K = = = 0 ) ? t h i s . _ c a c h e . s t a r t . h e i g h t : K ) ; G = ( ( G = = = 0 ) ? t h i s . _ c a c h e . s t a r t . w i d t h : G ) ; v a r   I = p a r s e I n t ( t h i s . g e t ( " h e i g h t " ) , 1 0 ) , D = p a r s e I n t ( t h i s . g e t ( " w i d t h " ) , 1 0 ) ; i f ( i s N a N ( I ) ) { I = p a r s e I n t ( K , 1 0 ) ; } i f ( i s N a N ( D ) ) { D = p a r s e I n t ( G , 1 0 ) ; } v a r   L = ( p a r s e I n t ( K , 1 0 ) - I ) ; v a r   H = ( p a r s e I n t ( G , 1 0 ) - D ) ; t h i s . _ c a c h e . o f f s e t H e i g h t = L ; t h i s . _ c a c h e . o f f s e t W i d t h = H ; i f ( t h i s . g e t ( " s t a t u s " ) ) { E . s e t S t y l e ( t h i s . _ s t a t u s , " d i s p l a y " , " i n l i n e " ) ; t h i s . _ s t a t u s . i n n e r H T M L = " < s t r o n g > " + p a r s e I n t ( K , 1 0 ) + "   x   " + p a r s e I n t ( G , 1 0 ) + " < / s t r o n g > < e m > " + ( ( L > 0 ) ? " + " : " " ) + L + "   x   " + ( ( H > 0 ) ? " + " : " " ) + H + " < / e m > " ; E . s e t X Y ( t h i s . _ s t a t u s , [ A . g e t P a g e X ( t h i s . _ r e s i z e E v e n t ) + 1 2 , A . g e t P a g e Y ( t h i s . _ r e s i z e E v e n t ) + 1 2 ] ) ; } } } , l o c k : f u n c t i o n ( D ) { t h i s . _ l o c k e d = t r u e ; i f ( D & & t h i s . d d ) { E . r e m o v e C l a s s ( t h i s . _ w r a p , " y u i - d r a g g a b l e " ) ; t h i s . d d . l o c k ( ) ; } r e t u r n   t h i s ; } , u n l o c k : f u n c t i o n ( D ) { t h i s . _ l o c k e d = f a l s e ; i f ( D & & t h i s . d d ) { E . a d d C l a s s ( t h i s . _ w r a p , " y u i - d r a g g a b l e " ) ; t h i s . d d . u n l o c k ( ) ; } r e t u r n   t h i s ; } , i s L o c k e d : f u n c t i o n ( ) { r e t u r n   t h i s . _ l o c k e d ; } , r e s e t : f u n c t i o n ( ) { t h i s . r e s i z e ( n u l l , t h i s . _ c a c h e . s t a r t . h e i g h t , t h i s . _ c a c h e . s t a r t . w i d t h , t h i s . _ c a c h e . s t a r t . t o p , t h i s . _ c a c h e . s t a r t . l e f t , t r u e ) ; r e t u r n   t h i s ; } , r e s i z e : f u n c t i o n ( M , J , P , Q , H , F , K ) { i f ( t h i s . _ l o c k e d ) { r e t u r n   f a l s e ; } t h i s . _ r e s i z e E v e n t = M ; v a r   G = t h i s . _ w r a p , I = t h i s . g e t ( " a n i m a t e " ) , O = t r u e ; i f ( t h i s . _ p r o x y & & ! F ) { G = t h i s . _ p r o x y ; I = f a l s e ; } t h i s . _ s e t A u t o R a t i o ( M ) ; i f ( t h i s . _ p o s i t i o n e d ) { i f ( t h i s . _ p r o x y ) { Q = t h i s . _ c a c h e . t o p - Q ; H = t h i s . _ c a c h e . l e f t - H ; } } v a r   L = t h i s . _ s e t R a t i o ( J , P , Q , H ) ; J = p a r s e I n t ( L [ 0 ] , 1 0 ) ; P = p a r s e I n t ( L [ 1 ] , 1 0 ) ; Q = p a r s e I n t ( L [ 2 ] , 1 0 ) ; H = p a r s e I n t ( L [ 3 ] , 1 0 ) ; i f ( Q = = 0 ) { Q = E . g e t Y ( G ) ; } i f ( H = = 0 ) { H = E . g e t X ( G ) ; } i f ( t h i s . _ p o s i t i o n e d ) { i f ( t h i s . _ p r o x y & & F ) { i f ( ! I ) { G . s t y l e . t o p = t h i s . _ p r o x y . s t y l e . t o p ; G . s t y l e . l e f t = t h i s . _ p r o x y . s t y l e . l e f t ; } e l s e { Q = t h i s . _ p r o x y . s t y l e . t o p ; H = t h i s . _ p r o x y . s t y l e . l e f t ; } } e l s e { i f ( ! t h i s . g e t ( " r a t i o " ) & & ! t h i s . _ p r o x y ) { Q = t h i s . _ c a c h e . t o p + - ( Q ) ; H = t h i s . _ c a c h e . l e f t + - ( H ) ; } i f ( Q ) { i f ( t h i s . g e t ( " m i n Y " ) ) { i f ( Q < t h i s . g e t ( " m i n Y " ) ) { Q = t h i s . g e t ( " m i n Y " ) ; } } i f ( t h i s . g e t ( " m a x Y " ) ) { i f ( Q > t h i s . g e t ( " m a x Y " ) ) { Q = t h i s . g e t ( " m a x Y " ) ; } } } i f ( H ) { i f ( t h i s . g e t ( " m i n X " ) ) { i f ( H < t h i s . g e t ( " m i n X " ) ) { H = t h i s . g e t ( " m i n X " ) ;  
 } } i f ( t h i s . g e t ( " m a x X " ) ) { i f ( ( H + P ) > t h i s . g e t ( " m a x X " ) ) { H = ( t h i s . g e t ( " m a x X " ) - P ) ; } } } } } i f ( ! K ) { v a r   N = t h i s . f i r e E v e n t ( " b e f o r e R e s i z e " , { e v : " b e f o r e R e s i z e " , t a r g e t : t h i s , h e i g h t : J , w i d t h : P , t o p : Q , l e f t : H } ) ; i f ( N = = = f a l s e ) { r e t u r n   f a l s e ; } } t h i s . _ u p d a t e S t a t u s ( J , P , Q , H ) ; i f ( t h i s . _ p o s i t i o n e d ) { i f ( t h i s . _ p r o x y & & F ) { } e l s e { i f ( Q ) { E . s e t Y ( G , Q ) ; t h i s . _ c a c h e . t o p = Q ; } i f ( H ) { E . s e t X ( G , H ) ; t h i s . _ c a c h e . l e f t = H ; } } } i f ( J ) { i f ( ! I ) { O = t r u e ; i f ( t h i s . _ p r o x y & & F ) { i f ( ! t h i s . g e t ( " s e t S i z e " ) ) { O = f a l s e ; } } i f ( O ) { G . s t y l e . h e i g h t = J + " p x " ; } i f ( ( t h i s . _ p r o x y & & F ) | | ! t h i s . _ p r o x y ) { i f ( t h i s . _ w r a p ! = t h i s . g e t ( " e l e m e n t " ) ) { t h i s . g e t ( " e l e m e n t " ) . s t y l e . h e i g h t = J + " p x " ; } } } t h i s . _ c a c h e . h e i g h t = J ; } i f ( P ) { t h i s . _ c a c h e . w i d t h = P ; i f ( ! I ) { O = t r u e ; i f ( t h i s . _ p r o x y & & F ) { i f ( ! t h i s . g e t ( " s e t S i z e " ) ) { O = f a l s e ; } } i f ( O ) { G . s t y l e . w i d t h = P + " p x " ; } i f ( ( t h i s . _ p r o x y & & F ) | | ! t h i s . _ p r o x y ) { i f ( t h i s . _ w r a p ! = t h i s . g e t ( " e l e m e n t " ) ) { t h i s . g e t ( " e l e m e n t " ) . s t y l e . w i d t h = P + " p x " ; } } } } i f ( I ) { i f ( Y A H O O . u t i l . A n i m ) { v a r   D = n e w   Y A H O O . u t i l . A n i m ( G , { h e i g h t : { t o : t h i s . _ c a c h e . h e i g h t } , w i d t h : { t o : t h i s . _ c a c h e . w i d t h } } , t h i s . g e t ( " a n i m a t e D u r a t i o n " ) , t h i s . g e t ( " a n i m a t e E a s i n g " ) ) ; i f ( t h i s . _ p o s i t i o n e d ) { i f ( Q ) { D . a t t r i b u t e s . t o p = { t o : p a r s e I n t ( Q , 1 0 ) } ; } i f ( H ) { D . a t t r i b u t e s . l e f t = { t o : p a r s e I n t ( H , 1 0 ) } ; } } i f ( t h i s . _ w r a p ! = t h i s . g e t ( " e l e m e n t " ) ) { D . o n T w e e n . s u b s c r i b e ( f u n c t i o n ( ) { t h i s . g e t ( " e l e m e n t " ) . s t y l e . h e i g h t = G . s t y l e . h e i g h t ; t h i s . g e t ( " e l e m e n t " ) . s t y l e . w i d t h = G . s t y l e . w i d t h ; } , t h i s , t r u e ) ; } D . o n C o m p l e t e . s u b s c r i b e ( f u n c t i o n ( ) { t h i s . s e t ( " h e i g h t " , J ) ; t h i s . s e t ( " w i d t h " , P ) ; t h i s . f i r e E v e n t ( " r e s i z e " , { e v : " r e s i z e " , t a r g e t : t h i s , h e i g h t : J , w i d t h : P , t o p : Q , l e f t : H } ) ; } , t h i s , t r u e ) ; D . a n i m a t e ( ) ; } } e l s e { i f ( t h i s . _ p r o x y & & ! F ) { t h i s . f i r e E v e n t ( " p r o x y R e s i z e " , { e v : " p r o x y r e s i z e " , t a r g e t : t h i s , h e i g h t : J , w i d t h : P , t o p : Q , l e f t : H } ) ; } e l s e { t h i s . f i r e E v e n t ( " r e s i z e " , { e v : " r e s i z e " , t a r g e t : t h i s , h e i g h t : J , w i d t h : P , t o p : Q , l e f t : H } ) ; } } r e t u r n   t h i s ; } , _ h a n d l e _ f o r _ b r : f u n c t i o n ( F ) { v a r   G = t h i s . _ s e t W i d t h ( F . e ) ; v a r   D = t h i s . _ s e t H e i g h t ( F . e ) ; t h i s . r e s i z e ( F . e , D , G , 0 , 0 ) ; } , _ h a n d l e _ f o r _ b l : f u n c t i o n ( G ) { v a r   H = t h i s . _ s e t W i d t h ( G . e , t r u e ) ; v a r   F = t h i s . _ s e t H e i g h t ( G . e ) ; v a r   D = ( H - t h i s . _ c a c h e . w i d t h ) ; t h i s . r e s i z e ( G . e , F , H , 0 , D ) ; } , _ h a n d l e _ f o r _ t l : f u n c t i o n ( G ) { v a r   I = t h i s . _ s e t W i d t h ( G . e , t r u e ) ; v a r   F = t h i s . _ s e t H e i g h t ( G . e , t r u e ) ; v a r   H = ( F - t h i s . _ c a c h e . h e i g h t ) ; v a r   D = ( I - t h i s . _ c a c h e . w i d t h ) ; t h i s . r e s i z e ( G . e , F , I , H , D ) ; } , _ h a n d l e _ f o r _ t r : f u n c t i o n ( F ) { v a r   H = t h i s . _ s e t W i d t h ( F . e ) ; v a r   D = t h i s . _ s e t H e i g h t ( F . e , t r u e ) ; v a r   G = ( D - t h i s . _ c a c h e . h e i g h t ) ; t h i s . r e s i z e ( F . e , D , H , G , 0 ) ; } , _ h a n d l e _ f o r _ r : f u n c t i o n ( D ) { t h i s . _ d d s . r . s e t Y C o n s t r a i n t ( 0 , 0 ) ; v a r   F = t h i s . _ s e t W i d t h ( D . e ) ; t h i s . r e s i z e ( D . e , 0 , F , 0 , 0 ) ; } , _ h a n d l e _ f o r _ l : f u n c t i o n ( F ) { t h i s . _ d d s . l . s e t Y C o n s t r a i n t ( 0 , 0 ) ; v a r   G = t h i s . _ s e t W i d t h ( F . e , t r u e ) ; v a r   D = ( G - t h i s . _ c a c h e . w i d t h ) ; t h i s . r e s i z e ( F . e , 0 , G , 0 , D ) ; } , _ h a n d l e _ f o r _ b : f u n c t i o n ( F ) { t h i s . _ d d s . b . s e t X C o n s t r a i n t ( 0 , 0 ) ; v a r   D = t h i s . _ s e t H e i g h t ( F . e ) ; t h i s . r e s i z e ( F . e , D , 0 , 0 , 0 ) ; } , _ h a n d l e _ f o r _ t : f u n c t i o n ( F ) { t h i s . _ d d s . t . s e t X C o n s t r a i n t ( 0 , 0 ) ; v a r   D = t h i s . _ s e t H e i g h t ( F . e , t r u e ) ; v a r   G = ( D - t h i s . _ c a c h e . h e i g h t ) ; t h i s . r e s i z e ( F . e , D , 0 , G , 0 ) ; } , _ s e t W i d t h : f u n c t i o n ( H , J ) { v a r   I = t h i s . _ c a c h e . x y [ 0 ] , G = t h i s . _ c a c h e . w i d t h , D = A . g e t P a g e X ( H ) , F = ( D - I ) ; i f ( J ) { F = ( I - D ) + p a r s e I n t ( t h i s . g e t ( " w i d t h " ) , 1 0 ) ; } F = t h i s . _ s n a p T i c k ( F , t h i s . g e t ( " x T i c k s " ) ) ; F = t h i s . _ c h e c k W i d t h ( F ) ; r e t u r n   F ; } , _ c h e c k W i d t h : f u n c t i o n ( D ) { i f ( t h i s . g e t ( " m i n W i d t h " ) ) { i f ( D < = t h i s . g e t ( " m i n W i d t h " ) ) { D = t h i s . g e t ( " m i n W i d t h " ) ; } } i f ( t h i s . g e t ( " m a x W i d t h " ) ) { i f ( D > = t h i s . g e t ( " m a x W i d t h " ) ) { D = t h i s . g e t ( " m a x W i d t h " ) ; } } r e t u r n   D ; } , _ c h e c k H e i g h t : f u n c t i o n ( D ) { i f ( t h i s . g e t ( " m i n H e i g h t " ) ) { i f ( D < = t h i s . g e t ( " m i n H e i g h t " ) ) { D = t h i s . g e t ( " m i n H e i g h t " ) ; } } i f ( t h i s . g e t ( " m a x H e i g h t " ) ) { i f ( D > = t h i s . g e t ( " m a x H e i g h t " ) ) { D = t h i s . g e t ( " m a x H e i g h t " ) ; } } r e t u r n   D ; } , _ s e t H e i g h t : f u n c t i o n ( G , I ) { v a r   H = t h i s . _ c a c h e . x y [ 1 ] , F = t h i s . _ c a c h e . h e i g h t , J = A . g e t P a g e Y ( G ) , D = ( J - H ) ; i f ( I ) { D = ( H - J ) + p a r s e I n t ( t h i s . g e t ( " h e i g h t " ) , 1 0 ) ; } D = t h i s . _ s n a p T i c k ( D , t h i s . g e t ( " y T i c k s " ) ) ; D = t h i s . _ c h e c k H e i g h t ( D ) ; r e t u r n   D ; } , _ s n a p T i c k : f u n c t i o n ( G , F ) { i f ( ! G | | ! F ) { r e t u r n   G ; } v a r   H = G ; v a r   D = G % F ; i f ( D > 0 ) { i f ( D > ( F / 2 ) ) { H = G + ( F - D ) ; } e l s e { H = G - D ; } } r e t u r n   H ; } , i n i t : f u n c t i o n ( H , F ) { t h i s . _ l o c k e d = f a l s e ; t h i s . _ c a c h e = { x y : [ ] , h e i g h t : 0 , w i d t h : 0 , t o p : 0 , l e f t : 0 , o f f s e t H e i g h t : 0 , o f f s e t W i d t h : 0 , s t a r t : { h e i g h t : 0 , w i d t h : 0 , t o p : 0 , l e f t : 0 } } ; B . s u p e r c l a s s . i n i t . c a l l ( t h i s , H , F ) ; t h i s . s e t ( " s e t S i z e " , t h i s . g e t ( " s e t S i z e " ) ) ; i f ( F . h e i g h t ) { t h i s . s e t ( " h e i g h t " , p a r s e I n t ( F . h e i g h t , 1 0 ) ) ; } e l s e { v a r   G = t h i s . g e t S t y l e ( " h e i g h t " ) ; i f ( G = = " a u t o " ) { t h i s . s e t ( " h e i g h t " , p a r s e I n t ( t h i s . g e t ( " e l e m e n t " ) . o f f s e t H e i g h t , 1 0 ) ) ; } } i f ( F . w i d t h ) { t h i s . s e t ( " w i d t h " , p a r s e I n t ( F . w i d t h , 1 0 ) ) ; } e l s e { v a r   D = t h i s . g e t S t y l e ( " w i d t h " ) ; i f ( D = = " a u t o " ) { t h i s . s e t ( " w i d t h " , p a r s e I n t ( t h i s . g e t ( " e l e m e n t " ) . o f f s e t W i d t h , 1 0 ) ) ; } } v a r   I = H ; i f ( ! C . i s S t r i n g ( I ) ) { I = E . g e n e r a t e I d ( I ) ; } B . _ i n s t a n c e s [ I ] = t h i s ; t h i s . _ a c t i v e = f a l s e ; t h i s . _ c r e a t e W r a p ( ) ; t h i s . _ c r e a t e P r o x y ( ) ; t h i s . _ c r e a t e H a n d l e s ( ) ; } , g e t P r o x y E l : f u n c t i o n ( ) { r e t u r n   t h i s . _ p r o x y ; } , g e t W r a p E l : f u n c t i o n ( ) { r e t u r n   t h i s . _ w r a p ; } , g e t S t a t u s E l : f u n c t i o n ( ) { r e t u r n   t h i s . _ s t a t u s ; } , g e t A c t i v e H a n d l e E l : f u n c t i o n ( ) { r e t u r n   t h i s . _ h a n d l e s [ t h i s . _ c u r r e n t H a n d l e ] ; } , i s A c t i v e : f u n c t i o n ( ) { r e t u r n ( ( t h i s . _ a c t i v e ) ? t r u e : f a l s e ) ; } , i n i t A t t r i b u t e s : f u n c t i o n ( D ) { B . s u p e r c l a s s . i n i t A t t r i b u t e s . c a l l ( t h i s , D ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " u s e S h i m " , { v a l u e : ( ( D . u s e S h i m = = = t r u e ) ? t r u e : f a l s e ) , v a l i d a t o r : Y A H O O . l a n g . i s B o o l e a n , m e t h o d : f u n c t i o n ( F ) { f o r ( v a r   G   i n   t h i s . _ d d s ) { i f ( C . h a s O w n P r o p e r t y ( t h i s . _ d d s , G ) ) { t h i s . _ d d s [ G ] . u s e S h i m = F ; } } i f ( t h i s . d d ) { t h i s . d d . u s e S h i m = F ; } } } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " s e t S i z e " , { v a l u e : ( ( D . s e t S i z e = = = f a l s e ) ? f a l s e : t r u e ) , v a l i d a t o r : Y A H O O . l a n g . i s B o o l e a n } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " w r a p " , { w r i t e O n c e : t r u e , v a l i d a t o r : Y A H O O . l a n g . i s B o o l e a n , v a l u e : D . w r a p | | f a l s e } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " h a n d l e s " , { w r i t e O n c e : t r u e , v a l u e : D . h a n d l e s | | [ " r " , " b " , " b r " ] , v a l i d a t o r : f u n c t i o n ( F ) { i f ( C . i s S t r i n g ( F ) & & F . t o L o w e r C a s e ( ) = = " a l l " ) { F = [ " t " , " b " , " r " , " l " , " b l " , " b r " , " t l " , " t r " ] ; } i f ( ! C . i s A r r a y ( F ) ) { F = F . r e p l a c e ( / ,   / g , " , " ) ; F = F . s p l i t ( " , " ) ; } t h i s . _ c o n f i g s . h a n d l e s . v a l u e = F ; } } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " w i d t h " , { v a l u e : D . w i d t h | | p a r s e I n t ( t h i s . g e t S t y l e ( " w i d t h " ) , 1 0 ) , v a l i d a t o r : Y A H O O . l a n g . i s N u m b e r , m e t h o d : f u n c t i o n ( F ) { F = p a r s e I n t ( F , 1 0 ) ; i f ( F > 0 ) { i f ( t h i s . g e t ( " s e t S i z e " ) ) { t h i s . s e t S t y l e ( " w i d t h " , F + " p x " ) ; } t h i s . _ c a c h e . w i d t h = F ; t h i s . _ c o n f i g s . w i d t h . v a l u e = F ; } } } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " h e i g h t " , { v a l u e : D . h e i g h t | | p a r s e I n t ( t h i s . g e t S t y l e ( " h e i g h t " ) , 1 0 ) , v a l i d a t o r : Y A H O O . l a n g . i s N u m b e r , m e t h o d : f u n c t i o n ( F ) { F = p a r s e I n t ( F , 1 0 ) ; i f ( F > 0 ) { i f ( t h i s . g e t ( " s e t S i z e " ) ) { t h i s . s e t S t y l e ( " h e i g h t " , F + " p x " ) ; } t h i s . _ c a c h e . h e i g h t = F ; t h i s . _ c o n f i g s . h e i g h t . v a l u e = F ;  
 } } } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " m i n W i d t h " , { v a l u e : D . m i n W i d t h | | 1 5 , v a l i d a t o r : Y A H O O . l a n g . i s N u m b e r } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " m i n H e i g h t " , { v a l u e : D . m i n H e i g h t | | 1 5 , v a l i d a t o r : Y A H O O . l a n g . i s N u m b e r } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " m a x W i d t h " , { v a l u e : D . m a x W i d t h | | 1 0 0 0 0 , v a l i d a t o r : Y A H O O . l a n g . i s N u m b e r } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " m a x H e i g h t " , { v a l u e : D . m a x H e i g h t | | 1 0 0 0 0 , v a l i d a t o r : Y A H O O . l a n g . i s N u m b e r } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " m i n Y " , { v a l u e : D . m i n Y | | f a l s e } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " m i n X " , { v a l u e : D . m i n X | | f a l s e } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " m a x Y " , { v a l u e : D . m a x Y | | f a l s e } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " m a x X " , { v a l u e : D . m a x X | | f a l s e } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " a n i m a t e " , { v a l u e : D . a n i m a t e | | f a l s e , v a l i d a t o r : f u n c t i o n ( G ) { v a r   F = t r u e ; i f ( ! Y A H O O . u t i l . A n i m ) { F = f a l s e ; } r e t u r n   F ; } } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " a n i m a t e E a s i n g " , { v a l u e : D . a n i m a t e E a s i n g | | f u n c t i o n ( ) { v a r   F = f a l s e ; i f ( Y A H O O . u t i l . E a s i n g & & Y A H O O . u t i l . E a s i n g . e a s e O u t ) { F = Y A H O O . u t i l . E a s i n g . e a s e O u t ; } r e t u r n   F ; } ( ) } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " a n i m a t e D u r a t i o n " , { v a l u e : D . a n i m a t e D u r a t i o n | | 0 . 5 } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " p r o x y " , { v a l u e : D . p r o x y | | f a l s e , v a l i d a t o r : Y A H O O . l a n g . i s B o o l e a n } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " r a t i o " , { v a l u e : D . r a t i o | | f a l s e , v a l i d a t o r : Y A H O O . l a n g . i s B o o l e a n } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " g h o s t " , { v a l u e : D . g h o s t | | f a l s e , v a l i d a t o r : Y A H O O . l a n g . i s B o o l e a n } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " d r a g g a b l e " , { v a l u e : D . d r a g g a b l e | | f a l s e , v a l i d a t o r : Y A H O O . l a n g . i s B o o l e a n , m e t h o d : f u n c t i o n ( F ) { i f ( F & & t h i s . _ w r a p ) { t h i s . _ s e t u p D r a g D r o p ( ) ; } e l s e { i f ( t h i s . d d ) { E . r e m o v e C l a s s ( t h i s . _ w r a p , t h i s . C S S _ D R A G ) ; t h i s . d d . u n r e g ( ) ; } } } } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " h o v e r " , { v a l u e : D . h o v e r | | f a l s e , v a l i d a t o r : Y A H O O . l a n g . i s B o o l e a n } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " h i d d e n H a n d l e s " , { v a l u e : D . h i d d e n H a n d l e s | | f a l s e , v a l i d a t o r : Y A H O O . l a n g . i s B o o l e a n } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " k n o b H a n d l e s " , { v a l u e : D . k n o b H a n d l e s | | f a l s e , v a l i d a t o r : Y A H O O . l a n g . i s B o o l e a n } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " x T i c k s " , { v a l u e : D . x T i c k s | | f a l s e } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " y T i c k s " , { v a l u e : D . y T i c k s | | f a l s e } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " s t a t u s " , { v a l u e : D . s t a t u s | | f a l s e , v a l i d a t o r : Y A H O O . l a n g . i s B o o l e a n } ) ; t h i s . s e t A t t r i b u t e C o n f i g ( " a u t o R a t i o " , { v a l u e : D . a u t o R a t i o | | f a l s e , v a l i d a t o r : Y A H O O . l a n g . i s B o o l e a n } ) ; } , d e s t r o y : f u n c t i o n ( ) { f o r ( v a r   F   i n   t h i s . _ h a n d l e s ) { i f ( C . h a s O w n P r o p e r t y ( t h i s . _ h a n d l e s , F ) ) { A . p u r g e E l e m e n t ( t h i s . _ h a n d l e s [ F ] ) ; t h i s . _ h a n d l e s [ F ] . p a r e n t N o d e . r e m o v e C h i l d ( t h i s . _ h a n d l e s [ F ] ) ; } } i f ( t h i s . _ p r o x y ) { t h i s . _ p r o x y . p a r e n t N o d e . r e m o v e C h i l d ( t h i s . _ p r o x y ) ; } i f ( t h i s . _ s t a t u s ) { t h i s . _ s t a t u s . p a r e n t N o d e . r e m o v e C h i l d ( t h i s . _ s t a t u s ) ; } i f ( t h i s . d d ) { t h i s . d d . u n r e g ( ) ; E . r e m o v e C l a s s ( t h i s . _ w r a p , t h i s . C S S _ D R A G ) ; } i f ( t h i s . _ w r a p ! = t h i s . g e t ( " e l e m e n t " ) ) { t h i s . s e t S t y l e ( " p o s i t i o n " , " " ) ; t h i s . s e t S t y l e ( " t o p " , " " ) ; t h i s . s e t S t y l e ( " l e f t " , " " ) ; t h i s . _ w r a p . p a r e n t N o d e . r e p l a c e C h i l d ( t h i s . g e t ( " e l e m e n t " ) , t h i s . _ w r a p ) ; } t h i s . r e m o v e C l a s s ( t h i s . C S S _ R E S I Z E ) ; d e l e t e   Y A H O O . u t i l . R e s i z e . _ i n s t a n c e s [ t h i s . g e t ( " i d " ) ] ; f o r ( v a r   D   i n   t h i s ) { i f ( C . h a s O w n P r o p e r t y ( t h i s , D ) ) { t h i s [ D ] = n u l l ; d e l e t e   t h i s [ D ] ; } } } , t o S t r i n g : f u n c t i o n ( ) { i f ( t h i s . g e t ) { r e t u r n " R e s i z e   ( # " + t h i s . g e t ( " i d " ) + " ) " ; } r e t u r n " R e s i z e   U t i l i t y " ; } } ) ; Y A H O O . u t i l . R e s i z e = B ; } ) ( ) ; Y A H O O . r e g i s t e r ( " r e s i z e " , Y A H O O . u t i l . R e s i z e , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ;  
  
  
 / *  
 C o p y r i g h t   ( c )   2 0 0 9 ,   Y a h o o !   I n c .   A l l   r i g h t s   r e s e r v e d .  
 C o d e   l i c e n s e d   u n d e r   t h e   B S D   L i c e n s e :  
 h t t p : / / d e v e l o p e r . y a h o o . n e t / y u i / l i c e n s e . t x t  
 v e r s i o n :   2 . 7 . 0  
 y a h o o - m i n . j s  
 * /  
 i f ( t y p e o f   Y A H O O = = " u n d e f i n e d " | | ! Y A H O O ) { v a r   Y A H O O = { } ; } Y A H O O . n a m e s p a c e = f u n c t i o n ( ) { v a r   A = a r g u m e n t s , E = n u l l , C , B , D ; f o r ( C = 0 ; C < A . l e n g t h ; C = C + 1 ) { D = ( " " + A [ C ] ) . s p l i t ( " . " ) ; E = Y A H O O ; f o r ( B = ( D [ 0 ] = = " Y A H O O " ) ? 1 : 0 ; B < D . l e n g t h ; B = B + 1 ) { E [ D [ B ] ] = E [ D [ B ] ] | | { } ; E = E [ D [ B ] ] ; } } r e t u r n   E ; } ; Y A H O O . l o g = f u n c t i o n ( D , A , C ) { v a r   B = Y A H O O . w i d g e t . L o g g e r ; i f ( B & & B . l o g ) { r e t u r n   B . l o g ( D , A , C ) ; } e l s e { r e t u r n   f a l s e ; } } ; Y A H O O . r e g i s t e r = f u n c t i o n ( A , E , D ) { v a r   I = Y A H O O . e n v . m o d u l e s , B , H , G , F , C ; i f ( ! I [ A ] ) { I [ A ] = { v e r s i o n s : [ ] , b u i l d s : [ ] } ; } B = I [ A ] ; H = D . v e r s i o n ; G = D . b u i l d ; F = Y A H O O . e n v . l i s t e n e r s ; B . n a m e = A ; B . v e r s i o n = H ; B . b u i l d = G ; B . v e r s i o n s . p u s h ( H ) ; B . b u i l d s . p u s h ( G ) ; B . m a i n C l a s s = E ; f o r ( C = 0 ; C < F . l e n g t h ; C = C + 1 ) { F [ C ] ( B ) ; } i f ( E ) { E . V E R S I O N = H ; E . B U I L D = G ; } e l s e { Y A H O O . l o g ( " m a i n C l a s s   i s   u n d e f i n e d   f o r   m o d u l e   " + A , " w a r n " ) ; } } ; Y A H O O . e n v = Y A H O O . e n v | | { m o d u l e s : [ ] , l i s t e n e r s : [ ] } ; Y A H O O . e n v . g e t V e r s i o n = f u n c t i o n ( A ) { r e t u r n   Y A H O O . e n v . m o d u l e s [ A ] | | n u l l ; } ; Y A H O O . e n v . u a = f u n c t i o n ( ) { v a r   C = { i e : 0 , o p e r a : 0 , g e c k o : 0 , w e b k i t : 0 , m o b i l e : n u l l , a i r : 0 , c a j a : 0 } , B = n a v i g a t o r . u s e r A g e n t , A ; i f ( ( / K H T M L / ) . t e s t ( B ) ) { C . w e b k i t = 1 ; } A = B . m a t c h ( / A p p l e W e b K i t \ / ( [ ^ \ s ] * ) / ) ; i f ( A & & A [ 1 ] ) { C . w e b k i t = p a r s e F l o a t ( A [ 1 ] ) ; i f ( /   M o b i l e \ / / . t e s t ( B ) ) { C . m o b i l e = " A p p l e " ; } e l s e { A = B . m a t c h ( / N o k i a N [ ^ \ / ] * / ) ; i f ( A ) { C . m o b i l e = A [ 0 ] ; } } A = B . m a t c h ( / A d o b e A I R \ / ( [ ^ \ s ] * ) / ) ; i f ( A ) { C . a i r = A [ 0 ] ; } } i f ( ! C . w e b k i t ) { A = B . m a t c h ( / O p e r a [ \ s \ / ] ( [ ^ \ s ] * ) / ) ; i f ( A & & A [ 1 ] ) { C . o p e r a = p a r s e F l o a t ( A [ 1 ] ) ; A = B . m a t c h ( / O p e r a   M i n i [ ^ ; ] * / ) ; i f ( A ) { C . m o b i l e = A [ 0 ] ; } } e l s e { A = B . m a t c h ( / M S I E \ s ( [ ^ ; ] * ) / ) ; i f ( A & & A [ 1 ] ) { C . i e = p a r s e F l o a t ( A [ 1 ] ) ; } e l s e { A = B . m a t c h ( / G e c k o \ / ( [ ^ \ s ] * ) / ) ; i f ( A ) { C . g e c k o = 1 ; A = B . m a t c h ( / r v : ( [ ^ \ s \ ) ] * ) / ) ; i f ( A & & A [ 1 ] ) { C . g e c k o = p a r s e F l o a t ( A [ 1 ] ) ; } } } } } A = B . m a t c h ( / C a j a \ / ( [ ^ \ s ] * ) / ) ; i f ( A & & A [ 1 ] ) { C . c a j a = p a r s e F l o a t ( A [ 1 ] ) ; } r e t u r n   C ; } ( ) ; ( f u n c t i o n ( ) { Y A H O O . n a m e s p a c e ( " u t i l " , " w i d g e t " , " e x a m p l e " ) ; i f ( " u n d e f i n e d " ! = = t y p e o f   Y A H O O _ c o n f i g ) { v a r   B = Y A H O O _ c o n f i g . l i s t e n e r , A = Y A H O O . e n v . l i s t e n e r s , D = t r u e , C ; i f ( B ) { f o r ( C = 0 ; C < A . l e n g t h ; C = C + 1 ) { i f ( A [ C ] = = B ) { D = f a l s e ; b r e a k ; } } i f ( D ) { A . p u s h ( B ) ; } } } } ) ( ) ; Y A H O O . l a n g = Y A H O O . l a n g | | { } ; ( f u n c t i o n ( ) { v a r   B = Y A H O O . l a n g , F = " [ o b j e c t   A r r a y ] " , C = " [ o b j e c t   F u n c t i o n ] " , A = O b j e c t . p r o t o t y p e , E = [ " t o S t r i n g " , " v a l u e O f " ] , D = { i s A r r a y : f u n c t i o n ( G ) { r e t u r n   A . t o S t r i n g . a p p l y ( G ) = = = F ; } , i s B o o l e a n : f u n c t i o n ( G ) { r e t u r n   t y p e o f   G = = = " b o o l e a n " ; } , i s F u n c t i o n : f u n c t i o n ( G ) { r e t u r n   A . t o S t r i n g . a p p l y ( G ) = = = C ; } , i s N u l l : f u n c t i o n ( G ) { r e t u r n   G = = = n u l l ; } , i s N u m b e r : f u n c t i o n ( G ) { r e t u r n   t y p e o f   G = = = " n u m b e r " & & i s F i n i t e ( G ) ; } , i s O b j e c t : f u n c t i o n ( G ) { r e t u r n ( G & & ( t y p e o f   G = = = " o b j e c t " | | B . i s F u n c t i o n ( G ) ) ) | | f a l s e ; } , i s S t r i n g : f u n c t i o n ( G ) { r e t u r n   t y p e o f   G = = = " s t r i n g " ; } , i s U n d e f i n e d : f u n c t i o n ( G ) { r e t u r n   t y p e o f   G = = = " u n d e f i n e d " ; } , _ I E E n u m F i x : ( Y A H O O . e n v . u a . i e ) ? f u n c t i o n ( I , H ) { v a r   G , K , J ; f o r ( G = 0 ; G < E . l e n g t h ; G = G + 1 ) { K = E [ G ] ; J = H [ K ] ; i f ( B . i s F u n c t i o n ( J ) & & J ! = A [ K ] ) { I [ K ] = J ; } } } : f u n c t i o n ( ) { } , e x t e n d : f u n c t i o n ( J , K , I ) { i f ( ! K | | ! J ) { t h r o w   n e w   E r r o r ( " e x t e n d   f a i l e d ,   p l e a s e   c h e c k   t h a t   " + " a l l   d e p e n d e n c i e s   a r e   i n c l u d e d . " ) ; } v a r   H = f u n c t i o n ( ) { } , G ; H . p r o t o t y p e = K . p r o t o t y p e ; J . p r o t o t y p e = n e w   H ( ) ; J . p r o t o t y p e . c o n s t r u c t o r = J ; J . s u p e r c l a s s = K . p r o t o t y p e ; i f ( K . p r o t o t y p e . c o n s t r u c t o r = = A . c o n s t r u c t o r ) { K . p r o t o t y p e . c o n s t r u c t o r = K ; } i f ( I ) { f o r ( G   i n   I ) { i f ( B . h a s O w n P r o p e r t y ( I , G ) ) { J . p r o t o t y p e [ G ] = I [ G ] ; } } B . _ I E E n u m F i x ( J . p r o t o t y p e , I ) ; } } , a u g m e n t O b j e c t : f u n c t i o n ( K , J ) { i f ( ! J | | ! K ) { t h r o w   n e w   E r r o r ( " A b s o r b   f a i l e d ,   v e r i f y   d e p e n d e n c i e s . " ) ; } v a r   G = a r g u m e n t s , I , L , H = G [ 2 ] ; i f ( H & & H ! = = t r u e ) { f o r ( I = 2 ; I < G . l e n g t h ; I = I + 1 ) { K [ G [ I ] ] = J [ G [ I ] ] ; } } e l s e { f o r ( L   i n   J ) { i f ( H | | ! ( L   i n   K ) ) { K [ L ] = J [ L ] ; } } B . _ I E E n u m F i x ( K , J ) ; } } , a u g m e n t P r o t o : f u n c t i o n ( J , I ) { i f ( ! I | | ! J ) { t h r o w   n e w   E r r o r ( " A u g m e n t   f a i l e d ,   v e r i f y   d e p e n d e n c i e s . " ) ; } v a r   G = [ J . p r o t o t y p e , I . p r o t o t y p e ] , H ; f o r ( H = 2 ; H < a r g u m e n t s . l e n g t h ; H = H + 1 ) { G . p u s h ( a r g u m e n t s [ H ] ) ; } B . a u g m e n t O b j e c t . a p p l y ( t h i s , G ) ; } , d u m p : f u n c t i o n ( G , L ) { v a r   I , K , N = [ ] , O = " { . . . } " , H = " f ( ) { . . . } " , M = " ,   " , J = "   = >   " ; i f ( ! B . i s O b j e c t ( G ) ) { r e t u r n   G + " " ; } e l s e { i f ( G   i n s t a n c e o f   D a t e | | ( " n o d e T y p e "   i n   G & & " t a g N a m e "   i n   G ) ) { r e t u r n   G ; } e l s e { i f ( B . i s F u n c t i o n ( G ) ) { r e t u r n   H ; } } } L = ( B . i s N u m b e r ( L ) ) ? L : 3 ; i f ( B . i s A r r a y ( G ) ) { N . p u s h ( " [ " ) ; f o r ( I = 0 , K = G . l e n g t h ; I < K ; I = I + 1 ) { i f ( B . i s O b j e c t ( G [ I ] ) ) { N . p u s h ( ( L > 0 ) ? B . d u m p ( G [ I ] , L - 1 ) : O ) ; } e l s e { N . p u s h ( G [ I ] ) ; } N . p u s h ( M ) ; } i f ( N . l e n g t h > 1 ) { N . p o p ( ) ; } N . p u s h ( " ] " ) ; } e l s e { N . p u s h ( " { " ) ; f o r ( I   i n   G ) { i f ( B . h a s O w n P r o p e r t y ( G , I ) ) { N . p u s h ( I + J ) ; i f ( B . i s O b j e c t ( G [ I ] ) ) { N . p u s h ( ( L > 0 ) ? B . d u m p ( G [ I ] , L - 1 ) : O ) ; } e l s e { N . p u s h ( G [ I ] ) ; } N . p u s h ( M ) ; } } i f ( N . l e n g t h > 1 ) { N . p o p ( ) ; } N . p u s h ( " } " ) ; } r e t u r n   N . j o i n ( " " ) ; } , s u b s t i t u t e : f u n c t i o n ( V , H , O ) { v a r   L , K , J , R , S , U , Q = [ ] , I , M = " d u m p " , P = "   " , G = " { " , T = " } " , N ; f o r ( ; ; ) { L = V . l a s t I n d e x O f ( G ) ; i f ( L < 0 ) { b r e a k ; } K = V . i n d e x O f ( T , L ) ; i f ( L + 1 > = K ) { b r e a k ; } I = V . s u b s t r i n g ( L + 1 , K ) ; R = I ; U = n u l l ; J = R . i n d e x O f ( P ) ; i f ( J > - 1 ) { U = R . s u b s t r i n g ( J + 1 ) ; R = R . s u b s t r i n g ( 0 , J ) ; } S = H [ R ] ; i f ( O ) { S = O ( R , S , U ) ; } i f ( B . i s O b j e c t ( S ) ) { i f ( B . i s A r r a y ( S ) ) { S = B . d u m p ( S , p a r s e I n t ( U , 1 0 ) ) ; } e l s e { U = U | | " " ; N = U . i n d e x O f ( M ) ; i f ( N > - 1 ) { U = U . s u b s t r i n g ( 4 ) ; } i f ( S . t o S t r i n g = = = A . t o S t r i n g | | N > - 1 ) { S = B . d u m p ( S , p a r s e I n t ( U , 1 0 ) ) ; } e l s e { S = S . t o S t r i n g ( ) ; } } } e l s e { i f ( ! B . i s S t r i n g ( S ) & & ! B . i s N u m b e r ( S ) ) { S = " ~ - " + Q . l e n g t h + " - ~ " ; Q [ Q . l e n g t h ] = I ; } } V = V . s u b s t r i n g ( 0 , L ) + S + V . s u b s t r i n g ( K + 1 ) ; } f o r ( L = Q . l e n g t h - 1 ; L > = 0 ; L = L - 1 ) { V = V . r e p l a c e ( n e w   R e g E x p ( " ~ - " + L + " - ~ " ) , " { " + Q [ L ] + " } " , " g " ) ; } r e t u r n   V ; } , t r i m : f u n c t i o n ( G ) { t r y { r e t u r n   G . r e p l a c e ( / ^ \ s + | \ s + $ / g , " " ) ; } c a t c h ( H ) { r e t u r n   G ; } } , m e r g e : f u n c t i o n ( ) { v a r   J = { } , H = a r g u m e n t s , G = H . l e n g t h , I ; f o r ( I = 0 ; I < G ; I = I + 1 ) { B . a u g m e n t O b j e c t ( J , H [ I ] , t r u e ) ; } r e t u r n   J ; } , l a t e r : f u n c t i o n ( N , H , O , J , K ) { N = N | | 0 ; H = H | | { } ; v a r   I = O , M = J , L , G ; i f ( B . i s S t r i n g ( O ) ) { I = H [ O ] ; } i f ( ! I ) { t h r o w   n e w   T y p e E r r o r ( " m e t h o d   u n d e f i n e d " ) ; } i f ( ! B . i s A r r a y ( M ) ) { M = [ J ] ; } L = f u n c t i o n ( ) { I . a p p l y ( H , M ) ; } ; G = ( K ) ? s e t I n t e r v a l ( L , N ) : s e t T i m e o u t ( L , N ) ; r e t u r n { i n t e r v a l : K , c a n c e l : f u n c t i o n ( ) { i f ( t h i s . i n t e r v a l ) { c l e a r I n t e r v a l ( G ) ; } e l s e { c l e a r T i m e o u t ( G ) ; } } } ; } , i s V a l u e : f u n c t i o n ( G ) { r e t u r n ( B . i s O b j e c t ( G ) | | B . i s S t r i n g ( G ) | | B . i s N u m b e r ( G ) | | B . i s B o o l e a n ( G ) ) ; } } ; B . h a s O w n P r o p e r t y = ( A . h a s O w n P r o p e r t y ) ? f u n c t i o n ( G , H ) { r e t u r n   G & & G . h a s O w n P r o p e r t y ( H ) ; } : f u n c t i o n ( G , H ) { r e t u r n   ! B . i s U n d e f i n e d ( G [ H ] ) & & G . c o n s t r u c t o r . p r o t o t y p e [ H ] ! = = G [ H ] ; } ; D . a u g m e n t O b j e c t ( B , D , t r u e ) ; Y A H O O . u t i l . L a n g = B ; B . a u g m e n t = B . a u g m e n t P r o t o ; Y A H O O . a u g m e n t = B . a u g m e n t P r o t o ; Y A H O O . e x t e n d = B . e x t e n d ; } ) ( ) ; Y A H O O . r e g i s t e r ( " y a h o o " , Y A H O O , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ;  
  
  
 / *  
 C o p y r i g h t   ( c )   2 0 0 9 ,   Y a h o o !   I n c .   A l l   r i g h t s   r e s e r v e d .  
 C o d e   l i c e n s e d   u n d e r   t h e   B S D   L i c e n s e :  
 h t t p : / / d e v e l o p e r . y a h o o . n e t / y u i / l i c e n s e . t x t  
 v e r s i o n :   2 . 7 . 0  
 c o n n e c t i o n - m i n . j s  
 * /  
 Y A H O O . u t i l . C o n n e c t = { _ m s x m l _ p r o g i d : [ " M i c r o s o f t . X M L H T T P " , " M S X M L 2 . X M L H T T P . 3 . 0 " , " M S X M L 2 . X M L H T T P " ] , _ h t t p _ h e a d e r s : { } , _ h a s _ h t t p _ h e a d e r s : f a l s e , _ u s e _ d e f a u l t _ p o s t _ h e a d e r : t r u e , _ d e f a u l t _ p o s t _ h e a d e r : " 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 ;   c h a r s e t = U T F - 8 " , _ d e f a u l t _ f o r m _ h e a d e r : " 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 " , _ u s e _ d e f a u l t _ x h r _ h e a d e r : t r u e , _ d e f a u l t _ x h r _ h e a d e r : " X M L H t t p R e q u e s t " , _ h a s _ d e f a u l t _ h e a d e r s : t r u e , _ d e f a u l t _ h e a d e r s : { } , _ i s F o r m S u b m i t : f a l s e , _ i s F i l e U p l o a d : f a l s e , _ f o r m N o d e : n u l l , _ s F o r m D a t a : n u l l , _ p o l l : { } , _ t i m e O u t : { } , _ p o l l i n g _ i n t e r v a l : 5 0 , _ t r a n s a c t i o n _ i d : 0 , _ s u b m i t E l e m e n t V a l u e : n u l l , _ h a s S u b m i t L i s t e n e r : ( f u n c t i o n ( ) { i f ( Y A H O O . u t i l . E v e n t ) { Y A H O O . u t i l . E v e n t . a d d L i s t e n e r ( d o c u m e n t , " c l i c k " , f u n c t i o n ( C ) { v a r   B = Y A H O O . u t i l . E v e n t . g e t T a r g e t ( C ) , A = B . n o d e N a m e . t o L o w e r C a s e ( ) ; i f ( ( A = = = " i n p u t " | | A = = = " b u t t o n " ) & & ( B . t y p e & & B . t y p e . t o L o w e r C a s e ( ) = = " s u b m i t " ) ) { Y A H O O . u t i l . C o n n e c t . _ s u b m i t E l e m e n t V a l u e = e n c o d e U R I C o m p o n e n t ( B . n a m e ) + " = " + e n c o d e U R I C o m p o n e n t ( B . v a l u e ) ; } } ) ; r e t u r n   t r u e ; } r e t u r n   f a l s e ; } ) ( ) , s t a r t E v e n t : n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " s t a r t " ) , c o m p l e t e E v e n t : n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " c o m p l e t e " ) , s u c c e s s E v e n t : n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " s u c c e s s " ) , f a i l u r e E v e n t : n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " f a i l u r e " ) , u p l o a d E v e n t : n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " u p l o a d " ) , a b o r t E v e n t : n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " a b o r t " ) , _ c u s t o m E v e n t s : { o n S t a r t : [ " s t a r t E v e n t " , " s t a r t " ] , o n C o m p l e t e : [ " c o m p l e t e E v e n t " , " c o m p l e t e " ] , o n S u c c e s s : [ " s u c c e s s E v e n t " , " s u c c e s s " ] , o n F a i l u r e : [ " f a i l u r e E v e n t " , " f a i l u r e " ] , o n U p l o a d : [ " u p l o a d E v e n t " , " u p l o a d " ] , o n A b o r t : [ " a b o r t E v e n t " , " a b o r t " ] } , s e t P r o g I d : f u n c t i o n ( A ) { t h i s . _ m s x m l _ p r o g i d . u n s h i f t ( A ) ; } , s e t D e f a u l t P o s t H e a d e r : f u n c t i o n ( A ) { i f ( t y p e o f   A = = " s t r i n g " ) { t h i s . _ d e f a u l t _ p o s t _ h e a d e r = A ; } e l s e { i f ( t y p e o f   A = = " b o o l e a n " ) { t h i s . _ u s e _ d e f a u l t _ p o s t _ h e a d e r = A ; } } } , s e t D e f a u l t X h r H e a d e r : f u n c t i o n ( A ) { i f ( t y p e o f   A = = " s t r i n g " ) { t h i s . _ d e f a u l t _ x h r _ h e a d e r = A ; } e l s e { t h i s . _ u s e _ d e f a u l t _ x h r _ h e a d e r = A ; } } , s e t P o l l i n g I n t e r v a l : f u n c t i o n ( A ) { i f ( t y p e o f   A = = " n u m b e r " & & i s F i n i t e ( A ) ) { t h i s . _ p o l l i n g _ i n t e r v a l = A ; } } , c r e a t e X h r O b j e c t : f u n c t i o n ( F ) { v a r   E , A ; t r y { A = n e w   X M L H t t p R e q u e s t ( ) ; E = { c o n n : A , t I d : F } ; } c a t c h ( D ) { f o r ( v a r   B = 0 ; B < t h i s . _ m s x m l _ p r o g i d . l e n g t h ; + + B ) { t r y { A = n e w   A c t i v e X O b j e c t ( t h i s . _ m s x m l _ p r o g i d [ B ] ) ; E = { c o n n : A , t I d : F } ; b r e a k ; } c a t c h ( C ) { } } } f i n a l l y { r e t u r n   E ; } } , g e t C o n n e c t i o n O b j e c t : f u n c t i o n ( A ) { v a r   C ; v a r   D = t h i s . _ t r a n s a c t i o n _ i d ; t r y { i f ( ! A ) { C = t h i s . c r e a t e X h r O b j e c t ( D ) ; } e l s e { C = { } ; C . t I d = D ; C . i s U p l o a d = t r u e ; } i f ( C ) { t h i s . _ t r a n s a c t i o n _ i d + + ; } } c a t c h ( B ) { } f i n a l l y { r e t u r n   C ; } } , a s y n c R e q u e s t : f u n c t i o n ( F , C , E , A ) { v a r   D = ( t h i s . _ i s F i l e U p l o a d ) ? t h i s . g e t C o n n e c t i o n O b j e c t ( t r u e ) : t h i s . g e t C o n n e c t i o n O b j e c t ( ) ; v a r   B = ( E & & E . a r g u m e n t ) ? E . a r g u m e n t : n u l l ; i f ( ! D ) { r e t u r n   n u l l ; } e l s e { i f ( E & & E . c u s t o m e v e n t s ) { t h i s . i n i t C u s t o m E v e n t s ( D , E ) ; } i f ( t h i s . _ i s F o r m S u b m i t ) { i f ( t h i s . _ i s F i l e U p l o a d ) { t h i s . u p l o a d F i l e ( D , E , C , A ) ; r e t u r n   D ; } i f ( F . t o U p p e r C a s e ( ) = = " G E T " ) { i f ( t h i s . _ s F o r m D a t a . l e n g t h ! = = 0 ) { C + = ( ( C . i n d e x O f ( " ? " ) = = - 1 ) ? " ? " : " & " ) + t h i s . _ s F o r m D a t a ; } } e l s e { i f ( F . t o U p p e r C a s e ( ) = = " P O S T " ) { A = A ? t h i s . _ s F o r m D a t a + " & " + A : t h i s . _ s F o r m D a t a ; } } } i f ( F . t o U p p e r C a s e ( ) = = " G E T " & & ( E & & E . c a c h e = = = f a l s e ) ) { C + = ( ( C . i n d e x O f ( " ? " ) = = - 1 ) ? " ? " : " & " ) + " r n d = " + n e w   D a t e ( ) . v a l u e O f ( ) . t o S t r i n g ( ) ; } D . c o n n . o p e n ( F , C , t r u e ) ; i f ( t h i s . _ u s e _ d e f a u l t _ x h r _ h e a d e r ) { i f ( ! t h i s . _ d e f a u l t _ h e a d e r s [ " X - R e q u e s t e d - W i t h " ] ) { t h i s . i n i t H e a d e r ( " X - R e q u e s t e d - W i t h " , t h i s . _ d e f a u l t _ x h r _ h e a d e r , t r u e ) ; } } i f ( ( F . t o U p p e r C a s e ( ) = = = " P O S T " & & t h i s . _ u s e _ d e f a u l t _ p o s t _ h e a d e r ) & & t h i s . _ i s F o r m S u b m i t = = = f a l s e ) { t h i s . i n i t H e a d e r ( " C o n t e n t - T y p e " , t h i s . _ d e f a u l t _ p o s t _ h e a d e r ) ; } i f ( t h i s . _ h a s _ d e f a u l t _ h e a d e r s | | t h i s . _ h a s _ h t t p _ h e a d e r s ) { t h i s . s e t H e a d e r ( D ) ; } t h i s . h a n d l e R e a d y S t a t e ( D , E ) ; D . c o n n . s e n d ( A | | " " ) ; i f ( t h i s . _ i s F o r m S u b m i t = = = t r u e ) { t h i s . r e s e t F o r m S t a t e ( ) ; } t h i s . s t a r t E v e n t . f i r e ( D , B ) ; i f ( D . s t a r t E v e n t ) { D . s t a r t E v e n t . f i r e ( D , B ) ; } r e t u r n   D ; } } , i n i t C u s t o m E v e n t s : f u n c t i o n ( A , C ) { v a r   B ; f o r ( B   i n   C . c u s t o m e v e n t s ) { i f ( t h i s . _ c u s t o m E v e n t s [ B ] [ 0 ] ) { A [ t h i s . _ c u s t o m E v e n t s [ B ] [ 0 ] ] = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( t h i s . _ c u s t o m E v e n t s [ B ] [ 1 ] , ( C . s c o p e ) ? C . s c o p e : n u l l ) ; A [ t h i s . _ c u s t o m E v e n t s [ B ] [ 0 ] ] . s u b s c r i b e ( C . c u s t o m e v e n t s [ B ] ) ; } } } , h a n d l e R e a d y S t a t e : f u n c t i o n ( C , D ) { v a r   B = t h i s ; v a r   A = ( D & & D . a r g u m e n t ) ? D . a r g u m e n t : n u l l ; i f ( D & & D . t i m e o u t ) { t h i s . _ t i m e O u t [ C . t I d ] = w i n d o w . s e t T i m e o u t ( f u n c t i o n ( ) { B . a b o r t ( C , D , t r u e ) ; } , D . t i m e o u t ) ; } t h i s . _ p o l l [ C . t I d ] = w i n d o w . s e t I n t e r v a l ( f u n c t i o n ( ) { i f ( C . c o n n & & C . c o n n . r e a d y S t a t e = = = 4 ) { w i n d o w . c l e a r I n t e r v a l ( B . _ p o l l [ C . t I d ] ) ; d e l e t e   B . _ p o l l [ C . t I d ] ; i f ( D & & D . t i m e o u t ) { w i n d o w . c l e a r T i m e o u t ( B . _ t i m e O u t [ C . t I d ] ) ; d e l e t e   B . _ t i m e O u t [ C . t I d ] ; } B . c o m p l e t e E v e n t . f i r e ( C , A ) ; i f ( C . c o m p l e t e E v e n t ) { C . c o m p l e t e E v e n t . f i r e ( C , A ) ; } B . h a n d l e T r a n s a c t i o n R e s p o n s e ( C , D ) ; } } , t h i s . _ p o l l i n g _ i n t e r v a l ) ; } , h a n d l e T r a n s a c t i o n R e s p o n s e : f u n c t i o n ( F , G , A ) { v a r   D , C ; v a r   B = ( G & & G . a r g u m e n t ) ? G . a r g u m e n t : n u l l ; t r y { i f ( F . c o n n . s t a t u s ! = = u n d e f i n e d & & F . c o n n . s t a t u s ! = = 0 ) { D = F . c o n n . s t a t u s ; } e l s e { D = 1 3 0 3 0 ; } } c a t c h ( E ) { D = 1 3 0 3 0 ; } i f ( D > = 2 0 0 & & D < 3 0 0 | | D = = = 1 2 2 3 ) { C = t h i s . c r e a t e R e s p o n s e O b j e c t ( F , B ) ; i f ( G & & G . s u c c e s s ) { i f ( ! G . s c o p e ) { G . s u c c e s s ( C ) ; } e l s e { G . s u c c e s s . a p p l y ( G . s c o p e , [ C ] ) ; } } t h i s . s u c c e s s E v e n t . f i r e ( C ) ; i f ( F . s u c c e s s E v e n t ) { F . s u c c e s s E v e n t . f i r e ( C ) ; } } e l s e { s w i t c h ( D ) { c a s e   1 2 0 0 2 : c a s e   1 2 0 2 9 : c a s e   1 2 0 3 0 : c a s e   1 2 0 3 1 : c a s e   1 2 1 5 2 : c a s e   1 3 0 3 0 : C = t h i s . c r e a t e E x c e p t i o n O b j e c t ( F . t I d , B , ( A ? A : f a l s e ) ) ; i f ( G & & G . f a i l u r e ) { i f ( ! G . s c o p e ) { G . f a i l u r e ( C ) ; } e l s e { G . f a i l u r e . a p p l y ( G . s c o p e , [ C ] ) ; } } b r e a k ; d e f a u l t : C = t h i s . c r e a t e R e s p o n s e O b j e c t ( F , B ) ; i f ( G & & G . f a i l u r e ) { i f ( ! G . s c o p e ) { G . f a i l u r e ( C ) ; } e l s e { G . f a i l u r e . a p p l y ( G . s c o p e , [ C ] ) ; } } } t h i s . f a i l u r e E v e n t . f i r e ( C ) ; i f ( F . f a i l u r e E v e n t ) { F . f a i l u r e E v e n t . f i r e ( C ) ; } } t h i s . r e l e a s e O b j e c t ( F ) ; C = n u l l ; } , c r e a t e R e s p o n s e O b j e c t : f u n c t i o n ( A , G ) { v a r   D = { } ; v a r   I = { } ; t r y { v a r   C = A . c o n n . g e t A l l R e s p o n s e H e a d e r s ( ) ; v a r   F = C . s p l i t ( " \ n " ) ; f o r ( v a r   E = 0 ; E < F . l e n g t h ; E + + ) { v a r   B = F [ E ] . i n d e x O f ( " : " ) ; i f ( B ! = - 1 ) { I [ F [ E ] . s u b s t r i n g ( 0 , B ) ] = F [ E ] . s u b s t r i n g ( B + 2 ) ; } } } c a t c h ( H ) { } D . t I d = A . t I d ; D . s t a t u s = ( A . c o n n . s t a t u s = = 1 2 2 3 ) ? 2 0 4 : A . c o n n . s t a t u s ; D . s t a t u s T e x t = ( A . c o n n . s t a t u s = = 1 2 2 3 ) ? " N o   C o n t e n t " : A . c o n n . s t a t u s T e x t ; D . g e t R e s p o n s e H e a d e r = I ; D . g e t A l l R e s p o n s e H e a d e r s = C ; D . r e s p o n s e T e x t = A . c o n n . r e s p o n s e T e x t ; D . r e s p o n s e X M L = A . c o n n . r e s p o n s e X M L ; i f ( G ) { D . a r g u m e n t = G ; } r e t u r n   D ; } , c r e a t e E x c e p t i o n O b j e c t : f u n c t i o n ( H , D , A ) { v a r   F = 0 ; v a r   G = " c o m m u n i c a t i o n   f a i l u r e " ; v a r   C = - 1 ; v a r   B = " t r a n s a c t i o n   a b o r t e d " ; v a r   E = { } ; E . t I d = H ; i f ( A ) { E . s t a t u s = C ; E . s t a t u s T e x t = B ; } e l s e { E . s t a t u s = F ; E . s t a t u s T e x t = G ; } i f ( D ) { E . a r g u m e n t = D ; } r e t u r n   E ; } , i n i t H e a d e r : f u n c t i o n ( A , D , C ) { v a r   B = ( C ) ? t h i s . _ d e f a u l t _ h e a d e r s : t h i s . _ h t t p _ h e a d e r s ; B [ A ] = D ; i f ( C ) { t h i s . _ h a s _ d e f a u l t _ h e a d e r s = t r u e ;  
 } e l s e { t h i s . _ h a s _ h t t p _ h e a d e r s = t r u e ; } } , s e t H e a d e r : f u n c t i o n ( A ) { v a r   B ; i f ( t h i s . _ h a s _ d e f a u l t _ h e a d e r s ) { f o r ( B   i n   t h i s . _ d e f a u l t _ h e a d e r s ) { i f ( Y A H O O . l a n g . h a s O w n P r o p e r t y ( t h i s . _ d e f a u l t _ h e a d e r s , B ) ) { A . c o n n . s e t R e q u e s t H e a d e r ( B , t h i s . _ d e f a u l t _ h e a d e r s [ B ] ) ; } } } i f ( t h i s . _ h a s _ h t t p _ h e a d e r s ) { f o r ( B   i n   t h i s . _ h t t p _ h e a d e r s ) { i f ( Y A H O O . l a n g . h a s O w n P r o p e r t y ( t h i s . _ h t t p _ h e a d e r s , B ) ) { A . c o n n . s e t R e q u e s t H e a d e r ( B , t h i s . _ h t t p _ h e a d e r s [ B ] ) ; } } d e l e t e   t h i s . _ h t t p _ h e a d e r s ; t h i s . _ h t t p _ h e a d e r s = { } ; t h i s . _ h a s _ h t t p _ h e a d e r s = f a l s e ; } } , r e s e t D e f a u l t H e a d e r s : f u n c t i o n ( ) { d e l e t e   t h i s . _ d e f a u l t _ h e a d e r s ; t h i s . _ d e f a u l t _ h e a d e r s = { } ; t h i s . _ h a s _ d e f a u l t _ h e a d e r s = f a l s e ; } , s e t F o r m : f u n c t i o n ( M , H , C ) { v a r   L , B , K , I , P , J = f a l s e , F = [ ] , O = 0 , E , G , D , N , A ; t h i s . r e s e t F o r m S t a t e ( ) ; i f ( t y p e o f   M = = " s t r i n g " ) { L = ( d o c u m e n t . g e t E l e m e n t B y I d ( M ) | | d o c u m e n t . f o r m s [ M ] ) ; } e l s e { i f ( t y p e o f   M = = " o b j e c t " ) { L = M ; } e l s e { r e t u r n ; } } i f ( H ) { t h i s . c r e a t e F r a m e ( C ? C : n u l l ) ; t h i s . _ i s F o r m S u b m i t = t r u e ; t h i s . _ i s F i l e U p l o a d = t r u e ; t h i s . _ f o r m N o d e = L ; r e t u r n ; } f o r ( E = 0 , G = L . e l e m e n t s . l e n g t h ; E < G ; + + E ) { B = L . e l e m e n t s [ E ] ; P = B . d i s a b l e d ; K = B . n a m e ; i f ( ! P & & K ) { K = e n c o d e U R I C o m p o n e n t ( K ) + " = " ; I = e n c o d e U R I C o m p o n e n t ( B . v a l u e ) ; s w i t c h ( B . t y p e ) { c a s e " s e l e c t - o n e " : i f ( B . s e l e c t e d I n d e x > - 1 ) { A = B . o p t i o n s [ B . s e l e c t e d I n d e x ] ; F [ O + + ] = K + e n c o d e U R I C o m p o n e n t ( ( A . a t t r i b u t e s . v a l u e & & A . a t t r i b u t e s . v a l u e . s p e c i f i e d ) ? A . v a l u e : A . t e x t ) ; } b r e a k ; c a s e " s e l e c t - m u l t i p l e " : i f ( B . s e l e c t e d I n d e x > - 1 ) { f o r ( D = B . s e l e c t e d I n d e x , N = B . o p t i o n s . l e n g t h ; D < N ; + + D ) { A = B . o p t i o n s [ D ] ; i f ( A . s e l e c t e d ) { F [ O + + ] = K + e n c o d e U R I C o m p o n e n t ( ( A . a t t r i b u t e s . v a l u e & & A . a t t r i b u t e s . v a l u e . s p e c i f i e d ) ? A . v a l u e : A . t e x t ) ; } } } b r e a k ; c a s e " r a d i o " : c a s e " c h e c k b o x " : i f ( B . c h e c k e d ) { F [ O + + ] = K + I ; } b r e a k ; c a s e " f i l e " : c a s e   u n d e f i n e d : c a s e " r e s e t " : c a s e " b u t t o n " : b r e a k ; c a s e " s u b m i t " : i f ( J = = = f a l s e ) { i f ( t h i s . _ h a s S u b m i t L i s t e n e r & & t h i s . _ s u b m i t E l e m e n t V a l u e ) { F [ O + + ] = t h i s . _ s u b m i t E l e m e n t V a l u e ; } J = t r u e ; } b r e a k ; d e f a u l t : F [ O + + ] = K + I ; } } } t h i s . _ i s F o r m S u b m i t = t r u e ; t h i s . _ s F o r m D a t a = F . j o i n ( " & " ) ; t h i s . i n i t H e a d e r ( " C o n t e n t - T y p e " , t h i s . _ d e f a u l t _ f o r m _ h e a d e r ) ; r e t u r n   t h i s . _ s F o r m D a t a ; } , r e s e t F o r m S t a t e : f u n c t i o n ( ) { t h i s . _ i s F o r m S u b m i t = f a l s e ; t h i s . _ i s F i l e U p l o a d = f a l s e ; t h i s . _ f o r m N o d e = n u l l ; t h i s . _ s F o r m D a t a = " " ; } , c r e a t e F r a m e : f u n c t i o n ( A ) { v a r   B = " y u i I O " + t h i s . _ t r a n s a c t i o n _ i d ; v a r   C ; i f ( Y A H O O . e n v . u a . i e ) { C = d o c u m e n t . c r e a t e E l e m e n t ( ' < i f r a m e   i d = " ' + B + ' "   n a m e = " ' + B + ' "   / > ' ) ; i f ( t y p e o f   A = = " b o o l e a n " ) { C . s r c = " j a v a s c r i p t : f a l s e " ; } } e l s e { C = d o c u m e n t . c r e a t e E l e m e n t ( " i f r a m e " ) ; C . i d = B ; C . n a m e = B ; } C . s t y l e . p o s i t i o n = " a b s o l u t e " ; C . s t y l e . t o p = " - 1 0 0 0 p x " ; C . s t y l e . l e f t = " - 1 0 0 0 p x " ; d o c u m e n t . b o d y . a p p e n d C h i l d ( C ) ; } , a p p e n d P o s t D a t a : f u n c t i o n ( A ) { v a r   D = [ ] , B = A . s p l i t ( " & " ) , C , E ; f o r ( C = 0 ; C < B . l e n g t h ; C + + ) { E = B [ C ] . i n d e x O f ( " = " ) ; i f ( E ! = - 1 ) { D [ C ] = d o c u m e n t . c r e a t e E l e m e n t ( " i n p u t " ) ; D [ C ] . t y p e = " h i d d e n " ; D [ C ] . n a m e = d e c o d e U R I C o m p o n e n t ( B [ C ] . s u b s t r i n g ( 0 , E ) ) ; D [ C ] . v a l u e = d e c o d e U R I C o m p o n e n t ( B [ C ] . s u b s t r i n g ( E + 1 ) ) ; t h i s . _ f o r m N o d e . a p p e n d C h i l d ( D [ C ] ) ; } } r e t u r n   D ; } , u p l o a d F i l e : f u n c t i o n ( D , N , E , C ) { v a r   I = " y u i I O " + D . t I d , J = " m u l t i p a r t / f o r m - d a t a " , L = d o c u m e n t . g e t E l e m e n t B y I d ( I ) , O = t h i s , K = ( N & & N . a r g u m e n t ) ? N . a r g u m e n t : n u l l , M , H , B , G ; v a r   A = { a c t i o n : t h i s . _ f o r m N o d e . g e t A t t r i b u t e ( " a c t i o n " ) , m e t h o d : t h i s . _ f o r m N o d e . g e t A t t r i b u t e ( " m e t h o d " ) , t a r g e t : t h i s . _ f o r m N o d e . g e t A t t r i b u t e ( " t a r g e t " ) } ; t h i s . _ f o r m N o d e . s e t A t t r i b u t e ( " a c t i o n " , E ) ; t h i s . _ f o r m N o d e . s e t A t t r i b u t e ( " m e t h o d " , " P O S T " ) ; t h i s . _ f o r m N o d e . s e t A t t r i b u t e ( " t a r g e t " , I ) ; i f ( Y A H O O . e n v . u a . i e ) { t h i s . _ f o r m N o d e . s e t A t t r i b u t e ( " e n c o d i n g " , J ) ; } e l s e { t h i s . _ f o r m N o d e . s e t A t t r i b u t e ( " e n c t y p e " , J ) ; } i f ( C ) { M = t h i s . a p p e n d P o s t D a t a ( C ) ; } t h i s . _ f o r m N o d e . s u b m i t ( ) ; t h i s . s t a r t E v e n t . f i r e ( D , K ) ; i f ( D . s t a r t E v e n t ) { D . s t a r t E v e n t . f i r e ( D , K ) ; } i f ( N & & N . t i m e o u t ) { t h i s . _ t i m e O u t [ D . t I d ] = w i n d o w . s e t T i m e o u t ( f u n c t i o n ( ) { O . a b o r t ( D , N , t r u e ) ; } , N . t i m e o u t ) ; } i f ( M & & M . l e n g t h > 0 ) { f o r ( H = 0 ; H < M . l e n g t h ; H + + ) { t h i s . _ f o r m N o d e . r e m o v e C h i l d ( M [ H ] ) ; } } f o r ( B   i n   A ) { i f ( Y A H O O . l a n g . h a s O w n P r o p e r t y ( A , B ) ) { i f ( A [ B ] ) { t h i s . _ f o r m N o d e . s e t A t t r i b u t e ( B , A [ B ] ) ; } e l s e { t h i s . _ f o r m N o d e . r e m o v e A t t r i b u t e ( B ) ; } } } t h i s . r e s e t F o r m S t a t e ( ) ; v a r   F = f u n c t i o n ( ) { i f ( N & & N . t i m e o u t ) { w i n d o w . c l e a r T i m e o u t ( O . _ t i m e O u t [ D . t I d ] ) ; d e l e t e   O . _ t i m e O u t [ D . t I d ] ; } O . c o m p l e t e E v e n t . f i r e ( D , K ) ; i f ( D . c o m p l e t e E v e n t ) { D . c o m p l e t e E v e n t . f i r e ( D , K ) ; } G = { t I d : D . t I d , a r g u m e n t : N . a r g u m e n t } ; t r y { G . r e s p o n s e T e x t = L . c o n t e n t W i n d o w . d o c u m e n t . b o d y ? L . c o n t e n t W i n d o w . d o c u m e n t . b o d y . i n n e r H T M L : L . c o n t e n t W i n d o w . d o c u m e n t . d o c u m e n t E l e m e n t . t e x t C o n t e n t ; G . r e s p o n s e X M L = L . c o n t e n t W i n d o w . d o c u m e n t . X M L D o c u m e n t ? L . c o n t e n t W i n d o w . d o c u m e n t . X M L D o c u m e n t : L . c o n t e n t W i n d o w . d o c u m e n t ; } c a t c h ( P ) { } i f ( N & & N . u p l o a d ) { i f ( ! N . s c o p e ) { N . u p l o a d ( G ) ; } e l s e { N . u p l o a d . a p p l y ( N . s c o p e , [ G ] ) ; } } O . u p l o a d E v e n t . f i r e ( G ) ; i f ( D . u p l o a d E v e n t ) { D . u p l o a d E v e n t . f i r e ( G ) ; } Y A H O O . u t i l . E v e n t . r e m o v e L i s t e n e r ( L , " l o a d " , F ) ; s e t T i m e o u t ( f u n c t i o n ( ) { d o c u m e n t . b o d y . r e m o v e C h i l d ( L ) ; O . r e l e a s e O b j e c t ( D ) ; } , 1 0 0 ) ; } ; Y A H O O . u t i l . E v e n t . a d d L i s t e n e r ( L , " l o a d " , F ) ; } , a b o r t : f u n c t i o n ( E , G , A ) { v a r   D ; v a r   B = ( G & & G . a r g u m e n t ) ? G . a r g u m e n t : n u l l ; i f ( E & & E . c o n n ) { i f ( t h i s . i s C a l l I n P r o g r e s s ( E ) ) { E . c o n n . a b o r t ( ) ; w i n d o w . c l e a r I n t e r v a l ( t h i s . _ p o l l [ E . t I d ] ) ; d e l e t e   t h i s . _ p o l l [ E . t I d ] ; i f ( A ) { w i n d o w . c l e a r T i m e o u t ( t h i s . _ t i m e O u t [ E . t I d ] ) ; d e l e t e   t h i s . _ t i m e O u t [ E . t I d ] ; } D = t r u e ; } } e l s e { i f ( E & & E . i s U p l o a d = = = t r u e ) { v a r   C = " y u i I O " + E . t I d ; v a r   F = d o c u m e n t . g e t E l e m e n t B y I d ( C ) ; i f ( F ) { Y A H O O . u t i l . E v e n t . r e m o v e L i s t e n e r ( F , " l o a d " ) ; d o c u m e n t . b o d y . r e m o v e C h i l d ( F ) ; i f ( A ) { w i n d o w . c l e a r T i m e o u t ( t h i s . _ t i m e O u t [ E . t I d ] ) ; d e l e t e   t h i s . _ t i m e O u t [ E . t I d ] ; } D = t r u e ; } } e l s e { D = f a l s e ; } } i f ( D = = = t r u e ) { t h i s . a b o r t E v e n t . f i r e ( E , B ) ; i f ( E . a b o r t E v e n t ) { E . a b o r t E v e n t . f i r e ( E , B ) ; } t h i s . h a n d l e T r a n s a c t i o n R e s p o n s e ( E , G , t r u e ) ; } r e t u r n   D ; } , i s C a l l I n P r o g r e s s : f u n c t i o n ( B ) { i f ( B & & B . c o n n ) { r e t u r n   B . c o n n . r e a d y S t a t e ! = = 4 & & B . c o n n . r e a d y S t a t e ! = = 0 ; } e l s e { i f ( B & & B . i s U p l o a d = = = t r u e ) { v a r   A = " y u i I O " + B . t I d ; r e t u r n   d o c u m e n t . g e t E l e m e n t B y I d ( A ) ? t r u e : f a l s e ; } e l s e { r e t u r n   f a l s e ; } } } , r e l e a s e O b j e c t : f u n c t i o n ( A ) { i f ( A & & A . c o n n ) { A . c o n n = n u l l ; A = n u l l ; } } } ; Y A H O O . r e g i s t e r ( " c o n n e c t i o n " , Y A H O O . u t i l . C o n n e c t , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ;  
  
  
 / *  
 C o p y r i g h t   ( c )   2 0 0 9 ,   Y a h o o !   I n c .   A l l   r i g h t s   r e s e r v e d .  
 C o d e   l i c e n s e d   u n d e r   t h e   B S D   L i c e n s e :  
 h t t p : / / d e v e l o p e r . y a h o o . n e t / y u i / l i c e n s e . t x t  
 v e r s i o n :   2 . 7 . 0  
 a n i m a t i o n - m i n . j s  
 * /  
 ( f u n c t i o n ( ) { v a r   B = Y A H O O . u t i l ; v a r   A = f u n c t i o n ( D , C , E , F ) { i f ( ! D ) { } t h i s . i n i t ( D , C , E , F ) ; } ; A . N A M E = " A n i m " ; A . p r o t o t y p e = { t o S t r i n g : f u n c t i o n ( ) { v a r   C = t h i s . g e t E l ( ) | | { } ; v a r   D = C . i d | | C . t a g N a m e ; r e t u r n ( t h i s . c o n s t r u c t o r . N A M E + " :   " + D ) ; } , p a t t e r n s : { n o N e g a t i v e s : / w i d t h | h e i g h t | o p a c i t y | p a d d i n g / i , o f f s e t A t t r i b u t e : / ^ ( ( w i d t h | h e i g h t ) | ( t o p | l e f t ) ) $ / , d e f a u l t U n i t : / w i d t h | h e i g h t | t o p $ | b o t t o m $ | l e f t $ | r i g h t $ / i , o f f s e t U n i t : / \ d + ( e m | % | e n | e x | p t | i n | c m | m m | p c ) $ / i } , d o M e t h o d : f u n c t i o n ( C , E , D ) { r e t u r n   t h i s . m e t h o d ( t h i s . c u r r e n t F r a m e , E , D - E , t h i s . t o t a l F r a m e s ) ; } , s e t A t t r i b u t e : f u n c t i o n ( C , F , E ) { v a r   D = t h i s . g e t E l ( ) ; i f ( t h i s . p a t t e r n s . n o N e g a t i v e s . t e s t ( C ) ) { F = ( F > 0 ) ? F : 0 ; } i f ( " s t y l e "   i n   D ) { B . D o m . s e t S t y l e ( D , C , F + E ) ; } e l s e { i f ( C   i n   D ) { D [ C ] = F ; } } } , g e t A t t r i b u t e : f u n c t i o n ( C ) { v a r   E = t h i s . g e t E l ( ) ; v a r   G = B . D o m . g e t S t y l e ( E , C ) ; i f ( G ! = = " a u t o " & & ! t h i s . p a t t e r n s . o f f s e t U n i t . t e s t ( G ) ) { r e t u r n   p a r s e F l o a t ( G ) ; } v a r   D = t h i s . p a t t e r n s . o f f s e t A t t r i b u t e . e x e c ( C ) | | [ ] ; v a r   H = ! ! ( D [ 3 ] ) ; v a r   F = ! ! ( D [ 2 ] ) ; i f ( " s t y l e "   i n   E ) { i f ( F | | ( B . D o m . g e t S t y l e ( E , " p o s i t i o n " ) = = " a b s o l u t e " & & H ) ) { G = E [ " o f f s e t " + D [ 0 ] . c h a r A t ( 0 ) . t o U p p e r C a s e ( ) + D [ 0 ] . s u b s t r ( 1 ) ] ; } e l s e { G = 0 ; } } e l s e { i f ( C   i n   E ) { G = E [ C ] ; } } r e t u r n   G ; } , g e t D e f a u l t U n i t : f u n c t i o n ( C ) { i f ( t h i s . p a t t e r n s . d e f a u l t U n i t . t e s t ( C ) ) { r e t u r n " p x " ; } r e t u r n " " ; } , s e t R u n t i m e A t t r i b u t e : f u n c t i o n ( D ) { v a r   I ; v a r   E ; v a r   F = t h i s . a t t r i b u t e s ; t h i s . r u n t i m e A t t r i b u t e s [ D ] = { } ; v a r   H = f u n c t i o n ( J ) { r e t u r n ( t y p e o f   J ! = = " u n d e f i n e d " ) ; } ; i f ( ! H ( F [ D ] [ " t o " ] ) & & ! H ( F [ D ] [ " b y " ] ) ) { r e t u r n   f a l s e ; } I = ( H ( F [ D ] [ " f r o m " ] ) ) ? F [ D ] [ " f r o m " ] : t h i s . g e t A t t r i b u t e ( D ) ; i f ( H ( F [ D ] [ " t o " ] ) ) { E = F [ D ] [ " t o " ] ; } e l s e { i f ( H ( F [ D ] [ " b y " ] ) ) { i f ( I . c o n s t r u c t o r = = A r r a y ) { E = [ ] ; f o r ( v a r   G = 0 , C = I . l e n g t h ; G < C ; + + G ) { E [ G ] = I [ G ] + F [ D ] [ " b y " ] [ G ] * 1 ; } } e l s e { E = I + F [ D ] [ " b y " ] * 1 ; } } } t h i s . r u n t i m e A t t r i b u t e s [ D ] . s t a r t = I ; t h i s . r u n t i m e A t t r i b u t e s [ D ] . e n d = E ; t h i s . r u n t i m e A t t r i b u t e s [ D ] . u n i t = ( H ( F [ D ] . u n i t ) ) ? F [ D ] [ " u n i t " ] : t h i s . g e t D e f a u l t U n i t ( D ) ; r e t u r n   t r u e ; } , i n i t : f u n c t i o n ( E , J , I , C ) { v a r   D = f a l s e ; v a r   F = n u l l ; v a r   H = 0 ; E = B . D o m . g e t ( E ) ; t h i s . a t t r i b u t e s = J | | { } ; t h i s . d u r a t i o n = ! Y A H O O . l a n g . i s U n d e f i n e d ( I ) ? I : 1 ; t h i s . m e t h o d = C | | B . E a s i n g . e a s e N o n e ; t h i s . u s e S e c o n d s = t r u e ; t h i s . c u r r e n t F r a m e = 0 ; t h i s . t o t a l F r a m e s = B . A n i m M g r . f p s ; t h i s . s e t E l = f u n c t i o n ( M ) { E = B . D o m . g e t ( M ) ; } ; t h i s . g e t E l = f u n c t i o n ( ) { r e t u r n   E ; } ; t h i s . i s A n i m a t e d = f u n c t i o n ( ) { r e t u r n   D ; } ; t h i s . g e t S t a r t T i m e = f u n c t i o n ( ) { r e t u r n   F ; } ; t h i s . r u n t i m e A t t r i b u t e s = { } ; t h i s . a n i m a t e = f u n c t i o n ( ) { i f ( t h i s . i s A n i m a t e d ( ) ) { r e t u r n   f a l s e ; } t h i s . c u r r e n t F r a m e = 0 ; t h i s . t o t a l F r a m e s = ( t h i s . u s e S e c o n d s ) ? M a t h . c e i l ( B . A n i m M g r . f p s * t h i s . d u r a t i o n ) : t h i s . d u r a t i o n ; i f ( t h i s . d u r a t i o n = = = 0 & & t h i s . u s e S e c o n d s ) { t h i s . t o t a l F r a m e s = 1 ; } B . A n i m M g r . r e g i s t e r E l e m e n t ( t h i s ) ; r e t u r n   t r u e ; } ; t h i s . s t o p = f u n c t i o n ( M ) { i f ( ! t h i s . i s A n i m a t e d ( ) ) { r e t u r n   f a l s e ; } i f ( M ) { t h i s . c u r r e n t F r a m e = t h i s . t o t a l F r a m e s ; t h i s . _ o n T w e e n . f i r e ( ) ; } B . A n i m M g r . s t o p ( t h i s ) ; } ; v a r   L = f u n c t i o n ( ) { t h i s . o n S t a r t . f i r e ( ) ; t h i s . r u n t i m e A t t r i b u t e s = { } ; f o r ( v a r   M   i n   t h i s . a t t r i b u t e s ) { t h i s . s e t R u n t i m e A t t r i b u t e ( M ) ; } D = t r u e ; H = 0 ; F = n e w   D a t e ( ) ; } ; v a r   K = f u n c t i o n ( ) { v a r   O = { d u r a t i o n : n e w   D a t e ( ) - t h i s . g e t S t a r t T i m e ( ) , c u r r e n t F r a m e : t h i s . c u r r e n t F r a m e } ; O . t o S t r i n g = f u n c t i o n ( ) { r e t u r n ( " d u r a t i o n :   " + O . d u r a t i o n + " ,   c u r r e n t F r a m e :   " + O . c u r r e n t F r a m e ) ; } ; t h i s . o n T w e e n . f i r e ( O ) ; v a r   N = t h i s . r u n t i m e A t t r i b u t e s ; f o r ( v a r   M   i n   N ) { t h i s . s e t A t t r i b u t e ( M , t h i s . d o M e t h o d ( M , N [ M ] . s t a r t , N [ M ] . e n d ) , N [ M ] . u n i t ) ; } H + = 1 ; } ; v a r   G = f u n c t i o n ( ) { v a r   M = ( n e w   D a t e ( ) - F ) / 1 0 0 0 ; v a r   N = { d u r a t i o n : M , f r a m e s : H , f p s : H / M } ; N . t o S t r i n g = f u n c t i o n ( ) { r e t u r n ( " d u r a t i o n :   " + N . d u r a t i o n + " ,   f r a m e s :   " + N . f r a m e s + " ,   f p s :   " + N . f p s ) ; } ; D = f a l s e ; H = 0 ; t h i s . o n C o m p l e t e . f i r e ( N ) ; } ; t h i s . _ o n S t a r t = n e w   B . C u s t o m E v e n t ( " _ s t a r t " , t h i s , t r u e ) ; t h i s . o n S t a r t = n e w   B . C u s t o m E v e n t ( " s t a r t " , t h i s ) ; t h i s . o n T w e e n = n e w   B . C u s t o m E v e n t ( " t w e e n " , t h i s ) ; t h i s . _ o n T w e e n = n e w   B . C u s t o m E v e n t ( " _ t w e e n " , t h i s , t r u e ) ; t h i s . o n C o m p l e t e = n e w   B . C u s t o m E v e n t ( " c o m p l e t e " , t h i s ) ; t h i s . _ o n C o m p l e t e = n e w   B . C u s t o m E v e n t ( " _ c o m p l e t e " , t h i s , t r u e ) ; t h i s . _ o n S t a r t . s u b s c r i b e ( L ) ; t h i s . _ o n T w e e n . s u b s c r i b e ( K ) ; t h i s . _ o n C o m p l e t e . s u b s c r i b e ( G ) ; } } ; B . A n i m = A ; } ) ( ) ; Y A H O O . u t i l . A n i m M g r = n e w   f u n c t i o n ( ) { v a r   C = n u l l ; v a r   B = [ ] ; v a r   A = 0 ; t h i s . f p s = 1 0 0 0 ; t h i s . d e l a y = 1 ; t h i s . r e g i s t e r E l e m e n t = f u n c t i o n ( F ) { B [ B . l e n g t h ] = F ; A + = 1 ; F . _ o n S t a r t . f i r e ( ) ; t h i s . s t a r t ( ) ; } ; t h i s . u n R e g i s t e r = f u n c t i o n ( G , F ) { F = F | | E ( G ) ; i f ( ! G . i s A n i m a t e d ( ) | | F = = - 1 ) { r e t u r n   f a l s e ; } G . _ o n C o m p l e t e . f i r e ( ) ; B . s p l i c e ( F , 1 ) ; A - = 1 ; i f ( A < = 0 ) { t h i s . s t o p ( ) ; } r e t u r n   t r u e ; } ; t h i s . s t a r t = f u n c t i o n ( ) { i f ( C = = = n u l l ) { C = s e t I n t e r v a l ( t h i s . r u n , t h i s . d e l a y ) ; } } ; t h i s . s t o p = f u n c t i o n ( H ) { i f ( ! H ) { c l e a r I n t e r v a l ( C ) ; f o r ( v a r   G = 0 , F = B . l e n g t h ; G < F ; + + G ) { t h i s . u n R e g i s t e r ( B [ 0 ] , 0 ) ; } B = [ ] ; C = n u l l ; A = 0 ; } e l s e { t h i s . u n R e g i s t e r ( H ) ; } } ; t h i s . r u n = f u n c t i o n ( ) { f o r ( v a r   H = 0 , F = B . l e n g t h ; H < F ; + + H ) { v a r   G = B [ H ] ; i f ( ! G | | ! G . i s A n i m a t e d ( ) ) { c o n t i n u e ; } i f ( G . c u r r e n t F r a m e < G . t o t a l F r a m e s | | G . t o t a l F r a m e s = = = n u l l ) { G . c u r r e n t F r a m e + = 1 ; i f ( G . u s e S e c o n d s ) { D ( G ) ; } G . _ o n T w e e n . f i r e ( ) ; } e l s e { Y A H O O . u t i l . A n i m M g r . s t o p ( G , H ) ; } } } ; v a r   E = f u n c t i o n ( H ) { f o r ( v a r   G = 0 , F = B . l e n g t h ; G < F ; + + G ) { i f ( B [ G ] = = H ) { r e t u r n   G ; } } r e t u r n   - 1 ; } ; v a r   D = f u n c t i o n ( G ) { v a r   J = G . t o t a l F r a m e s ; v a r   I = G . c u r r e n t F r a m e ; v a r   H = ( G . c u r r e n t F r a m e * G . d u r a t i o n * 1 0 0 0 / G . t o t a l F r a m e s ) ; v a r   F = ( n e w   D a t e ( ) - G . g e t S t a r t T i m e ( ) ) ; v a r   K = 0 ; i f ( F < G . d u r a t i o n * 1 0 0 0 ) { K = M a t h . r o u n d ( ( F / H - 1 ) * G . c u r r e n t F r a m e ) ; } e l s e { K = J - ( I + 1 ) ; } i f ( K > 0 & & i s F i n i t e ( K ) ) { i f ( G . c u r r e n t F r a m e + K > = J ) { K = J - ( I + 1 ) ; } G . c u r r e n t F r a m e + = K ; } } ; } ; Y A H O O . u t i l . B e z i e r = n e w   f u n c t i o n ( ) { t h i s . g e t P o s i t i o n = f u n c t i o n ( E , D ) { v a r   F = E . l e n g t h ; v a r   C = [ ] ; f o r ( v a r   B = 0 ; B < F ; + + B ) { C [ B ] = [ E [ B ] [ 0 ] , E [ B ] [ 1 ] ] ; } f o r ( v a r   A = 1 ; A < F ; + + A ) { f o r ( B = 0 ; B < F - A ; + + B ) { C [ B ] [ 0 ] = ( 1 - D ) * C [ B ] [ 0 ] + D * C [ p a r s e I n t ( B + 1 , 1 0 ) ] [ 0 ] ; C [ B ] [ 1 ] = ( 1 - D ) * C [ B ] [ 1 ] + D * C [ p a r s e I n t ( B + 1 , 1 0 ) ] [ 1 ] ; } } r e t u r n [ C [ 0 ] [ 0 ] , C [ 0 ] [ 1 ] ] ; } ; } ; ( f u n c t i o n ( ) { v a r   A = f u n c t i o n ( F , E , G , H ) { A . s u p e r c l a s s . c o n s t r u c t o r . c a l l ( t h i s , F , E , G , H ) ; } ; A . N A M E = " C o l o r A n i m " ; A . D E F A U L T _ B G C O L O R = " # f f f " ; v a r   C = Y A H O O . u t i l ; Y A H O O . e x t e n d ( A , C . A n i m ) ; v a r   D = A . s u p e r c l a s s ; v a r   B = A . p r o t o t y p e ; B . p a t t e r n s . c o l o r = / c o l o r $ / i ; B . p a t t e r n s . r g b = / ^ r g b \ ( ( [ 0 - 9 ] + ) \ s * , \ s * ( [ 0 - 9 ] + ) \ s * , \ s * ( [ 0 - 9 ] + ) \ ) $ / i ; B . p a t t e r n s . h e x = / ^ # ? ( [ 0 - 9 A - F ] { 2 } ) ( [ 0 - 9 A - F ] { 2 } ) ( [ 0 - 9 A - F ] { 2 } ) $ / i ; B . p a t t e r n s . h e x 3 = / ^ # ? ( [ 0 - 9 A - F ] { 1 } ) ( [ 0 - 9 A - F ] { 1 } ) ( [ 0 - 9 A - F ] { 1 } ) $ / i ; B . p a t t e r n s . t r a n s p a r e n t = / ^ t r a n s p a r e n t | r g b a \ ( 0 ,   0 ,   0 ,   0 \ ) $ / ; B . p a r s e C o l o r = f u n c t i o n ( E ) { i f ( E . l e n g t h = = 3 ) { r e t u r n   E ; } v a r   F = t h i s . p a t t e r n s . h e x . e x e c ( E ) ; i f ( F & & F . l e n g t h = = 4 ) { r e t u r n [ p a r s e I n t ( F [ 1 ] , 1 6 ) , p a r s e I n t ( F [ 2 ] , 1 6 ) , p a r s e I n t ( F [ 3 ] , 1 6 ) ] ; } F = t h i s . p a t t e r n s . r g b . e x e c ( E ) ; i f ( F & & F . l e n g t h = = 4 ) { r e t u r n [ p a r s e I n t ( F [ 1 ] , 1 0 ) , p a r s e I n t ( F [ 2 ] , 1 0 ) , p a r s e I n t ( F [ 3 ] , 1 0 ) ] ; } F = t h i s . p a t t e r n s . h e x 3 . e x e c ( E ) ; i f ( F & & F . l e n g t h = = 4 ) { r e t u r n [ p a r s e I n t ( F [ 1 ] + F [ 1 ] , 1 6 ) , p a r s e I n t ( F [ 2 ] + F [ 2 ] , 1 6 ) , p a r s e I n t ( F [ 3 ] + F [ 3 ] , 1 6 ) ] ;  
 } r e t u r n   n u l l ; } ; B . g e t A t t r i b u t e = f u n c t i o n ( E ) { v a r   G = t h i s . g e t E l ( ) ; i f ( t h i s . p a t t e r n s . c o l o r . t e s t ( E ) ) { v a r   I = Y A H O O . u t i l . D o m . g e t S t y l e ( G , E ) ; v a r   H = t h i s ; i f ( t h i s . p a t t e r n s . t r a n s p a r e n t . t e s t ( I ) ) { v a r   F = Y A H O O . u t i l . D o m . g e t A n c e s t o r B y ( G , f u n c t i o n ( J ) { r e t u r n   ! H . p a t t e r n s . t r a n s p a r e n t . t e s t ( I ) ; } ) ; i f ( F ) { I = C . D o m . g e t S t y l e ( F , E ) ; } e l s e { I = A . D E F A U L T _ B G C O L O R ; } } } e l s e { I = D . g e t A t t r i b u t e . c a l l ( t h i s , E ) ; } r e t u r n   I ; } ; B . d o M e t h o d = f u n c t i o n ( F , J , G ) { v a r   I ; i f ( t h i s . p a t t e r n s . c o l o r . t e s t ( F ) ) { I = [ ] ; f o r ( v a r   H = 0 , E = J . l e n g t h ; H < E ; + + H ) { I [ H ] = D . d o M e t h o d . c a l l ( t h i s , F , J [ H ] , G [ H ] ) ; } I = " r g b ( " + M a t h . f l o o r ( I [ 0 ] ) + " , " + M a t h . f l o o r ( I [ 1 ] ) + " , " + M a t h . f l o o r ( I [ 2 ] ) + " ) " ; } e l s e { I = D . d o M e t h o d . c a l l ( t h i s , F , J , G ) ; } r e t u r n   I ; } ; B . s e t R u n t i m e A t t r i b u t e = f u n c t i o n ( F ) { D . s e t R u n t i m e A t t r i b u t e . c a l l ( t h i s , F ) ; i f ( t h i s . p a t t e r n s . c o l o r . t e s t ( F ) ) { v a r   H = t h i s . a t t r i b u t e s ; v a r   J = t h i s . p a r s e C o l o r ( t h i s . r u n t i m e A t t r i b u t e s [ F ] . s t a r t ) ; v a r   G = t h i s . p a r s e C o l o r ( t h i s . r u n t i m e A t t r i b u t e s [ F ] . e n d ) ; i f ( t y p e o f   H [ F ] [ " t o " ] = = = " u n d e f i n e d " & & t y p e o f   H [ F ] [ " b y " ] ! = = " u n d e f i n e d " ) { G = t h i s . p a r s e C o l o r ( H [ F ] . b y ) ; f o r ( v a r   I = 0 , E = J . l e n g t h ; I < E ; + + I ) { G [ I ] = J [ I ] + G [ I ] ; } } t h i s . r u n t i m e A t t r i b u t e s [ F ] . s t a r t = J ; t h i s . r u n t i m e A t t r i b u t e s [ F ] . e n d = G ; } } ; C . C o l o r A n i m = A ; } ) ( ) ;  
 / *  
 T E R M S   O F   U S E   -   E A S I N G   E Q U A T I O N S  
 O p e n   s o u r c e   u n d e r   t h e   B S D   L i c e n s e .  
 C o p y r i g h t   2 0 0 1   R o b e r t   P e n n e r   A l l   r i g h t s   r e s e r v e d .  
  
 R e d i s t r i b u t i o n   a n d   u s e   i n   s o u r c e   a n d   b i n a r y   f o r m s ,   w i t h   o r   w i t h o u t   m o d i f i c a t i o n ,   a r e   p e r m i t t e d   p r o v i d e d   t h a t   t h e   f o l l o w i n g   c o n d i t i o n s   a r e   m e t :  
  
   *   R e d i s t r i b u t i o n s   o f   s o u r c e   c o d e   m u s t   r e t a i n   t h e   a b o v e   c o p y r i g h t   n o t i c e ,   t h i s   l i s t   o f   c o n d i t i o n s   a n d   t h e   f o l l o w i n g   d i s c l a i m e r .  
   *   R e d i s t r i b u t i o n s   i n   b i n a r y   f o r m   m u s t   r e p r o d u c e   t h e   a b o v e   c o p y r i g h t   n o t i c e ,   t h i s   l i s t   o f   c o n d i t i o n s   a n d   t h e   f o l l o w i n g   d i s c l a i m e r   i n   t h e   d o c u m e n t a t i o n   a n d / o r   o t h e r   m a t e r i a l s   p r o v i d e d   w i t h   t h e   d i s t r i b u t i o n .  
   *   N e i t h e r   t h e   n a m e   o f   t h e   a u t h o r   n o r   t h e   n a m e s   o f   c o n t r i b u t o r s   m a y   b e   u s e d   t o   e n d o r s e   o r   p r o m o t e   p r o d u c t s   d e r i v e d   f r o m   t h i s   s o f t w a r e   w i t h o u t   s p e c i f i c   p r i o r   w r i t t e n   p e r m i s s i o n .  
  
 T H I S   S O F T W A R E   I S   P R O V I D E D   B Y   T H E   C O P Y R I G H T   H O L D E R S   A N D   C O N T R I B U T O R S   " A S   I S "   A N D   A N Y   E X P R E S S   O R   I M P L I E D   W A R R A N T I E S ,   I N C L U D I N G ,   B U T   N O T   L I M I T E D   T O ,   T H E   I M P L I E D   W A R R A N T I E S   O F   M E R C H A N T A B I L I T Y   A N D   F I T N E S S   F O R   A   P A R T I C U L A R   P U R P O S E   A R E   D I S C L A I M E D .   I N   N O   E V E N T   S H A L L   T H E   C O P Y R I G H T   O W N E R   O R   C O N T R I B U T O R S   B E   L I A B L E   F O R   A N Y   D I R E C T ,   I N D I R E C T ,   I N C I D E N T A L ,   S P E C I A L ,   E X E M P L A R Y ,   O R   C O N S E Q U E N T I A L   D A M A G E S   ( I N C L U D I N G ,   B U T   N O T   L I M I T E D   T O ,   P R O C U R E M E N T   O F   S U B S T I T U T E   G O O D S   O R   S E R V I C E S ;   L O S S   O F   U S E ,   D A T A ,   O R   P R O F I T S ;   O R   B U S I N E S S   I N T E R R U P T I O N )   H O W E V E R   C A U S E D   A N D   O N   A N Y   T H E O R Y   O F   L I A B I L I T Y ,   W H E T H E R   I N   C O N T R A C T ,   S T R I C T   L I A B I L I T Y ,   O R   T O R T   ( I N C L U D I N G   N E G L I G E N C E   O R   O T H E R W I S E )   A R I S I N G   I N   A N Y   W A Y   O U T   O F   T H E   U S E   O F   T H I S   S O F T W A R E ,   E V E N   I F   A D V I S E D   O F   T H E   P O S S I B I L I T Y   O F   S U C H   D A M A G E .  
 * /  
 Y A H O O . u t i l . E a s i n g = { e a s e N o n e : f u n c t i o n ( B , A , D , C ) { r e t u r n   D * B / C + A ; } , e a s e I n : f u n c t i o n ( B , A , D , C ) { r e t u r n   D * ( B / = C ) * B + A ; } , e a s e O u t : f u n c t i o n ( B , A , D , C ) { r e t u r n   - D * ( B / = C ) * ( B - 2 ) + A ; } , e a s e B o t h : f u n c t i o n ( B , A , D , C ) { i f ( ( B / = C / 2 ) < 1 ) { r e t u r n   D / 2 * B * B + A ; } r e t u r n   - D / 2 * ( ( - - B ) * ( B - 2 ) - 1 ) + A ; } , e a s e I n S t r o n g : f u n c t i o n ( B , A , D , C ) { r e t u r n   D * ( B / = C ) * B * B * B + A ; } , e a s e O u t S t r o n g : f u n c t i o n ( B , A , D , C ) { r e t u r n   - D * ( ( B = B / C - 1 ) * B * B * B - 1 ) + A ; } , e a s e B o t h S t r o n g : f u n c t i o n ( B , A , D , C ) { i f ( ( B / = C / 2 ) < 1 ) { r e t u r n   D / 2 * B * B * B * B + A ; } r e t u r n   - D / 2 * ( ( B - = 2 ) * B * B * B - 2 ) + A ; } , e l a s t i c I n : f u n c t i o n ( C , A , G , F , B , E ) { i f ( C = = 0 ) { r e t u r n   A ; } i f ( ( C / = F ) = = 1 ) { r e t u r n   A + G ; } i f ( ! E ) { E = F * 0 . 3 ; } i f ( ! B | | B < M a t h . a b s ( G ) ) { B = G ; v a r   D = E / 4 ; } e l s e { v a r   D = E / ( 2 * M a t h . P I ) * M a t h . a s i n ( G / B ) ; } r e t u r n   - ( B * M a t h . p o w ( 2 , 1 0 * ( C - = 1 ) ) * M a t h . s i n ( ( C * F - D ) * ( 2 * M a t h . P I ) / E ) ) + A ; } , e l a s t i c O u t : f u n c t i o n ( C , A , G , F , B , E ) { i f ( C = = 0 ) { r e t u r n   A ; } i f ( ( C / = F ) = = 1 ) { r e t u r n   A + G ; } i f ( ! E ) { E = F * 0 . 3 ; } i f ( ! B | | B < M a t h . a b s ( G ) ) { B = G ; v a r   D = E / 4 ; } e l s e { v a r   D = E / ( 2 * M a t h . P I ) * M a t h . a s i n ( G / B ) ; } r e t u r n   B * M a t h . p o w ( 2 , - 1 0 * C ) * M a t h . s i n ( ( C * F - D ) * ( 2 * M a t h . P I ) / E ) + G + A ; } , e l a s t i c B o t h : f u n c t i o n ( C , A , G , F , B , E ) { i f ( C = = 0 ) { r e t u r n   A ; } i f ( ( C / = F / 2 ) = = 2 ) { r e t u r n   A + G ; } i f ( ! E ) { E = F * ( 0 . 3 * 1 . 5 ) ; } i f ( ! B | | B < M a t h . a b s ( G ) ) { B = G ; v a r   D = E / 4 ; } e l s e { v a r   D = E / ( 2 * M a t h . P I ) * M a t h . a s i n ( G / B ) ; } i f ( C < 1 ) { r e t u r n   - 0 . 5 * ( B * M a t h . p o w ( 2 , 1 0 * ( C - = 1 ) ) * M a t h . s i n ( ( C * F - D ) * ( 2 * M a t h . P I ) / E ) ) + A ; } r e t u r n   B * M a t h . p o w ( 2 , - 1 0 * ( C - = 1 ) ) * M a t h . s i n ( ( C * F - D ) * ( 2 * M a t h . P I ) / E ) * 0 . 5 + G + A ; } , b a c k I n : f u n c t i o n ( B , A , E , D , C ) { i f ( t y p e o f   C = = " u n d e f i n e d " ) { C = 1 . 7 0 1 5 8 ; } r e t u r n   E * ( B / = D ) * B * ( ( C + 1 ) * B - C ) + A ; } , b a c k O u t : f u n c t i o n ( B , A , E , D , C ) { i f ( t y p e o f   C = = " u n d e f i n e d " ) { C = 1 . 7 0 1 5 8 ; } r e t u r n   E * ( ( B = B / D - 1 ) * B * ( ( C + 1 ) * B + C ) + 1 ) + A ; } , b a c k B o t h : f u n c t i o n ( B , A , E , D , C ) { i f ( t y p e o f   C = = " u n d e f i n e d " ) { C = 1 . 7 0 1 5 8 ; } i f ( ( B / = D / 2 ) < 1 ) { r e t u r n   E / 2 * ( B * B * ( ( ( C * = ( 1 . 5 2 5 ) ) + 1 ) * B - C ) ) + A ; } r e t u r n   E / 2 * ( ( B - = 2 ) * B * ( ( ( C * = ( 1 . 5 2 5 ) ) + 1 ) * B + C ) + 2 ) + A ; } , b o u n c e I n : f u n c t i o n ( B , A , D , C ) { r e t u r n   D - Y A H O O . u t i l . E a s i n g . b o u n c e O u t ( C - B , 0 , D , C ) + A ; } , b o u n c e O u t : f u n c t i o n ( B , A , D , C ) { i f ( ( B / = C ) < ( 1 / 2 . 7 5 ) ) { r e t u r n   D * ( 7 . 5 6 2 5 * B * B ) + A ; } e l s e { i f ( B < ( 2 / 2 . 7 5 ) ) { r e t u r n   D * ( 7 . 5 6 2 5 * ( B - = ( 1 . 5 / 2 . 7 5 ) ) * B + 0 . 7 5 ) + A ; } e l s e { i f ( B < ( 2 . 5 / 2 . 7 5 ) ) { r e t u r n   D * ( 7 . 5 6 2 5 * ( B - = ( 2 . 2 5 / 2 . 7 5 ) ) * B + 0 . 9 3 7 5 ) + A ; } } } r e t u r n   D * ( 7 . 5 6 2 5 * ( B - = ( 2 . 6 2 5 / 2 . 7 5 ) ) * B + 0 . 9 8 4 3 7 5 ) + A ; } , b o u n c e B o t h : f u n c t i o n ( B , A , D , C ) { i f ( B < C / 2 ) { r e t u r n   Y A H O O . u t i l . E a s i n g . b o u n c e I n ( B * 2 , 0 , D , C ) * 0 . 5 + A ; } r e t u r n   Y A H O O . u t i l . E a s i n g . b o u n c e O u t ( B * 2 - C , 0 , D , C ) * 0 . 5 + D * 0 . 5 + A ; } } ; ( f u n c t i o n ( ) { v a r   A = f u n c t i o n ( H , G , I , J ) { i f ( H ) { A . s u p e r c l a s s . c o n s t r u c t o r . c a l l ( t h i s , H , G , I , J ) ; } } ; A . N A M E = " M o t i o n " ; v a r   E = Y A H O O . u t i l ; Y A H O O . e x t e n d ( A , E . C o l o r A n i m ) ; v a r   F = A . s u p e r c l a s s ; v a r   C = A . p r o t o t y p e ; C . p a t t e r n s . p o i n t s = / ^ p o i n t s $ / i ; C . s e t A t t r i b u t e = f u n c t i o n ( G , I , H ) { i f ( t h i s . p a t t e r n s . p o i n t s . t e s t ( G ) ) { H = H | | " p x " ; F . s e t A t t r i b u t e . c a l l ( t h i s , " l e f t " , I [ 0 ] , H ) ; F . s e t A t t r i b u t e . c a l l ( t h i s , " t o p " , I [ 1 ] , H ) ; } e l s e { F . s e t A t t r i b u t e . c a l l ( t h i s , G , I , H ) ; } } ; C . g e t A t t r i b u t e = f u n c t i o n ( G ) { i f ( t h i s . p a t t e r n s . p o i n t s . t e s t ( G ) ) { v a r   H = [ F . g e t A t t r i b u t e . c a l l ( t h i s , " l e f t " ) , F . g e t A t t r i b u t e . c a l l ( t h i s , " t o p " ) ] ; } e l s e { H = F . g e t A t t r i b u t e . c a l l ( t h i s , G ) ; } r e t u r n   H ; } ; C . d o M e t h o d = f u n c t i o n ( G , K , H ) { v a r   J = n u l l ; i f ( t h i s . p a t t e r n s . p o i n t s . t e s t ( G ) ) { v a r   I = t h i s . m e t h o d ( t h i s . c u r r e n t F r a m e , 0 , 1 0 0 , t h i s . t o t a l F r a m e s ) / 1 0 0 ; J = E . B e z i e r . g e t P o s i t i o n ( t h i s . r u n t i m e A t t r i b u t e s [ G ] , I ) ; } e l s e { J = F . d o M e t h o d . c a l l ( t h i s , G , K , H ) ; } r e t u r n   J ; } ; C . s e t R u n t i m e A t t r i b u t e = f u n c t i o n ( P ) { i f ( t h i s . p a t t e r n s . p o i n t s . t e s t ( P ) ) { v a r   H = t h i s . g e t E l ( ) ; v a r   J = t h i s . a t t r i b u t e s ; v a r   G ; v a r   L = J [ " p o i n t s " ] [ " c o n t r o l " ] | | [ ] ; v a r   I ; v a r   M , O ; i f ( L . l e n g t h > 0 & & ! ( L [ 0 ]   i n s t a n c e o f   A r r a y ) ) { L = [ L ] ; } e l s e { v a r   K = [ ] ; f o r ( M = 0 , O = L . l e n g t h ; M < O ; + + M ) { K [ M ] = L [ M ] ; } L = K ; } i f ( E . D o m . g e t S t y l e ( H , " p o s i t i o n " ) = = " s t a t i c " ) { E . D o m . s e t S t y l e ( H , " p o s i t i o n " , " r e l a t i v e " ) ; } i f ( D ( J [ " p o i n t s " ] [ " f r o m " ] ) ) { E . D o m . s e t X Y ( H , J [ " p o i n t s " ] [ " f r o m " ] ) ;  
 } e l s e { E . D o m . s e t X Y ( H , E . D o m . g e t X Y ( H ) ) ; } G = t h i s . g e t A t t r i b u t e ( " p o i n t s " ) ; i f ( D ( J [ " p o i n t s " ] [ " t o " ] ) ) { I = B . c a l l ( t h i s , J [ " p o i n t s " ] [ " t o " ] , G ) ; v a r   N = E . D o m . g e t X Y ( t h i s . g e t E l ( ) ) ; f o r ( M = 0 , O = L . l e n g t h ; M < O ; + + M ) { L [ M ] = B . c a l l ( t h i s , L [ M ] , G ) ; } } e l s e { i f ( D ( J [ " p o i n t s " ] [ " b y " ] ) ) { I = [ G [ 0 ] + J [ " p o i n t s " ] [ " b y " ] [ 0 ] , G [ 1 ] + J [ " p o i n t s " ] [ " b y " ] [ 1 ] ] ; f o r ( M = 0 , O = L . l e n g t h ; M < O ; + + M ) { L [ M ] = [ G [ 0 ] + L [ M ] [ 0 ] , G [ 1 ] + L [ M ] [ 1 ] ] ; } } } t h i s . r u n t i m e A t t r i b u t e s [ P ] = [ G ] ; i f ( L . l e n g t h > 0 ) { t h i s . r u n t i m e A t t r i b u t e s [ P ] = t h i s . r u n t i m e A t t r i b u t e s [ P ] . c o n c a t ( L ) ; } t h i s . r u n t i m e A t t r i b u t e s [ P ] [ t h i s . r u n t i m e A t t r i b u t e s [ P ] . l e n g t h ] = I ; } e l s e { F . s e t R u n t i m e A t t r i b u t e . c a l l ( t h i s , P ) ; } } ; v a r   B = f u n c t i o n ( G , I ) { v a r   H = E . D o m . g e t X Y ( t h i s . g e t E l ( ) ) ; G = [ G [ 0 ] - H [ 0 ] + I [ 0 ] , G [ 1 ] - H [ 1 ] + I [ 1 ] ] ; r e t u r n   G ; } ; v a r   D = f u n c t i o n ( G ) { r e t u r n ( t y p e o f   G ! = = " u n d e f i n e d " ) ; } ; E . M o t i o n = A ; } ) ( ) ; ( f u n c t i o n ( ) { v a r   D = f u n c t i o n ( F , E , G , H ) { i f ( F ) { D . s u p e r c l a s s . c o n s t r u c t o r . c a l l ( t h i s , F , E , G , H ) ; } } ; D . N A M E = " S c r o l l " ; v a r   B = Y A H O O . u t i l ; Y A H O O . e x t e n d ( D , B . C o l o r A n i m ) ; v a r   C = D . s u p e r c l a s s ; v a r   A = D . p r o t o t y p e ; A . d o M e t h o d = f u n c t i o n ( E , H , F ) { v a r   G = n u l l ; i f ( E = = " s c r o l l " ) { G = [ t h i s . m e t h o d ( t h i s . c u r r e n t F r a m e , H [ 0 ] , F [ 0 ] - H [ 0 ] , t h i s . t o t a l F r a m e s ) , t h i s . m e t h o d ( t h i s . c u r r e n t F r a m e , H [ 1 ] , F [ 1 ] - H [ 1 ] , t h i s . t o t a l F r a m e s ) ] ; } e l s e { G = C . d o M e t h o d . c a l l ( t h i s , E , H , F ) ; } r e t u r n   G ; } ; A . g e t A t t r i b u t e = f u n c t i o n ( E ) { v a r   G = n u l l ; v a r   F = t h i s . g e t E l ( ) ; i f ( E = = " s c r o l l " ) { G = [ F . s c r o l l L e f t , F . s c r o l l T o p ] ; } e l s e { G = C . g e t A t t r i b u t e . c a l l ( t h i s , E ) ; } r e t u r n   G ; } ; A . s e t A t t r i b u t e = f u n c t i o n ( E , H , G ) { v a r   F = t h i s . g e t E l ( ) ; i f ( E = = " s c r o l l " ) { F . s c r o l l L e f t = H [ 0 ] ; F . s c r o l l T o p = H [ 1 ] ; } e l s e { C . s e t A t t r i b u t e . c a l l ( t h i s , E , H , G ) ; } } ; B . S c r o l l = D ; } ) ( ) ; Y A H O O . r e g i s t e r ( " a n i m a t i o n " , Y A H O O . u t i l . A n i m , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ;  
  
 / *  
 C o p y r i g h t   ( c )   2 0 0 9 ,   Y a h o o !   I n c .   A l l   r i g h t s   r e s e r v e d .  
 C o d e   l i c e n s e d   u n d e r   t h e   B S D   L i c e n s e :  
 h t t p : / / d e v e l o p e r . y a h o o . n e t / y u i / l i c e n s e . t x t  
 v e r s i o n :   2 . 7 . 0  
 d a t a s o u r c e - m i n . j s  
 * /  
 ( f u n c t i o n ( ) { v a r   l a n g = Y A H O O . l a n g , u t i l = Y A H O O . u t i l , E v = u t i l . E v e n t ; u t i l . D a t a S o u r c e B a s e = f u n c t i o n ( o L i v e D a t a , o C o n f i g s ) { i f ( o L i v e D a t a = = = n u l l | | o L i v e D a t a = = = u n d e f i n e d ) { r e t u r n ; } t h i s . l i v e D a t a = o L i v e D a t a ; t h i s . _ o Q u e u e = { i n t e r v a l : n u l l , c o n n : n u l l , r e q u e s t s : [ ] } ; t h i s . r e s p o n s e S c h e m a = { } ; i f ( o C o n f i g s & & ( o C o n f i g s . c o n s t r u c t o r = = O b j e c t ) ) { f o r ( v a r   s C o n f i g   i n   o C o n f i g s ) { i f ( s C o n f i g ) { t h i s [ s C o n f i g ] = o C o n f i g s [ s C o n f i g ] ; } } } v a r   m a x C a c h e E n t r i e s = t h i s . m a x C a c h e E n t r i e s ; i f ( ! l a n g . i s N u m b e r ( m a x C a c h e E n t r i e s ) | | ( m a x C a c h e E n t r i e s < 0 ) ) { m a x C a c h e E n t r i e s = 0 ; } t h i s . _ a I n t e r v a l s = [ ] ; t h i s . c r e a t e E v e n t ( " c a c h e R e q u e s t E v e n t " ) ; t h i s . c r e a t e E v e n t ( " c a c h e R e s p o n s e E v e n t " ) ; t h i s . c r e a t e E v e n t ( " r e q u e s t E v e n t " ) ; t h i s . c r e a t e E v e n t ( " r e s p o n s e E v e n t " ) ; t h i s . c r e a t e E v e n t ( " r e s p o n s e P a r s e E v e n t " ) ; t h i s . c r e a t e E v e n t ( " r e s p o n s e C a c h e E v e n t " ) ; t h i s . c r e a t e E v e n t ( " d a t a E r r o r E v e n t " ) ; t h i s . c r e a t e E v e n t ( " c a c h e F l u s h E v e n t " ) ; v a r   D S = u t i l . D a t a S o u r c e B a s e ; t h i s . _ s N a m e = " D a t a S o u r c e   i n s t a n c e " + D S . _ n I n d e x ; D S . _ n I n d e x + + ; } ; v a r   D S = u t i l . D a t a S o u r c e B a s e ; l a n g . a u g m e n t O b j e c t ( D S , { T Y P E _ U N K N O W N : - 1 , T Y P E _ J S A R R A Y : 0 , T Y P E _ J S F U N C T I O N : 1 , T Y P E _ X H R : 2 , T Y P E _ J S O N : 3 , T Y P E _ X M L : 4 , T Y P E _ T E X T : 5 , T Y P E _ H T M L T A B L E : 6 , T Y P E _ S C R I P T N O D E : 7 , T Y P E _ L O C A L : 8 , E R R O R _ D A T A I N V A L I D : " I n v a l i d   d a t a " , E R R O R _ D A T A N U L L : " N u l l   d a t a " , _ n I n d e x : 0 , _ n T r a n s a c t i o n I d : 0 , i s s u e C a l l b a c k : f u n c t i o n ( c a l l b a c k , p a r a m s , e r r o r , s c o p e ) { i f ( l a n g . i s F u n c t i o n ( c a l l b a c k ) ) { c a l l b a c k . a p p l y ( s c o p e , p a r a m s ) ; } e l s e { i f ( l a n g . i s O b j e c t ( c a l l b a c k ) ) { s c o p e = c a l l b a c k . s c o p e | | s c o p e | | w i n d o w ; v a r   c a l l b a c k F u n c = c a l l b a c k . s u c c e s s ; i f ( e r r o r ) { c a l l b a c k F u n c = c a l l b a c k . f a i l u r e ; } i f ( c a l l b a c k F u n c ) { c a l l b a c k F u n c . a p p l y ( s c o p e , p a r a m s . c o n c a t ( [ c a l l b a c k . a r g u m e n t ] ) ) ; } } } } , p a r s e S t r i n g : f u n c t i o n ( o D a t a ) { i f ( ! l a n g . i s V a l u e ( o D a t a ) ) { r e t u r n   n u l l ; } v a r   s t r i n g = o D a t a + " " ; i f ( l a n g . i s S t r i n g ( s t r i n g ) ) { r e t u r n   s t r i n g ; } e l s e { r e t u r n   n u l l ; } } , p a r s e N u m b e r : f u n c t i o n ( o D a t a ) { i f ( ! l a n g . i s V a l u e ( o D a t a ) | | ( o D a t a = = = " " ) ) { r e t u r n   n u l l ; } v a r   n u m b e r = o D a t a * 1 ; i f ( l a n g . i s N u m b e r ( n u m b e r ) ) { r e t u r n   n u m b e r ; } e l s e { r e t u r n   n u l l ; } } , c o n v e r t N u m b e r : f u n c t i o n ( o D a t a ) { r e t u r n   D S . p a r s e N u m b e r ( o D a t a ) ; } , p a r s e D a t e : f u n c t i o n ( o D a t a ) { v a r   d a t e = n u l l ; i f ( ! ( o D a t a   i n s t a n c e o f   D a t e ) ) { d a t e = n e w   D a t e ( o D a t a ) ; } e l s e { r e t u r n   o D a t a ; } i f ( d a t e   i n s t a n c e o f   D a t e ) { r e t u r n   d a t e ; } e l s e { r e t u r n   n u l l ; } } , c o n v e r t D a t e : f u n c t i o n ( o D a t a ) { r e t u r n   D S . p a r s e D a t e ( o D a t a ) ; } } ) ; D S . P a r s e r = { s t r i n g : D S . p a r s e S t r i n g , n u m b e r : D S . p a r s e N u m b e r , d a t e : D S . p a r s e D a t e } ; D S . p r o t o t y p e = { _ s N a m e : n u l l , _ a C a c h e : n u l l , _ o Q u e u e : n u l l , _ a I n t e r v a l s : n u l l , m a x C a c h e E n t r i e s : 0 , l i v e D a t a : n u l l , d a t a T y p e : D S . T Y P E _ U N K N O W N , r e s p o n s e T y p e : D S . T Y P E _ U N K N O W N , r e s p o n s e S c h e m a : n u l l , 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 . _ s N a m e ; } , g e t C a c h e d R e s p o n s e : f u n c t i o n ( o R e q u e s t , o C a l l b a c k , o C a l l e r ) { v a r   a C a c h e = t h i s . _ a C a c h e ; i f ( t h i s . m a x C a c h e E n t r i e s > 0 ) { i f ( ! a C a c h e ) { t h i s . _ a C a c h e = [ ] ; } e l s e { v a r   n C a c h e L e n g t h = a C a c h e . l e n g t h ; i f ( n C a c h e L e n g t h > 0 ) { v a r   o R e s p o n s e = n u l l ; t h i s . f i r e E v e n t ( " c a c h e R e q u e s t E v e n t " , { r e q u e s t : o R e q u e s t , c a l l b a c k : o C a l l b a c k , c a l l e r : o C a l l e r } ) ; f o r ( v a r   i = n C a c h e L e n g t h - 1 ; i > = 0 ; i - - ) { v a r   o C a c h e E l e m = a C a c h e [ i ] ; i f ( t h i s . i s C a c h e H i t ( o R e q u e s t , o C a c h e E l e m . r e q u e s t ) ) { o R e s p o n s e = o C a c h e E l e m . r e s p o n s e ; t h i s . f i r e E v e n t ( " c a c h e R e s p o n s e E v e n t " , { r e q u e s t : o R e q u e s t , r e s p o n s e : o R e s p o n s e , c a l l b a c k : o C a l l b a c k , c a l l e r : o C a l l e r } ) ; i f ( i < n C a c h e L e n g t h - 1 ) { a C a c h e . s p l i c e ( i , 1 ) ; t h i s . a d d T o C a c h e ( o R e q u e s t , o R e s p o n s e ) ; } o R e s p o n s e . c a c h e d = t r u e ; b r e a k ; } } r e t u r n   o R e s p o n s e ; } } } e l s e { i f ( a C a c h e ) { t h i s . _ a C a c h e = n u l l ; } } r e t u r n   n u l l ; } , i s C a c h e H i t : f u n c t i o n ( o R e q u e s t , o C a c h e d R e q u e s t ) { r e t u r n ( o R e q u e s t = = = o C a c h e d R e q u e s t ) ; } , a d d T o C a c h e : f u n c t i o n ( o R e q u e s t , o R e s p o n s e ) { v a r   a C a c h e = t h i s . _ a C a c h e ; i f ( ! a C a c h e ) { r e t u r n ; } w h i l e ( a C a c h e . l e n g t h > = t h i s . m a x C a c h e E n t r i e s ) { a C a c h e . s h i f t ( ) ; } v a r   o C a c h e E l e m = { r e q u e s t : o R e q u e s t , r e s p o n s e : o R e s p o n s e } ; a C a c h e [ a C a c h e . l e n g t h ] = o C a c h e E l e m ; t h i s . f i r e E v e n t ( " r e s p o n s e C a c h e E v e n t " , { r e q u e s t : o R e q u e s t , r e s p o n s e : o R e s p o n s e } ) ; } , f l u s h C a c h e : f u n c t i o n ( ) { i f ( t h i s . _ a C a c h e ) { t h i s . _ a C a c h e = [ ] ; t h i s . f i r e E v e n t ( " c a c h e F l u s h E v e n t " ) ; } } , s e t I n t e r v a l : f u n c t i o n ( n M s e c , o R e q u e s t , o C a l l b a c k , o C a l l e r ) { i f ( l a n g . i s N u m b e r ( n M s e c ) & & ( n M s e c > = 0 ) ) { v a r   o S e l f = t h i s ; v a r   n I d = s e t I n t e r v a l ( f u n c t i o n ( ) { o S e l f . m a k e C o n n e c t i o n ( o R e q u e s t , o C a l l b a c k , o C a l l e r ) ; } , n M s e c ) ; t h i s . _ a I n t e r v a l s . p u s h ( n I d ) ; r e t u r n   n I d ; } e l s e { } } , c l e a r I n t e r v a l : f u n c t i o n ( n I d ) { v a r   t r a c k e r = t h i s . _ a I n t e r v a l s | | [ ] ; f o r ( v a r   i = t r a c k e r . l e n g t h - 1 ; i > - 1 ; i - - ) { i f ( t r a c k e r [ i ] = = = n I d ) { t r a c k e r . s p l i c e ( i , 1 ) ; c l e a r I n t e r v a l ( n I d ) ; } } } , c l e a r A l l I n t e r v a l s : f u n c t i o n ( ) { v a r   t r a c k e r = t h i s . _ a I n t e r v a l s | | [ ] ; f o r ( v a r   i = t r a c k e r . l e n g t h - 1 ; i > - 1 ; i - - ) { c l e a r I n t e r v a l ( t r a c k e r [ i ] ) ; } t r a c k e r = [ ] ; } , s e n d R e q u e s t : f u n c t i o n ( o R e q u e s t , o C a l l b a c k , o C a l l e r ) { v a r   o C a c h e d R e s p o n s e = t h i s . g e t C a c h e d R e s p o n s e ( o R e q u e s t , o C a l l b a c k , o C a l l e r ) ; i f ( o C a c h e d R e s p o n s e ) { D S . i s s u e C a l l b a c k ( o C a l l b a c k , [ o R e q u e s t , o C a c h e d R e s p o n s e ] , f a l s e , o C a l l e r ) ; r e t u r n   n u l l ; } r e t u r n   t h i s . m a k e C o n n e c t i o n ( o R e q u e s t , o C a l l b a c k , o C a l l e r ) ; } , m a k e C o n n e c t i o n : f u n c t i o n ( o R e q u e s t , o C a l l b a c k , o C a l l e r ) { v a r   t I d = D S . _ n T r a n s a c t i o n I d + + ; t h i s . f i r e E v e n t ( " r e q u e s t E v e n t " , { t I d : t I d , r e q u e s t : o R e q u e s t , c a l l b a c k : o C a l l b a c k , c a l l e r : o C a l l e r } ) ; v a r   o R a w R e s p o n s e = t h i s . l i v e D a t a ; t h i s . h a n d l e R e s p o n s e ( o R e q u e s t , o R a w R e s p o n s e , o C a l l b a c k , o C a l l e r , t I d ) ; r e t u r n   t I d ; } , h a n d l e R e s p o n s e : f u n c t i o n ( o R e q u e s t , o R a w R e s p o n s e , o C a l l b a c k , o C a l l e r , t I d ) { t h i s . f i r e E v e n t ( " r e s p o n s e E v e n t " , { t I d : t I d , r e q u e s t : o R e q u e s t , r e s p o n s e : o R a w R e s p o n s e , c a l l b a c k : o C a l l b a c k , c a l l e r : o C a l l e r } ) ; v a r   x h r = ( t h i s . d a t a T y p e = = D S . T Y P E _ X H R ) ? t r u e : f a l s e ; v a r   o P a r s e d R e s p o n s e = n u l l ; v a r   o F u l l R e s p o n s e = o R a w R e s p o n s e ; i f ( t h i s . r e s p o n s e T y p e = = = D S . T Y P E _ U N K N O W N ) { v a r   c t y p e = ( o R a w R e s p o n s e & & o R a w R e s p o n s e . g e t R e s p o n s e H e a d e r ) ? o R a w R e s p o n s e . g e t R e s p o n s e H e a d e r [ " C o n t e n t - T y p e " ] : n u l l ; i f ( c t y p e ) { i f ( c t y p e . i n d e x O f ( " t e x t / x m l " ) > - 1 ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ X M L ; } e l s e { i f ( c t y p e . i n d e x O f ( " a p p l i c a t i o n / j s o n " ) > - 1 ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ J S O N ; } e l s e { i f ( c t y p e . i n d e x O f ( " t e x t / p l a i n " ) > - 1 ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ T E X T ; } } } } e l s e { i f ( Y A H O O . l a n g . i s A r r a y ( o R a w R e s p o n s e ) ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ J S A R R A Y ; } e l s e { i f ( o R a w R e s p o n s e & & o R a w R e s p o n s e . n o d e T y p e & & o R a w R e s p o n s e . n o d e T y p e = = 9 ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ X M L ; } e l s e { i f ( o R a w R e s p o n s e & & o R a w R e s p o n s e . n o d e N a m e & & ( o R a w R e s p o n s e . n o d e N a m e . t o L o w e r C a s e ( ) = = " t a b l e " ) ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ H T M L T A B L E ; } e l s e { i f ( Y A H O O . l a n g . i s O b j e c t ( o R a w R e s p o n s e ) ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ J S O N ; } e l s e { i f ( Y A H O O . l a n g . i s S t r i n g ( o R a w R e s p o n s e ) ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ T E X T ; } } } } } } } s w i t c h ( t h i s . r e s p o n s e T y p e ) { c a s e   D S . T Y P E _ J S A R R A Y : i f ( x h r & & o R a w R e s p o n s e & & o R a w R e s p o n s e . r e s p o n s e T e x t ) { o F u l l R e s p o n s e = o R a w R e s p o n s e . r e s p o n s e T e x t ; } t r y { i f ( l a n g . i s S t r i n g ( o F u l l R e s p o n s e ) ) { v a r   p a r s e A r g s = [ o F u l l R e s p o n s e ] . c o n c a t ( t h i s . p a r s e J S O N A r g s ) ;  
 i f ( l a n g . J S O N ) { o F u l l R e s p o n s e = l a n g . J S O N . p a r s e . a p p l y ( l a n g . J S O N , p a r s e A r g s ) ; } e l s e { i f ( w i n d o w . J S O N & & J S O N . p a r s e ) { o F u l l R e s p o n s e = J S O N . p a r s e . a p p l y ( J S O N , p a r s e A r g s ) ; } e l s e { i f ( o F u l l R e s p o n s e . p a r s e J S O N ) { o F u l l R e s p o n s e = o F u l l R e s p o n s e . p a r s e J S O N . a p p l y ( o F u l l R e s p o n s e , p a r s e A r g s . s l i c e ( 1 ) ) ; } e l s e { w h i l e ( o F u l l R e s p o n s e . l e n g t h > 0 & & ( o F u l l R e s p o n s e . c h a r A t ( 0 ) ! = " { " ) & & ( o F u l l R e s p o n s e . c h a r A t ( 0 ) ! = " [ " ) ) { o F u l l R e s p o n s e = o F u l l R e s p o n s e . s u b s t r i n g ( 1 , o F u l l R e s p o n s e . l e n g t h ) ; } i f ( o F u l l R e s p o n s e . l e n g t h > 0 ) { v a r   a r r a y E n d = M a t h . m a x ( o F u l l R e s p o n s e . l a s t I n d e x O f ( " ] " ) , o F u l l R e s p o n s e . l a s t I n d e x O f ( " } " ) ) ; o F u l l R e s p o n s e = o F u l l R e s p o n s e . s u b s t r i n g ( 0 , a r r a y E n d + 1 ) ; o F u l l R e s p o n s e = e v a l ( " ( " + o F u l l R e s p o n s e + " ) " ) ; } } } } } } c a t c h ( e 1 ) { } o F u l l R e s p o n s e = t h i s . d o B e f o r e P a r s e D a t a ( o R e q u e s t , o F u l l R e s p o n s e , o C a l l b a c k ) ; o P a r s e d R e s p o n s e = t h i s . p a r s e A r r a y D a t a ( o R e q u e s t , o F u l l R e s p o n s e ) ; b r e a k ; c a s e   D S . T Y P E _ J S O N : i f ( x h r & & o R a w R e s p o n s e & & o R a w R e s p o n s e . r e s p o n s e T e x t ) { o F u l l R e s p o n s e = o R a w R e s p o n s e . r e s p o n s e T e x t ; } t r y { i f ( l a n g . i s S t r i n g ( o F u l l R e s p o n s e ) ) { v a r   p a r s e A r g s = [ o F u l l R e s p o n s e ] . c o n c a t ( t h i s . p a r s e J S O N A r g s ) ; i f ( l a n g . J S O N ) { o F u l l R e s p o n s e = l a n g . J S O N . p a r s e . a p p l y ( l a n g . J S O N , p a r s e A r g s ) ; } e l s e { i f ( w i n d o w . J S O N & & J S O N . p a r s e ) { o F u l l R e s p o n s e = J S O N . p a r s e . a p p l y ( J S O N , p a r s e A r g s ) ; } e l s e { i f ( o F u l l R e s p o n s e . p a r s e J S O N ) { o F u l l R e s p o n s e = o F u l l R e s p o n s e . p a r s e J S O N . a p p l y ( o F u l l R e s p o n s e , p a r s e A r g s . s l i c e ( 1 ) ) ; } e l s e { w h i l e ( o F u l l R e s p o n s e . l e n g t h > 0 & & ( o F u l l R e s p o n s e . c h a r A t ( 0 ) ! = " { " ) & & ( o F u l l R e s p o n s e . c h a r A t ( 0 ) ! = " [ " ) ) { o F u l l R e s p o n s e = o F u l l R e s p o n s e . s u b s t r i n g ( 1 , o F u l l R e s p o n s e . l e n g t h ) ; } i f ( o F u l l R e s p o n s e . l e n g t h > 0 ) { v a r   o b j E n d = M a t h . m a x ( o F u l l R e s p o n s e . l a s t I n d e x O f ( " ] " ) , o F u l l R e s p o n s e . l a s t I n d e x O f ( " } " ) ) ; o F u l l R e s p o n s e = o F u l l R e s p o n s e . s u b s t r i n g ( 0 , o b j E n d + 1 ) ; o F u l l R e s p o n s e = e v a l ( " ( " + o F u l l R e s p o n s e + " ) " ) ; } } } } } } c a t c h ( e ) { } o F u l l R e s p o n s e = t h i s . d o B e f o r e P a r s e D a t a ( o R e q u e s t , o F u l l R e s p o n s e , o C a l l b a c k ) ; o P a r s e d R e s p o n s e = t h i s . p a r s e J S O N D a t a ( o R e q u e s t , o F u l l R e s p o n s e ) ; b r e a k ; c a s e   D S . T Y P E _ H T M L T A B L E : i f ( x h r & & o R a w R e s p o n s e . r e s p o n s e T e x t ) { v a r   e l = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; e l . i n n e r H T M L = o R a w R e s p o n s e . r e s p o n s e T e x t ; o F u l l R e s p o n s e = e l . g e t E l e m e n t s B y T a g N a m e ( " t a b l e " ) [ 0 ] ; } o F u l l R e s p o n s e = t h i s . d o B e f o r e P a r s e D a t a ( o R e q u e s t , o F u l l R e s p o n s e , o C a l l b a c k ) ; o P a r s e d R e s p o n s e = t h i s . p a r s e H T M L T a b l e D a t a ( o R e q u e s t , o F u l l R e s p o n s e ) ; b r e a k ; c a s e   D S . T Y P E _ X M L : i f ( x h r & & o R a w R e s p o n s e . r e s p o n s e X M L ) { o F u l l R e s p o n s e = o R a w R e s p o n s e . r e s p o n s e X M L ; } o F u l l R e s p o n s e = t h i s . d o B e f o r e P a r s e D a t a ( o R e q u e s t , o F u l l R e s p o n s e , o C a l l b a c k ) ; o P a r s e d R e s p o n s e = t h i s . p a r s e X M L D a t a ( o R e q u e s t , o F u l l R e s p o n s e ) ; b r e a k ; c a s e   D S . T Y P E _ T E X T : i f ( x h r & & l a n g . i s S t r i n g ( o R a w R e s p o n s e . r e s p o n s e T e x t ) ) { o F u l l R e s p o n s e = o R a w R e s p o n s e . r e s p o n s e T e x t ; } o F u l l R e s p o n s e = t h i s . d o B e f o r e P a r s e D a t a ( o R e q u e s t , o F u l l R e s p o n s e , o C a l l b a c k ) ; o P a r s e d R e s p o n s e = t h i s . p a r s e T e x t D a t a ( o R e q u e s t , o F u l l R e s p o n s e ) ; b r e a k ; d e f a u l t : o F u l l R e s p o n s e = t h i s . d o B e f o r e P a r s e D a t a ( o R e q u e s t , o F u l l R e s p o n s e , o C a l l b a c k ) ; o P a r s e d R e s p o n s e = t h i s . p a r s e D a t a ( o R e q u e s t , o F u l l R e s p o n s e ) ; b r e a k ; } o P a r s e d R e s p o n s e = o P a r s e d R e s p o n s e | | { } ; i f ( ! o P a r s e d R e s p o n s e . r e s u l t s ) { o P a r s e d R e s p o n s e . r e s u l t s = [ ] ; } i f ( ! o P a r s e d R e s p o n s e . m e t a ) { o P a r s e d R e s p o n s e . m e t a = { } ; } i f ( o P a r s e d R e s p o n s e & & ! o P a r s e d R e s p o n s e . e r r o r ) { o P a r s e d R e s p o n s e = t h i s . d o B e f o r e C a l l b a c k ( o R e q u e s t , o F u l l R e s p o n s e , o P a r s e d R e s p o n s e , o C a l l b a c k ) ; t h i s . f i r e E v e n t ( " r e s p o n s e P a r s e E v e n t " , { r e q u e s t : o R e q u e s t , r e s p o n s e : o P a r s e d R e s p o n s e , c a l l b a c k : o C a l l b a c k , c a l l e r : o C a l l e r } ) ; t h i s . a d d T o C a c h e ( o R e q u e s t , o P a r s e d R e s p o n s e ) ; } e l s e { o P a r s e d R e s p o n s e . e r r o r = t r u e ; t h i s . f i r e E v e n t ( " d a t a E r r o r E v e n t " , { r e q u e s t : o R e q u e s t , r e s p o n s e : o R a w R e s p o n s e , c a l l b a c k : o C a l l b a c k , c a l l e r : o C a l l e r , m e s s a g e : D S . E R R O R _ D A T A N U L L } ) ; } o P a r s e d R e s p o n s e . t I d = t I d ; D S . i s s u e C a l l b a c k ( o C a l l b a c k , [ o R e q u e s t , o P a r s e d R e s p o n s e ] , o P a r s e d R e s p o n s e . e r r o r , o C a l l e r ) ; } , d o B e f o r e P a r s e D a t a : f u n c t i o n ( o R e q u e s t , o F u l l R e s p o n s e , o C a l l b a c k ) { r e t u r n   o F u l l R e s p o n s e ; } , d o B e f o r e C a l l b a c k : f u n c t i o n ( o R e q u e s t , o F u l l R e s p o n s e , o P a r s e d R e s p o n s e , o C a l l b a c k ) { r e t u r n   o P a r s e d R e s p o n s e ; } , p a r s e D a t a : f u n c t i o n ( o R e q u e s t , o F u l l R e s p o n s e ) { i f ( l a n g . i s V a l u e ( o F u l l R e s p o n s e ) ) { v a r   o P a r s e d R e s p o n s e = { r e s u l t s : o F u l l R e s p o n s e , m e t a : { } } ; r e t u r n   o P a r s e d R e s p o n s e ; } r e t u r n   n u l l ; } , p a r s e A r r a y D a t a : f u n c t i o n ( o R e q u e s t , o F u l l R e s p o n s e ) { i f ( l a n g . i s A r r a y ( o F u l l R e s p o n s e ) ) { v a r   r e s u l t s = [ ] , i , j , r e c , f i e l d , d a t a ; i f ( l a n g . i s A r r a y ( t h i s . r e s p o n s e S c h e m a . f i e l d s ) ) { v a r   f i e l d s = t h i s . r e s p o n s e S c h e m a . f i e l d s ; f o r ( i = f i e l d s . l e n g t h - 1 ; i > = 0 ; - - i ) { i f ( t y p e o f   f i e l d s [ i ] ! = = " o b j e c t " ) { f i e l d s [ i ] = { k e y : f i e l d s [ i ] } ; } } v a r   p a r s e r s = { } , p ; f o r ( i = f i e l d s . l e n g t h - 1 ; i > = 0 ; - - i ) { p = ( t y p e o f   f i e l d s [ i ] . p a r s e r = = = " f u n c t i o n " ? f i e l d s [ i ] . p a r s e r : D S . P a r s e r [ f i e l d s [ i ] . p a r s e r + " " ] ) | | f i e l d s [ i ] . c o n v e r t e r ; i f ( p ) { p a r s e r s [ f i e l d s [ i ] . k e y ] = p ; } } v a r   a r r T y p e = l a n g . i s A r r a y ( o F u l l R e s p o n s e [ 0 ] ) ; f o r ( i = o F u l l R e s p o n s e . l e n g t h - 1 ; i > - 1 ; i - - ) { v a r   o R e s u l t = { } ; r e c = o F u l l R e s p o n s e [ i ] ; i f ( t y p e o f   r e c = = = " o b j e c t " ) { f o r ( j = f i e l d s . l e n g t h - 1 ; j > - 1 ; j - - ) { f i e l d = f i e l d s [ j ] ; d a t a = a r r T y p e ? r e c [ j ] : r e c [ f i e l d . k e y ] ; i f ( p a r s e r s [ f i e l d . k e y ] ) { d a t a = p a r s e r s [ f i e l d . k e y ] . c a l l ( t h i s , d a t a ) ; } i f ( d a t a = = = u n d e f i n e d ) { d a t a = n u l l ; } o R e s u l t [ f i e l d . k e y ] = d a t a ; } } e l s e { i f ( l a n g . i s S t r i n g ( r e c ) ) { f o r ( j = f i e l d s . l e n g t h - 1 ; j > - 1 ; j - - ) { f i e l d = f i e l d s [ j ] ; d a t a = r e c ; i f ( p a r s e r s [ f i e l d . k e y ] ) { d a t a = p a r s e r s [ f i e l d . k e y ] . c a l l ( t h i s , d a t a ) ; } i f ( d a t a = = = u n d e f i n e d ) { d a t a = n u l l ; } o R e s u l t [ f i e l d . k e y ] = d a t a ; } } } r e s u l t s [ i ] = o R e s u l t ; } } e l s e { r e s u l t s = o F u l l R e s p o n s e ; } v a r   o P a r s e d R e s p o n s e = { r e s u l t s : r e s u l t s } ; r e t u r n   o P a r s e d R e s p o n s e ; } r e t u r n   n u l l ; } , p a r s e T e x t D a t a : f u n c t i o n ( o R e q u e s t , o F u l l R e s p o n s e ) { i f ( l a n g . i s S t r i n g ( o F u l l R e s p o n s e ) ) { i f ( l a n g . i s S t r i n g ( t h i s . r e s p o n s e S c h e m a . r e c o r d D e l i m ) & & l a n g . i s S t r i n g ( t h i s . r e s p o n s e S c h e m a . f i e l d D e l i m ) ) { v a r   o P a r s e d R e s p o n s e = { r e s u l t s : [ ] } ; v a r   r e c D e l i m = t h i s . r e s p o n s e S c h e m a . r e c o r d D e l i m ; v a r   f i e l d D e l i m = t h i s . r e s p o n s e S c h e m a . f i e l d D e l i m ; i f ( o F u l l R e s p o n s e . l e n g t h > 0 ) { v a r   n e w L e n g t h = o F u l l R e s p o n s e . l e n g t h - r e c D e l i m . l e n g t h ; i f ( o F u l l R e s p o n s e . s u b s t r ( n e w L e n g t h ) = = r e c D e l i m ) { o F u l l R e s p o n s e = o F u l l R e s p o n s e . s u b s t r ( 0 , n e w L e n g t h ) ; } i f ( o F u l l R e s p o n s e . l e n g t h > 0 ) { v a r   r e c o r d s a r r a y = o F u l l R e s p o n s e . s p l i t ( r e c D e l i m ) ; f o r ( v a r   i = 0 , l e n = r e c o r d s a r r a y . l e n g t h , r e c I d x = 0 ; i < l e n ; + + i ) { v a r   b E r r o r = f a l s e , s R e c o r d = r e c o r d s a r r a y [ i ] ; i f ( l a n g . i s S t r i n g ( s R e c o r d ) & & ( s R e c o r d . l e n g t h > 0 ) ) { v a r   f i e l d d a t a a r r a y = r e c o r d s a r r a y [ i ] . s p l i t ( f i e l d D e l i m ) ; v a r   o R e s u l t = { } ; i f ( l a n g . i s A r r a y ( t h i s . r e s p o n s e S c h e m a . f i e l d s ) ) { v a r   f i e l d s = t h i s . r e s p o n s e S c h e m a . f i e l d s ; f o r ( v a r   j = f i e l d s . l e n g t h - 1 ; j > - 1 ; j - - ) { t r y { v a r   d a t a = f i e l d d a t a a r r a y [ j ] ; i f ( l a n g . i s S t r i n g ( d a t a ) ) { i f ( d a t a . c h a r A t ( 0 ) = = ' " ' ) { d a t a = d a t a . s u b s t r ( 1 ) ; } i f ( d a t a . c h a r A t ( d a t a . l e n g t h - 1 ) = = ' " ' ) { d a t a = d a t a . s u b s t r ( 0 , d a t a . l e n g t h - 1 ) ; } v a r   f i e l d = f i e l d s [ j ] ;  
 v a r   k e y = ( l a n g . i s V a l u e ( f i e l d . k e y ) ) ? f i e l d . k e y : f i e l d ; i f ( ! f i e l d . p a r s e r & & f i e l d . c o n v e r t e r ) { f i e l d . p a r s e r = f i e l d . c o n v e r t e r ; } v a r   p a r s e r = ( t y p e o f   f i e l d . p a r s e r = = = " f u n c t i o n " ) ? f i e l d . p a r s e r : D S . P a r s e r [ f i e l d . p a r s e r + " " ] ; i f ( p a r s e r ) { d a t a = p a r s e r . c a l l ( t h i s , d a t a ) ; } i f ( d a t a = = = u n d e f i n e d ) { d a t a = n u l l ; } o R e s u l t [ k e y ] = d a t a ; } e l s e { b E r r o r = t r u e ; } } c a t c h ( e ) { b E r r o r = t r u e ; } } } e l s e { o R e s u l t = f i e l d d a t a a r r a y ; } i f ( ! b E r r o r ) { o P a r s e d R e s p o n s e . r e s u l t s [ r e c I d x + + ] = o R e s u l t ; } } } } } r e t u r n   o P a r s e d R e s p o n s e ; } } r e t u r n   n u l l ; } , p a r s e X M L R e s u l t : f u n c t i o n ( r e s u l t ) { v a r   o R e s u l t = { } , s c h e m a = t h i s . r e s p o n s e S c h e m a ; t r y { f o r ( v a r   m = s c h e m a . f i e l d s . l e n g t h - 1 ; m > = 0 ; m - - ) { v a r   f i e l d = s c h e m a . f i e l d s [ m ] ; v a r   k e y = ( l a n g . i s V a l u e ( f i e l d . k e y ) ) ? f i e l d . k e y : f i e l d ; v a r   d a t a = n u l l ; v a r   x m l A t t r = r e s u l t . a t t r i b u t e s . g e t N a m e d I t e m ( k e y ) ; i f ( x m l A t t r ) { d a t a = x m l A t t r . v a l u e ; } e l s e { v a r   x m l N o d e = r e s u l t . g e t E l e m e n t s B y T a g N a m e ( k e y ) ; i f ( x m l N o d e & & x m l N o d e . i t e m ( 0 ) ) { v a r   i t e m = x m l N o d e . i t e m ( 0 ) ; d a t a = ( i t e m ) ? ( ( i t e m . t e x t ) ? i t e m . t e x t : ( i t e m . t e x t C o n t e n t ) ? i t e m . t e x t C o n t e n t : n u l l ) : n u l l ; i f ( ! d a t a ) { v a r   d a t a p i e c e s = [ ] ; f o r ( v a r   j = 0 , l e n = i t e m . c h i l d N o d e s . l e n g t h ; j < l e n ; j + + ) { i f ( i t e m . c h i l d N o d e s [ j ] . n o d e V a l u e ) { d a t a p i e c e s [ d a t a p i e c e s . l e n g t h ] = i t e m . c h i l d N o d e s [ j ] . n o d e V a l u e ; } } i f ( d a t a p i e c e s . l e n g t h > 0 ) { d a t a = d a t a p i e c e s . j o i n ( " " ) ; } } } } i f ( d a t a = = = n u l l ) { d a t a = " " ; } i f ( ! f i e l d . p a r s e r & & f i e l d . c o n v e r t e r ) { f i e l d . p a r s e r = f i e l d . c o n v e r t e r ; } v a r   p a r s e r = ( t y p e o f   f i e l d . p a r s e r = = = " f u n c t i o n " ) ? f i e l d . p a r s e r : D S . P a r s e r [ f i e l d . p a r s e r + " " ] ; i f ( p a r s e r ) { d a t a = p a r s e r . c a l l ( t h i s , d a t a ) ; } i f ( d a t a = = = u n d e f i n e d ) { d a t a = n u l l ; } o R e s u l t [ k e y ] = d a t a ; } } c a t c h ( e ) { } r e t u r n   o R e s u l t ; } , p a r s e X M L D a t a : f u n c t i o n ( o R e q u e s t , o F u l l R e s p o n s e ) { v a r   b E r r o r = f a l s e , s c h e m a = t h i s . r e s p o n s e S c h e m a , o P a r s e d R e s p o n s e = { m e t a : { } } , x m l L i s t = n u l l , m e t a N o d e = s c h e m a . m e t a N o d e , m e t a L o c a t o r s = s c h e m a . m e t a F i e l d s | | { } , i , k , l o c , v ; t r y { x m l L i s t = ( s c h e m a . r e s u l t N o d e ) ? o F u l l R e s p o n s e . g e t E l e m e n t s B y T a g N a m e ( s c h e m a . r e s u l t N o d e ) : n u l l ; m e t a N o d e = m e t a N o d e ? o F u l l R e s p o n s e . g e t E l e m e n t s B y T a g N a m e ( m e t a N o d e ) [ 0 ] : o F u l l R e s p o n s e ; i f ( m e t a N o d e ) { f o r ( k   i n   m e t a L o c a t o r s ) { i f ( l a n g . h a s O w n P r o p e r t y ( m e t a L o c a t o r s , k ) ) { l o c = m e t a L o c a t o r s [ k ] ; v = m e t a N o d e . g e t E l e m e n t s B y T a g N a m e ( l o c ) [ 0 ] ; i f ( v ) { v = v . f i r s t C h i l d . n o d e V a l u e ; } e l s e { v = m e t a N o d e . a t t r i b u t e s . g e t N a m e d I t e m ( l o c ) ; i f ( v ) { v = v . v a l u e ; } } i f ( l a n g . i s V a l u e ( v ) ) { o P a r s e d R e s p o n s e . m e t a [ k ] = v ; } } } } } c a t c h ( e ) { } i f ( ! x m l L i s t | | ! l a n g . i s A r r a y ( s c h e m a . f i e l d s ) ) { b E r r o r = t r u e ; } e l s e { o P a r s e d R e s p o n s e . r e s u l t s = [ ] ; f o r ( i = x m l L i s t . l e n g t h - 1 ; i > = 0 ; - - i ) { v a r   o R e s u l t = t h i s . p a r s e X M L R e s u l t ( x m l L i s t . i t e m ( i ) ) ; o P a r s e d R e s p o n s e . r e s u l t s [ i ] = o R e s u l t ; } } i f ( b E r r o r ) { o P a r s e d R e s p o n s e . e r r o r = t r u e ; } e l s e { } r e t u r n   o P a r s e d R e s p o n s e ; } , p a r s e J S O N D a t a : f u n c t i o n ( o R e q u e s t , o F u l l R e s p o n s e ) { v a r   o P a r s e d R e s p o n s e = { r e s u l t s : [ ] , m e t a : { } } ; i f ( l a n g . i s O b j e c t ( o F u l l R e s p o n s e ) & & t h i s . r e s p o n s e S c h e m a . r e s u l t s L i s t ) { v a r   s c h e m a = t h i s . r e s p o n s e S c h e m a , f i e l d s = s c h e m a . f i e l d s , r e s u l t s L i s t = o F u l l R e s p o n s e , r e s u l t s = [ ] , m e t a F i e l d s = s c h e m a . m e t a F i e l d s | | { } , f i e l d P a r s e r s = [ ] , f i e l d P a t h s = [ ] , s i m p l e F i e l d s = [ ] , b E r r o r = f a l s e , i , l e n , j , v , k e y , p a r s e r , p a t h ; v a r   b u i l d P a t h = f u n c t i o n ( n e e d l e ) { v a r   p a t h = n u l l , k e y s = [ ] , i = 0 ; i f ( n e e d l e ) { n e e d l e = n e e d l e . r e p l a c e ( / \ [ ( [ ' " ] ) ( . * ? ) \ 1 \ ] / g , f u n c t i o n ( x , $ 1 , $ 2 ) { k e y s [ i ] = $ 2 ; r e t u r n " . @ " + ( i + + ) ; } ) . r e p l a c e ( / \ [ ( \ d + ) \ ] / g , f u n c t i o n ( x , $ 1 ) { k e y s [ i ] = p a r s e I n t ( $ 1 , 1 0 ) | 0 ; r e t u r n " . @ " + ( i + + ) ; } ) . r e p l a c e ( / ^ \ . / , " " ) ; i f ( ! / [ ^ \ w \ . \ $ @ ] / . t e s t ( n e e d l e ) ) { p a t h = n e e d l e . s p l i t ( " . " ) ; f o r ( i = p a t h . l e n g t h - 1 ; i > = 0 ; - - i ) { i f ( p a t h [ i ] . c h a r A t ( 0 ) = = = " @ " ) { p a t h [ i ] = k e y s [ p a r s e I n t ( p a t h [ i ] . s u b s t r ( 1 ) , 1 0 ) ] ; } } } e l s e { } } r e t u r n   p a t h ; } ; v a r   w a l k P a t h = f u n c t i o n ( p a t h , o r i g i n ) { v a r   v = o r i g i n , i = 0 , l e n = p a t h . l e n g t h ; f o r ( ; i < l e n & & v ; + + i ) { v = v [ p a t h [ i ] ] ; } r e t u r n   v ; } ; p a t h = b u i l d P a t h ( s c h e m a . r e s u l t s L i s t ) ; i f ( p a t h ) { r e s u l t s L i s t = w a l k P a t h ( p a t h , o F u l l R e s p o n s e ) ; i f ( r e s u l t s L i s t = = = u n d e f i n e d ) { b E r r o r = t r u e ; } } e l s e { b E r r o r = t r u e ; } i f ( ! r e s u l t s L i s t ) { r e s u l t s L i s t = [ ] ; } i f ( ! l a n g . i s A r r a y ( r e s u l t s L i s t ) ) { r e s u l t s L i s t = [ r e s u l t s L i s t ] ; } i f ( ! b E r r o r ) { i f ( s c h e m a . f i e l d s ) { v a r   f i e l d ; f o r ( i = 0 , l e n = f i e l d s . l e n g t h ; i < l e n ; i + + ) { f i e l d = f i e l d s [ i ] ; k e y = f i e l d . k e y | | f i e l d ; p a r s e r = ( ( t y p e o f   f i e l d . p a r s e r = = = " f u n c t i o n " ) ? f i e l d . p a r s e r : D S . P a r s e r [ f i e l d . p a r s e r + " " ] ) | | f i e l d . c o n v e r t e r ; p a t h = b u i l d P a t h ( k e y ) ; i f ( p a r s e r ) { f i e l d P a r s e r s [ f i e l d P a r s e r s . l e n g t h ] = { k e y : k e y , p a r s e r : p a r s e r } ; } i f ( p a t h ) { i f ( p a t h . l e n g t h > 1 ) { f i e l d P a t h s [ f i e l d P a t h s . l e n g t h ] = { k e y : k e y , p a t h : p a t h } ; } e l s e { s i m p l e F i e l d s [ s i m p l e F i e l d s . l e n g t h ] = { k e y : k e y , p a t h : p a t h [ 0 ] } ; } } e l s e { } } f o r ( i = r e s u l t s L i s t . l e n g t h - 1 ; i > = 0 ; - - i ) { v a r   r = r e s u l t s L i s t [ i ] , r e c = { } ; i f ( r ) { f o r ( j = s i m p l e F i e l d s . l e n g t h - 1 ; j > = 0 ; - - j ) { r e c [ s i m p l e F i e l d s [ j ] . k e y ] = ( r [ s i m p l e F i e l d s [ j ] . p a t h ] ! = = u n d e f i n e d ) ? r [ s i m p l e F i e l d s [ j ] . p a t h ] : r [ j ] ; } f o r ( j = f i e l d P a t h s . l e n g t h - 1 ; j > = 0 ; - - j ) { r e c [ f i e l d P a t h s [ j ] . k e y ] = w a l k P a t h ( f i e l d P a t h s [ j ] . p a t h , r ) ; } f o r ( j = f i e l d P a r s e r s . l e n g t h - 1 ; j > = 0 ; - - j ) { v a r   p = f i e l d P a r s e r s [ j ] . k e y ; r e c [ p ] = f i e l d P a r s e r s [ j ] . p a r s e r ( r e c [ p ] ) ; i f ( r e c [ p ] = = = u n d e f i n e d ) { r e c [ p ] = n u l l ; } } } r e s u l t s [ i ] = r e c ; } } e l s e { r e s u l t s = r e s u l t s L i s t ; } f o r ( k e y   i n   m e t a F i e l d s ) { i f ( l a n g . h a s O w n P r o p e r t y ( m e t a F i e l d s , k e y ) ) { p a t h = b u i l d P a t h ( m e t a F i e l d s [ k e y ] ) ; i f ( p a t h ) { v = w a l k P a t h ( p a t h , o F u l l R e s p o n s e ) ; o P a r s e d R e s p o n s e . m e t a [ k e y ] = v ; } } } } e l s e { o P a r s e d R e s p o n s e . e r r o r = t r u e ; } o P a r s e d R e s p o n s e . r e s u l t s = r e s u l t s ; } e l s e { o P a r s e d R e s p o n s e . e r r o r = t r u e ; } r e t u r n   o P a r s e d R e s p o n s e ; } , p a r s e H T M L T a b l e D a t a : f u n c t i o n ( o R e q u e s t , o F u l l R e s p o n s e ) { v a r   b E r r o r = f a l s e ; v a r   e l T a b l e = o F u l l R e s p o n s e ; v a r   f i e l d s = t h i s . r e s p o n s e S c h e m a . f i e l d s ; v a r   o P a r s e d R e s p o n s e = { r e s u l t s : [ ] } ; i f ( l a n g . i s A r r a y ( f i e l d s ) ) { f o r ( v a r   i = 0 ; i < e l T a b l e . t B o d i e s . l e n g t h ; i + + ) { v a r   e l T b o d y = e l T a b l e . t B o d i e s [ i ] ; f o r ( v a r   j = e l T b o d y . r o w s . l e n g t h - 1 ; j > - 1 ; j - - ) { v a r   e l R o w = e l T b o d y . r o w s [ j ] ; v a r   o R e s u l t = { } ; f o r ( v a r   k = f i e l d s . l e n g t h - 1 ; k > - 1 ; k - - ) { v a r   f i e l d = f i e l d s [ k ] ; v a r   k e y = ( l a n g . i s V a l u e ( f i e l d . k e y ) ) ? f i e l d . k e y : f i e l d ; v a r   d a t a = e l R o w . c e l l s [ k ] . i n n e r H T M L ; i f ( ! f i e l d . p a r s e r & & f i e l d . c o n v e r t e r ) { f i e l d . p a r s e r = f i e l d . c o n v e r t e r ; } v a r   p a r s e r = ( t y p e o f   f i e l d . p a r s e r = = = " f u n c t i o n " ) ? f i e l d . p a r s e r : D S . P a r s e r [ f i e l d . p a r s e r + " " ] ; i f ( p a r s e r ) { d a t a = p a r s e r . c a l l ( t h i s , d a t a ) ; } i f ( d a t a = = = u n d e f i n e d ) { d a t a = n u l l ; } o R e s u l t [ k e y ] = d a t a ; } o P a r s e d R e s p o n s e . r e s u l t s [ j ] = o R e s u l t ; } } } e l s e { b E r r o r = t r u e ; } i f ( b E r r o r ) { o P a r s e d R e s p o n s e . e r r o r = t r u e ; } e l s e { } r e t u r n   o P a r s e d R e s p o n s e ; } } ; l a n g . a u g m e n t P r o t o ( D S , u t i l . E v e n t P r o v i d e r ) ; u t i l . L o c a l D a t a S o u r c e = f u n c t i o n ( o L i v e D a t a , o C o n f i g s ) { t h i s . d a t a T y p e = D S . T Y P E _ L O C A L ; i f ( o L i v e D a t a ) { i f ( Y A H O O . l a n g . i s A r r a y ( o L i v e D a t a ) ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ J S A R R A Y ; } e l s e { i f ( o L i v e D a t a . n o d e T y p e & & o L i v e D a t a . n o d e T y p e = = 9 ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ X M L ; } e l s e { i f ( o L i v e D a t a . n o d e N a m e & & ( o L i v e D a t a . n o d e N a m e . t o L o w e r C a s e ( ) = = " t a b l e " ) ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ H T M L T A B L E ;  
 o L i v e D a t a = o L i v e D a t a . c l o n e N o d e ( t r u e ) ; } e l s e { i f ( Y A H O O . l a n g . i s S t r i n g ( o L i v e D a t a ) ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ T E X T ; } e l s e { i f ( Y A H O O . l a n g . i s O b j e c t ( o L i v e D a t a ) ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ J S O N ; } } } } } } e l s e { o L i v e D a t a = [ ] ; t h i s . r e s p o n s e T y p e = D S . T Y P E _ J S A R R A Y ; } u t i l . L o c a l D a t a S o u r c e . s u p e r c l a s s . c o n s t r u c t o r . c a l l ( t h i s , o L i v e D a t a , o C o n f i g s ) ; } ; l a n g . e x t e n d ( u t i l . L o c a l D a t a S o u r c e , D S ) ; l a n g . a u g m e n t O b j e c t ( u t i l . L o c a l D a t a S o u r c e , D S ) ; u t i l . F u n c t i o n D a t a S o u r c e = f u n c t i o n ( o L i v e D a t a , o C o n f i g s ) { t h i s . d a t a T y p e = D S . T Y P E _ J S F U N C T I O N ; o L i v e D a t a = o L i v e D a t a | | f u n c t i o n ( ) { } ; u t i l . F u n c t i o n D a t a S o u r c e . s u p e r c l a s s . c o n s t r u c t o r . c a l l ( t h i s , o L i v e D a t a , o C o n f i g s ) ; } ; l a n g . e x t e n d ( u t i l . F u n c t i o n D a t a S o u r c e , D S , { s c o p e : n u l l , m a k e C o n n e c t i o n : f u n c t i o n ( o R e q u e s t , o C a l l b a c k , o C a l l e r ) { v a r   t I d = D S . _ n T r a n s a c t i o n I d + + ; t h i s . f i r e E v e n t ( " r e q u e s t E v e n t " , { t I d : t I d , r e q u e s t : o R e q u e s t , c a l l b a c k : o C a l l b a c k , c a l l e r : o C a l l e r } ) ; v a r   o R a w R e s p o n s e = ( t h i s . s c o p e ) ? t h i s . l i v e D a t a . c a l l ( t h i s . s c o p e , o R e q u e s t , t h i s ) : t h i s . l i v e D a t a ( o R e q u e s t ) ; i f ( t h i s . r e s p o n s e T y p e = = = D S . T Y P E _ U N K N O W N ) { i f ( Y A H O O . l a n g . i s A r r a y ( o R a w R e s p o n s e ) ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ J S A R R A Y ; } e l s e { i f ( o R a w R e s p o n s e & & o R a w R e s p o n s e . n o d e T y p e & & o R a w R e s p o n s e . n o d e T y p e = = 9 ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ X M L ; } e l s e { i f ( o R a w R e s p o n s e & & o R a w R e s p o n s e . n o d e N a m e & & ( o R a w R e s p o n s e . n o d e N a m e . t o L o w e r C a s e ( ) = = " t a b l e " ) ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ H T M L T A B L E ; } e l s e { i f ( Y A H O O . l a n g . i s O b j e c t ( o R a w R e s p o n s e ) ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ J S O N ; } e l s e { i f ( Y A H O O . l a n g . i s S t r i n g ( o R a w R e s p o n s e ) ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ T E X T ; } } } } } } t h i s . h a n d l e R e s p o n s e ( o R e q u e s t , o R a w R e s p o n s e , o C a l l b a c k , o C a l l e r , t I d ) ; r e t u r n   t I d ; } } ) ; l a n g . a u g m e n t O b j e c t ( u t i l . F u n c t i o n D a t a S o u r c e , D S ) ; u t i l . S c r i p t N o d e D a t a S o u r c e = f u n c t i o n ( o L i v e D a t a , o C o n f i g s ) { t h i s . d a t a T y p e = D S . T Y P E _ S C R I P T N O D E ; o L i v e D a t a = o L i v e D a t a | | " " ; u t i l . S c r i p t N o d e D a t a S o u r c e . s u p e r c l a s s . c o n s t r u c t o r . c a l l ( t h i s , o L i v e D a t a , o C o n f i g s ) ; } ; l a n g . e x t e n d ( u t i l . S c r i p t N o d e D a t a S o u r c e , D S , { g e t U t i l i t y : u t i l . G e t , a s y n c M o d e : " a l l o w A l l " , s c r i p t C a l l b a c k P a r a m : " c a l l b a c k " , g e n e r a t e R e q u e s t C a l l b a c k : f u n c t i o n ( i d ) { r e t u r n " & " + t h i s . s c r i p t C a l l b a c k P a r a m + " = Y A H O O . u t i l . S c r i p t N o d e D a t a S o u r c e . c a l l b a c k s [ " + i d + " ] " ; } , d o B e f o r e G e t S c r i p t N o d e : f u n c t i o n ( s U r i ) { r e t u r n   s U r i ; } , m a k e C o n n e c t i o n : f u n c t i o n ( o R e q u e s t , o C a l l b a c k , o C a l l e r ) { v a r   t I d = D S . _ n T r a n s a c t i o n I d + + ; t h i s . f i r e E v e n t ( " r e q u e s t E v e n t " , { t I d : t I d , r e q u e s t : o R e q u e s t , c a l l b a c k : o C a l l b a c k , c a l l e r : o C a l l e r } ) ; i f ( u t i l . S c r i p t N o d e D a t a S o u r c e . _ n P e n d i n g = = = 0 ) { u t i l . S c r i p t N o d e D a t a S o u r c e . c a l l b a c k s = [ ] ; u t i l . S c r i p t N o d e D a t a S o u r c e . _ n I d = 0 ; } v a r   i d = u t i l . S c r i p t N o d e D a t a S o u r c e . _ n I d ; u t i l . S c r i p t N o d e D a t a S o u r c e . _ n I d + + ; v a r   o S e l f = t h i s ; u t i l . S c r i p t N o d e D a t a S o u r c e . c a l l b a c k s [ i d ] = f u n c t i o n ( o R a w R e s p o n s e ) { i f ( ( o S e l f . a s y n c M o d e ! = = " i g n o r e S t a l e R e s p o n s e s " ) | | ( i d = = = u t i l . S c r i p t N o d e D a t a S o u r c e . c a l l b a c k s . l e n g t h - 1 ) ) { i f ( o S e l f . r e s p o n s e T y p e = = = D S . T Y P E _ U N K N O W N ) { i f ( Y A H O O . l a n g . i s A r r a y ( o R a w R e s p o n s e ) ) { o S e l f . r e s p o n s e T y p e = D S . T Y P E _ J S A R R A Y ; } e l s e { i f ( o R a w R e s p o n s e . n o d e T y p e & & o R a w R e s p o n s e . n o d e T y p e = = 9 ) { o S e l f . r e s p o n s e T y p e = D S . T Y P E _ X M L ; } e l s e { i f ( o R a w R e s p o n s e . n o d e N a m e & & ( o R a w R e s p o n s e . n o d e N a m e . t o L o w e r C a s e ( ) = = " t a b l e " ) ) { o S e l f . r e s p o n s e T y p e = D S . T Y P E _ H T M L T A B L E ; } e l s e { i f ( Y A H O O . l a n g . i s O b j e c t ( o R a w R e s p o n s e ) ) { o S e l f . r e s p o n s e T y p e = D S . T Y P E _ J S O N ; } e l s e { i f ( Y A H O O . l a n g . i s S t r i n g ( o R a w R e s p o n s e ) ) { o S e l f . r e s p o n s e T y p e = D S . T Y P E _ T E X T ; } } } } } } o S e l f . h a n d l e R e s p o n s e ( o R e q u e s t , o R a w R e s p o n s e , o C a l l b a c k , o C a l l e r , t I d ) ; } e l s e { } d e l e t e   u t i l . S c r i p t N o d e D a t a S o u r c e . c a l l b a c k s [ i d ] ; } ; u t i l . S c r i p t N o d e D a t a S o u r c e . _ n P e n d i n g + + ; v a r   s U r i = t h i s . l i v e D a t a + o R e q u e s t + t h i s . g e n e r a t e R e q u e s t C a l l b a c k ( i d ) ; s U r i = t h i s . d o B e f o r e G e t S c r i p t N o d e ( s U r i ) ; t h i s . g e t U t i l i t y . s c r i p t ( s U r i , { a u t o p u r g e : t r u e , o n s u c c e s s : u t i l . S c r i p t N o d e D a t a S o u r c e . _ b u m p P e n d i n g D o w n , o n f a i l : u t i l . S c r i p t N o d e D a t a S o u r c e . _ b u m p P e n d i n g D o w n } ) ; r e t u r n   t I d ; } } ) ; l a n g . a u g m e n t O b j e c t ( u t i l . S c r i p t N o d e D a t a S o u r c e , D S ) ; l a n g . a u g m e n t O b j e c t ( u t i l . S c r i p t N o d e D a t a S o u r c e , { _ n I d : 0 , _ n P e n d i n g : 0 , c a l l b a c k s : [ ] } ) ; u t i l . X H R D a t a S o u r c e = f u n c t i o n ( o L i v e D a t a , o C o n f i g s ) { t h i s . d a t a T y p e = D S . T Y P E _ X H R ; t h i s . c o n n M g r = t h i s . c o n n M g r | | u t i l . C o n n e c t ; o L i v e D a t a = o L i v e D a t a | | " " ; u t i l . X H R D a t a S o u r c e . s u p e r c l a s s . c o n s t r u c t o r . c a l l ( t h i s , o L i v e D a t a , o C o n f i g s ) ; } ; l a n g . e x t e n d ( u t i l . X H R D a t a S o u r c e , D S , { c o n n M g r : n u l l , c o n n X h r M o d e : " a l l o w A l l " , c o n n M e t h o d P o s t : f a l s e , c o n n T i m e o u t : 0 , m a k e C o n n e c t i o n : f u n c t i o n ( o R e q u e s t , o C a l l b a c k , o C a l l e r ) { v a r   o R a w R e s p o n s e = n u l l ; v a r   t I d = D S . _ n T r a n s a c t i o n I d + + ; t h i s . f i r e E v e n t ( " r e q u e s t E v e n t " , { t I d : t I d , r e q u e s t : o R e q u e s t , c a l l b a c k : o C a l l b a c k , c a l l e r : o C a l l e r } ) ; v a r   o S e l f = t h i s ; v a r   o C o n n M g r = t h i s . c o n n M g r ; v a r   o Q u e u e = t h i s . _ o Q u e u e ; v a r   _ x h r S u c c e s s = f u n c t i o n ( o R e s p o n s e ) { i f ( o R e s p o n s e & & ( t h i s . c o n n X h r M o d e = = " i g n o r e S t a l e R e s p o n s e s " ) & & ( o R e s p o n s e . t I d ! = o Q u e u e . c o n n . t I d ) ) { r e t u r n   n u l l ; } e l s e { i f ( ! o R e s p o n s e ) { t h i s . f i r e E v e n t ( " d a t a E r r o r E v e n t " , { r e q u e s t : o R e q u e s t , c a l l b a c k : o C a l l b a c k , c a l l e r : o C a l l e r , m e s s a g e : D S . E R R O R _ D A T A N U L L } ) ; D S . i s s u e C a l l b a c k ( o C a l l b a c k , [ o R e q u e s t , { e r r o r : t r u e } ] , t r u e , o C a l l e r ) ; r e t u r n   n u l l ; } e l s e { i f ( t h i s . r e s p o n s e T y p e = = = D S . T Y P E _ U N K N O W N ) { v a r   c t y p e = ( o R e s p o n s e . g e t R e s p o n s e H e a d e r ) ? o R e s p o n s e . g e t R e s p o n s e H e a d e r [ " C o n t e n t - T y p e " ] : n u l l ; i f ( c t y p e ) { i f ( c t y p e . i n d e x O f ( " t e x t / x m l " ) > - 1 ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ X M L ; } e l s e { i f ( c t y p e . i n d e x O f ( " a p p l i c a t i o n / j s o n " ) > - 1 ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ J S O N ; } e l s e { i f ( c t y p e . i n d e x O f ( " t e x t / p l a i n " ) > - 1 ) { t h i s . r e s p o n s e T y p e = D S . T Y P E _ T E X T ; } } } } } t h i s . h a n d l e R e s p o n s e ( o R e q u e s t , o R e s p o n s e , o C a l l b a c k , o C a l l e r , t I d ) ; } } } ; v a r   _ x h r F a i l u r e = f u n c t i o n ( o R e s p o n s e ) { t h i s . f i r e E v e n t ( " d a t a E r r o r E v e n t " , { r e q u e s t : o R e q u e s t , c a l l b a c k : o C a l l b a c k , c a l l e r : o C a l l e r , m e s s a g e : D S . E R R O R _ D A T A I N V A L I D } ) ; i f ( l a n g . i s S t r i n g ( t h i s . l i v e D a t a ) & & l a n g . i s S t r i n g ( o R e q u e s t ) & & ( t h i s . l i v e D a t a . l a s t I n d e x O f ( " ? " ) ! = = t h i s . l i v e D a t a . l e n g t h - 1 ) & & ( o R e q u e s t . i n d e x O f ( " ? " ) ! = = 0 ) ) { } o R e s p o n s e = o R e s p o n s e | | { } ; o R e s p o n s e . e r r o r = t r u e ; D S . i s s u e C a l l b a c k ( o C a l l b a c k , [ o R e q u e s t , o R e s p o n s e ] , t r u e , o C a l l e r ) ; r e t u r n   n u l l ; } ; v a r   _ x h r C a l l b a c k = { s u c c e s s : _ x h r S u c c e s s , f a i l u r e : _ x h r F a i l u r e , s c o p e : t h i s } ; i f ( l a n g . i s N u m b e r ( t h i s . c o n n T i m e o u t ) ) { _ x h r C a l l b a c k . t i m e o u t = t h i s . c o n n T i m e o u t ; } i f ( t h i s . c o n n X h r M o d e = = " c a n c e l S t a l e R e q u e s t s " ) { i f ( o Q u e u e . c o n n ) { i f ( o C o n n M g r . a b o r t ) { o C o n n M g r . a b o r t ( o Q u e u e . c o n n ) ; o Q u e u e . c o n n = n u l l ; } e l s e { } } } i f ( o C o n n M g r & & o C o n n M g r . a s y n c R e q u e s t ) { v a r   s L i v e D a t a = t h i s . l i v e D a t a ; v a r   i s P o s t = t h i s . c o n n M e t h o d P o s t ; v a r   s M e t h o d = ( i s P o s t ) ? " P O S T " : " G E T " ; v a r   s U r i = ( i s P o s t | | ! l a n g . i s V a l u e ( o R e q u e s t ) ) ? s L i v e D a t a : s L i v e D a t a + o R e q u e s t ; v a r   s R e q u e s t = ( i s P o s t ) ? o R e q u e s t : n u l l ; i f ( t h i s . c o n n X h r M o d e ! = " q u e u e R e q u e s t s " ) { o Q u e u e . c o n n = o C o n n M g r . a s y n c R e q u e s t ( s M e t h o d , s U r i , _ x h r C a l l b a c k , s R e q u e s t ) ; } e l s e { i f ( o Q u e u e . c o n n ) { v a r   a l l R e q u e s t s = o Q u e u e . r e q u e s t s ;  
 a l l R e q u e s t s . p u s h ( { r e q u e s t : o R e q u e s t , c a l l b a c k : _ x h r C a l l b a c k } ) ; i f ( ! o Q u e u e . i n t e r v a l ) { o Q u e u e . i n t e r v a l = s e t I n t e r v a l ( f u n c t i o n ( ) { i f ( o C o n n M g r . i s C a l l I n P r o g r e s s ( o Q u e u e . c o n n ) ) { r e t u r n ; } e l s e { i f ( a l l R e q u e s t s . l e n g t h > 0 ) { s U r i = ( i s P o s t | | ! l a n g . i s V a l u e ( a l l R e q u e s t s [ 0 ] . r e q u e s t ) ) ? s L i v e D a t a : s L i v e D a t a + a l l R e q u e s t s [ 0 ] . r e q u e s t ; s R e q u e s t = ( i s P o s t ) ? a l l R e q u e s t s [ 0 ] . r e q u e s t : n u l l ; o Q u e u e . c o n n = o C o n n M g r . a s y n c R e q u e s t ( s M e t h o d , s U r i , a l l R e q u e s t s [ 0 ] . c a l l b a c k , s R e q u e s t ) ; a l l R e q u e s t s . s h i f t ( ) ; } e l s e { c l e a r I n t e r v a l ( o Q u e u e . i n t e r v a l ) ; o Q u e u e . i n t e r v a l = n u l l ; } } } , 5 0 ) ; } } e l s e { o Q u e u e . c o n n = o C o n n M g r . a s y n c R e q u e s t ( s M e t h o d , s U r i , _ x h r C a l l b a c k , s R e q u e s t ) ; } } } e l s e { D S . i s s u e C a l l b a c k ( o C a l l b a c k , [ o R e q u e s t , { e r r o r : t r u e } ] , t r u e , o C a l l e r ) ; } r e t u r n   t I d ; } } ) ; l a n g . a u g m e n t O b j e c t ( u t i l . X H R D a t a S o u r c e , D S ) ; u t i l . D a t a S o u r c e = f u n c t i o n ( o L i v e D a t a , o C o n f i g s ) { o C o n f i g s = o C o n f i g s | | { } ; v a r   d a t a T y p e = o C o n f i g s . d a t a T y p e ; i f ( d a t a T y p e ) { i f ( d a t a T y p e = = D S . T Y P E _ L O C A L ) { l a n g . a u g m e n t O b j e c t ( u t i l . D a t a S o u r c e , u t i l . L o c a l D a t a S o u r c e ) ; r e t u r n   n e w   u t i l . L o c a l D a t a S o u r c e ( o L i v e D a t a , o C o n f i g s ) ; } e l s e { i f ( d a t a T y p e = = D S . T Y P E _ X H R ) { l a n g . a u g m e n t O b j e c t ( u t i l . D a t a S o u r c e , u t i l . X H R D a t a S o u r c e ) ; r e t u r n   n e w   u t i l . X H R D a t a S o u r c e ( o L i v e D a t a , o C o n f i g s ) ; } e l s e { i f ( d a t a T y p e = = D S . T Y P E _ S C R I P T N O D E ) { l a n g . a u g m e n t O b j e c t ( u t i l . D a t a S o u r c e , u t i l . S c r i p t N o d e D a t a S o u r c e ) ; r e t u r n   n e w   u t i l . S c r i p t N o d e D a t a S o u r c e ( o L i v e D a t a , o C o n f i g s ) ; } e l s e { i f ( d a t a T y p e = = D S . T Y P E _ J S F U N C T I O N ) { l a n g . a u g m e n t O b j e c t ( u t i l . D a t a S o u r c e , u t i l . F u n c t i o n D a t a S o u r c e ) ; r e t u r n   n e w   u t i l . F u n c t i o n D a t a S o u r c e ( o L i v e D a t a , o C o n f i g s ) ; } } } } } i f ( Y A H O O . l a n g . i s S t r i n g ( o L i v e D a t a ) ) { l a n g . a u g m e n t O b j e c t ( u t i l . D a t a S o u r c e , u t i l . X H R D a t a S o u r c e ) ; r e t u r n   n e w   u t i l . X H R D a t a S o u r c e ( o L i v e D a t a , o C o n f i g s ) ; } e l s e { i f ( Y A H O O . l a n g . i s F u n c t i o n ( o L i v e D a t a ) ) { l a n g . a u g m e n t O b j e c t ( u t i l . D a t a S o u r c e , u t i l . F u n c t i o n D a t a S o u r c e ) ; r e t u r n   n e w   u t i l . F u n c t i o n D a t a S o u r c e ( o L i v e D a t a , o C o n f i g s ) ; } e l s e { l a n g . a u g m e n t O b j e c t ( u t i l . D a t a S o u r c e , u t i l . L o c a l D a t a S o u r c e ) ; r e t u r n   n e w   u t i l . L o c a l D a t a S o u r c e ( o L i v e D a t a , o C o n f i g s ) ; } } } ; l a n g . a u g m e n t O b j e c t ( u t i l . D a t a S o u r c e , D S ) ; } ) ( ) ; Y A H O O . u t i l . N u m b e r = { f o r m a t : f u n c t i o n ( C , G ) { v a r   B = Y A H O O . l a n g ; i f ( ! B . i s V a l u e ( C ) | | ( C = = = " " ) ) { r e t u r n " " ; } G = G | | { } ; i f ( ! B . i s N u m b e r ( C ) ) { C * = 1 ; } i f ( B . i s N u m b e r ( C ) ) { v a r   E = ( C < 0 ) ; v a r   K = C + " " ; v a r   H = ( G . d e c i m a l S e p a r a t o r ) ? G . d e c i m a l S e p a r a t o r : " . " ; v a r   I ; i f ( B . i s N u m b e r ( G . d e c i m a l P l a c e s ) ) { v a r   J = G . d e c i m a l P l a c e s ; v a r   D = M a t h . p o w ( 1 0 , J ) ; K = M a t h . r o u n d ( C * D ) / D + " " ; I = K . l a s t I n d e x O f ( " . " ) ; i f ( J > 0 ) { i f ( I < 0 ) { K + = H ; I = K . l e n g t h - 1 ; } e l s e { i f ( H ! = = " . " ) { K = K . r e p l a c e ( " . " , H ) ; } } w h i l e ( ( K . l e n g t h - 1 - I ) < J ) { K + = " 0 " ; } } } i f ( G . t h o u s a n d s S e p a r a t o r ) { v a r   M = G . t h o u s a n d s S e p a r a t o r ; I = K . l a s t I n d e x O f ( H ) ; I = ( I > - 1 ) ? I : K . l e n g t h ; v a r   L = K . s u b s t r i n g ( I ) ; v a r   A = - 1 ; f o r ( v a r   F = I ; F > 0 ; F - - ) { A + + ; i f ( ( A % 3 = = = 0 ) & & ( F ! = = I ) & & ( ! E | | ( F > 1 ) ) ) { L = M + L ; } L = K . c h a r A t ( F - 1 ) + L ; } K = L ; } K = ( G . p r e f i x ) ? G . p r e f i x + K : K ; K = ( G . s u f f i x ) ? K + G . s u f f i x : K ; r e t u r n   K ; } e l s e { r e t u r n   C ; } } } ; ( f u n c t i o n ( ) { v a r   A = f u n c t i o n ( C , E , D ) { i f ( t y p e o f   D = = = " u n d e f i n e d " ) { D = 1 0 ; } f o r ( ; p a r s e I n t ( C , 1 0 ) < D & & D > 1 ; D / = 1 0 ) { C = E . t o S t r i n g ( ) + C ; } r e t u r n   C . t o S t r i n g ( ) ; } ; v a r   B = { f o r m a t s : { a : f u n c t i o n ( D , C ) { r e t u r n   C . a [ D . g e t D a y ( ) ] ; } , A : f u n c t i o n ( D , C ) { r e t u r n   C . A [ D . g e t D a y ( ) ] ; } , b : f u n c t i o n ( D , C ) { r e t u r n   C . b [ D . g e t M o n t h ( ) ] ; } , B : f u n c t i o n ( D , C ) { r e t u r n   C . B [ D . g e t M o n t h ( ) ] ; } , C : f u n c t i o n ( C ) { r e t u r n   A ( p a r s e I n t ( C . g e t F u l l Y e a r ( ) / 1 0 0 , 1 0 ) , 0 ) ; } , d : [ " g e t D a t e " , " 0 " ] , e : [ " g e t D a t e " , "   " ] , g : f u n c t i o n ( C ) { r e t u r n   A ( p a r s e I n t ( B . f o r m a t s . G ( C ) % 1 0 0 , 1 0 ) , 0 ) ; } , G : f u n c t i o n ( E ) { v a r   F = E . g e t F u l l Y e a r ( ) ; v a r   D = p a r s e I n t ( B . f o r m a t s . V ( E ) , 1 0 ) ; v a r   C = p a r s e I n t ( B . f o r m a t s . W ( E ) , 1 0 ) ; i f ( C > D ) { F + + ; } e l s e { i f ( C = = = 0 & & D > = 5 2 ) { F - - ; } } r e t u r n   F ; } , H : [ " g e t H o u r s " , " 0 " ] , I : f u n c t i o n ( D ) { v a r   C = D . g e t H o u r s ( ) % 1 2 ; r e t u r n   A ( C = = = 0 ? 1 2 : C , 0 ) ; } , j : f u n c t i o n ( G ) { v a r   F = n e w   D a t e ( " " + G . g e t F u l l Y e a r ( ) + " / 1 / 1   G M T " ) ; v a r   D = n e w   D a t e ( " " + G . g e t F u l l Y e a r ( ) + " / " + ( G . g e t M o n t h ( ) + 1 ) + " / " + G . g e t D a t e ( ) + "   G M T " ) ; v a r   C = D - F ; v a r   E = p a r s e I n t ( C / 6 0 0 0 0 / 6 0 / 2 4 , 1 0 ) + 1 ; r e t u r n   A ( E , 0 , 1 0 0 ) ; } , k : [ " g e t H o u r s " , "   " ] , l : f u n c t i o n ( D ) { v a r   C = D . g e t H o u r s ( ) % 1 2 ; r e t u r n   A ( C = = = 0 ? 1 2 : C , "   " ) ; } , m : f u n c t i o n ( C ) { r e t u r n   A ( C . g e t M o n t h ( ) + 1 , 0 ) ; } , M : [ " g e t M i n u t e s " , " 0 " ] , p : f u n c t i o n ( D , C ) { r e t u r n   C . p [ D . g e t H o u r s ( ) > = 1 2 ? 1 : 0 ] ; } , P : f u n c t i o n ( D , C ) { r e t u r n   C . P [ D . g e t H o u r s ( ) > = 1 2 ? 1 : 0 ] ; } , s : f u n c t i o n ( D , C ) { r e t u r n   p a r s e I n t ( D . g e t T i m e ( ) / 1 0 0 0 , 1 0 ) ; } , S : [ " g e t S e c o n d s " , " 0 " ] , u : f u n c t i o n ( C ) { v a r   D = C . g e t D a y ( ) ; r e t u r n   D = = = 0 ? 7 : D ; } , U : f u n c t i o n ( F ) { v a r   C = p a r s e I n t ( B . f o r m a t s . j ( F ) , 1 0 ) ; v a r   E = 6 - F . g e t D a y ( ) ; v a r   D = p a r s e I n t ( ( C + E ) / 7 , 1 0 ) ; r e t u r n   A ( D , 0 ) ; } , V : f u n c t i o n ( F ) { v a r   E = p a r s e I n t ( B . f o r m a t s . W ( F ) , 1 0 ) ; v a r   C = ( n e w   D a t e ( " " + F . g e t F u l l Y e a r ( ) + " / 1 / 1 " ) ) . g e t D a y ( ) ; v a r   D = E + ( C > 4 | | C < = 1 ? 0 : 1 ) ; i f ( D = = = 5 3 & & ( n e w   D a t e ( " " + F . g e t F u l l Y e a r ( ) + " / 1 2 / 3 1 " ) ) . g e t D a y ( ) < 4 ) { D = 1 ; } e l s e { i f ( D = = = 0 ) { D = B . f o r m a t s . V ( n e w   D a t e ( " " + ( F . g e t F u l l Y e a r ( ) - 1 ) + " / 1 2 / 3 1 " ) ) ; } } r e t u r n   A ( D , 0 ) ; } , w : " g e t D a y " , W : f u n c t i o n ( F ) { v a r   C = p a r s e I n t ( B . f o r m a t s . j ( F ) , 1 0 ) ; v a r   E = 7 - B . f o r m a t s . u ( F ) ; v a r   D = p a r s e I n t ( ( C + E ) / 7 , 1 0 ) ; r e t u r n   A ( D , 0 , 1 0 ) ; } , y : f u n c t i o n ( C ) { r e t u r n   A ( C . g e t F u l l Y e a r ( ) % 1 0 0 , 0 ) ; } , Y : " g e t F u l l Y e a r " , z : f u n c t i o n ( E ) { v a r   D = E . g e t T i m e z o n e O f f s e t ( ) ; v a r   C = A ( p a r s e I n t ( M a t h . a b s ( D / 6 0 ) , 1 0 ) , 0 ) ; v a r   F = A ( M a t h . a b s ( D % 6 0 ) , 0 ) ; r e t u r n ( D > 0 ? " - " : " + " ) + C + F ; } , Z : f u n c t i o n ( C ) { v a r   D = C . t o S t r i n g ( ) . r e p l a c e ( / ^ . * : \ d \ d (   G M T [ + - ] \ d + ) ?   \ ( ? ( [ A - Z a - z   ] + ) \ ) ? \ d * $ / , " $ 2 " ) . r e p l a c e ( / [ a - z   ] / g , " " ) ; i f ( D . l e n g t h > 4 ) { D = B . f o r m a t s . z ( C ) ; } r e t u r n   D ; } , " % " : f u n c t i o n ( C ) { r e t u r n " % " ; } } , a g g r e g a t e s : { c : " l o c a l e " , D : " % m / % d / % y " , F : " % Y - % m - % d " , h : " % b " , n : " \ n " , r : " l o c a l e " , R : " % H : % M " , t : " \ t " , T : " % H : % M : % S " , x : " l o c a l e " , X : " l o c a l e " } , f o r m a t : f u n c t i o n ( G , F , D ) { F = F | | { } ; i f ( ! ( G   i n s t a n c e o f   D a t e ) ) { r e t u r n   Y A H O O . l a n g . i s V a l u e ( G ) ? G : " " ; } v a r   H = F . f o r m a t | | " % m / % d / % Y " ; i f ( H = = = " Y Y Y Y / M M / D D " ) { H = " % Y / % m / % d " ; } e l s e { i f ( H = = = " D D / M M / Y Y Y Y " ) { H = " % d / % m / % Y " ; } e l s e { i f ( H = = = " M M / D D / Y Y Y Y " ) { H = " % m / % d / % Y " ; } } } D = D | | " e n " ; i f ( ! ( D   i n   Y A H O O . u t i l . D a t e L o c a l e ) ) { i f ( D . r e p l a c e ( / - [ a - z A - Z ] + $ / , " " )   i n   Y A H O O . u t i l . D a t e L o c a l e ) { D = D . r e p l a c e ( / - [ a - z A - Z ] + $ / , " " ) ; } e l s e { D = " e n " ; } } v a r   J = Y A H O O . u t i l . D a t e L o c a l e [ D ] ; v a r   C = f u n c t i o n ( L , K ) { v a r   M = B . a g g r e g a t e s [ K ] ; r e t u r n ( M = = = " l o c a l e " ? J [ K ] : M ) ; } ; v a r   E = f u n c t i o n ( L , K ) { v a r   M = B . f o r m a t s [ K ] ; i f ( t y p e o f   M = = = " s t r i n g " ) { r e t u r n   G [ M ] ( ) ; } e l s e { i f ( t y p e o f   M = = = " f u n c t i o n " ) { r e t u r n   M . c a l l ( G , G , J ) ; } e l s e { i f ( t y p e o f   M = = = " o b j e c t " & & t y p e o f   M [ 0 ] = = = " s t r i n g " ) { r e t u r n   A ( G [ M [ 0 ] ] ( ) , M [ 1 ] ) ; } e l s e { r e t u r n   K ; } } } } ; w h i l e ( H . m a t c h ( / % [ c D F h n r R t T x X ] / ) ) { H = H . r e p l a c e ( / % ( [ c D F h n r R t T x X ] ) / g , C ) ; } v a r   I = H . r e p l a c e ( / % ( [ a A b B C d e g G H I j k l m M p P s S u U V w W y Y z Z % ] ) / g , E ) ; C = E = u n d e f i n e d ; r e t u r n   I ; } } ; Y A H O O . n a m e s p a c e ( " Y A H O O . u t i l " ) ; Y A H O O . u t i l . D a t e = B ; Y A H O O . u t i l . D a t e L o c a l e = { a : [ " S u n " , " M o n " , " T u e " , " W e d " , " T h u " , " F r i " , " S a t " ] , A : [ " S u n d a y " , " M o n d a y " , " T u e s d a y " , " W e d n e s d a y " , " T h u r s d a y " , " F r i d a y " , " S a t u r d a y " ] , b : [ " J a n " , " F e b " , " M a r " , " A p r " , " M a y " , " J u n " , " J u l " , " A u g " , " S e p " , " O c t " , " N o v " , " D e c " ] , B : [ " J a n u a r y " , " F e b r u a r y " , " M a r c h " , " A p r i l " , " M a y " , " J u n e " , " J u l y " , " A u g u s t " , " S e p t e m b e r " , " O c t o b e r " , " N o v e m b e r " , " D e c e m b e r " ] , c : " % a   % d   % b   % Y   % T   % Z " , p : [ " A M " , " P M " ] , P : [ " a m " , " p m " ] , r : " % I : % M : % S   % p " , x : " % d / % m / % y " , X : " % T " } ;  
 Y A H O O . u t i l . D a t e L o c a l e [ " e n " ] = Y A H O O . l a n g . m e r g e ( Y A H O O . u t i l . D a t e L o c a l e , { } ) ; Y A H O O . u t i l . D a t e L o c a l e [ " e n - U S " ] = Y A H O O . l a n g . m e r g e ( Y A H O O . u t i l . D a t e L o c a l e [ " e n " ] , { c : " % a   % d   % b   % Y   % I : % M : % S   % p   % Z " , x : " % m / % d / % Y " , X : " % I : % M : % S   % p " } ) ; Y A H O O . u t i l . D a t e L o c a l e [ " e n - G B " ] = Y A H O O . l a n g . m e r g e ( Y A H O O . u t i l . D a t e L o c a l e [ " e n " ] , { r : " % l : % M : % S   % P   % Z " } ) ; Y A H O O . u t i l . D a t e L o c a l e [ " e n - A U " ] = Y A H O O . l a n g . m e r g e ( Y A H O O . u t i l . D a t e L o c a l e [ " e n " ] ) ; } ) ( ) ; Y A H O O . r e g i s t e r ( " d a t a s o u r c e " , Y A H O O . u t i l . D a t a S o u r c e , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ;  
  
 / *  
 C o p y r i g h t   ( c )   2 0 0 9 ,   Y a h o o !   I n c .   A l l   r i g h t s   r e s e r v e d .  
 C o d e   l i c e n s e d   u n d e r   t h e   B S D   L i c e n s e :  
 h t t p : / / d e v e l o p e r . y a h o o . n e t / y u i / l i c e n s e . t x t  
 v e r s i o n :   2 . 7 . 0  
 a u t o c o m p l e t e - m i n . j s  
 * /  
 Y A H O O . w i d g e t . D S _ J S A r r a y = Y A H O O . u t i l . L o c a l D a t a S o u r c e ; Y A H O O . w i d g e t . D S _ J S F u n c t i o n = Y A H O O . u t i l . F u n c t i o n D a t a S o u r c e ; Y A H O O . w i d g e t . D S _ X H R = f u n c t i o n ( B , A , D ) { v a r   C = n e w   Y A H O O . u t i l . X H R D a t a S o u r c e ( B , D ) ; C . _ a D e p r e c a t e d S c h e m a = A ; r e t u r n   C ; } ; Y A H O O . w i d g e t . D S _ S c r i p t N o d e = f u n c t i o n ( B , A , D ) { v a r   C = n e w   Y A H O O . u t i l . S c r i p t N o d e D a t a S o u r c e ( B , D ) ; C . _ a D e p r e c a t e d S c h e m a = A ; r e t u r n   C ; } ; Y A H O O . w i d g e t . D S _ X H R . T Y P E _ J S O N = Y A H O O . u t i l . D a t a S o u r c e B a s e . T Y P E _ J S O N ; Y A H O O . w i d g e t . D S _ X H R . T Y P E _ X M L = Y A H O O . u t i l . D a t a S o u r c e B a s e . T Y P E _ X M L ; Y A H O O . w i d g e t . D S _ X H R . T Y P E _ F L A T = Y A H O O . u t i l . D a t a S o u r c e B a s e . T Y P E _ T E X T ; Y A H O O . w i d g e t . A u t o C o m p l e t e = f u n c t i o n ( G , B , J , C ) { i f ( G & & B & & J ) { i f ( J   i n s t a n c e o f   Y A H O O . u t i l . D a t a S o u r c e B a s e ) { t h i s . d a t a S o u r c e = J ; } e l s e { r e t u r n ; } t h i s . k e y = 0 ; v a r   D = J . r e s p o n s e S c h e m a ; i f ( J . _ a D e p r e c a t e d S c h e m a ) { v a r   K = J . _ a D e p r e c a t e d S c h e m a ; i f ( Y A H O O . l a n g . i s A r r a y ( K ) ) { i f ( ( J . r e s p o n s e T y p e = = = Y A H O O . u t i l . D a t a S o u r c e B a s e . T Y P E _ J S O N ) | | ( J . r e s p o n s e T y p e = = = Y A H O O . u t i l . D a t a S o u r c e B a s e . T Y P E _ U N K N O W N ) ) { D . r e s u l t s L i s t = K [ 0 ] ; t h i s . k e y = K [ 1 ] ; D . f i e l d s = ( K . l e n g t h < 3 ) ? n u l l : K . s l i c e ( 1 ) ; } e l s e { i f ( J . r e s p o n s e T y p e = = = Y A H O O . u t i l . D a t a S o u r c e B a s e . T Y P E _ X M L ) { D . r e s u l t N o d e = K [ 0 ] ; t h i s . k e y = K [ 1 ] ; D . f i e l d s = K . s l i c e ( 1 ) ; } e l s e { i f ( J . r e s p o n s e T y p e = = = Y A H O O . u t i l . D a t a S o u r c e B a s e . T Y P E _ T E X T ) { D . r e c o r d D e l i m = K [ 0 ] ; D . f i e l d D e l i m = K [ 1 ] ; } } } J . r e s p o n s e S c h e m a = D ; } } i f ( Y A H O O . u t i l . D o m . i n D o c u m e n t ( G ) ) { i f ( Y A H O O . l a n g . i s S t r i n g ( G ) ) { t h i s . _ s N a m e = " i n s t a n c e " + Y A H O O . w i d g e t . A u t o C o m p l e t e . _ n I n d e x + "   " + G ; t h i s . _ e l T e x t b o x = d o c u m e n t . g e t E l e m e n t B y I d ( G ) ; } e l s e { t h i s . _ s N a m e = ( G . i d ) ? " i n s t a n c e " + Y A H O O . w i d g e t . A u t o C o m p l e t e . _ n I n d e x + "   " + G . i d : " i n s t a n c e " + Y A H O O . w i d g e t . A u t o C o m p l e t e . _ n I n d e x ; t h i s . _ e l T e x t b o x = G ; } Y A H O O . u t i l . D o m . a d d C l a s s ( t h i s . _ e l T e x t b o x , " y u i - a c - i n p u t " ) ; } e l s e { r e t u r n ; } i f ( Y A H O O . u t i l . D o m . i n D o c u m e n t ( B ) ) { i f ( Y A H O O . l a n g . i s S t r i n g ( B ) ) { t h i s . _ e l C o n t a i n e r = d o c u m e n t . g e t E l e m e n t B y I d ( B ) ; } e l s e { t h i s . _ e l C o n t a i n e r = B ; } i f ( t h i s . _ e l C o n t a i n e r . s t y l e . d i s p l a y = = " n o n e " ) { } v a r   E = t h i s . _ e l C o n t a i n e r . p a r e n t N o d e ; v a r   A = E . t a g N a m e . t o L o w e r C a s e ( ) ; i f ( A = = " d i v " ) { Y A H O O . u t i l . D o m . a d d C l a s s ( E , " y u i - a c " ) ; } e l s e { } } e l s e { r e t u r n ; } i f ( t h i s . d a t a S o u r c e . d a t a T y p e = = = Y A H O O . u t i l . D a t a S o u r c e B a s e . T Y P E _ L O C A L ) { t h i s . a p p l y L o c a l F i l t e r = t r u e ; } i f ( C & & ( C . c o n s t r u c t o r = = O b j e c t ) ) { f o r ( v a r   I   i n   C ) { i f ( I ) { t h i s [ I ] = C [ I ] ; } } } t h i s . _ i n i t C o n t a i n e r E l ( ) ; t h i s . _ i n i t P r o p s ( ) ; t h i s . _ i n i t L i s t E l ( ) ; t h i s . _ i n i t C o n t a i n e r H e l p e r E l s ( ) ; v a r   H = t h i s ; v a r   F = t h i s . _ e l T e x t b o x ; Y A H O O . u t i l . E v e n t . a d d L i s t e n e r ( F , " k e y u p " , H . _ o n T e x t b o x K e y U p , H ) ; Y A H O O . u t i l . E v e n t . a d d L i s t e n e r ( F , " k e y d o w n " , H . _ o n T e x t b o x K e y D o w n , H ) ; Y A H O O . u t i l . E v e n t . a d d L i s t e n e r ( F , " f o c u s " , H . _ o n T e x t b o x F o c u s , H ) ; Y A H O O . u t i l . E v e n t . a d d L i s t e n e r ( F , " b l u r " , H . _ o n T e x t b o x B l u r , H ) ; Y A H O O . u t i l . E v e n t . a d d L i s t e n e r ( B , " m o u s e o v e r " , H . _ o n C o n t a i n e r M o u s e o v e r , H ) ; Y A H O O . u t i l . E v e n t . a d d L i s t e n e r ( B , " m o u s e o u t " , H . _ o n C o n t a i n e r M o u s e o u t , H ) ; Y A H O O . u t i l . E v e n t . a d d L i s t e n e r ( B , " c l i c k " , H . _ o n C o n t a i n e r C l i c k , H ) ; Y A H O O . u t i l . E v e n t . a d d L i s t e n e r ( B , " s c r o l l " , H . _ o n C o n t a i n e r S c r o l l , H ) ; Y A H O O . u t i l . E v e n t . a d d L i s t e n e r ( B , " r e s i z e " , H . _ o n C o n t a i n e r R e s i z e , H ) ; Y A H O O . u t i l . E v e n t . a d d L i s t e n e r ( F , " k e y p r e s s " , H . _ o n T e x t b o x K e y P r e s s , H ) ; Y A H O O . u t i l . E v e n t . a d d L i s t e n e r ( w i n d o w , " u n l o a d " , H . _ o n W i n d o w U n l o a d , H ) ; t h i s . t e x t b o x F o c u s E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " t e x t b o x F o c u s " , t h i s ) ; t h i s . t e x t b o x K e y E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " t e x t b o x K e y " , t h i s ) ; t h i s . d a t a R e q u e s t E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " d a t a R e q u e s t " , t h i s ) ; t h i s . d a t a R e t u r n E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " d a t a R e t u r n " , t h i s ) ; t h i s . d a t a E r r o r E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " d a t a E r r o r " , t h i s ) ; t h i s . c o n t a i n e r P o p u l a t e E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " c o n t a i n e r P o p u l a t e " , t h i s ) ; t h i s . c o n t a i n e r E x p a n d E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " c o n t a i n e r E x p a n d " , t h i s ) ; t h i s . t y p e A h e a d E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " t y p e A h e a d " , t h i s ) ; t h i s . i t e m M o u s e O v e r E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " i t e m M o u s e O v e r " , t h i s ) ; t h i s . i t e m M o u s e O u t E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " i t e m M o u s e O u t " , t h i s ) ; t h i s . i t e m A r r o w T o E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " i t e m A r r o w T o " , t h i s ) ; t h i s . i t e m A r r o w F r o m E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " i t e m A r r o w F r o m " , t h i s ) ; t h i s . i t e m S e l e c t E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " i t e m S e l e c t " , t h i s ) ; t h i s . u n m a t c h e d I t e m S e l e c t E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " u n m a t c h e d I t e m S e l e c t " , t h i s ) ; t h i s . s e l e c t i o n E n f o r c e E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " s e l e c t i o n E n f o r c e " , t h i s ) ; t h i s . c o n t a i n e r C o l l a p s e E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " c o n t a i n e r C o l l a p s e " , t h i s ) ; t h i s . t e x t b o x B l u r E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " t e x t b o x B l u r " , t h i s ) ; t h i s . t e x t b o x C h a n g e E v e n t = n e w   Y A H O O . u t i l . C u s t o m E v e n t ( " t e x t b o x C h a n g e " , t h i s ) ; F . s e t A t t r i b u t e ( " a u t o c o m p l e t e " , " o f f " ) ; Y A H O O . w i d g e t . A u t o C o m p l e t e . _ n I n d e x + + ; } e l s e { } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . d a t a S o u r c e = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . a p p l y L o c a l F i l t e r = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . q u e r y M a t c h C a s e = f a l s e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . q u e r y M a t c h C o n t a i n s = f a l s e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . q u e r y M a t c h S u b s e t = f a l s e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . m i n Q u e r y L e n g t h = 1 ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . m a x R e s u l t s D i s p l a y e d = 1 0 ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . q u e r y D e l a y = 0 . 2 ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . t y p e A h e a d D e l a y = 0 . 5 ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . q u e r y I n t e r v a l = 5 0 0 ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . h i g h l i g h t C l a s s N a m e = " y u i - a c - h i g h l i g h t " ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . p r e h i g h l i g h t C l a s s N a m e = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . d e l i m C h a r = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . a u t o H i g h l i g h t = t r u e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . t y p e A h e a d = f a l s e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . a n i m H o r i z = f a l s e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . a n i m V e r t = t r u e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . a n i m S p e e d = 0 . 3 ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . f o r c e S e l e c t i o n = f a l s e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . a l l o w B r o w s e r A u t o c o m p l e t e = t r u e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . a l w a y s S h o w C o n t a i n e r = f a l s e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . u s e I F r a m e = f a l s e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . u s e S h a d o w = f a l s e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . s u p p r e s s I n p u t U p d a t e = f a l s e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . r e s u l t T y p e L i s t = t r u e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . q u e r y Q u e s t i o n M a r k = t r u e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . t o S t r i n g = f u n c t i o n ( ) { r e t u r n " A u t o C o m p l e t e   " + t h i s . _ s N a m e ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . g e t I n p u t E l = f u n c t i o n ( ) { r e t u r n   t h i s . _ e l T e x t b o x ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . g e t C o n t a i n e r E l = f u n c t i o n ( ) { r e t u r n   t h i s . _ e l C o n t a i n e r ;  
 } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . i s F o c u s e d = f u n c t i o n ( ) { r e t u r n ( t h i s . _ b F o c u s e d = = = n u l l ) ? f a l s e : t h i s . _ b F o c u s e d ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . i s C o n t a i n e r O p e n = f u n c t i o n ( ) { r e t u r n   t h i s . _ b C o n t a i n e r O p e n ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . g e t L i s t E l = f u n c t i o n ( ) { r e t u r n   t h i s . _ e l L i s t ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . g e t L i s t I t e m M a t c h = f u n c t i o n ( A ) { i f ( A . _ s R e s u l t M a t c h ) { r e t u r n   A . _ s R e s u l t M a t c h ; } e l s e { r e t u r n   n u l l ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . g e t L i s t I t e m D a t a = f u n c t i o n ( A ) { i f ( A . _ o R e s u l t D a t a ) { r e t u r n   A . _ o R e s u l t D a t a ; } e l s e { r e t u r n   n u l l ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . g e t L i s t I t e m I n d e x = f u n c t i o n ( A ) { i f ( Y A H O O . l a n g . i s N u m b e r ( A . _ n I t e m I n d e x ) ) { r e t u r n   A . _ n I t e m I n d e x ; } e l s e { r e t u r n   n u l l ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . s e t H e a d e r = f u n c t i o n ( B ) { i f ( t h i s . _ e l H e a d e r ) { v a r   A = t h i s . _ e l H e a d e r ; i f ( B ) { A . i n n e r H T M L = B ; A . s t y l e . d i s p l a y = " b l o c k " ; } e l s e { A . i n n e r H T M L = " " ; A . s t y l e . d i s p l a y = " n o n e " ; } } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . s e t F o o t e r = f u n c t i o n ( B ) { i f ( t h i s . _ e l F o o t e r ) { v a r   A = t h i s . _ e l F o o t e r ; i f ( B ) { A . i n n e r H T M L = B ; A . s t y l e . d i s p l a y = " b l o c k " ; } e l s e { A . i n n e r H T M L = " " ; A . s t y l e . d i s p l a y = " n o n e " ; } } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . s e t B o d y = f u n c t i o n ( A ) { i f ( t h i s . _ e l B o d y ) { v a r   B = t h i s . _ e l B o d y ; Y A H O O . u t i l . E v e n t . p u r g e E l e m e n t ( B , t r u e ) ; i f ( A ) { B . i n n e r H T M L = A ; B . s t y l e . d i s p l a y = " b l o c k " ; } e l s e { B . i n n e r H T M L = " " ; B . s t y l e . d i s p l a y = " n o n e " ; } t h i s . _ e l L i s t = n u l l ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . g e n e r a t e R e q u e s t = f u n c t i o n ( B ) { v a r   A = t h i s . d a t a S o u r c e . d a t a T y p e ; i f ( A = = = Y A H O O . u t i l . D a t a S o u r c e B a s e . T Y P E _ X H R ) { i f ( ! t h i s . d a t a S o u r c e . c o n n M e t h o d P o s t ) { B = ( t h i s . q u e r y Q u e s t i o n M a r k ? " ? " : " " ) + ( t h i s . d a t a S o u r c e . s c r i p t Q u e r y P a r a m | | " q u e r y " ) + " = " + B + ( t h i s . d a t a S o u r c e . s c r i p t Q u e r y A p p e n d ? ( " & " + t h i s . d a t a S o u r c e . s c r i p t Q u e r y A p p e n d ) : " " ) ; } e l s e { B = ( t h i s . d a t a S o u r c e . s c r i p t Q u e r y P a r a m | | " q u e r y " ) + " = " + B + ( t h i s . d a t a S o u r c e . s c r i p t Q u e r y A p p e n d ? ( " & " + t h i s . d a t a S o u r c e . s c r i p t Q u e r y A p p e n d ) : " " ) ; } } e l s e { i f ( A = = = Y A H O O . u t i l . D a t a S o u r c e B a s e . T Y P E _ S C R I P T N O D E ) { B = " & " + ( t h i s . d a t a S o u r c e . s c r i p t Q u e r y P a r a m | | " q u e r y " ) + " = " + B + ( t h i s . d a t a S o u r c e . s c r i p t Q u e r y A p p e n d ? ( " & " + t h i s . d a t a S o u r c e . s c r i p t Q u e r y A p p e n d ) : " " ) ; } } r e t u r n   B ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . s e n d Q u e r y = f u n c t i o n ( B ) { t h i s . _ b F o c u s e d = n u l l ; v a r   A = ( t h i s . d e l i m C h a r ) ? t h i s . _ e l T e x t b o x . v a l u e + B : B ; t h i s . _ s e n d Q u e r y ( A ) ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . c o l l a p s e C o n t a i n e r = f u n c t i o n ( ) { t h i s . _ t o g g l e C o n t a i n e r ( f a l s e ) ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . g e t S u b s e t M a t c h e s = f u n c t i o n ( E ) { v a r   D , C , A ; f o r ( v a r   B = E . l e n g t h ; B > = t h i s . m i n Q u e r y L e n g t h ; B - - ) { A = t h i s . g e n e r a t e R e q u e s t ( E . s u b s t r ( 0 , B ) ) ; t h i s . d a t a R e q u e s t E v e n t . f i r e ( t h i s , D , A ) ; C = t h i s . d a t a S o u r c e . g e t C a c h e d R e s p o n s e ( A ) ; i f ( C ) { r e t u r n   t h i s . f i l t e r R e s u l t s . a p p l y ( t h i s . d a t a S o u r c e , [ E , C , C , { s c o p e : t h i s } ] ) ; } } r e t u r n   n u l l ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . p r e p a r s e R a w R e s p o n s e = f u n c t i o n ( C , B , A ) { v a r   D = ( ( t h i s . r e s p o n s e S t r i p A f t e r ! = = " " ) & & ( B . i n d e x O f ) ) ? B . i n d e x O f ( t h i s . r e s p o n s e S t r i p A f t e r ) : - 1 ; i f ( D ! = - 1 ) { B = B . s u b s t r i n g ( 0 , D ) ; } r e t u r n   B ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . f i l t e r R e s u l t s = f u n c t i o n ( J , L , P , K ) { i f ( K & & K . a r g u m e n t & & K . a r g u m e n t . q u e r y ) { J = K . a r g u m e n t . q u e r y ; } i f ( J & & J ! = = " " ) { P = Y A H O O . w i d g e t . A u t o C o m p l e t e . _ c l o n e O b j e c t ( P ) ; v a r   H = K . s c o p e , O = t h i s , B = P . r e s u l t s , M = [ ] , D = f a l s e , I = ( O . q u e r y M a t c h C a s e | | H . q u e r y M a t c h C a s e ) , A = ( O . q u e r y M a t c h C o n t a i n s | | H . q u e r y M a t c h C o n t a i n s ) ; f o r ( v a r   C = B . l e n g t h - 1 ; C > = 0 ; C - - ) { v a r   F = B [ C ] ; v a r   E = n u l l ; i f ( Y A H O O . l a n g . i s S t r i n g ( F ) ) { E = F ; } e l s e { i f ( Y A H O O . l a n g . i s A r r a y ( F ) ) { E = F [ 0 ] ; } e l s e { i f ( t h i s . r e s p o n s e S c h e m a . f i e l d s ) { v a r   N = t h i s . r e s p o n s e S c h e m a . f i e l d s [ 0 ] . k e y | | t h i s . r e s p o n s e S c h e m a . f i e l d s [ 0 ] ; E = F [ N ] ; } e l s e { i f ( t h i s . k e y ) { E = F [ t h i s . k e y ] ; } } } } i f ( Y A H O O . l a n g . i s S t r i n g ( E ) ) { v a r   G = ( I ) ? E . i n d e x O f ( d e c o d e U R I C o m p o n e n t ( J ) ) : E . t o L o w e r C a s e ( ) . i n d e x O f ( d e c o d e U R I C o m p o n e n t ( J ) . t o L o w e r C a s e ( ) ) ; i f ( ( ! A & & ( G = = = 0 ) ) | | ( A & & ( G > - 1 ) ) ) { M . u n s h i f t ( F ) ; } } } P . r e s u l t s = M ; } e l s e { } r e t u r n   P ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . h a n d l e R e s p o n s e = f u n c t i o n ( C , A , B ) { i f ( ( t h i s   i n s t a n c e o f   Y A H O O . w i d g e t . A u t o C o m p l e t e ) & & t h i s . _ s N a m e ) { t h i s . _ p o p u l a t e L i s t ( C , A , B ) ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . d o B e f o r e L o a d D a t a = f u n c t i o n ( C , A , B ) { r e t u r n   t r u e ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . f o r m a t R e s u l t = f u n c t i o n ( B , D , A ) { v a r   C = ( A ) ? A : " " ; r e t u r n   C ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . d o B e f o r e E x p a n d C o n t a i n e r = f u n c t i o n ( D , A , C , B ) { r e t u r n   t r u e ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . d e s t r o y = f u n c t i o n ( ) { v a r   B = t h i s . t o S t r i n g ( ) ; v a r   A = t h i s . _ e l T e x t b o x ; v a r   D = t h i s . _ e l C o n t a i n e r ; t h i s . t e x t b o x F o c u s E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . t e x t b o x K e y E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . d a t a R e q u e s t E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . d a t a R e t u r n E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . d a t a E r r o r E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . c o n t a i n e r P o p u l a t e E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . c o n t a i n e r E x p a n d E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . t y p e A h e a d E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . i t e m M o u s e O v e r E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . i t e m M o u s e O u t E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . i t e m A r r o w T o E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . i t e m A r r o w F r o m E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . i t e m S e l e c t E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . u n m a t c h e d I t e m S e l e c t E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . s e l e c t i o n E n f o r c e E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . c o n t a i n e r C o l l a p s e E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . t e x t b o x B l u r E v e n t . u n s u b s c r i b e A l l ( ) ; t h i s . t e x t b o x C h a n g e E v e n t . u n s u b s c r i b e A l l ( ) ; Y A H O O . u t i l . E v e n t . p u r g e E l e m e n t ( A , t r u e ) ; Y A H O O . u t i l . E v e n t . p u r g e E l e m e n t ( D , t r u e ) ; D . i n n e r H T M L = " " ; f o r ( v a r   C   i n   t h i s ) { i f ( Y A H O O . l a n g . h a s O w n P r o p e r t y ( t h i s , C ) ) { t h i s [ C ] = n u l l ; } } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . t e x t b o x F o c u s E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . t e x t b o x K e y E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . d a t a R e q u e s t E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . d a t a R e t u r n E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . d a t a E r r o r E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . c o n t a i n e r P o p u l a t e E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . c o n t a i n e r E x p a n d E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . t y p e A h e a d E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . i t e m M o u s e O v e r E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . i t e m M o u s e O u t E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . i t e m A r r o w T o E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . i t e m A r r o w F r o m E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . i t e m S e l e c t E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . u n m a t c h e d I t e m S e l e c t E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . s e l e c t i o n E n f o r c e E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . c o n t a i n e r C o l l a p s e E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . t e x t b o x B l u r E v e n t = n u l l ;  
 Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . t e x t b o x C h a n g e E v e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . _ n I n d e x = 0 ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ s N a m e = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ e l T e x t b o x = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ e l C o n t a i n e r = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ e l C o n t e n t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ e l H e a d e r = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ e l B o d y = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ e l F o o t e r = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ e l S h a d o w = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ e l I F r a m e = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ b F o c u s e d = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ o A n i m = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ b C o n t a i n e r O p e n = f a l s e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ b O v e r C o n t a i n e r = f a l s e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ e l L i s t = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ n D i s p l a y e d I t e m s = 0 ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ s C u r Q u e r y = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ s P a s t S e l e c t i o n s = " " ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ s I n i t I n p u t V a l u e = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ e l C u r L i s t I t e m = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ b I t e m S e l e c t e d = f a l s e ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ n K e y C o d e = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ n D e l a y I D = - 1 ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ n T y p e A h e a d D e l a y I D = - 1 ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ i F r a m e S r c = " j a v a s c r i p t : f a l s e ; " ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ q u e r y I n t e r v a l = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ s L a s t T e x t b o x V a l u e = n u l l ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ i n i t P r o p s = f u n c t i o n ( ) { v a r   B = t h i s . m i n Q u e r y L e n g t h ; i f ( ! Y A H O O . l a n g . i s N u m b e r ( B ) ) { t h i s . m i n Q u e r y L e n g t h = 1 ; } v a r   E = t h i s . m a x R e s u l t s D i s p l a y e d ; i f ( ! Y A H O O . l a n g . i s N u m b e r ( E ) | | ( E < 1 ) ) { t h i s . m a x R e s u l t s D i s p l a y e d = 1 0 ; } v a r   F = t h i s . q u e r y D e l a y ; i f ( ! Y A H O O . l a n g . i s N u m b e r ( F ) | | ( F < 0 ) ) { t h i s . q u e r y D e l a y = 0 . 2 ; } v a r   C = t h i s . t y p e A h e a d D e l a y ; i f ( ! Y A H O O . l a n g . i s N u m b e r ( C ) | | ( C < 0 ) ) { t h i s . t y p e A h e a d D e l a y = 0 . 2 ; } v a r   A = t h i s . d e l i m C h a r ; i f ( Y A H O O . l a n g . i s S t r i n g ( A ) & & ( A . l e n g t h > 0 ) ) { t h i s . d e l i m C h a r = [ A ] ; } e l s e { i f ( ! Y A H O O . l a n g . i s A r r a y ( A ) ) { t h i s . d e l i m C h a r = n u l l ; } } v a r   D = t h i s . a n i m S p e e d ; i f ( ( t h i s . a n i m H o r i z | | t h i s . a n i m V e r t ) & & Y A H O O . u t i l . A n i m ) { i f ( ! Y A H O O . l a n g . i s N u m b e r ( D ) | | ( D < 0 ) ) { t h i s . a n i m S p e e d = 0 . 3 ; } i f ( ! t h i s . _ o A n i m ) { t h i s . _ o A n i m = n e w   Y A H O O . u t i l . A n i m ( t h i s . _ e l C o n t e n t , { } , t h i s . a n i m S p e e d ) ; } e l s e { t h i s . _ o A n i m . d u r a t i o n = t h i s . a n i m S p e e d ; } } i f ( t h i s . f o r c e S e l e c t i o n & & A ) { } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ i n i t C o n t a i n e r H e l p e r E l s = f u n c t i o n ( ) { i f ( t h i s . u s e S h a d o w & & ! t h i s . _ e l S h a d o w ) { v a r   A = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; A . c l a s s N a m e = " y u i - a c - s h a d o w " ; A . s t y l e . w i d t h = 0 ; A . s t y l e . h e i g h t = 0 ; t h i s . _ e l S h a d o w = t h i s . _ e l C o n t a i n e r . a p p e n d C h i l d ( A ) ; } i f ( t h i s . u s e I F r a m e & & ! t h i s . _ e l I F r a m e ) { v a r   B = d o c u m e n t . c r e a t e E l e m e n t ( " i f r a m e " ) ; B . s r c = t h i s . _ i F r a m e S r c ; B . f r a m e B o r d e r = 0 ; B . s c r o l l i n g = " n o " ; B . s t y l e . p o s i t i o n = " a b s o l u t e " ; B . s t y l e . w i d t h = 0 ; B . s t y l e . h e i g h t = 0 ; B . t a b I n d e x = - 1 ; B . s t y l e . p a d d i n g = 0 ; t h i s . _ e l I F r a m e = t h i s . _ e l C o n t a i n e r . a p p e n d C h i l d ( B ) ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ i n i t C o n t a i n e r E l = f u n c t i o n ( ) { Y A H O O . u t i l . D o m . a d d C l a s s ( t h i s . _ e l C o n t a i n e r , " y u i - a c - c o n t a i n e r " ) ; i f ( ! t h i s . _ e l C o n t e n t ) { v a r   C = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; C . c l a s s N a m e = " y u i - a c - c o n t e n t " ; C . s t y l e . d i s p l a y = " n o n e " ; t h i s . _ e l C o n t e n t = t h i s . _ e l C o n t a i n e r . a p p e n d C h i l d ( C ) ; v a r   B = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; B . c l a s s N a m e = " y u i - a c - h d " ; B . s t y l e . d i s p l a y = " n o n e " ; t h i s . _ e l H e a d e r = t h i s . _ e l C o n t e n t . a p p e n d C h i l d ( B ) ; v a r   D = 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 . c l a s s N a m e = " y u i - a c - b d " ; t h i s . _ e l B o d y = t h i s . _ e l C o n t e n t . a p p e n d C h i l d ( D ) ; v a r   A = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; A . c l a s s N a m e = " y u i - a c - f t " ; A . s t y l e . d i s p l a y = " n o n e " ; t h i s . _ e l F o o t e r = t h i s . _ e l C o n t e n t . a p p e n d C h i l d ( A ) ; } e l s e { } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ i n i t L i s t E l = f u n c t i o n ( ) { v a r   C = t h i s . m a x R e s u l t s D i s p l a y e d ; v a r   A = t h i s . _ e l L i s t | | d o c u m e n t . c r e a t e E l e m e n t ( " u l " ) ; v a r   B ; w h i l e ( A . c h i l d N o d e s . l e n g t h < C ) { B = d o c u m e n t . c r e a t e E l e m e n t ( " l i " ) ; B . s t y l e . d i s p l a y = " n o n e " ; B . _ n I t e m I n d e x = A . c h i l d N o d e s . l e n g t h ; A . a p p e n d C h i l d ( B ) ; } i f ( ! t h i s . _ e l L i s t ) { v a r   D = t h i s . _ e l B o d y ; Y A H O O . u t i l . E v e n t . p u r g e E l e m e n t ( D , t r u e ) ; D . i n n e r H T M L = " " ; t h i s . _ e l L i s t = D . a p p e n d C h i l d ( A ) ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ f o c u s = f u n c t i o n ( ) { v a r   A = t h i s ; s e t T i m e o u t ( f u n c t i o n ( ) { t r y { A . _ e l T e x t b o x . f o c u s ( ) ; } c a t c h ( B ) { } } , 0 ) ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ e n a b l e I n t e r v a l D e t e c t i o n = f u n c t i o n ( ) { v a r   A = t h i s ; i f ( ! A . _ q u e r y I n t e r v a l & & A . q u e r y I n t e r v a l ) { A . _ q u e r y I n t e r v a l = s e t I n t e r v a l ( f u n c t i o n ( ) { A . _ o n I n t e r v a l ( ) ; } , A . q u e r y I n t e r v a l ) ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ o n I n t e r v a l = f u n c t i o n ( ) { v a r   A = t h i s . _ e l T e x t b o x . v a l u e ; v a r   B = t h i s . _ s L a s t T e x t b o x V a l u e ; i f ( A ! = B ) { t h i s . _ s L a s t T e x t b o x V a l u e = A ; t h i s . _ s e n d Q u e r y ( A ) ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ c l e a r I n t e r v a l = f u n c t i o n ( ) { i f ( t h i s . _ q u e r y I n t e r v a l ) { c l e a r I n t e r v a l ( t h i s . _ q u e r y I n t e r v a l ) ; t h i s . _ q u e r y I n t e r v a l = n u l l ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ i s I g n o r e K e y = f u n c t i o n ( A ) { i f ( ( A = = 9 ) | | ( A = = 1 3 ) | | ( A = = 1 6 ) | | ( A = = 1 7 ) | | ( A > = 1 8 & & A < = 2 0 ) | | ( A = = 2 7 ) | | ( A > = 3 3 & & A < = 3 5 ) | | ( A > = 3 6 & & A < = 4 0 ) | | ( A > = 4 4 & & A < = 4 5 ) | | ( A = = 2 2 9 ) ) { r e t u r n   t r u e ; } r e t u r n   f a l s e ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ s e n d Q u e r y = f u n c t i o n ( D ) { i f ( t h i s . m i n Q u e r y L e n g t h < 0 ) { t h i s . _ t o g g l e C o n t a i n e r ( f a l s e ) ; r e t u r n ; } i f ( t h i s . d e l i m C h a r ) { v a r   A = t h i s . _ e x t r a c t Q u e r y ( D ) ; D = A . q u e r y ; t h i s . _ s P a s t S e l e c t i o n s = A . p r e v i o u s ; } i f ( ( D & & ( D . l e n g t h < t h i s . m i n Q u e r y L e n g t h ) ) | | ( ! D & & t h i s . m i n Q u e r y L e n g t h > 0 ) ) { i f ( t h i s . _ n D e l a y I D ! = - 1 ) { c l e a r T i m e o u t ( t h i s . _ n D e l a y I D ) ; } t h i s . _ t o g g l e C o n t a i n e r ( f a l s e ) ; r e t u r n ; } D = e n c o d e U R I C o m p o n e n t ( D ) ; t h i s . _ n D e l a y I D = - 1 ; i f ( t h i s . d a t a S o u r c e . q u e r y M a t c h S u b s e t | | t h i s . q u e r y M a t c h S u b s e t ) { v a r   C = t h i s . g e t S u b s e t M a t c h e s ( D ) ; i f ( C ) { t h i s . h a n d l e R e s p o n s e ( D , C , { q u e r y : D } ) ; r e t u r n ; } } i f ( t h i s . r e s p o n s e S t r i p A f t e r ) { t h i s . d a t a S o u r c e . d o B e f o r e P a r s e D a t a = t h i s . p r e p a r s e R a w R e s p o n s e ; } i f ( t h i s . a p p l y L o c a l F i l t e r ) { t h i s . d a t a S o u r c e . d o B e f o r e C a l l b a c k = t h i s . f i l t e r R e s u l t s ; } v a r   B = t h i s . g e n e r a t e R e q u e s t ( D ) ; t h i s . d a t a R e q u e s t E v e n t . f i r e ( t h i s , D , B ) ; t h i s . d a t a S o u r c e . s e n d R e q u e s t ( B , { s u c c e s s : t h i s . h a n d l e R e s p o n s e , f a i l u r e : t h i s . h a n d l e R e s p o n s e , s c o p e : t h i s , a r g u m e n t : { q u e r y : D } } ) ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ p o p u l a t e L i s t = f u n c t i o n ( K , F , C ) { i f ( t h i s . _ n T y p e A h e a d D e l a y I D ! = - 1 ) { c l e a r T i m e o u t ( t h i s . _ n T y p e A h e a d D e l a y I D ) ; } K = ( C & & C . q u e r y ) ? C . q u e r y : K ; v a r   H = t h i s . d o B e f o r e L o a d D a t a ( K , F , C ) ; i f ( H & & ! F . e r r o r ) { t h i s . d a t a R e t u r n E v e n t . f i r e ( t h i s , K , F . r e s u l t s ) ; i f ( t h i s . _ b F o c u s e d | | ( t h i s . _ b F o c u s e d = = = n u l l ) ) { v a r   M = d e c o d e U R I C o m p o n e n t ( K ) ; t h i s . _ s C u r Q u e r y = M ;  
 t h i s . _ b I t e m S e l e c t e d = f a l s e ; v a r   R = F . r e s u l t s , A = M a t h . m i n ( R . l e n g t h , t h i s . m a x R e s u l t s D i s p l a y e d ) , J = ( t h i s . d a t a S o u r c e . r e s p o n s e S c h e m a . f i e l d s ) ? ( t h i s . d a t a S o u r c e . r e s p o n s e S c h e m a . f i e l d s [ 0 ] . k e y | | t h i s . d a t a S o u r c e . r e s p o n s e S c h e m a . f i e l d s [ 0 ] ) : 0 ; i f ( A > 0 ) { i f ( ! t h i s . _ e l L i s t | | ( t h i s . _ e l L i s t . c h i l d N o d e s . l e n g t h < A ) ) { t h i s . _ i n i t L i s t E l ( ) ; } t h i s . _ i n i t C o n t a i n e r H e l p e r E l s ( ) ; v a r   I = t h i s . _ e l L i s t . c h i l d N o d e s ; f o r ( v a r   Q = A - 1 ; Q > = 0 ; Q - - ) { v a r   P = I [ Q ] , E = R [ Q ] ; i f ( t h i s . r e s u l t T y p e L i s t ) { v a r   B = [ ] ; B [ 0 ] = ( Y A H O O . l a n g . i s S t r i n g ( E ) ) ? E : E [ J ] | | E [ t h i s . k e y ] ; v a r   L = t h i s . d a t a S o u r c e . r e s p o n s e S c h e m a . f i e l d s ; i f ( Y A H O O . l a n g . i s A r r a y ( L ) & & ( L . l e n g t h > 1 ) ) { f o r ( v a r   N = 1 , S = L . l e n g t h ; N < S ; N + + ) { B [ B . l e n g t h ] = E [ L [ N ] . k e y | | L [ N ] ] ; } } e l s e { i f ( Y A H O O . l a n g . i s A r r a y ( E ) ) { B = E ; } e l s e { i f ( Y A H O O . l a n g . i s S t r i n g ( E ) ) { B = [ E ] ; } e l s e { B [ 1 ] = E ; } } } E = B ; } P . _ s R e s u l t M a t c h = ( Y A H O O . l a n g . i s S t r i n g ( E ) ) ? E : ( Y A H O O . l a n g . i s A r r a y ( E ) ) ? E [ 0 ] : ( E [ J ] | | " " ) ; P . _ o R e s u l t D a t a = E ; P . i n n e r H T M L = t h i s . f o r m a t R e s u l t ( E , M , P . _ s R e s u l t M a t c h ) ; P . s t y l e . d i s p l a y = " " ; } i f ( A < I . l e n g t h ) { v a r   G ; f o r ( v a r   O = I . l e n g t h - 1 ; O > = A ; O - - ) { G = I [ O ] ; G . s t y l e . d i s p l a y = " n o n e " ; } } t h i s . _ n D i s p l a y e d I t e m s = A ; t h i s . c o n t a i n e r P o p u l a t e E v e n t . f i r e ( t h i s , K , R ) ; i f ( t h i s . a u t o H i g h l i g h t ) { v a r   D = t h i s . _ e l L i s t . f i r s t C h i l d ; t h i s . _ t o g g l e H i g h l i g h t ( D , " t o " ) ; t h i s . i t e m A r r o w T o E v e n t . f i r e ( t h i s , D ) ; t h i s . _ t y p e A h e a d ( D , K ) ; } e l s e { t h i s . _ t o g g l e H i g h l i g h t ( t h i s . _ e l C u r L i s t I t e m , " f r o m " ) ; } H = t h i s . d o B e f o r e E x p a n d C o n t a i n e r ( t h i s . _ e l T e x t b o x , t h i s . _ e l C o n t a i n e r , K , R ) ; t h i s . _ t o g g l e C o n t a i n e r ( H ) ; } e l s e { t h i s . _ t o g g l e C o n t a i n e r ( f a l s e ) ; } r e t u r n ; } } e l s e { t h i s . d a t a E r r o r E v e n t . f i r e ( t h i s , K ) ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ c l e a r S e l e c t i o n = f u n c t i o n ( ) { v a r   A = ( t h i s . d e l i m C h a r ) ? t h i s . _ e x t r a c t Q u e r y ( t h i s . _ e l T e x t b o x . v a l u e ) : { p r e v i o u s : " " , q u e r y : t h i s . _ e l T e x t b o x . v a l u e } ; t h i s . _ e l T e x t b o x . v a l u e = A . p r e v i o u s ; t h i s . s e l e c t i o n E n f o r c e E v e n t . f i r e ( t h i s , A . q u e r y ) ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ t e x t M a t c h e s O p t i o n = f u n c t i o n ( ) { v a r   A = n u l l ; f o r ( v a r   B = 0 ; B < t h i s . _ n D i s p l a y e d I t e m s ; B + + ) { v a r   C = t h i s . _ e l L i s t . c h i l d N o d e s [ B ] ; v a r   D = ( " " + C . _ s R e s u l t M a t c h ) . t o L o w e r C a s e ( ) ; i f ( D = = t h i s . _ s C u r Q u e r y . t o L o w e r C a s e ( ) ) { A = C ; b r e a k ; } } r e t u r n ( A ) ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ t y p e A h e a d = f u n c t i o n ( B , D ) { i f ( ! t h i s . t y p e A h e a d | | ( t h i s . _ n K e y C o d e = = 8 ) ) { r e t u r n ; } v a r   A = t h i s , C = t h i s . _ e l T e x t b o x ; i f ( C . s e t S e l e c t i o n R a n g e | | C . c r e a t e T e x t R a n g e ) { t h i s . _ n T y p e A h e a d D e l a y I D = s e t T i m e o u t ( f u n c t i o n ( ) { v a r   F = C . v a l u e . l e n g t h ; A . _ u p d a t e V a l u e ( B ) ; v a r   G = C . v a l u e . l e n g t h ; A . _ s e l e c t T e x t ( C , F , G ) ; v a r   E = C . v a l u e . s u b s t r ( F , G ) ; A . t y p e A h e a d E v e n t . f i r e ( A , D , E ) ; } , ( t h i s . t y p e A h e a d D e l a y * 1 0 0 0 ) ) ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ s e l e c t T e x t = f u n c t i o n ( D , A , B ) { i f ( D . s e t S e l e c t i o n R a n g e ) { D . s e t S e l e c t i o n R a n g e ( A , B ) ; } e l s e { i f ( D . c r e a t e T e x t R a n g e ) { v a r   C = D . c r e a t e T e x t R a n g e ( ) ; C . m o v e S t a r t ( " c h a r a c t e r " , A ) ; C . m o v e E n d ( " c h a r a c t e r " , B - D . v a l u e . l e n g t h ) ; C . s e l e c t ( ) ; } e l s e { D . s e l e c t ( ) ; } } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ e x t r a c t Q u e r y = f u n c t i o n ( H ) { v a r   C = t h i s . d e l i m C h a r , F = - 1 , G , E , B = C . l e n g t h - 1 , D ; f o r ( ; B > = 0 ; B - - ) { G = H . l a s t I n d e x O f ( C [ B ] ) ; i f ( G > F ) { F = G ; } } i f ( C [ B ] = = "   " ) { f o r ( v a r   A = C . l e n g t h - 1 ; A > = 0 ; A - - ) { i f ( H [ F - 1 ] = = C [ A ] ) { F - - ; b r e a k ; } } } i f ( F > - 1 ) { E = F + 1 ; w h i l e ( H . c h a r A t ( E ) = = "   " ) { E + = 1 ; } D = H . s u b s t r i n g ( 0 , E ) ; H = H . s u b s t r ( E ) ; } e l s e { D = " " ; } r e t u r n { p r e v i o u s : D , q u e r y : H } ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ t o g g l e C o n t a i n e r H e l p e r s = f u n c t i o n ( D ) { v a r   E = t h i s . _ e l C o n t e n t . o f f s e t W i d t h + " p x " ; v a r   B = t h i s . _ e l C o n t e n t . o f f s e t H e i g h t + " p x " ; i f ( t h i s . u s e I F r a m e & & t h i s . _ e l I F r a m e ) { v a r   C = t h i s . _ e l I F r a m e ; i f ( D ) { C . s t y l e . w i d t h = E ; C . s t y l e . h e i g h t = B ; C . s t y l e . p a d d i n g = " " ; } e l s e { C . s t y l e . w i d t h = 0 ; C . s t y l e . h e i g h t = 0 ; C . s t y l e . p a d d i n g = 0 ; } } i f ( t h i s . u s e S h a d o w & & t h i s . _ e l S h a d o w ) { v a r   A = t h i s . _ e l S h a d o w ; i f ( D ) { A . s t y l e . w i d t h = E ; A . s t y l e . h e i g h t = B ; } e l s e { A . s t y l e . w i d t h = 0 ; A . s t y l e . h e i g h t = 0 ; } } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ t o g g l e C o n t a i n e r = f u n c t i o n ( I ) { v a r   D = t h i s . _ e l C o n t a i n e r ; i f ( t h i s . a l w a y s S h o w C o n t a i n e r & & t h i s . _ b C o n t a i n e r O p e n ) { r e t u r n ; } i f ( ! I ) { t h i s . _ t o g g l e H i g h l i g h t ( t h i s . _ e l C u r L i s t I t e m , " f r o m " ) ; t h i s . _ n D i s p l a y e d I t e m s = 0 ; t h i s . _ s C u r Q u e r y = n u l l ; i f ( t h i s . _ e l C o n t e n t . s t y l e . d i s p l a y = = " n o n e " ) { r e t u r n ; } } v a r   A = t h i s . _ o A n i m ; i f ( A & & A . g e t E l ( ) & & ( t h i s . a n i m H o r i z | | t h i s . a n i m V e r t ) ) { i f ( A . i s A n i m a t e d ( ) ) { A . s t o p ( t r u e ) ; } v a r   G = t h i s . _ e l C o n t e n t . c l o n e N o d e ( t r u e ) ; D . a p p e n d C h i l d ( G ) ; G . s t y l e . t o p = " - 9 0 0 0 p x " ; G . s t y l e . w i d t h = " " ; G . s t y l e . h e i g h t = " " ; G . s t y l e . d i s p l a y = " " ; v a r   F = G . o f f s e t W i d t h ; v a r   C = G . o f f s e t H e i g h t ; v a r   B = ( t h i s . a n i m H o r i z ) ? 0 : F ; v a r   E = ( t h i s . a n i m V e r t ) ? 0 : C ; A . a t t r i b u t e s = ( I ) ? { w i d t h : { t o : F } , h e i g h t : { t o : C } } : { w i d t h : { t o : B } , h e i g h t : { t o : E } } ; i f ( I & & ! t h i s . _ b C o n t a i n e r O p e n ) { t h i s . _ e l C o n t e n t . s t y l e . w i d t h = B + " p x " ; t h i s . _ e l C o n t e n t . s t y l e . h e i g h t = E + " p x " ; } e l s e { t h i s . _ e l C o n t e n t . s t y l e . w i d t h = F + " p x " ; t h i s . _ e l C o n t e n t . s t y l e . h e i g h t = C + " p x " ; } D . r e m o v e C h i l d ( G ) ; G = n u l l ; v a r   H = t h i s ; v a r   J = f u n c t i o n ( ) { A . o n C o m p l e t e . u n s u b s c r i b e A l l ( ) ; i f ( I ) { H . _ t o g g l e C o n t a i n e r H e l p e r s ( t r u e ) ; H . _ b C o n t a i n e r O p e n = I ; H . c o n t a i n e r E x p a n d E v e n t . f i r e ( H ) ; } e l s e { H . _ e l C o n t e n t . s t y l e . d i s p l a y = " n o n e " ; H . _ b C o n t a i n e r O p e n = I ; H . c o n t a i n e r C o l l a p s e E v e n t . f i r e ( H ) ; } } ; t h i s . _ t o g g l e C o n t a i n e r H e l p e r s ( f a l s e ) ; t h i s . _ e l C o n t e n t . s t y l e . d i s p l a y = " " ; A . o n C o m p l e t e . s u b s c r i b e ( J ) ; A . a n i m a t e ( ) ; } e l s e { i f ( I ) { t h i s . _ e l C o n t e n t . s t y l e . d i s p l a y = " " ; t h i s . _ t o g g l e C o n t a i n e r H e l p e r s ( t r u e ) ; t h i s . _ b C o n t a i n e r O p e n = I ; t h i s . c o n t a i n e r E x p a n d E v e n t . f i r e ( t h i s ) ; } e l s e { t h i s . _ t o g g l e C o n t a i n e r H e l p e r s ( f a l s e ) ; t h i s . _ e l C o n t e n t . s t y l e . d i s p l a y = " n o n e " ; t h i s . _ b C o n t a i n e r O p e n = I ; t h i s . c o n t a i n e r C o l l a p s e E v e n t . f i r e ( t h i s ) ; } } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ t o g g l e H i g h l i g h t = f u n c t i o n ( A , C ) { i f ( A ) { v a r   B = t h i s . h i g h l i g h t C l a s s N a m e ; i f ( t h i s . _ e l C u r L i s t I t e m ) { Y A H O O . u t i l . D o m . r e m o v e C l a s s ( t h i s . _ e l C u r L i s t I t e m , B ) ; t h i s . _ e l C u r L i s t I t e m = n u l l ; } i f ( ( C = = " t o " ) & & B ) { Y A H O O . u t i l . D o m . a d d C l a s s ( A , B ) ; t h i s . _ e l C u r L i s t I t e m = A ; } } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ t o g g l e P r e h i g h l i g h t = f u n c t i o n ( B , C ) { i f ( B = = t h i s . _ e l C u r L i s t I t e m ) { r e t u r n ; } v a r   A = t h i s . p r e h i g h l i g h t C l a s s N a m e ; i f ( ( C = = " m o u s e o v e r " ) & & A ) { Y A H O O . u t i l . D o m . a d d C l a s s ( B , A ) ; } e l s e { Y A H O O . u t i l . D o m . r e m o v e C l a s s ( B , A ) ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ u p d a t e V a l u e = f u n c t i o n ( C ) { i f ( ! t h i s . s u p p r e s s I n p u t U p d a t e ) { v a r   F = t h i s . _ e l T e x t b o x ; v a r   E = ( t h i s . d e l i m C h a r ) ? ( t h i s . d e l i m C h a r [ 0 ] | | t h i s . d e l i m C h a r ) : n u l l ; v a r   B = C . _ s R e s u l t M a t c h ; v a r   D = " " ; i f ( E ) { D = t h i s . _ s P a s t S e l e c t i o n s ; D + = B + E ; i f ( E ! = "   " ) { D + = "   " ; } } e l s e { D = B ; } F . v a l u e = D ; i f ( F . t y p e = = " t e x t a r e a " ) { F . s c r o l l T o p = F . s c r o l l H e i g h t ; } v a r   A = F . v a l u e . l e n g t h ; t h i s . _ s e l e c t T e x t ( F , A , A ) ; t h i s . _ e l C u r L i s t I t e m = C ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ s e l e c t I t e m = f u n c t i o n ( A ) { t h i s . _ b I t e m S e l e c t e d = t r u e ; t h i s . _ u p d a t e V a l u e ( A ) ; t h i s . _ s P a s t S e l e c t i o n s = t h i s . _ e l T e x t b o x . v a l u e ;  
 t h i s . _ c l e a r I n t e r v a l ( ) ; t h i s . i t e m S e l e c t E v e n t . f i r e ( t h i s , A , A . _ o R e s u l t D a t a ) ; t h i s . _ t o g g l e C o n t a i n e r ( f a l s e ) ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ j u m p S e l e c t i o n = f u n c t i o n ( ) { i f ( t h i s . _ e l C u r L i s t I t e m ) { t h i s . _ s e l e c t I t e m ( t h i s . _ e l C u r L i s t I t e m ) ; } e l s e { t h i s . _ t o g g l e C o n t a i n e r ( f a l s e ) ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ m o v e S e l e c t i o n = f u n c t i o n ( G ) { i f ( t h i s . _ b C o n t a i n e r O p e n ) { v a r   H = t h i s . _ e l C u r L i s t I t e m , D = - 1 ; i f ( H ) { D = H . _ n I t e m I n d e x ; } v a r   E = ( G = = 4 0 ) ? ( D + 1 ) : ( D - 1 ) ; i f ( E < - 2 | | E > = t h i s . _ n D i s p l a y e d I t e m s ) { r e t u r n ; } i f ( H ) { t h i s . _ t o g g l e H i g h l i g h t ( H , " f r o m " ) ; t h i s . i t e m A r r o w F r o m E v e n t . f i r e ( t h i s , H ) ; } i f ( E = = - 1 ) { i f ( t h i s . d e l i m C h a r ) { t h i s . _ e l T e x t b o x . v a l u e = t h i s . _ s P a s t S e l e c t i o n s + t h i s . _ s C u r Q u e r y ; } e l s e { t h i s . _ e l T e x t b o x . v a l u e = t h i s . _ s C u r Q u e r y ; } r e t u r n ; } i f ( E = = - 2 ) { t h i s . _ t o g g l e C o n t a i n e r ( f a l s e ) ; r e t u r n ; } v a r   F = t h i s . _ e l L i s t . c h i l d N o d e s [ E ] , B = t h i s . _ e l C o n t e n t , C = Y A H O O . u t i l . D o m . g e t S t y l e ( B , " o v e r f l o w " ) , I = Y A H O O . u t i l . D o m . g e t S t y l e ( B , " o v e r f l o w Y " ) , A = ( ( C = = " a u t o " ) | | ( C = = " s c r o l l " ) | | ( I = = " a u t o " ) | | ( I = = " s c r o l l " ) ) ; i f ( A & & ( E > - 1 ) & & ( E < t h i s . _ n D i s p l a y e d I t e m s ) ) { i f ( G = = 4 0 ) { i f ( ( F . o f f s e t T o p + F . o f f s e t H e i g h t ) > ( B . s c r o l l T o p + B . o f f s e t H e i g h t ) ) { B . s c r o l l T o p = ( F . o f f s e t T o p + F . o f f s e t H e i g h t ) - B . o f f s e t H e i g h t ; } e l s e { i f ( ( F . o f f s e t T o p + F . o f f s e t H e i g h t ) < B . s c r o l l T o p ) { B . s c r o l l T o p = F . o f f s e t T o p ; } } } e l s e { i f ( F . o f f s e t T o p < B . s c r o l l T o p ) { t h i s . _ e l C o n t e n t . s c r o l l T o p = F . o f f s e t T o p ; } e l s e { i f ( F . o f f s e t T o p > ( B . s c r o l l T o p + B . o f f s e t H e i g h t ) ) { t h i s . _ e l C o n t e n t . s c r o l l T o p = ( F . o f f s e t T o p + F . o f f s e t H e i g h t ) - B . o f f s e t H e i g h t ; } } } } t h i s . _ t o g g l e H i g h l i g h t ( F , " t o " ) ; t h i s . i t e m A r r o w T o E v e n t . f i r e ( t h i s , F ) ; i f ( t h i s . t y p e A h e a d ) { t h i s . _ u p d a t e V a l u e ( F ) ; } } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ o n C o n t a i n e r M o u s e o v e r = f u n c t i o n ( A , C ) { v a r   D = Y A H O O . u t i l . E v e n t . g e t T a r g e t ( A ) ; v a r   B = D . n o d e N a m e . t o L o w e r C a s e ( ) ; w h i l e ( D & & ( B ! = " t a b l e " ) ) { s w i t c h ( B ) { c a s e " b o d y " : r e t u r n ; c a s e " l i " : i f ( C . p r e h i g h l i g h t C l a s s N a m e ) { C . _ t o g g l e P r e h i g h l i g h t ( D , " m o u s e o v e r " ) ; } e l s e { C . _ t o g g l e H i g h l i g h t ( D , " t o " ) ; } C . i t e m M o u s e O v e r E v e n t . f i r e ( C , D ) ; b r e a k ; c a s e " d i v " : i f ( Y A H O O . u t i l . D o m . h a s C l a s s ( D , " y u i - a c - c o n t a i n e r " ) ) { C . _ b O v e r C o n t a i n e r = t r u e ; r e t u r n ; } b r e a k ; d e f a u l t : b r e a k ; } D = D . p a r e n t N o d e ; i f ( D ) { B = D . n o d e N a m e . t o L o w e r C a s e ( ) ; } } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ o n C o n t a i n e r M o u s e o u t = f u n c t i o n ( A , C ) { v a r   D = Y A H O O . u t i l . E v e n t . g e t T a r g e t ( A ) ; v a r   B = D . n o d e N a m e . t o L o w e r C a s e ( ) ; w h i l e ( D & & ( B ! = " t a b l e " ) ) { s w i t c h ( B ) { c a s e " b o d y " : r e t u r n ; c a s e " l i " : i f ( C . p r e h i g h l i g h t C l a s s N a m e ) { C . _ t o g g l e P r e h i g h l i g h t ( D , " m o u s e o u t " ) ; } e l s e { C . _ t o g g l e H i g h l i g h t ( D , " f r o m " ) ; } C . i t e m M o u s e O u t E v e n t . f i r e ( C , D ) ; b r e a k ; c a s e " u l " : C . _ t o g g l e H i g h l i g h t ( C . _ e l C u r L i s t I t e m , " t o " ) ; b r e a k ; c a s e " d i v " : i f ( Y A H O O . u t i l . D o m . h a s C l a s s ( D , " y u i - a c - c o n t a i n e r " ) ) { C . _ b O v e r C o n t a i n e r = f a l s e ; r e t u r n ; } b r e a k ; d e f a u l t : b r e a k ; } D = D . p a r e n t N o d e ; i f ( D ) { B = D . n o d e N a m e . t o L o w e r C a s e ( ) ; } } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ o n C o n t a i n e r C l i c k = f u n c t i o n ( A , C ) { v a r   D = Y A H O O . u t i l . E v e n t . g e t T a r g e t ( A ) ; v a r   B = D . n o d e N a m e . t o L o w e r C a s e ( ) ; w h i l e ( D & & ( B ! = " t a b l e " ) ) { s w i t c h ( B ) { c a s e " b o d y " : r e t u r n ; c a s e " l i " : C . _ t o g g l e H i g h l i g h t ( D , " t o " ) ; C . _ s e l e c t I t e m ( D ) ; r e t u r n ; d e f a u l t : b r e a k ; } D = D . p a r e n t N o d e ; i f ( D ) { B = D . n o d e N a m e . t o L o w e r C a s e ( ) ; } } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ o n C o n t a i n e r S c r o l l = f u n c t i o n ( A , B ) { B . _ f o c u s ( ) ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ o n C o n t a i n e r R e s i z e = f u n c t i o n ( A , B ) { B . _ t o g g l e C o n t a i n e r H e l p e r s ( B . _ b C o n t a i n e r O p e n ) ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ o n T e x t b o x K e y D o w n = f u n c t i o n ( A , B ) { v a r   C = A . k e y C o d e ; i f ( B . _ n T y p e A h e a d D e l a y I D ! = - 1 ) { c l e a r T i m e o u t ( B . _ n T y p e A h e a d D e l a y I D ) ; } s w i t c h ( C ) { c a s e   9 : i f ( ! Y A H O O . e n v . u a . o p e r a & & ( n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) . i n d e x O f ( " m a c " ) = = - 1 ) | | ( Y A H O O . e n v . u a . w e b k i t > 4 2 0 ) ) { i f ( B . _ e l C u r L i s t I t e m ) { i f ( B . d e l i m C h a r & & ( B . _ n K e y C o d e ! = C ) ) { i f ( B . _ b C o n t a i n e r O p e n ) { Y A H O O . u t i l . E v e n t . s t o p E v e n t ( A ) ; } } B . _ s e l e c t I t e m ( B . _ e l C u r L i s t I t e m ) ; } e l s e { B . _ t o g g l e C o n t a i n e r ( f a l s e ) ; } } b r e a k ; c a s e   1 3 : i f ( ! Y A H O O . e n v . u a . o p e r a & & ( n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) . i n d e x O f ( " m a c " ) = = - 1 ) | | ( Y A H O O . e n v . u a . w e b k i t > 4 2 0 ) ) { i f ( B . _ e l C u r L i s t I t e m ) { i f ( B . _ n K e y C o d e ! = C ) { i f ( B . _ b C o n t a i n e r O p e n ) { Y A H O O . u t i l . E v e n t . s t o p E v e n t ( A ) ; } } B . _ s e l e c t I t e m ( B . _ e l C u r L i s t I t e m ) ; } e l s e { B . _ t o g g l e C o n t a i n e r ( f a l s e ) ; } } b r e a k ; c a s e   2 7 : B . _ t o g g l e C o n t a i n e r ( f a l s e ) ; r e t u r n ; c a s e   3 9 : B . _ j u m p S e l e c t i o n ( ) ; b r e a k ; c a s e   3 8 : i f ( B . _ b C o n t a i n e r O p e n ) { Y A H O O . u t i l . E v e n t . s t o p E v e n t ( A ) ; B . _ m o v e S e l e c t i o n ( C ) ; } b r e a k ; c a s e   4 0 : i f ( B . _ b C o n t a i n e r O p e n ) { Y A H O O . u t i l . E v e n t . s t o p E v e n t ( A ) ; B . _ m o v e S e l e c t i o n ( C ) ; } b r e a k ; d e f a u l t : B . _ b I t e m S e l e c t e d = f a l s e ; B . _ t o g g l e H i g h l i g h t ( B . _ e l C u r L i s t I t e m , " f r o m " ) ; B . t e x t b o x K e y E v e n t . f i r e ( B , C ) ; b r e a k ; } i f ( C = = = 1 8 ) { B . _ e n a b l e I n t e r v a l D e t e c t i o n ( ) ; } B . _ n K e y C o d e = C ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ o n T e x t b o x K e y P r e s s = f u n c t i o n ( A , B ) { v a r   C = A . k e y C o d e ; i f ( Y A H O O . e n v . u a . o p e r a | | ( n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) . i n d e x O f ( " m a c " ) ! = - 1 ) & & ( Y A H O O . e n v . u a . w e b k i t < 4 2 0 ) ) { s w i t c h ( C ) { c a s e   9 : i f ( B . _ b C o n t a i n e r O p e n ) { i f ( B . d e l i m C h a r ) { Y A H O O . u t i l . E v e n t . s t o p E v e n t ( A ) ; } i f ( B . _ e l C u r L i s t I t e m ) { B . _ s e l e c t I t e m ( B . _ e l C u r L i s t I t e m ) ; } e l s e { B . _ t o g g l e C o n t a i n e r ( f a l s e ) ; } } b r e a k ; c a s e   1 3 : i f ( B . _ b C o n t a i n e r O p e n ) { Y A H O O . u t i l . E v e n t . s t o p E v e n t ( A ) ; i f ( B . _ e l C u r L i s t I t e m ) { B . _ s e l e c t I t e m ( B . _ e l C u r L i s t I t e m ) ; } e l s e { B . _ t o g g l e C o n t a i n e r ( f a l s e ) ; } } b r e a k ; d e f a u l t : b r e a k ; } } e l s e { i f ( C = = 2 2 9 ) { B . _ e n a b l e I n t e r v a l D e t e c t i o n ( ) ; } } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ o n T e x t b o x K e y U p = f u n c t i o n ( A , C ) { v a r   B = t h i s . v a l u e ; C . _ i n i t P r o p s ( ) ; v a r   D = A . k e y C o d e ; i f ( C . _ i s I g n o r e K e y ( D ) ) { r e t u r n ; } i f ( C . _ n D e l a y I D ! = - 1 ) { c l e a r T i m e o u t ( C . _ n D e l a y I D ) ; } C . _ n D e l a y I D = s e t T i m e o u t ( f u n c t i o n ( ) { C . _ s e n d Q u e r y ( B ) ; } , ( C . q u e r y D e l a y * 1 0 0 0 ) ) ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ o n T e x t b o x F o c u s = f u n c t i o n ( A , B ) { i f ( ! B . _ b F o c u s e d ) { B . _ e l T e x t b o x . s e t A t t r i b u t e ( " a u t o c o m p l e t e " , " o f f " ) ; B . _ b F o c u s e d = t r u e ; B . _ s I n i t I n p u t V a l u e = B . _ e l T e x t b o x . v a l u e ; B . t e x t b o x F o c u s E v e n t . f i r e ( B ) ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ o n T e x t b o x B l u r = f u n c t i o n ( A , C ) { i f ( ! C . _ b O v e r C o n t a i n e r | | ( C . _ n K e y C o d e = = 9 ) ) { i f ( ! C . _ b I t e m S e l e c t e d ) { v a r   B = C . _ t e x t M a t c h e s O p t i o n ( ) ; i f ( ! C . _ b C o n t a i n e r O p e n | | ( C . _ b C o n t a i n e r O p e n & & ( B = = = n u l l ) ) ) { i f ( C . f o r c e S e l e c t i o n ) { C . _ c l e a r S e l e c t i o n ( ) ; } e l s e { C . u n m a t c h e d I t e m S e l e c t E v e n t . f i r e ( C , C . _ s C u r Q u e r y ) ; } } e l s e { i f ( C . f o r c e S e l e c t i o n ) { C . _ s e l e c t I t e m ( B ) ; } } } C . _ c l e a r I n t e r v a l ( ) ; C . _ b F o c u s e d = f a l s e ; i f ( C . _ s I n i t I n p u t V a l u e ! = = C . _ e l T e x t b o x . v a l u e ) { C . t e x t b o x C h a n g e E v e n t . f i r e ( C ) ; } C . t e x t b o x B l u r E v e n t . f i r e ( C ) ; C . _ t o g g l e C o n t a i n e r ( f a l s e ) ; } e l s e { C . _ f o c u s ( ) ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . _ o n W i n d o w U n l o a d = f u n c t i o n ( A , B ) { i f ( B & & B . _ e l T e x t b o x & & B . a l l o w B r o w s e r A u t o c o m p l e t e ) { B . _ e l T e x t b o x . s e t A t t r i b u t e ( " a u t o c o m p l e t e " , " o n " ) ; } } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . d o B e f o r e S e n d Q u e r y = f u n c t i o n ( A ) { r e t u r n   t h i s . g e n e r a t e R e q u e s t ( A ) ;  
 } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . p r o t o t y p e . g e t L i s t I t e m s = f u n c t i o n ( ) { v a r   C = [ ] , B = t h i s . _ e l L i s t . c h i l d N o d e s ; f o r ( v a r   A = B . l e n g t h - 1 ; A > = 0 ; A - - ) { C [ A ] = B [ A ] ; } r e t u r n   C ; } ; Y A H O O . w i d g e t . A u t o C o m p l e t e . _ c l o n e O b j e c t = f u n c t i o n ( D ) { i f ( ! Y A H O O . l a n g . i s V a l u e ( D ) ) { r e t u r n   D ; } v a r   F = { } ; i f ( Y A H O O . l a n g . i s F u n c t i o n ( D ) ) { F = D ; } e l s e { i f ( Y A H O O . l a n g . i s A r r a y ( D ) ) { v a r   E = [ ] ; f o r ( v a r   C = 0 , B = D . l e n g t h ; C < B ; C + + ) { E [ C ] = Y A H O O . w i d g e t . A u t o C o m p l e t e . _ c l o n e O b j e c t ( D [ C ] ) ; } F = E ; } e l s e { i f ( Y A H O O . l a n g . i s O b j e c t ( D ) ) { f o r ( v a r   A   i n   D ) { i f ( Y A H O O . l a n g . h a s O w n P r o p e r t y ( D , A ) ) { i f ( Y A H O O . l a n g . i s V a l u e ( D [ A ] ) & & Y A H O O . l a n g . i s O b j e c t ( D [ A ] ) | | Y A H O O . l a n g . i s A r r a y ( D [ A ] ) ) { F [ A ] = Y A H O O . w i d g e t . A u t o C o m p l e t e . _ c l o n e O b j e c t ( D [ A ] ) ; } e l s e { F [ A ] = D [ A ] ; } } } } e l s e { F = D ; } } } r e t u r n   F ; } ; Y A H O O . r e g i s t e r ( " a u t o c o m p l e t e " , Y A H O O . w i d g e t . A u t o C o m p l e t e , { v e r s i o n : " 2 . 7 . 0 " , b u i l d : " 1 7 9 9 " } ) ; 
