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