ÿþ 
 f u n c t i o n   t o g g l e D i v ( i d , h i d e T a b )  
 {  
  
 	 i f ( h i d e T a b   ! = " " )  
 	 {  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( h i d e T a b ) . c l a s s N a m e = ' h i d d e n '  
 	 }  
 	  
 	 i f ( d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . c l a s s N a m e = = ' h i d d e 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 ) . c l a s s N a m e = ' v i s i b l e '  
 	 }  
 	 e l s e  
 	 {  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . c l a s s N a m e = ' h i d d e n '  
 	 } 	  
 }  
  
 f u n c t i o n   t o g g l e M e n u ( i d )  
 {  
  
 	 i f ( d o c u m e n t . g e t E l e m e n t B y I d ( ' n a v - '   +   i d ) . s r c = = ' h t t p : / / s a t / p r o j e c t s / f a e g r e / i m a g e s / n a v / '   +   i d   +   ' - o f f . g i f ' )  
 	 {  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' n a v - '   +   i d ) . s r c = ' i m a g e s / n a v / '   +   i d   +   ' - o n . g i f ' ;  
 	 }  
 	 e l s e  
 	 {  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' n a v - '   +   i d ) . s r c = ' i m a g e s / n a v / '   +   i d   +   ' - o f f . g i f ' ;  
 	 } 	  
 	  
 }  
  
 f u n c t i o n   n e w I m a g e ( a r g )   {  
 	 i f   ( d o c u m e n t . i m a g e s )   {  
 	 	 r s l t   =   n e w   I m a g e ( ) ;  
 	 	 r s l t . s r c   =   a r g ;  
 	 	 r e t u r n   r s l t ;  
 	 }  
 }  
  
 f u n c t i o n   c h a n g e I m a g e s ( )   {  
 	 i f   ( d o c u m e n t . i m a g e s   & &   ( p r e l o a d F l a g   = =   t r u e ) )   {  
 	 	 f o r   ( v a r   i = 0 ;   i < c h a n g e I m a g e s . a r g u m e n t s . l e n g t h ;   i + = 2 )   {  
 	 	 	 d o c u m e n t [ c h a n g e I m a g e s . a r g u m e n t s [ i ] ] . s r c   =   c h a n g e I m a g e s . a r g u m e n t s [ i + 1 ] ;  
 	 	 }  
 	 }  
 }  
  
 v a r   p r e l o a d F l a g   =   f a l s e ;  
 f u n c t i o n   p r e l o a d I m a g e s ( )   {  
 	 i f   ( d o c u m e n t . i m a g e s )   {  
 	 	 n a v _ c o n t a c t _ m e d i a _ 0 1 _ o v e r   =   n e w I m a g e ( " i m a g e s / n a v - c o n t a c t - m e d i a _ 0 1 - o v e r . g i f " ) ;  
 	 	 n a v _ c o n t a c t _ m e d i a _ 0 2 _ o v e r   =   n e w I m a g e ( " i m a g e s / n a v - c o n t a c t - m e d i a _ 0 2 - o v e r . g i f " ) ;  
 	 	 p r e l o a d F l a g   =   t r u e ;  
 	 }  
 }  
  
 / /   a d d   e n t e r - t o - s u b m i t   f u n c t i o n a l i t y   t o   a n   e l e m e n t  
 / /   p a s s   i n   t h e   e l e m e n t   y o u   w i s h   t o   b e   ' c l i c k e d '   w h e n   e n t e r   i s   p r e s s e d  
 j Q u e r y . f n . s a t E n t e r S u b m i t   =   f u n c t i o n   ( s u b m i t e l e m e n t )   {  
         j Q u e r y ( t h i s ) . k e y p r e s s ( f u n c t i o n   ( e )   {  
                 i f   ( e . k e y C o d e   = =   1 3 )   {  
                         i f   ( j Q u e r y ( s u b m i t e l e m e n t ) . i s ( ' a ' )   & &   j Q u e r y ( s u b m i t e l e m e n t ) . a t t r ( ' h r e f ' ) . i n d e x O f ( ' j a v a s c r i p t : _ _ d o P o s t B a c k ( ' ) = = 0 )   {  
                                 / /   P O S T B A C K   L I N K   C L I C K S !  
                                 e v a l ( j Q u e r y ( s u b m i t e l e m e n t ) . a t t r ( ' h r e f ' ) ) ;  
                         }   e l s e   {  
                                 j Q u e r y ( s u b m i t e l e m e n t ) . c l i c k ( ) ;  
                         }  
                         r e t u r n   f a l s e ;  
                 }  
         } ) ;  
         r e t u r n   j Q u e r y ( t h i s ) ;  
 } ;  
 
