þÿ / *   T h i s   l i t t l e   b i t   o f   j a v a   s c r i p t   h a n d l e s   t h e   s c r o l l i n g 
 o f   t h e   m a i n   c o n t e n t   e l e m e n t s   i n s i d e   t h e i r 
 c o n t a i n e r   c l i p p i n g   d i v ' s   * / 
 v a r   m o v e m e n t = 5 ;     / / p i x e l s 
 v a r   f r e q = 5 0 ;   / / m i l i   s e c o n d s 
 v a r   s c r o l l O b j ; 
 v a r   c o n t a i n e r O b j ; 
 
 f u n c t i o n   m o v e D o w n ( o b j ) { 
         i f ( o b j = = 1 ) { s c r o l l O b j = m a i n S c r o l l O b j ;   c o n t a i n e r O b j = m a i n C o n t a i n e r O b j ; } 
         i f ( o b j = = 2 ) { s c r o l l O b j = t o p S c r o l l O b j ;   c o n t a i n e r O b j = t o p C o n t a i n e r O b j ; } 
         
         i f   ( p a r s e I n t ( s c r o l l O b j . s t y l e . t o p ) > = ( s c r o l l O b j . o f f s e t H e i g h t - c o n t a i n e r O b j . o f f s e t H e i g h t ) * - 1 ) { 
                 s c r o l l O b j . s t y l e . t o p = ( p a r s e I n t ( s c r o l l O b j . s t y l e . t o p ) - m o v e m e n t ) + " p x " ; 
         }   
         m o v e D o w n V a r = s e t T i m e o u t ( " m o v e D o w n ( ) " , f r e q ) ; 
 } 
 
 f u n c t i o n   m o v e U p ( o b j ) {   
         i f ( o b j = = 1 )   s c r o l l O b j = m a i n S c r o l l O b j ; 
         i f ( o b j = = 2 )   s c r o l l O b j = t o p S c r o l l O b j ; 
 
         i f   ( p a r s e I n t ( s c r o l l O b j . s t y l e . t o p ) < = 0 ) {   
                 s c r o l l O b j . s t y l e . t o p = ( p a r s e I n t ( s c r o l l O b j . s t y l e . t o p ) + m o v e m e n t ) + " p x " ;   
         } 
         m o v e U p V a r = s e t T i m e o u t ( " m o v e U p ( ) " , f r e q ) ;   
 }
