ÿþw i n d o w . o n l o a d   =   f u n c t i o n ( )   { 
     n e w   M a i n N a v W r a p p e r ( ' B u t t o m N a v M a i n ' ) ; 
     
     / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
     / /   M A I N   N A V 
     v a r   o N a v M a i n   =   M a i n N a v W r a p p e r . i n s t a n c e s . B u t t o m N a v M a i n ; 
     L o a d M e n u ( o N a v M a i n ) ; 
     / / o n l y   a p p l i e s   t o   p r o d u c t   f i n d e r   p a g e s 
                                                 i f   ( d o c u m e n t . d r o p d o w n )   { 
                                                                         i f   ( d o c u m e n t . d r o p d o w n . P r o d u c t [ 0 ] . c h e c k e d   = =   t r u e )   { 
                                                                         t o g g l e D i v ( ' P r o d u c t F i n d e r C o n t a i n e r ' , 1 ) ; 
                                                                         t o g g l e D i v ( ' D i s e a s e F i n d e r C o n t a i n e r ' , 0 ) ; 
                                                                         } 
                                                                         e l s e   { 
                                                                         t o g g l e D i v ( ' P r o d u c t F i n d e r C o n t a i n e r ' , 0 ) ; 
                                                                         t o g g l e D i v ( ' D i s e a s e F i n d e r C o n t a i n e r ' , 1 ) ; 
                                                                         } 
                                                 } 
 
   } ; 
   w i n d o w . o n u n l o a d   =   f u n c t i o n ( )   { 
     / /   C l e a n   u p 
     M a i n N a v W r a p p e r . d e s t r o y ( ) ; 
   } ; 
 
 f u n c t i o n   t o g g l e D i v ( i d , f l a g i t )   { 
                                 i f   ( f l a g i t = = " 1 " ) { 
                                                 i f   ( d o c u m e n t . l a y e r s )   d o c u m e n t . l a y e r s [ ' ' + i d + ' ' ] . v i s i b i l i t y   =   " s h o w " ; 
                                                                 e l s e   i f   ( d o c u m e n t . a l l )   d o c u m e n t . a l l [ ' ' + i d + ' ' ] . s t y l e . v i s i b i l i t y   =   " v i s i b l e " ; 
                                                                 e l s e   i f   ( d o c u m e n t . g e t E l e m e n t B y I d )   d o c u m e n t . g e t E l e m e n t B y I d ( ' ' + i d + ' ' ) . s t y l e . v i s i b i l i t y   =   " v i s i b l e " ; 
                                                 } 
                                 e l s e 
                                 i f   ( f l a g i t = = " 0 " ) { 
                                                 i f   ( d o c u m e n t . l a y e r s )   d o c u m e n t . l a y e r s [ ' ' + i d + ' ' ] . v i s i b i l i t y   =   " h i d e " ; 
                                                                 e l s e   i f   ( d o c u m e n t . a l l )   d o c u m e n t . a l l [ ' ' + i d + ' ' ] . s t y l e . v i s i b i l i t y   =   " h i d d e n " ; 
                                                                 e l s e   i f   ( d o c u m e n t . g e t E l e m e n t B y I d )   d o c u m e n t . g e t E l e m e n t B y I d ( ' ' + i d + ' ' ) . s t y l e . v i s i b i l i t y   =   " h i d d e n " ; 
                                 } 
                 } 
                 f u n c t i o n   g o t h e r e ( ) { 
                                 i f   ( d o c u m e n t . d r o p d o w n . P r o d u c t [ 0 ] . c h e c k e d ) { 
                                                 w i n d o w . l o c a t i o n . h r e f   =   d o c u m e n t . d r o p d o w n . P r o d u c t T y p e [ d o c u m e n t . d r o p d o w n . P r o d u c t T y p e . s e l e c t e d I n d e x ] . v a l u e ; 
                                 } 
                                 e l s e 
                                 i f   ( d o c u m e n t . d r o p d o w n . P r o d u c t [ 1 ] . c h e c k e d ) { 
                                                 w i n d o w . l o c a t i o n . h r e f   =   d o c u m e n t . d r o p d o w n . D i s e a s e T y p e [ d o c u m e n t . d r o p d o w n . D i s e a s e T y p e . s e l e c t e d I n d e x ] . v a l u e ; 
                                 } 
                                 r e t u r n   f a l s e ; 
                 } 
