ÿþv a r   e f a _ d e f a u l t   =   1 0 0 ;                                                                                                                                                                                 / / d e f a u l t   t e x t   s i z e   a s   p e r c e n t a g e   o f   u s e r   d e f a u l t  
 v a r   e f a _ i n c r e m e n t   =   1 0 ;                                                                                                                                                                                 / / p e r c e n t a g e   t o   i n c r e a s e / d e c r e a s e   f o n t   s i z e  
  
 v a r   e f a _ b i g g e r   =   [ ' < u l > < l i > ' ,                                               / / H T M L   t o   g o   b e f o r e   ' b i g g e r '   l i n k  
                                   ' >e  'Y  W[  ÷S' ,                         / / H T M L   t o   g o   i n s i d e   ' b i g g e r '   a n c h o r   t a g  
                                   ' ¹pûQïS>e'YW[÷S' ,                                                                 / / t i t l e   a t t r i b u t e  
                                   ' p l u s ' ,                                                         / / c l a s s   a t t r i b u t e  
                                   ' ' ,                                                                 / / i d   a t t r i b u t e  
                                   ' ' ,                                                                 / / n a m e   a t t r i b u t e  
                                   ' ' ,                                                                 / / a c c e s s k e y   a t t r i b u t e  
                                   ' ' ,                                                                 / / o n m o u s e o v e r   a t t r i b u t e  
                                   ' ' ,                                                                 / / o n m o u s e o u t   a t t r i b u t e  
                                   ' ' ,                                                                 / / o n f o c u s   a t t r i b u t e  
                                   ' < '   +   ' / l i > < '   +   ' / u l > '                           / / H T M L   t o   g o   a f t e r   ' b i g g e r '   l i n k  
                                                                     ]  
  
 v a r   e f a _ s m a l l e r   =   [ ' < u l > < l i > ' ,                                             / / H T M L   t o   g o   b e f o r e   ' s m a l l e r '   l i n k  
                                   ' )  \  W[  ÷S' ,                                   / / H T M L   t o   g o   i n s i d e   ' s m a l l e r '   a n c h o r   t a g  
                                   ' ¹pûQïS)\W[÷S' ,                                                                               / / t i t l e   a t t r i b u t e  
                                   ' m i n u s ' ,                                                       / / c l a s s   a t t r i b u t e  
                                   ' ' ,                                                                 / / i d   a t t r i b u t e  
                                   ' ' ,                                                                 / / n a m e   a t t r i b u t e  
                                   ' ' ,                                                                 / / a c c e s s k e y   a t t r i b u t e  
                                   ' ' ,                                                                 / / o n m o u s e o v e r   a t t r i b u t e  
                                   ' ' ,                                                                 / / o n m o u s e o u t   a t t r i b u t e  
                                   ' ' ,                                                                 / / o n f o c u s   a t t r i b u t e  
                                   ' < '   +   ' / l i > < '   +   ' / u l > '                           / / H T M L   t o   g o   a f t e r   ' s m a l l e r '   l i n k  
                                                                     ]  
  
 v a r   e f a _ r e s e t   =   [ ' < u l > < l i > ' ,                                                 / / H T M L   t o   g o   b e f o r e   ' r e s e t '   l i n k  
                                   ' ck  8^  W[  ÷S' ,   / / H T M L   t o   g o   i n s i d e   ' r e s e t '   a n c h o r   t a g  
                                   ' ¹pûQÞV0Rck8^W[÷S' ,                                                                 / / t i t l e   a t t r i b u t e  
                                   ' g l e i c h ' ,                                                     / / c l a s s   a t t r i b u t e  
                                   ' ' ,                                                                 / / i d   a t t r i b u t e  
                                   ' ' ,                                                                 / / n a m e   a t t r i b u t e  
                                   ' ' ,                                                                 / / a c c e s s k e y   a t t r i b u t e  
                                   ' ' ,                                                                 / / o n m o u s e o v e r   a t t r i b u t e  
                                   ' ' ,                                                                 / / o n m o u s e o u t   a t t r i b u t e  
                                   ' ' ,                                                                 / / o n f o c u s   a t t r i b u t e  
                                   ' < '   +   ' / l i > < '   +   ' / u l > '                           / / H T M L   t o   g o   a f t e r   ' r e s e t '   l i n k  
                                                                       ]  
  
 f u n c t i o n   E f a _ F o n t s i z e ( i n c r e m e n t , b i g g e r , r e s e t , s m a l l e r , d e f )   {  
                 t h i s . w 3 c   =   ( d o c u m e n t . g e t E l e m e n t B y I d ) ;  
                 t h i s . m s   =   ( d o c u m e n t . a l l ) ;  
                 t h i s . u s e r A g e n t   =   n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) ;  
                 t h i s . i s O l d O p   =   ( ( t h i s . u s e r A g e n t . i n d e x O f ( ' o p e r a ' )   ! =   - 1 ) & & ( p a r s e F l o a t ( t h i s . u s e r A g e n t . s u b s t r ( t h i s . u s e r A g e n t . i n d e x O f ( ' o p e r a ' ) + 5 ) )   < =   7 ) ) ;  
                 i f   ( ( t h i s . w 3 c   | |   t h i s . m s )   & &   ! t h i s . i s O l d O p   & &   ! t h i s . i s M a c I E )   {  
                                 t h i s . n a m e   =   " e f a _ f o n t S i z e " ;  
                                 t h i s . c o o k i e N a m e   =   ' e f a S i z e ' ;  
                                 t h i s . i n c r e m e n t   =   i n c r e m e n t ;  
                                 t h i s . d e f   =   d e f ;  
                                 t h i s . d e f P x   =   M a t h . r o u n d ( 1 6 * ( d e f / 1 0 0 ) )  
                                 t h i s . b a s e   =   1 ;  
                                 t h i s . p r e f   =   t h i s . g e t P r e f ( ) ;  
                                 t h i s . t e s t H T M L   =   ' < d i v   i d = " e f a T e s t "   s t y l e = " p o s i t i o n : a b s o l u t e ; v i s i b i l i t y : h i d d e n ; l i n e - h e i g h t : 1 e m ; " > & n b s p ; < / d i v > ' ;  
                                 t h i s . b i g g e r L i n k   =   t h i s . g e t L i n k H t m l ( 1 , b i g g e r ) ;  
                                 t h i s . s m a l l e r L i n k   =   t h i s . g e t L i n k H t m l ( - 1 , s m a l l e r ) ;  
                                 t h i s . r e s e t L i n k   =   t h i s . g e t L i n k H t m l ( 0 , r e s e t ) ;  
                 }   e l s e   {  
                                 t h i s . b i g g e r L i n k   =   ' ' ;  
                                 t h i s . s m a l l e r L i n k   =   ' ' ;  
                                 t h i s . r e s e t L i n k   =   ' ' ;  
                                 t h i s . e f a I n i t   =   n e w   F u n c t i o n ( ' r e t u r n   t r u e ; ' ) ;  
                 }  
                 t h i s . a l l L i n k s   =   t h i s . b i g g e r L i n k   +   t h i s . r e s e t L i n k   +   t h i s . s m a l l e r L i n k ;  
 }  
  
 E f a _ F o n t s i z e . p r o t o t y p e . e f a I n i t   =   f u n c t i o n ( )   {  
                                 d o c u m e n t . w r i t e l n ( t h i s . t e s t H T M L ) ;  
                                 t h i s . b o d y   =   ( t h i s . w 3 c ) ? d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( ' b o d y ' ) [ 0 ] . s t y l e : d o c u m e n t . a l l . t a g s ( ' b o d y ' ) [ 0 ] . s t y l e ;  
                                 t h i s . e f a T e s t   =   ( t h i s . w 3 c ) ? d o c u m e n t . g e t E l e m e n t B y I d ( ' e f a T e s t ' ) : d o c u m e n t . a l l [ ' e f a T e s t ' ] ;  
                                 v a r   h   =   ( t h i s . e f a T e s t . c l i e n t H e i g h t ) ? p a r s e I n t ( t h i s . e f a T e s t . c l i e n t H e i g h t ) : ( t h i s . e f a T e s t . o f f s e t H e i g h t ) ? p a r s e I n t ( t h i s . e f a T e s t . o f f s e t H e i g h t ) : 9 9 9 ;  
                                 i f   ( h   <   t h i s . d e f P x )   t h i s . b a s e   =   t h i s . d e f P x / h ;  
                                 t h i s . b o d y . f o n t S i z e   =   M a t h . r o u n d ( t h i s . p r e f * t h i s . b a s e )   +   ' % ' ;  
 }  
  
 E f a _ F o n t s i z e . p r o t o t y p e . g e t L i n k H t m l   =   f u n c t i o n ( d i r e c t i o n , p r o p e r t i e s )   {  
                 v a r   h t m l   =   p r o p e r t i e s [ 0 ]   +   ' < a   h r e f = " # "   o n c l i c k = " e f a _ f o n t S i z e . s e t S i z e ( '   +   d i r e c t i o n   +   ' ) ;   r e t u r n   f a l s e ; " ' ;  
                 h t m l   + =   ( p r o p e r t i e s [ 2 ] ) ? ' t i t l e = " '   +   p r o p e r t i e s [ 2 ]   +   ' " ' : ' ' ;  
                 h t m l   + =   ( p r o p e r t i e s [ 3 ] ) ? ' c l a s s = " '   +   p r o p e r t i e s [ 3 ]   +   ' " ' : ' ' ;  
                 h t m l   + =   ( p r o p e r t i e s [ 4 ] ) ? ' i d = " '   +   p r o p e r t i e s [ 4 ]   +   ' " ' : ' ' ;  
                 h t m l   + =   ( p r o p e r t i e s [ 5 ] ) ? ' n a m e = " '   +   p r o p e r t i e s [ 5 ]   +   ' " ' : ' ' ;  
                 h t m l   + =   ( p r o p e r t i e s [ 6 ] ) ? ' a c c e s s k e y = " '   +   p r o p e r t i e s [ 6 ]   +   ' " ' : ' ' ;  
                 h t m l   + =   ( p r o p e r t i e s [ 7 ] ) ? ' o n m o u s e o v e r = " '   +   p r o p e r t i e s [ 7 ]   +   ' " ' : ' ' ;  
                 h t m l   + =   ( p r o p e r t i e s [ 8 ] ) ? ' o n m o u s e o u t = " '   +   p r o p e r t i e s [ 8 ]   +   ' " ' : ' ' ;  
                 h t m l   + =   ( p r o p e r t i e s [ 9 ] ) ? ' o n f o c u s = " '   +   p r o p e r t i e s [ 9 ]   +   ' " ' : ' ' ;  
                 r e t u r n   h t m l   + =   ' > ' +   p r o p e r t i e s [ 1 ]   +   ' < '   +   ' / a > '   +   p r o p e r t i e s [ 1 0 ] ;  
 }  
  
 E f a _ F o n t s i z e . p r o t o t y p e . g e t P r e f   =   f u n c t i o n ( )   {  
                 v a r   p r e f   =   t h i s . g e t C o o k i e ( t h i s . c o o k i e N a m e ) ;  
                 i f   ( p r e f )   r e t u r n   p a r s e I n t ( p r e f ) ;  
                 e l s e   r e t u r n   t h i s . d e f ;  
 }  
  
 E f a _ F o n t s i z e . p r o t o t y p e . s e t S i z e   =   f u n c t i o n ( d i r e c t i o n )   {  
                 t h i s . p r e f   =   ( d i r e c t i o n ) ? t h i s . p r e f + ( d i r e c t i o n * t h i s . i n c r e m e n t ) : t h i s . d e f ;  
                 t h i s . s e t C o o k i e ( t h i s . c o o k i e N a m e , t h i s . p r e f ) ;  
                 t h i s . b o d y . f o n t S i z e   =   M a t h . r o u n d ( t h i s . p r e f * t h i s . b a s e )   +   ' % ' ;  
 }  
  
 E f a _ F o n t s i z e . p r o t o t y p e . g e t C o o k i e   =   f u n c t i o n ( c o o k i e N a m e )   {  
                 v a r   c o o k i e   =   c o o k i e M a n a g e r . g e t C o o k i e ( c o o k i e N a m e ) ;  
                 r e t u r n   ( c o o k i e ) ? c o o k i e : f a l s e ;  
 }  
  
 E f a _ F o n t s i z e . p r o t o t y p e . s e t C o o k i e   =   f u n c t i o n ( c o o k i e N a m e , c o o k i e V a l u e )   {  
                 r e t u r n   c o o k i e M a n a g e r . s e t C o o k i e ( c o o k i e N a m e , c o o k i e V a l u e ) ;  
 }  
  
 v a r     e f a _ f o n t S i z e   =   n e w   E f a _ F o n t s i z e ( e f a _ i n c r e m e n t , e f a _ b i g g e r , e f a _ r e s e t , e f a _ s m a l l e r , e f a _ d e f a u l t ) ; 
