ÿþf u n c t i o n   r e v e r s e S t a t e ( i d )  
 {  
         v a r   d e s c r i p t i o n   =   d o c u m e n t . g e t E l e m e n t B y I d ( i d ) ;  
         v a r   i m a g e 1   =   d o c u m e n t . g e t E l e m e n t B y I d ( i d   +   " I m a g e 1 " ) ;  
         v a r   i m a g e 2   =   d o c u m e n t . g e t E l e m e n t B y I d ( i d   +   " I m a g e 2 " ) ;  
         v a r   b u t t o n 1   =   d o c u m e n t . g e t E l e m e n t B y I d ( i d   +   " B u t t o n 1 " ) ;  
         v a r   b u t t o n 2   =   d o c u m e n t . g e t E l e m e n t B y I d ( i d   +   " B u t t o n 2 " ) ;  
          
         i f   ( ( " n o n e "   = =   d e s c r i p t i o n . s t y l e . d i s p l a y )  
                 | |   ( " "   = =   d e s c r i p t i o n . s t y l e . d i s p l a y ) )  
         {  
                 d e s c r i p t i o n . s t y l e . d i s p l a y   =   " i n l i n e " ;  
                 i m a g e 1 . s r c   =   i m a g e 2 . s r c   =   i m a g e 1 . s r c . r e p l a c e ( " d o w n . g i f " ,   " u p . g i f " ) ;  
                 b u t t o n 2 . i n n e r H T M L   =   " áÒÕè  äÙèÕØ" ;  
                 b u t t o n 1 . s t y l e . d i s p l a y   =   " n o n e " ;  
                 i m a g e 1 . s t y l e . d i s p l a y   =   " n o n e " ;  
         }  
         e l s e  
         {  
                 b u t t o n 1 . s t y l e . d i s p l a y   =   " " ;  
                 i m a g e 1 . s t y l e . d i s p l a y   =   " " ;  
                 d e s c r i p t i o n . s t y l e . d i s p l a y   =   " n o n e " ;  
                 i m a g e 1 . s r c   =   i m a g e 2 . s r c   =   i m a g e 1 . s r c . r e p l a c e ( " u p . g i f " ,   " d o w n . g i f " ) ;  
               / /   b u t t o n 1 . i n n e r H T M L   =   b u t t o n 2 . i n n e r H T M L   =   " äê×  äÙèÕØ  àÕáã" ;  
         }  
 }  
  
 f u n c t i o n   o p e n C l o s e ( i d ,   o p e n )  
 {  
         v a r   d e s c r i p t i o n   =   d o c u m e n t . g e t E l e m e n t B y I d ( i d ) ;  
         v a r   i m a g e 1   =   d o c u m e n t . g e t E l e m e n t B y I d ( i d   +   " I m a g e 1 " ) ;  
         v a r   i m a g e 2   =   d o c u m e n t . g e t E l e m e n t B y I d ( i d   +   " I m a g e 2 " ) ;  
         v a r   b u t t o n 1   =   d o c u m e n t . g e t E l e m e n t B y I d ( i d   +   " B u t t o n 1 " ) ;  
         v a r   b u t t o n 2   =   d o c u m e n t . g e t E l e m e n t B y I d ( i d   +   " B u t t o n 2 " ) ;  
          
         i f   ( t r u e   = =   o p e n )  
         {  
                 d e s c r i p t i o n . s t y l e . d i s p l a y   =   " i n l i n e " ;  
                 i m a g e 1 . s r c   =   i m a g e 2 . s r c   =   i m a g e 1 . s r c . r e p l a c e ( " d o w n . g i f " ,   " u p . g i f " ) ;  
                 b u t t o n 1 . i n n e r H T M L   =   b u t t o n 2 . i n n e r H T M L   =   " áÒÕè  äÙèÕØ" ;  
         }  
         e l s e  
         {  
                 d e s c r i p t i o n . s t y l e . d i s p l a y   =   " n o n e " ;  
                 i m a g e 1 . s r c   =   i m a g e 2 . s r c   =   i m a g e 1 . s r c . r e p l a c e ( " u p . g i f " ,   " d o w n . g i f " ) ;  
                 b u t t o n 1 . i n n e r H T M L   =   b u t t o n 2 . i n n e r H T M L   =   " äê×  äÙèÕØ  àÕáã" ;  
         }  
 }  
  
  
 f u n c t i o n   o p e n A l l ( )  
 {  
         v a r   i m a g e   =   d o c u m e n t . g e t E l e m e n t B y I d ( " o p e n A l l I m a g e " ) ;  
         v a r   b u t t o n   =   d o c u m e n t . g e t E l e m e n t B y I d ( " o p e n A l l B u t t o n " ) ;  
         v a r   o p e n   =   t r u e ;  
          
         i f   ( 0   < =   i m a g e . s r c . i n d e x O f ( " d o w n . g i f " ) )  
         {  
                 i m a g e . s r c   =   i m a g e . s r c . r e p l a c e ( " d o w n . g i f " ,   " u p . g i f " ) ;  
                 b u t t o n . i n n e r H T M L   =   " áÒÕè  Ðê  ÛÜ  ÔäÙèÕØÙÝ" ;  
         }  
         e l s e  
         {  
                 o p e n   =   f a l s e ;  
                 i m a g e . s r c   =   i m a g e . s r c . r e p l a c e ( " u p . g i f " ,   " d o w n . g i f " ) ;  
                 b u t t o n . i n n e r H T M L   =   " äê×  Ðê  ÛÜ  äÙèÕØÙ  ÑêÙ  Ôáäè" ;  
         }  
          
         o p e n C l o s e ( " w a l l s t r e e t D e s c r i p t i o n " ,   o p e n ) ;  
         o p e n C l o s e ( " e t e a c h e r D e s c r i p t i o n " ,   o p e n ) ;  
         o p e n C l o s e ( " b e r l i t z D e s c r i p t i o n " ,   o p e n ) ;  
         o p e n C l o s e ( " d i a l o g D e s c r i p t i o n " ,   o p e n ) ;  
         o p e n C l o s e ( " g l o b a l o n e D e s c r i p t i o n " ,   o p e n ) ;  
 } 
