ÿþf u n c t i o n   e x p a n d ( s , i d ) {  
         i d . c l a s s N a m e   =   " m e n u H o v e r " ;  
 }  
 f u n c t i o n   c o l l a p s e ( s , i d ) {  
         i d . c l a s s N a m e   =   " m e n u N o r m a l " ;  
 }  
 f u n c t i o n   d i s p l a y S u b s ( s , t h e _ s u b ) {  
         i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( t h e _ s u b ) . s t y l e . d i s p l a y = = " " ) {  
                 v a r   t d   =   s ;  
                 t d . c l a s s N a m e   =   " s u b 2 " ;  
                 d o c u m e n t . g e t E l e m e n t B y I d ( t h e _ s u b ) . s t y l e . d i s p l a y   =   " n o n e " ; r e t u r n  
         } e l s e {  
                 v a r   t d   =   s ;  
                 t d . c l a s s N a m e   =   " s u b 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 e _ s u b ) . s t y l e . d i s p l a y   =   " " ; r e t u r n  
         }  
 }  
 f u n c t i o n   t i m e I n f o ( ) {  
         i f   ( n a v i g a t o r . a p p N a m e = = " M i c r o s o f t   I n t e r n e t   E x p l o r e r " ) {  
                 v a r   m y d a t e = n e w   D a t e ( ) ;  
                 m y d a t e . s e t H o u r s ( m y d a t e . g e t H o u r 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 1 " ) . v a l u e = m y d a t e . g e t M o n t h ( ) + 1 + " / " + m y d a t e . g e t D a t e ( ) + " / " + m y d a t e . g e t F u l l Y e a r ( ) + "   " + m y d a t e . g e t H o u r s ( ) + " : " + m y d a t e . g e t M i n u t e s ( ) ;  
         }  
 } 
