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