ÿþ/ /   f i l e   j s _ m e n u _ p h p . j s   	 - 	 M i t t w o c h ,   7 .   J u l i   2 0 0 4  
 < ! - -  
 v a r   a c t i v e B u t t o n   =   0 ;  
 f u n c t i o n   M M _ r e l o a d P a g e ( i n i t )   {     / / r e l o a d s   t h e   w i n d o w   i f   N a v 4   r e s i z e d  
     i f   ( i n i t = = t r u e )   w i t h   ( n a v i g a t o r )   { i f   ( ( a p p N a m e = = " N e t s c a p e " ) & & ( p a r s e I n t ( a p p V e r s i o n ) = = 4 ) )   {  
         d o c u m e n t . M M _ p g W = i n n e r W i d t h ;   d o c u m e n t . M M _ p g H = i n n e r H e i g h t ;   o n r e s i z e = M M _ r e l o a d P a g e ;   } }  
     e l s e   i f   ( i n n e r W i d t h ! = d o c u m e n t . M M _ p g W   | |   i n n e r H e i g h t ! = d o c u m e n t . M M _ p g H )   l o c a t i o n . r e l o a d ( ) ;  
 }  
  
 M M _ r e l o a d P a g e ( t r u e ) ;  
  
 f u n c t i o n   M M _ f i n d O b j ( n ,   d )   {   / / v 4 . 0  
     v a r   p , i , x ;     i f ( ! d )   d = d o c u m e n t ;   i f ( ( p = n . i n d e x O f ( " ? " ) ) > 0 & & p a r e n t . f r a m e s . l e n g t h )   {  
         d = p a r e n t . f r a m e s [ n . s u b s t r i n g ( p + 1 ) ] . d o c u m e n t ;   n = n . s u b s t r i n g ( 0 , p ) ; }  
     i f ( ! ( x = d [ n ] ) & & d . a l l )   x = d . a l l [ n ] ;   f o r   ( i = 0 ; ! x & & i < d . f o r m s . l e n g t h ; i + + )   x = d . f o r m s [ i ] [ n ] ;  
     f o r ( i = 0 ; ! x & & d . l a y e r s & & i < d . l a y e r s . l e n g t h ; i + + )   x = M M _ f i n d O b j ( n , d . l a y e r s [ i ] . d o c u m e n t ) ;  
     i f ( ! x   & &   d o c u m e n t . g e t E l e m e n t B y I d )   x = d o c u m e n t . g e t E l e m e n t B y I d ( n ) ;   r e t u r n   x ;  
 }  
  
 f u n c t i o n   M M _ s h o w H i d e L a y e r s ( )   {   / / v 3 . 0  
     v a r   i , p , v , o b j , a r g s = M M _ s h o w H i d e L a y e r s . a r g u m e n t s ;  
     f o r   ( i = 0 ;   i < ( a r g s . l e n g t h - 2 ) ;   i + = 3 )   i f   ( ( o b j = M M _ f i n d O b j ( a r g s [ i ] ) ) ! = n u l l )   {   v = a r g s [ i + 2 ] ;  
         i f   ( o b j . s t y l e )   {   o b j = o b j . s t y l e ;   v = ( v = = ' s h o w ' ) ? ' v i s i b l e ' : ( v = ' h i d e ' ) ? ' h i d d e n ' : v ;   }  
         o b j . v i s i b i l i t y = v ;   }  
 }  
  
 f u n c t i o n   a c t ( c u r r e n t B u t t o n ,   e v e n t N r )   {  
     / /   o v e r  
     i f   ( e v e n t N r   = =   1 )   {  
         i f   ( a c t i v e B u t t o n   ! =   c u r r e n t B u t t o n )   {  
                     M M _ s h o w H i d e L a y e r s ( ' B u t ' +   c u r r e n t B u t t o n   + ' a ' , ' ' , ' h i d e ' , ' B u t ' +   c u r r e n t B u t t o n   + ' b ' , ' ' , ' s h o w ' , ' B u t ' +   c u r r e n t B u t t o n   + ' c ' , ' ' , ' h i d e ' ) ;  
                     M M _ s h o w H i d e L a y e r s ( ' t e x t ' +   c u r r e n t B u t t o n   + ' a ' , ' ' , ' h i d e ' , ' t e x t ' +   c u r r e n t B u t t o n   + ' b ' , ' ' , ' s h o w ' , ' t e x t ' +   c u r r e n t B u t t o n   + ' c ' , ' ' , ' h i d e ' ) ;  
         }  
     }  
  
     / /   o u t  
  
     i f   ( e v e n t N r   = =   2 )   {  
         i f   ( a c t i v e B u t t o n   ! =   c u r r e n t B u t t o n )   {  
                     M M _ s h o w H i d e L a y e r s ( ' B u t ' +   c u r r e n t B u t t o n   + ' a ' , ' ' , ' s h o w ' , ' B u t ' +   c u r r e n t B u t t o n   + ' b ' , ' ' , ' h i d e ' , ' B u t ' +   c u r r e n t B u t t o n   + ' c ' , ' ' , ' h i d e ' ) ;  
                     M M _ s h o w H i d e L a y e r s ( ' t e x t ' +   c u r r e n t B u t t o n   + ' a ' , ' ' , ' s h o w ' , ' t e x t ' +   c u r r e n t B u t t o n   + ' b ' , ' ' , ' h i d e ' , ' t e x t ' +   c u r r e n t B u t t o n   + ' c ' , ' ' , ' h i d e ' ) ;  
       }  
     }  
  
     / /   c l i c k  
     i f   ( e v e n t N r   = =   3 )   {  
                         M M _ s h o w H i d e L a y e r s ( ' B u t ' +   a c t i v e B u t t o n   + ' a ' , ' ' , ' s h o w ' , ' t e x t ' +   a c t i v e B u t t o n   + ' a ' , ' ' , ' s h o w ' ) ;  
                     M M _ s h o w H i d e L a y e r s ( ' B u t ' +   a c t i v e B u t t o n   + ' c ' , ' ' , ' h i d e ' , ' t e x t ' +   a c t i v e B u t t o n   + ' c ' , ' ' , ' h i d e ' ) ;  
                     M M _ s h o w H i d e L a y e r s ( ' B u t ' +   c u r r e n t B u t t o n   + ' a ' , ' ' , ' h i d e ' , ' B u t ' +   c u r r e n t B u t t o n   + ' b ' , ' ' , ' h i d e ' , ' B u t ' +   c u r r e n t B u t t o n   + ' c ' , ' ' , ' s h o w ' ) ;  
                     M M _ s h o w H i d e L a y e r s ( ' t e x t ' +   c u r r e n t B u t t o n   + ' a ' , ' ' , ' h i d e ' , ' t e x t ' +   c u r r e n t B u t t o n   + ' b ' , ' ' , ' h i d e ' , ' t e x t ' +   c u r r e n t B u t t o n   + ' c ' , ' ' , ' s h o w ' ) ;  
                     a c t i v e B u t t o n   =   c u r r e n t B u t t o n ;  
     }  
 }  
 / /   - - >  
 
