ÿþi f   ( i e n s 6 ) {  
 v a r   c r o s s o b j = d o c u m e n t . g e t E l e m e n t B y I d ?   d o c u m e n t . g e t E l e m e n t B y I d ( " c o n t e n t " )   :   d o c u m e n t . a l l . c o n t e n t  
 v a r   c o n t e n t h e i g h t = c r o s s o b j . o f f s e t H e i g h t  
 }  
 e l s e   i f   ( n s 4 ) {  
 v a r   c r o s s o b j = d o c u m e n t . n s c o n t a i n e r . d o c u m e n t . n s c o n t e n t  
 v a r   c o n t e n t h e i g h t = c r o s s o b j . c l i p . h e i g h t  
 }  
  
 f u n c t i o n   m o v e d o w n ( ) {  
 i f   ( i e n s 6 & & p a r s e I n t ( c r o s s o b j . s t y l e . t o p ) > = ( c o n t e n t h e i g h t * ( - 1 ) + 1 0 0 ) )  
 c r o s s o b j . s t y l e . t o p = p a r s e I n t ( c r o s s o b j . s t y l e . t o p ) - s p e e d  
 e l s e   i f   ( n s 4 & & c r o s s o b j . t o p > = ( c o n t e n t h e i g h t * ( - 1 ) + 1 0 0 ) )  
 c r o s s o b j . t o p - = s p e e d  
 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 ( ) " , 1 0 0 )  
 }  
  
 f u n c t i o n   m o v e u p ( ) {  
 i f   ( i e n s 6 & & p a r s e I n t ( c r o s s o b j . s t y l e . t o p ) < = 0 )  
 c r o s s o b j . s t y l e . t o p = p a r s e I n t ( c r o s s o b j . s t y l e . t o p ) + s p e e d  
 e l s e   i f   ( n s 4 & & c r o s s o b j . t o p < = 0 )  
 c r o s s o b j . t o p + = s p e e d  
 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 ( ) " , 1 0 0 )  
  
 }  
  
 f u n c t i o n   g e t c o n t e n t _ h e i g h t ( ) {  
 i f   ( i e n s 6 )  
 c o n t e n t h e i g h t = c r o s s o b j . o f f s e t H e i g h t  
 e l s e   i f   ( n s 4 )  
 d o c u m e n t . n s c o n t a i n e r . d o c u m e n t . n s c o n t e n t . v i s i b i l i t y = " s h o w "  
 }  
 w i n d o w . o n l o a d = g e t c o n t e n t _ h e i g h t  
 
