ÿþ 
 f u n c t i o n   Q u e r y s t r i n g ( )   {  
         / /   g e t   t h e   q u e r y   s t r i n g ,   i g n o r e   t h e   ?   a t   t h e   f r o n t .  
         v a r   q u e r y s t r i n g   =   l o c a t i o n . s e a r c h . s u b s t r i n g ( 1 ,   l o c a t i o n . s e a r c h . l e n g t h ) ;  
         / /   p a r s e   o u t   n a m e / v a l u e   p a i r s   s e p a r a t e d   v i a   &  
         v a r   a r g s   =   q u e r y s t r i n g . s p l i t ( ' & ' ) ;  
         / /   s p l i t   o u t   e a c h   n a m e   =   v a l u e   p a i r  
         f o r   ( v a r   i   =   0 ;   i   <   a r g s . l e n g t h ;   i + + )   {  
                 v a r   p a i r   =   a r g s [ i ] . s p l i t ( ' = ' ) ;  
                 / /   F i x   b r o k e n   u n e s c a p i n g  
                 t e m p   =   u n e s c a p e ( p a i r [ 0 ] ) . s p l i t ( ' + ' ) ;  
                 n a m e   =   t e m p . j o i n ( '   ' ) ;  
                 t e m p   =   u n e s c a p e ( p a i r [ 1 ] ) . s p l i t ( ' + ' ) ;  
                 v a l u e   =   t e m p . j o i n ( '   ' ) ;  
                 t h i s [ n a m e ]   =   v a l u e ;  
         }  
         t h i s . g e t   =   Q u e r y s t r i n g _ g e t ;  
 }  
 f u n c t i o n   Q u e r y s t r i n g _ g e t ( s t r K e y ,   s t r D e f a u l t )   {  
         v a r   v a l u e   =   t h i s [ s t r K e y ] ;  
         i f   ( v a l u e   = =   n u l l )   {  
                 v a l u e   =   s t r D e f a u l t ;  
         }  
         r e t u r n   v a l u e ;  
 }  
  
  
  
 $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( )   {  
  
         $ ( ' # a c c r o d i n g m e n u   u l ' ) . h i d e ( ) ;  
  
         $ ( ' # a c c r o d i n g m e n u   l i   a . m e n u p a r e n t ' ) . c l i c k (  
                 f u n c t i o n ( )   {  
                         i f   ( $ ( t h i s ) . n e x t ( ) . i s ( " : v i s i b l e " ) )  
                                 r e t u r n ;  
                         e l s e  
                                 $ ( ' # a c c r o d i n g m e n u   l i   . s u b m e n u ' ) . s l i d e U p ( ) ;  
                         $ ( t h i s ) . n e x t ( ) . s l i d e T o g g l e ( ' n o r m a l ' ) ;  
                 }  
         ) ;  
  
         $ ( ' # a c c r o d i n g m e n u   l i   a . m e n u 0 0 1 ' ) . c l i c k (  
                 f u n c t i o n ( )   {  
  
                         i f   ( $ ( t h i s ) . n e x t ( ) . i s ( " : v i s i b l e " ) )  
                                 r e t u r n ;  
                         e l s e  
                                 $ ( ' # a c c r o d i n g m e n u   l i   . s u b m e n u 2 ' ) . s l i d e U p ( ) ;  
                         $ ( t h i s ) . n e x t ( ) . s l i d e T o g g l e ( ' n o r m a l ' ) ;  
                 }  
         ) ;  
  
         v a r   q s   =   n e w   Q u e r y s t r i n g ( ) ;  
         i f   ( q s . g e t ( " C a t e I D " )   >   0 )   {  
                 $ ( " u l . s u b m e n u 2   l i " ) . e a c h ( f u n c t i o n ( )   {  
                         i f   ( $ ( t h i s ) . a t t r ( " v a l u e " )   = =   q s . g e t ( " C a t e I D " ,   " 0 " ) )   {  
                                 $ ( t h i s ) . p a r e n t ( ) . s h o w ( ) ;  
                                 $ ( t h i s ) . p a r e n t ( ) . p a r e n t ( ) . s h o w ( ) ;  
                                 $ ( t h i s ) . p a r e n t ( ) . p a r e n t ( ) . p a r e n t ( ) . s h o w ( ) ;  
                                 $ ( t h i s ) . f i n d ( " a " ) . c s s ( {   c o l o r :   " # a 6 0 0 0 2 "   } ) ;  
                         }  
                 } )  
         }  
         e l s e   {  
                 $ ( ' # a c c r o d i n g m e n u   u l : f i r s t ' ) . s h o w ( ) ;  
                 / / $ ( ' # a c c r o d i n g m e n u   u l : l a s t ' ) . s h o w ( ) ;  
         }  
 } ) ; 
