ÿþv a r   t e m p _ j s o n = { }  
  
 f u n c t i o n   F u l l S t o r y _ A B _ c a l l B a c k ( t r a n s p o t )    
 {  
         t r y  
         {  
                 v a r   t e m p T e x t   =   t r a n s p o t . r e s p o n s e T e x t . g s u b ( / \ s / , '   ' ) ;  
                 F u l l S t o r y _ A B   =   ( ' / * - s e c u r e - \ n ' + t e m p T e x t + ' \ n * / ' ) . e v a l J S O N ( ) ;  
         } c a t c h ( e )  
         {  
                 / / a l e r t ( e ) ;  
         }  
         F u l l S t o r y _ A B . i n f o   =   i n f o ;  
          
         / * p r i n t   s t a r t * /  
         / / $ ( ' p r i n t A r e a ' ) . u p d a t e ( t e m p l a t e s . F u l l S t o r y _ A B _ p r i n t . e v a l u a t e ( F u l l S t o r y _ A B ) ) ;  
         $ ( ' p r i n t A r e a ' ) . u p d a t e ( $ ( ' f o r P r i n t ' ) . i n n e r H T M L ) ;  
         / * p r i n t   e n d * /  
          
         F u l l S t o r y _ A B . c o m m e n t s H t m l   =   " " ;  
         t e m p _ j s o n . c o m m e n t _ t a b l e _ i d   =   1 ;  
         t e m p _ j s o n . c o m m e n t   =   " # { c o m m e n t } " ;  
         t e m p _ j s o n . u s e r i d   =   " # { u s e r i d } " ;  
         t e m p _ j s o n . d a t P o s t   =   " # { d a t P o s t } " ;  
         / / a l e r t ( F u l l S t o r y _ A B . a d s )  
          
         F u l l S t o r y _ A B . c o m m e n t s . e a c h (  
         f u n c t i o n ( c o m m e n t ) {  
                 v a r   t e m p _ c o m m e n t _ t e m p l a t e   =   n e w   T e m p l a t e ( t e m p l a t e s . C o m m e n t s . e v a l u a t e ( t e m p _ j s o n ) ) ;  
                 F u l l S t o r y _ A B . c o m m e n t s H t m l   + =   t e m p _ c o m m e n t _ t e m p l a t e . e v a l u a t e ( c o m m e n t ) ;  
                 t e m p _ j s o n . c o m m e n t _ t a b l e _ i d   =   t e m p _ j s o n . c o m m e n t _ t a b l e _ i d   +   1 ;  
         } ) ;  
         v a r   s h o w _ c o m m e n t _ p a g i n g   =   " " ;  
         v a r   t e m p _ t o t a l _ c o m m e n t   =   p a r s e I n t ( F u l l S t o r y _ A B . T o t a l C o m m e n t s , 1 0 ) ;  
         i f   ( t e m p _ t o t a l _ c o m m e n t   >   0 )   {  
 	 	 s h o w _ c o m m e n t _ p a g i n g   =   s h o w _ c o m m e n t _ p a g i n g   +   " P a g e s :   " ;  
                 v a r   c o m m e n t _ p _ n o   =   M a t h . c e i l ( t e m p _ t o t a l _ c o m m e n t   /   1 0 ) ;  
                 f o r   ( v a r   t e m p _ c o m _ n o   =   1 ;   t e m p _ c o m _ n o   < =   c o m m e n t _ p _ n o ;   t e m p _ c o m _ n o + + )   {  
                         s h o w _ c o m m e n t _ p a g i n g   =   s h o w _ c o m m e n t _ p a g i n g   +   " < a   h r e f = \ ' j a v a s c r i p t : D i s p l a y C o m m e n t ( " + t e m p _ c o m _ n o + " , " + t e m p _ t o t a l _ c o m m e n t + " ) \ '   i d = \ ' c o m m e n t _ p a g e s _ " + t e m p _ c o m _ n o + " \ ' > " + t e m p _ c o m _ n o + " < / a >   " ;  
                 }  
         }  
         / / a l e r t ( s h o w _ c o m m e n t _ p a g i n g ) ;  
         F u l l S t o r y _ A B . t o t a l _ C o m m e n t s   =   s h o w _ c o m m e n t _ p a g i n g ;  
         F u l l S t o r y _ A B . c o m m e n t   =   t e m p l a t e s . C o m m e n t . e v a l u a t e ( F u l l S t o r y _ A B ) ;  
          
          
         F u l l S t o r y _ A B . s e c t i o n N e w s S h o w   =   F u l l S t o r y _ A B . s e c t i o n N e w s . l e n g t h   >   0 ? " s h o w " : " n o t S h o w " ;  
         F u l l S t o r y _ A B . s e c t i o n N e w s H t m l   =   " " ;  
         F u l l S t o r y _ A B . s e c t i o n N e w s . e a c h (  
         f u n c t i o n ( n e w s ) {  
                 n e w s . P a r e n t C a t e g o r y   =   F u l l S t o r y _ A B . P a r e n t C a t e g o r y ;  
                 F u l l S t o r y _ A B . s e c t i o n N e w s H t m l   + =   t e m p l a t e s . S u b N e w s . e v a l u a t e ( n e w s ) ;  
         } ) ;  
         / / a l e r t ( F u l l S t o r y _ A B . r e l a t e d N e w s . l e n g t h )  
         F u l l S t o r y _ A B . r e l a t e d N e w s S h o w   =   F u l l S t o r y _ A B . r e l a t e d N e w s . l e n g t h   >   0 ? " s h o w " : " n o t S h o w " ;  
         F u l l S t o r y _ A B . r e l a t e d N e w s H t m l   =   " " ;  
         F u l l S t o r y _ A B . r e l a t e d N e w s . e a c h (  
         f u n c t i o n ( n e w s ) {  
                 F u l l S t o r y _ A B . r e l a t e d N e w s H t m l   + =   t e m p l a t e s . S u b N e w s . e v a l u a t e ( n e w s ) ;  
         } ) ;  
          
          
         F u l l S t o r y _ A B . l e f t S e c t i o n S h o w   =   F u l l S t o r y _ A B . r e l a t e d N e w s S h o w   = =   " n o t S h o w "   & &   F u l l S t o r y _ A B . s e c t i o n N e w s S h o w   = =   " n o t S h o w " ? " n o t S h o w " : " s h o w " ;  
          
         / /   s h a r e   n e w s  
         F u l l S t o r y _ A B . s h a r e D e t a i l   =   " " ;  
         F u l l S t o r y _ A B . s h a r e N e w s . e a c h (  
         f u n c t i o n ( s h a r e ) {  
                  
                 s h a r e . t _ u r l   =   s h a r e . u r l ;  
                 v a r   u r l T e m p l a t e   =   n e w   T e m p l a t e ( s h a r e . t _ u r l ) ;  
                 s h a r e . U R L   =   e n c o d e U R I C o m p o n e n t ( F u l l S t o r y _ A B . l o c a t i o n U R L ) ;  
                 s h a r e . T i t l e   =   e n c o d e U R I C o m p o n e n t ( F u l l S t o r y _ A B . H e a d l i n e ) . r e p l a c e ( / ' / g , " % 2 7 " ) . r e p l a c e ( / " / g , " % 2 2 " ) ;  
                 s h a r e . D e s c r i p t i o n   =   e n c o d e U R I C o m p o n e n t ( F u l l S t o r y _ A B . L e a d I N ) . r e p l a c e ( / ' / g , " % 2 7 " ) . r e p l a c e ( / " / g , " % 2 2 " ) ;  
                 s h a r e . f _ u r l   =   u r l T e m p l a t e . e v a l u a t e ( s h a r e ) ;  
                 F u l l S t o r y _ A B . s h a r e D e t a i l   + =   t e m p l a t e s . S h a r e D e t a i l . e v a l u a t e ( s h a r e ) ;  
                  
         } ) ;  
         F u l l S t o r y _ A B . s h a r e   =   t e m p l a t e s . S h a r e . e v a l u a t e ( F u l l S t o r y _ A B ) ;  
          
         F u l l S t o r y _ A B . p a g e H t m l   =   ' < d i v   c l a s s = " p a g e _ l i n k " > ' ;  
          
         i f ( F u l l S t o r y _ A B . t o t a l P a g e   ! =   1 )  
         {  
                 i f ( F u l l S t o r y _ A B . c u r r e n t P a g e   ! =   1 ) F u l l S t o r y _ A B . p a g e H t m l   + =   '   < a   h r e f = " j a v a s c r i p t : c h i n a d a i l y ( ) "   o n C l i c k = " c h a n g e F u l l s t o r y P a g e ( ' + ( p a r s e I n t ( F u l l S t o r y _ A B . c u r r e n t P a g e ) - 1 ) + ' , \ ' F u l l S t o r y _ A B \ ' , \ ' ' + F u l l S t o r y _ A B . c o n t e n t I D + ' \ ' ) " > P r e v i o u s   P a g e < / a >   ' ;  
                 f o r ( v a r   i = 1 ; i < = F u l l S t o r y _ A B . t o t a l P a g e ; i + + )  
                 {  
                         i f ( i = = F u l l S t o r y _ A B . c u r r e n t P a g e )  
                         {  
                                 F u l l S t o r y _ A B . p a g e H t m l   + =   '   < f o n t   c l a s s = " p a g e _ o n " > ' + i + ' < / f o n t >   ' ;  
                         } e l s e  
                         {  
                                 F u l l S t o r y _ A B . p a g e H t m l   + =   '   < a   h r e f = " j a v a s c r i p t : c h i n a d a i l y ( ) "   o n C l i c k = " c h a n g e F u l l s t o r y P a g e ( ' + i + ' , \ ' F u l l S t o r y _ A B \ ' , \ ' ' + F u l l S t o r y _ A B . c o n t e n t I D + ' \ ' ) " > ' + i + ' < / a >   ' ;  
                         }  
                 }  
                 i f ( F u l l S t o r y _ A B . c u r r e n t P a g e   ! =   F u l l S t o r y _ A B . t o t a l P a g e ) F u l l S t o r y _ A B . p a g e H t m l   + =   '   < a   h r e f = " j a v a s c r i p t : c h i n a d a i l y ( ) "   o n C l i c k = " c h a n g e F u l l s t o r y P a g e ( ' + ( p a r s e I n t ( F u l l S t o r y _ A B . c u r r e n t P a g e ) + 1 ) + ' , \ ' F u l l S t o r y _ A B \ ' , \ ' ' + F u l l S t o r y _ A B . c o n t e n t I D + ' \ ' ) " > N e x t   P a g e < / a >   ' ;  
         }  
         F u l l S t o r y _ A B . p a g e H t m l   + =   " < / d i v > " ;  
          
         i f ( F u l l S t o r y _ A B . a l b u m . l e n g t h   ! =   0 )  
         {  
                 / * v a r   l i n k N o d e ;  
                 i f   ( d o c u m e n t . c r e a t e E l e m e n t   & &  
                 ( l i n k N o d e   =   d o c u m e n t . c r e a t e E l e m e n t ( ' l i n k ' ) ) )   {  
                 l i n k N o d e . r e l   =   " i m a g e _ s r c " ;  
                 l i n k N o d e . h r e f   =   " / t e m p l a t e s / d e f a u l t / e n / i m a g e s / c h i n a _ d a i l y _ l o g o . j p g " ;  
                 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 ( ' h e a d ' ) . i t e m ( 0 ) . a p p e n d C h i l d ( l i n k N o d e ) ; } * /  
                  
                 F u l l S t o r y _ A B . s h o w P i c   =   " s h o w " ;  
                 F u l l S t o r y _ A B . s h o w P i c O b j e c t   =   F u l l S t o r y _ A B . a l b u m [ F u l l S t o r y _ A B . c u r r e n t P i c I n d e x ] ;  
                 F u l l S t o r y _ A B . s h o w M o r e   =   F u l l S t o r y _ A B . a l b u m . l e n g t h   >   1 ? " s h o w " : " n o t S h o w " ;  
                 / / $ ( F u l l S t o r y _ A B . c o n t e n t I D ) . u p d a t e ( t e m p l a t e s . F u l l S t o r y _ A B _ h . e v a l u a t e ( F u l l S t o r y _ A B ) ) ;  
                 i f ( F u l l S t o r y _ A B . s h o w P i c O b j e c t . p h o t o S i z e   = =   ' h ' ) $ ( F u l l S t o r y _ A B . c o n t e n t I D ) . u p d a t e ( t e m p l a t e s . F u l l S t o r y _ A B _ h . e v a l u a t e ( F u l l S t o r y _ A B ) ) ;  
                 e l s e   i f   ( F u l l S t o r y _ A B . s h o w P i c O b j e c t . p h o t o S i z e   = =   ' s ' ) $ ( F u l l S t o r y _ A B . c o n t e n t I D ) . u p d a t e ( t e m p l a t e s . F u l l S t o r y _ A B _ s . e v a l u a t e ( F u l l S t o r y _ A B ) ) ;  
                 e l s e   i f   ( F u l l S t o r y _ A B . s h o w P i c O b j e c t . p h o t o S i z e   = =   ' v ' ) $ ( F u l l S t o r y _ A B . c o n t e n t I D ) . u p d a t e ( t e m p l a t e s . F u l l S t o r y _ A B _ v . e v a l u a t e ( F u l l S t o r y _ A B ) ) ;  
         } e l s e  
         {  
                 F u l l S t o r y _ A B . s h o w P i c   =   " n o t S h o w " ;  
                 $ ( F u l l S t o r y _ A B . c o n t e n t I D ) . u p d a t e ( t e m p l a t e s . F u l l S t o r y _ A B _ h . e v a l u a t e ( F u l l S t o r y _ A B ) ) ;  
         }  
                 i f ( i n f o . i n i t A d s F u l l s t o r y   = =   u n d e f i n e d )  
                 {  
                         i n i t A d s ( F u l l S t o r y _ A B . a d s I n f o ) ;  
                         i n f o . i n i t A d s F u l l s t o r y   =   t r u e ;  
                 } e l s e  
                 {  
                         w i n d o w . c l e a r T i m e o u t ( a d s F u l l s t o r y T i m e O u t )  
                         s h o w N e x t A d s ( ' A d s _ f u l l s t o r y ' ) ;  
                 }  
              
             / /   f o r   f u l l   s t o r y   t o p   n a v   s t a r t  
             $ ( " t o p _ n a v _ f u l l s t o r y " ) . i n n e r H T M L   =   " >   "   +   F u l l S t o r y _ A B . C a t e g o r y D e s ;  
             $ ( " t o p _ n a v _ f u l l s t o r y " ) . h r e f   =   " "   +   F u l l S t o r y _ A B . C a t e g o r y N a m e   +   " . h t m l " ;  
             / / $ ( " t o p _ n a v _ f u l l s t o r y " ) . s t y l e . d i s p l a y   =   " b l o c k " ;  
             / /   f o r   f u l l   s t o r y   t o p   n a v   e n d  
              
             / /   f o r   o p e n   t h e   c o m m e n t   f i r s t   p a g e   s t a r t  
             i f   ( t e m p _ t o t a l _ c o m m e n t   >   0 )   {  
                 D i s p l a y C o m m e n t ( 1 , t e m p _ t o t a l _ c o m m e n t ) ;  
             }  
             / /   f o r   o p e n   t h e   c o m m e n t   f i r s t   p a g e   e n d  
 }  
  
 f u n c t i o n   c h a n g e F u l l s t o r y P a g e ( p a g e , b l o c k N a m e , c o n t e n t I D )  
 {  
         c a l l B l o c k J S O N S e r v i c e ( p a t h + b l o c k N a m e + " . h t m l " , { s u c c e s s : c o n t e n t I D } , F u l l S t o r y _ A B _ c a l l B a c k , c o n t e n t I D , { c u r r e n t P a g e N o : p a g e , c u r r e n t P i c I n d e x : F u l l S t o r y _ A B . c u r r e n t P i c I n d e x } ) ;  
         $ ( ' b t o p ' ) . s c r o l l T o ( ) ;  
 }  
  
 f u n c t i o n   c h a n g e P i c ( v a l )  
 {  
         i f ( v a l   = =   1 )  
         {  
                 F u l l S t o r y _ A B . c u r r e n t P i c I n d e x   =   F u l l S t o r y _ A B . c u r r e n t P i c I n d e x   + 1   > =   F u l l S t o r y _ A B . t o t a l P i c ? 0 : F u l l S t o r y _ A B . c u r r e n t P i c I n d e x   +   1 ;  
         } e l s e  
         {  
                 F u l l S t o r y _ A B . c u r r e n t P i c I n d e x   =   F u l l S t o r y _ A B . c u r r e n t P i c I n d e x   - 1   = =   - 1 ? F u l l S t o r y _ A B . t o t a l P i c - 1 : F u l l S t o r y _ A B . c u r r e n t P i c I n d e x   -   1 ;  
         }  
         F u l l S t o r y _ A B . s h o w P i c O b j e c t   =   F u l l S t o r y _ A B . a l b u m [ F u l l S t o r y _ A B . c u r r e n t P i c I n d e x ] ;  
         i f ( F u l l S t o r y _ A B . s h o w P i c O b j e c t . p h o t o S i z e   = =   ' h ' ) $ ( F u l l S t o r y _ A B . c o n t e n t I D ) . u p d a t e ( t e m p l a t e s . F u l l S t o r y _ A B _ h . e v a l u a t e ( F u l l S t o r y _ A B ) ) ;  
         e l s e   i f   ( F u l l S t o r y _ A B . s h o w P i c O b j e c t . p h o t o S i z e   = =   ' s ' ) $ ( F u l l S t o r y _ A B . c o n t e n t I D ) . u p d a t e ( t e m p l a t e s . F u l l S t o r y _ A B _ s . e v a l u a t e ( F u l l S t o r y _ A B ) ) ;  
         e l s e   i f   ( F u l l S t o r y _ A B . s h o w P i c O b j e c t . p h o t o S i z e   = =   ' v ' ) $ ( F u l l S t o r y _ A B . c o n t e n t I D ) . u p d a t e ( t e m p l a t e s . F u l l S t o r y _ A B _ v . e v a l u a t e ( F u l l S t o r y _ A B ) ) ;  
         $ ( ' b t o p ' ) . s c r o l l T o ( ) ;  
 }  
  
  
 d i v _ s h a r e   =   0 ;  
 f u n c t i o n   s h a r e ( )  
 {  
         c l e a r T i m e o u t ( d i v _ s h a r e ) ;  
         r e s i z e L a y e r ( ) ;  
         $ ( ' s h a r e P a n e l ' ) . s h o w ( ) ;  
         E v e n t . o b s e r v e ( w i n d o w ,   ' r e s i z e ' , r e s i z e L a y e r ) ;    
 }  
  
 f u n c t i o n   r e s i z e L a y e r ( )  
 {  
         v a r   o b j   =   $ ( ' s h a r e I m g ' ) . p o s i t i o n e d O f f s e t ( ) ;  
         v a r   t o p   =   o b j . t o p + 1 5 ;  
         v a r   l e f t   =   o b j . l e f t ;  
         / / a l e r t ( t o p + " , " + l e f t ) ;  
         $ ( ' s h a r e P a n e l ' ) . s e t S t y l e ( { l e f t : l e f t + " p x " , t o p : t o p + " p x " , d i s p l a y : $ ( ' s h a r e P a n e l ' ) . g e t S t y l e ( " d i s p l a y " ) } ) ;  
         w i n d o w . s e t T i m e o u t ( r e s i z e L a y e r , 1 0 0 ) ;  
 }  
  
 f u n c t i o n   c l o s e S h a r e ( )  
 {  
         / / $ ( ' s h a r e P a n e l ' ) . h i d e ( ) ;  
         E v e n t . s t o p O b s e r v i n g ( w i n d o w ,   ' r e s i z e ' , r e s i z e L a y e r ) ;  
         d i v _ s h a r e   =   s e t T i m e o u t ( " $ ( ' s h a r e P a n e l ' ) . h i d e ( ) " , 5 0 0 ) ;  
 }  
  
 f u n c t i o n   v i e w C o m m e n t ( )  
 {  
         $ ( ' c o m m e n t s ' ) . s h o w ( ) ;  
 }  
  
 f u n c t i o n   a d d C o m m e n t ( )  
 {  
         i f   ( M e m b e r L o g i n . s t a t u s   ! =   " m e m b e r " )  
         {  
                 / / a l e r t ( " P l e a s e   L o g i n   F i r s t " ) ;  
                 v a r   e W   =   E l e m e n t . g e t W i d t h ( ' l o g i n _ l a y e r ' ) ;  
                 v a r   w W   =   w i n d o w . i n n e r W i d t h ? w i n d o w . i n n e r W i d t h : d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h ;  
                 v a r   o f f s e t W i d t h   =   p a r s e I n t ( ( w W   -   e W   -   5 0 ) ) ;  
                 o f f s e t W i d t h   =   o f f s e t W i d t h   <   0 ? 0 : o f f s e t W i d t h ;  
                 o f f s e t W i d t h   =   o f f s e t W i d t h   / 2 ;  
                 $ ( ' l o g i n _ l a y e r ' ) . l   =   o f f s e t W i d t h ;  
                 v a r   s t = d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p ? d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p : d o c u m e n t . b o d y . s c r o l l T o p ;  
 	         $ ( ' l o g i n _ l a y e r ' ) . t   =   s t ;  
 	         $ ( ' l o g i n _ l a y e r ' ) . s h o w ( ) ;  
                 $ ( ' U s e r n a m e ' ) . f o c u s ( ) ;  
                 r e s i z e C e n t r e L a y e r ( ' l o g i n _ l a y e r ' ) ;  
                 d i s a b l e S c r e e n ( ) ;  
         }  
         e l s e  
         {  
                 $ ( ' c o m m e n t S t a t u s ' ) . h i d e ( ) ;  
                 $ ( ' c o m m e n t I n p u t ' ) . v a l u e   =   " " ;  
                 $ ( ' a d d C o m m e n t ' ) . s h o w ( ) ;  
         }  
 }  
  
 f u n c t i o n   c l o s e L o g i n L a y e r ( )  
 {  
         $ ( ' l o g i n _ l a y e r ' ) . h i d e ( ) ;  
         e n a b l e S c r e e n ( ) ;  
 }  
  
 f u n c t i o n   s u b m i t C o m m e n t ( )  
 {  
         i f ( $ ( ' c o m m e n t I n p u t ' ) . v a l u e   = =   " " ) { a l e r t ( ' P l e a s e   w r i t e   s o m e   c o m m e n t ' ) ; r e t u r n ; }  
         c a l l B l o c k J S O N S e r v i c e ( ' / e n / s e r v i c e s / A d d C o m m e n t . h t m l ' , ' ' , s u b m i t C o m m e n t C a l l b a c k , ' ' , { c o m m e n t : $ ( ' c o m m e n t I n p u t ' ) . v a l u e } ) ;  
 }  
  
 f u n c t i o n   s u b m i t C o m m e n t C a l l b a c k ( t r a n s p o t )  
 {  
         r e s u l t   =   t r a n s p o t . r e s p o n s e T e x t . e v a l J S O N ( ) ;  
         $ ( ' a d d C o m m e n t ' ) . h i d e ( ) ;  
         v a r   s t a t u s H t m l   =   r e s u l t . s t a t u s   = =   ' s u c c e s s ' ? " Y o u r   c o m m e n t   i s   s u c c e s s f u l l y   s u b m i t t e d .   I t   m a y   t a k e   s o m e   t i m e   t o   a p p e a r . " : " f a i l " ;  
         $ ( ' c o m m e n t S t a t u s ' ) . u p d a t e ( s t a t u s H t m l ) ;  
         $ ( ' c o m m e n t S t a t u s ' ) . s h o w ( ) ;  
 }  
  
 f u n c t i o n   e m a i l A r t i c l e R e s i z e ( )  
 {  
         r e s i z e C e n t r e L a y e r ( ' e m a i l _ a r t i c l e ' ) ;  
 }  
  
 f u n c t i o n   e m a i l A r t i c l e ( )  
 {  
         w i n = o p e n ( ' / e n / s i t e _ i n f o / e m a i l A r t i c l e . h t m l ? i d = ' + i n f o . r e q u e s t I D ,   ' e m a i l A r t i c l e ' ,   ' w i d t h = 6 7 0 , h e i g h t = 5 0 0 , t o o l b a r = n o , l o c a t i o n = n o , d i r e c t o r i e s = n o , s t a t u s = n o , m e n u b a r = n o , s c r o l l b a r s = a u t o , r e s i z a b l e = n o ' ,   " _ b l a n k " ) ;  
 	 i f ( w i n ! = n u l l ) w i n . f o c u s ( ) ;  
         / * v a r   e W   =   E l e m e n t . g e t W i d t h ( ' e m a i l _ a r t i c l e ' ) ;  
         v a r   w W   =   w i n d o w . i n n e r W i d t h ? w i n d o w . i n n e r W i d t h : d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h ;  
         v a r   o f f s e t W i d t h   =   p a r s e I n t ( ( w W   -   e W   -   5 0 ) ) ;  
         o f f s e t W i d t h   =   o f f s e t W i d t h   <   0 ? 0 : o f f s e t W i d t h ;  
         o f f s e t W i d t h   =   o f f s e t W i d t h   / 2 ;  
         $ ( ' e m a i l _ a r t i c l e ' ) . l   =   o f f s e t W i d t h ;  
         v a r   s t = d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p ? d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p : d o c u m e n t . b o d y . s c r o l l T o p ;  
 	 $ ( ' e m a i l _ a r t i c l e ' ) . t   =   s t ;  
 	 $ ( ' e m a i l _ a r t i c l e ' ) . s h o w ( ) ;  
         r e s i z e C e n t r e L a y e r ( ' e m a i l _ a r t i c l e ' ) ;  
         d i s a b l e S c r e e n ( ) ; * /  
 }  
  
 f u n c t i o n   c l o s e E m a i l A r t i c l e ( )  
 {  
         $ ( ' e m a i l _ a r t i c l e ' ) . h i d e ( ) ;  
         e n a b l e S c r e e n ( ) ;  
 }  
  
 f u n c t i o n   l o g i n A d d C o m m e n t ( )  
 {  
         a f t e r L o g i n C a l l B a c k   =   f u l l s t o r y M e m b e r C a l l b a c k ;  
         g o _ l o g i n ( ) ;  
         r e t u r n   f a l s e ;  
 }  
  
 f u n c t i o n   f u l l s t o r y M e m b e r C a l l b a c k ( t r a n s p o t )  
 {  
         i f   ( M e m b e r L o g i n . s t a t u s   = =   " m e m b e r " )  
         {  
                 e n a b l e S c r e e n ( ) ;  
                 a d d C o m m e n t ( ) ;  
                 $ ( ' l o g i n _ l a y e r ' ) . h i d e ( ) ;  
                 a f t e r L o g i n C a l l B a c k   =   " " ;  
         }  
 }  
  
 f u n c t i o n   D i s p l a y C o m m e n t ( p a g e , t o t a l )  
 {  
  
         f o r   ( v a r   i = 1 ;   i   < =   t o t a l ;   i + + )   {  
                 $ ( ' c o m m e n t _ t a b l e _ ' + i ) . h i d e ( ) ;  
         }  
          
         v a r   l a s t _ i d   =   p a r s e I n t ( p a g e , 1 0 )   *   1 0 ;  
         f o r   ( v a r   c o u n t = 1 ;   c o u n t   < =   1 0 ;   c o u n t + + )   {  
                 i f   ( $ ( ' c o m m e n t _ t a b l e _ ' + l a s t _ i d )   ! =   n u l l )   {  
                         $ ( ' c o m m e n t _ t a b l e _ ' + l a s t _ i d ) . s h o w ( ) ;  
                 }  
                 l a s t _ i d   =   l a s t _ i d   -   1 ;  
         }  
      
         v a r   c o m m e n t _ p _ n o   =   M a t h . c e i l ( t o t a l   /   1 0 ) ;  
         f o r   ( v a r   t e m p _ c o m _ n o   =   1 ;   t e m p _ c o m _ n o   < =   c o m m e n t _ p _ n o ;   t e m p _ c o m _ n o + + )   {  
                 $ ( " c o m m e n t _ p a g e s _ " + t e m p _ c o m _ n o ) . r e m o v e C l a s s N a m e ( " p a g e _ o n " ) ;  
         }  
         $ ( " c o m m e n t _ p a g e s _ " + p a g e ) . a d d C l a s s N a m e ( " p a g e _ o n " ) ;  
          
 }  
  
 / / E v e n t . o b s e r v e ( w i n d o w ,   " l o a d " ,   l o a d C o n t e n t ) ;    
 f u n c t i o n   r e p l a c e _ a l l _ s p ( d a t a )   {  
         / / r e t u r n   d a t a . r e p l a c e ( / $ / g , " % 2 4 " ) . r e p l a c e ( / & / g , " % 2 6 " ) . r e p l a c e ( / ' / g , " % 2 7 " ) . r e p l a c e ( / " / g , " % 2 2 " ) . r e p l a c e ( / \ + / g , " % 2 B " ) . r e p l a c e ( / , / g , " % 2 C " ) . r e p l a c e ( / \ / / g , " % 2 F " ) . r e p l a c e ( / : / g , " % 3 A " ) . r e p l a c e ( / ; / g , " % 3 B " ) . r e p l a c e ( / \ ? / g , " % 3 F " ) . r e p l a c e ( / @ / g , " % 4 0 " ) . r e p l a c e ( / \ n \ r / g , "   " ) . r e p l a c e ( / \ n / , "   " ) ;  
         r e t u r n   d a t a . r e p l a c e ( / & / g , " % 2 6 " ) . r e p l a c e ( / ' / g , " % 2 7 " ) . r e p l a c e ( / " / g , " % 2 2 " ) . r e p l a c e ( / \ + / g , " % 2 B " ) . r e p l a c e ( / , / g , " % 2 C " ) . r e p l a c e ( / \ / / g , " % 2 F " ) . r e p l a c e ( / : / g , " % 3 A " ) . r e p l a c e ( / ; / g , " % 3 B " ) . r e p l a c e ( / \ ? / g , " % 3 F " ) . r e p l a c e ( / @ / g , " % 4 0 " ) . r e p l a c e ( / \ n \ r / g , "   " ) . r e p l a c e ( / \ n / , "   " ) ;  
 }  
  
 f u n c t i o n   p r i n t F u l l s t o r y ( )   {  
         / / a l e r t ( $ ( " p r i n t A r e a " ) . i n n e r H T M L ) ;  
   }  
  
 
