ÿþd d a c c o r d i o n . i n i t ( {   / / t o p   l e v e l   h e a d e r s   i n i t i a l i z a t i o n 
 	 h e a d e r c l a s s :   " e x p a n d a b l e " ,   / / S h a r e d   C S S   c l a s s   n a m e   o f   h e a d e r s   g r o u p   t h a t   a r e   e x p a n d a b l e 
 	 c o n t e n t c l a s s :   " c a t e g o r y i t e m s " ,   / / S h a r e d   C S S   c l a s s   n a m e   o f   c o n t e n t s   g r o u p 
 	 r e v e a l t y p e :   " c l i c k " ,   / / R e v e a l   c o n t e n t   w h e n   u s e r   c l i c k s   o r   o n m o u s e o v e r   t h e   h e a d e r ?   V a l i d   v a l u e :   " c l i c k " ,   " c l i c k g o " ,   o r   " m o u s e o v e r " 
 	 m o u s e o v e r d e l a y :   2 0 0 ,   / / i f   r e v e a l t y p e = " m o u s e o v e r " ,   s e t   d e l a y   i n   m i l l i s e c o n d s   b e f o r e   h e a d e r   e x p a n d s   o n M o u s e o v e r 
 	 c o l l a p s e p r e v :   t r u e ,   / / C o l l a p s e   p r e v i o u s   c o n t e n t   ( s o   o n l y   o n e   o p e n   a t   a n y   t i m e ) ?   t r u e / f a l s e   
 	 d e f a u l t e x p a n d e d :   [ 0 ] ,   / / i n d e x   o f   c o n t e n t ( s )   o p e n   b y   d e f a u l t   [ i n d e x 1 ,   i n d e x 2 ,   e t c ] .   [ ]   d e n o t e s   n o   c o n t e n t 
 	 o n e m u s t o p e n :   f a l s e ,   / / S p e c i f y   w h e t h e r   a t   l e a s t   o n e   h e a d e r   s h o u l d   b e   o p e n   a l w a y s   ( s o   n e v e r   a l l   h e a d e r s   c l o s e d ) 
 	 a n i m a t e d e f a u l t :   f a l s e ,   / / S h o u l d   c o n t e n t s   o p e n   b y   d e f a u l t   b e   a n i m a t e d   i n t o   v i e w ? 
 	 p e r s i s t s t a t e :   t r u e ,   / / p e r s i s t   s t a t e   o f   o p e n e d   c o n t e n t s   w i t h i n   b r o w s e r   s e s s i o n ? 
 	 t o g g l e c l a s s :   [ " " ,   " o p e n h e a d e r " ] ,   / / T w o   C S S   c l a s s e s   t o   b e   a p p l i e d   t o   t h e   h e a d e r   w h e n   i t ' s   c o l l a p s e d   a n d   e x p a n d e d ,   r e s p e c t i v e l y   [ " c l a s s 1 " ,   " c l a s s 2 " ] 
 	 t o g g l e h t m l :   [ " p r e f i x " ,   " " ,   " " ] ,   / / A d d i t i o n a l   H T M L   a d d e d   t o   t h e   h e a d e r   w h e n   i t ' s   c o l l a p s e d   a n d   e x p a n d e d ,   r e s p e c t i v e l y     [ " p o s i t i o n " ,   " h t m l 1 " ,   " h t m l 2 " ]   ( s e e   d o c s ) 
 	 a n i m a t e s p e e d :   " f a s t " ,   / / s p e e d   o f   a n i m a t i o n :   i n t e g e r   i n   m i l l i s e c o n d s   ( i e :   2 0 0 ) ,   o r   k e y w o r d s   " f a s t " ,   " n o r m a l " ,   o r   " s l o w " 
 	 o n i n i t : f u n c t i o n ( h e a d e r s ,   e x p a n d e d i n d i c e s ) {   / / c u s t o m   c o d e   t o   r u n   w h e n   h e a d e r s   h a v e   i n i t a l i z e d 
 	 	 / / d o   n o t h i n g 
 	 } , 
 	 o n o p e n c l o s e : f u n c t i o n ( h e a d e r ,   i n d e x ,   s t a t e ,   i s u s e r a c t i v a t e d ) {   / / c u s t o m   c o d e   t o   r u n   w h e n e v e r   a   h e a d e r   i s   o p e n e d   o r   c l o s e d 
 	 	 / / d o   n o t h i n g 
 	 } 
 } ) 
 
 d d a c c o r d i o n . i n i t ( {   / / 2 n d   l e v e l   h e a d e r s   i n i t i a l i z a t i o n 
 	 h e a d e r c l a s s :   " s u b e x p a n d a b l e " ,   / / S h a r e d   C S S   c l a s s   n a m e   o f   s u b   h e a d e r s   g r o u p   t h a t   a r e   e x p a n d a b l e 
 	 c o n t e n t c l a s s :   " s u b c a t e g o r y i t e m s " ,   / / S h a r e d   C S S   c l a s s   n a m e   o f   s u b   c o n t e n t s   g r o u p 
 	 r e v e a l t y p e :   " c l i c k " ,   / / R e v e a l   c o n t e n t   w h e n   u s e r   c l i c k s   o r   o n m o u s e o v e r   t h e   h e a d e r ?   V a l i d   v a l u e :   " c l i c k "   o r   " m o u s e o v e r 
 	 m o u s e o v e r d e l a y :   2 0 0 ,   / / i f   r e v e a l t y p e = " m o u s e o v e r " ,   s e t   d e l a y   i n   m i l l i s e c o n d s   b e f o r e   h e a d e r   e x p a n d s   o n M o u s e o v e r 
 	 c o l l a p s e p r e v :   t r u e ,   / / C o l l a p s e   p r e v i o u s   c o n t e n t   ( s o   o n l y   o n e   o p e n   a t   a n y   t i m e ) ?   t r u e / f a l s e   
 	 d e f a u l t e x p a n d e d :   [ ] ,   / / i n d e x   o f   c o n t e n t ( s )   o p e n   b y   d e f a u l t   [ i n d e x 1 ,   i n d e x 2 ,   e t c ] .   [ ]   d e n o t e s   n o   c o n t e n t 
 	 o n e m u s t o p e n :   f a l s e ,   / / S p e c i f y   w h e t h e r   a t   l e a s t   o n e   h e a d e r   s h o u l d   b e   o p e n   a l w a y s   ( s o   n e v e r   a l l   h e a d e r s   c l o s e d ) 
 	 a n i m a t e d e f a u l t :   f a l s e ,   / / S h o u l d   c o n t e n t s   o p e n   b y   d e f a u l t   b e   a n i m a t e d   i n t o   v i e w ? 
 	 p e r s i s t s t a t e :   t r u e ,   / / p e r s i s t   s t a t e   o f   o p e n e d   c o n t e n t s   w i t h i n   b r o w s e r   s e s s i o n ? 
 	 t o g g l e c l a s s :   [ " o p e n s u b h e a d e r " ,   " c l o s e d s u b h e a d e r " ] ,   / / T w o   C S S   c l a s s e s   t o   b e   a p p l i e d   t o   t h e   h e a d e r   w h e n   i t ' s   c o l l a p s e d   a n d   e x p a n d e d ,   r e s p e c t i v e l y   [ " c l a s s 1 " ,   " c l a s s 2 " ] 
 	 t o g g l e h t m l :   [ " n o n e " ,   " " ,   " " ] ,   / / A d d i t i o n a l   H T M L   a d d e d   t o   t h e   h e a d e r   w h e n   i t ' s   c o l l a p s e d   a n d   e x p a n d e d ,   r e s p e c t i v e l y     [ " p o s i t i o n " ,   " h t m l 1 " ,   " h t m l 2 " ]   ( s e e   d o c s ) 
 	 a n i m a t e s p e e d :   " f a s t " ,   / / s p e e d   o f   a n i m a t i o n :   i n t e g e r   i n   m i l l i s e c o n d s   ( i e :   2 0 0 ) ,   o r   k e y w o r d s   " f a s t " ,   " n o r m a l " ,   o r   " s l o w " 
 	 o n i n i t : f u n c t i o n ( h e a d e r s ,   e x p a n d e d i n d i c e s ) {   / / c u s t o m   c o d e   t o   r u n   w h e n   h e a d e r s   h a v e   i n i t a l i z e d 
 	 	 / / d o   n o t h i n g 
 	 } , 
 	 o n o p e n c l o s e : f u n c t i o n ( h e a d e r ,   i n d e x ,   s t a t e ,   i s u s e r a c t i v a t e d ) {   / / c u s t o m   c o d e   t o   r u n   w h e n e v e r   a   h e a d e r   i s   o p e n e d   o r   c l o s e d 
 	 	 / / d o   n o t h i n g 
 	 } 
 } ) 
 
 v a r   m e s s a g e = " ©   C o p y r i g h t   2 0 0 9   b y   C i t y D e s i g n   P t e   L t d .   A l l   r i g h t s   r e s e r v e d .   " ; 
 
 f u n c t i o n   c l i c k I E 4 ( ) { 
 i f   ( e v e n t . b u t t o n = = 2 ) { 
 a l e r t ( m e s s a g e ) ; 
 r e t u r n   f a l s e ; 
 } 
 } 
 f u n c t i o n   c l i c k N S 4 ( e ) { 
 i f   ( d o c u m e n t . l a y e r s | | 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 . a l l ) { 
 i f   ( e . w h i c h = = 2 | | e . w h i c h = = 3 ) { 
 a l e r t ( m e s s a g e ) ; 
 r e t u r n   f a l s e ; 
 } 
 } 
 } 
 
 i f   ( d o c u m e n t . l a y e r s ) { 
 d o c u m e n t . c a p t u r e E v e n t s ( E v e n t . M O U S E D O W N ) ; 
 d o c u m e n t . o n m o u s e d o w n = c l i c k N S 4 ; 
 } 
 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 . g e t E l e m e n t B y I d ) { 
 d o c u m e n t . o n m o u s e d o w n = c l i c k I E 4 ; 
 } 
 
 d o c u m e n t . o n c o n t e x t m e n u = n e w   F u n c t i o n ( " a l e r t ( m e s s a g e ) ; r e t u r n   f a l s e " ) 
 
