ÿþc u r r e n t A r e a   =   0 ;  
 p n l C o n t a c t D o n e   =   ' ' ;  
 p n l C o n t a c t N o r m a l   =   ' ' ;  
  
 f u n c t i o n   S h o w S e r v i c e A r e a ( a n c I t e m , i d )  
 {  
         / * f i n d   p r e v i o u s   i t e m s   a n d   d i s a b l e   t h e m   * /  
         v a r   d i v P r e v i o u s A r e a   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' d i v F a q ' + c u r r e n t A r e a ) ;  
          
         i f   ( d i v P r e v i o u s A r e a   ! =   n u l l )  
                 d i v P r e v i o u s A r e a . c l a s s N a m e   =   ' d i v S e r v i c e A r e a I n v i s i b l e ' ;        
          
         / *   e n a b l e   n e w   s e l e c t i o n   * /  
         v a r   d i v N e w A r e a   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' d i v F a q ' + i d ) ;  
          
         i f   ( d i v N e w A r e a   ! =   n u l l )  
                 d i v N e w A r e a . c l a s s N a m e   =   ' d i v S e r v i c e A r e a V i s i b l e ' ;        
          
         i f   ( a n c I t e m   ! =   n u l l )  
                 a n c I t e m . c l a s s N a m e   =   ' s p n S e r v i c e I t e m S e l e c t e d ' ;          
          
         c u r r e n t A r e a   =   i d ;          
          
         i f ( p n l C o n t a c t D o n e   ! =   ' '   & &   p n l C o n t a c t N o r m a l   ! =   ' ' )  
         {  
             d o c u m e n t . g e t E l e m e n t B y I d ( p n l C o n t a c t D o n e ) . s t y l e . d i s p l a y   =   ' n o n e ' ;  
             d o c u m e n t . g e t E l e m e n t B y I d ( p n l C o n t a c t N o r m a l ) . s t y l e . d i s p l a y   =   ' ' ;  
             p n l C o n t a c t D o n e   =   ' ' ;  
             p n l C o n t a c t N o r m a l   =   ' ' ;  
         }    
 }  
  
 f u n c t i o n   S e t V i s i b l e P a g e ( p a g e ,   p n l D o n e ,   p n l N o r m a l ) {  
         i f ( p a g e   = =   ' c o n t a c t ' )  
         {  
                 S h o w S e r v i c e A r e a ( d o c u m e n t . g e t E l e m e n t B y I d ( ' s p n A r e a 3 5 ' ) , ' 3 5 ' ) ;  
                 i f ( p n l D o n e   ! =   ' '   & &   p n l N o r m a l   ! =   ' ' )  
                 {  
                         d o c u m e n t . g e t E l e m e n t B y I d ( p n l D o n e ) . s t y l e . d i s p l a y = ' ' ;  
                         d o c u m e n t . g e t E l e m e n t B y I d ( p n l N o r m a l ) . s t y l e . d i s p l a y = ' n o n e ' ;  
                          
                         p n l C o n t a c t D o n e   =   p n l D o n e ;  
                         p n l C o n t a c t N o r m a l   =   p n l N o r m a l ;  
                 }  
         }    
 }  
  
 / *   J a r v i s   f u n c t i o n   f o r   s l i d e t o g g l e   * /  
 f u n c t i o n   t o g g l e ( r )  
 {  
         $ ( " # a n s w e r _ " + r ) . s l i d e T o g g l e ( ) ;  
 }     
