ÿþf u n c t i o n   M y L o a d ( )   {  
         v a r   c h i l d r e n   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' u l N a v i g a t i o n ' ) . g e t E l e m e n t s B y T a g N a m e ( ' a ' ) ;  
  
         / / g e t   c u r r e n t   f i l e n a m e  
         v a r   T h i s F i l e   =   R e t u r n D o c u m e n t ( ) . t o L o w e r C a s e ( ) ;  
                  
         i f   ( T h i s F i l e   = =   ' ' )   {  
                 T h i s F i l e   =   ' d e f a u l t . a s p x '  
         }  
          
         / / g e t   t h e   n u m b e r   o f   c h i l d   e l e m e n t s   r e t r i e v e d  
         v a r   C h i l d L e n g t h   =   c h i l d r e n . l e n g t h ;  
         v a r   M y H r e f ;  
          
         / / l o o p   t h r o u g h   c h i l d   e l e m e n t s  
         f o r   ( v a r   i i = 0 ; i i < C h i l d L e n g t h ; i i + + )   {  
                 / / g e t   t h e   p a g e   t h a t   t h e   e l e m e n t   l i n k s   t o  
                 M y H r e f   =   c h i l d r e n [ i i ] . h r e f . t o L o w e r C a s e ( ) ;  
                 M y H r e f   =   M y H r e f . s u b s t r i n g ( M y H r e f . l a s t I n d e x O f ( ' / ' )   +   1 ) ;  
  
                 / / i f   t h e   p a g e   t h a t   t h e   e l e m e n t   l i n k s   t o   a n d   t h e   f i l e   n a m e   o f   t h e   a c t i v e  
                 / /   p a g e   a r e   t h e   s a m e   t h e n   c h a n g e   t h e   c o l o r   a n d   f o n t   w e i g h t  
                 i f   ( T h i s F i l e   = =   M y H r e f )   {  
                         v a r   P P P N o d e   =   c h i l d r e n [ i i ] . p a r e n t N o d e . p a r e n t N o d e . p a r e n t N o d e ;  
  
                         / / c h e c k   i f   a   s u b m e n u   i s   i n v o l v e d  
                         / / i f   n o t   a   s u b   m e n u   c l i c k e d   t h e n   s e t   t h e   c o l o u r   o f   t h e   c l i c k e d   a n c h o r  
                         i f   ( P P P N o d e . n o d e N a m e . t o L o w e r C a s e ( )   = =   ' d i v ' )   c h i l d r e n [ i i ] . s t y l e . c o l o r   =   ' # F D B 7 3 B ' ;  
                         / / i f   i s   s u b   m e n u   s e t   t h e   c l i c k e d   a n c h o r   t e x t   t   o   b o l d   a n d   t h e   p a r e n t   m e n u   c o l o u r  
                         e l s e   {  
                                 c h i l d r e n [ i i ] . s t y l e . b o r d e r L e f t   =   ' s o l i d   4 p x   # 0 0 0 ' ;  
                                 P P P N o d e . f i r s t C h i l d . s t y l e . c o l o r   =   ' # F D B 7 3 B ' ;  
                         }  
                         i i = C h i l d L e n g t h ;  
                 }  
         }  
 }  
  
  
 f u n c t i o n   R e t u r n D o c u m e n t ( )   {  
         v a r   f i l e _ n a m e   =   d o c u m e n t . l o c a t i o n . h r e f ;  
         v a r   e n d   =   ( f i l e _ n a m e . i n d e x O f ( " ? " )   = =   - 1 )   ?   f i l e _ n a m e . l e n g t h   :   f i l e _ n a m e . i n d e x O f ( " ? " ) ;  
         r e t u r n   f i l e _ n a m e . s u b s t r i n g ( f i l e _ n a m e . l a s t I n d e x O f ( " / " ) + 1 ,   e n d ) ;  
          
 }  
 
