ÿþi n m e n u = f a l s e ; 
 l a s t m e n u = 0 ; 
 
 f u n c t i o n   M e n u ( c u r r e n t )   { 
       i f   ( ! d o c u m e n t . g e t E l e m e n t B y I d )   r e t u r n ; 
       i n m e n u = t r u e ; 
       o l d m e n u = l a s t m e n u ; 
       l a s t m e n u = c u r r e n t ; 
       i f   ( o l d m e n u )   E r a s e ( o l d m e n u ) ; 
       m = d o c u m e n t . g e t E l e m e n t B y I d ( " m e n u - "   +   c u r r e n t ) ; 
       b o x = d o c u m e n t . g e t E l e m e n t B y I d ( c u r r e n t ) ; 
       b o x . s t y l e . l e f t =   m . o f f s e t L e f t ; 
       b o x . s t y l e . t o p =   m . o f f s e t T o p   +   m . o f f s e t H e i g h t ; 
       b o x . s t y l e . v i s i b i l i t y = " v i s i b l e " ; 
       m . s t y l e . b a c k g r o u n d C o l o r = " A q u a " ; 
       b o x . s t y l e . b a c k g r o u n d C o l o r = " A q u a " ; 
       b o x . s t y l e . w i d t h = " 1 0 8 p x " ; 
 } 
 
 f u n c t i o n   E r a s e ( c u r r e n t )   { 
       i f   ( ! d o c u m e n t . g e t E l e m e n t B y I d )   r e t u r n ; 
       i f   ( i n m e n u   & &   l a s t m e n u = = c u r r e n t )   { 
           r e t u r n ; 
       } 
       m = d o c u m e n t . g e t E l e m e n t B y I d ( " m e n u - "   +   c u r r e n t ) ; 
       b o x = d o c u m e n t . g e t E l e m e n t B y I d ( c u r r e n t ) ; 
       b o x . s t y l e . v i s i b i l i t y = " h i d d e n " ; 
       m . s t y l e . b a c k g r o u n d C o l o r = " S i l v e r " ; 
 } 
 
 f u n c t i o n   T i m e o u t ( c u r r e n t )   { 
       i n m e n u = f a l s e ; 
       w i n d o w . s e t T i m e o u t ( " E r a s e ( ' "   +   c u r r e n t   +   " ' ) " , 5 0 0 0 )   ; 
 } 
 
 f u n c t i o n   H i g h l i g h t ( m e n u , i t e m )   { 
       i f   ( ! d o c u m e n t . g e t E l e m e n t B y I d )   r e t u r n ; 
       i n m e n u = t r u e ; 
       l a s t m e n u = m e n u ; 
       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 ( i t e m ) ; 
       o b j . s t y l e . b a c k g r o u n d C o l o r = " S i l v e r " ; 
 } 
 
 f u n c t i o n   U n H i g h l i g h t ( m e n u , i t e m )   { 
       i f   ( ! d o c u m e n t . g e t E l e m e n t B y I d )   r e t u r n ; 
       T i m e o u t ( m e n u ) ; 
       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 ( i t e m ) ; 
       o b j . s t y l e . b a c k g r o u n d C o l o r = " A q u a " ; 
 } 
 
