ÿþl a s t S c r o l l Y   =   0 ;  
 f u n c t i o n   h e a r t B e a t ( ) {  
 v a r   d i f f Y ;  
 i f   ( d o c u m e n t . d o c u m e n t E l e m e n t   & &   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p )  
 d i f f Y   =   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p ;  
 e l s e   i f   ( d o c u m e n t . b o d y )  
 d i f f Y   =   d o c u m e n t . b o d y . s c r o l l T o p  
 e l s e  
 { / * N e t s c a p e   s t u f f * / }  
 / / a l e r t ( d i f f Y ) ;  
 p e r c e n t = . 1 * ( d i f f Y - l a s t S c r o l l Y ) ;  
 i f ( p e r c e n t > 0 ) p e r c e n t = M a t h . c e i l ( p e r c e n t ) ;  
 e l s e   p e r c e n t = M a t h . f l o o r ( p e r c e n t ) ;  
 d o c u m e n t . g e t E l e m e n t B y I d ( " l e f t D i v " ) . s t y l e . t o p   =   p a r s e I n t ( d o c u m e n t . g e t E l e m e n t B y I d ( " l e f t D i v " ) . s t y l e . t o p ) + p e r c e n 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 ( " r i g h t D i v " ) . s t y l e . t o p   =   p a r s e I n t ( d o c u m e n t . g e t E l e m e n t B y I d ( " r i g h t D i v " ) . s t y l e . t o p ) + p e r c e n t + " p x " ;  
 l a s t S c r o l l Y = l a s t S c r o l l Y + p e r c e n t ;  
 / / a l e r t ( l a s t S c r o l l Y ) ;  
 }  
 w i n d o w . s e t I n t e r v a l ( " h e a r t B e a t ( ) " , 1 ) ;  
 / / - - >  
 f u n c t i o n   c l o s e _ l e f t 1 ( ) {  
         l e f t 1 . s t y l e . v i s i b i l i t y = ' h i d d e n ' ;  
 }  
 f u n c t i o n   c l o s e _ l e f t 2 ( ) {  
         l e f t 2 . s t y l e . v i s i b i l i t y = ' h i d d e n ' ;  
 }  
 f u n c t i o n   c l o s e _ r i g h t 1 ( ) {  
         r i g h t 1 . s t y l e . v i s i b i l i t y = ' h i d d e n ' ;  
 }  
 f u n c t i o n   c l o s e _ r i g h t 2 ( ) {  
         r i g h t 2 . s t y l e . v i s i b i l i t y = ' h i d d e n ' ;  
 }  
 d o c u m e n t . w r i t e l n ( " < s t y l e   t y p e = \ " t e x t \ / c s s \ " > " ) ;  
 d o c u m e n t . w r i t e l n ( " # l e f t D i v , # r i g h t D i v { w i d t h : 1 0 0 p x ; h e i g h t : 1 0 0 p x ; p o s i t i o n : a b s o l u t e ; } " ) ;  
 d o c u m e n t . w r i t e l n ( " . i t e m F l o a t { w i d t h : 9 0 p x ; h e i g h t : a u t o ; l i n e - h e i g h t : 5 p x } " ) ;  
 d o c u m e n t . w r i t e l n ( " < \ / s t y l e > " ) ;  
 d o c u m e n t . w r i t e l n ( " < d i v   i d = \ " l e f t D i v \ "   s t y l e = \ " t o p : 1 p x ; l e f t : - 1 0 p x \ " > " ) ;  
 d o c u m e n t . w r i t e l n ( " < d i v   i d = \ " l e f t 1 \ "   c l a s s = \ " i t e m F l o a t \ " > " ) ;  
 d o c u m e n t . w r i t e l n ( " < a   t a r g e t = _ b l a n k   h r e f = . . / j t c _ c n s i m / i n d e x . a s p > < i m g   b o r d e r = 0   s r c = d l 4 . g i f > < / a > " ) ;  
 d o c u m e n t . w r i t e l n ( " < \ / d i v > " ) ;  
 d o c u m e n t . w r i t e l n ( " < \ / d i v > " ) ;  
 d o c u m e n t . w r i t e l n ( " < d i v   i d = \ " r i g h t D i v \ "   s t y l e = \ " t o p : 1 p x ; r i g h t : - 1 0 p x \ " > " ) ;  
 d o c u m e n t . w r i t e l n ( " < d i v   i d = \ " r i g h t 1 \ "   c l a s s = \ " i t e m F l o a t \ " > " ) ;  
 d o c u m e n t . w r i t e l n ( " < a   t a r g e t = _ b l a n k   h r e f = ' . . / j t c _ e n / s h o p / d e t a l o . a s p ? h w _ i d = 2 8 7 2 ' > < i m g   b o r d e r = 0   s r c = d l 1 . g i f > < / a > " ) ;  
 d o c u m e n t . w r i t e l n ( " < b r > < a   h r e f = \ " j a v a s c r i p t : c l o s e _ r i g h t 1 ( ) ; \ "   t i t l e = \ " C l o s e   i t ! \ " > C L O S E < \ / a > < b r > < b r > < b r > < b r > " ) ;  
 d o c u m e n t . w r i t e l n ( " < \ / d i v > " ) ;  
 / / - - - R 2  
 d o c u m e n t . w r i t e l n ( " < d i v   i d = \ " r i g h t 2 \ "   c l a s s = \ " i t e m F l o a t \ " > " ) ;  
 d o c u m e n t . w r i t e l n ( " < a   t a r g e t = _ b l a n k   h r e f = ' . . / j t c _ e n / s h o p / d e t a l o . a s p ? h w _ i d = 2 8 8 7 ' > < i m g   b o r d e r = 0   s r c = d l 3 . g i f > < / a > " ) ;  
 d o c u m e n t . w r i t e l n ( " < b r > < a   h r e f = \ " j a v a s c r i p t : c l o s e _ r i g h t 2 ( ) ; \ "   t i t l e = \ " C l o s e   i t ! \ " > C L O S E < \ / a > " ) ;  
 d o c u m e n t . w r i t e l n ( " < \ / d i v > " ) ;  
 d o c u m e n t . w r i t e l n ( " < \ / d i v > " ) ;  
 
