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