ÿþv a r   c n n L o c k T o g g l e   =   f a l s e ; 
 
 f u n c t i o n   s h o w S o c i a l I c o n s ( u r l ,   b o o k m a r k T i t l e ,   a l t T i t l e ,   b a s e U r l )  
 {  
          
         v a r   h t m l   =   ' < a   t i t l e = " C h i a   s »  F a c e b o o k "   h r e f = " h t t p : / / w w w . f a c e b o o k . c o m / s h a r e r . p h p ? u = '   +   u r l   +   ' & a m p ; t = '   +   b o o k m a r k T i t l e   +   ' "   t a r g e t = " _ f a c e b o o k " > < i m g   s r c = " '   +   b a s e U r l   +   ' / i m a g e s / i c o / f a c e b o o k . g i f "   a l t = " f a c e b o o k   '   +   a l t T i t l e   +   ' "   w i d t h = " 2 2 "   h e i g h t = " 2 2 "   / > < / a >   ' ;  
         h t m l   + =   ' < a   t i t l e = " C h i a   s »  T w i t t e r "   h r e f = " h t t p : / / t w i t t e r . c o m / h o m e ? s t a t u s = '   +   b o o k m a r k T i t l e   +   '   '   +   u r l   +   ' "   t a r g e t = " _ t w i t t e r " > < i m g   s r c = " '   +   b a s e U r l   +   ' / i m a g e s / i c o / t w i t t e r . g i f "   a l t = " t w i t t e r   '   +   a l t T i t l e   +   ' "   w i d t h = " 2 2 "   h e i g h t = " 2 2 "   / > < / a >   ' ;  
         h t m l   + =   ' < a   t i t l e = " L °u   v à o   D e l . i c i o . u s "   h r e f = " h t t p : / / d e l i c i o u s . c o m / s a v e ? u r l = '   +   u r l   +   ' & a m p ; t i t l e = '   +   b o o k m a r k T i t l e   +   ' "   t a r g e t = " _ d e l i c i o u s " > < i m g   s r c = " '   +   b a s e U r l   +   ' / i m a g e s / i c o / d e l i c i o u s . g i f "   a l t = " d e l i c i o u s   '   +   a l t T i t l e   +   ' "   w i d t h = " 2 2 "   h e i g h t = " 2 2 "   / > < / a >   ' ;  
         h t m l   + =   ' < a   t i t l e = " L °u   v à o   G o o g l e   B o o k m a r k s "   h r e f = " h t t p s : / / w w w . g o o g l e . c o m / b o o k m a r k s / m a r k ? o p = e d i t & b k m k = '   +   u r l   +   ' & a m p ; t i t l e = '   +   b o o k m a r k T i t l e   +   ' "   t a r g e t = " _ g o o g l e " > < i m g   s r c = " '   +   b a s e U r l   +   ' / i m a g e s / i c o / g o o g l e . g i f "   a l t = " g o o g l e   '   +   a l t T i t l e   +   ' "   w i d t h = " 2 2 "   h e i g h t = " 2 2 "   / > < / a > ' ;  
         d o c u m e n t . g e t E l e m e n t B y I d ( ' s o c i a l i c o n s ' ) . i n n e r H T M L   =   h t m l ;  
 }  
 
 f u n c t i o n   C N N _ g e t C o o k i e s ( )   { 
 	 v a r   h a s h   =   n e w   A r r a y ; 
 	 i f   (   d o c u m e n t . c o o k i e   )   { 
 	 	 v a r   c o o k i e s   =   d o c u m e n t . c o o k i e . s p l i t (   ' ;   '   ) ; 
 	 	 f o r   (   v a r   i   =   0 ;   i   <   c o o k i e s . l e n g t h ;   i + +   )   { 
 	 	 	 v a r   n a m e v a l u e P a i r s   =   c o o k i e s [ i ] . s p l i t (   ' = '   ) ; 
 	 	 	 h a s h [ n a m e v a l u e P a i r s [ 0 ] ]   =   u n e s c a p e (   n a m e v a l u e P a i r s [ 1 ]   )   | |   n u l l ; 
 	 	 } 
 	 } 
 	 r e t u r n   h a s h ; 
 } 
 
 f u n c t i o n   C N N _ p a r s e C o o k i e D a t a (   c o o k i e D a t a S t r i n g   )   { 
 	 v a r   c o o k i e V a l u e s   =   n e w   O b j e c t ( ) ; 
 	 v a r   s e p a r a t e P a i r s   =   c o o k i e D a t a S t r i n g . s p l i t (   ' & '   ) ; 
 	 f o r   (   v a r   i   =   0 ;   i   <   s e p a r a t e P a i r s . l e n g t h ;   i + +     )   { 
 	 	 v a r   s e p a r a t e V a l u e s   =   s e p a r a t e P a i r s [ i ] . s p l i t (   ' : '   ) ; 
 	 	 c o o k i e V a l u e s [ s e p a r a t e V a l u e s [ 0 ] ]   =   s e p a r a t e V a l u e s [ 1 ]   | |   n u l l ; 
 	 } 
 	 r e t u r n   c o o k i e V a l u e s ; 
 } 
 
 f u n c t i o n   C N N _ s e t C o o k i e (   n a m e ,   v a l u e ,   h o u r s ,   p a t h ,   d o m a i n ,   s e c u r e   )   { 
 	 	 v a r   n u m H o u r s   =   0 ; 
 
 	 	 i f   (   h o u r s )   { 
 	 	 	 i f   (   ( t y p e o f ( h o u r s )   = =   ' s t r i n g ' )   & &   D a t e . p a r s e ( h o u r s )   )   {   / /   a l r e a d y   a   D a t e   s t r i n g 
 	 	 	 	 n u m H o u r s   =   h o u r s ; 
 	 	 	 }   e l s e   i f   (   t y p e o f ( h o u r s )   = =   ' n u m b e r '   )   {   / /   c a l c u l a t e   D a t e   f r o m   n u m b e r   o f   h o u r s 
 	 	 	 	 n u m H o u r s   =   (   n e w   D a t e ( ( n e w   D a t e ( ) ) . g e t T i m e ( )   +   h o u r s * 3 6 0 0 0 0 0 )   ) . t o G M T S t r i n g ( ) ; 
 	 	 	 } 
 	 	 } 
 
 	 	 d o c u m e n t . c o o k i e   =   n a m e   +   ' = '   +   e s c a p e ( v a l u e )   +   ( ( n u m H o u r s ) ? ( ' ; e x p i r e s = '   +   n u m H o u r s ) : ' ' )   +   ( ( p a t h ) ? ' ; p a t h = '   +   p a t h : ' ' )   +   ( ( d o m a i n ) ? ' ; d o m a i n = '   +   d o m a i n : ' ' )   +   ( ( s e c u r e   & &   ( s e c u r e   = =   t r u e ) ) ? ' ;   s e c u r e ' : ' ' ) ;   / /   S e t   t h e   c o o k i e ,   a d d i n g   a n y   p a r a m e t e r s   t h a t   w e r e   s p e c i f i e d . 
 
 } 
 
 
 f u n c t i o n   C N N _ k i l l C o o k i e (   n a m e ,   p a t h ,   d o m a i n   )   { 
 	 v a r   a l l C o o k i e s   =   C N N _ g e t C o o k i e s ( ) ; 
 
 	 v a r   t h e V a l u e   =   a l l C o o k i e s [   n a m e   ]   | |   n u l l ;   / /   W e   n e e d   t h e   v a l u e   t o   k i l l   t h e   c o o k i e 
 	 i f   (   t h e V a l u e   )   { 
 	 	 d o c u m e n t . c o o k i e   =   n a m e   +   ' = '   +   t h e V a l u e   +   ' ;   e x p i r e s = F r i ,   1 3 - A p r - 1 9 7 0   0 0 : 0 0 : 0 0   G M T '   +   ( ( p a t h ) ? ' ; p a t h = '   +   p a t h : ' ' )   +   ( ( d o m a i n ) ? ' ; d o m a i n = '   +   d o m a i n : ' ' ) ;   / /   s e t   a n   a l r e a d y - e x p i r e d   c o o k i e 
 	 } 
 } 
 
 
 v a r   a l l C o o k i e s   =   C N N _ g e t C o o k i e s ( ) ; 
 v a r   c n n D o m a i n A r r a y   =   l o c a t i o n . h o s t n a m e . s p l i t (   ' . '   ) ; 
 v a r   c n n C u r r D o m a i n   =   (   c n n D o m a i n A r r a y . l e n g t h   >   1   )   ?   ' . '   +   c n n D o m a i n A r r a y [ c n n D o m a i n A r r a y . l e n g t h - 2 ]   +   ' . '   +   c n n D o m a i n A r r a y [ c n n D o m a i n A r r a y . l e n g t h - 1 ]   :   ' ' ; 
 
 v a r   p a g e t y p e T S = " " ; 
 
 f u n c t i o n   c n n R e n d e r T i m e S t a m p ( d a t e , t i m e S t r i n g )   { 
 	 v a r   c n n I s I n t l   =   ( l o c a t i o n . h o s t n a m e . i n d e x O f ( ' l o c a l h o s t ' )   >   - 1 )   ?   t r u e   :   f a l s e ; 
 	 c n n S t o r y P u b l i s h T i m e   =   ( d a t e )   ?   n e w   D a t e ( d a t e )   :   c n n S t o r y P u b l i s h T i m e ; 
 	 v a r   d a y s   =   n e w   A r r a y ( ' C h ç  n h ­t ' , ' T h é  2 ' , ' T h é  3 ' , ' T h é  4 ' , ' T h é  5 ' , ' T h é  6 ' , ' T h é  7 ' ) ; 
 	 v a r   m o n t h s   =   n e w   A r r a y ( ' T h á n g   1 ' ,   ' T h á n g   2 ' ,   ' T h á n g   3 ' ,   ' T h á n g   4 ' ,   ' T h á n g   5 ' ,   ' T h á n g   6 ' ,   ' T h á n g   7 ' ,   ' T h á n g   8 ' ,   ' T h á n g   9 ' ,   ' T h á n g   1 0 ' ,   ' T h á n g   1 1 ' ,   ' T h á n g   1 2 ' ) ; 
 
         v a r   c n n T i m e S t a m p D i f f   =   c n n C u r r T i m e . g e t T i m e ( )   -   c n n S t o r y P u b l i s h T i m e . g e t T i m e ( ) ; 
 
         v a r   d a y s D i f f e r e n c e   =   M a t h . f l o o r ( c n n T i m e S t a m p D i f f / 1 0 0 0 / 6 0 / 6 0 / 2 4 ) ; 
 
         c n n T i m e S t a m p D i f f   - =   d a y s D i f f e r e n c e * 1 0 0 0 * 6 0 * 6 0 * 2 4 
 
         v a r   h o u r s D i f f e r e n c e   =   M a t h . f l o o r ( c n n T i m e S t a m p D i f f / 1 0 0 0 / 6 0 / 6 0 ) ; 
 
         c n n T i m e S t a m p D i f f   - =   h o u r s D i f f e r e n c e * 1 0 0 0 * 6 0 * 6 0 
 
         v a r   m i n u t e s D i f f e r e n c e   =   M a t h . f l o o r ( c n n T i m e S t a m p D i f f / 1 0 0 0 / 6 0 ) ; 
 
         c n n T i m e S t a m p D i f f   - =   m i n u t e s D i f f e r e n c e * 1 0 0 0 * 6 0 
 
 	 v a r   c n n D a y s   =   ( d a y s D i f f e r e n c e   >   1 )   ?   " d a y s "   :   " d a y " ; 
 	 v a r   c n n H o u r s   =   ( h o u r s D i f f e r e n c e   >   1 )   ?   " h o u r s "   :   " h o u r " ; 
 	 v a r   c n n M i n u t e s   =   ( m i n u t e s D i f f e r e n c e   >   1 )   ?   " m i n u t e s "   :   " m i n u t e " ; 
 	 v a r   c n n H P M i n u t e s   =   " m i n " ; 
 	 v a r   c n n C M S T i m e S t r i n g   =   ' ' ; 
 	 v a r   c n n B l a n k S t r i n g   =   " " ; 
 
 	 i f   ( t i m e S t r i n g )   { 
 	 	 c n n C M S T i m e S t r i n g   =   ( c n n I s I n t l )   ?   t i m e S t r i n g [ 0 ]   :   t i m e S t r i n g [ 1 ] ; 
 	 } 	 e l s e   {   / / f o r   l e g a c y   s u p p o r t 
 	 	 c n n C M S T i m e S t r i n g   =   " u p d a t e d   "   +   ( ! c n n I s I n t l   ?   d a y s [ c n n S t o r y P u b l i s h T i m e . g e t U T C D a y ( ) ]   :   ' ' )   +   "   "   +   m o n t h s [ c n n S t o r y P u b l i s h T i m e . g e t U T C M o n t h ( ) ]   +   "   "   +   c n n S t o r y P u b l i s h T i m e . g e t U T C D a t e ( )   +   " ,   "   +   c n n S t o r y P u b l i s h T i m e . g e t U T C F u l l Y e a r ( ) ; 
 	 } 
 
 
 	 i f   ( h o u r s D i f f e r e n c e   >   4   & &   d a y s D i f f e r e n c e   > =   0   | |   d a y s D i f f e r e n c e   > =   1 )   { 
 	 	 s w i t c h ( p a g e t y p e T S )   { 
 	 	 	 c a s e   " h o m e p a g e " :   / / t 2   f o r m a t t e d 
 	 	 	 	 r e t u r n   c n n B l a n k S t r i n g ; 
 	 	 	 b r e a k ; 
 	 	 	 c a s e   " m o s a i c " : 
 	 	 	 	 r e t u r n   " < d i v   c l a s s = \ " c n n G r y T m e S t m p \ " > "   +   c n n C M S T i m e S t r i n g   +   " < \ / d i v > " ; 
 	 	 	 b r e a k ; 
 	 	 	 c a s e   " s e c t i o n " : 
 	 	 	 d e f a u l t : 
 	 	 	 	 i f   ( p a g e t y p e T S   = =   ' s e c t i o n '   & &   c n n I s I n t l )   { 
 	 	 	 	 	 r e t u r n   " < d i v   c l a s s = \ " c n n G r y T m e S t m p \ " > "   +   c n n C M S T i m e S t r i n g   +   " < \ / d i v > " ; 
 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 r e t u r n   " < d i v   c l a s s = \ " c n n G r y T m e S t m p \ " > u p d a t e d   "   +   ( ! c n n I s I n t l   ?   d a y s [ c n n S t o r y P u b l i s h T i m e . g e t U T C D a y ( ) ]   :   ' ' )   +   "   "   +   m o n t h s [ c n n S t o r y P u b l i s h T i m e . g e t U T C M o n t h ( ) ]   +   "   "   +   c n n S t o r y P u b l i s h T i m e . g e t U T C D a t e ( )   +   " ,   "   +   c n n S t o r y P u b l i s h T i m e . g e t U T C F u l l Y e a r ( )   +   " < \ / d i v > " ; 
 	 	 	 	 } 
 	 	 } 
 	 }   e l s e   i f (   h o u r s D i f f e r e n c e   < =   4   & &   h o u r s D i f f e r e n c e   > =   1 )   { 
 	 	 s w i t c h ( p a g e t y p e T S )   { 
 	 	 	 c a s e   " h o m e p a g e " :   / / t 2   f o r m a t t e d 
 	 	 	 	 r e t u r n   c n n B l a n k S t r i n g ; 
 	 	 	 b r e a k ; 
 	 	 	 c a s e   " m o s a i c " : 
 	 	 	 d e f a u l t : 
 	 	 	 	 i f   ( m i n u t e s D i f f e r e n c e   >   0 )   { 
 	 	 	 	 	 r e t u r n   " < d i v   c l a s s = \ " c n n G r y T m e S t m p \ " > u p d a t e d   "   +   h o u r s D i f f e r e n c e   +   "   " + c n n H o u r s + " ,   "   +   m i n u t e s D i f f e r e n c e   +   "   " + c n n M i n u t e s + "   a g o < \ / d i v > " ; 
 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 r e t u r n   " < d i v   c l a s s = \ " c n n G r y T m e S t m p \ " > u p d a t e d   "   +   h o u r s D i f f e r e n c e   +   "   " + c n n H o u r s + "   a g o < \ / d i v > " ; 
 	 	 	 	 } 
 	 	 } 
 	 }   e l s e   { 
 	 	 s w i t c h ( p a g e t y p e T S )   { 
 	 	 	 c a s e   " h o m e p a g e " :   / / t 2   f o r m a t t e d 
 	 	 	 	 i f ( h o u r s D i f f e r e n c e   <   1   & &   m i n u t e s D i f f e r e n c e   >   0 ) { 
 	 	 	 	 	 r e t u r n   ' < s p a n > '   +   m i n u t e s D i f f e r e n c e   +   "   m i n < \ / s p a n > " ; 
 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 r e t u r n   " < s p a n > 1   m i n < \ / s p a n > " ; 
 	 	 	 	 } 
 	 	 	 b r e a k ; 
 	 	 	 c a s e   " m o s a i c " : 
 	 	 	 d e f a u l t : 
 	 	 	 	 i f ( h o u r s D i f f e r e n c e   <   1   & &   m i n u t e s D i f f e r e n c e   >   0 ) { 
 	 	 	 	 	 r e t u r n   " u p d a t e d   "   +   m i n u t e s D i f f e r e n c e   +   "   " + c n n M i n u t e s + "   a g o " ; 
 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 r e t u r n   " u p d a t e d   1   m i n u t e   a g o " ; 
 	 	 	 	 } 
 	 	 } 
 
 	 } 
 } 
 
 f u n c t i o n   c n n R e n d e r B a c k S t o r y T i m e S t a m p ( d a t e , t i m e S t r i n g )   { 
 	 c n n S t o r y P u b l i s h T i m e   =   n e w   D a t e ( d a t e ) ; 
 	 v a r   d a y s   =   n e w   A r r a y ( ' S u n ' , ' M o n ' , ' T u e ' , ' W e d ' , ' T h u r ' , ' F r i ' , ' S a t ' ) ; 
 	 v a r   m o n t h s   =   n e w   A r r a y ( ' J a n u a r y ' ,   ' F e b r u a r y ' ,   ' M a r c h ' ,   ' A p r i l ' ,   ' M a y ' ,   ' J u n e ' ,   ' J u l y ' ,   ' A u g u s t ' ,   ' S e p t e m b e r ' ,   ' O c t o b e r ' ,   ' N o v e m b e r ' ,   ' D e c e m b e r ' ) ; 
         v a r   c n n T i m e S t a m p D i f f   =   c n n C u r r T i m e . g e t T i m e ( )   -   c n n S t o r y P u b l i s h T i m e . g e t T i m e ( ) ; 
         v a r   d a y s D i f f e r e n c e   =   M a t h . f l o o r ( c n n T i m e S t a m p D i f f / 1 0 0 0 / 6 0 / 6 0 / 2 4 ) ; 
         c n n T i m e S t a m p D i f f   - =   d a y s D i f f e r e n c e * 1 0 0 0 * 6 0 * 6 0 * 2 4 
         v a r   h o u r s D i f f e r e n c e   =   M a t h . f l o o r ( c n n T i m e S t a m p D i f f / 1 0 0 0 / 6 0 / 6 0 ) ; 
         c n n T i m e S t a m p D i f f   - =   h o u r s D i f f e r e n c e * 1 0 0 0 * 6 0 * 6 0 
         v a r   m i n u t e s D i f f e r e n c e   =   M a t h . f l o o r ( c n n T i m e S t a m p D i f f / 1 0 0 0 / 6 0 ) ; 
         c n n T i m e S t a m p D i f f   - =   m i n u t e s D i f f e r e n c e * 1 0 0 0 * 6 0 
 	 v a r   c n n D a y s   =   ( d a y s D i f f e r e n c e   >   1 )   ?   " d a y s "   :   " d a y " ; 
 	 v a r   c n n H o u r s   =   ( h o u r s D i f f e r e n c e   >   1 )   ?   " h o u r s "   :   " h o u r " ; 
 	 v a r   c n n M i n u t e s   =   ( m i n u t e s D i f f e r e n c e   >   1 )   ?   " m i n u t e s "   :   " m i n u t e " ; 
 	 v a r   c n n C M S T i m e S t r i n g   =   ' ' ; 
 	 i f   ( t i m e S t r i n g )   { 
 	 	 c n n C M S T i m e S t r i n g   =   t i m e S t r i n g ; 
 	 } 
 	 i f   ( h o u r s D i f f e r e n c e   >   4   & &   d a y s D i f f e r e n c e   > =   0   | |   d a y s D i f f e r e n c e   > =   1 )   { 
 	 	 r e t u r n   " < s p a n   c l a s s = \ " c n n D a t e \ " > "   +   c n n C M S T i m e S t r i n g   +   " < \ / s p a n > " ; 
 	 }   e l s e   i f (   h o u r s D i f f e r e n c e   < =   4   & &   h o u r s D i f f e r e n c e   > =   1 )   { 
 	 	 i f   ( m i n u t e s D i f f e r e n c e   >   0 )   { 
 	 	 	 r e t u r n   " < s p a n   c l a s s = \ " c n n D a t e \ " > u p d a t e d   "   +   h o u r s D i f f e r e n c e   +   "   " + c n n H o u r s + " ,   "   +   m i n u t e s D i f f e r e n c e   +   "   " + c n n M i n u t e s + "   a g o < \ / s p a n > " ; 
 	 	 }   e l s e   { 
 	 	 	 r e t u r n   " < s p a n   c l a s s = \ " c n n D a t e \ " > u p d a t e d   "   +   h o u r s D i f f e r e n c e   +   "   " + c n n H o u r s + "   a g o < \ / s p a n > " ; 
 	 	 } 
 	 }   e l s e   { 
 	 	 i f ( h o u r s D i f f e r e n c e   <   1   & &   m i n u t e s D i f f e r e n c e   >   0 ) { 
 	 	 	 r e t u r n   " < s p a n   c l a s s = \ " c n n D a t e \ "   s t y l e = \ " c o l o r : # C B 0 0 0 3 ; \ " > u p d a t e d   "   +   m i n u t e s D i f f e r e n c e   +   "   " + c n n M i n u t e s + "   a g o < / s p a n > " ; 
 	 	 }   e l s e   { 
 	 	 	 r e t u r n   " < s p a n   c l a s s = \ " c n n D a t e \ "   s t y l e = \ " c o l o r : # C B 0 0 0 3 ; \ " > u p d a t e d   1   m i n u t e   a g o < / s p a n > " ; 
 	 	 } 
 	 } 
 } 
 
 f u n c t i o n   c n n R e n d e r T 1 T i m e S t a m p ( d a t e , u s e L o n g F o r m a t )   { 
 
 	 c n n S t o r y P u b l i s h T i m e   =   ( d a t e )   ?   n e w   D a t e ( d a t e )   :   c n n S t o r y P u b l i s h T i m e ; 
 	 v a r   c n n T i m e S t a m p S t r i n g ; 
 	 v a r   n u l l S t r i n g = " " ; 
 
 
 
         v a r   c n n T i m e S t a m p D i f f   =   c n n C u r r T i m e . g e t T i m e ( )   -   c n n S t o r y P u b l i s h T i m e . g e t T i m e ( ) ; 
 
         v a r   d a y s D i f f e r e n c e   =   M a t h . f l o o r ( c n n T i m e S t a m p D i f f / 1 0 0 0 / 6 0 / 6 0 / 2 4 ) ; 
 
         c n n T i m e S t a m p D i f f   - =   d a y s D i f f e r e n c e * 1 0 0 0 * 6 0 * 6 0 * 2 4 
 
         v a r   h o u r s D i f f e r e n c e   =   M a t h . f l o o r ( c n n T i m e S t a m p D i f f / 1 0 0 0 / 6 0 / 6 0 ) ; 
 
         c n n T i m e S t a m p D i f f   - =   h o u r s D i f f e r e n c e * 1 0 0 0 * 6 0 * 6 0 
 
         v a r   m i n u t e s D i f f e r e n c e   =   M a t h . f l o o r ( c n n T i m e S t a m p D i f f / 1 0 0 0 / 6 0 ) ; 
 
         c n n T i m e S t a m p D i f f   - =   m i n u t e s D i f f e r e n c e * 1 0 0 0 * 6 0 
 
         v a r   s e c o n d s D i f f e r e n c e   =   M a t h . f l o o r ( c n n T i m e S t a m p D i f f / 1 0 0 0 ) ; 
 
 
 	 v a r   c n n D a y s   =   ( d a y s D i f f e r e n c e   >   1 )   ?   " n g à y "   :   " n g à y " ; 
 	 v a r   c n n H o u r s   =   ( h o u r s D i f f e r e n c e   >   1 )   ?   " g i Ý"   :   " g i Ý" ; 
 	 v a r   c n n M i n u t e s   =   ( m i n u t e s D i f f e r e n c e   >   1 )   ?   " p h ú t "   :   " p h ú t " ; 
 	 v a r   c n n S e c o n d s   =   ( s e c o n d s D i f f e r e n c e   >   1 )   ?   " g i â y "   :   " g i â y " ; 
 	 v a r   c n n H P M i n u t e s   =   ( m i n u t e s D i f f e r e n c e   >   1 )   ?   " p h ú t "   :   " p h ú t " ; 
 	 v a r   c n n H P S e c o n d s   =   ( s e c o n d s D i f f e r e n c e   >   1 )   ?   " g i â y "   :   " g i â y " ; 
 
 	 i f   ( p a g e t y p e T S = = ' h o m e p a g e ' )   { 
 
 	 	 	 c n n T i m e S t a m p S t r i n g   =   ' c ­p   n h ­t   ' ; 
 
 	 	 i f ( h o u r s D i f f e r e n c e   <   1   & &   m i n u t e s D i f f e r e n c e   >   0 ) { 
 	 	 	 c n n T i m e S t a m p S t r i n g   + =   m i n u t e s D i f f e r e n c e   +   "   " + ( u s e L o n g F o r m a t ? c n n M i n u t e s : c n n H P M i n u t e s ) + "   c á c h   â y " ; 
 	 	 }   e l s e   i f ( h o u r s D i f f e r e n c e   <   1   & &   m i n u t e s D i f f e r e n c e   <   1 )   { 
 	 	 	 c n n T i m e S t a m p S t r i n g   + =   s e c o n d s D i f f e r e n c e   +   "   " + ( u s e L o n g F o r m a t ? c n n S e c o n d s : c n n H P S e c o n d s ) + "   c á c h   â y " ; 
 	 	 }   e l s e   i f ( h o u r s D i f f e r e n c e   > =   1 )   { 
 	 	 	 r e t u r n   n u l l S t r i n g ; 
 	 	 } 
 	 	 r e t u r n   ' < s p a n > ' + c n n T i m e S t a m p S t r i n g + ' < / s p a n > ' ; 
 	 } 
 
 } 
 
 
 f u n c t i o n   C N N _ s u b m i t U s e r C o m m e n t ( f o r m )   { 
 v a r   c n n S u b m i t F o r m   =   t r u e ; 
 
 i f ( t y p e o f ( c n n T h r e a d )   ! =   " u n d e f i n e d " )   { 
 	 $ ( f o r m ) . t h r e a d N a m e . v a l u e   =   c n n T h r e a d ; 
 } 
 i f ( t y p e o f ( c n n F o r u m )   ! =   " u n d e f i n e d " )   { 
     $ ( f o r m ) . f o r u m N a m e . v a l u e     =   c n n F o r u m ; 
 } 
 
 v a r   e r r o r D i v s   =   $ ( ' c n n R O C S u b F r m ' ) . g e t E l e m e n t s B y C l a s s N a m e ( ' c n n E r r o r ' ) ; 
 f o r   ( v a r   i   =   0 ;   i < e r r o r D i v s . l e n g t h ;   i + + )   { 
 	 e r r o r D i v s [ i ] . r e m o v e ( ) ; 
 } 
 
 a l l F o r m E l s   =   F o r m . g e t E l e m e n t s ( f o r m ) ; 
 f o r ( i   =   0 ;   i   <   a l l F o r m E l s . l e n g t h ;   i + + )   { 
         / / d o   s o m e t h i n g   t o   e a c h   f o r m   f i e l d 
         a l l F o r m E l s [ i ] . v a l u e   =   a l l F o r m E l s [ i ] . v a l u e . s t r i p ( ) . s t r i p S c r i p t s ( ) . s t r i p T a g s ( ) ; 
         i f   ( a l l F o r m E l s [ i ] . v a l u e   = =   " " )   { 
         	 	 i f   ( a l l F o r m E l s [ i ] . n a m e   = =   " n a m e " )   { 
         	 	 	 n e w   I n s e r t i o n . B e f o r e ( ' c n n U s e r R e s p o n s e N a m e ' , '   < s p a n   i d = " c n n U s e r R e s p o n s e N a m e E r r o r "   c l a s s = " c n n E r r o r " > & r a q u o ; < \ / s p a n > ' ) ; 
         	 	 } 
         	 	 i f   ( a l l F o r m E l s [ i ] . n a m e   = =   " l o c a t i o n " )   { 
         	 	 	 n e w   I n s e r t i o n . B e f o r e ( ' c n n U s e r R e s p o n s e L o c a t i o n ' , '   < s p a n   i d = " c n n U s e r R e s p o n s e N a m e E r r o r "   c l a s s = " c n n E r r o r " > & r a q u o ; < \ / s p a n > ' ) ; 
         	 	 } 
         	 	 i f   ( a l l F o r m E l s [ i ] . n a m e   = =   " b o d y " )   { 
         	 	 	 n e w   I n s e r t i o n . B e f o r e ( ' c n n U s e r R e s p o n s e C o m m e n t ' , '   < s p a n   i d = " c n n U s e r R e s p o n s e N a m e E r r o r "   c l a s s = " c n n E r r o r " > & r a q u o ; < \ / s p a n > ' ) ; 
         	 	 } 
         	 c n n S u b m i t F o r m   =   f a l s e ; 
 	 } 
 } 
 
 	 i f   ( c n n S u b m i t F o r m )   { 
 
 	 	 	 n e w   E f f e c t . O p a c i t y ( ' c n n R O C F r m ' , 
 	 	 	 	 	 { 
 	 	 	 	 	 	 d u r a t i o n : 1 . 0 , 
 	 	 	 	 	 	 f r o m : 1 . 0 , 
 	 	 	 	 	 	 t o : 0 , 
 	 	 	 	 	 	 b e f o r e S t a r t : f u n c t i o n ( )   { 
 	 	 	 	 	     	 	 d o c u m e n t . c n n R O C S u b F r m . s u b m i t ( ) ; 
 	 	 	 	 	 	 } , 
 	 	 	 	 	 	 a f t e r F i n i s h :   f u n c t i o n ( o b j ) 
 	 	 	 	 	 	 	 { 
 	 	 	 	 	 	 	 F o r m . r e s e t ( f o r m ) ; 	 	 	 	 	             	 	 $ ( ' c n n R O C F r m C o m p l e t e ' ) . i n n e r H T M L   =   " T h a n k   y o u   f o r   c o n t r i b u t i n g .   C o m m e n t s   a r e   m o d e r a t e d   b y   C N N   a n d   w i l l   n o t   a p p e a r   o n   t h i s   s t o r y   u n t i l   a f t e r   t h e y   h a v e   b e e n   r e v i e w e d   a n d   d e e m e d   a p p r o p r i a t e   f o r   p o s t i n g .   U n f o r t u n a t e l y ,   d u e   t o   t h e   v o l u m e   o f   c o m m e n t s   w e   r e c e i v e ,   n o t   a l l   c o m m e n t s   c a n   b e   p o s t e d . < b r > < b r > < 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 = \ " C N N _ t o g g l e S u b m i s s i o n F o r m ( ' c n n R O C F r m ' , ' c n n R O C F r m C o m p l e t e ' ) \ " > P o s t   a n o t h e r   c o m m e n t < \ / a > " ; 
 	 	 	 	 	 	 	 	 	 n e w   E f f e c t . O p a c i t y ( ' c n n R O C F r m C o m p l e t e ' , 
 	 	 	 	 	 	 	 	 	 	 { 
 	 	 	 	 	 	 	 	 	 	 	 d u r a t i o n : 1 . 0 , 
 	 	 	 	 	 	 	 	 	 	 	 f r o m : 0 , 
 	 	 	 	 	 	 	 	 	 	 	 t o : 1 . 0 , 
 	 	 	 	 	 	 	 	 	 	 	 b e f o r e U p d a t e : f u n c t i o n ( o b j )   { 
 	 	 	 	 	 	 	 	 	 	 	 	 $ ( ' c n n R O C F r m ' ) . h i d e ( ) ; 
 	 	 	 	 	 	 	 	 	 	 	 	 o b j . e l e m e n t . s h o w ( ) ; 
 	 	 	 	 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 	 	 ) ; 
 	 	 	 	 	 	 	 } 
 
 	 	 	 	 	 } 
 	 	 	 	 ) ; 
 	 } 
 } 
 
 f u n c t i o n   C N N _ t o g g l e S u b m i s s i o n F o r m ( s h o w , h i d e )   { 
 
 n e w   E f f e c t . O p a c i t y ( h i d e , 
 	 	 	 	 	 { 
 	 	 	 	 	 	 d u r a t i o n : 1 . 0 , 
 	 	 	 	 	 	 f r o m : 1 . 0 , 
 	 	 	 	 	 	 t o : 0 , 
 	 	 	 	 	 	 a f t e r F i n i s h :   f u n c t i o n ( o b j ) 
 	 	 	 	 	 	 	 { 
 	 	 	 	 	 	 	 	 n e w   E f f e c t . O p a c i t y ( s h o w , 
 	 	 	 	 	 	 	 	 	 	 { 
 	 	 	 	 	 	 	 	 	 	 	 d u r a t i o n : 1 . 0 , 
 	 	 	 	 	 	 	 	 	 	 	 f r o m : 0 , 
 	 	 	 	 	 	 	 	 	 	 	 t o : 1 . 0 , 
 	 	 	 	 	 	 	 	 	 	 	 b e f o r e U p d a t e : f u n c t i o n ( o b j )   { 
 	 	 	 	 	 	 	 	 	 	 	 	 $ ( h i d e ) . h i d e ( ) ; 
 	 	 	 	 	 	 	 	 	 	 	 	 o b j . e l e m e n t . s h o w ( ) ; 
 	 	 	 	 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 	 	 ) ; 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 } 
 	 	 	 	 ) 
 
 
 } 
 
 f u n c t i o n   c n n S h o w E x t e n d e d C o m m e n t s ( e l )   { 
 	 v a r   b l o c k   =   d o c u m e n t . g e t E l e m e n t s B y C l a s s N a m e ( ' c n n E x t e n d e d ' , e l . p a r e n t N o d e . p a r e n t N o d e ) ; 
 	 i f   ( b l o c k   & &   b l o c k . l e n g t h   >   0 )   { 
 	 	 c n n T o g g l e U G C ( b l o c k [ 0 ] , e l ) ; 
 	 	 e l . s t y l e . d i s p l a y   =   " n o n e " ; 
 	 } 
 } 
 
 f u n c t i o n   c n n H i d e E x t e n d e d C o m m e n t s ( e l )   { 
 	 v a r   b l o c k   =   e l . p a r e n t N o d e . p a r e n t N o d e ; 
 	 v a r   b l o c k L i n k s   =   b l o c k . p a r e n t N o d e . g e t E l e m e n t s B y T a g N a m e ( ' a ' ) ; 
 	 i f   ( b l o c k )   { 
 	 	 c n n T o g g l e U G C ( b l o c k , e l ) ; 
 	 	 	 f o r   ( v a r   i = 0 ;   i   <   b l o c k L i n k s . l e n g t h ;   i + + )   { 
 	 	 	 	 b l o c k L i n k s [ i ] . s t y l e . d i s p l a y   =   " i n l i n e " ; 
 	 	 } 
 	 } 
 } 
 
 f u n c t i o n   c n n S h o w M o r e ( e l )   { 
 	 v a r   b l o c k   =   d o c u m e n t . g e t E l e m e n t s B y C l a s s N a m e ( ' c n n E x t e n d e d ' , e l . p a r e n t N o d e . p a r e n t N o d e ) ; 
 	 v a r   i n i t i a l G r a p h   =   e l . p a r e n t N o d e . g e t E l e m e n t s B y T a g N a m e ( ' p ' ) ; 
 	 i f   ( b l o c k   & &   b l o c k . l e n g t h   >   0 )   { 
 e l . p a r e n t N o d e . h i d e ( ) ; 
 b l o c k [ 0 ] . s h o w ( ) ; 
 	 } 
 } 
 
 f u n c t i o n   c n n S h o w L e s s ( e l )   { 
 	 v a r   b l o c k   =   e l . p a r e n t N o d e . p a r e n t N o d e ; 
 	 v a r   b l o c k L i n k s   =   b l o c k . p a r e n t N o d e . g e t E l e m e n t s B y T a g N a m e ( ' p ' ) ; 
 
 	 b l o c k . h i d e ( ) ; 
 	 b l o c k L i n k s [ 0 ] . s h o w ( ) ; 
 
 } 
 
 f u n c t i o n   c n n T o g g l e U G C ( e l , l n k )   { 
 	 i f   ( c n n L o c k T o g g l e )   { 
 	 	 r e t u r n ; 
 	 } 
 
 	 c n n L o c k T o g g l e   =   t r u e ; 
 	 v a r   c n n T o g g l e C l a s s   =   ( l n k . p a r e n t N o d e . c l a s s N a m e . i n d e x O f ( ' C l o s e d ' )   >   - 1 )   ?   t r u e   :   f a l s e ; 
 
 	 	 E f f e c t . t o g g l e ( e l , ' b l i n d ' , 
 	 	 { 
 	 	 	 b e f o r e S t a r t : f u n c t i o n ( o b j )   { 
 	 	 	 	 t r y   { 
 	 	 	 	 	 l n k . b l u r ( ) ; 
 	 	 	 	 }   c a t c h ( e )   { } ; 
 	 	 	 	 i f   ( c n n T o g g l e C l a s s )   { 
 	 	 	 	 s w i t c h ( l n k . p a r e n t N o d e . c l a s s N a m e )   { 
 	 	 	 	 	 c a s e   ' c n n O p i n i o n C l o s e d ' : 
 	 	 	 	 	 	 l n k . p a r e n t N o d e . c l a s s N a m e   =   ' c n n O p i n i o n ' ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 c a s e   ' c n n I R e p o r t C l o s e d ' : 
 	 	 	 	 	 	 l n k . p a r e n t N o d e . c l a s s N a m e   =   ' c n n I R e p o r t ' ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 c a s e   ' c n n B l o g s C l o s e d ' : 
 	 	 	 	 	 	 l n k . p a r e n t N o d e . c l a s s N a m e   =   ' c n n B l o g s ' ; 
 	 	 	 	 	 	 S p h e r e . W i d g e t . s e a r c h ( ) ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 d e f a u l t : 
 	 	 	 	 } 
 	 	 	 	 } 
 
 	 	 	 } , 
 	 	 	 a f t e r F i n i s h : f u n c t i o n ( o b j )   { 
 	 	 	 	 i f   ( ! c n n T o g g l e C l a s s )   { 
 	 	 	 	 s w i t c h ( l n k . p a r e n t N o d e . c l a s s N a m e )   { 
 	 	 	 	 	 c a s e   ' c n n O p i n i o n ' : 
 	 	 	 	 	 	 l n k . p a r e n t N o d e . c l a s s N a m e   =   ' c n n O p i n i o n C l o s e d ' ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 c a s e   ' c n n I R e p o r t ' : 
 	 	 	 	 	 	 l n k . p a r e n t N o d e . c l a s s N a m e   =   ' c n n I R e p o r t C l o s e d ' ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 c a s e   ' c n n B l o g s ' : 
 	 	 	 	 	 	 l n k . p a r e n t N o d e . c l a s s N a m e   =   ' c n n B l o g s C l o s e d ' ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 d e f a u l t : 
 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 c n n L o c k T o g g l e   =   f a l s e ; 
 	 	 	 } 
 	 	 } 
 	 ) ; 
 } 
 
 f u n c t i o n   c n n T o g g l e N e s t e d C o n t e n t ( e l , l n k , n u m , d e s c )   { 
 i f   ( c n n L o c k T o g g l e )   { 
 	 r e t u r n ; 
 } 
 
 c n n L o c k T o g g l e   =   t r u e ; 
 v a r   c n n L n k T x t   =   " L a s t   3   c o m m e n t s   o n l y " ; 
 	 	 E f f e c t . t o g g l e ( e l , ' b l i n d ' , 
 	 	 { 
 	 	 	 d u r a t i o n : 0 . 5 , 
 	 	 	 a f t e r F i n i s h :   f u n c t i o n ( )   { 
 	 	 	 	 i f ( ! d e s c )   { 
 	 	 	 	 	 i f   ( l n k . i n n e r H T M L   = =   c n n L n k T x t )   { 
 	 	 	 	 	 	 l n k . i n n e r H T M L   =   " S e e   a l l   "   +   n u m   +   "   c o m m e n t s " ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 l n k . i n n e r H T M L   =   c n n L n k T x t ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 c n n L o c k T o g g l e   =   f a l s e ; 
 	 	 	 } , 
 	 	 	 b e f o r e S t a r t :   f u n c t i o n ( )   { 
 	 	 	 	 i f ( d e s c )   { 
 	 	 	 	 	 $ ( l n k ) . s t y l e . d i s p l a y   =   " n o n e " ; 
 	 	 	 	 } 
 
 	 	 	 } 
 	 	 } 
 
 	 	 ) ; 
 
 
 } 
 
 
 f u n c t i o n   C N N _ d i s p l a y B l o g C o n t e n t ( w i d g e t L o a d i n g , w i d g e t C o n t e n t )   { 
 	 i f   ( ! $ ( w i d g e t L o a d i n g )   | |   ! $ ( w i d g e t C o n t e n t ) )   { 
 	 	 r e t u r n ; 
 	 } 
 
 	 	 	 E f f e c t . B l i n d U p ( w i d g e t L o a d i n g , 
 	 	 	 	 { 
 	 	 	 	 	 a f t e r F i n i s h : f u n c t i o n ( o b j )   { 
 	 	 	 	 	 	 $ ( o b j . e l e m e n t . i d ) . r e m o v e ( ) ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 ) ; 
 	 	 	 E f f e c t . B l i n d D o w n ( w i d g e t C o n t e n t ) ; 
 } 
 
 
 v a r   c n n H a s O p e n P o p u p   =   0 ; 
 / /   t h i s   i s   f o r   o p e n i n g   p o p - u p   w i n d o w s 
 f u n c t i o n   C N N _ o p e n P o p u p (   u r l ,   n a m e ,   w i d g e t s ,   o p e n e r U r l   ) 
 { 
 	 v a r   h o s t   =   l o c a t i o n . h o s t n a m e ; 
 	 i f   ( w i n d o w   = =   t o p )   {   w i n d o w . t o p . n a m e   =   " o p e n e r " ;   } 
 	 v a r   p o p u p W i n   =   w i n d o w . o p e n (   u r l ,   n a m e ,   w i d g e t s   ) ; 
 	 i f ( p o p u p W i n )   { c n n H a s O p e n P o p u p   =   1 ; } 
 	 i f   (   p o p u p W i n   & &   p o p u p W i n . o p e n e r   )   { 
 	 	 i f   (   o p e n e r U r l   ) 
 	 	 { 
 	 	 	 p o p u p W i n . o p e n e r . l o c a t i o n   =   o p e n e r U r l ; 
 	 	 } 
 	 } 
 	 i f   (   p o p u p W i n )   { 
 	 	 p o p u p W i n . f o c u s ( ) ; 
 	 } 
 } 
 
 f u n c t i o n   c n n I m g S w a p (   s t r I d ,   i n t S w a p   )   { 
 	 / /   a s s u m e s   2   I m a g e s :   i m a g e . g i f   a n d   i m a g e _ o v e r . g i f 
 	 v a r   i m g O b j   =   ( t y p e o f ( s t r I d )   = =   " o b j e c t " )   ?   s t r I d . g e t E l e m e n t s B y T a g N a m e ( ' i m g ' ) [ 0 ]   :   d o c u m e n t . g e t E l e m e n t B y I d (   s t r I d   ) ; 
 	 v a r   s t r T e m p   =   i m g O b j . s r c ; 
 	 v a r   i n t S t r L e n g t h   =   s t r T e m p . l e n g t h ; 
 	 v a r   i n t C h o p ,   s t r E n d ; 
 
 	 i f   (   i n t S w a p   )   { 
 	 	 i f   ( s t r T e m p . i n d e x O f ( ' _ o v e r . g i f ' )   = =   - 1 )   { 
 	 	 	 i n t C h o p   =   i n t S t r L e n g t h   -   4 ; 
 	 	 	 s t r E n d   =   ' _ o v e r . g i f ' ; 
 	 	 } 
 	 }   e l s e   { 
 	 	 i f   ( s t r T e m p . i n d e x O f ( ' _ o v e r . g i f ' )   >   - 1 )   { 
 	 	 	 i n t C h o p   =   i n t S t r L e n g t h   -   9 ; 
 	 	 	 s t r E n d   =   ' . g i f ' ; 
 	 	 } 
 	 } 
 
 	 i f   ( t y p e o f ( i n t C h o p )   ! =   " u n d e f i n e d " )   { 
 	 	 s t r T e m p   =   s t r T e m p . s u b s t r i n g (   0 ,   i n t C h o p   ) ; 
 	 } 
 
 	 i f   ( t y p e o f ( s t r E n d )   ! =   " u n d e f i n e d " )   { 
 	 	 i m g O b j . s r c   =   s t r T e m p   +   s t r E n d ; 
 	 } 
 } 
 
 / * 
 
 F l a s h   D e t e c t   a n d   R e n d e r 
 = = = = = = = = = = = = = = = = = = = = = = = 
 
 T h e   C N N _ F l a s h O b j e c t   t a k e s   a   f e w   r e q u i r e d   a r g u m e n t s . . . 
 
 	 n a m e   . . . . . . . . .   t h e   i d / n a m e   o f   t h e   o b j e c t / e m b e d 
 	 s r c   . . . . . . . . . .   t h e   U R L   o f   t h e   s w f 
 	 w i d t h   . . . . . . . .   ( i   t h i n k   t h i s   s h o u l d   b e   r e q u i r e d ) 
 	 h e i g h t   . . . . . . .   ( i   t h i n k   t h i s   s h o u l d   b e   r e q u i r e d ) 
 
 . . . a n d   s o m e   o p t i o n a l   a r g u m e n t s . . . 
 
 	 p a r a m e t e r s   . . .   t h i s   i s   a   " h a s h "   o f   k e y s   a n d   v a l u e s 
 	 	 {   m e n u :   " t r u e " ,   p l a y :   " f a l s e " ,   l o o p :   " f a l s e "   } 
 	 	 ( o r   s e t   t h i s   t o   n u l l   o r   a n   e m p t y   s t r i n g   t o   s k i p ) 
 
 	 f l a s h V a r s   . . . .   t h i s   i s   a   h a s h   o r   a   s t r i n g 
 	 	 {   c s _ u r l :   " / f o o t b a l l / n f l / s c o r e b o a r d s / t o d a y / "   } 
 	 	 -   o r   - 
 	 	 " c s _ u r l = / f o o t b a l l / n f l / s c o r e b o a r d s / t o d a y / " 
 
 
 S a m p l e   U s a g e : 
 i f   (   n e w   C N N _ F l a s h D e t e c t ( ) . d e t e c t V e r s i o n (   6   )   )   { 
 
 	 v a r   c n n _ S c o r e b o a r d   =   n e w   C N N _ F l a s h O b j e c t (   " c n n S c o r e b o a r d " , 
 	 	 " / . e l e m e n t / i m g / 2 . 0 / s w f / n f l _ s c o r e b o a r d . s w f " , 
 	 	 4 2 0 ,   8 5 ,   n u l l ,   " c s _ u r l = / f o o t b a l l / n f l / s c o r e b o a r d s / t o d a y / "   ) ; 
 
 	 c n n _ S c o r e b o a r d . w r i t e H t m l ( ) ; 
 
 }   e l s e   { 
 	 d o c u m e n t . w r i t e (   ' a l t e r n a t e   h t m l '   ) ; 
 } 
 
 O f   c o u r s e ,   i f   y o u   p l a n   t o   h a v e   F l a s h   i n   l o t s   o f   p l a c e s   o n   a   p a g e , 
 i t   m i g h t   m a k e   m o r e   s e n s e   t o   m a k e   a   g l o b a l   v a r i a b l e   f o r   t h e   d e t e c t i o n . 
 Y o u   c o u l d   g o   a s   f a r   a s   c r e a t i n g   a   s e s s i o n - b a s e d   c o o k i e . . . 
 
 * / 
 
 v a r   V B S _ R e s u l t   =   f a l s e ; 
 
 f u n c t i o n   C N N _ F l a s h D e t e c t ( )   {   } 
 
 C N N _ F l a s h D e t e c t . p r o t o t y p e . m a x V e r s i o n T o D e t e c t   =   8 ; 
 C N N _ F l a s h D e t e c t . p r o t o t y p e . m i n V e r s i o n T o D e t e c t   =   3 ; 
 
 C N N _ F l a s h D e t e c t . p r o t o t y p e . h a s P l u g i n   =   (   n a v i g a t o r . m i m e T y p e s   & & 
 	 	 n a v i g a t o r . m i m e T y p e s . l e n g t h   & & 
 	 	 n a v i g a t o r . m i m e T y p e s [ " 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 " ]   & & 
 	 	 n a v i g a t o r . m i m e T y p e s [ " 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 n a b l e d P l u g i n   ) ; 
 
 C N N _ F l a s h D e t e c t . p r o t o t y p e . h a s A c t i v e X   =   w i n d o w . A c t i v e X O b j e c t ; 
 
 C N N _ F l a s h D e t e c t . p r o t o t y p e . h a s W i n I E   =   (   n a v i g a t o r . u s e r A g e n t   & & 
 	 	 (   n a v i g a t o r . u s e r A g e n t . i n d e x O f (   " M S I E "   )   ! =   - 1   )   & & 
 	 	 n a v i g a t o r . a p p V e r s i o n   & & 
 	 	 (   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 (   " W i n "   )   ! =   - 1   )   ) ; 
 
 C N N _ F l a s h D e t e c t . p r o t o t y p e . g e t V e r s i o n   =   f u n c t i o n   ( )   { 
 	 v a r   v e r s i o n N u m   =   0 ; 
 	 v a r   i   =   0 ; 
 
 	 i f   (   t h i s . h a s A c t i v e X   )   { 
 	 	 v a r   a c t i v e X O b j e c t   =   f a l s e ; 
 	 	 f o r   (   i   =   t h i s . m a x V e r s i o n T o D e t e c t ;   i   > =   t h i s . m i n V e r s i o n T o D e t e c t   & &   ! a c t i v e X O b j e c t ;   v e r s i o n N u m   =   (   a c t i v e X O b j e c t   ?   i   :   v e r s i o n N u m   ) ,   i - -   )   { 
 	 	 	 t r y   { 
 	 	 	 	 a c t i v e X O b j e c t   =   n e w   A c t i v e X O b j e c t (   " S h o c k w a v e F l a s h . S h o c k w a v e F l a s h . "   +   i   ) ; 
 	 	 	 }   c a t c h (   e   )   { 
 	 	 	 	 / /   d o   n o t h i n g 
 	 	 	 } 
 	 	 } 
 	 }   e l s e   i f   (   t h i s . h a s W i n I E   )   { 
 	 	 V B S _ R e s u l t   =   f a l s e ; 
 	 	 f o r   (   i   =   t h i s . m a x V e r s i o n T o D e t e c t ;   i   > =   t h i s . m i n V e r s i o n T o D e t e c t   & &   ! V B S _ R e s u l t ;   v e r s i o n N u m   =   (   V B S _ R e s u l t   ?   i   :   v e r s i o n N u m   ) ,   i - -   )   { 
 	 	 	 e x e c S c r i p t (   ' o n   e r r o r   r e s u m e   n e x t :   V B S _ R e s u l t   =   I s O b j e c t (   C r e a t e O b j e c t (   " S h o c k w a v e F l a s h . S h o c k w a v e F l a s h . '   +   i   +   ' "   )   ) ' ,   ' V B S c r i p t '   ) ; 
 	 	 } 
 	 }   e l s e   i f   (   t h i s . h a s P l u g i n   )   { 
 	 	 i f   (   n a v i g a t o r . p l u g i n s   & &   n a v i g a t o r . p l u g i n s . l e n g t h   & &   n a v i g a t o r . p l u g i n s [ " S h o c k w a v e   F l a s h " ]   )   { 
 	 	 	 v a r   w o r d s   =   n a v i g a t o r . p l u g i n s [ " S h o c k w a v e   F l a s h " ] . d e s c r i p t i o n . s p l i t (   "   "   ) ; 
 	 	 	 f o r   (   i   =   0 ;   i   <   w o r d s . l e n g t h ;   + + i   )   { 
 	 	 	 	 i f   (   i s N a N (   p a r s e I n t (   w o r d s [ i ]   )   )   ) 
 	 	 	 	 	 c o n t i n u e ; 
 	 	 	 	 v e r s i o n N u m   =   w o r d s [ i ] ; 
 	 	 	 } 
 	 	 } 
 	 } 
 
 	 r e t u r n   (   v e r s i o n N u m   ) ; 
 } 
 
 C N N _ F l a s h D e t e c t . p r o t o t y p e . d e t e c t V e r s i o n   =   f u n c t i o n   (   n u m   )   { 
 	 v a r   i s V e r s i o n S u p p o r t e d   =   f a l s e ; 
 
 	 i f   (   !   i s N a N (   n u m   )   )   { 
 	 	 i s V e r s i o n S u p p o r t e d   =   (   t h i s . g e t V e r s i o n ( )   > =   p a r s e I n t (   n u m   )   ) ; 
 	 } 
 
 	 r e t u r n   (   i s V e r s i o n S u p p o r t e d   ) ; 
 } 
 
 
 f u n c t i o n   C N N _ F l a s h O b j e c t (   p _ n a m e ,   p _ s r c ,   p _ w i d t h ,   p _ h e i g h t ,   p _ p a r a m e t e r s ,   p _ f l a s h V a r s   )   { 
 	 t h i s . m _ n a m e 	 	 	 =   p _ n a m e ; 
 	 t h i s . m _ s r c 	 	 	 =   p _ s r c ; 
 	 t h i s . m _ w i d t h 	 	 =   p _ w i d t h ; 
 	 t h i s . m _ h e i g h t 	 	 =   p _ h e i g h t ; 
 	 t h i s . m _ f l a s h V a r s 	 =   p _ f l a s h V a r s ; 
 
 / /   c o n s t r u c t o r 
 	 i f   (   p _ p a r a m e t e r s   ) 
 	 { 
 	 	 t h i s . s e t P a r a m s (   p _ p a r a m e t e r s   ) ; 
 	 } 
 } 
 
 / /   D e c l a r e   m e m b e r   p r o p e r t i e s 
 C N N _ F l a s h O b j e c t . p r o t o t y p e . m _ n a m e   =   ' ' ; 
 C N N _ F l a s h O b j e c t . p r o t o t y p e . m _ s r c   =   ' ' ; 
 C N N _ F l a s h O b j e c t . p r o t o t y p e . m _ w i d t h   =   ' ' ; 
 C N N _ F l a s h O b j e c t . p r o t o t y p e . m _ h e i g h t   =   ' ' ; 
 C N N _ F l a s h O b j e c t . p r o t o t y p e . m _ f l a s h V a r s   =   ' ' ; 
 
 C N N _ F l a s h O b j e c t . p r o t o t y p e . m _ p a r a m s   =   { 
 	 m e n u : 	 	 " f a l s e " , 
 	 q u a l i t y : 	 " h i g h " , 
 	 a l l o w S c r i p t A c c e s s : 	 	 " a l w a y s " , 
 	 w m o d e : 	 	 " t r a n s p a r e n t " 
 
 } ; 
 
 C N N _ F l a s h O b j e c t . p r o t o t y p e . s e t P a r a m   =   f u n c t i o n   (   p _ n a m e ,   p _ v a l u e   )   { 
 	 t h i s . m _ p a r a m s [   p _ n a m e   ]   =   p _ v a l u e ; 
 } 
 
 C N N _ F l a s h O b j e c t . p r o t o t y p e . s e t P a r a m s   =   f u n c t i o n   (   p _ p a r a m H a s h   )   { 
 	 i f   (   t y p e o f   p _ p a r a m H a s h   = =   " o b j e c t "   )   { 
 	 	 f o r   (   v a r   p a r a m   i n   p _ p a r a m H a s h   )   { 
 	 	 	 i f   (   p _ p a r a m H a s h [ p a r a m ]   )   { 
 	 	 	 	 t h i s . s e t P a r a m (   p a r a m ,   p _ p a r a m H a s h [ p a r a m ]   ) ; 
 	 	 	 } 
 	 	 } 
 	 } 
 } 
 
 C N N _ F l a s h O b j e c t . p r o t o t y p e . g e t P a r a m   =   f u n c t i o n   (   p _ n a m e   )   { 
 	 r e t u r n   (   t h i s . m _ p a r a m s [   p _ n a m e   ]   ) ; 
 } 
 
 C N N _ F l a s h O b j e c t . p r o t o t y p e . g e t P a r a m s   =   f u n c t i o n   ( )   { 
 	 r e t u r n   (   t h i s . m _ p a r a m s   ) ; 
 } 
 
 C N N _ F l a s h O b j e c t . p r o t o t y p e . g e t F l a s h V a r s S t r i n g   =   f u n c t i o n   ( )   { 
 	 v a r   f l a s h V a r s S t r i n g   =   ' ' ; 
 
 	 i f   (   t y p e o f   t h i s . m _ f l a s h V a r s   = =   " s t r i n g "   )   { 
 	 	 f l a s h V a r s S t r i n g   =   t h i s . m _ f l a s h V a r s ; 
 	 }   e l s e   i f   (   t y p e o f   t h i s . m _ f l a s h V a r s   = =   " o b j e c t "   )   { 
 	 	 f o r   (   v a r   f l a s h V a r   i n   t h i s . m _ f l a s h V a r s   )   { 
 	 	 	 i f   (   f l a s h V a r s S t r i n g   ! =   ' '   )   { 
 	 	 	 	 f l a s h V a r s S t r i n g   + =   " & " ; 
 	 	 	 } 
 	 	 	 f l a s h V a r s S t r i n g   + =   f l a s h V a r   +   " = "   +   e s c a p e (   t h i s . m _ f l a s h V a r s [ f l a s h V a r ]   ) ; 
 	 	 } 
 	 } 
 
 	 r e t u r n   (   f l a s h V a r s S t r i n g   ) ; 
 } 
 
 C N N _ F l a s h O b j e c t . p r o t o t y p e . g e t A t t r i b u t e S t r i n g   =   f u n c t i o n   (   p _ a t t r ,   p _ v a l u e   )   { 
 	 r e t u r n   (   p _ v a l u e   ?   '   '   +   p _ a t t r   +   ' = " '   +   p _ v a l u e   +   ' " '   :   ' '   ) ; 
 } 
 
 C N N _ F l a s h O b j e c t . p r o t o t y p e . g e t P a r a m T a g   =   f u n c t i o n   (   p _ n a m e ,   p _ v a l u e   )   { 
 	 r e t u r n   (   p _ v a l u e   ?   ' < p a r a m   n a m e = " '   +   p _ n a m e   +   ' "   v a l u e = " '   +   p _ v a l u e   +   ' " > '   :   ' '   ) ; 
 } 
 
 C N N _ F l a s h O b j e c t . p r o t o t y p e . g e t H t m l   =   f u n c t i o n   ( )   { 
 	 v a r   h t m l S t r i n g   =   ' ' ; 
 	 v a r   e a c h P a r a m   =   ' ' ; 
 	 v a r   f l a s h U r l   =   ' 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 ' ; 
 
 / /   o p e n   o b j e c t 
 	 h t m l S t r i n g   + =   ' < o b j e c t   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 "   \ 
 	 	 	 	 	 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 S t r i n g   + =   t h i s . g e t A t t r i b u t e S t r i n g (   ' p l u g i n s p a g e ' ,   f l a s h U r l   ) ; 
 	 h t m l S t r i n g   + =   t h i s . g e t A t t r i b u t e S t r i n g (   ' i d ' ,   t h i s . m _ n a m e   ) ; 
 	 h t m l S t r i n g   + =   t h i s . g e t A t t r i b u t e S t r i n g (   ' d a t a ' ,   t h i s . m _ s r c   ) ; 
 	 h t m l S t r i n g   + =   t h i s . g e t A t t r i b u t e S t r i n g (   ' w i d t h ' ,   t h i s . m _ w i d t h   ) ; 
 	 h t m l S t r i n g   + =   t h i s . g e t A t t r i b u t e S t r i n g (   ' h e i g h t ' ,   t h i s . m _ h e i g h t   ) ; 
 	 h t m l S t r i n g   + =   ' > ' ; 
 	 h t m l S t r i n g   + =   t h i s . g e t P a r a m T a g (   ' m o v i e ' ,   t h i s . m _ s r c   ) ; 
 	 f o r   (   e a c h P a r a m   i n   t h i s . g e t P a r a m s ( )   )   { 
 	 	 h t m l S t r i n g   + =   t h i s . g e t P a r a m T a g (   e a c h P a r a m ,   t h i s . g e t P a r a m (   e a c h P a r a m   )   ) ; 
 	 } 
 	 h t m l S t r i n g   + =   t h i s . g e t P a r a m T a g (   ' f l a s h V a r s ' ,   t h i s . g e t F l a s h V a r s S t r i n g ( )   ) ; 
 
 / /   o p e n   e m b e d 
 	 h t m l S t r i n g   + =   ' < e m b e d   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 S t r i n g   + =   t h i s . g e t A t t r i b u t e S t r i n g (   ' p l u g i n s p a g e ' ,   f l a s h U r l   ) ; 
 	 h t m l S t r i n g   + =   t h i s . g e t A t t r i b u t e S t r i n g (   ' n a m e ' ,   t h i s . m _ n a m e   ) ; 
 	 h t m l S t r i n g   + =   t h i s . g e t A t t r i b u t e S t r i n g (   ' s r c ' ,   t h i s . m _ s r c   ) ; 
 	 h t m l S t r i n g   + =   t h i s . g e t A t t r i b u t e S t r i n g (   ' w i d t h ' ,   t h i s . m _ w i d t h   ) ; 
 	 h t m l S t r i n g   + =   t h i s . g e t A t t r i b u t e S t r i n g (   ' h e i g h t ' ,   t h i s . m _ h e i g h t   ) ; 
 	 f o r   (   e a c h P a r a m   i n   t h i s . g e t P a r a m s ( )   )   { 
 	 	 h t m l S t r i n g   + =   t h i s . g e t A t t r i b u t e S t r i n g (   e a c h P a r a m ,   t h i s . g e t P a r a m (   e a c h P a r a m   )   ) ; 
 	 } 
 	 h t m l S t r i n g   + =   t h i s . g e t A t t r i b u t e S t r i n g (   ' f l a s h V a r s ' ,   t h i s . g e t F l a s h V a r s S t r i n g ( )   ) ; 
 	 h t m l S t r i n g   + =   ' > ' ; 
 
 / /   c l o s e   e m b e d 
 	 h t m l S t r i n g   + =   ' < \ / e m b e d > ' ; 
 
 / /   c l o s e   o b j e c t 
 	 h t m l S t r i n g   + =   ' < \ / o b j e c t > ' ; 
 
 	 r e t u r n   (   h t m l S t r i n g   ) ; 
 } 
 
 C N N _ F l a s h O b j e c t . p r o t o t y p e . w r i t e H t m l   =   f u n c t i o n   ( )   { 
 	 d o c u m e n t . w r i t e (   t h i s . g e t H t m l ( )   ) ; 
 } 
 
 C N N _ F l a s h O b j e c t . p r o t o t y p e . w r i t e M o s a i c H t m l   =   f u n c t i o n   ( i d )   { 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . i n n e r H T M L   =     t h i s . g e t H t m l ( ) ; 
 } 
 
 
 / /       s t o r y   c o m m e n t s   f u n c t i o n s 
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   S T A R T 
 
 v a r   c o m m e n t s W i n d o w   =   2 5 ; 
 v a r   c u r r e n t P a g e   =   1 ; 
 v a r   c n n I n i t i a l D i s p l a y   =   3 ; 
 v a r   n e x t L i n k   =   f a l s e ; 
 v a r   l o a d i n g C o m m e n t s   =   f a l s e ; 
 v a r   f i r s t T i m e N e s t e d   =   t r u e ; 
 v a r   g e t T h i s M a n y   =   0 ; 
 
 / / g e t s   n e x t   s e t   o f   c o m m e n t s   -   o f   l e n g t h :   c o m m e n t s W i n d o w * c u r r e n t P a g e 
 f u n c t i o n   C N N _ g e t N e x t C o m m e n t s ( ) { 
 	 i f ( l o a d i n g C o m m e n t s ) {   r e t u r n ;   } 
 	 l o a d i n g C o m m e n t s = t r u e ; 
 	 c u r r e n t P a g e + + ; 
 	 g e t T h i s M a n y   =   c o m m e n t s W i n d o w   *   c u r r e n t P a g e ; 
 	 C S I M a n a g e r . g e t I n s t a n c e ( ) . c a l l ( ' h t t p : / / c o m m e n t s . t h e t h a o . d e c . v n / c o m m e n t s / r s s / r s s m e s s a g e s . j s p a ' , ' f u l l = t r u e & o u t p u t T y p e = J S O N _ B O X E D & f o r u m N a m e = ' + c n n F o r u m + ' & t h r e a d N a m e = ' + c n n T h r e a d + ' & n u m I t e m s = ' + g e t T h i s M a n y , ' o b j e c t i d ' ,   C N N _ l o a d N e x t I n t o O p i n i o n B o x ,   f a l s e ,   ' c n n C o m m e n t s ' + c u r r e n t P a g e ) ; 
 } 
 
 / / h a n d l e r   f o r   C N N _ g e t N e x t C o m m e n t s 
 f u n c t i o n   C N N _ l o a d N e x t I n t o O p i n i o n B o x ( o b j ) { 
         	 v a r   C N N _ c o m m e n t   =   ' ' ; 
 	 h i d e a b l e C o m m e n t s   =   ' ' ; 
 	 v a r   m a k e H i d d e n   =   ' v i s i b l e ' ; 
 	 f o r   ( v a r   x x   =   0 ;   x x   <   c n n I n i t i a l D i s p l a y ;   x x + + ) { 
         	 	 v a r   c l O b j e c t   =   o b j . r s s . c h a n n e l . i t e m [ x x ] ; 
 	 	 h i d e a b l e C o m m e n t s   + =   C N N _ g e n e r a t e A C o m m e n t D i v ( c l O b j e c t ) ; 
         	 } 
         	 f o r   ( v a r   x x   =   ( ( c u r r e n t P a g e - 1 )   *   c o m m e n t s W i n d o w ) + c n n I n i t i a l D i s p l a y ;   x x   <   o b j . r s s . c h a n n e l . i t e m . l e n g t h ;   x x + + )   { 
 	 	 v a r   c l O b j e c t   =   o b j . r s s . c h a n n e l . i t e m [ x x ] ; 
 	 	 C N N _ c o m m e n t   + =   C N N _ g e n e r a t e A C o m m e n t D i v ( c l O b j e c t ) ; 
         	 } 
                 i f ( o b j . r s s . c h a n n e l . i t e m . l e n g t h   <   g e t T h i s M a n y   | |   ( o b j . r s s . c h a n n e l . i t e m . l e n g t h - ( ( c u r r e n t P a g e - 1 )   *   c o m m e n t s W i n d o w ) ) + c n n I n i t i a l D i s p l a y   <   c o m m e n t s W i n d o w ) { 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' n e x t L i n k ' ) . s t y l e . v i s i b i l i t y   =   " h i d d e n " ; 
 	 	 n e x t L i n k   =   f a l s e ; 
 	 } 
 	 v a r   n e x t L i n k H t m l V i s i b l e   =   ' v i s i b l e ' ; 
 	 i f ( ! n e x t L i n k ) { 
 	 	 n e x t L i n k H t m l V i s i b l e = ' h i d d e n ' ; 
 	 } 
 
 	 v a r   c n n S h o w E x p a n d e d L n k   =   $ ( ' c n n O p i n i o n C o n t a i n e r ' ) . g e t E l e m e n t s B y C l a s s N a m e ( ' c n n E x p a n d C o m m e n t s L n k ' ) ; 
 	 c n n S h o w E x p a n d e d L n k [ 0 ] . i n n e r 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 = " C N N _ T o g g l e N e s t e d S t o r y C o n t e n t ( \ ' c n n O p i n i o n S u b C o n t a i n e r \ ' , t h i s ,   \ ' ' + c o m m e n t s W i n d o w + ' \ ' , n u l l ) ; " > L a s t   ' + c n n I n i t i a l D i s p l a y + '   c o m m e n t s   o n l y < \ / a > < s p a n   i d = " n e x t L i n k "   s t y l e = " v i s i b i l i t y : ' + n e x t L i n k H t m l V i s i b l e + ' " >   |   < 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 = " C N N _ g e t N e x t C o m m e n t s ( ) ; " > N e x t   ' + c o m m e n t s W i n d o w + '   c o m m e n t s   & r a q u o ; < / a > < / s p a n > ' ; 
 	 l o a d i n g C o m m e n t s   =   f a l s e ; 
 	 r e t u r n   " < d i v   i d = ' a l l C o m m e n t s ' > " + h i d e a b l e C o m m e n t s + " < d i v   i d = ' c n n O p i n i o n S u b C o n t a i n e r ' > " + d o c u m e n t . g e t E l e m e n t B y I d ( " c n n O p i n i o n S u b C o n t a i n e r " ) . i n n e r H T M L + C N N _ c o m m e n t + " < / d i v > < / d i v > " ; 
 } 
 
 / / b u i l d s   a   s i n g l e   c o m m e n t   e l e m e n t 
 f u n c t i o n   C N N _ g e n e r a t e A C o m m e n t D i v ( c l O b j e c t ) { 
 	 C N N _ c o m m e n t   =   ' ' ; 
                 C N N _ c o m m e n t   + =   '                                 < d i v   c l a s s = " c n n U G C B o x " > ' ; 
                 C N N _ c o m m e n t   + =   '                                                 < d i v   c l a s s = " c n n U G C B o x H e a d e r " > < i m g   s r c = " h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / i m g / 2 . 0 / m o s a i c / b a s e _ s k i n s / U G C / b _ u g c _ T L . g i f "   a l t = " "   w i d t h = " 4 "   h e i g h t = " 4 " > < \ / d i v > ' ; 
                 C N N _ c o m m e n t   + =   '                                                 < d i v   c l a s s = " c n n B o x C o n t e n t " > ' ; 
                 C N N _ c o m m e n t   + =   '                                                                 < d i v   c l a s s = " c n n M e t a " > ' ; 
                 C N N _ c o m m e n t   + =                                                                     ' < s p a n   c l a s s = " c n n C o n t r i b u t o r " > ' + c l O b j e c t [ ' j f : a u t h o r ' ] + ' < \ / s p a n > < b r > ' ; 
                 C N N _ c o m m e n t   + =   c n n R e n d e r T i m e S t a m p ( c l O b j e c t [ ' p u b D a t e ' ] ) ; 
                 C N N _ c o m m e n t   + =   '                                                                 < \ / d i v > ' ; 
                 C N N _ c o m m e n t   + =   '                                                                 < p > ' ; 
                 C N N _ c o m m e n t   + =   c l O b j e c t [ ' d e s c r i p t i o n ' ] . t r u n c a t e ( 3 0 0 , '   . . . < 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 = " c n n S h o w M o r e ( t h i s ) ; r e t u r n   f a l s e " > m o r e < \ / a > ' ) ; 
                 C N N _ c o m m e n t   + =   '                                                                 < \ / p > ' ; 
 
                 C N N _ c o m m e n t   + =   '                                                                 < d i v   c l a s s = " c n n E x t e n d e d "   s t y l e = " d i s p l a y : n o n e ; " > < p > ' ; 
                 C N N _ c o m m e n t   + =   c l O b j e c t [ ' d e s c r i p t i o n ' ] ; 
                 C N N _ c o m m e n t   + =   '                                                                 < 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 = " c n n S h o w L e s s ( t h i s ) ; r e t u r n   f a l s e ; " > l e s s < \ / a > < \ / p > < \ / d i v > ' ; 
 
 
                 C N N _ c o m m e n t   + =   '                                                 < \ / d i v > ' ; 
                 C N N _ c o m m e n t   + =   '                                                 < d i v   c l a s s = " c l e a r " > < i m g   s r c = " h t t p : / / i . c d n . t u r n e r . c o m / c n n / I m a g e s / 1 . g i f "   w i d t h = " 1 "   h e i g h t = " 1 "   b o r d e r = " 0 "   a l t = " " > < / d i v > < d i v   c l a s s = " c n n U G C B o x F o o t e r " > < i m g   s r c = " h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / i m g / 2 . 0 / m o s a i c / b a s e _ s k i n s / U G C / b _ u g c _ B L . g i f "   a l t = " "   w i d t h = " 4 "   h e i g h t = " 4 " > < \ / d i v > ' ; 
                 C N N _ c o m m e n t   + =   '                                 < \ / d i v > ' ; 
 	 r e t u r n   C N N _ c o m m e n t ; 
 } 
 
 / / e m p t i e s   t h e   c o m m e n t s 
 f u n c t i o n   C N N _ c l e a r O u t C o m m e n t s ( ) { 
 	 c u r r e n t P a g e   =   0 ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( " c n n O p i n i o n S u b C o n t a i n e r " ) . i n n e r H T M L = ' ' ; 
 } 
 
 / / s h o w s / h i d e s   c o m m e n t s   +   n e x t   l i n k   a p p r o p r a i t e l y 
 f u n c t i o n   C N N _ T o g g l e N e s t e d S t o r y C o n t e n t ( e l , l n k , n u m , d e s c )   { 
 	 i f   ( c n n L o c k T o g g l e )   { 
 	 	 r e t u r n ; 
 	 } 
 	 c n n L o c k T o g g l e   =   t r u e ; 
 	 v a r   c n n L n k T x t   =   " L a s t   3   c o m m e n t s   o n l y " ; 
 	 	 E f f e c t . t o g g l e ( e l , ' b l i n d ' , 
 	 	 { 
 	 	 	 d u r a t i o n : 0 . 5 , 
 	 	 	 a f t e r F i n i s h :   f u n c t i o n ( )   { 
 	 	 	 	 i f ( ! d e s c )   { 
 	 	 	 	 	 i f   ( l n k . i n n e r H T M L   = =   c n n L n k T x t )   { 
 	 	 	 	 	 	 l n k . i n n e r H T M L   =   " N e x t   "   +   n u m   +   "   c o m m e n t s   & r a q u o ; " ; 
 	 	 	 	 	 	 n e x t L i n k   =   f a l s e ; 
 	 	 	 	 	 	 c u r r e n t P a g e   =   0 ; 
 	 	 	 	 	 	 C N N _ c l e a r O u t C o m m e n t s ( ) ; 
 	 	 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' n e x t L i n k ' ) . s t y l e . v i s i b i l i t y   =   " h i d d e n " ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 i f ( ! f i r s t T i m e N e s t e d ) { 
 	 	 	 	 	 	 	 C N N _ g e t N e x t C o m m e n t s ( ) ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 	 i f ( f i r s t T i m e N e s t e d   & &   ( n u m   <   c o m m e n t s W i n d o w ) )   { 
 	 	 	 	 	 	 	 n e x t L i n k   =   f a l s e ; 
 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 n e x t L i n k   =   t r u e ; 
 	 	 	 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' n e x t L i n k ' ) . s t y l e . v i s i b i l i t y   =   " v i s i b l e " ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 	 f i r s t T i m e N e s t e d   =   f a l s e ; 
 	 	 	 	 	 	 l n k . i n n e r H T M L   =   c n n L n k T x t ; 
 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 c n n L o c k T o g g l e   =   f a l s e ; 
 	 	 	 } , 
 	 	 	 b e f o r e S t a r t :   f u n c t i o n ( )   { 
 	 	 	 	 i f ( d e s c )   { 
 	 	 	 	 	 $ ( l n k ) . s t y l e . d i s p l a y   =   " n o n e " ; 
 	 	 	 	 } 
 
 	 	 	 } 
 	 	 } 
 
 	 ) ; 
 } 
 
 / / i n i t i a l   l o a d 
 f u n c t i o n   C N N _ l o a d R e a d e r O p i n i o n ( o b j )   { 
 
 	 i f   ( t y p e o f   c n n F i r s t P u b   ! =   " u n d e f i n e d " )   { 
 	         v a r   c n n T i m e D i f f   =   c n n C u r r T i m e . g e t T i m e ( )   -   c n n F i r s t P u b . g e t T i m e ( ) ; 
         	 v a r   h o u r s D i f f e r e n c e   =   M a t h . f l o o r ( c n n T i m e D i f f / 1 0 0 0 / 6 0 / 6 0 ) ; 
 	 	 i f   ( h o u r s D i f f e r e n c e   >   2 3 )   { 
 	 	 	 c n n C o m m e n t s C l o s e d   =   t r u e ; 
 	 	 } 
 	 } 
 
 i f   ( t y p e o f   c n n E x t e n d C o m m e n t i n g   ! =   " u n d e f i n e d "   & &   c n n E x t e n d C o m m e n t i n g )   { 
 	 c n n C o m m e n t s C l o s e d   =   f a l s e ; 
 } 
 
 
 i f   ( t y p e o f   c n n C o m m e n t s C l o s e d   ! =   " u n d e f i n e d "   & &   c n n C o m m e n t s C l o s e d )   { 
 	 i f   ( $ ( ' c n n C o m m e n t F o o t e r ' ) )   { 
 	 	 $ ( ' c n n C o m m e n t F o o t e r ' ) . r e m o v e ( ) ; 
 	 } 
 	 i f   ( $ ( ' c n n R O C F r m ' ) )   { 
 	 	 $ ( ' c n n R O C F r m ' ) . r e m o v e ( ) ; 
 	 } 
 	 i f   ( $ ( ' c n n R O C F r m C o m p l e t e ' ) )   { 
 	 	 $ ( ' c n n R O C F r m C o m p l e t e ' ) . i n n e r H T M L   =   " T h i s   s t o r y   i s   n o   l o n g e r   a v a i l a b l e   f o r   c o m m e n t s ,   t h o u g h   y o u   m a y   r e a d   c o m m e n t s   t h a t   w e r e   p o s t e d   p r e v i o u s l y .   B r o w s e   o t h e r   s t o r i e s   f o r   n e w   o p p o r t u n i t i e s   t o   c o m m e n t   o n   t h e   l a t e s t   n e w s . " ; 
 	 	 $ ( ' c n n R O C F r m C o m p l e t e ' ) . s h o w ( ) ; 
 	 } 
 } 
 
 	 	 	 v a r   C N N _ c o m m e n t   =   ' ' ; 
 
 
 	 	 i f ( ! o b j   | |   ! o b j . r s s   | |   ! o b j . r s s . c h a n n e l   | |   ! o b j . r s s . c h a n n e l . i t e m )   { 
         	 C N N _ c o m m e n t   + =   ' 	 	 < d i v   c l a s s = " c n n U G C B o x " > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 < d i v   c l a s s = " c n n U G C B o x H e a d e r " > < i m g   s r c = " h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / i m g / 2 . 0 / m o s a i c / b a s e _ s k i n s / U G C / b _ u g c _ T L . g i f "   a l t = " "   w i d t h = " 4 "   h e i g h t = " 4 " > < \ / d i v > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 < d i v   c l a s s = " c n n B o x C o n t e n t " > ' ; 
         	 C N N _ c o m m e n t   + =   ' < p   s t y l e = " m a r g i n - l e f t : 6 p x ; " > N o   c o m m e n t s   y e t . < \ / p > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 < \ / d i v > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 < d i v   c l a s s = " c l e a r " > < i m g   s r c = " h t t p : / / i . c d n . t u r n e r . c o m / c n n / I m a g e s / 1 . g i f "   w i d t h = " 1 "   h e i g h t = " 1 "   b o r d e r = " 0 "   a l t = " " > < / d i v > < d i v   c l a s s = " c n n U G C B o x F o o t e r " > < i m g   s r c = " h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / i m g / 2 . 0 / m o s a i c / b a s e _ s k i n s / U G C / b _ u g c _ B L . g i f "   a l t = " "   w i d t h = " 4 "   h e i g h t = " 4 " > < \ / d i v > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 < \ / d i v > ' ; 
 
 	 	 	 r e t u r n   C N N _ c o m m e n t ; 
 	 	 } 
 
 
         i f   ( t y p e o f ( o b j . r s s . c h a n n e l . i t e m . l e n g t h )   = =   " u n d e f i n e d " )   { 
 	 	 	 	 v a r   c l O b j e c t   =   o b j . r s s . c h a n n e l . i t e m ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 < d i v   i d = " c n n O p i n i o n S u b C o n t a i n e r " > < d i v   c l a s s = " c n n U G C B o x " > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 < d i v   c l a s s = " c n n U G C B o x H e a d e r " > < i m g   s r c = " h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / i m g / 2 . 0 / m o s a i c / b a s e _ s k i n s / U G C / b _ u g c _ T L . g i f "   a l t = " "   w i d t h = " 4 "   h e i g h t = " 4 " > < \ / d i v > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 < d i v   c l a s s = " c n n B o x C o n t e n t " > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 	 < d i v   c l a s s = " c n n M e t a " > ' ; 
         	 C N N _ c o m m e n t   + =   	 	 	 	 	 ' < s p a n   c l a s s = " c n n C o n t r i b u t o r " > ' + c l O b j e c t [ ' j f : a u t h o r ' ] + ' < \ / s p a n > < b r > ' ; 
         	 C N N _ c o m m e n t   + =   c n n R e n d e r T i m e S t a m p ( c l O b j e c t [ ' p u b D a t e ' ] ) ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 	 < \ / d i v > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 	 < p > ' ; 
         	 C N N _ c o m m e n t   + =   c l O b j e c t [ ' d e s c r i p t i o n ' ] . t r u n c a t e ( 3 0 0 , '   . . . < 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 = " c n n S h o w M o r e ( t h i s ) ; r e t u r n   f a l s e " > m o r e < \ / a > ' ) ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 	 < \ / p > ' ; 
 
             	 C N N _ c o m m e n t   + =   ' 	 	 	 	 < d i v   c l a s s = " c n n E x t e n d e d "   s t y l e = " d i s p l a y : n o n e ; " > < p > ' ; 
         	 C N N _ c o m m e n t   + =   c l O b j e c t [ ' d e s c r i p t i o n ' ] ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 	 < 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 = " c n n S h o w L e s s ( t h i s ) ; r e t u r n   f a l s e ; " > l e s s < \ / a > < \ / p > < \ / d i v > ' ; 
 
 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 < \ / d i v > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 < d i v   c l a s s = " c l e a r " > < i m g   s r c = " h t t p : / / i . c d n . t u r n e r . c o m / c n n / I m a g e s / 1 . g i f "   w i d t h = " 1 "   h e i g h t = " 1 "   b o r d e r = " 0 "   a l t = " " > < / d i v > < d i v   c l a s s = " c n n U G C B o x F o o t e r " > < i m g   s r c = " h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / i m g / 2 . 0 / m o s a i c / b a s e _ s k i n s / U G C / b _ u g c _ B L . g i f "   a l t = " "   w i d t h = " 4 "   h e i g h t = " 4 " > < \ / d i v > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 < \ / d i v > < \ / d i v > ' ; 
 
 	 	 r e t u r n   C N N _ c o m m e n t ; 
 
         } 
 
 
 
 	 	 v a r   c n n S h o w E x p a n d e d C o n t   =   $ ( ' c n n O p i n i o n C o n t a i n e r ' ) . p a r e n t N o d e . g e t E l e m e n t s B y T a g N a m e ( ' a ' ) [ 0 ] ; 
 
 	 	 v a r   c n n S h o w E x p a n d e d L n k   =   $ ( ' c n n O p i n i o n C o n t a i n e r ' ) . g e t E l e m e n t s B y C l a s s N a m e ( ' c n n E x p a n d C o m m e n t s L n k ' ) ; 
 
 
 	 	 	 v a r   n u m L e n g t h   =   o b j . r s s . c h a n n e l . i t e m . l e n g t h ; 
 	 	 	 v a r   d i s p l a y N u m   =   n u m L e n g t h   -   1 ; 
 	 	 	 i f   ( n u m L e n g t h   >   3 )   { 
 	 	 	 	 c n n S h o w E x p a n d e d L n k [ 0 ] . i n n e r 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 = " C N N _ T o g g l e N e s t e d S t o r y C o n t e n t ( \ ' c n n O p i n i o n S u b C o n t a i n e r \ ' , t h i s ,   \ ' ' + n u m L e n g t h + ' \ ' , n u l l ) ; " > N e x t   ' + c o m m e n t s W i n d o w + '   c o m m e n t s   & r a q u o ; < \ / a >   < s p a n   i d = " n e x t L i n k "   s t y l e = " v i s i b i l i t y : h i d d e n " >   |   < 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 = " C N N _ g e t N e x t C o m m e n t s ( ) " > N e x t   ' + c o m m e n t s W i n d o w + '   c o m m e n t s   & r a q u o ; < / a > < / s p a n > ' ; 
 	 	 	 } 
 	 	 i f   ( n u m L e n g t h   > =   1   & &   ( t y p e o f ( c n n R e a d e r O p i n i o n s )   ! =   " u n d e f i n e d "   & &   c n n R e a d e r O p i n i o n s ) )   { 
 	 	 	 c n n T o g g l e U G C ( ' c n n O p i n i o n C o n t a i n e r ' , c n n S h o w E x p a n d e d C o n t ) 
 	 	 } 
 
         f o r   ( v a r   x x   =   0 ;   x x   <   n u m L e n g t h ;   x x + + )   { 
 	 	 	 	 v a r   c l O b j e c t   =   o b j . r s s . c h a n n e l . i t e m [ x x ] ; 
 	 	 	 	 i f ( x x   = =   0 ) { 
 	 	 	 	 	 C N N _ c o m m e n t + = ' < d i v   i d = " a l l C o m m e n t s " > ' ; 
 	 	 	 	 } 
 	 	 	 	 i f ( x x   = =   c n n I n i t i a l D i s p l a y ) 
 	 	 	 	 { 
 	 	 	 	 	 C N N _ c o m m e n t + = ' < d i v   i d = " c n n O p i n i o n S u b C o n t a i n e r "   s t y l e = " d i s p l a y : n o n e ; " > ' ; 
 	 	 	 	 } 
 
         	 C N N _ c o m m e n t   + =   ' 	 	 < d i v   c l a s s = " c n n U G C B o x " > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 < d i v   c l a s s = " c n n U G C B o x H e a d e r " > < i m g   s r c = " h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / i m g / 2 . 0 / m o s a i c / b a s e _ s k i n s / U G C / b _ u g c _ T L . g i f "   a l t = " "   w i d t h = " 4 "   h e i g h t = " 4 " > < \ / d i v > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 < d i v   c l a s s = " c n n B o x C o n t e n t " > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 	 < d i v   c l a s s = " c n n M e t a " > ' ; 
         	 C N N _ c o m m e n t   + =   	 	 	 	 	 ' < s p a n   c l a s s = " c n n C o n t r i b u t o r " > ' + c l O b j e c t [ ' j f : a u t h o r ' ] + ' < \ / s p a n > < b r > ' ; 
         	 C N N _ c o m m e n t   + =   c n n R e n d e r T i m e S t a m p ( c l O b j e c t [ ' p u b D a t e ' ] ) ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 	 < \ / d i v > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 	 < p > ' ; 
         	 C N N _ c o m m e n t   + =   c l O b j e c t [ ' d e s c r i p t i o n ' ] . t r u n c a t e ( 3 0 0 , '   . . . < 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 = " c n n S h o w M o r e ( t h i s ) ; r e t u r n   f a l s e " > m o r e < \ / a > ' ) ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 	 < \ / p > ' ; 
 
             	 C N N _ c o m m e n t   + =   ' 	 	 	 	 < d i v   c l a s s = " c n n E x t e n d e d "   s t y l e = " d i s p l a y : n o n e ; " > < p > ' ; 
         	 C N N _ c o m m e n t   + =   c l O b j e c t [ ' d e s c r i p t i o n ' ] ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 	 < 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 = " c n n S h o w L e s s ( t h i s ) ; r e t u r n   f a l s e ; " > l e s s < \ / a > < \ / p > < \ / d i v > ' ; 
 
 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 < \ / d i v > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 	 < d i v   c l a s s = " c l e a r " > < i m g   s r c = " h t t p : / / i . c d n . t u r n e r . c o m / c n n / I m a g e s / 1 . g i f "   w i d t h = " 1 "   h e i g h t = " 1 "   b o r d e r = " 0 "   a l t = " " > < / d i v > < d i v   c l a s s = " c n n U G C B o x F o o t e r " > < i m g   s r c = " h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / i m g / 2 . 0 / m o s a i c / b a s e _ s k i n s / U G C / b _ u g c _ B L . g i f "   a l t = " "   w i d t h = " 4 "   h e i g h t = " 4 " > < \ / d i v > ' ; 
         	 C N N _ c o m m e n t   + =   ' 	 	 < \ / d i v > ' ; 
 
 	 	 	 	 i f ( x x   = =   d i s p l a y N u m ) 
 	 	 	 	 { 
 	 	 	 	 	 C N N _ c o m m e n t + = ' < \ / d i v > < / d i v > ' ; 
 	 	 	 	 } 
         } 
 
 	 r e t u r n   C N N _ c o m m e n t ; 
 } 
 
 / /       s t o r y   c o m m e n t s   f u n c t i o n s 
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   E N D 
 
 / *   s h a r e   l i n k   f u n c t i o n s   
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 f u n c t i o n   c n n S e t S h a r e L n k s ( )   { 
 	 / /   m i x x 
 	 v a r   m i x x U R L   =   ' h t t p : / / w w w . m i x x . c o m / s u b m i t / s t o r y ? p a g e _ u r l = ' + e n c o d e U R I C o m p o n e n t ( l o c a t i o n . h r e f ) + ' & t i t l e = ' + c n n S h a r e T i t l e + ' & d e s c r i p t i o n = ' + c n n S h a r e D e s c + ' & p a r t n e r = C N N ' ; 
 	 i f ( $ ( ' c n n S B t n M i x x ' ) )   { 
 	 	 $ ( ' c n n S B t n M i x x ' ) . h r e f   =   m i x x U R L ; 
 	 	 $ ( ' c n n S B t n M i x x ' ) . t a r g e t = " _ b l a n k " ; 
 	 } 
 	 i f ( $ ( ' c n n S B t n M i x x B o t ' ) )   { 
 	 	 $ ( ' c n n S B t n M i x x B o t ' ) . h r e f   =   m i x x U R L ; 
 	 	 $ ( ' c n n S B t n M i x x B o t ' ) . t a r g e t = " _ b l a n k " ; 
 	 } 
 	 i f ( $ ( ' c n n M i x x E m b e d L n k ' ) )   { 
 	 	 $ ( ' c n n M i x x E m b e d L n k ' ) . h r e f   =   m i x x U R L ; 
 	 	 $ ( ' c n n M i x x E m b e d L n k ' ) . t a r g e t = " _ b l a n k " ; 
 	 } 
 	 / /   D i g g 
 	 v a r   d i g g U R L   =   ' h t t p : / / d i g g . c o m / s u b m i t ? p h a s e = 2 & u r l = ' + e n c o d e U R I C o m p o n e n t ( l o c a t i o n . h r e f ) + ' & t i t l e = ' + c n n S h a r e T i t l e + ' & b o d y t e x t = ' + c n n S h a r e D e s c ; 
 	 i f ( $ ( ' c n n S B t n D i g g ' ) )   { 
 	 	 $ ( ' c n n S B t n D i g g ' ) . h r e f   =   d i g g U R L ; 
 	 	 $ ( ' c n n S B t n D i g g ' ) . t a r g e t = " _ b l a n k " ; 
 	 } 
 	 i f ( $ ( ' c n n S B t n D i g g B o t ' ) )   { 
 	 	 $ ( ' c n n S B t n D i g g B o t ' ) . h r e f   =   d i g g U R L ; 
 	 	 $ ( ' c n n S B t n D i g g B o t ' ) . t a r g e t = " _ b l a n k " ; 
 	 } 
 	 / /   F a c e b o o k 
 	 v a r   f a c e b o o k U R L   =   ' h t t p : / / w w w . f a c e b o o k . c o m / s h a r e . p h p ? u = ' + e n c o d e U R I C o m p o n e n t ( l o c a t i o n . h r e f ) ; 
 	 i f ( $ ( ' c n n S B t n F a c e b o o k ' ) )   { 
 	 	 $ ( ' c n n S B t n F a c e b o o k ' ) . h r e f   =   f a c e b o o k U R L ; 
 	 	 $ ( ' c n n S B t n F a c e b o o k ' ) . t a r g e t = " _ b l a n k " ; 
 	 } 
 	 i f ( $ ( ' c n n S B t n F a c e b o o k B o t ' ) )   { 
 	 	 $ ( ' c n n S B t n F a c e b o o k B o t ' ) . h r e f   =   f a c e b o o k U R L ; 
 	 	 $ ( ' c n n S B t n F a c e b o o k B o t ' ) . t a r g e t = " _ b l a n k " ; 
 	 } 
 	 / /   d e l . i c i o . u s 
 	 v a r   d e l i c i o u s U R L   =   ' h t t p : / / d e l . i c i o . u s / p o s t ? v = 4 & p a r t n e r = c n n & n o u i & j u m p = c l o s e & u r l = ' + e n c o d e U R I C o m p o n e n t ( l o c a t i o n . h r e f ) + ' & t i t l e = ' + c n n S h a r e T i t l e + ' d e l i c i o u s ' ; 
 	 i f ( $ ( ' c n n S B t n D e l i c i o u s ' ) )   { 
 	 	 $ ( ' c n n S B t n D e l i c i o u s ' ) . h r e f   =   d e l i c i o u s U R L ; 
 	 	 $ ( ' c n n S B t n D e l i c i o u s ' ) . t a r g e t = " _ b l a n k " ; 
 	 } 
 	 i f ( $ ( ' c n n S B t n D e l i c i o u s B o t ' ) )   { 
 	 	 $ ( ' c n n S B t n D e l i c i o u s B o t ' ) . h r e f   =   d e l i c i o u s U R L ; 
 	 	 $ ( ' c n n S B t n D e l i c i o u s B o t ' ) . t a r g e t = " _ b l a n k " ; 
 	 } 
 	 / /   r e d d i t 
 	 v a r   r e d d i t U R L   =   ' h t t p : / / r e d d i t . c o m / s u b m i t ? u r l = ' + e n c o d e U R I C o m p o n e n t ( l o c a t i o n . h r e f ) + ' & t i t l e = ' + c n n S h a r e T i t l e ; 
 	 i f ( $ ( ' c n n S B t n R e d d i t ' ) )   { 
 	 	 $ ( ' c n n S B t n R e d d i t ' ) . h r e f   =   r e d d i t U R L ; 
 	 	 $ ( ' c n n S B t n R e d d i t ' ) . t a r g e t = " _ b l a n k " ; 
 	 } 
 	 i f ( $ ( ' c n n S B t n R e d d i t B o t ' ) )   { 
 	 	 $ ( ' c n n S B t n R e d d i t B o t ' ) . h r e f   =   r e d d i t U R L ; 
 	 	 $ ( ' c n n S B t n R e d d i t B o t ' ) . t a r g e t = " _ b l a n k " ; 
 	 } 
 	 / /   s t u m b l e u p o n 
 	 v a r   s t u m b l e u p o n U R L   =   ' h t t p : / / w w w . s t u m b l e u p o n . c o m / s u b m i t ? u r l = ' + e n c o d e U R I C o m p o n e n t ( l o c a t i o n . h r e f ) + ' & t i t l e = ' + c n n S h a r e T i t l e ; 
 	 i f ( $ ( ' c n n S B t n S t u m b l e U p o n ' ) )   { 
 	 	 $ ( ' c n n S B t n S t u m b l e U p o n ' ) . h r e f   =   s t u m b l e u p o n U R L ; 
 	 	 $ ( ' c n n S B t n S t u m b l e U p o n ' ) . t a r g e t = " _ b l a n k " ; 
 	 } 
 	 i f ( $ ( ' c n n S B t n S t u m b l e U p o n B o t ' ) )   { 
 	 	 $ ( ' c n n S B t n S t u m b l e U p o n B o t ' ) . h r e f   =   s t u m b l e u p o n U R L ; 
 	 	 $ ( ' c n n S B t n S t u m b l e U p o n B o t ' ) . t a r g e t = " _ b l a n k " ; 
 	 } 
 	 / /   m y s p a c e 
 	 v a r   m y s p a c e U R L   =   ' h t t p : / / w w w . m y s p a c e . c o m / M o d u l e s / P o s t T o / P a g e s / ? '   +   ' t = '   +   c n n S h a r e T i t l e   +   ' & c = '   +   c n n S h a r e D e s c   +   ' & u = '   +   e n c o d e U R I C o m p o n e n t ( l o c a t i o n . h r e f ) ; 
 	 i f ( $ ( ' c n n S B t n M y s p a c e ' ) )   { 
 	 	 $ ( ' c n n S B t n M y s p a c e ' ) . h r e f   =   m y s p a c e U R L ; 
 	 	 $ ( ' c n n S B t n M y s p a c e ' ) . t a r g e t = " _ b l a n k " ; 
 	 } 
 	 i f ( $ ( ' c n n S B t n M y s p a c e B o t ' ) )   { 
 	 	 $ ( ' c n n S B t n M y s p a c e B o t ' ) . h r e f   =   m y s p a c e U R L ; 
 	 	 $ ( ' c n n S B t n M y s p a c e B o t ' ) . t a r g e t = " _ b l a n k " ; 
 	 } 
 } 
 
 / *   m a i n   p a g e   m a r k e t   b o x 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 / *   c a l l e d   o n   f o c u s   * / 
 f u n c t i o n   c n n M b C h a n g e T x t C l a s s (   o b j   )   { 
 	 i f ( o b j . c l a s s N a m e   = =   ' c n n T x t M B G e t Q u o t e ' )   { 
 	 	 o b j . v a l u e   =   ' ' ; 
 	 	 o b j . c l a s s N a m e   =   ' c n n T x t M B G e t Q u o t e T y p e ' ; 
 	 } 
 } 
 
 / *   c a l l e d   o n   b l u r   * / 
 f u n c t i o n   c n n M b C h e c k T x t C l a s s (   o b j   )   { 
 	 i f ( ( o b j . c l a s s N a m e   = =   ' c n n T x t M B G e t Q u o t e T y p e ' )   & &   ( o b j . v a l u e   = =   ' ' ) )   { 
 	 	 o b j . c l a s s N a m e   =   ' c n n T x t M B G e t Q u o t e ' ; 
 	 	 o b j . v a l u e   =   ' e n t e r   s y m b o l ' ; 
 	 } 
 } 
 / *   e n d   m a i n   p a g e   m a r k e t   b o x 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 / *   s e a r c h   f u n c t i o n s 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 v a r   c n n S t r I n v a l i d S r c h M s g   =   ' P l e a s e   e n t e r   a   v a l i d   s e a r c h   t e r m   a n d   t r y   a g a i n . ' + " \ n " + ' H T M L ,   U R L s ,   a n d   S c r i p t s   a r e   n o t   a l l o w e d . ' ; 
 
 f u n c t i o n   c n n S e a r c h (   f r m   )   { 
 	 i f ( $ ( ' c n n H e a d S r c h T x t ' ) . v a l u e   ! =   ' ' )   { 
 	 	 i f ( ! c n n V e r i f y S e a r c h S t r i n g ( $ ( ' c n n H e a d S r c h T x t ' ) . v a l u e ) )   { a l e r t ( c n n S t r I n v a l i d S r c h M s g ) ; } 
 	 	 e l s e   { 
 	 	 	 v a r   s t r S e a r c h L o c   =   c n n G e t S e a r c h L o c ( ) ; 
 	 	 	 s t r S e a r c h L o c   + =   ' q u e r y = '   +   c n n L e f t T r i m ( $ ( ' c n n H e a d S r c h T x t ' ) . v a l u e ) ; 
 
 	 	 	 s t r S e a r c h L o c   + =   ' & ' ; 
 	 	 	 s t r S e a r c h L o c   + =   ' t y p e = '   +   $ ( ' c n n H e a d S r c h T y p e ' ) . v a l u e ; 
 	 	 	 s t r S e a r c h L o c   + =   ' & ' ; 
 	 	 	 s t r S e a r c h L o c   + =   ' s o r t B y = d a t e ' ; 
 	 	 	 i f ( l o c a t i o n . h o s t n a m e . i n d e x O f ( ' e d i t i o n ' )   <   0 )   { 
 	 	 	 	 s t r S e a r c h L o c   + =   ' & ' ; 
 	 	 	 	 s t r S e a r c h L o c   + =   ' i n t l = f a l s e ' ; 
 	 	 	 }   e l s e   { 
 	 	 	 	 s t r S e a r c h L o c   + =   ' & ' ; 
 	 	 	 	 s t r S e a r c h L o c   + =   ' i n t l = t r u e ' ; 
 	 	 	 } 
 	 	 	 l o c a t i o n . h r e f   =   s t r S e a r c h L o c ; 
 	 	 } 
 	 } 
 	 r e t u r n   f a l s e ; 
 } 
 
 f u n c t i o n   c n n V e r i f y S e a r c h S t r i n g (   s r c h T e r m   )   { 
 	 v a r   h t m l R e g E x   =   n e w   R e g E x p ( ' [ \ w * | \ W * ] * < [ [ \ w * | \ W * ] * | / [ \ w * | \ W * ] ] > [ \ w * | \ W * ] * ' ) ; 
 
 	 i f ( h t m l R e g E x . e x e c ( s r c h T e r m )   | |   ( s r c h T e r m   = =   n u l l )   | |   ( c n n L e f t T r i m ( s r c h T e r m ) . l e n g t h   = =   0 )   | |   ( s r c h T e r m . i n d e x O f ( " > " )   > =   0 )   | |   ( s r c h T e r m . i n d e x O f ( " ; " )   > =   0 )   ) { 
 	 	 r e t u r n   f a l s e ; 
 	 } 
 	 e l s e   r e t u r n   t r u e ; 
 } 
 
 f u n c t i o n   c n n G e t S e a r c h L o c ( )   { 
 	 v a r   s t r S e a r c h L o c   =   ' h t t p : / / s e a r c h . b o n g d a 6 8 . v n / s e a r c h . j s p ? ' ;   / /   d e f a u l t 
 
 	 i f ( l o c a t i o n . h o s t n a m e . i n d e x O f ( ' q a i ' )   ! =   - 1 )   { 
 	 	 s t r S e a r c h L o c   =   ' h t t p : / / b o n g d a 6 8 . v n / c n n r e l a u n c h / s e a r c h . j s p ? ' 
 	 } 
 	 e l s e   i f ( l o c a t i o n . h o s t n a m e . i n d e x O f ( ' b e t a ' )   ! =   - 1 )   { 
 	 	 s t r S e a r c h L o c   =   ' h t t p : / / s e a r c h . b o n g d a 6 8 . v n / s e a r c h . j s p ? ' 
 	 } 
 
 	 r e t u r n   s t r S e a r c h L o c ; 
 } 
 
 f u n c t i o n   c n n L e f t T r i m ( s S t r i n g )   { 
 	 w h i l e   ( s S t r i n g . s u b s t r i n g ( 0 , 1 )   = =   '   ' )   { 
 	 	 s S t r i n g   =   s S t r i n g . s u b s t r i n g ( 1 ,   s S t r i n g . l e n g t h ) ; 
 	 } 
 	 r e t u r n   s S t r i n g ; 
 } 
 
 f u n c t i o n   c n n F o o t S e a r c h (   f r m   )   { 
 	 i f ( $ ( ' c n n F o o t S r c h T x t ' ) . v a l u e   ! =   ' ' )   { 
 	 	 i f ( ! c n n V e r i f y S e a r c h S t r i n g ( $ ( ' c n n F o o t S r c h T x t ' ) . v a l u e ) )   { a l e r t ( c n n S t r I n v a l i d S r c h M s g ) ; } 
 	 	 e l s e   { 
 
 	 	 	 v a r   s t r S e a r c h L o c   =   c n n G e t S e a r c h L o c ( ) ; 
 	 	 	 s t r S e a r c h L o c   + =   ' q u e r y = '   +   c n n L e f t T r i m ( $ ( ' c n n F o o t S r c h T x t ' ) . v a l u e ) ; 
 	 	 	 s t r S e a r c h L o c   + =   ' & ' ; 
 	 	 	 s t r S e a r c h L o c   + =   ' t y p e = w e b ' ; 
 	 	 	 s t r S e a r c h L o c   + =   ' & ' ; 
 	 	 	 s t r S e a r c h L o c   + =   ' s o r t B y = d a t e ' ; 
 	 	 	 i f ( l o c a t i o n . h o s t n a m e . i n d e x O f ( ' e d i t i o n ' )   <   0 )   { 
 	 	 	 	 s t r S e a r c h L o c   + =   ' & ' ; 
 	 	 	 	 s t r S e a r c h L o c   + =   ' i n t l = f a l s e ' ; 
 	 	 	 }   e l s e   { 
 	 	 	 	 s t r S e a r c h L o c   + =   ' & ' ; 
 	 	 	 	 s t r S e a r c h L o c   + =   ' i n t l = t r u e ' ; 
 	 	 	 } 
 	 	 	 l o c a t i o n . h r e f   =   s t r S e a r c h L o c ; 
 	 	 } 
 	 } 
 	 r e t u r n   f a l s e ; 
 } 
 
 f u n c t i o n   c n n U p d a t e S r c h T y p e (   s e a r c h T y p e   )   { 
 	 i f ( $ ( ' c n n H e a d S r c h T y p e ' ) )   { 
 	 	 $ ( ' c n n H e a d S r c h T y p e ' ) . v a l u e   =   s e a r c h T y p e ; 
 	 } 
 	 c n n U p d a t e S r c h T y p e L n k s (   s e a r c h T y p e   ) ; 
 } 
 
 f u n c t i o n   c n n U p d a t e S r c h T y p e L n k s (   s e a r c h T y p e   )   { 
 	 i f ( $ ( ' c n n H e a d S r c h T y p e A r e a ' ) )   { 
 	 	 s w i t c h ( s e a r c h T y p e )   { 
 	 	 	 c a s e   ' w e b ' : 
 	 	 	 	 $ ( ' c n n H e a d S r c h T y p e A r e a ' ) . i n n e r H T M L   =   ' < s p a n   c l a s s = " c n n S e a r c h L a b e l " > W e b < / s p a n >   |   < a   h r e f = " j a v a s c r i p t : c n n U p d a t e S r c h T y p e ( \ ' n e w s \ ' ) ; " > C N N   N e w s < / a >   |   < a   h r e f = " j a v a s c r i p t : c n n U p d a t e S r c h T y p e ( \ ' v i d e o \ ' ) ; " > C N N   V i d e o s < / a > ' ; 
 	 	 	 	 b r e a k ; 
 	 	 	 c a s e   ' n e w s ' : 
 	 	 	 	 $ ( ' c n n H e a d S r c h T y p e A r e a ' ) . i n n e r H T M L   =   ' < a   h r e f = " j a v a s c r i p t : c n n U p d a t e S r c h T y p e ( \ ' w e b \ ' ) ; " > W e b < / a >   |   < s p a n   c l a s s = " c n n S e a r c h L a b e l " > C N N   N e w s < / s p a n >   |   < a   h r e f = " j a v a s c r i p t : c n n U p d a t e S r c h T y p e ( \ ' v i d e o \ ' ) ; " > C N N   V i d e o s < / a > ' ; 
 	 	 	 	 b r e a k ; 
 	 	 	 c a s e   ' v i d e o ' : 
 	 	 	 	 $ ( ' c n n H e a d S r c h T y p e A r e a ' ) . i n n e r H T M L   =   ' < a   h r e f = " j a v a s c r i p t : c n n U p d a t e S r c h T y p e ( \ ' w e b \ ' ) ; " > W e b < / a >   |   < a   h r e f = " j a v a s c r i p t : c n n U p d a t e S r c h T y p e ( \ ' n e w s \ ' ) ; " > C N N   N e w s < / a >   |   < s p a n   c l a s s = " c n n S e a r c h L a b e l " > C N N   V i d e o s < / s p a n > ' ; 
 	 	 	 	 b r e a k ; 
 	 	 	 d e f a u l t : 
 	 	 	 	 b r e a k ; 
 	 	 } 
 	 } 
 } 
 
 / *   e n d   s e a r c h   f u n c t i o n s 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 / *   c n n   l i v e   v i d e o   p o p u p 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 v a r   c n n V i d S e r v e r   =   ' ' ; 
 f u n c t i o n   c n n L i v e V i d e o (   s t r W h i c h   )   { 
 	 i f ( ! s t r W h i c h )   { 
 	 	 s t r W h i c h   =   ' 1 ' ; 
 	 } 
 	 v a r   s t r V i d L o c   =   c n n V i d S e r v e r   +   ' / v i d e o / l i v e / l i v e . h t m l ? s t r e a m = s t r e a m '   +   s t r W h i c h ; 
 	 j a v a s c r i p t : C N N _ o p e n P o p u p ( s t r V i d L o c , ' l i v e p l a y e r ' , ' 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 = n o , r e s i z a b l e = y e s , w i d t h = 6 7 2 , h e i g h t = 5 4 0 ' ) 
 } 
 / *   e n d   c n n   l i v e   v i d e o   p o p u p 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 
 f u n c t i o n   c n n V i d e o ( m o d e ,   a r g ,   e x p i r a t i o n )   { 
 	 v i d e o _ u r l   =   ' / v i d e o / # '   +   a r g ; 
 
 	 i f ( m o d e   = =   ' l i v e ' )   {   c n n L i v e V i d e o ( a r g ) ;   } 
 	 e l s e   i f ( t o p . l o c a t i o n   = =   s e l f . l o c a t i o n )   {   l o c a t i o n . h r e f   =   v i d e o _ u r l ;   } 
 	 e l s e   {   v i d _ w i n   =   w i n d o w . o p e n ( v i d e o _ u r l ,   ' v i d _ w i n ' ) ;   } 
 } 
 
 
 / *   m a i n   p a g e   v i d e o   b o x   ( d o m e s t i c   &   i n t l ) 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 v a r   c n n M p V p C u r P a g e   =   1 ; 
 v a r   c n n M p V p L o c k   =   f a l s e ; 
 f u n c t i o n   c n n M p V p B l u r (   l n k   )   { 
 	 t r y   { 
 	 	 l n k . b l u r ( ) ; 
 	 }   c a t c h ( e )   { } ; 
 } 
 / * 
   *   c n n M p V p N e x t ( )   a n d   c n n M p V p P r e v ( ) 
   *   a r e   c a l l e d   f r o m   p r e v i o u s   a n d   n e x t   b u t t o n s 
   * / 
 f u n c t i o n   c n n M p V p N e x t (   l n k   )   { 
 	 c n n M p V p B l u r (   l n k   ) ; 
 	 i f ( ( c n n M p V p C u r P a g e   <   3 ) & & ( ! c n n M p V p L o c k ) )   { 
 	 	 c n n M p V p S l i d e L e f t ( ) ; 
 	 } 
 } 
 
 f u n c t i o n   c n n M p V p P r e v (   l n k   )   { 
 	 c n n M p V p B l u r (   l n k   ) ; 
 	 i f ( ( c n n M p V p C u r P a g e   >   1 ) & & ( ! c n n M p V p L o c k ) )   { 
 	 	 c n n M p V p S l i d e R i g h t ( ) ; 
 	 } 
 } 
 
 / * 
   *   c n n M p V p P a g e (   i n t P a g e   ) 
   *   c a l l e d   f r o m   c l i c k i n g   o n   g r a y   d o t   i c o n 
   * / 
 f u n c t i o n   c n n M p V p P a g e (   i n t P a g e ,   l n k   )   { 
 	 c n n M p V p B l u r (   l n k   ) ; 
 	 i f ( ( c n n M p V p C u r P a g e   ! =   i n t P a g e ) & & ( ! c n n M p V p L o c k ) )   { 
 	 	 i f ( c n n M p V p C u r P a g e   <   i n t P a g e )   { 
 	 	 	 i f ( ( i n t P a g e   -   c n n M p V p C u r P a g e )   >   1 )   { 
 	 	 	 	 c n n M p V p S l i d e D o u b l e L e f t ( ) ; 
 	 	 	 } 
 	 	 	 e l s e   { 
 	 	 	 	 c n n M p V p S l i d e L e f t ( ) ; 
 	 	 	 } 
 	 	 } 
 	 	 e l s e   { 
 	 	 	 i f ( ( c n n M p V p C u r P a g e   -   i n t P a g e )   >   1 )   { 
 	 	 	 	 c n n M p V p S l i d e D o u b l e R i g h t ( ) ; 
 	 	 	 } 
 	 	 	 e l s e   { 
 	 	 	 	 c n n M p V p S l i d e R i g h t ( ) ; 
 	 	 	 } 
 	 	 } 
 	 } 
 } 
 
 f u n c t i o n   c n n L o c k M p V p (   i n t D u r   )   { 
 	 v a r   c n n L o c k D u r   =   i n t D u r   *   1 0 0 ; 
 	 c n n M p V p L o c k   =   t r u e ; 
 	 s e t T i m e o u t ( f u n c t i o n ( )   {   c n n M p V p L o c k   =   f a l s e ;   } , c n n L o c k D u r ) ; 
 } 
 f u n c t i o n   c n n M p V p S l i d e L e f t ( )   { 
 	 c n n L o c k M p V p ( 3 ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p V i d C t n t 0 ' ,   0 ,   - 3 3 6   ,   { d u r a t i o n :   0 . 3 }   ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p V i d C t n t 1 ' ,   0 ,   - 3 3 6   ,   { d u r a t i o n :   0 . 3 }   ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p V i d C t n t 2 ' ,   0 ,   - 3 3 6   ,   { d u r a t i o n :   0 . 3 }   ) ; 
 	 c n n M p V p C u r P a g e + + ; 
 	 c n n M p V p M o v e D o t ( ) ; 
 	 c n n M p V p U p d a t e B t n s ( ) ; 
 } 
 
 f u n c t i o n   c n n M p V p S l i d e D o u b l e L e f t ( )   { 
 	 c n n L o c k M p V p ( 6 ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p V i d C t n t 0 ' ,   0 ,   - 6 7 2   ,   { d u r a t i o n :   0 . 6 }   ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p V i d C t n t 1 ' ,   0 ,   - 6 7 2   ,   { d u r a t i o n :   0 . 6 }   ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p V i d C t n t 2 ' ,   0 ,   - 6 7 2   ,   { d u r a t i o n :   0 . 6 }   ) ; 
 	 c n n M p V p C u r P a g e + + ; 
 	 c n n M p V p C u r P a g e + + ; 
 	 c n n M p V p M o v e D o t ( ) ; 
 	 c n n M p V p U p d a t e B t n s ( ) ; 
 } 
 
 f u n c t i o n   c n n M p V p S l i d e R i g h t ( )   { 
 	 c n n L o c k M p V p ( 3 ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p V i d C t n t 0 ' ,   0 ,   3 3 6   ,   { d u r a t i o n :   0 . 3 }   ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p V i d C t n t 1 ' ,   0 ,   3 3 6   ,   { d u r a t i o n :   0 . 3 }   ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p V i d C t n t 2 ' ,   0 ,   3 3 6   ,   { d u r a t i o n :   0 . 3 }   ) ; 
 	 c n n M p V p C u r P a g e - - ; 
 	 c n n M p V p M o v e D o t ( ) ; 
 	 c n n M p V p U p d a t e B t n s ( ) ; 
 } 
 
 f u n c t i o n   c n n M p V p S l i d e D o u b l e R i g h t ( )   { 
 	 c n n L o c k M p V p ( 6 ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p V i d C t n t 0 ' ,   0 ,   6 7 2   ,   { d u r a t i o n :   0 . 6 }   ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p V i d C t n t 1 ' ,   0 ,   6 7 2   ,   { d u r a t i o n :   0 . 6 }   ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p V i d C t n t 2 ' ,   0 ,   6 7 2   ,   { d u r a t i o n :   0 . 6 }   ) ; 
 	 c n n M p V p C u r P a g e - - ; 
 	 c n n M p V p C u r P a g e - - ; 
 	 c n n M p V p M o v e D o t ( ) ; 
 	 c n n M p V p U p d a t e B t n s ( ) ; 
 } 
 
 f u n c t i o n   c n n M p D o t M o u s e O v e r (   i d   )   { 
 	 $ ( i d ) . s r c   =   ' I m a g e s / g r a y _ a c t i v e _ s t a t u s . g i f ' ; 
 } 
 
 / /   i m a g e   c h a n g e   f u n c t i o n s 
 f u n c t i o n   c n n M p V p M o v e D o t ( )   { 
 	 f o r ( i = 1 ; i < 4 ; i + + )   { 
 	 	 $ ( ' c n n M p V i d D o t ' + i ) . s r c   =   ' I m a g e s / g r a y _ s t a t u s . g i f ' ; 
 	 	 $ ( ' c n n M p V i d D o t ' + i ) . o n m o u s e o v e r   =   f u n c t i o n ( )   { t h i s . s r c   =   ' I m a g e s / g r a y _ a c t i v e _ s t a t u s . g i f ' ; } 
 	 	 $ ( ' c n n M p V i d D o t ' + i ) . o n m o u s e o u t   =   f u n c t i o n ( )   { t h i s . s r c   =   ' I m a g e s / g r a y _ s t a t u s . g i f ' ; } 
 	 } 
 	 $ ( ' c n n M p V i d D o t ' + c n n M p V p C u r P a g e ) . s r c   =   ' I m a g e s / g r a y _ a c t i v e _ s t a t u s . g i f ' ; 
 	 $ ( ' c n n M p V i d D o t ' + c n n M p V p C u r P a g e ) . o n m o u s e o v e r   =   f u n c t i o n ( )   { } 
 	 $ ( ' c n n M p V i d D o t ' + c n n M p V p C u r P a g e ) . o n m o u s e o u t   =   f u n c t i o n ( )   { } 
 } 
 f u n c t i o n   c n n M p V p U p d a t e B t n s ( )   { 
 	 i f ( c n n M p V p C u r P a g e   >   1 )   { 
 	 	 $ ( ' c n n M p V i d B t n L ' ) . s t y l e . c u r s o r   = ' a u t o ' ; 
 	 	 $ ( ' c n n M p V i d B t n L ' ) . s r c   =   ' I m a g e s / l e f t _ r e d _ b t n . g i f ' ; 
 	 	 $ ( ' c n n M p V i d B t n L ' ) . o n m o u s e o v e r   =   f u n c t i o n ( )   {   t h i s . s r c = ' I m a g e s / l e f t _ r e d _ o v e r _ b t n . g i f ' ;   } 
 	 	 $ ( ' c n n M p V i d B t n L ' ) . o n m o u s e o u t   =   f u n c t i o n ( )   {   t h i s . s r c = ' I m a g e s / l e f t _ r e d _ b t n . g i f ' ;   } 
 	 } 
 	 e l s e   { 
 	 	 $ ( ' c n n M p V i d B t n L ' ) . s t y l e . c u r s o r   = ' d e f a u l t ' ; 
 	 	 $ ( ' c n n M p V i d B t n L ' ) . s r c   =   ' I m a g e s / l e f t _ g r a y _ b t n . g i f ' ; 
 	 	 $ ( ' c n n M p V i d B t n L ' ) . o n m o u s e o v e r   =   f u n c t i o n ( )   { } 
 	 	 $ ( ' c n n M p V i d B t n L ' ) . o n m o u s e o u t   =   f u n c t i o n ( )   { } 
 	 } 
 
 	 i f ( c n n M p V p C u r P a g e   <   3 )   { 
 	 	 $ ( ' c n n M p V i d B t n R ' ) . s t y l e . c u r s o r   = ' a u t o ' ; 
 	 	 $ ( ' c n n M p V i d B t n R ' ) . s r c   =   ' I m a g e s / r i g h t _ r e d _ b t n . g i f ' ; 
 	 	 $ ( ' c n n M p V i d B t n R ' ) . o n m o u s e o v e r   =   f u n c t i o n ( )   { t h i s . s r c   =   ' I m a g e s / r i g h t _ r e d _ o v e r _ b t n . g i f ' ; } 
 	 	 $ ( ' c n n M p V i d B t n R ' ) . o n m o u s e o u t   =   f u n c t i o n ( )   { t h i s . s r c   =   ' I m a g e s / r i g h t _ r e d _ b t n . g i f ' ; } 
 	 } 
 	 e l s e   { 
 	 	 $ ( ' c n n M p V i d B t n R ' ) . s t y l e . c u r s o r   = ' d e f a u l t ' ; 
 	 	 $ ( ' c n n M p V i d B t n R ' ) . s r c   =   ' I m a g e s / r i g h t _ g r a y _ b t n . g i f ' ; 
 	 	 $ ( ' c n n M p V i d B t n R ' ) . o n m o u s e o v e r   =   f u n c t i o n ( )   { } 
 	 	 $ ( ' c n n M p V i d B t n R ' ) . o n m o u s e o u t   =   f u n c t i o n ( )   { } 
 	 } 
 } 
 / *   e n d   m a i n   p a g e   v i d e o   b o x 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 / *   c n n   l i v e   v i d e o   p o p u p 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 v a r   c n n V i d S e r v e r   =   ' ' ; 
 f u n c t i o n   c n n L i v e V i d e o (   s t r W h i c h   )   { 
 	 i f ( ! s t r W h i c h )   { 
 	 	 s t r W h i c h   =   ' 1 ' ; 
 	 } 
 	 v a r   s t r V i d L o c   =   c n n V i d S e r v e r   +   ' / v i d e o / l i v e / l i v e . h t m l ? s t r e a m = s t r e a m '   +   s t r W h i c h ; 
 	 j a v a s c r i p t : C N N _ o p e n P o p u p ( s t r V i d L o c , ' l i v e p l a y e r ' , ' 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 = n o , r e s i z a b l e = y e s , w i d t h = 6 7 2 , h e i g h t = 5 4 0 ' ) 
 } 
 / *   e n d   c n n   l i v e   v i d e o   p o p u p 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 
 f u n c t i o n   c n n V i d e o ( m o d e ,   a r g ,   e x p i r a t i o n )   { 
 	 v i d e o _ u r l   =   ' / v i d e o / # '   +   a r g ; 
 
 	 i f ( m o d e   = =   ' l i v e ' )   {   c n n L i v e V i d e o ( a r g ) ;   } 
 	 e l s e   i f ( t o p . l o c a t i o n   = =   s e l f . l o c a t i o n )   {   l o c a t i o n . h r e f   =   v i d e o _ u r l ;   } 
 	 e l s e   {   v i d _ w i n   =   w i n d o w . o p e n ( v i d e o _ u r l ,   ' v i d _ w i n ' ) ;   } 
 } 
 
 
 / *   m a i n   p a g e   A u d i o   b o x   ( d o m e s t i c   &   i n t l ) 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 v a r   c n n M p A p C u r P a g e   =   1 ; 
 v a r   c n n M p A p L o c k   =   f a l s e ; 
 f u n c t i o n   c n n M p A p B l u r (   l n k   )   { 
 	 t r y   { 
 	 	 l n k . b l u r ( ) ; 
 	 }   c a t c h ( e )   { } ; 
 } 
 / * 
   *   c n n M p A p N e x t ( )   a n d   c n n M p A p P r e v ( ) 
   *   a r e   c a l l e d   f r o m   p r e A i o u s   a n d   n e x t   b u t t o n s 
   * / 
 f u n c t i o n   c n n M p A p N e x t (   l n k   )   { 
 	 c n n M p A p B l u r (   l n k   ) ; 
 	 i f ( ( c n n M p A p C u r P a g e   <   3 ) & & ( ! c n n M p A p L o c k ) )   { 
 	 	 c n n M p A p S l i d e L e f t ( ) ; 
 	 } 
 } 
 
 f u n c t i o n   c n n M p A p P r e v (   l n k   )   { 
 	 c n n M p A p B l u r (   l n k   ) ; 
 	 i f ( ( c n n M p A p C u r P a g e   >   1 ) & & ( ! c n n M p A p L o c k ) )   { 
 	 	 c n n M p A p S l i d e R i g h t ( ) ; 
 	 } 
 } 
 
 / * 
   *   c n n M p A p P a g e (   i n t P a g e   ) 
   *   c a l l e d   f r o m   c l i c k i n g   o n   g r a y   d o t   i c o n 
   * / 
 f u n c t i o n   c n n M p A p P a g e (   i n t P a g e ,   l n k   )   { 
 	 c n n M p A p B l u r (   l n k   ) ; 
 	 i f ( ( c n n M p A p C u r P a g e   ! =   i n t P a g e ) & & ( ! c n n M p A p L o c k ) )   { 
 	 	 i f ( c n n M p A p C u r P a g e   <   i n t P a g e )   { 
 	 	 	 i f ( ( i n t P a g e   -   c n n M p A p C u r P a g e )   >   1 )   { 
 	 	 	 	 c n n M p A p S l i d e D o u b l e L e f t ( ) ; 
 	 	 	 } 
 	 	 	 e l s e   { 
 	 	 	 	 c n n M p A p S l i d e L e f t ( ) ; 
 	 	 	 } 
 	 	 } 
 	 	 e l s e   { 
 	 	 	 i f ( ( c n n M p A p C u r P a g e   -   i n t P a g e )   >   1 )   { 
 	 	 	 	 c n n M p A p S l i d e D o u b l e R i g h t ( ) ; 
 	 	 	 } 
 	 	 	 e l s e   { 
 	 	 	 	 c n n M p A p S l i d e R i g h t ( ) ; 
 	 	 	 } 
 	 	 } 
 	 } 
 } 
 
 f u n c t i o n   c n n L o c k M p A p (   i n t D u r   )   { 
 	 v a r   c n n L o c k D u r   =   i n t D u r   *   1 0 0 ; 
 	 c n n M p A p L o c k   =   t r u e ; 
 	 s e t T i m e o u t ( f u n c t i o n ( )   {   c n n M p A p L o c k   =   f a l s e ;   } , c n n L o c k D u r ) ; 
 } 
 f u n c t i o n   c n n M p A p S l i d e L e f t ( )   { 
 	 c n n L o c k M p A p ( 3 ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p A i d C t n t 0 ' ,   0 ,   - 3 3 6   ,   { d u r a t i o n :   0 . 3 }   ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p A i d C t n t 1 ' ,   0 ,   - 3 3 6   ,   { d u r a t i o n :   0 . 3 }   ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p A i d C t n t 2 ' ,   0 ,   - 3 3 6   ,   { d u r a t i o n :   0 . 3 }   ) ; 
 	 c n n M p A p C u r P a g e + + ; 
 	 c n n M p A p M o v e D o t ( ) ; 
 	 c n n M p A p U p d a t e B t n s ( ) ; 
 } 
 
 f u n c t i o n   c n n M p A p S l i d e D o u b l e L e f t ( )   { 
 	 c n n L o c k M p A p ( 6 ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p A i d C t n t 0 ' ,   0 ,   - 6 7 2   ,   { d u r a t i o n :   0 . 6 }   ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p A i d C t n t 1 ' ,   0 ,   - 6 7 2   ,   { d u r a t i o n :   0 . 6 }   ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p A i d C t n t 2 ' ,   0 ,   - 6 7 2   ,   { d u r a t i o n :   0 . 6 }   ) ; 
 	 c n n M p A p C u r P a g e + + ; 
 	 c n n M p A p C u r P a g e + + ; 
 	 c n n M p A p M o v e D o t ( ) ; 
 	 c n n M p A p U p d a t e B t n s ( ) ; 
 } 
 
 f u n c t i o n   c n n M p A p S l i d e R i g h t ( )   { 
 	 c n n L o c k M p A p ( 3 ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p A i d C t n t 0 ' ,   0 ,   3 3 6   ,   { d u r a t i o n :   0 . 3 }   ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p A i d C t n t 1 ' ,   0 ,   3 3 6   ,   { d u r a t i o n :   0 . 3 }   ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p A i d C t n t 2 ' ,   0 ,   3 3 6   ,   { d u r a t i o n :   0 . 3 }   ) ; 
 	 c n n M p A p C u r P a g e - - ; 
 	 c n n M p A p M o v e D o t ( ) ; 
 	 c n n M p A p U p d a t e B t n s ( ) ; 
 } 
 
 f u n c t i o n   c n n M p A p S l i d e D o u b l e R i g h t ( )   { 
 	 c n n L o c k M p A p ( 6 ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p A i d C t n t 0 ' ,   0 ,   6 7 2   ,   { d u r a t i o n :   0 . 6 }   ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p A i d C t n t 1 ' ,   0 ,   6 7 2   ,   { d u r a t i o n :   0 . 6 }   ) ; 
 	 n e w   E f f e c t . M o v e B y (   ' c n n M p A i d C t n t 2 ' ,   0 ,   6 7 2   ,   { d u r a t i o n :   0 . 6 }   ) ; 
 	 c n n M p A p C u r P a g e - - ; 
 	 c n n M p A p C u r P a g e - - ; 
 	 c n n M p A p M o v e D o t ( ) ; 
 	 c n n M p A p U p d a t e B t n s ( ) ; 
 } 
 
 f u n c t i o n   c n n M p D o t M o u s e O v e r (   i d   )   { 
 	 $ ( i d ) . s r c   =   ' I m a g e s / g r a y _ a c t i v e _ s t a t u s . g i f ' ; 
 } 
 
 / /   i m a g e   c h a n g e   f u n c t i o n s 
 f u n c t i o n   c n n M p A p M o v e D o t ( )   { 
 	 f o r ( i = 1 ; i < 4 ; i + + )   { 
 	 	 $ ( ' c n n M p A i d D o t ' + i ) . s r c   =   ' I m a g e s / g r a y _ s t a t u s . g i f ' ; 
 	 	 $ ( ' c n n M p A i d D o t ' + i ) . o n m o u s e o v e r   =   f u n c t i o n ( )   { t h i s . s r c   =   ' I m a g e s / g r a y _ a c t i v e _ s t a t u s . g i f ' ; } 
 	 	 $ ( ' c n n M p A i d D o t ' + i ) . o n m o u s e o u t   =   f u n c t i o n ( )   { t h i s . s r c   =   ' I m a g e s / g r a y _ s t a t u s . g i f ' ; } 
 	 } 
 	 $ ( ' c n n M p A i d D o t ' + c n n M p A p C u r P a g e ) . s r c   =   ' I m a g e s / g r a y _ a c t i v e _ s t a t u s . g i f ' ; 
 	 $ ( ' c n n M p A i d D o t ' + c n n M p A p C u r P a g e ) . o n m o u s e o v e r   =   f u n c t i o n ( )   { } 
 	 $ ( ' c n n M p A i d D o t ' + c n n M p A p C u r P a g e ) . o n m o u s e o u t   =   f u n c t i o n ( )   { } 
 } 
 f u n c t i o n   c n n M p A p U p d a t e B t n s ( )   { 
 	 i f ( c n n M p A p C u r P a g e   >   1 )   { 
 	 	 $ ( ' c n n M p A i d B t n L ' ) . s t y l e . c u r s o r   = ' a u t o ' ; 
 	 	 $ ( ' c n n M p A i d B t n L ' ) . s r c   =   ' I m a g e s / l e f t _ r e d _ b t n . g i f ' ; 
 	 	 $ ( ' c n n M p A i d B t n L ' ) . o n m o u s e o v e r   =   f u n c t i o n ( )   {   t h i s . s r c = ' I m a g e s / l e f t _ r e d _ o v e r _ b t n . g i f ' ;   } 
 	 	 $ ( ' c n n M p A i d B t n L ' ) . o n m o u s e o u t   =   f u n c t i o n ( )   {   t h i s . s r c = ' I m a g e s / l e f t _ r e d _ b t n . g i f ' ;   } 
 	 } 
 	 e l s e   { 
 	 	 $ ( ' c n n M p A i d B t n L ' ) . s t y l e . c u r s o r   = ' d e f a u l t ' ; 
 	 	 $ ( ' c n n M p A i d B t n L ' ) . s r c   =   ' I m a g e s / l e f t _ g r a y _ b t n . g i f ' ; 
 	 	 $ ( ' c n n M p A i d B t n L ' ) . o n m o u s e o v e r   =   f u n c t i o n ( )   { } 
 	 	 $ ( ' c n n M p A i d B t n L ' ) . o n m o u s e o u t   =   f u n c t i o n ( )   { } 
 	 } 
 
 	 i f ( c n n M p A p C u r P a g e   <   3 )   { 
 	 	 $ ( ' c n n M p A i d B t n R ' ) . s t y l e . c u r s o r   = ' a u t o ' ; 
 	 	 $ ( ' c n n M p A i d B t n R ' ) . s r c   =   ' I m a g e s / r i g h t _ r e d _ b t n . g i f ' ; 
 	 	 $ ( ' c n n M p A i d B t n R ' ) . o n m o u s e o v e r   =   f u n c t i o n ( )   { t h i s . s r c   =   ' I m a g e s / r i g h t _ r e d _ o v e r _ b t n . g i f ' ; } 
 	 	 $ ( ' c n n M p A i d B t n R ' ) . o n m o u s e o u t   =   f u n c t i o n ( )   { t h i s . s r c   =   ' I m a g e s / r i g h t _ r e d _ b t n . g i f ' ; } 
 	 } 
 	 e l s e   { 
 	 	 $ ( ' c n n M p A i d B t n R ' ) . s t y l e . c u r s o r   = ' d e f a u l t ' ; 
 	 	 $ ( ' c n n M p A i d B t n R ' ) . s r c   =   ' I m a g e s / r i g h t _ g r a y _ b t n . g i f ' ; 
 	 	 $ ( ' c n n M p A i d B t n R ' ) . o n m o u s e o v e r   =   f u n c t i o n ( )   { } 
 	 	 $ ( ' c n n M p A i d B t n R ' ) . o n m o u s e o u t   =   f u n c t i o n ( )   { } 
 	 } 
 } 
 / *   e n d   m a i n   p a g e   A u d i o   b o x 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 
 / *   i n t l   m a r k e t   b o x 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 f u n c t i o n   c n n W b M a r k e t s (   i n t W h i c h   )   { 
 	 f o r ( i = 1 ; i < 3 ; i + + )   { 
 	 	 i f ( i = = i n t W h i c h )   { 
 	 	 	 $ ( ' c n n W b M a r k e t s '   +   i ) . s t y l e . d i s p l a y   =   ' b l o c k ' ; 
 	 	 	 $ ( ' c n n W b M a r k e t s T a b '   +   i ) . c l a s s N a m e   =   ' a c t i v e ' ; 
 	 	 } 
 	 	 e l s e   { 
 	 	 	 $ ( ' c n n W b M a r k e t s '   +   i ) . s t y l e . d i s p l a y   =   ' n o n e ' ; 
 	 	 	 $ ( ' c n n W b M a r k e t s T a b '   +   i ) . c l a s s N a m e   =   ' ' ; 
 	 	 } 
 	 } 
 } 
 f u n c t i o n   t t C o m m e n t s (   i n t W h i c h   )   { 
 	 f o r ( i = 1 ; i < 4 ; i + + )   { 
 	 	 i f ( i = = i n t W h i c h )   { 
 	 	 	 $ ( ' c n n W b M a r k e t s '   +   i ) . s t y l e . d i s p l a y   =   ' b l o c k ' ; 
 	 	 	 $ ( ' c n n W b M a r k e t s T a b '   +   i ) . c l a s s N a m e   =   ' a c t i v e ' ; 
 	 	 } 
 	 	 e l s e   { 
 	 	 	 $ ( ' c n n W b M a r k e t s '   +   i ) . s t y l e . d i s p l a y   =   ' n o n e ' ; 
 	 	 	 $ ( ' c n n W b M a r k e t s T a b '   +   i ) . c l a s s N a m e   =   ' ' ; 
 	 	 } 
 	 } 
 } 
 f u n c t i o n   t t C l i p ( i n t W h i c h ) 
 { 
         f o r ( i = 1 ; i < 5 ; i + + ) 
         { 
                 i f ( i = = i n t W h i c h ) 
                 { 
                         $ ( ' t a b '   +   i ) . c l a s s N a m e   =   " n a v T o p _ S t o r i e s _ R " 
                         $ ( ' c l i p T a b '   +   i ) . c l a s s N a m e   =   ' c n n N a v _ B u t t o n _ r e t _ m e d _ a c t i v e ' ; 
                         $ ( ' C l i p c o n t e n t '   +   i ) . s t y l e . d i s p l a y   = ' b l o c k ' ; 
                 } 
                 e l s e 
                 { 
                         $ ( ' t a b '   +   i ) . c l a s s N a m e   =   " " ; 
                         $ ( ' c l i p T a b '   +   i ) . c l a s s N a m e   = ' c n n N a v _ B u t t o n _ e x t _ m e d ' ;   
                         $ ( ' C l i p c o n t e n t '   +   i ) . s t y l e . d i s p l a y   =   ' n o n e ' ; 
                 } 
         } 
 } 
 / *   e n d   i n t l   m a r k e t   b o x 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 f u n c t i o n   c n n W b V i d e o (   i n t W h i c h   )   { 
 	 f o r ( i = 1 ; i < 3 ; i + + )   { 
 	 	 i f ( i = = i n t W h i c h )   { 
 	 	 	 $ ( ' c n n W b V i d e o '   +   i ) . s t y l e . d i s p l a y   =   ' b l o c k ' ; 
 	 	 	 $ ( ' c n n M p C l i p T a b '   +   i ) . c l a s s N a m e   =   ' a c t i v e ' ; 
 	 	 } 
 	 	 e l s e   { 
 	 	 	 $ ( ' c n n W b V i d e o '   +   i ) . s t y l e . d i s p l a y   =   ' n o n e ' ; 
 	 	 	 $ ( ' c n n M p C l i p T a b '   +   i ) . c l a s s N a m e   =   ' ' ; 
 	 	 } 
 	 } 
 } 
 
 f u n c t i o n   c n n M o s a i c L o a d G a l (   g a l ,   l n k   )   { 
 v a r   c n n _ g a l l e r y _ c o n f i g   =   ( l o c a t i o n . h o s t n a m e . i n d e x O f ( ' e d i t i o n . ' )   >   - 1 )   ?   ' i n t l '   :   ' w w w ' ; 
 i f   (   n e w   C N N _ F l a s h D e t e c t ( ) . d e t e c t V e r s i o n (   6   )   )   { 
 v a r   c n n _ P h o t o s   =   n e w   C N N _ F l a s h O b j e c t (   " c n n P h o t o s 2 " ,   " I m a g e s / i m a g e . g a l l e r y . s w f " ,   5 8 5 ,   4 2 5 ,   n u l l ,   " g a l l e r y U r l = " + g a l + " & c o n f i g U r l = h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / s s i / " + c n n _ g a l l e r y _ c o n f i g + " / m i s c / 2 . 0 / o m n i / c o n f i g . x m l & e m a i l H a n d l e r = o n E m a i l C l i c k e d & p a g e T y p e = m o s a i c & p a g e U R L = " + w i n d o w . l o c a t i o n . p a t h n a m e ) ; 
 c n n _ P h o t o s . w r i t e M o s a i c H t m l ( ' c n n P h o t o P l a y e r ' ) ; 
 }   e l s e   { 
 C N N _ n o F l a s h ( ) ; 
 } 
 
 	 / /   c h a n g e   t h e   i d 
 	 i f ( $ ( ' c n n C u r G a l ' ) )   { 
 	 	 $ ( ' c n n C u r G a l ' ) . i d   =   ' ' ; 
 	 } 
 	 l n k . p a r e n t N o d e . p a r e n t N o d e . i d   =   ' c n n C u r G a l ' ; 
 
 } 
 
 f u n c t i o n   c n n M o s a i c S e l G a l T a b (   i n t T a b   )   { 
 	 / /   c h a n g e   t h e   t a b s 
 	 f o r ( i = 1 ; i < 7 ; i + + )   { 
 	 	 i f ( $ ( ' c n n P T ' + i ) )   { 
 	 	 	 t a b O b j   =   $ ( ' c n n P T ' + i ) ; 
 	 	 	 i f ( i   ! =   i n t T a b )   { 
 	 	 	 	 t a b O b j . c l a s s N a m e   =   ' ' ; 
 	 	 	 } 
 	 	 	 e l s e   { 
 	 	 	 	 t a b O b j . c l a s s N a m e   =   ' c n n P T C u r r e n t ' ; 
 	 	 	 } 
 	 	 } 
 	 } 
 
 	 / /   s h o w / h i d e   t h e   s e c t i o n s 
 	 f o r ( i = 1 ; i < 7 ; i + + )   { 
 	 	 i f ( $ ( ' c n n P P S e c t ' + i ) )   { 
 	 	 	 o b j   =   $ ( ' c n n P P S e c t ' + i ) ; 
 	 	 	 i f ( i   ! =   i n t T a b )   { 
 	 	 	 	 o b j . s t y l e . d i s p l a y   =   ' n o n e ' ; 
 	 	 	 } 
 	 	 	 e l s e   { 
 	 	 	 	 o b j . s t y l e . d i s p l a y   =   ' b l o c k ' ; 
 	 	 	 } 
 	 	 } 
 	 } 
 } 
 
 / *   m i n o r   t o p i c   s e a r c h   * / 
 f u n c t i o n   c n n U p d a t e M t S r c h ( o b j ) { 
 	 o b j . v a l u e = ' ' ; 
 	 o b j . s t y l e . c o l o r = ( o b j . s t y l e . c o l o r = = " " ? " # 0 0 0 0 0 0 " : " " ) 
 } 
 
 / *   l o c a l   b o x   m a i n   p a g e   * / 
 f u n c t i o n   c n n U p d a t e T x t E l e m ( o b j ,   s t r T x t )   { 
 	 i f ( o b j . v a l u e   = =   s t r T x t )   { 
 	 	 o b j . v a l u e = ' ' ; 
 	 	 o b j . s t y l e . c o l o r = ( o b j . s t y l e . c o l o r = = " " ? " # 0 0 0 " : " " ) ; 
 	 } 
 	 e l s e   i f ( o b j . v a l u e   = =   ' ' )   { 
 	 	 o b j . v a l u e   =   s t r T x t ; 
 	 	 o b j . s t y l e . c o l o r = ( o b j . s t y l e . c o l o r = = " " ? " # c c c " : " " ) ; 
 	 } / /   e l s e   u s e r   e n t e r e d   s o m e t h i n g ,   l e a v e   i t   a l o n e 
 } 
 
 / *   b r e a k i n g   n e w s   b a n n e r s 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 f u n c t i o n   c n n R e n d e r G e n e r i c B a n n e r ( o b j e c t , f l a s h U R L , l e f t C o l o r , r i g h t C o l o r ) 
 { 
 	 i f   ( a l l C o o k i e s [ ' c n n L a s t C l o s e d B a n n e r I d ' ]   = =   o b j e c t . i d ) 
 	 { 
 	 	 / /   d o n ' t   r e n d e r   a n y t h i n g   i f   t h e   b a n n e r   h a s   b e e n   c l o s e d . 
 	 	 r e t u r n   ' ' ; 
 	 } 
 
 	 v a r   m y H t m l   =   ' < d i v   i d = " c n n B a n n e r C o n t e n t " > < d i v   i d = " c n n B a n n e r T o p i c "   c l a s s = " ' + l e f t C o l o r + ' " > ' ; 
 
 	 i f   ( ! ( o b j e c t . t y p e   = =   ' L i v e   B r e a k i n g   N e w s '   | |   o b j e c t . t y p e   = =   ' L i v e   D e v e l o p i n g   S t o r y ' )   | |   ! ( n e w   C N N _ F l a s h D e t e c t ( ) . d e t e c t V e r s i o n (   8   ) ) ) 
 	 { 
 	 	 m y H t m l   + =   ' < d i v   i d = " c n n B a n n e r H e a d e r " > < d i v   i d = " c n n B a n n e r H e a d e r T x t " > ' + o b j e c t . t i t l e + ' < \ / d i v > < \ / d i v > ' ; 
 	 } 
 	 e l s e 
 	 { 
 	 	 l e f t C o l o r   =   ' c n n T r a n s p a r e n t ' ; / /   p u t   t r a n s p a r e n c y   b e h i n d   s w f   f i l e s 
 	 	 m y H t m l   =   ' < d i v   i d = " c n n B a n n e r C o n t e n t " > < d i v   i d = " c n n B a n n e r T o p i c "   c l a s s = " ' + l e f t C o l o r + ' " > ' ; 
 	 	 v a r   c n n _ A n i m a t e d B a n n e r   =   n e w   C N N _ F l a s h O b j e c t (   " c n n A n i m a t e d B a n n e r T i t l e " ,   f l a s h U R L ,   2 1 1 ,   7 3 ,   n u l l ,   {   b n _ t i t l e :   o b j e c t . t i t l e   }   ) ; 
 	 	 m y H t m l   + =   c n n _ A n i m a t e d B a n n e r . g e t H t m l ( ) ; 
 	 } 
 
 	 m y H t m l   + =   ' < \ / d i v > < d i v   i d = " c n n B a n n e r B o x "   c l a s s = " ' + r i g h t C o l o r + ' " > ' ; 
 	 m y H t m l   + =   ' < d i v   i d = " c n n B a n n e r B o x C o n t e n t " > < a   h r e f = " # "   o n M o u s e O v e r = " c n n I m g S w a p ( t h i s , 1 ) ; "   o n M o u s e O u t = " c n n I m g S w a p ( t h i s , 0 ) ; "   o n C l i c k = " C N N _ s e t C o o k i e ( \ ' c n n L a s t C l o s e d B a n n e r I d \ ' , \ ' ' + o b j e c t . i d + ' \ ' ) ;   $ ( \ ' c n n B a n n e r C o n t a i n e r \ ' ) . h i d e ( ) ;   r e t u r n   t r u e ; " > < i m g   c l a s s = " c n n C l o s e B t n "   n a m e = " c n n B a n n e r C l o s e B t n "   s r c = " h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / i m g / 2 . 0 / c o n t e n t / l i v e _ n e w s / b a n n e r _ ' + r i g h t C o l o r . s u b s t r i n g ( 3 ) . t o L o w e r C a s e ( ) + ' _ b t n . g i f "   w i d t h = " 1 4 "   h e i g h t = " 1 4 "   a l t = " "   / > < \ / a > ' ; 
 
 	 i f   ( ( o b j e c t . t y p e   = =   ' L i v e   B r e a k i n g   N e w s '   | |   o b j e c t . t y p e   = =   ' L i v e   D e v e l o p i n g   S t o r y '   | |   o b j e c t . t y p e   = =   ' L i v e   E l e c t i o n   C o v e r a g e ' )   & &   o b j e c t . i m a g e . l e n g t h   >   0 ) 
 	 { 
 	 	 m y H t m l   + =   ' < i m g   c l a s s = " c n n B a n n e r P h o t o "   s r c = " ' + o b j e c t . i m a g e + ' "   w i d t h = " 8 7 "   h e i g h t = " 4 9 "   a l t = " "   / > ' ; 
 	 } 
 	 
 	 m y H t m l   + =   ' < d i v   i d = " c n n B a n n e r H e a d l i n e " ' ; 
 	 i f   ( o b j e c t . s i z e   = =   ' s m a l l ' ) 
 	 { 
 	 	 m y H t m l   + =   '   c l a s s = " s m a l l " ' ; 
 	 } 
 	 m y H t m l   + =   ' > ' + o b j e c t . c o n t e n t ; 
 	 i f ( ( o b j e c t . o p t i o n s )   & &   ( o b j e c t . o p t i o n s   ! =   ' ' )   & &   ( o b j e c t . t y p e   = =   ' B r e a k i n g   N e w s ' ) )   { / /   e m a i l   l i n k 
 	 	 m y H t m l   + =   ' < s p a n   c l a s s = " c n n B n E m a i l L n k " > < a   h r e f = " h t t p : / / a u d i e n c e . t h e t h a o . d e c . v n / s e r v i c e s / c n n / l o g i n . d o ? i r e f = B N e m a i l & u r l = h t t p % 3 A % 2 F % 2 F a u d i e n c e . t h e t h a o . d e c . v n % 2 F s e r v i c e s % 2 F c n n % 2 F r e g w a l l % 2 F m e m b e r c e n t e r . d o   " > G e t   B r e a k i n g   N e w s   b y   e - m a i l < / a > < / s p a n > ' ; 
 	 } 
 	 m y H t m l   + =   ' < \ / d i v > ' ; 
 	 i f   ( o b j e c t . p i p e   ! =   0   | |   o b j e c t . t v   ! =   0 ) 
 	 { 
 	 	 m y H t m l   + =   ' < d i v   i d = " c n n B a n n e r W a t c h N o w " > W a t c h   N o w :   ' ; 
 	 	 i f   ( o b j e c t . t v   ! =   0 ) 
 	 	 { 
 	 	 	 m y H t m l   + =   ' o n   C N N   T V ' ; 
 	 	 	 i f   ( o b j e c t . p i p e   ! =   0 ) 
 	 	 	 { 
 	 	 	 	 m y H t m l   + =   '   < s p a n   c l a s s = " c n n G r e y T x t " > o r   < \ / s p a n > ' ; 
 	 	 	 } 
 	 	 } 
 	 	 i f   ( o b j e c t . p i p e   ! =   0 ) 
 	 	 { 
 	 	 	 m y H t m l   + =   ' < a   h r e f = " j a v a s c r i p t : c n n L i v e V i d e o ( \ ' ' + o b j e c t . p i p e + ' \ ' ) ; " > L i v e   o n   C N N . c o m   & r a q u o ; < \ / a > ' ; 
 	 	 } 
 	 	 m y H t m l   + =   ' < \ / d i v > ' ; 
 	 } 
 
 	 m y H t m l   + =   ' < \ / d i v > < \ / d i v > < \ / d i v > < d i v   c l a s s = " c n n P a d 1 2 T o p "   s t y l e = " c l e a r : b o t h ; " >   < \ / d i v > ' ; 
 
 	 r e t u r n   m y H t m l ; 
 } 
 
 f u n c t i o n   c n n R e n d e r D o m e s t i c B a n n e r ( o b j e c t ) { 
 	 v a r   f l a s h U R L = ' h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / s w f / 2 . 0 / b r e a k i n g _ n e w s / b n _ d o m . s w f ' ; 
 	 v a r   l e f t C o l o r = ' ' ; 
 	 v a r   r i g h t C o l o r = ' ' ; 
 	 s w i t c h   ( o b j e c t . t y p e )   { 
 	 	 c a s e   ' L i v e   B r e a k i n g   N e w s ' : l e f t C o l o r = ' c n n R e d ' ; r i g h t C o l o r = ' c n n B l a c k ' ; b r e a k ; 
 	 	 c a s e   ' B r e a k i n g   N e w s ' : l e f t C o l o r = ' c n n B l a c k ' ; r i g h t C o l o r = ' c n n R e d ' ; b r e a k ; 
 	 	 c a s e   ' L i v e   D e v e l o p i n g   S t o r y ' : l e f t C o l o r = ' c n n Y e l l o w ' ; r i g h t C o l o r = ' c n n B l a c k ' ; f l a s h U R L = ' h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / s w f / 2 . 0 / b r e a k i n g _ n e w s / b n _ d e v . s w f ' ; b r e a k ; 
 	 	 c a s e   ' D e v e l o p i n g   S t o r y ' : l e f t C o l o r = ' c n n B l a c k ' ; r i g h t C o l o r = ' c n n Y e l l o w ' ; b r e a k ; 
 	 	 c a s e   ' W a t c h   N o w ' : l e f t C o l o r = ' c n n B l u e ' ; r i g h t C o l o r = ' c n n B l u e ' ; b r e a k ; 
 	 	 c a s e   ' L i v e   E l e c t i o n   C o v e r a g e ' : l e f t C o l o r = ' c n n B l a c k E l e x ' ; r i g h t C o l o r = ' c n n D r k B l u e ' ; b r e a k ; 
 	 	 d e f a u l t : r e t u r n   ' ' ; 
 	 } 
 	 r e t u r n   c n n R e n d e r G e n e r i c B a n n e r ( o b j e c t , f l a s h U R L , l e f t C o l o r , r i g h t C o l o r ) ; 
 } 
 
 f u n c t i o n   c n n R e n d e r I n t e r n a t i o n a l B a n n e r ( o b j e c t ) { 
 	 v a r   f l a s h U R L = ' h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / s w f / 2 . 0 / b r e a k i n g _ n e w s / b n _ i n t . s w f ' ; 
 	 v a r   l e f t C o l o r = ' ' ; 
 	 v a r   r i g h t C o l o r = ' c n n Y e l l o w ' ; 
 	 s w i t c h   ( o b j e c t . t y p e )   { 
 	 	 c a s e   ' L i v e   B r e a k i n g   N e w s ' : l e f t C o l o r = ' c n n Y e l l o w ' ; r i g h t C o l o r = ' c n n B l a c k ' ; b r e a k ; 
 	 	 c a s e   ' B r e a k i n g   N e w s ' : l e f t C o l o r = ' c n n B l a c k ' ; b r e a k ; 
 	 	 c a s e   ' L i v e   D e v e l o p i n g   S t o r y ' : l e f t C o l o r = ' c n n Y e l l o w ' ; r i g h t C o l o r = ' c n n B l a c k ' ; f l a s h U R L = ' h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / s w f / 2 . 0 / b r e a k i n g _ n e w s / b n _ d e v . s w f ' ; b r e a k ; 
 	 	 c a s e   ' D e v e l o p i n g   S t o r y ' : l e f t C o l o r = ' c n n B l a c k ' ; b r e a k ; 
 	 	 c a s e   ' W a t c h   N o w ' : l e f t C o l o r = ' c n n B l u e ' ; r i g h t C o l o r = ' c n n B l u e ' ; b r e a k ; 
 	 	 d e f a u l t : r e t u r n   ' ' ; 
 	 } 
 	 r e t u r n   c n n R e n d e r G e n e r i c B a n n e r ( o b j e c t , f l a s h U R L , l e f t C o l o r , r i g h t C o l o r ) ; 
 } 
 
 / *   e n d   b r e a k i n g   n e w s   b a n n e r s 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 
 / *   g l o b a l   e v e n t   h a n d l e r s 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 f u n c t i o n   c n n M o u s e D o w n ( e )   { 
 	 i f   ( c n n D r o p d o w n O p e n )   c n n D D . m o u s e D o w n B o d y ( e ) ; 
 	 i f   ( c n n O v e r l a y M e n u O p e n )   c n n O v e r l a y M o u s e D o w n B o d y ( e ) ; 
 	 r e t u r n   t r u e ; 
 } 
 / *   e n d   g l o b a l   e v e n t   h a n d l e r s 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 
 / *   s t y l e d   o v e r l a y   m e n u s 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 v a r   c n n O v e r l a y O p e n I d   =   " " ; 
 v a r   c n n O v e r l a y C l i c k e d I d   =   " " ; 
 v a r   c n n O v e r l a y M e n u O p e n   =   f a l s e ; 
 
 / /   M a p   m e n u   i d ' s   t o   b u t t o n   c l a s s e s ,   f o r   d e t e r m i n i n g   l a t e r   o n   i f   t h e   c u r r e n t   m e n u 
 / /   i s   o n e   w i t h   n o n - d e f a u l t   b e h a v i o r . 
 v a r   c n n O v e r l a y C l a s s   =   [ ] ; 
 
 
 f u n c t i o n   c n n I n i t O v e r l a y ( )   { 
 	 d o c u m e n t . b o d y . o n m o u s e d o w n   =   c n n M o u s e D o w n ; 
 
 	 / /   O v e r l a y   m e n u s   w i t h   d e f a u l t   b e h a v i o r 
 	 c n n A d d O v e r l a y E v e n t s ( " c n n O v e r l a y L n k " ) ; 
 
 	 / /   A d d   c o d e   h e r e   f o r   o v e r l a y   m e n u s   w i t h   n o n - d e f a u l t   b e h a v i o r 
 } 
 
 
 f u n c t i o n   c n n S h o w O v e r l a y ( m e n u I d )   { 
 	 i f   ( $ ( m e n u I d ) )   { 
 	 	 / /   I f   t h e   m e n u   i s   a l r e a d y   o p e n ,   c l o s e   i t 
 	 	 i f   ( $ ( m e n u I d ) . s t y l e . d i s p l a y   = =   " b l o c k " )   { 
 	 	 	 $ ( m e n u I d ) . s t y l e . d i s p l a y   =   " n o n e " ; 
 	 	 } 
 	 	 e l s e   { 
 	 	 	 $ ( m e n u I d ) . s t y l e . d i s p l a y   =   " b l o c k " ; 
 	 	 	 c n n O v e r l a y O p e n I d   =   m e n u I d ; 
 	 	         c n n O v e r l a y M e n u O p e n   =   t r u e ; 
 	 	 	 c n n O v e r l a y C l i c k e d I d   =   " " ; 
 	 	 } 
 	 } 
 
 	 / /   A d d   c o d e   h e r e   f o r   o v e r l a y   m e n u s   w i t h   n o n - d e f a u l t   b e h a v i o r 
 } 
 
 
 f u n c t i o n   c n n H i d e O v e r l a y ( m e n u I d )   { 
 	 i f   ( $ ( m e n u I d ) )   { 
 	 	 $ ( m e n u I d ) . s t y l e . d i s p l a y   =   " n o n e " ; 
 	 	 c n n O v e r l a y O p e n I d   =   ' ' ; 
 	         c n n O v e r l a y M e n u O p e n   =   f a l s e ; 
 	 } 
 
 	 / /   A d d   c o d e   h e r e   f o r   o v e r l a y   m e n u s   w i t h   n o n - d e f a u l t   b e h a v i o r 
 } 
 
 
 f u n c t i o n   c n n G e t O v e r l a y M e n u I d ( b t n )   { 
 	 / /   G e t   t h e   i d   p a r a m e t e r   f r o m   h r e f = " j a v a s c r i p t : f o o ( ' m y I d ' ) " 
 	 r e t u r n   b t n . h r e f . s u b s t r i n g ( b t n . h r e f . i n d e x O f ( " ' " )   +   1 ,   b t n . h r e f . l a s t I n d e x O f ( " ' " ) ) ; 
 } 
 
 
 f u n c t i o n   c n n A d d O v e r l a y E v e n t s ( b t n C l a s s )   { 
 	 v a r   b t n A r r a y   =   d o c u m e n t . g e t E l e m e n t s B y C l a s s N a m e ( b t n C l a s s ) ; 
 	 f o r   ( v a r   i   =   0 ;   i   <   b t n A r r a y . l e n g t h ;   i + + )   { 
 	 	 / /   b u t t o n 
 	 	 v a r   b t n   =   b t n A r r a y [ i ] ; 
 	 	 b t n . o n m o u s e d o w n   =   c n n O v e r l a y M o u s e D o w n B t n ; 
 
 	 	 / /   m e n u 
 	 	 v a r   m e n u I d   =   c n n G e t O v e r l a y M e n u I d ( b t n ) ; 
 	 	 i f   ( $ ( m e n u I d ) )   { 
 	 	 	 $ ( m e n u I d ) . o n m o u s e d o w n   =   c n n O v e r l a y M o u s e D o w n M e n u ; 
 	 	 } 
 
 	 	 / /   S t o r e   t h e   b u t t o n   c l a s s   a s s o c i a t e d   w i t h   t h e   m e n u   i d 
 	         c n n O v e r l a y C l a s s [ m e n u I d ]   =   b t n C l a s s ; 
 
 	 	 / /   M a c   S a f a r i   i m a g e - r o l l o v e r   b u g 
 	 	 i f   ( ( n a v i g a t o r . u s e r A g e n t . i n d e x O f ( " S a f a r i " )   ! =   - 1 ) 
 	 	   & &   ( n a v i g a t o r . u s e r A g e n t . i n d e x O f ( " M a c " )   ! =   - 1 ) )   { 
 	 	 	 / /   I f   c n n I m g S w a p ( )   i s   c a l l e d   b y   t h e   o n m o u s e o u t   e v e n t 
 	 	 	 i f   ( b t n . o n m o u s e o u t   & &   b t n . o n m o u s e o u t . t o S t r i n g ( ) . i n d e x O f ( " c n n I m g S w a p " )   ! =   - 1 )   { 
 	 	 	 	 / /   M a k e   o n c l i c k   c a l l   t h e   o n m o u s e o u t   e v e n t   h a n d l e r 
 	 	 	 	 b t n . o n c l i c k   =   f u n c t i o n   o n c l i c k ( )   {   t h i s . o n m o u s e o u t ( ) ;   r e t u r n   t r u e ;   } ; 
 	 	 	 } 
 	 	 } 
 	 } 
 } 
 
 
 f u n c t i o n   c n n O v e r l a y M o u s e D o w n B t n ( e )   { 
 	 / /   G e t   t h e   m e n u   i d 
 	 v a r   m e n u I d   =   c n n G e t O v e r l a y M e n u I d ( t h i s ) ; 
 	 c n n O v e r l a y C l i c k e d I d   =   m e n u I d ; 
 	 r e t u r n   t r u e ; 
 } 
 
 
 f u n c t i o n   c n n O v e r l a y M o u s e D o w n M e n u ( e )   { 
 	 / /   G e t   t h e   m e n u   i d 
 	 c n n O v e r l a y C l i c k e d I d   =   t h i s . i d ; 
 	 r e t u r n   t r u e ; 
 } 
 
 
 f u n c t i o n   c n n O v e r l a y M o u s e D o w n B o d y ( e )   { 
 	 / /   C l o s e   t h e   o p e n   o v e r l a y   m e n u ,   u n l e s s   t h e   m o u s e   i s   i n s i d e   t h e   m e n u 
 	 / /   o r   t h e   m e n u   b u t t o n . 
 	 i f   ( c n n O v e r l a y O p e n I d   ! =   c n n O v e r l a y C l i c k e d I d )   { 
 	 	 c n n H i d e O v e r l a y ( c n n O v e r l a y O p e n I d ) ; 
 	 } 
 	 c n n O v e r l a y C l i c k e d I d   =   " " ; 
 	 r e t u r n   t r u e ; 
 } 
 / *   e n d   s t y l e d   o v e r l a y   m e n u s 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 
 / *   s t y l e d   d r o p d o w n s 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 v a r   c n n D r o p d o w n O p e n   =   f a l s e ; 
 
 / /   C N N   d r o p d o w n   m e n u   ( J a v a S c r i p t   o b j e c t   l i t e r a l ) 
 v a r   c n n D D   =   { 
 	 c u r I d :   " " ,   / /   i d   o f   c u r r e n t l y - o p e n   d r o p d o w n 
 	 i g n o r e M o u s e D o w n B o d y :   f a l s e , 
 	 m e n u s :   [ ] , 
 
 	 r o w H e i g h t :   1 7 , 
 	 c o m b i n e d B o r d e r W i d t h :   2 0 , 
 	 s c r o l l b a r W i d t h :   1 8 , 
 
 	 m i n M e n u W i d t h :   1 0 5 , 
 	 m a x M e n u W i d t h :   4 0 0 , 
 	 d e f a u l t M e n u W i d t h :   2 0 5 , 
 	 d e f a u l t R o w W i d t h :   1 5 0 , 
 	 c o m b i n e d R o w L R P a d :   1 8 , 
 	 s c r o l l b a r R P a d :   1 2 , 
 
 
 	 b u i l d D i s a b l e d D r o p d o w n :   f u n c t i o n ( m e n u I d ,   b u t t o n W i d t h ,   b u t t o n C l a s s ,   h i d d e n L i s t S u f f i x )   { 
 	 	 / /   d e f a u l t   p a r a m e t e r s 
 	 	 i f   ( ! b u t t o n W i d t h )   b u t t o n W i d t h   =   1 4 0 ; 
 	 	 i f   ( ! b u t t o n C l a s s )   b u t t o n C l a s s   =   ' c n n D D W i r e L t g ' ; 
 
 	 	 v a r   w r a p I d   =   m e n u I d   +   " _ w r a p " ; 
 	 	 v a r   l i s t I d   =   m e n u I d   +   " _ l i s t "   +   ( h i d d e n L i s t S u f f i x   ?   ' _ '   +   h i d d e n L i s t S u f f i x   :   ' ' ) ; 
 
 	 	 i f   ( $ ( w r a p I d )   & &   $ ( l i s t I d ) )   { 
 
 	 	 	 / /   h i d e   t h e   < s e l e c t > 
 	 	 	 $ ( l i s t I d ) . s t y l e . d i s p l a y   =   " n o n e " ; 
 
 	 	 	 / /   G e t   t h e   d i s p l a y e d   v a l u e   f o r   t h e   f i r s t   s e l e c t   o p t i o n 
 	 	 	 v a r   l i s t I t e m s   =   $ ( l i s t I d ) . o p t i o n s ; 
 	 	 	 v a r   b u t t o n T e x t   =   l i s t I t e m s [ 0 ] . i n n e r H T M L ; 
 
 	 	 	 v a r   b u t t o n T e x t L P a d   =   1 0 ; 
 	 	 	 v a r   b u t t o n T e x t R P a d   =   3 4 ; 
 	 	 	 v a r   b u t t o n T e x t W i d t h   =   b u t t o n W i d t h   -   ( b u t t o n T e x t L P a d   +   b u t t o n T e x t R P a d ) ; 
 
 	 	 	 v a r   l e f t B g S t y l e   =   ' b a c k g r o u n d : # f f f   u r l ( I m a g e s / b t n _ l t g _ l e f t . g i f )   0   0   n o - r e p e a t ; ' ; 
 	 	 	 v a r   r i g h t B g S t y l e   =   ' b a c k g r o u n d : u r l ( I m a g e s / b t n _ l t g _ r i g h t . g i f )   1 0 0 %   0   n o - r e p e a t ; ' ; 
 
 	 	 	 s w i t c h   ( b u t t o n C l a s s )   { 
 	 	 	 	 c a s e   ' c n n D D W i r e ' : 
 	 	 	 	 	 l e f t B g S t y l e   =   ' b a c k g r o u n d : # f f f   u r l ( I m a g e s / b t n _ w i r e _ l e f t . g i f )   0   0   n o - r e p e a t ; ' ; 
 	 	 	 	 	 r i g h t B g S t y l e   =   ' b a c k g r o u n d : u r l ( I m a g e s / b t n _ w i r e _ r i g h t . g i f )   1 0 0 %   0   n o - r e p e a t ; ' ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 	 c a s e   ' c n n B l k B g W h t B o x ' : 
 	 	 	 	 	 l e f t B g S t y l e   =   ' b a c k g r o u n d : # f f f   u r l ( I m a g e s / b t n _ b l k _ l e f t . g i f )   0   0   n o - r e p e a t ; ' ; 
 	 	 	 	 	 r i g h t B g S t y l e   =   ' b a c k g r o u n d : u r l ( I m a g e s / b t n _ b l k _ r i g h t . g i f )   1 0 0 %   0   n o - r e p e a t ; ' ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 } 
 
 
 	 	 	 / /   b u i l d   c o n t e n t   f o r   t h e   b u t t o n 
 	 	 	 v a r   s t r C o n t e n t   =   " \ n \ n \ n \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 < d i v   c l a s s = " c n n D D C o n t a i n e r "   s t y l e = " w i d t h : ' + b u t t o n W i d t h + ' p x ; " > ' + " \ n " ; 
 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 < d i v   c l a s s = " ' + b u t t o n C l a s s + ' " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 < d i v   c l a s s = " c n n D D B t n "   o n m o u s e d o w n = " r e t u r n   c n n D D . m o u s e D o w n B t n ( e v e n t ,   \ ' ' + m e n u I d + ' \ ' ) ; "   o n c l i c k = " r e t u r n   c n n D D . o p e n ( \ ' ' + m e n u I d + ' \ ' ) "   s t y l e = " ' + r i g h t B g S t y l e + ' " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 < t a b l e   w i d t h = " ' + b u t t o n W i d t h + ' "   b o r d e r = " 0 "   c e l l s p a c i n g = " 0 "   c e l l p a d d i n g = " 0 " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 < t r > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 < t d   w i d t h = " ' + b u t t o n T e x t L P a d + ' " > < d i v   c l a s s = " c n n D D B t n L e f t "   s t y l e = " ' + l e f t B g S t y l e + ' " > < / d i v > < / t d > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 < t d   w i d t h = " ' + b u t t o n T e x t W i d t h + ' " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 	 < d i v   c l a s s = " c n n D D V a l u e C o n t a i n e r " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 	 	 < d i v   i d = " ' + m e n u I d + ' _ V a l "   c l a s s = " c n n D D V a l u e "   s t y l e = " w i d t h : ' + b u t t o n T e x t W i d t h + ' p x ; c o l o r : # c 5 c 5 c 5 ; " > ' + b u t t o n T e x t + ' < / d i v > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 < / t d > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 < t d   w i d t h = " ' + b u t t o n T e x t R P a d + ' " > < i m g   s r c = " I m a g e s / b t n _ i c o n _ d i s a b l e d . g i f "   a l t = " "   b o r d e r = " 0 " > < / t d > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 < / t r > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 < / t a b l e > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 < / d i v > < ! - - / c n n D D B t n   - - > ' + " \ n \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 < / d i v > < ! - - / ' + b u t t o n C l a s s + '   - - > ' + " \ n \ n " ; 
 
 	 	 	 s t r C o n t e n t   + =   ' 	 < / d i v > < ! - - / c n n D D C o n t a i n e r   - - > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   " \ n \ n " ; 
 
 	 	 	 / /   d r a w   t h e   n e w   c o n t e n t 
 	 	 	 $ ( w r a p I d ) . i n n e r H T M L   =   s t r C o n t e n t ; 
 
 	 	 	 / /   r e s e t   t h e   l i s t 
 	 	 	 $ ( l i s t I d ) . s e l e c t e d I n d e x   =   0 ; 
 
 	 	 } / / e l s e   i d   o f   s e l e c t   n o t   f o u n d   [   a b o r t   ] 
 	 } , 
 
 	 b u i l d D r o p d o w n :   f u n c t i o n ( m e n u I d ,   b u t t o n W i d t h ,   m e n u W i d t h ,   n u m V i s i b l e R o w s ,   b u t t o n C l a s s ,   h i d d e n L i s t S u f f i x )   { 
 	 	 / /   d e f a u l t   p a r a m e t e r s 
 	 	 i f   ( ! b u t t o n W i d t h )   b u t t o n W i d t h   =   1 4 0 ; 
 	 	 i f   ( ! m e n u W i d t h )   m e n u W i d t h   =   t h i s . d e f a u l t M e n u W i d t h ; 
 	 	 i f   ( ! n u m V i s i b l e R o w s )   n u m V i s i b l e R o w s   =   1 0 ; 
 	 	 i f   ( ! b u t t o n C l a s s )   b u t t o n C l a s s   =   ' c n n D D W i r e L t g ' ; 
 
 	 	 i f   ( m e n u W i d t h   <   t h i s . m i n M e n u W i d t h )   m e n u W i d t h   =   t h i s . m i n M e n u W i d t h ; 
 	 	 i f   ( m e n u W i d t h   >   t h i s . m a x M e n u W i d t h )   m e n u W i d t h   =   t h i s . m a x M e n u W i d t h ; 
 
 	 	 v a r   w r a p I d   =   m e n u I d   +   " _ w r a p " ; 
 	 	 v a r   l i s t I d   =   m e n u I d   +   " _ l i s t "   +   ( h i d d e n L i s t S u f f i x   ?   ' _ '   +   h i d d e n L i s t S u f f i x   :   ' ' ) ; 
 
 	 	 t h i s . m e n u s [ m e n u I d ]   =   n e w   A r r a y ( ) ; 
 	 	 t h i s . m e n u s [ m e n u I d ] . l i s t I d   =   l i s t I d ; 
 	 	 t h i s . m e n u s [ m e n u I d ] . u p d a t e F i r s t R o w   =   f a l s e ; 
 
 	 	 i f   ( $ ( w r a p I d )   & &   $ ( l i s t I d ) )   { 
 	 	 	 / /   h i d e   t h e   < s e l e c t > 
 	 	 	 $ ( l i s t I d ) . s t y l e . d i s p l a y   =   " n o n e " ; 
 
 	 	 	 v a r   d i s p l a y e d V a l u e   =   n e w   A r r a y ( ) ; 
 	 	 	 v a r   i n t e r n a l V a l u e   =   n e w   A r r a y ( ) ; 
 	 	 	 v a r   d i s a b l e d R o w   =   n e w   A r r a y ( ) ; 
 
 	 	 	 v a r   l i s t I t e m s   =   $ ( l i s t I d ) . o p t i o n s ; 
 	 	 	 f o r   ( v a r   i = 0 ; i < l i s t I t e m s . l e n g t h ; i + + )   { 
 	 	 	 	 d i s p l a y e d V a l u e [ i ]   =   l i s t I t e m s [ i ] . i n n e r H T M L ; 
 	 	 	 	 i n t e r n a l V a l u e [ i ]   =   l i s t I t e m s [ i ] . v a l u e ; 
 	 	 	 	 d i s a b l e d R o w [ i ]   =   l i s t I t e m s [ i ] . d i s a b l e d ; 
 	 	 	 } 
 	 	 	 v a r   s e l e c t e d R o w   =   $ ( l i s t I d ) . s e l e c t e d I n d e x ; 
 
 	 	 	 / /   I f   n o   r o w   w a s   e x p l i c i t l y   s e l e c t e d 
 	 	 	 i f   ( s e l e c t e d R o w   = =   0 )   { 
 	 	 	 	 / /   S e e   i f   t h e   f i r s t   r o w   m a t c h e s   o n e   o f   t h e   l a t e r   r o w s 
 	 	 	 	 f o r   ( i = 1 ; i < d i s p l a y e d V a l u e . l e n g t h ; i + + )   { 
 	 	 	 	 	 i f   ( d i s p l a y e d V a l u e [ i ]   = =   d i s p l a y e d V a l u e [ 0 ] )   { 
 	 	 	 	 	 	 s e l e c t e d R o w   =   i ; 
 	 	 	 	 	 	 t h i s . m e n u s [ m e n u I d ] . u p d a t e F i r s t R o w   =   t r u e ; 
 	 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 } 
 	 	 	 v a r   b u t t o n T e x t   =   d i s p l a y e d V a l u e [ s e l e c t e d R o w ] ; 
 	 	 	 v a r   n u m R o w s   =   d i s p l a y e d V a l u e . l e n g t h ; 
 
 	 	 	 v a r   b u t t o n T e x t L P a d   =   1 0 ; 
 	 	 	 v a r   b u t t o n T e x t R P a d   =   3 4 ; 
 	 	 	 v a r   b u t t o n T e x t W i d t h   =   b u t t o n W i d t h   -   ( b u t t o n T e x t L P a d   +   b u t t o n T e x t R P a d ) ; 
 
 	 	 	 / /   m i n u s   l e f t   a n d   r i g h t   b o r d e r s 
 	 	 	 v a r   f u l l R o w W i d t h   =   m e n u W i d t h   -   t h i s . c o m b i n e d B o r d e r W i d t h ; 
 
 	 	 	 / /   w i t h o u t   s c r o l l b a r 
 	 	 	 v a r   v i s i b l e R o w s H e i g h t   =   n u m R o w s   *   t h i s . r o w H e i g h t ; 
 	 	 	 v a r   r o w W i d t h   =   f u l l R o w W i d t h ; 
 
 	 	 	 / /   w i t h   s c r o l l b a r 
 	 	 	 i f   ( n u m R o w s   >   n u m V i s i b l e R o w s )   { 
 	 	 	 	 v i s i b l e R o w s H e i g h t   =   n u m V i s i b l e R o w s   *   t h i s . r o w H e i g h t ; 
 	 	 	 	 r o w W i d t h   - =   1 0 ; 
 	 	 	 } 
 
 	 	 	 v a r   l e f t B g S t y l e   =   ' b a c k g r o u n d : # f f f   u r l ( I m a g e s / b t n _ l t g _ l e f t . g i f )   0   0   n o - r e p e a t ; ' ; 
 	 	 	 v a r   r i g h t B g S t y l e   =   ' b a c k g r o u n d : u r l ( I m a g e s / b t n _ l t g _ r i g h t . g i f )   1 0 0 %   0   n o - r e p e a t ; ' ; 
 
 	 	 	 s w i t c h   ( b u t t o n C l a s s )   { 
 	 	 	 	 c a s e   ' c n n D D W i r e ' : 
 	 	 	 	 	 l e f t B g S t y l e   =   ' b a c k g r o u n d : # f f f   u r l ( I m a g e s / b t n _ w i r e _ l e f t . g i f )   0   0   n o - r e p e a t ; ' ; 
 	 	 	 	 	 r i g h t B g S t y l e   =   ' b a c k g r o u n d : u r l ( I m a g e s / b t n _ w i r e _ r i g h t . g i f )   1 0 0 %   0   n o - r e p e a t ; ' ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 	 c a s e   ' c n n B l k B g W h t B o x ' : 
 	 	 	 	 	 l e f t B g S t y l e   =   ' b a c k g r o u n d : # f f f   u r l ( I m a g e s / b t n _ b l k _ l e f t . g i f )   0   0   n o - r e p e a t ; ' ; 
 	 	 	 	 	 r i g h t B g S t y l e   =   ' b a c k g r o u n d : u r l ( I m a g e s / b t n _ b l k _ r i g h t . g i f )   1 0 0 %   0   n o - r e p e a t ; ' ; 
 	 	 	 	 	 b r e a k ; 
 	 	 	 } 
 
 
 	 	 	 / /   b u i l d   c o n t e n t   f o r   t h e   m e n u 
 	 	 	 v a r   s t r C o n t e n t   =   " \ n \ n \ n \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 < d i v   c l a s s = " c n n D D C o n t a i n e r "   s t y l e = " w i d t h : ' + b u t t o n W i d t h + ' p x ; " > ' + " \ n " ; 
 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 < d i v   c l a s s = " c n n D D B o x C o n t a i n e r " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 < d i v   c l a s s = " c n n D D B o x "   i d = " ' + m e n u I d + ' "   s t y l e = " w i d t h : ' + m e n u W i d t h + ' p x ; "   o n m o u s e d o w n = " r e t u r n   c n n D D . m o u s e D o w n ( e v e n t ,   \ ' ' + m e n u I d + ' \ ' ) ; " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 < d i v   c l a s s = " c n n D D B o x H e a d e r " > < d i v   c l a s s = " c n n D D B o x H e a d e r T L " > < / d i v > < d i v   c l a s s = " c n n D D B o x H e a d e r T R " > < / d i v > < / d i v > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 < d i v   c l a s s = " c n n D D B o x C o n t e n t " > ' + " \ n " ; 
 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 < d i v   c l a s s = " c n n D D C o n t e n t "   s t y l e = " w i d t h : ' + f u l l R o w W i d t h + ' p x ; " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 < d i v   c l a s s = " c n n P a d 6 T o p " > < / d i v > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 < d i v   c l a s s = " c n n D D L i s t "   s t y l e = " h e i g h t : ' + v i s i b l e R o w s H e i g h t + ' p x ;   w i d t h : ' + r o w W i d t h + ' p x ; " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 < u l > ' + " \ n " ; 
 
 	 	 	 f o r   ( v a r   i = 0 ; i < d i s p l a y e d V a l u e . l e n g t h ; i + + )   { 
 	 	 	 	 i f   ( ( i = = 0 )   & &   ( t h i s . m e n u s [ m e n u I d ] . u p d a t e F i r s t R o w ) )   { 
 	 	 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 < l i   i d = " ' + m e n u I d + ' _ h d n V a l " > < a   h r e f = " j a v a s c r i p t : c n n D D . s e l e c t ( ' + i + ' , \ ' ' + t h i s . e n c o d e A t t r ( d i s p l a y e d V a l u e [ i ] ) + ' \ ' , \ ' ' + t h i s . e n c o d e A t t r ( i n t e r n a l V a l u e [ i ] ) + ' \ ' ) ; " > ' + d i s p l a y e d V a l u e [ i ] + ' < / a > < / l i > ' + " \ n " ; 
 	 	 	 	 } 
 	 	 	 	 e l s e   i f   ( d i s a b l e d R o w [ i ] )   { 
 	 	 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 < l i   c l a s s = " c n n D D S e p a r a t o r " > < s p a n > ' + d i s p l a y e d V a l u e [ i ] + ' < / s p a n > < / l i > ' + " \ n " ; 
 	 	 	 	 } 
 	 	 	 	 e l s e   { 
 	 	 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 < l i > < a   h r e f = " j a v a s c r i p t : c n n D D . s e l e c t ( ' + i + ' , \ ' ' + t h i s . e n c o d e A t t r ( d i s p l a y e d V a l u e [ i ] ) + ' \ ' , \ ' ' + t h i s . e n c o d e A t t r ( i n t e r n a l V a l u e [ i ] ) + ' \ ' ) ; " > ' + d i s p l a y e d V a l u e [ i ] + ' < / a > < / l i > ' + " \ n " ; 
 	 	 	 	 } 
 	 	 	 } 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 < / u l > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 < / d i v > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 < d i v   c l a s s = " c n n P a d 8 T o p " > < / d i v > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 < / d i v > < ! - -   / c n n D D C o n t e n t   - - > ' + " \ n " ; 
 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 < / d i v > < ! - -   / c n n D D B o x C o n t e n t   - - > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 < d i v   c l a s s = " c n n D D B o x F o o t e r " > < d i v   c l a s s = " c n n D D B o x F o o t e r B L " > < / d i v > < d i v   c l a s s = " c n n D D B o x F o o t e r B R " > < / d i v > < / d i v > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 < / d i v > < ! - - / c n n D D B o x - - > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 < / d i v > < ! - - / c n n D D B o x C o n t a i n e r - - > ' + " \ n " ; 
 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 < d i v   c l a s s = " ' + b u t t o n C l a s s + ' " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 < d i v   c l a s s = " c n n D D B t n "   o n m o u s e d o w n = " r e t u r n   c n n D D . m o u s e D o w n B t n ( e v e n t ,   \ ' ' + m e n u I d + ' \ ' ) ; "   o n c l i c k = " r e t u r n   c n n D D . o p e n ( \ ' ' + m e n u I d + ' \ ' ) "   s t y l e = " ' + r i g h t B g S t y l e + ' " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 < t a b l e   w i d t h = " ' + b u t t o n W i d t h + ' "   b o r d e r = " 0 "   c e l l s p a c i n g = " 0 "   c e l l p a d d i n g = " 0 " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 < t r > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 < t d   w i d t h = " ' + b u t t o n T e x t L P a d + ' " > < d i v   c l a s s = " c n n D D B t n L e f t "   s t y l e = " ' + l e f t B g S t y l e + ' " > < / d i v > < / t d > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 < t d   w i d t h = " ' + b u t t o n T e x t W i d t h + ' " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 	 < d i v   c l a s s = " c n n D D V a l u e C o n t a i n e r " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 	 	 < d i v   i d = " ' + m e n u I d + ' _ V a l "   c l a s s = " c n n D D V a l u e "   s t y l e = " w i d t h : ' + b u t t o n T e x t W i d t h + ' p x ; " > ' + b u t t o n T e x t + ' < / d i v > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 < / t d > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 < t d   w i d t h = " ' + b u t t o n T e x t R P a d + ' " > < i m g   s r c = " I m a g e s / b t n _ i c o n . g i f "   a l t = " "   b o r d e r = " 0 " > < / t d > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 < / t r > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 < / t a b l e > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 < / d i v > < ! - - / c n n D D B t n   - - > ' + " \ n \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 < / d i v > < ! - - / ' + b u t t o n C l a s s + '   - - > ' + " \ n \ n " ; 
 
 	 	 	 s t r C o n t e n t   + =   ' 	 < / d i v > < ! - - / c n n D D C o n t a i n e r   - - > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   " \ n \ n " ; 
 
 	 	 	 / /   d r a w   t h e   n e w   c o n t e n t 
 	 	 	 $ ( w r a p I d ) . i n n e r H T M L   =   s t r C o n t e n t ; 
 
 	 	 	 / /   c a p t u r e   m o u s e d o w n 
 	 	 	 d o c u m e n t . b o d y . o n m o u s e d o w n   =   c n n M o u s e D o w n ; 
 	 	 } / / e l s e   i d   o f   s e l e c t   n o t   f o u n d   [   a b o r t   ] 
 	 } , 
 
 	 b u i l d O v e r l a y :   f u n c t i o n ( m e n u I d ,   m e n u W i d t h ,   n u m V i s i b l e R o w s ,   d x ,   d y )   { 
 	 	 / /   d e f a u l t   p a r a m e t e r s 
 	 	 i f   ( ! m e n u W i d t h )   m e n u W i d t h   =   t h i s . d e f a u l t M e n u W i d t h ; 
 	 	 i f   ( ! n u m V i s i b l e R o w s )   n u m V i s i b l e R o w s   =   1 0 ; 
 
 	 	 i f   ( m e n u W i d t h   <   t h i s . m i n M e n u W i d t h )   m e n u W i d t h   =   t h i s . m i n M e n u W i d t h ; 
 	 	 i f   ( m e n u W i d t h   >   t h i s . m a x M e n u W i d t h )   m e n u W i d t h   =   t h i s . m a x M e n u W i d t h ; 
 
 	 	 v a r   l e f t P o s   =   - 2 0 ; 
 	 	 v a r   t o p P o s   =   1 ; 
 	 	 i f   ( d x )   l e f t P o s   + =   d x ; 
 	 	 i f   ( d y )   t o p P o s   + =   d y ; 
 
 	 	 v a r   w r a p I d   =   m e n u I d   +   " _ w r a p " ; 
 	 	 v a r   l i s t I d   =   m e n u I d   +   " _ l i s t " ; 
 	 	 v a r   t i t l e I d   =   m e n u I d   +   " _ t i t l e " ; 
 
 	 	 i f   ( $ ( w r a p I d )   & &   $ ( t i t l e I d )   & &   $ ( l i s t I d ) )   { 
 	 	 	 / /   h i d e   t h e   l i s t 
 	 	 	 $ ( l i s t I d ) . s t y l e . d i s p l a y   =   " n o n e " ; 
 
 	 	 	 v a r   t i t l e   =   $ ( t i t l e I d ) . i n n e r H T M L ; 
 
 	 	 	 / /   G e t   t h e   d i s p l a y e d   v a l u e   f o r   e a c h   s e l e c t   o p t i o n 
 	 	 	 v a r   l i s t I t e m s   =   $ ( l i s t I d ) . g e t E l e m e n t s B y T a g N a m e ( ' l i ' ) ; 
 	 	 	 v a r   d i s p l a y e d L i s t   =   n e w   A r r a y ( ) ; 
 	 	 	 f o r   ( v a r   i = 0 ; i < l i s t I t e m s . l e n g t h ; i + + )   { 
 	 	 	 	 d i s p l a y e d L i s t [ i ]   =   l i s t I t e m s [ i ] . i n n e r H T M L ; 
 	 	 	 } 
 
 	 	 	 v a r   n u m R o w s   =   d i s p l a y e d L i s t . l e n g t h ; 
 
 	 	 	 v a r   m e n u T i t l e R P a d   =   6 0 ; 
 	 	 	 v a r   m e n u T i t l e W i d t h   =   m e n u W i d t h   -   m e n u T i t l e R P a d ; 
 
 	 	 	 / /   m i n u s   l e f t   a n d   r i g h t   b o r d e r s 
 	 	 	 v a r   f u l l R o w W i d t h   =   m e n u W i d t h   -   t h i s . c o m b i n e d B o r d e r W i d t h ; 
 
 	 	 	 / /   w i t h o u t   s c r o l l b a r 
 	 	 	 v a r   v i s i b l e R o w s H e i g h t   =   n u m R o w s   *   t h i s . r o w H e i g h t ; 
 	 	 	 v a r   r o w W i d t h   =   m e n u W i d t h   -   t h i s . c o m b i n e d B o r d e r W i d t h ; 
 
 	 	 	 / /   w i t h   s c r o l l b a r 
 	 	 	 i f   ( n u m R o w s   >   n u m V i s i b l e R o w s )   { 
 	 	 	 	 v i s i b l e R o w s H e i g h t   =   n u m V i s i b l e R o w s   *   t h i s . r o w H e i g h t ; 
 	 	 	 	 r o w W i d t h   - =   1 0 ; 
 	 	 	 } 
 
 
 	 	 	 / /   b u i l d   c o n t e n t   f o r   t h e   m e n u 
 	 	 	 v a r   s t r C o n t e n t   =   " \ n \ n \ n \ n " ; 
 	 	 	 s t r C o n t e n t   + =   '   < d i v   c l a s s = " c n n D D O v r B o x C o n t a i n e r " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 < d i v   c l a s s = " c l e a r " > < i m g   s r c = " h t t p : / / i . c d n . t u r n e r . c o m / c n n / I m a g e s / 1 . g i f "   w i d t h = " 1 "   h e i g h t = " 1 "   b o r d e r = " 0 "   a l t = " " > < / d i v > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 < d i v   c l a s s = " c n n D D O v r B o x "   i d = " ' + m e n u I d + ' "   s t y l e = " w i d t h : ' + m e n u W i d t h + ' p x ; l e f t : ' + l e f t P o s + ' p x ;   t o p : ' + t o p P o s + ' p x ; "   o n m o u s e d o w n = " r e t u r n   c n n D D . m o u s e D o w n ( e v e n t ,   \ ' ' + m e n u I d + ' \ ' ) ; " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 < d i v   c l a s s = " c n n D D B o x H e a d e r " > < d i v   c l a s s = " c n n D D B o x H e a d e r T L " > < / d i v > < d i v   c l a s s = " c n n D D B o x H e a d e r T R " > < / d i v > < / d i v > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 < d i v   c l a s s = " c n n D D B o x C o n t e n t " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 < d i v   c l a s s = " c n n D D O v r C l o s e C o n t a i n e r " > < d i v   c l a s s = " c n n D D O v r C l o s e "   o n c l i c k = " c n n D D . c l o s e ( ) ;   r e t u r n   t r u e ; " > < i m g   s r c = " I m a g e s / o v e r l a y _ c l o s e . p n g "   w i d t h = " 1 2 "   h e i g h t = " 1 2 "   a l t = " "   b o r d e r = " 0 " > < / d i v > < / d i v > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 < d i v   c l a s s = " c n n D D C o n t e n t "   s t y l e = " w i d t h : ' + f u l l R o w W i d t h + ' p x ; " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 < d i v   c l a s s = " c n n D D O v r T i t l e "   s t y l e = " w i d t h : ' + m e n u T i t l e W i d t h + ' p x ; o v e r f l o w : h i d d e n ; " > ' + t i t l e + ' < / d i v > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 < d i v   c l a s s = " c n n D D L i s t "   s t y l e = " h e i g h t : ' + v i s i b l e R o w s H e i g h t + ' p x ; w i d t h : ' + r o w W i d t h + ' p x ; " > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 < u l > ' + " \ n " ; 
 
 	 	 	 f o r   ( v a r   i = 0 ; i < d i s p l a y e d L i s t . l e n g t h ; i + + )   { 
 	 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 < l i > ' + d i s p l a y e d L i s t [ i ] + ' < / l i > ' + " \ n " ; 
 	 	 	 } 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 	 < / u l > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 < / d i v > < ! - -   / c n n D D L i s t   - - > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 	 < d i v   c l a s s = " c n n P a d 1 2 T o p " > < / d i v > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 	 < / d i v > < ! - -   / c n n D D C o n t e n t   - - > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 < / d i v > < ! - -   / c n n D D B o x C o n t e n t   - - > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 	 < d i v   c l a s s = " c n n D D B o x F o o t e r " > < d i v   c l a s s = " c n n D D B o x F o o t e r B L " > < / d i v > < d i v   c l a s s = " c n n D D B o x F o o t e r B R " > < / d i v > < / d i v > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   ' 	 	 < / d i v > < ! - - / c n n D D O v r B o x - - > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   '   < / d i v > < ! - - / c n n D D O v r B o x C o n t a i n e r - - > ' + " \ n " ; 
 	 	 	 s t r C o n t e n t   + =   " \ n \ n " ; 
 	 	 	 / /   d r a w   t h e   n e w   c o n t e n t 
 	 	 	 $ ( w r a p I d ) . i n n e r H T M L   =   s t r C o n t e n t ; 
 
 	 	 	 / /   c a p t u r e   m o u s e d o w n 
 	 	 	 d o c u m e n t . b o d y . o n m o u s e d o w n   =   c n n M o u s e D o w n ; 
 
 	 	 } / / e l s e   i d   o f   s e l e c t   n o t   f o u n d   [   a b o r t   ] 
 	 } , 
 
 
 	 s e l e c t :   f u n c t i o n ( i n d e x ,   d i s p l a y e d V a l u e ,   i n t e r n a l V a l u e )   { 
 	 	 i f   ( $ ( t h i s . c u r I d ) )   { 
 	 	 	 v a r   m e n u I d   =   t h i s . c u r I d ; 
 
 	 	 	 / /   c l o s e   t h e   d r o p d o w n 
 	 	 	 t h i s . c l o s e ( ) ; 
 
 	 	 	 / /   c h a n g e   t h e   d i s p l a y e d   d r o p d o w n   v a l u e   ( b u t t o n   t e x t ) 
 	 	 	 i f   ( $ ( m e n u I d   +   ' _ V a l ' ) )   { 
 	 	 	 	 $ ( m e n u I d   +   ' _ V a l ' ) . i n n e r H T M L   =   d i s p l a y e d V a l u e ; 
 	 	 	 } 
 
 	 	 	 / /   s e t   t h e   f i r s t   r o w   o f   t h e   m e n u   t o   t h e   c u r r e n t   v a l u e 
 	 	 	 i f   ( ( t h i s . m e n u s [ m e n u I d ] . u p d a t e F i r s t R o w )   & &   $ ( m e n u I d   +   ' _ h d n V a l ' ) )   { 
 	 	 	 	 $ ( m e n u I d + ' _ h d n V a l ' ) . i n n e r H T M L   =   ' < a   h r e f = " j a v a s c r i p t : c n n D D . s e l e c t ( '   +   i n d e x   +   ' , \ ' '   +   t h i s . e n c o d e A t t r ( d i s p l a y e d V a l u e )   +   ' \ ' , \ ' '   +   t h i s . e n c o d e A t t r ( i n t e r n a l V a l u e )   +   ' \ ' ) " > '   +   d i s p l a y e d V a l u e   +   ' < / a > ' ; 
 	 	 	 } 
 
 	 	 	 v a r   l i s t I d   =   t h i s . m e n u s [ m e n u I d ] . l i s t I d ; 
 	 	 	 i f   ( $ ( l i s t I d ) )   { 
 	 	 	 	 / /   i f   t h e   v a l u e   h a s   c h a n g e d 
 	 	 	 	 i f   ( $ ( l i s t I d ) . s e l e c t e d I n d e x   ! =   i n d e x )   { 
 	 	 	 	 	 / /   s e t   t h e   i n d e x   o f   t h e   s e l e c t e d   o p t i o n   f o r   t h e   i n v i s i b l e   < s e l e c t > 
 	 	 	 	 	 $ ( l i s t I d ) . s e l e c t e d I n d e x   =   i n d e x ; 
 
 	 	 	 	 	 / /   I f   a n   o n c h a n g e   e v e n t   h a n d l e r   e x i s t s 
 	 	 	 	 	 i f   ( $ ( l i s t I d ) . o n c h a n g e )   { 
 	 	 	 	 	 	 $ ( l i s t I d ) . o n c h a n g e ( ) ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 } 
 
 	 	 	 / /   i f   a   c a l l b a c k   f u n c t i o n   e x i s t s 
 	 	 	 t r y   { 
 	 	 	 	 v a r   o n C h o o s e   =   e v a l ( m e n u I d   +   ' _ O n C h o o s e ' ) ; 
 	 	 	 	 i f   ( o n C h o o s e )   { 
 	 	 	 	 	 o n C h o o s e ( ) ; 
 	 	 	 	 } 
 	 	 	 } 
 	 	 	 c a t c h ( e r r )   { 
 	 	 	 } 
 	 	 } 
 	 } , 
 
 	 o p e n :   f u n c t i o n ( i d )   { 
 	 	 i f ( $ ( i d ) )   { 
 	 	 	 / /   W a s   t h e   s a m e   m e n u   c l i c k e d   a g a i n ? 
 	 	 	 v a r   s a m e M e n u   =   ( t h i s . c u r I d   = =   i d ) ; 
 
 	 	 	 / /   I f   a   m e n u   i s   a l r e a d y   o p e n 
 	 	 	 t h i s . c l o s e ( ) ; 
 
 	 	 	 / /   I f   a   d i f f e r e n t   m e n u   w a s   c l i c k e d 
 	 	 	 i f   ( ! s a m e M e n u )   { 
 	 	 	 	 $ ( i d ) . s t y l e . d i s p l a y   =   " b l o c k " ; 
 	 	 	 	 t h i s . c u r I d   =   i d ; 
 	 	 	 	 c n n D r o p d o w n O p e n   =   t r u e ; 
 	 	 	 } 
 	 	 } 
 	 } , 
 
 	 c l o s e :   f u n c t i o n ( )   { 
 	 	 i f   ( $ ( t h i s . c u r I d ) )   { 
 	 	 	 $ ( t h i s . c u r I d ) . s t y l e . d i s p l a y   =   " n o n e " ; 
 	 	 	 t h i s . c u r I d   =   ' ' ; 
 	 	 	 c n n D r o p d o w n O p e n   =   f a l s e ; 
 	 	 } 
 	 } , 
 
 	 e n c o d e A t t r :   f u n c t i o n ( s t r )   { 
 	 	 s t r = s t r . r e p l a c e ( / \ \ / g , ' \ \ \ \ ' ) ; 
 	 	 s t r = s t r . r e p l a c e ( / \ ' / g , ' \ \ \ ' ' ) ; 
 	 	 s t r = s t r . r e p l a c e ( / \ " / g , ' & q u o t ; ' ) ; 
 	 	 s t r = s t r . r e p l a c e ( / \ 0 / g , ' \ \ 0 ' ) ; 
 	 	 r e t u r n   s t r ; 
 	 } , 
 
 	 m o u s e D o w n :   f u n c t i o n ( e ,   i d )   { 
 	 	 t h i s . i g n o r e M o u s e D o w n B o d y   =   t r u e ; 
 	 	 r e t u r n   t r u e ; 
 	 } , 
 
 	 m o u s e D o w n B t n :   f u n c t i o n ( e ,   i d )   { 
 	 	 / /   T r u e   i f   t h e   s a m e   d r o p d o w n   b u t t o n   w a s   c l i c k e d   a g a i n . 
 	 	 t h i s . i g n o r e M o u s e D o w n B o d y   =   ( i d   & &   ( t h i s . c u r I d   = =   i d ) ) ; 
 	 	 r e t u r n   t r u e ; 
 	 } , 
 
 	 m o u s e D o w n B o d y :   f u n c t i o n ( e )   { 
 	 	 i f   ( ! t h i s . i g n o r e M o u s e D o w n B o d y )   { 
 	 	 	 t h i s . c l o s e ( ) ; 
 	 	 } 
 	 	 t h i s . i g n o r e M o u s e D o w n B o d y   =   f a l s e ; 
 	 	 r e t u r n   t r u e ; 
 	 } 
 } 
 / *   e n d   s t y l e d   d r o p d o w n s 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 
 / *   m o s t   p o p u l a r   m o d u l e 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 v a r   c n n M p A c t i v e I d   =   ' c n n M p S t o r y ' ; 
 v a r   c n n M p L o c k   =   f a l s e ; 
 v a r   c n n i e   =   f a l s e ; 
 f u n c t i o n   c n n T o g g l e M P ( i d S h o w )   { 
 
 	 i f   ( c n n M p A c t i v e I d   & &   c n n M p A c t i v e I d   ! =   i d S h o w )   { 
 
 	 	 i f ( ! c n n M p L o c k )   { 
 	 	 	 c n n M p L o c k   =   t r u e ; 
 
 	 	 	 i f ( c n n i e )   { 
 	 	 	 	 c n n T o g g l e M P I E ( i d S h o w ) ; 
 	 	 	 } 
 	 	 	 e l s e   { 
 	 	 	 	 / /   h i d e   t h e   o l d 
 	 	 	 	 v a r   e l H i d e   =   $ ( c n n M p A c t i v e I d ) ; 
 
 	 	 	 	 E f f e c t . t o g g l e ( e l H i d e , ' b l i n d ' , 
 	 	 	 	 { 
 	 	 	 	 	 d u r a t i o n : 0 . 2 5 , 
 	 	 	 	 	 b e f o r e S t a r t : f u n c t i o n ( ) 
 	 	 	 	 	 { 
 	 	 	 	 	 	 v a r   c n n H i d e H e a d   =   i d S h o w   +   ' - h e a d ' ; 
 	 	 	 	 	 	 $ ( c n n H i d e H e a d ) . c l a s s N a m e = " a c t i v e " ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 
 	 	 	 	 ) ; 
 
 	 	 	 	 / /   d i s p l a y   t h e   n e w 
 	 	 	 	 v a r   e l S h o w   =   $ ( i d S h o w ) ; 
 
 	 	 	 	 E f f e c t . t o g g l e ( e l S h o w , ' b l i n d ' , 
 	 	 	 	 { 
 	 	 	 	 	 d u r a t i o n : 0 . 2 5 , 
 	 	 	 	 	 b e f o r e S t a r t : f u n c t i o n ( o b j ) 
 	 	 	 	 	 { 
 	 	 	 	 	 	 v a r   c n n S h o w H e a d   =   c n n M p A c t i v e I d   +   ' - h e a d ' ; 
 	 	 	 	 	 	 $ ( c n n S h o w H e a d ) . c l a s s N a m e   =   " c l o s e d " ; 
 	 	 	 	 	 } , 
 
 	 	 	 	 	 a f t e r F i n i s h : f u n c t i o n ( o b j ) 
 	 	 	 	 	 { 
 	 	 	 	 	 	 c n n M p A c t i v e I d   =   i d S h o w ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 ) ; 
 	 	 	 } / /   e n d   i f   c n n i e 
 
 	 	 	 / /   d e l a y   t h e   u n l o c k 
 	 	 	 s e t T i m e o u t ( " c n n M p L o c k   =   f a l s e ; " , 2 5 0 ) ; 
 
 	 	 } / /   e n d   i f   ! c n n M p L o c k 
 
 	 } / /   e n d   s a m e   i d 
 } 
 
 f u n c t i o n   c n n T o g g l e M P I E ( i d S h o w )   { 
 
 	 v a r   e l H i d e   =   $ ( c n n M p A c t i v e I d ) ; 
 	 v a r   e l S h o w   =   $ ( i d S h o w ) ; 
 
 	 / /   h i d e   t h e   r e d   h e a d e r 
 	 v a r   c n n H i d e H e a d   =   i d S h o w   +   ' - h e a d ' ; 
 	 $ ( c n n H i d e H e a d ) . c l a s s N a m e = " a c t i v e " ; 
 
 	 n e w   E f f e c t . P a r a l l e l ( 
 	 [ 
 	 	 n e w   E f f e c t . S l i d e U p ( e l H i d e ) , 
 	 	 n e w   E f f e c t . S l i d e D o w n ( e l S h o w ) 
 	 ] ,   { 
 	 	 d u r a t i o n :   0 . 0 4 
 	 } ) ; 
 
 	 / /   s h o w   t h e   p r e v i o u s l y   a c t i v e   r e d   h e a d e r 
 	 v a r   c n n S h o w H e a d   =   c n n M p A c t i v e I d   +   ' - h e a d ' ; 
 	 $ ( c n n S h o w H e a d ) . c l a s s N a m e   =   " c l o s e d " ; 
 
 	 / /   r e s e t   t h e   a c t i v e   i d 
 	 c n n M p A c t i v e I d   =   i d S h o w ; 
 
 } 
 
 f u n c t i o n   c n n T o g g l e M P N o S l i d e ( i d S h o w )   { 
 
 	 i f   ( c n n M p A c t i v e I d   & &   c n n M p A c t i v e I d   ! =   i d S h o w )   { 
 
 	 	 v a r   e l H i d e   =   $ ( c n n M p A c t i v e I d ) ; 
 	 	 v a r   c n n H i d e H e a d   =   i d S h o w   +   ' - h e a d ' ; 
 	 	 $ ( c n n H i d e H e a d ) . c l a s s N a m e = " a c t i v e " ; 
 	 	 e l H i d e . s t y l e . d i s p l a y = ' n o n e ' ; 
 
 	 	 v a r   e l S h o w   =   $ ( i d S h o w ) ; 
 	 	 v a r   c n n S h o w H e a d   =   c n n M p A c t i v e I d   +   ' - h e a d ' ; 
 	 	 $ ( c n n S h o w H e a d ) . c l a s s N a m e   =   " c l o s e d " ; 
 	 	 e l S h o w . s t y l e . d i s p l a y = ' b l o c k ' ; 
 
 	 	 c n n M p A c t i v e I d   =   i d S h o w ; 
 
 	 } 
 
 } 
 
 / *   m o s t   p o p u l a r   m o d u l e   t a b   f u n c t i o n s   * / 
 f u n c t i o n   c n n M p S t o r i e s H o m e (   i n t W h i c h   )   { 
 	 f o r ( i = 1 ; i < 4 ; i + + )   { 
 	 	 i f ( i = = i n t W h i c h )   { 
 	 	 	 $ ( ' c n n M p S t o r i e s '   +   i ) . s t y l e . d i s p l a y   =   ' b l o c k ' ; 
 	 	 	 $ ( ' c n n M p S t o r i e s T a b '   +   i ) . c l a s s N a m e   =   ' a c t i v e ' ; 
 	 	 } 
 	 	 e l s e   { 
 	 	 	 $ ( ' c n n M p S t o r i e s '   +   i ) . s t y l e . d i s p l a y   =   ' n o n e ' ; 
 	 	 	 $ ( ' c n n M p S t o r i e s T a b '   +   i ) . c l a s s N a m e   =   ' ' ; 
 	 	 } 
 	 } 
 	 $ ( ' c n n M p S t o r i e s T a b ' +   i n t W h i c h ) . b l u r ( ) ; 
 } 
 f u n c t i o n   c n n M p S t o r i e s (   i n t W h i c h   )   { 
 	 f o r ( i = 1 ; i < 3 ; i + + )   { 
 	 	 i f ( i = = i n t W h i c h )   { 
 	 	 	 $ ( ' c n n M p S t o r i e s '   +   i ) . s t y l e . d i s p l a y   =   ' b l o c k ' ; 
 	 	 	 $ ( ' c n n M p S t o r i e s T a b '   +   i ) . c l a s s N a m e   =   ' a c t i v e ' ; 
 	 	 } 
 	 	 e l s e   { 
 	 	 	 $ ( ' c n n M p S t o r i e s '   +   i ) . s t y l e . d i s p l a y   =   ' n o n e ' ; 
 	 	 	 $ ( ' c n n M p S t o r i e s T a b '   +   i ) . c l a s s N a m e   =   ' ' ; 
 	 	 } 
 	 } 
 	 $ ( ' c n n M p S t o r i e s T a b ' +   i n t W h i c h ) . b l u r ( ) ; 
 } 
 f u n c t i o n   c n n M p T o p i c (   i n t W h i c h   )   { 
 	 f o r ( i = 1 ; i < 3 ; i + + )   { 
 	 	 i f ( i = = i n t W h i c h )   { 
 	 	 	 $ ( ' c n n M p T o p i c '   +   i ) . s t y l e . d i s p l a y   =   ' b l o c k ' ; 
 	 	 	 $ ( ' c n n M p T o p i c T a b '   +   i ) . c l a s s N a m e   =   ' a c t i v e ' ; 
 	 	 } 
 	 	 e l s e   { 
 	 	 	 $ ( ' c n n M p T o p i c '   +   i ) . s t y l e . d i s p l a y   =   ' n o n e ' ; 
 	 	 	 $ ( ' c n n M p T o p i c T a b '   +   i ) . c l a s s N a m e   =   ' ' ; 
 	 	 } 
 	 } 
 	 $ ( ' c n n M p T o p i c T a b ' +   i n t W h i c h ) . b l u r ( ) ; 
 } 
 
 f u n c t i o n   c n n M p V i d e o s (   i n t W h i c h   )   { 
 	 f o r ( i = 1 ; i < 3 ; i + + )   { 
 	 	 i f ( i = = i n t W h i c h )   { 
 	 	 	 $ ( ' c n n M p V i d e o s '   +   i ) . s t y l e . d i s p l a y   =   ' b l o c k ' ; 
 	 	 	 $ ( ' c n n M p V i d e o s T a b '   +   i ) . c l a s s N a m e   =   ' a c t i v e ' ; 
 	 	 } 
 	 	 e l s e   { 
 	 	 	 $ ( ' c n n M p V i d e o s '   +   i ) . s t y l e . d i s p l a y   =   ' n o n e ' ; 
 	 	 	 $ ( ' c n n M p V i d e o s T a b '   +   i ) . c l a s s N a m e   =   ' ' ; 
 	 	 } 
 	 } 
 	 $ ( ' c n n M p V i d e o s T a b ' +   i n t W h i c h ) . b l u r ( ) ; 
 } 
 
 / *   m o s t   p o p u l a r   m o d u l e   i n i t   f u n c t i o n   * / 
 f u n c t i o n   c n n I n i t M P ( )   { 
 	 $ ( ' c n n M p T o p i c ' ) . s t y l e . d i s p l a y   =   ' n o n e ' ; 
 	 $ ( ' c n n M p V i d e o ' ) . s t y l e . d i s p l a y   =   ' n o n e ' ; 
 	 $ ( ' c n n M o s t P o p M o d ' ) . s t y l e . d i s p l a y   =   ' b l o c k ' ; 
 } 
 
 / *   e n d   m o s t   p o p u l a r   m o d u l e 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 / *   p o l i t i c s   T 1   v i d e o / s t o r y   t a b s   * / 
 f u n c t i o n   c n n P o l S h o w S t o r i e s ( )   { 
 	 $ ( ' c n n P o l T 2 V i d e o s ' ) . s t y l e . d i s p l a y   =   " n o n e " ; 
 	 $ ( ' c n n P o l V i d e o T a b ' ) . s t y l e . d i s p l a y   =   " n o n e " ; 
 	 $ ( ' c n n T 1 V i d e o ' ) . s t y l e . d i s p l a y   =   " n o n e " ; 
 	 $ ( ' c n n T 1 S t o r y ' ) . s t y l e . d i s p l a y   =   " b l o c k " ; 
 	 $ ( ' c n n P o l S t o r y T a b ' ) . s t y l e . d i s p l a y   =   " b l o c k " ; 
 	 $ ( ' c n n P o l T 2 S t o r i e s ' ) . s t y l e . d i s p l a y   =   " b l o c k " ; 
 } 
 f u n c t i o n   c n n P o l S h o w V i d e o s ( )   { 
 	 $ ( ' c n n P o l T 2 V i d e o s ' ) . s t y l e . d i s p l a y   =   " b l o c k " ; 
 	 $ ( ' c n n P o l V i d e o T a b ' ) . s t y l e . d i s p l a y   =   " b l o c k " ; 
 	 $ ( ' c n n T 1 V i d e o ' ) . s t y l e . d i s p l a y   =   " b l o c k " ; 
 	 $ ( ' c n n T 1 S t o r y ' ) . s t y l e . d i s p l a y   =   " n o n e " ; 
 	 $ ( ' c n n P o l S t o r y T a b ' ) . s t y l e . d i s p l a y   =   " n o n e " ; 
 	 $ ( ' c n n P o l T 2 S t o r i e s ' ) . s t y l e . d i s p l a y   =   " n o n e " ; 
 } 
 
 / *   c n n   a f f i l i a t e s   ( u s   s e c t i o n ) 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 f u n c t i o n   c n n A f f i l i a t e s _ S e t G o B t n ( u r l )   { 
 	 v a r   b t n O f f   =   " I m a g e s / g o _ b t n _ d i s a b l e d . g i f " ; 
 	 v a r   b t n O n   =   " I m a g e s / g o _ b t n . g i f " ; 
 	 v a r   g o B u t t o n I d   =   ' c n n A f f i l i a t e s G o B t n ' ; 
 	 i f   ( $ ( g o B u t t o n I d ) )   { 
 	 	 i f   ( u r l )   { 
 	 	 	 $ ( g o B u t t o n I d ) . i n n e r H T M L   =   ' < a   i d = " c n n A f f i l i a t e s G o L i n k "   h r e f = " ' + u r l + ' "   t a r g e t = " _ b l a n k " > < i m g   s r c = " ' + b t n O n + ' "   w i d t h = " 2 9 "   h e i g h t = " 2 3 "   b o r d e r = " 0 "   a l t = " " > < / a > ' ; 
 	 	 } 
 	 	 e l s e   { 
 	 	 	 $ ( g o B u t t o n I d ) . i n n e r H T M L   =   ' < i m g   s r c = " ' + b t n O f f + ' "   w i d t h = " 2 9 "   h e i g h t = " 2 3 "   b o r d e r = " 0 "   a l t = " " > ' ; 
 	 	 } 
 	 } 
 } 
 
 f u n c t i o n   c n n A f f i l i a t e s _ S e l e c t R e g i o n ( s e l e c t O b j )   { 
 	 v a r   r e g i o n   =   s e l e c t O b j . v a l u e . t o L o w e r C a s e ( ) ; 
 	 	 i f   ( r e g i o n )   { 
 	 	 v a r   m a p I d   =   ' c n n A f f i l i a t e s M a p ' ; 
 	 	 i f   ( $ ( m a p I d ) )   { 
 	 	 	 $ ( m a p I d ) . s r c   =   ' I m a g e s / a f f i l i a t e s _ '   +   r e g i o n   +   ' . g i f ' ; 
 	 	 } 
 	 	 / /   r e s e t   t h e   l i s t 
 	 	 v a r   a f f i l i a t e s I d   =   ' c n n D D A f f i l i a t e s C i t y _ l i s t _ '   +   r e g i o n ; 
 	 	 i f   ( $ ( a f f i l i a t e s I d ) )   { 
 	 	 	 $ ( a f f i l i a t e s I d ) . s e l e c t e d I n d e x   =   0 ; 
 	 	 } 
 	 	 c n n D D . b u i l d D r o p d o w n ( ' c n n D D A f f i l i a t e s C i t y ' ,   2 5 2 ,   2 7 0 ,   1 0 ,   ' c n n D D W i r e ' ,   r e g i o n ) ; 
 	 	 c n n A f f i l i a t e s _ S e t G o B t n ( ) ; 
 	 } 
 	 / /   n o   r e g i o n   s e l e c t e d 
 	 e l s e   { 
 	 	 v a r   m a p I d   =   ' c n n A f f i l i a t e s M a p ' ; 
 	 	 i f   ( $ ( m a p I d ) )   { 
 	 	 	 $ ( m a p I d ) . s r c   =   ' I m a g e s / a f f i l i a t e s _ d e f a u l t . g i f ' ; 
 	 	 } 
 	 	 c n n D D . b u i l d D i s a b l e d D r o p d o w n ( ' c n n D D A f f i l i a t e s C i t y ' ,   2 5 2 ,   ' c n n D D W i r e ' ,   ' n o r t h e a s t ' ) ; 
 	 	 c n n A f f i l i a t e s _ S e t G o B t n ( ) ; 
 	 } 
 } 
 
 f u n c t i o n   c n n A f f i l i a t e s _ S e l e c t C i t y ( s e l e c t O b j )   { 
 	 v a r   u r l   =   s e l e c t O b j . v a l u e ; 
 	 c n n A f f i l i a t e s _ S e t G o B t n ( u r l ) ; 
 } 
 
 / *   e n d   c n n   a f f i l i a t e s   ( u s   s e c t i o n ) 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 / *   c n e t   p r o d u c t   r e v i e w s   w i d g e t 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 f u n c t i o n   c n n S e a r c h C n e t ( )   { 
 	 s w i t c h ( d o c u m e n t . t s e a r c h . n o d e i d . v a l u e )   { 
 	 	 c a s e   " m o r e " : 
 	 	 w i n d o w . o p e n ( " h t t p : / / c n n - c n e t . c o m . c o m / 2 0 0 1 - 1 _ 7 - 0 . h t m l ? p a r t = c n n - c n e t & s u b j = r e & t a g = s e a r c h " ) ; 
 	 	 b r e a k ; 
 	 	 c a s e   " 6 5 0 0 " : 
 	 	 w i n d o w . o p e n ( " h t t p : / / c n n - c n e t . c o m . c o m / 4 3 2 3 - 6 5 3 0 _ 7 - 6 5 0 9 0 2 5 . h t m l ? p a r t = c n n - c n e t & s u b j = r e & t a g = s e a r c h " ) ; 
 	 	 b r e a k ; 
 	 	 c a s e   " 6 5 0 1 " : 
 	 	 w i n d o w . o p e n ( " h t t p : / / c n n - c n e t . c o m . c o m / 4 3 2 3 - 6 5 3 0 _ 7 - 6 5 0 9 0 3 7 . h t m l ? p a r t = c n n - c n e t & s u b j = r e & t a g = s e a r c h " ) ; 
 	 	 b r e a k ; 
 	 	 c a s e   " 3 5 0 4 " : 
 	 	 w i n d o w . o p e n ( " h t t p : / / c n n - c n e t . c o m . c o m / 4 3 2 3 - 6 5 2 5 _ 7 - 6 5 0 9 0 9 8 . h t m l ? p a r t = c n n - c n e t & s u b j = r e & t a g = s e a r c h " ) ; 
 	 	 b r e a k ; 
 	 	 c a s e   " 3 0 0 0 " : 
 	 	 w i n d o w . o p e n ( " h t t p : / / c n n - c n e t . c o m . c o m / 4 3 2 3 - 6 5 2 6 _ 7 - 6 5 0 9 0 3 2 . h t m l ? p a r t = c n n - c n e t & s u b j = r e & t a g = s e a r c h " ) ; 
 	 	 b r e a k ; 
 	 	 c a s e   " 3 1 2 7 " : 
 	 	 w i n d o w . o p e n ( " h t t p : / / c n n - c n e t . c o m . c o m / 4 3 2 3 - 6 5 2 2 _ 7 - 6 5 0 9 0 5 8 . h t m l ? p a r t = c n n - c n e t & s u b j = r e & t a g = s e a r c h " ) ; 
 	 	 b r e a k ; 
 	 	 c a s e   " 6 4 6 3 " : 
 	 	 w i n d o w . o p e n ( " h t t p : / / c n n - c n e t . c o m . c o m / 4 3 2 3 - 6 5 3 1 _ 7 - 6 5 0 9 1 2 5 . h t m l ? p a r t = c n n - c n e t & s u b j = r e & t a g = s e a r c h " ) ; 
 	 	 b r e a k ; 
 	 	 c a s e   " 6 4 5 0 " : 
 	 	 w i n d o w . o p e n ( " h t t p : / / c n n - c n e t . c o m . c o m / 4 3 2 3 - 6 5 3 2 _ 7 - 6 5 0 9 0 8 1 . h t m l ? p a r t = c n n - c n e t & s u b j = r e & t a g = s e a r c h " ) ; 
 	 	 b r e a k ; 
 	 	 c a s e   " 3 1 3 2 " : 
 	 	 w i n d o w . o p e n ( " h t t p : / / c n n - c n e t . c o m . c o m / 4 3 2 3 - 6 5 2 8 _ 7 - 6 5 0 9 0 6 7 . h t m l ? p a r t = c n n - c n e t & s u b j = r e & t a g = s e a r c h " ) ; 
 	 	 b r e a k ; 
 	 	 c a s e   " 3 2 4 3 " : 
 	 	 w i n d o w . o p e n ( " h t t p : / / c n n - c n e t . c o m . c o m / 4 3 2 3 - 6 5 2 3 _ 7 - 6 5 0 9 0 3 1 . h t m l ? p a r t = c n n - c n e t & s u b j = r e & t a g = s e a r c h " ) ; 
 	 	 b r e a k ; 
 	 } 
 	 r e t u r n   f a l s e ; 
 } 
 / *   e n d   c n e t   p r o d u c t   r e v i e w s   w i d g e t 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 / *   p a r t n e r   b o x   o u t p u t 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 f u n c t i o n   c n n P a r t n e r R a n d _ A s o r t ( ) {   r e t u r n   ( M a t h . r o u n d ( M a t h . r a n d o m ( ) ) - 0 . 5 ) ;   } 
 
 f u n c t i o n   c n n P r i n t P a r t n e r O u t p u t ( )   { 
 	 v a r   c n n P a r t n e r _ D a t a   =   n e w   A r r a y ( ) ; 
 	 / /   n a m e ,   l o g o ,   f e e d   l o c a t i o n ,   s u b s c r i b e   l i n k ,   l o g o   l i n k 
 	 c n n P a r t n e r _ D a t a [ 0 ]   =   n e w   A r r a y ( " T i m e . c o m " , " h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / i m g / 2 . 0 / c o n t e n t / p a r t n e r s / t i m e _ p a r t n e r . g i f " , " / . e l e m e n t / s s i / a u t o / 2 . 0 / s e c t / M A I N / f t p a r t n e r s / p a r t n e r . t i m e . h t m l " ,   " / l i n k t o / t i m e . m a i n . h t m l " ,   " / t i m e / ? c n n = y e s " ) ; 
 	 c n n P a r t n e r _ D a t a [ 1 ]   =   n e w   A r r a y ( " E W . c o m " , " h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / i m g / 2 . 0 / c o n t e n t / p a r t n e r s / e n t e r t a i n m e n t _ p a r t n e r . g i f " , " / . e l e m e n t / s s i / a u t o / 2 . 0 / s e c t / M A I N / f t p a r t n e r s / p a r t n e r . e w . h t m l " ,   " h t t p : / / s u b s . t i m e i n c . n e t / C a m p a i g n H a n d l e r / e w l i n k s ? s o u r c e _ i d = 2 9 " ,   " / e w / ? c n n = y e s " ) ; 
 	 c n n P a r t n e r _ D a t a [ 2 ]   =   n e w   A r r a y ( " P e o p l e . c o m " , " h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / i m g / 2 . 0 / c o n t e n t / p a r t n e r s / p a r t n e r _ p e o p l e . g i f " , " / . e l e m e n t / s s i / a u t o / 2 . 0 / s e c t / M A I N / f t p a r t n e r s / p a r t n e r . p e o p l e . h t m l " ,   " h t t p s : / / s u b s . t i m e i n c . n e t / P E / p e _ c n t l 0 4 0 7 . j h t m l ? e x p e r i e n c e _ i d = 1 6 4 4 9 1 & s o u r c e _ i d = 5 & _ r e q u e s t i d = 8 4 3 1 2 " ,   " h t t p : / / w w w . p e o p l e . c o m / p e o p l e " ) ; 
 	 c n n P a r t n e r _ D a t a [ 3 ]   =   n e w   A r r a y ( " C N N M o n e y . c o m " , " h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / i m g / 2 . 0 / c o n t e n t / p a r t n e r s / m o n e y _ p a r t n e r . g i f " , " / . e l e m e n t / s s i / a u t o / 2 . 0 / s e c t / M A I N / f t p a r t n e r s / p a r t n e r . m o n e y . t x t " ,   " h t t p : / / m o n e y . t h e t h a o . d e c . v n / s e r v i c e s / b r i d g e / c o n t a c t . u s . h t m l " ,   " / m o n e y / i n d e x . h t m l ? c n n = y e s " ) ; 
 	 c n n P a r t n e r _ D a t a [ 4 ]   =   n e w   A r r a y ( " C N N S I . c o m " , " h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / i m g / 2 . 0 / c o n t e n t / p a r t n e r s / s i _ p a r t n e r . g i f " , " / . e l e m e n t / s s i / a u t o / 2 . 0 / s e c t / M A I N / f t p a r t n e r s / p a r t n e r . s i . t x t " ,   " h t t p s : / / s u b s . t i m e i n c . n e t / C a m p a i g n H a n d l e r / s i _ c n n s i ? s o u r c e _ i d = 1 9 " ,   " / s i / ? c n n = y e s " ) ; 
 
 	 c n n P a r t n e r _ D a t a . s o r t ( c n n P a r t n e r R a n d _ A s o r t ) ; 
 
 	 f o r ( v a r   i   =   0 ; i   <   2 ; i + + )   { 
 
 	 	 v a r 	 t e m p _ p a r t n e r _ h t m l   =   ' < d i v   c l a s s = " c n n W i r e B o x " > < d i v   c l a s s = " c n n B o x H e a d e r " > < d i v > < / d i v > < / d i v > < d i v   c l a s s = " c n n B o x C o n t e n t " > < d i v   c l a s s = " c n n P a d 8 T B 1 2 L R " > < d i v   c l a s s = " c n n P a r t n e r T o p " > ' ; 
 	 	 i f ( c n n P a r t n e r _ D a t a [ i ] [ 3 ]   ! =   " " )   { 
 	 	 	 t e m p _ p a r t n e r _ h t m l   + =   ' < d i v   c l a s s = " c n n P a r t n e r S u b s c r i b e " > < a   h r e f = " '   +   c n n P a r t n e r _ D a t a [ i ] [ 3 ]   +   ' "   o n m o u s e o v e r = " c n n I m g S w a p ( t h i s , 1 ) "   o n m o u s e o u t = " c n n I m g S w a p ( t h i s , 0 ) " > < i m g   s r c = " h t t p : / / i . c d n . t u r n e r . c o m / c n n / . e l e m e n t / i m g / 2 . 0 / c o n t e n t / p a r t n e r s / b t n _ s u b s c r i b e . g i f "   w i d t h = " 6 1 "   h e i g h t = " 1 7 "   b o r d e r = " 0 " > < / a > < / d i v > ' ; 
 	 	 } 
 	 	 t e m p _ p a r t n e r _ h t m l   + =   ' < d i v > ' ; 
 	 	 i f ( c n n P a r t n e r _ D a t a [ i ] [ 4 ]   ! =   " " )   { 
 	 	 	 t e m p _ p a r t n e r _ h t m l   + =   ' < a   h r e f = " '   +   c n n P a r t n e r _ D a t a [ i ] [ 4 ]   +   ' " > ' ; 
 	 	 } 
 	 	 t e m p _ p a r t n e r _ h t m l   + =   ' < i m g   s r c = " '   +   c n n P a r t n e r _ D a t a [ i ] [ 1 ]   +   ' "   c l a s s = " c n n P a r t L o g o "   b o r d e r = " 0 "   a l t = " " > ' ; 
 	 	 i f ( c n n P a r t n e r _ D a t a [ i ] [ 4 ]   ! =   " " )   { 
 	 	 	 t e m p _ p a r t n e r _ h t m l   + =   ' < / a > ' ; 
 	 	 } 
 	 	 t e m p _ p a r t n e r _ h t m l   + =   ' < / d i v > < d i v   c l a s s = " c l e a r " > < / d i v > < / d i v > < d i v   i d = " c n n P a r t n e r I n c l u d e _ '   +   i   +   ' " > L o a d i n g . . . < / d i v > < / d i v > < / d i v > < d i v   c l a s s = " c n n B o x F o o t e r " > < d i v > < / d i v > < / d i v > < / d i v > ' ; 
 
 	 	 E l e m e n t . u p d a t e ( ' r a n d P a r t n e r _ '   +   i ,   t e m p _ p a r t n e r _ h t m l ) ; 
 	 	 n e w   A j a x . U p d a t e r ( ' c n n P a r t n e r I n c l u d e _ '   +   i ,   c n n P a r t n e r _ D a t a [ i ] [ 2 ] ,   { a s y n c h r o n o u s : t r u e ,   m e t h o d : ' g e t ' } ) ; 
 
 	 } 
 } 
 
 f u n c t i o n   c n n M p P a r t n e r R o t a t e ( )   { 
 	 v a r   i n t R a n d o m   =   M a t h . f l o o r ( M a t h . r a n d o m ( ) * 2 ) ; 
 	 s w i t c h ( i n t R a n d o m )   { 
 	 	 c a s e   0 : 
 	 	 	 $ ( ' c n n M p P a r t n e r E W ' ) . s t y l e . d i s p l a y   =   " b l o c k " ; 
 	 	 	 b r e a k ; 
 	 	 c a s e   1 : 
 	 	 	 $ ( ' c n n M p P a r t n e r P e o p l e ' ) . s t y l e . d i s p l a y   =   " b l o c k " ; 
 	 	 	 b r e a k ; 
 	 	 d e f a u l t : 
 	 	 	 b r e a k ; 
 	 } 
 } 
 / *   e n d   p a r t n e r   b o x   o u t p u t 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 / *   m a i n   p a g e   m o s t   p o p u l a r   o v e r l a y 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 f u n c t i o n   c n n S h o w M o P o ( )   { 
 	 $ ( ' c n n O p a c i t y ' ) . s t y l e . d i s p l a y   =   " b l o c k " ; 
 	 $ ( ' c n n M o P o ' ) . s t y l e . d i s p l a y   =   " b l o c k " ; 
 } 
 
 f u n c t i o n   c n n H i d e M o P o ( )   { 
 	 $ ( ' c n n M o P o ' ) . s t y l e . d i s p l a y   =   " n o n e " ; 
 	 n e w   E f f e c t . O p a c i t y ( ' c n n O p a c i t y ' ,   { d u r a t i o n : 0 . 1 ,   f r o m : 0 . 5 ,   t o : 0 . 0 } ) ; 
 
 	 / /   r e s e t   o p a c i t y 
 	 s e t T i m e o u t ( " $ ( ' c n n O p a c i t y ' ) . s t y l e . d i s p l a y   =   \ " n o n e \ " ; n e w   E f f e c t . O p a c i t y ( ' c n n O p a c i t y ' ,   { d u r a t i o n : 0 . 1 ,   f r o m : 0 . 0 ,   t o : 0 . 8 } ) ; " , 5 0 0 ) 
 } 
 
 / *   p a r t n e r   b o x   o m n i t u r e   t r a c k i n g 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 v a r   c n n P S p r o d u c t s = " " ; 
 v a r   c n n P r o d u c t s   =   n e w   A r r a y ( ) ; 
 / *   e n d   p a r t n e r   b o x   o u t p u t 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 / *   s e t   e d i t i o n   j s 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 v a r   c n n D o m e s t i c _ H o s t   =   ' w w w . t h e t h a o . d e c . v n ' ; 
 v a r   c n n I n t l _ H o s t   =   ' w w w . t h e t h a o . d e c . v n ' ; 
 v a r   c n n U s e r E d _ P r e f   =   a l l C o o k i e s [ ' S e l e c t e d E d i t i o n ' ] ; 
 v a r   c n n S h o w _ s e t P r e f   =   f a l s e ; 
 v a r   c n n U E P H o s t _ V a l   =   l o c a t i o n . h o s t n a m e ; 
 v a r   c n n O n _ D o m _ F l a g ; 
 
 i f ( l o c a t i o n . h o s t n a m e . i n d e x O f ( c n n D o m e s t i c _ H o s t )   >   - 1 )   {   c n n O n _ D o m _ F l a g   =   1 ;   } 
 
 v a r   c n n S e t P r e f B o x _ H T M L   =   ' < d i v   i d = " c n n S e t C N N E d " > < d i v   c l a s s = " c n n W i r e S e B o x " > < d i v   c l a s s = " c n n W i r e S e B o x H e a d e r " > < i m g   s r c = " I m a g e s / c o r n e r _ s e _ t l . g i f "   w i d t h = " 4 "   h e i g h t = " 4 "   a l t = " "   i d = " c n n S e C n r T L "   / > < / d i v > < d i v   i d = " c n n B o x S e C o n t e n t " > < a   h r e f = " j a v a s c r i p t : c n n S e t P r e f B o x _ C l o s e ( ) ; " > < i m g   c l a s s = " c n n E d i t i o n C l o s e B t n "   s r c = " I m a g e s / s e _ c l o s e _ b t n . g i f "   w i d t h = " 1 4 "   h e i g h t = " 1 4 "   a l t = " "   / > < / a > < f o r m   i d = " c n n s e t P r e f _ F o r m " > < t a b l e   a l i g n = " c e n t e r "   c l a s s = " c n n S e t E d i t i o n "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 " > < t r > < t d   c l a s s = " s e t E d T e x t " > < b > S e t   y o u r   C N N . c o m   E d i t i o n < / b > < / t d > ' ; 
 
 i f ( c n n O n _ D o m _ F l a g )   {   c n n S e t P r e f B o x _ H T M L   + =   ' < t d   c l a s s = " c n n E d i t i o n R a d i o T D " > < i n p u t   t y p e = " r a d i o "   i d = " e d i t i o n "   n a m e = " e d i t i o n "   c l a s s = " c n n E d i t i o n R a d i o B t n "   c h e c k e d = " c h e c k e d "   v a l u e = " w w w "   / > < / t d > < t d > C N N   U . S . < / t d > < t d   c l a s s = " c n n E d i t i o n R a d i o T D " > < i n p u t   t y p e = " r a d i o "   i d = " e d i t i o n "   n a m e = " e d i t i o n "   c l a s s = " c n n E d i t i o n R a d i o B t n "   v a l u e = " e d i t i o n "   / > < / t d > < t d > C N N   I n t e r n a t i o n a l < / t d > ' ;   } 
 e l s e   {   c n n S e t P r e f B o x _ H T M L   + =   ' < t d   c l a s s = " c n n E d i t i o n R a d i o T D " > < i n p u t   t y p e = " r a d i o "   i d = " e d i t i o n "   n a m e = " e d i t i o n "   c l a s s = " c n n E d i t i o n R a d i o B t n "   c h e c k e d = " c h e c k e d "   v a l u e = " e d i t i o n "   / > < / t d > < t d > C N N   I n t e r n a t i o n a l < / t d > < t d   c l a s s = " c n n E d i t i o n R a d i o T D " > < i n p u t   t y p e = " r a d i o "   i d = " e d i t i o n "   n a m e = " e d i t i o n "   c l a s s = " c n n E d i t i o n R a d i o B t n "   v a l u e = " w w w "   / > < / t d > < t d > C N N   U . S . < / t d > ' ;   } 
 
 c n n S e t P r e f B o x _ H T M L   + =   ' < t d > < a   h r e f = " j a v a s c r i p t : c n n S e t E d P r e f _ c o o K i e ( ) ; " > < i m g   c l a s s = " c n n E d i t i o n B o x B t n "   s r c = " I m a g e s / s e _ b t n . g i f "   w i d t h = " 8 4 "   h e i g h t = " 2 3 "   a l t = " "   b o r d e r = " 0 "   / > < / a > < / t d > < / t r > < / t a b l e > < / f o r m > < / d i v > < d i v   c l a s s = " c n n W i r e S e B o x F o o t e r " > < i m g   s r c = " I m a g e s / c o r n e r _ s e _ b l . g i f "   w i d t h = " 4 "   h e i g h t = " 4 "   a l t = " "   i d = " c n n S e C n r B L "   / > < / d i v > < / d i v > < / d i v > ' ; 
 
 i f ( c n n U s e r E d _ P r e f )   { 
 	 i f ( l o c a t i o n . h o s t n a m e   = =   " t h e t h a o . d e c . v n " )   { 
 	 	 i f ( c n n U s e r E d _ P r e f   = =   ' w w w ' )   {   l o c a t i o n . r e p l a c e ( ' h t t p : / / '   +   c n n D o m e s t i c _ H o s t ) ;   } 
 	 	 e l s e {   l o c a t i o n . r e p l a c e ( ' h t t p : / / '   +   c n n I n t l _ H o s t ) ;   } 
 	 } 
 } 
 e l s e   { 
 	 c n n S h o w _ s e t P r e f   =   t r u e ; 
 } 
 
 f u n c t i o n   c n n S e t P r e f B o x _ C l o s e ( p r e f _ f l a g )   { 
 	 i f   ( d o c u m e n t . g e t E l e m e n t B y I d )   {   d o c u m e n t . g e t E l e m e n t B y I d ( ' c n n S e t E d i t i o n C o n t a i n e r ' ) . s t y l e . d i s p l a y   =   ' n o n e ' ;   } 
 	 e l s e   i f   ( d o c u m e n t . a l l )   {   d o c u m e n t . a l l [ ' c n n S e t E d i t i o n C o n t a i n e r ' ] . s t y l e . d i s p l a y   =   ' n o n e ' ;   } 
 } 
 
 f u n c t i o n   c n n S e t E d i t i o n B o x ( )   { 
 
 	 E l e m e n t . u p d a t e ( ' c n n S e t E d i t i o n C o n t a i n e r ' ,   c n n S e t P r e f B o x _ H T M L ) ; 
 	 i f   ( d o c u m e n t . g e t E l e m e n t B y I d )   {   d o c u m e n t . g e t E l e m e n t B y I d ( ' c n n S e t E d i t i o n C o n t a i n e r ' ) . s t y l e . d i s p l a y   =   ' b l o c k ' ;   } 
 	 e l s e   i f   ( d o c u m e n t . a l l )   {   d o c u m e n t . a l l [ ' c n n S e t E d i t i o n C o n t a i n e r ' ] . s t y l e . d i s p l a y   =   ' b l o c k ' ;   } 
 	 i f ( ! c n n U s e r E d _ P r e f )   { 
 	 	 i f ( l o c a t i o n . h o s t n a m e . i n d e x O f ( c n n I n t l _ H o s t )   >   - 1 )   {   C N N _ s e t C o o k i e ( ' S e l e c t e d E d i t i o n ' ,   ' e d i t i o n ' ,   8 5 4 4 0 0 ,   ' / ' ,   ' . t h e t h a o . d e c . v n ' ) ;   } 
 	 	 e l s e   {   C N N _ s e t C o o k i e ( ' S e l e c t e d E d i t i o n ' ,   ' w w w ' ,   8 5 4 4 0 0 ,   ' / ' ,   ' . t h e t h a o . d e c . v n ' ) ;   } 
 	 } 
 
 } 
 
 f u n c t i o n   c n n S e t E d P r e f _ c o o K i e ( )   { 
 	 f o r m _ o b j   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' c n n s e t P r e f _ F o r m ' ) ; 
 	 c o o k i e _ v a l   =   ( f o r m _ o b j . e d i t i o n [ 0 ] . c h e c k e d )   ?   f o r m _ o b j . e d i t i o n [ 0 ] . v a l u e   :   f o r m _ o b j . e d i t i o n [ 1 ] . v a l u e ; 
 	 C N N _ s e t C o o k i e ( ' S e l e c t e d E d i t i o n ' ,   c o o k i e _ v a l ,   8 5 4 4 0 0 ,   ' / ' ,   ' . t h e t h a o . d e c . v n ' ) ; 
 	 c n n S e t P r e f B o x _ C l o s e ( 1 ) ; 
 	 c u r r e n t _ l o c   =   " "   +   d o c u m e n t . l o c a t i o n   +   ' ' ; 
 	 i f ( c o o k i e _ v a l   = =   ' w w w ' )   { 
 	 	 i f ( l o c a t i o n . h o s t n a m e . i n d e x O f ( c n n D o m e s t i c _ H o s t )   <   0 )   { 
 	 	 	 i f ( l o c a t i o n . h o s t n a m e . i n d e x O f ( c n n I n t l _ H o s t )   >   - 1 )   { 
 	 	 	 	 c u r r e n t _ l o c   =   c u r r e n t _ l o c . r e p l a c e ( / ^ h t t p : \ / \ / . + \ . c o m / ,   ' h t t p : / / '   +   c n n D o m e s t i c _ H o s t ) ; 
 	 	 	 	 l o c a t i o n . r e p l a c e ( c u r r e n t _ l o c ) ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 e l s e   { 
 	 	 i f ( l o c a t i o n . h o s t n a m e . i n d e x O f ( c n n I n t l _ H o s t )   <   0 )   { 
 	 	 	 i f ( l o c a t i o n . h o s t n a m e . i n d e x O f ( c n n D o m e s t i c _ H o s t )   >   - 1 )   { 
 	 	 	 	 c u r r e n t _ l o c   =   c u r r e n t _ l o c . r e p l a c e ( / ^ h t t p : \ / \ / . + \ . c o m / ,   ' h t t p : / / '   +   c n n I n t l _ H o s t ) ; 
 	 	 	 	 l o c a t i o n . r e p l a c e ( c u r r e n t _ l o c ) ; 
 	 	 	 } 
 	 	 } 
 	 } 
 } 
 
 / *   e n d   s e t   e d i t i o n   j s 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 / *   m a k e   c n n   y o u r   h o m e   j s 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 v a r   c n n H P b k m r k   =   " h t t p : / / w w w . t h e t h a o . d e c . v n " ; 
 i f ( l o c a t i o n . h o s t n a m e   = =   " h t t p : / / w w w . t h e t h a o . d e c . v n " )   { 
 	 c n n H P b k m r k   =   " h t t p : / / w w w . t h e t h a o . d e c . v n " ; 
 } 
 
 v a r   c n n M a k e H P B o x _ H T M L   =   ' < d i v   i d = " c n n M a k e H P B a n n e r " > < d i v   c l a s s = " c n n W i r e S e B o x " > < d i v   c l a s s = " c n n W i r e S e B o x H e a d e r " > < i m g   s r c = " I m a g e s / c o r n e r _ s e _ t l . g i f "   w i d t h = " 4 "   h e i g h t = " 4 "   a l t = " "   / > < / d i v > < d i v   i d = " c n n B o x S e C o n t e n t " > < a   h r e f = " j a v a s c r i p t : c n n M a k e H P B o x _ C l o s e ( ) ; " > < i m g   c l a s s = " c n n E d i t i o n C l o s e B t n "   s r c = " I m a g e s / s e _ c l o s e _ b t n . g i f "   w i d t h = " 1 4 "   h e i g h t = " 1 4 "   a l t = " "   / > < / a > < f o r m   i d = " c n n s e t P r e f _ F o r m " > < t a b l e   a l i g n = " c e n t e r "   c l a s s = " c n n S e t E d i t i o n "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 " > < t r > < t d   c l a s s = " s e t E d T e x t " > < b > ·t   T h e t h a o . d e c . v n   l à m   t r a n g   c h ç< / b > < / t d > < t d > < 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 = " i f ( d o c u m e n t . a l l )   {   t h i s . s t y l e . b e h a v i o r = \ ' u r l ( # d e f a u l t # h o m e p a g e ) \ ' ; t h i s . s e t H o m e P a g e ( \ ' ' + c n n H P b k m r k + ' \ ' ) ; c n n M a k e H P B o x _ C l o s e ( ) ;   } " > < i m g   s r c = " I m a g e s / s e t _ b t n . g i f "   w i d t h = " 7 0 "   h e i g h t = " 2 3 "   a l t = " "   b o r d e r = " 0 "   c l a s s = " c n n E d i t i o n B o x B t n "   / > < / a > < / t d > < / t r > < / t a b l e > < / f o r m > < / d i v > < d i v   c l a s s = " c n n W i r e S e B o x F o o t e r " > < i m g   s r c = " I m a g e s / c o r n e r _ s e _ b l . g i f "   w i d t h = " 4 "   h e i g h t = " 4 "   a l t = " "   / > < / d i v > < / d i v > < / d i v > ' ; 
 
 f u n c t i o n   c n n M a k e H P B o x _ C l o s e ( )   { 
 	 i f   ( d o c u m e n t . g e t E l e m e n t B y I d )   {   d o c u m e n t . g e t E l e m e n t B y I d ( ' c n n M a k e H P C o n t a i n e r ' ) . s t y l e . d i s p l a y   =   ' n o n e ' ;   } 
 	 e l s e   i f   ( d o c u m e n t . a l l )   {   d o c u m e n t . a l l [ ' c n n M a k e H P C o n t a i n e r ' ] . s t y l e . d i s p l a y   =   ' n o n e ' ;   } 
 } 
 
 f u n c t i o n   c n n M a k e H P B o x ( )   { 
 	 i f ( d o c u m e n t . a l l )   { 
 	 	 E l e m e n t . u p d a t e ( ' c n n M a k e H P C o n t a i n e r ' ,   c n n M a k e H P B o x _ H T M L ) ; 
 	 	 d o c u m e n t . a l l [ ' c n n M a k e H P C o n t a i n e r ' ] . s t y l e . d i s p l a y   =   ' b l o c k ' ; 
 	 } 
 	 e l s e   { 
 	 C N N _ o p e n P o p u p ( ' / f e e d b a c k / h e l p / h o m e p a g e / f r a m e s e t . 2 . 0 . e x c l u d e . h t m l ' , ' 6 2 0 x 3 6 4 ' , ' 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 , w i d t h = 6 2 0 , h e i g h t = 4 3 0 ' ) ; 
 	 } 
 
 } 
 
 / *   e n d   m a k e   c n n   y o u r   h o m e   j s 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 / *   c a r e e r   b u i l d e r   w i d g e t   v a r i a b l e s   j s 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 c n n C B I d s   =   { 
 	 ' m p o t ' :   ' c b c n n _ m p o t ' , 
 	 ' p t ' :   ' c b c n n _ p t ' , 
 	 ' s a l ' :   ' c b c n n _ s a l ' , 
 	 ' c s ' :   ' c b c n n _ c s ' , 
 	 ' m o p t ' :   ' c b c n n _ m o p t ' , 
 	 ' _ 1 6 0 ' :   ' c b c n n 1 6 0 ' 
 } ; 
 
 / * 
 	 c n n S e t C B V a r s   - - 
 	 	 S e t s   t h e   s i t e   i d   l i n k s   a n d   t h e   h i d d e n   s e a r c h   f i e l d   o n   t h e   f o r m . 
 * / 
 f u n c t i o n   c n n S e t C B V a r s ( )   { 
 	 / /   u s i n g   c n n S e c t i o n N a m e   a n d   c n n M o s a i c D e t e c t   t o   d e t e r m i n e   w h a t   s u f f i x   s h o u l d   b e   a f f i x e d . 
 	 v a r   c n n W h i c h S e c t i o n   =   t y p e o f ( c n n S e c t i o n N a m e )   = =   " u n d e f i n e d "   ?   " "   :   c n n S e c t i o n N a m e ; 
 	 v a r   c n n I s M o s a i c   =   t y p e o f ( c n n M o s a i c D e t e c t )   ! =   " u n d e f i n e d "   & &   c n n M o s a i c D e t e c t   = =   " m o s a i c "   ?   t r u e   :   f a l s e ; 
 	 
 	 s w i t c h ( c n n W h i c h S e c t i o n ) 
 	 { 
 	 	 c a s e   " W o r l d " : 	 	 	 c n n S u f f i x   =   c n n I s M o s a i c   ?   " W S P "   :   " W M P " ; 	 b r e a k ; 
 	 	 c a s e   " U S " : 	 	 	 	 c n n S u f f i x   =   c n n I s M o s a i c   ?   " U S S P "   :   " U S M P " ; 	 b r e a k ; 
 	 	 c a s e   " P o l i t i c s " : 	 	 c n n S u f f i x   =   c n n I s M o s a i c   ?   " P S P "   :   " P M P " ; 	 b r e a k ; 
 	 	 c a s e   " E n t e r t a i n m e n t " : 	 c n n S u f f i x   =   c n n I s M o s a i c   ?   " E S P "   :   " E M P " ; 	 b r e a k ; 
 	 	 c a s e   " H e a l t h " : 	 	 	 c n n S u f f i x   =   c n n I s M o s a i c   ?   " H S P "   :   " H M P " ; 	 b r e a k ; 
 	 	 c a s e   " T e c h " : 	 	 	 c n n S u f f i x   =   c n n I s M o s a i c   ?   " "   :   " T M P " ; 	 	 b r e a k ; 
 	 	 c a s e   " L i v i n g " : 	 	 	 c n n S u f f i x   =   c n n I s M o s a i c   ?   " L S P "   :   " L M P " ; 	 b r e a k ; 
 	 	 d e f a u l t : 	 	 	 	 c n n S u f f i x   =   " " ; 
 	 } 
 	 
 	 i d s   =   O b j e c t . c l o n e ( c n n C B I d s ) ; 
 	 f o r ( c n n p r o p   i n   i d s )   
 	 { 
 	 	 i d s [ c n n p r o p ]   + =   c n n S u f f i x ; 
 	 } 
 
 
 	 / /   M a p s   c o d e   i d s   ( h t m l   i d s   i n   c o d e )   t o   s i t e   i d s   
 	 v a r   c n n M a p L n k I d   =   { 
 	 	 " c n n L n k M o p t "   :   i d s . m o p t ,   
 	 	 " c n n L n k P t "   :   i d s . p t ,   
 	 	 " c n n L n k S a l "   :   i d s . s a l ,   
 	 	 " c n n L n k C s "   :   i d s . c s ,   
 	 	 " c n n L n k M o p t 2 "   :   i d s . m o p t   
 	 } ; 
 	 
 	 v a r   c n n M a p F o r m I d   =   { 
 	 	 " c n n L n k S i t e I D "   :   i d s . _ 1 6 0   
 	 } ; 
 	 	 
 	 f o r ( i d   i n   c n n M a p L n k I d ) 
 	 { 
 	 	 i f ( $ ( i d )   ! =   n u l l ) 
 	 	 { 
 	 	 	 $ ( i d ) . h r e f   =   $ ( i d ) . h r e f . r e p l a c e ( / s i t e i d = / ,   " s i t e i d = "   +   c n n M a p L n k I d [ i d ] ) ; 
 	 	 } 
 	 } 
 	 
 	 f o r ( i d   i n   c n n M a p F o r m I d ) 
 	 { 
 	 	 i f ( $ ( i d )   ! =   n u l l ) 
 	 	 { 
 	 	 	 $ ( i d ) . v a l u e   =   c n n M a p F o r m I d [ i d ] ; 
 	 	 } 
 	 } 
 } 
 / *   c a r e e r   b u i l d e r   w i d g e t   v a r i a b l e s   j s 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 v a r   c n n D o c D o m a i n = ' ' ; 
 i f ( l o c a t i o n . h o s t n a m e . i n d e x O f ( ' c n n . c o m ' ) > 0 )   {   c n n D o c D o m a i n = ' c n n . c o m ' ;   } 
 i f ( l o c a t i o n . h o s t n a m e . i n d e x O f ( ' t u r n e r . c o m ' ) > 0 )   {   c n n D o c D o m a i n = ' t u r n e r . c o m ' ;   } 
 i f ( c n n D o c D o m a i n )   {   d o c u m e n t . d o m a i n   =   c n n D o c D o m a i n ;   } 
 
 
