/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / 
 
 / /   S T U F F   F O R   W H E N   T H E   P A G E   L O A D S 
 
 
 
 f u n c t i o n   l o a d M e ( )   { 
 
 
 
 	 / /   H i d e   t h e   " s e c o n d a r y "   l i s t s   b y   d e f a u l t . 
 
 	 $ ( ' u l . s e c o n d a r y ' ) . i n v o k e ( ' h i d e ' ) ; 
 
 
 
 	 / /   R e g i s t e r   s o m e   e v e n t   h a n d l e r s . 
 
 	 B e h a v i o u r . r e g i s t e r ( { 
 
 
 
 	 	 / /   A l l   l i n k s   w i t h   a   c l a s s n a m e   o f   " m o r e " . 
 
 	 	 ' a . m o r e '   :   f u n c t i o n ( e )   { 
 
 	 	 	 e . o n c l i c k   =   f u n c t i o n ( )   { 
 
 	 	 	 	 v a r   d i v _ i d   =   t h i s . p a r e n t N o d e . p a r e n t N o d e . i d ; 
 
 	 	 	 	 v a r   s e c o n d a r y   =   $ $ ( ' # '   +   d i v _ i d   +   '   u l . s e c o n d a r y ' ) [ 0 ] ; 
 
 
 
 	 	 	 	 i f   ( s e c o n d a r y . v i s i b l e ( ) )   { 
 
 	 	 	 	 	 B l i n d S h u t ( s e c o n d a r y ) ; 
 
 	 	 	 	 	 e . i n n e r H T M L   =   ' 'DE2J/  & r a q u o ; ' ; 
 
 	 	 	 	 } 
 
 	 	 	 	 e l s e   { 
 
 	 	 	 	 	 B l i n d O p e n ( s e c o n d a r y ) ; 
 
 	 	 	 	 	 e . i n n e r H T M L   =   ' & l a q u o ;   L e s s ' ; 
 
 	 	 	 	 } 
 
 
 
 	 	 	 	 r e t u r n   f a l s e ; 
 
 	 	 	 } 
 
 	 	 } , 
 
 
 
 	 	 / /   A n   e l e m e n t   w i t h   a n   i d   o f   e x p a n d 
 
 	 	 ' # e x p a n d '   :   f u n c t i o n ( e )   { 
 
 	 	 	 e . o n c l i c k   =   f u n c t i o n ( )   { 
 
 	 	 	 	 $ $ ( ' u l . s e c o n d a r y ' ) . e a c h ( f u n c t i o n ( e ,   i t e r )   { 
 
 	 	 	 	 	 $ $ ( ' a . m o r e ' ) . e a c h ( f u n c t i o n ( e l e m )   { 
 
 	 	 	 	 	 	 e l e m . i n n e r H T M L   =   ' & l a q u o ;   L e s s ' ; 
 
 	 	 	 	 	 } ) ; 
 
 	 	 	 	 	 i f   ( ! e . v i s i b l e ( ) )   B l i n d O p e n ( e ) ; 
 
 	 	 	 	 } ) ; 
 
 	 	 	 	 r e t u r n   f a l s e ; 
 
 	 	 	 } 
 
 	 	 } , 
 
 
 
 	 	 / /   A n   e l e m e n t   w i t h   a n   i d   o f   c o l l a p s e 
 
 	 	 ' # c o l l a p s e '   :   f u n c t i o n ( e )   { 
 
 	 	 	 e . o n c l i c k   =   f u n c t i o n ( )   { 
 
 	 	 	 	 $ $ ( ' u l . s e c o n d a r y ' ) . e a c h ( f u n c t i o n ( e ,   i t e r )   { 
 
 	 	 	 	 	 $ $ ( ' a . m o r e ' ) . e a c h ( f u n c t i o n ( e l e m )   { 
 
 	 	 	 	 	 	 e l e m . i n n e r H T M L   =   ' 'DE2J/  & r a q u o ; ' ; 
 
 	 	 	 	 	 } ) ; 
 
 	 	 	 	 	 i f   ( e . v i s i b l e ( ) )   B l i n d S h u t ( e ) ; 
 
 	 	 	 	 } ) ; 
 
 	 	 	 	 r e t u r n   f a l s e ; 
 
 	 	 	 } 
 
 	 	 } 
 
 	 } ) ; 
 
 } ; 
 
 
 
 
 
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / 
 
 / /   E F F E C T S 
 
 
 
 f u n c t i o n   B l i n d O p e n ( i d ,   o p t )   { 
 
 	 o p t   =   ( o p t )   ?   o p t : { } ; 
 
 	 o p t . d u r a t i o n   =   ( o p t . d u r a t i o n )   ?   o p t . d u r a t i o n   :   0 . 5 ; 
 
 	 n e w   E f f e c t . B l i n d D o w n ( i d ,   o p t ) ; 
 
 	 n e w   E f f e c t . A p p e a r ( i d ,   o p t ) ; 
 
 } ; 
 
 
 
 f u n c t i o n   B l i n d S h u t ( i d ,   o p t )   { 
 
 	 o p t   =   ( o p t )   ?   o p t : { } ; 
 
 	 o p t . d u r a t i o n   =   ( o p t . d u r a t i o n )   ?   o p t . d u r a t i o n   :   0 . 5 ; 
 
 	 n e w   E f f e c t . B l i n d U p ( i d ,   o p t ) ; 
 
 	 n e w   E f f e c t . F a d e ( i d ,   o p t ) ; 
 
 } ; 
 
 