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