< ! - -  
 v a r   F l o a t i n g   =   f u n c t i o n ( m y n a m e )   {  
 / /   O6RvCQ }ؘR0 
  
         v a r   n e w _ o b j   =   n e w   O b j e c t ( ) ;  
         n e w _ o b j . n a m e                           =   ( m y n a m e = = n u l l ? " " : m y n a m e ) ;       / /   [aT 
         n e w _ o b j . f l o a t i n g D e l a y         =   3 0 ;                                                   / /   ؘR^e 
         n e w _ o b j . f l o a t i n g E l e m e n t s   =   n e w   A r r a y ( ) ;                                 / /   ؘRCQ }pe~ 
          
         n e w _ o b j . a d d _ f l o a t i n g E l e m e n t   =   f u n c t i o n ( e ,   t ,   l )                             / /   mR N*NؘRCQ }v^OKNNc[MOnY _YؘR0 
         {  
                 v a r   f _ o b j   =   n e w   O b j e c t ( ) ;  
                 f _ o b j . r o o t                         =   e ;                                               / /   ؘRCQ } 
                 f _ o b j . f l o a t i n g S t e p         =   1 ;                                               / /   k!kvؘRP } 
                 f _ o b j . f l o a t i n g T o p           =   ( t = = n u l l | | t < 0 ? 0 : t ) ;             / /   S_MRݍvP } 
                 f _ o b j . f l o a t i n g L e f t         =   ( l = = n u l l | | l < 0 ? 0 : l ) ;             / /   S_MRݍ]P } 
                 f _ o b j . t o p D i r e c t i o n         =   1 ;                                               / /   WvؘReT 
                 f _ o b j . l e f t D i r e c t i o n       =   1 ;                                               / /   4ls^ؘReT 
                 f _ o b j . f l o a t i n g O b j e c t     =   n u l l ;                                         / /   ؘR[a 
                
                 f _ o b j . o p e n   =   f u n c t i o n ( )               / /   Sb _>f:y	S_MRCQ }ؘR 
                 {  
                         t h i s . r o o t . s t y l e . d i s p l a y   =   " b l o c k " ;  
                 }  
                 f _ o b j . c l o s e   =   f u n c t i o n ( )             / /   sQυ	S_MRCQ }ؘRv^\PbkؘR0 
                 {  
                         t h i s . r o o t . s t y l e . d i s p l a y   =   " n o n e " ;  
                         t h i s . s t o p ( ) ;  
                 }  
                 f _ o b j . s t o p   =   f u n c t i o n ( )             / /   \PbkS_MRCQ }ؘR 
                 {  
                         i f   ( t h i s . f l o a t i n g O b j e c t )    
                         {  
                                 c l e a r I n t e r v a l ( t h i s . f l o a t i n g O b j e c t ) ;  
                                 t h i s . f l o a t i n g O b j e c t   =   n u l l ;  
                         }  
                 }  
                 f _ o b j . f l o a t i n g   =   f u n c t i o n ( )         / /   S_MRCQ }ؘR N!k 
                 {  
                         v a r   m a x _ w   =   d o c u m e n t . b o d y . c l i e n t W i d t h ;  
                         v a r   m a x _ h   =   d o c u m e n t . b o d y . c l i e n t H e i g h t ;  
                         v a r   w   =   t h i s . r o o t . o f f s e t W i d t h ;  
                         v a r   h   =   t h i s . r o o t . o f f s e t H e i g h t ;  
                         t h i s . f l o a t i n g T o p     + =   t h i s . t o p D i r e c t i o n     *   t h i s . f l o a t i n g S t e p ;  
                         t h i s . f l o a t i n g L e f t   + =   t h i s . l e f t D i r e c t i o n   *   t h i s . f l o a t i n g S t e p ;  
                         i f   ( t h i s . f l o a t i n g T o p > = m a x _ h - h )  
                         {  
                                 t h i s . f l o a t i n g T o p   =   m a x _ h   -   h ;  
                                 t h i s . t o p D i r e c t i o n   =   - 1 ;  
                         }  
                         i f   ( t h i s . f l o a t i n g T o p < 0 )  
                         {  
                                 t h i s . f l o a t i n g T o p   =   0 ;  
                                 t h i s . t o p D i r e c t i o n   =   1 ;  
                         }  
                         i f   ( t h i s . f l o a t i n g L e f t > = m a x _ w - w )  
                         {  
                                 t h i s . f l o a t i n g L e f t   =   m a x _ w   -   w ;  
                                 t h i s . l e f t D i r e c t i o n   =   - 1 ;  
                         }  
                         i f   ( t h i s . f l o a t i n g L e f t < 0 )  
                         {  
                                 t h i s . f l o a t i n g L e f t   =   0 ;  
                                 t h i s . l e f t D i r e c t i o n   =   1 ;  
                         }  
                         t h i s . r o o t . s t y l e . t o p     =   t h i s . f l o a t i n g T o p     +   d o c u m e n t . b o d y . s c r o l l T o p ;  
                         t h i s . r o o t . s t y l e . l e f t   =   t h i s . f l o a t i n g L e f t   +   d o c u m e n t . b o d y . s c r o l l L e f t ;  
                 }  
                  
                 f _ o b j . r o o t . s t y l e . d i s p l a y   =   " b l o c k " ;  
                 f _ o b j . r o o t . s t y l e . p o s i t i o n   =   " a b s o l u t e " ;  
                 f _ o b j . f l o a t i n g O b j e c t     =   s e t I n t e r v a l ( t h i s . n a m e + " . f l o a t i n g E l e m e n t s [ " + t h i s . f l o a t i n g E l e m e n t s . l e n g t h + " ] . f l o a t i n g ( ) " ,   t h i s . f l o a t i n g D e l a y ) ;  
                 t h i s . f l o a t i n g E l e m e n t s [ t h i s . f l o a t i n g E l e m e n t s . l e n g t h ]   =   f _ o b j ;  
         }  
         n e w _ o b j . o p e n   =   f u n c t i o n ( n )         / /   Sb _>f:y	c[ؘRCQ }v^/TRؘR0 
         {  
                 i f   ( n > = 0   & &   n < t h i s . f l o a t i n g E l e m e n t s . l e n g t h )  
                 {  
                         t h i s . f l o a t i n g E l e m e n t s [ n ] . o p e n ( ) ;  
                         t h i s . s t a r t ( n ) ;  
                 }  
         }  
         n e w _ o b j . c l o s e   =   f u n c t i o n ( n )         / /   sQυ	c[ؘRCQ } 
         {  
                 i f   ( n > = 0   & &   n < t h i s . f l o a t i n g E l e m e n t s . l e n g t h )  
                 {  
                         t h i s . f l o a t i n g E l e m e n t s [ n ] . c l o s e ( ) ;  
                 }  
         }  
         n e w _ o b j . s t a r t   =   f u n c t i o n ( n )         / /   ؘRc[CQ } 
         {  
                 i f   ( n > = 0   & &   n < t h i s . f l o a t i n g E l e m e n t s . l e n g t h )  
                 {  
                         i f   ( t h i s . f l o a t i n g E l e m e n t s [ n ] . f l o a t i n g O b j e c t = = n u l l )  
                         {  
                                 t h i s . f l o a t i n g E l e m e n t s [ n ] . f l o a t i n g O b j e c t   =   s e t I n t e r v a l ( t h i s . n a m e + " . f l o a t i n g E l e m e n t s [ " + n + " ] . f l o a t i n g ( ) " ,   t h i s . f l o a t i n g D e l a y ) ;  
                         }  
                 }  
         }  
         n e w _ o b j . s t o p   =   f u n c t i o n ( n )         / /   \Pbkc[CQ }ؘR 
         {  
                 i f   ( n > = 0   & &   n < t h i s . f l o a t i n g E l e m e n t s . l e n g t h )  
                 {  
                         t h i s . f l o a t i n g E l e m e n t s [ n ] . s t o p ( ) ;  
                 }  
         }  
  
         i f   ( n e w _ o b j . n a m e ! = " " )   { e v a l ( n e w _ o b j . n a m e + " = n e w _ o b j " ) ; }  
         r e t u r n   n e w _ o b j ;  
 }  
  
 / / - - > 
