ÿþ/ * # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # * /  
 / * 	 	 
  '  $"	 	   * /  
 / * # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # * /  
 w i n d o w . o n l o a d   =   f u n c t i o n ( )   {  
 	 _ L S f o n t S i z e r . i n i t ( n u l l ) ;  
 }  
  
 o r i g S i z e   =   n e w   A r r a y ( ) ;  
  
 v a r   _ L S f o n t S i z e r   =   {  
 	 c o n t e n t I D : ' c o n t e n t ' , / /   5>  B5:AB0  :><5  65;8B5  ?@><5=8B8  25;8G8=C 
 	 d e b u g :   f a l s e , 	 	 / /   >72>Y5=0  C?>7>@5Z0  70  d e b u g  
 	 e n a b e l e d :   t r u e , 	 	 / /   #:YCG8  f o n t s i z e   t o o l   40  DC=:F8>=8H5  :0>  s i n g l e   p o i n t   4>  8A:YCG5Z0 
 	 m a x C h a n g e :   2 ,   	 	 / /   0:A8<0;0=  1@>X  ?>25[0Z0/ A<0Z5Z0  25;8G8=5  A;>20 
 	 c h a n g e C n t :   0 ,   	 	 / /   @0B8  ?@><5=C  1@>X0G0 
 	 d e f a u l t S i z e :   ' 1 2 ' , 	 / /   N A   -   >A=>2=0  25;8G8=0  A;>20 
 	 m a x S i z e :   ' 1 4 ' , 	 	 / /   N A   -   <0:A8<0;=0  25;8G8=0  A;>20 
 	 m i n S i z e :   ' 1 0 ' , 	 	 / /   N A   -   <8=8<0;=0  25;8G8=0  A;>20 
 	 c u r S i z e :   n u l l , 	 	 / /   ?>AB028  2@54=>AB  70  B@5=CB=C  25;8G8=C  8  <0=8?C;8H8 
 	 o r i g S i z e C n t :   0 , 	 	 / /   @0B8B8  ?@><5=5  1@>X0G0  70  @5A5B>20Z5  <0?8@0=5  2@54=>AB8 
 	 e c h o :   ' ' , 	 	 	 / /   d e b u g   87;07=5  25;8G8=5 
 	 a c t i v e F u n c :   n u l l , 	 / /   !<5AB8  2@54=>AB  n u l l   ?@8;8:><  0:B820F8X5  DC=:F8X5  :040  1C45  ?>720=0 
 	 i n i t :   f u n c t i o n ( c a l l ) {  
 	 	 	 t h i s . e c h o = ' ' ;  
 	 	 	 t h i s . a c t i v e F u n c   =   c a l l ;  
 	 	 	 i f ( t h i s . a c t i v e F u n c   = =   n u l l )   {   / /   S e t u p   L i s t e n e r s   o n l o a d  
 	 	 	 	 t r y   {  
 	 	 	 	 	 E v e n t . a d d ( $ ( ' f n t S i z e I n c ' ) , ' m o u s e u p ' , f u n c t i o n ( )   {   _ L S f o n t S i z e r . i n i t ( ' a d d ' ) ;   } ) ;  
 	 	 	 	 	 E v e n t . a d d ( $ ( ' f n t S i z e D e c ' ) , ' m o u s e u p ' , f u n c t i o n ( )   {   _ L S f o n t S i z e r . i n i t ( ' d e c ' ) ;   } ) ;  
 	 	 	 	 	 E v e n t . a d d ( $ ( ' f n t S i z e R e s e t ' ) , ' m o u s e u p ' , f u n c t i o n ( )   {   _ L S f o n t S i z e r . s u b S e t F u n c ( ' g e t ' ) ;   } ) ;  
 	 	 	 	 	 i f ( d o c u m e n t . a l l )   {  
 	 	 	 	 	 	 $ ( ' f n t S i z e I n c ' ) . s t y l e . c u r s o r   =   " h a n d " ;  
 	 	 	 	 	 	 $ ( ' f n t S i z e D e c ' ) . s t y l e . c u r s o r   =   " h a n d " ;  
 	 	 	 	 	 	 $ ( ' f n t S i z e R e s e t ' ) . s t y l e . c u r s o r   =   " h a n d " ;  
 	 	 	 	 	 }   e l s e   {  
 	 	 	 	 	 	 $ ( ' f n t S i z e I n c ' ) . s t y l e . c u r s o r   =   " p o i n t e r " ;  
 	 	 	 	 	 	 $ ( ' f n t S i z e D e c ' ) . s t y l e . c u r s o r   =   " p o i n t e r " ;  
 	 	 	 	 	 	 $ ( ' f n t S i z e R e s e t ' ) . s t y l e . c u r s o r   =   " p o i n t e r " ;  
 	 	 	 	 	 }  
 	 	 	 	 }   c a t c h ( e )   {    
 	 	 	 	 	 / / =5  @048  =8HB0  X5@  f o n t S i z e r   i n t e r f a c e   =8X5  0:B820= 
 	 	 	 	 }  
 	 	 	 	 / / r e t u r n ;   / / E n d  
 	 	 	 }  
 	 	 	  
 	 	 	 i f ( t h i s . a c t i v e F u n c = = ' a d d ' )   {  
 	 	 	 	 i f ( t h i s . c h a n g e C n t + 1 > t h i s . m a x C h a n g e )  
 	 	 	 	 	 t h i s . e n a b e l e d   =   f a l s e ;  
 	 	 	 	 e l s e   {  
 	 	 	 	 	 t h i s . c h a n g e C n t + + ;   t h i s . e n a b e l e d   =   t r u e ;  
 	 	 	 	 }  
 	 	 	 }   e l s e   i f   ( t h i s . a c t i v e F u n c = = ' d e c ' )   {  
 	 	 	 	 i f ( t h i s . c h a n g e C n t - 1 < ( 0 - t h i s . m a x C h a n g e ) )  
 	 	 	 	 	 t h i s . e n a b e l e d   =   f a l s e ;  
 	 	 	 	 e l s e   {  
 	 	 	 	 	 t h i s . c h a n g e C n t - - ;   t h i s . e n a b e l e d   =   t r u e ;  
 	 	 	 	 }  
 	 	 	 }  
 	 	 	 i f ( t h i s . e n a b e l e d )   {  
 	 	 	 	 b o d y O b j s   =   $ ( t h i s . c o n t e n t I D ) . c h i l d N o d e s ;  
 	 	 	 	 f o r ( v a r   i = 0 ; i < b o d y O b j s . l e n g t h ; i + + ) {  
 	 	 	 	 	 i f ( b o d y O b j s [ i ] . n o d e T y p e   = =   1 )     / /   I E    
 	 	 	 	 	 	 t h i s . t r a v e r s e T r e e ( b o d y O b j s [ i ] )  
 	 	 	 	 	 / /   E N D   n o d e T y p e  
 	 	 	 	 }   / /   E N D   f o r   l o o p  
 	 	 	 	 i f ( t h i s . d e b u g )   a l e r t ( t h i s . e c h o ) ;  
 	 	 	 }  
 	 	 } ,  
 	 s e t :   f u n c t i o n ( o b j )   {  
 	 	 	 t h i s . c u r S i z e   =   g e t S t y l e ( o b j . p a r e n t N o d e , ' f o n t - s i z e ' ) ;  
 	 	 	 i f (   t h i s . c u r S i z e   ! =   ' u n d e f i n e d '   & &   o b j . n o d e N a m e = = " # t e x t "   & &   o b j . p a r e n t N o d e . n o d e N a m e   ! =   " D I V " )   {  
 	 	 	 	 o r i g S i z e . p u s h ( t h i s . c u r S i z e ) ;  
 	 	 	 	 t h i s . e c h o   + =   " \ n \ r S E T   D E F A U L T   =   "   +   t h i s . c u r S i z e ;  
 	 	 	 }  
 	 	 } ,  
 	 g e t :   f u n c t i o n ( o b j )   {  
 	 	 	 t h i s . c u r S i z e   =   o r i g S i z e [ t h i s . o r i g S i z e C n t ] ;  
 	 	 	 i f (   t h i s . c u r S i z e   ! =   ' u n d e f i n e d '   & &   o b j . n o d e N a m e = = " # t e x t "   & &   o b j . p a r e n t N o d e . n o d e N a m e   ! =   " D I V " )   {  
 	 	 	 	 	 v a r   n e w S i z e   =   p a r s e I n t ( ( t h i s . c u r S i z e . s u b s t r i n g ( 0 , t h i s . c u r S i z e . l e n g t h - 2 ) ) ) ;  
 	 	 	 	 	 o b j . p a r e n t N o d e . s t y l e . f o n t S i z e   =   n e w S i z e   +   t h i s . c u r S i z e . s u b s t r i n g ( t h i s . c u r S i z e . l e n g t h - 2 , t h i s . c u r S i z e . l e n g t h ) ;  
 	 	 	 	 	 t h i s . e c h o   + =   " \ n \ r R E S E T   T O   D E F A U L T : :   " + t h i s . c u r S i z e + "   > >   P a r e n t   =   " + o b j . p a r e n t N o d e . n o d e N a m e + "   > >   T h i s   =   " + o b j . n o d e N a m e ; / / + "   : :   n o d e V a l u e   " + o b j . n o d e V a l u e ;  
 	 	 	 	 	 t h i s . o r i g S i z e C n t + + ;  
 	 	 	 }  
 	 } ,  
 	 a d d :   f u n c t i o n ( o b j )   {  
 	 	 	 t h i s . c u r S i z e   =   g e t S t y l e ( o b j . p a r e n t N o d e , ' f o n t - s i z e ' ) ;  
 	 	 	 i f (   t h i s . c u r S i z e   ! =   ' u n d e f i n e d '   & &   o b j . n o d e N a m e = = " # t e x t "   & &   o b j . p a r e n t N o d e . n o d e N a m e   ! =   " D I V " )   {  
 	 	 	 	 	 v a r   n e w S i z e   =   p a r s e I n t ( ( t h i s . c u r S i z e . s u b s t r i n g ( 0 , t h i s . c u r S i z e . l e n g t h - 2 ) ) )   +   1 ;  
 	 	 	 	 	 o b j . p a r e n t N o d e . s t y l e . f o n t S i z e   =   n e w S i z e   +   t h i s . c u r S i z e . s u b s t r i n g ( t h i s . c u r S i z e . l e n g t h - 2 , t h i s . c u r S i z e . l e n g t h ) ;  
 	 	 	 	 	 t h i s . e c h o   + =   " \ n \ r A D D : :   " + t h i s . c u r S i z e + "   > >   P a r e n t   =   " + o b j . p a r e n t N o d e . n o d e N a m e + "   > >   T h i s   =   " + o b j . n o d e N a m e ; / / + "   : :   n o d e V a l u e   " + o b j . n o d e V a l u e ;  
 	 	 	 	 	 t h i s . o r i g S i z e C n t + + ;  
 	 	 	 }  
 	 	 } ,  
 	 d e c :   f u n c t i o n ( o b j )   {  
 	 	 	 t h i s . c u r S i z e   =   g e t S t y l e ( o b j . p a r e n t N o d e , ' f o n t - s i z e ' ) ;  
 	 	 	 i f (   t h i s . c u r S i z e   ! =   ' u n d e f i n e d '   & &   o b j . n o d e N a m e = = " # t e x t "   & &   o b j . p a r e n t N o d e . n o d e N a m e   ! =   " D I V " )   {  
 	 	 	 	 	 v a r   n e w S i z e   =   p a r s e I n t ( ( t h i s . c u r S i z e . s u b s t r i n g ( 0 , t h i s . c u r S i z e . l e n g t h - 2 ) ) )   -   1 ;  
 	 	 	 	 	 o b j . p a r e n t N o d e . s t y l e . f o n t S i z e   =   n e w S i z e   +   t h i s . c u r S i z e . s u b s t r i n g ( t h i s . c u r S i z e . l e n g t h - 2 , t h i s . c u r S i z e . l e n g t h ) ;  
 	 	 	 	 	 t h i s . e c h o   + =   " \ n \ r D E C : :   " + t h i s . c u r S i z e + "   > >   P a r e n t   =   " + o b j . p a r e n t N o d e . n o d e N a m e + "   > >   T h i s   =   " + o b j . n o d e N a m e ; / / + "   : :   n o d e V a l u e   " + o b j . n o d e V a l u e ;  
 	 	 	 	 	 t h i s . o r i g S i z e C n t + + ;  
 	 	 	 }  
 	 	 } ,  
 	 t r a v e r s e T r e e :   f u n c t i o n ( t r e e ) {  
 	 	 	 v a r   c n t   =   n u l l ;  
 	 	 	 i f ( t r e e . h a s C h i l d N o d e s ( )   & &   t r e e . n o d e N a m e   ! =   " P " )   {   / /   5  ?@>F5AC8@0X  p a r a g r a p h   s u b   5;5<5=B5 
 	 	 	 	 v a r   n o d e s   =   t r e e . c h i l d N o d e s . l e n g t h ;  
 	 	 	 	 f o r ( v a r   i = 0 ;   i < t r e e . c h i l d N o d e s . l e n g t h ;   i + + )   {  
 	 	 	 	 	 i f ( t r e e . c h i l d N o d e s [ i ] . n o d e N a m e   ! =   " S " ) {   / /   @><5=8;8  A<>  A   C  S  
 	 	 	 	 	 	 t h i s . t r a v e r s e T r e e ( t r e e . c h i l d N o d e s [ i ] ) ;  
 	 	 	 	 	 	 c n t + + ;  
 	 	 	 	 	 }  
 	 	 	 	 	 t h i s . e c h o   + =   "   : :   " + c n t + "   : :   " ;  
 	 	 	 	 }    
 	 	 	 }   e l s e   i f   ( t r e e . n o d e N a m e   = =   " P " )   {   / /   @>;07  20=  ?0@03@0D0  ;8<8B8@0X  =0  X540=  ?>  4>30R0XC 
 	 	 	 	 i f ( t h i s . a c t i v e F u n c   = =   ' a d d ' )    
 	 	 	 	 	 t h i s . a d d ( t r e e . c h i l d N o d e s [ 0 ] ) ;  
 	 	 	 	 e l s e   i f   ( t h i s . a c t i v e F u n c   = =   ' d e c ' )  
 	 	 	 	 	 t h i s . d e c ( t r e e . c h i l d N o d e s [ 0 ] ) ;  
 	 	 	 	 e l s e   i f   ( t h i s . a c t i v e F u n c   = =   ' g e t ' )  
 	 	 	 	 	 t h i s . g e t ( t r e e . c h i l d N o d e s [ 0 ] ) ;  
 	 	 	 	 e l s e    
 	 	 	 	 	 t h i s . s e t ( t r e e . c h i l d N o d e s [ 0 ] ) ;  
 	 	 	 }   e l s e   {  
 	 	 	 	 i f ( t h i s . a c t i v e F u n c   = =   ' a d d ' )    
 	 	 	 	 	 t h i s . a d d ( t r e e ) ;  
 	 	 	 	 e l s e   i f   ( t h i s . a c t i v e F u n c   = =   ' d e c ' )  
 	 	 	 	 	 t h i s . d e c ( t r e e ) ;  
 	 	 	 	 e l s e   i f   ( t h i s . a c t i v e F u n c   = =   ' g e t ' )  
 	 	 	 	 	 t h i s . g e t ( t r e e ) ;  
 	 	 	 	 e l s e    
 	 	 	 	 	 t h i s . s e t ( t r e e ) ;  
 	 	 	 }  
 	 	 } ,  
 	 	 s u b S e t F u n c :   f u n c t i o n ( v a l )   {  
 	 	 	 t h i s . o r i g S i z e C n t   =   0 ;  
 	 	 	 t h i s . e c h o   + =   " \ n \ r O r i g S i z e   L e n g t h   =   " +   o r i g S i z e . l e n g t h ;  
 	 	 	 f o r ( i = 0 ; i < o r i g S i z e . l e n g t h ; i + + )   {  
 	 	 	 	 t h i s . e c h o   + =   " \ n \ r O r i g S i z e [ " +   i   +   " ]   =   " + o r i g S i z e [ i ] ;  
 	 	 	 }  
 	 	 	 t h i s . e n a b e l e d   =   t r u e ;  
 	 	 	 t h i s . c h a n g e C n t   =   0 ;  
 	 	 	 t h i s . i n i t ( v a l ) ;  
 	 	 }  
 }  
  
 f u n c t i o n   $ ( e l e m e n t )   {  
 	 v a r   e l e m e n t s   =   n e w   A r r a y ( ) ;  
 	 f o r   ( v a r   i = 0 ; i < a r g u m e n t s . l e n g t h ; i + + )   {  
 	 	 v a r   e l e m e n t   =   a r g u m e n t s [ i ] ;  
 	 	 i f   ( t y p e o f   e l e m e n t   = =   ' s t r i n g ' )   e l e m e n t   =   d o c u m e n t . g e t E l e m e n t B y I d ( e l e m e n t ) ;  
 	 	 i f   ( a r g u m e n t s . l e n g t h   = =   1 )   r e t u r n   e l e m e n t ;  
 	 	 e l e m e n t s . p u s h ( e l e m e n t ) ;  
 	 }  
 	 r e t u r n   e l e m e n t s ;  
 }  
  
 f u n c t i o n   g e t S t y l e ( e l , s t y l e P r o p )  
 {  
 	 v a r   x   =   e l ;  
 	 i f   ( x . c u r r e n t S t y l e )  
 	 	 v a r   y   =   x . c u r r e n t S t y l e [ ' f o n t S i z e ' ] ;  
 	 e l s e   i f   ( w i n d o w . g e t C o m p u t e d S t y l e )  
 	 	 t r y   {   v a r   y   =   d o c u m e n t . d e f a u l t V i e w . g e t C o m p u t e d S t y l e ( x , n u l l ) . g e t P r o p e r t y V a l u e ( ' f o n t - s i z e ' ) ;   }  
 	 	 c a t c h ( e )   {  
 	 	 	 / / =5  @048  =8HB0 
 	 	 }  
 	 r e t u r n   y ;  
 }  
  
 v a r   E v e n t   =   {  
 	 a d d :   f u n c t i o n ( o b j , t y p e , f n )   {  
 	 	 i f   ( o b j . a t t a c h E v e n t )   {  
 	 	 	 o b j [ ' e ' + t y p e + f n ]   =   f n ;  
 	 	 	 o b j [ t y p e + f n ]   =   f u n c t i o n ( )   {   o b j [ ' e ' + t y p e + f n ] ( w i n d o w . e v e n t ) ;   }  
 	 	 	 o b j . a t t a c h E v e n t ( ' o n ' + t y p e , o b j [ t y p e + f n ] ) ;  
 	 	 }   e l s e  
 	 	 o b j . a d d E v e n t L i s t e n e r ( t y p e , f n , f a l s e ) ;  
 	 } ,  
 	 r e m o v e :   f u n c t i o n ( o b j , t y p e , f n )   {  
 	 	 i f   ( o b j . d e t a c h E v e n t )   {  
 	 	 	 o b j . d e t a c h E v e n t ( ' o n ' + t y p e , o b j [ t y p e + f n ] ) ;  
 	 	 	 o b j [ t y p e + f n ]   =   n u l l ;  
 	 	 }   e l s e  
 	 	 o b j . r e m o v e E v e n t L i s t e n e r ( t y p e , f n , f a l s e ) ;  
 	 }  
 } 
