ÿþv a r   L i s t I t e m S e l e c t o r   =   n e w   C l a s s ( {  
 	 i n i t i a l i z e :   f u n c t i o n ( e l e m e n t ,   o p t i o n s )   {  
 	 	 t h i s . s e t O p t i o n s ( {  
 	 	 	 s u p r e s s C l i c k s :   f a l s e ,  
 	 	 	 s t a r t S e l e c t e d :   f a l s e ,  
 	 	 	 s t a y S e l e c t e d :   t r u e ,  
 	 	 	 s e l e c t e d :   0 ,  
 	 	 	 c a l l b a c k :   n u l l ,  
 	 	 	 f x M i n :   0 . 3 ,  
 	 	 	 f x M a x :   1 ,  
 	 	 	 f x D u r a t i o n :   3 0 0 ,  
 	 	 	 f x T y p e :   " o p a c i t y " ,  
 	 	 	 f x T r a n s i t i o n :   F x . T r a n s i t i o n s . q u a d O u t  
 	 	 } ,   o p t i o n s ) ;  
 	 	  
 	 	 i f ( e l e m e n t )  
 	 	 	 t h i s . e l e m e n t s   =   e l e m e n t . g e t C h i l d r e n ( ) ;  
 	 	 e l s e  
 	 	 	 r e t u r n ;  
 	 	 	 	 	  
 	 	 t h i s . e l e m e n t s . e a c h ( ( f u n c t i o n ( e l ,   i n d e x ) {  
 	 	 	 $ ( e l ) . e f f e c t ( t h i s . o p t i o n s . f x T y p e ) . s e t ( t h i s . o p t i o n s . f x M i n ) ;  
 	 	 	 e l . f x   =   n e w   F x . S t y l e ( e l ,   t h i s . o p t i o n s . f x T y p e ,   { d u r a t i o n : t h i s . o p t i o n s . f x D u r a t i o n ,   w a i t : f a l s e } ) ;  
 	 	 	 e l . c l i c k e d   =   f a l s e ;  
 	 	 	 e l . i n d e x   =   i n d e x ;  
 	 	 	 e l . a d d E v e n t s ( {  
 	 	 	 	 " m o u s e o v e r " :   ( f u n c t i o n ( ) {    
 	 	 	 	 	 e l . f x . s t a r t ( t h i s . o p t i o n s . f x M a x ) ;  
 	 	 	 	 } ) . b i n d ( t h i s ) ,  
 	 	 	 	 " m o u s e o u t " :   ( f u n c t i o n ( ) {    
 	 	 	 	 	 i f ( ! e l . c l i c k e d )   {  
 	 	 	 	 	 	 e l . f x . s t a r t ( t h i s . o p t i o n s . f x M i n )    
 	 	 	 	 	 }  
 	 	 	 	 } ) . b i n d ( t h i s ) ,  
 	 	 	 	 " c l i c k " :   ( f u n c t i o n ( e ) {    
 	 	 	 	 	 i f ( t h i s . o p t i o n s . s u p r e s s C l i c k s )   {    
 	 	 	 	 	 	 n e w   E v e n t ( e ) . s t o p ( ) ;  
 	 	 	 	 	 }    
 	 	 	 	 	 i f ( ! e l . c l i c k e d   & &   t h i s . o p t i o n s . s t a y S e l e c t e d ) {  
 	 	 	 	 	 	 t h i s . s e l e c t ( e l . i n d e x ) ;  
 	 	 	 	 	 }    
 	 	 	 	 } ) . b i n d ( t h i s )  
 	 	 	 } ) ;  
 	 	 } ) . b i n d ( t h i s ) ) ;  
  
 	 	 i f ( t h i s . o p t i o n s . s t a r t S e l e c t e d )   {  
 	 	 	 t h i s . e l e m e n t s [ t h i s . o p t i o n s . s e l e c t e d ] . c l i c k e d   =   t r u e ;  
 	 	 	 t h i s . e l e m e n t s [ t h i s . o p t i o n s . s e l e c t e d ] . f x . s e t ( t h i s . o p t i o n s . f x M a x ) ;  
 	 	 	 t h i s . s e l e c t ( t h i s . o p t i o n s . s e l e c t e d ) ;  
 	 	 }  
 	 	 w i n d o w . a d d E v e n t ( " u n l o a d " ,   f u n c t i o n ( )   {   t h i s . d e s t r o y ( )   } . b i n d ( t h i s )   ) ;  
 	 } ,  
 	  
 	 d e s t r o y :   f u n c t i o n ( )   {  
 	 	 f o r ( v a r   i   i n   t h i s )   {  
 	 	 	 d e l e t e   i ;  
 	 	 }  
 	 } ,  
 	  
 	 s e l e c t :   f u n c t i o n ( i n d e x )   {  
 	 	 i f ( t h i s . o p t i o n s . c a l l b a c k )   {  
 	 	 	 t h i s . o p t i o n s . c a l l b a c k ( t h i s . e l e m e n t s [ i n d e x ] ,   i n d e x ) ;  
 	 	 }  
 	 	 i f ( i n d e x   = =   t h i s . o p t i o n s . s e l e c t e d   & &   t h i s . e l e m e n t s [ t h i s . o p t i o n s . s e l e c t e d ] . c l i c k e d   = =   t r u e )    
 	 	 	 r e t u r n ;  
 	 	 	  
 	 	 t h i s . e l e m e n t s [ t h i s . o p t i o n s . s e l e c t e d ] . c l i c k e d   =   f a l s e ;  
 	 	 t h i s . e l e m e n t s [ t h i s . o p t i o n s . s e l e c t e d ] . f x . s t a r t ( t h i s . o p t i o n s . f x M i n ) ;  
 	 	 t h i s . o p t i o n s . s e l e c t e d   =   i n d e x ;  
 	 	 t h i s . e l e m e n t s [ t h i s . o p t i o n s . s e l e c t e d ] . c l i c k e d   =   t r u e ;  
 	 	 t h i s . e l e m e n t s [ t h i s . o p t i o n s . s e l e c t e d ] . f x . s t a r t ( t h i s . o p t i o n s . f x M a x ) ;  
 	 } ,  
 	  
 	 s e l e c t C l a s s :   f u n c t i o n ( s t r C l a s s n a m e )   {  
 	 	 t h i s . e l e m e n t s . e a c h ( f u n c t i o n ( e l ,   i n d e x ) {  
 	 	 	 i f ( e l . h a s C l a s s ( s t r C l a s s n a m e ) ) {  
 	 	 	 	 t h i s . s e l e c t ( i n d e x ) ;  
 	 	 	 	 r e t u r n ;  
 	 	 	 }  
 	 	 } . b i n d ( t h i s ) ) ;  
 	 	  
 	 	 r e t u r n   t h i s . o p t i o n s . s e l e c t e d ;  
 	 }  
  
 } ) ;  
 L i s t I t e m S e l e c t o r . i m p l e m e n t ( n e w   O p t i o n s ) ; 
