ÿþ/ * 	 E x p a n d i n g   M e n u s   f o r   I n d e x h i b i t  
   * 	 	 u s e s   j q u e r y  
   *  
   * 	 C r e a t e d   b y   R o s s   C a i r n s     M a r   2 0 0 8  
 * /  
  
  
 f u n c t i o n   e x p a n d i n g M e n u ( n u m )   {  
 	 v a r   s p e e d   =   5 0 0 ;  
 	  
 	 v a r   i t e m _ t i t l e   =   $ ( " # m e n u   u l " ) . e q ( n u m ) . c h i l d r e n ( " : f i r s t " ) ;  
 	 v a r   i t e m s   =   $ ( " # m e n u   u l " ) . e q ( n u m ) . c h i l d r e n ( ) . f i l t e r ( f u n c t i o n   ( i n d e x )   {   r e t u r n   i n d e x   >   0 ;   } ) ;  
 	  
 	 / *   h i d e   i t e m s   i f   n o t   a c t i v e   * /  
 	 i f   ( i t e m s . i s ( " . a c t i v e " )   = =   f a l s e )   {  
 	 	 i t e m s . h i d e ( ) ;  
 	 }  
  
 	 / *   a d d   c l i c k   f u n c t i o n s   +   p o i n t e r   t o   t i t l e   * /  
 	 i t e m _ t i t l e . c s s ( { c u r s o r : " p o i n t e r " } ) . t o g g l e (  
 	 	 f u n c t i o n   ( )   {  
 	 	 	 i t e m s . s h o w ( s p e e d ) ;  
 	 	 } ,   f u n c t i o n   ( )   {  
 	 	 	 i t e m s . h i d e ( s p e e d ) ;  
 	 	 }  
 	 )  
 } 
