ÿþf u n c t i o n   l i s t e n e r s B a s e d O n L a n g u a g e ( )   {  
 	 i f   ( 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 . c r e a t e T e x t N o d e )   {  
 	  
 	 	 / /   " p r i n t   a r t i c l e "   l i n k  
 	 	 i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( ' p r i n t - a r t i c l e ' ) )   {  
 	 	 	 v a r   p l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' p r i n t - a r t i c l e ' ) ;  
 	 	 	 v a r   p l a   =   d o c u m e n t . c r e a t e E l e m e n t ( ' a ' ) ;  
 	 	 	 p l a . s e t A t t r i b u t e ( ' h r e f ' ,   ' # p r i n t ' ) ; 	  
 	 	 	 v a r   h a s I n n e r T e x t   =   ( d o c u m e n t . b o d y . i n n e r T e x t   ! =   u n d e f i n e d )   ?   t r u e   :   f a l s e ;  
 	 	 	 i f ( ! h a s I n n e r T e x t ) {  
 	 	 	 	 p l a . t e x t C o n t e n t   =   ' i m p r i m i r   a r t í c u l o ' ;  
 	 	 	 }   e l s e {  
 	 	 	 	 p l a . i n n e r T e x t   =   ' i m p r i m i r   a r t í c u l o ' ;  
 	 	 	 }  
 	 	 	 p l . a p p e n d C h i l d ( p l a ) ;  
 	 	 	 p l . o n c l i c k   =   f u n c t i o n ( ) {   p r i n t p a g e ( ) ;   r e t u r n   f a l s e   }  
 	 	 }  
  
 	 	 / /   " p r i n t   t r a n s c r i p t "   l i n k  
 	 	 i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( ' p r i n t - t r a n s c r i p t ' ) )   {  
 	 	 	 v a r   p l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' p r i n t - t r a n s c r i p t ' ) ;  
 	 	 	 v a r   h a s I n n e r T e x t   =   ( d o c u m e n t . b o d y . i n n e r T e x t   ! =   u n d e f i n e d )   ?   t r u e   :   f a l s e ;  
 	 	 	 i f ( ! h a s I n n e r T e x t ) {  
 	 	 	 	 p l . t e x t C o n t e n t   =   '   |   ' ;  
 	 	 	 }   e l s e {  
 	 	 	 	 p l . i n n e r T e x t   =   '   |   ' ;  
 	 	 	 }  
 	 	 	 v a r   p l a   =   d o c u m e n t . c r e a t e E l e m e n t ( ' a ' ) ;  
 	 	 	 p l a . s e t A t t r i b u t e ( ' h r e f ' ,   ' # p r i n t ' ) ;  
 	 	 	 i f ( ! h a s I n n e r T e x t ) {  
 	 	 	 	 p l a . t e x t C o n t e n t   =   ' t r a n s c r i p c i o n   I m p r i m i r   ' ;  
 	 	 	 }   e l s e {  
 	 	 	 	 p l a . i n n e r T e x t   =   ' t r a n s c r i p c i o n   I m p r i m i r   ' ;  
 	 	 	 }  
 	 	 	 p l . a p p e n d C h i l d ( p l a ) ;  
 	 	 	 p l . o n c l i c k   =   f u n c t i o n ( ) {   p r i n t p a g e ( ) ;   r e t u r n   f a l s e   }  
 	 	 }  
  
 	 	 / /   " p r i n t   o f f e r s "   l i n k  
 	 	 i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( ' p r i n t - o f f e r s ' ) )   {  
 	 	 	 v a r   p l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' p r i n t - o f f e r s ' ) ;  
 	 	 	 v a r   h a s I n n e r T e x t   =   ( d o c u m e n t . b o d y . i n n e r T e x t   ! =   u n d e f i n e d )   ?   t r u e   :   f a l s e ;  
 	 	 	 i f ( ! h a s I n n e r T e x t ) {  
 	 	 	 	 p l . t e x t C o n t e n t   =   '   |   ' ;  
 	 	 	 }   e l s e {  
 	 	 	 	 p l . i n n e r T e x t   =   '   |   ' ;  
 	 	 	 }  
 	 	 	 v a r   p l a   =   d o c u m e n t . c r e a t e E l e m e n t ( ' a ' ) ;  
 	 	 	 p l a . s e t A t t r i b u t e ( ' h r e f ' ,   ' # p r i n t ' ) ;  
 	 	 	 i f ( ! h a s I n n e r T e x t ) {  
 	 	 	 	 p l a . t e x t C o n t e n t   =   ' o f e r t a s   i m p r i m i r   ' ;  
 	 	 	 }   e l s e {  
 	 	 	 	 p l a . i n n e r T e x t   =   ' o f e r t a s   i m p r i m i r   ' ;  
 	 	 	 }  
 	 	 	 p l . a p p e n d C h i l d ( p l a ) ;  
 	 	 	 p l . o n c l i c k   =   f u n c t i o n ( ) {   p r i n t p a g e ( ) ;   r e t u r n   f a l s e   }  
 	 	 }  
  
 	 	 / /   o v e r l a y   " c l o s e "   l i n k  
 	 	 v a r   d i v s   =   g e t E l e m e n t s B y C l a s s N a m e ( d o c u m e n t ,   " * " ,   ' o v e r l a y ' ) ;  
 	 	 f o r   ( v a r   i = 0 ; i < d i v s . l e n g t h ; i + + )   {  
 	 	 	 v a r   s u b d i v s = d i v s [ i ] . g e t E l e m e n t s B y T a g N a m e ( ' a ' ) ;  
 	 	 	 f o r ( v a r   j = 0 ; j < s u b d i v s . l e n g t h ; j + + )   {  
 	 	 	 	 i f ( s u b d i v s [ j ] . c l a s s N a m e = = ' c l o s e l i n k ' )   {  
 	 	 	 	 	 v a r   c l t e x t   =   d o c u m e n t . c r e a t e E l e m e n t ( ' e m ' ) ;  
 	 	 	 	 	 v a r   h a s I n n e r T e x t   =   ( d o c u m e n t . b o d y . i n n e r T e x t   ! =   u n d e f i n e d )   ?   t r u e   :   f a l s e ;  
 	 	 	 	 	 i f ( ! h a s I n n e r T e x t ) {  
 	 	 	 	 	 	 c l t e x t . t e x t C o n t e n t   =   ' C e r r a r ' ;  
 	 	 	 	 	 }   e l s e {  
 	 	 	 	 	 	 c l t e x t . i n n e r T e x t   =   ' C e r r a r ' ;  
 	 	 	 	 	 }  
 	 	 	 	 	 s u b d i v s [ j ] . a p p e n d C h i l d ( c l t e x t ) ;  
 	 	 	 	 	 s u b d i v s [ j ] . o n c l i c k   =   f u n c t i o n ( )   {   h i d e ( t h i s . i d ) ;   r e t u r n   f a l s e   }  
 	 	 	 	 }  
 	 	 	 }  
 	 	 }  
 	 }  
 }  
  
 
