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