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