ÿþv a r   i T S T i m e r 1 = 0 ;  
 v a r   i T S C o u n t 1 , i T S C u r 1 , i T S F a d i n g 1 , i T S F a s t M o v e 1 = 0 ;  
 v a r   i F a d e D e l a y 1 = 1 5 0 ;  
 v a r   S a u 1 1   =   ' . . / h i m g / S a u 1 1 . g i f ' ;  
 v a r   T r u o c 1 1   =   ' . . / h i m g / T r u o c 1 1 . g i f ' ;  
 v a r   S a u 1 2   =   ' . . / h i m g / S a u 1 2 . g i f ' ;  
 v a r   T r u o c 1 2   = ' . . / h i m g / T r u o c 1 2 . g i f ' ;  
 v a r   i m g _ f o l d e r 1   =   ' h t t p : / / w w w . c p c . v n / t i n t u c / f i l e h t m l s / ' ;  
 v a r   a r I t e m T S 1   =   n e w   A r r a y ( ) ;  
 v a r   i T S S a u 1 1 = 0 , i T S T r u o c 1 1 = 0 ;  
  
  
   f u n c t i o n   L o a d _ s l i d e s u b ( h i n h 1 ,   t d 1 ,   t t 1 ,   l i n k 1 ,   h i n h 2 ,   t d 2 ,   t t 2 ,   l i n k 2 ,   h i n h 3 ,   t d 3 ,   t t 3 ,   l i n k 3 ,   h i n h 4 ,   t d 4 ,   t t 4 ,   l i n k 4 ,   h i n h 5 ,   t d 5 ,   t t 5 ,   l i n k 5 ,   i ,   j )  
 {  
   	           a r I t e m T S 1 [ i ]   =   n e w   A r r a y ( 2 2 ) ;  
                   a r I t e m T S 1 [ i ] [ 0 ]   =   " 1 0 0 0 1 1 9 9 9 9 " ;  
                   a r I t e m T S 1 [ i ] [ 1 ]   =   i m g _ f o l d e r 1 ;  
                   a r I t e m T S 1 [ i ] [ 2 ]   =   t d 1 ;  
                   a r I t e m T S 1 [ i ] [ 3 ]   =   t t 1 ;  
                   a r I t e m T S 1 [ i ] [ 4 ]   =   h i n h 1 ;  
                   a r I t e m T S 1 [ i ] [ 5 ]   =   l i n k 1 ;  
                    
                   a r I t e m T S 1 [ i ] [ 6 ]   =   t d 2 ;  
                   a r I t e m T S 1 [ i ] [ 7 ]   =   t t 2 ;  
                   a r I t e m T S 1 [ i ] [ 8 ]   =   h i n h 2 ;  
                   a r I t e m T S 1 [ i ] [ 9 ]   =   l i n k 2 ;                  
  
                   a r I t e m T S 1 [ i ] [ 1 0 ]   =   t d 3 ;  
                   a r I t e m T S 1 [ i ] [ 1 1 ]   =   t t 3 ;  
                   a r I t e m T S 1 [ i ] [ 1 2 ]   =   h i n h 3 ;  
                   a r I t e m T S 1 [ i ] [ 1 3 ]   =   l i n k 3 ;            
  
                   a r I t e m T S 1 [ i ] [ 1 4 ]   =   t d 4 ;  
                   a r I t e m T S 1 [ i ] [ 1 5 ]   =   t t 4 ;  
                   a r I t e m T S 1 [ i ] [ 1 6 ]   =   h i n h 4 ;  
                   a r I t e m T S 1 [ i ] [ 1 7 ]   =   l i n k 4 ;  
  
                   a r I t e m T S 1 [ i ] [ 1 8 ]   =   t d 5 ;  
                   a r I t e m T S 1 [ i ] [ 1 9 ]   =   t t 5 ;  
                   a r I t e m T S 1 [ i ] [ 2 0 ]   =   h i n h 5 ;  
                   a r I t e m T S 1 [ i ] [ 2 1 ]   =   l i n k 5 ;  
  
                   i f   ( j = = 1 ) {  
                                           s h o w s l i d e i t e m ( a r I t e m T S 1 ,   0 ) ;  
                                     }  
   }  
    
 f u n c t i o n   s h o w s l i d e i t e m ( a r I t e m T S 1 )   {  
         i T S C o u n t 1   =   a r I t e m T S 1 . l e n g t h   -   1 ;  
 	 v a r   s H T M L = ' ' ;  
 	 s H T M L = s H T M L . c o n c a t ( ' < d i v   s t y l e = " p o s i t i o n : r e l a t i v e ; w i d t h : 6 5 5 p x ; h e i g h t : 1 4 0 p x ; " > ' ) ;  
 	 s H T M L = s H T M L . c o n c a t ( ' 	 < d i v   s t y l e = " l e f t : 0 p x ; t o p : 0 p x ; w i d t h : 6 5 5 p x ; h e i g h t : 2 p x ; "   c l a s s = " H o m e T o p S t o r y B o r d e r " > < / d i v > ' ) ;  
 	 s H T M L = s H T M L . c o n c a t ( ' 	 < d i v   s t y l e = " l e f t : 0 p x ; t o p : 1 2 8 p x ; w i d t h : 6 5 5 p x ; h e i g h t : 2 p x ; "   c l a s s = " H o m e T o p S t o r y B o r d e r " > < / d i v > ' ) ;  
 	 s H T M L = s H T M L . c o n c a t ( ' 	 < d i v   s t y l e = " l e f t : 0 p x ; t o p : 0 p x ; w i d t h : 2 p x ; h e i g h t : 1 2 9 p x ; "   c l a s s = " H o m e T o p S t o r y B o r d e r " > < / d i v > ' ) ;  
 	 s H T M L = s H T M L . c o n c a t ( ' 	 < d i v   s t y l e = " l e f t : 6 5 5 p x ; t o p : 0 p x ; w i d t h : 2 p x ; h e i g h t : 1 2 9 p x ; "   c l a s s = " H o m e T o p S t o r y B o r d e r " > < / d i v > ' ) ;  
 	  
 	 f o r   ( v a r   i = 0 ; i < = i T S C o u n t 1 ; i + + ) {  
 	 	 / / H i n h   a n h  
 	 	 s H T M L = s H T M L . c o n c a t ( ' 	 < d i v   i d = " d i v T o p 1 ' ) . c o n c a t ( i ) . c o n c a t ( ' "   o n m o u s e m o v e = " c l e a r t o p s t o r y c o u n t e r 1 ( ) ; "   s t y l e = " o v e r f l o w : h i d d e n ; p o s i t i o n : a b s o l u t e ; ' ) . c o n c a t ( i i f ( i = = 0 , ' l e f t : 0 p x ' , ' l e f t : - 1 0 0 0 p x ' ) ) . c o n c a t ( ' ; t o p : 0 p x ; w i d t h : 6 5 5 p x ; h e i g h t : 1 4 0 p x ; " > ' ) ;  
 	         s H T M L   =   s H T M L . c o n c a t ( ' 	 < d i v   s t y l e = " p o s i t i o n : r e l a t i v e ; w i d t h : 6 5 5 p x ; h e i g h t : 1 0 0 p x ;   t o p : 1 0 p x ;   l e f t : 2 5 p x " > ' ) ;  
 	 	 / /   a n h   1  
 	         s H T M L   =   s H T M L . c o n c a t ( ' < d i v   s t y l e = " p o s i t i o n : a b s o l u t e ; l e f t : 0 p x " > < a   t i t l e = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 2 ] ) . c o n c a t ( ' "   h r e f = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 5 ] ) . c o n c a t ( ' " > < i m g   s r c = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 ] ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 4 ] ) . c o n c a t ( ' "   a l t = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 2 ] ) . c o n c a t ( ' "   w i d t h = " 1 0 5 "   h e i g h t = " 6 5 "   s t y l e = " b o r d e r :   d o u b l e   3 p x   # c d c d c d "   / > < / a > < / d i v > ' ) ;  
 	         / /   a n h   2  
 	         s H T M L   =   s H T M L . c o n c a t ( ' < d i v   s t y l e = " p o s i t i o n : a b s o l u t e ; l e f t : 1 2 5 p x " > < a   t i t l e = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 6 ] ) . c o n c a t ( ' "   h r e f = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 9 ] ) . c o n c a t ( ' " > < i m g   s r c = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 ] ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 8 ] ) . c o n c a t ( ' "   a l t = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 6 ] ) . c o n c a t ( ' "   w i d t h = " 1 0 5 "   h e i g h t = " 6 5 "   s t y l e = " b o r d e r :   d o u b l e   3 p x   # c d c d c d "   / > < / a > < / d i v > ' ) ;  
     	         / /   a n h   3  
 	         s H T M L   =   s H T M L . c o n c a t ( ' < d i v   s t y l e = " p o s i t i o n : a b s o l u t e ; l e f t : 2 5 0 p x " > < a   t i t l e = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 0 ] ) . c o n c a t ( ' "   h r e f = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 3 ] ) . c o n c a t ( ' " > < i m g   s r c = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 ] ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 2 ] ) . c o n c a t ( ' "   a l t = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 0 ] ) . c o n c a t ( ' "   w i d t h = " 1 0 5 "   h e i g h t = " 6 5 "   s t y l e = " b o r d e r :   d o u b l e   3 p x   # c d c d c d "   / > < / a > < / d i v > ' ) ;  
 	         / /   a n h   4  
 	         s H T M L   =   s H T M L . c o n c a t ( ' < d i v   s t y l e = " p o s i t i o n : a b s o l u t e ; l e f t : 3 7 5 p x " > < a   t i t l e = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 4 ] ) . c o n c a t ( ' "   h r e f = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 7 ] ) . c o n c a t ( ' " > < i m g   s r c = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 ] ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 6 ] ) . c o n c a t ( ' "   a l t = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 4 ] ) . c o n c a t ( ' "   w i d t h = " 1 0 5 "   h e i g h t = " 6 5 "   s t y l e = " b o r d e r :   d o u b l e   3 p x   # c d c d c d "   / > < / a > < / d i v > ' ) ;  
 	         / /   a n h   5  
 	         s H T M L   =   s H T M L . c o n c a t ( ' < d i v   s t y l e = " p o s i t i o n : a b s o l u t e ; l e f t : 5 0 0 p x " > < a   t i t l e = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 8 ] ) . c o n c a t ( ' "   h r e f = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 2 1 ] ) . c o n c a t ( ' " > < i m g   s r c = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 ] ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 2 0 ] ) . c o n c a t ( ' "   a l t = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 8 ] ) . c o n c a t ( ' "   w i d t h = " 1 0 5 "   h e i g h t = " 6 5 "   s t y l e = " b o r d e r :   d o u b l e   3 p x   # c d c d c d "   / > < / a > < / d i v > ' ) ;  
 	         s H T M L   =   s H T M L . c o n c a t ( ' < / d i v > ' ) ; 	  
  
     	          
   	 	 / / T i e u   d e  
 	 	 s H T M L = s H T M L . c o n c a t ( ' 	 < d i v   i d = " d i v T o p L a y e r 1 ' ) . c o n c a t ( i ) . c o n c a t ( ' "   o n m o u s e m o v e = " c l e a r t o p s t o r y c o u n t e r 1 ( ) ; "   s t y l e = " ' ) . c o n c a t ( i i f ( i = = 0 , ' l e f t : 0 p x ' , ' l e f t : - 1 0 0 0 p x ' ) ) . c o n c a t ( ' ; t o p : 0 p x ; w i d t h : 0 p x ; h e i g h t : 0 p x ; "   c l a s s = " H o m e T o p S t o r y C o l o r L a y e r 1 " > < / d i v > ' ) ;  
 	 	 s H T M L = s H T M L . c o n c a t ( ' 	 < d i v   i d = " d i v T o p T i t l e 1 ' ) . c o n c a t ( i ) . c o n c a t ( ' "   o n m o u s e m o v e = " c l e a r t o p s t o r y c o u n t e r 1 ( ) ; "   s t y l e = " ' ) . c o n c a t ( i i f ( i = = 0 , ' l e f t : 0 p x ' , ' l e f t : - 1 0 0 0 p x ' ) ) . c o n c a t ( ' ; t o p : 0 p x ; w i d t h : 6 5 5 p x ; h e i g h t : 1 3 0 p x ; "   c l a s s = " H o m e T o p S t o r y C o l o r L a y e r C o n t e n t 1 " > ' ) ;  
                 / / t i e u   d e   1  
 	 	 s H T M L = s H T M L . c o n c a t ( ' 	 < d i v   s t y l e = " l e f t : 2 5 p x ; t o p : 8 8 p x ; w i d t h : 1 0 5 p x ; h e i g h t : 2 2 p x ; "   t i t l e = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 2 ] ) . c o n c a t ( ' "   c l a s s = " T i t l e 1 "   o n c l i c k = " w i n d o w . l o c a t i o n = \ ' ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 5 ] ) . c o n c a t ( ' \ ' " > ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 2 ] ) . c o n c a t ( ' < / d i v > ' ) ; 	  
                 / / t i e u d e   2  
 	 	 s H T M L = s H T M L . c o n c a t ( ' 	 < d i v   s t y l e = " l e f t : 1 4 8 p x ; t o p : 8 8 p x ; w i d t h : 1 0 5 p x ; h e i g h t : 2 2 p x ; "   t i t l e = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 6 ] ) . c o n c a t ( ' "   c l a s s = " T i t l e 1 "   o n c l i c k = " w i n d o w . l o c a t i o n = \ ' ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 9 ] ) . c o n c a t ( ' \ ' " > ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 6 ] ) . c o n c a t ( ' < / d i v > ' ) ; 	  
                 / / t i e u d e   3  
 	 	 s H T M L = s H T M L . c o n c a t ( ' 	 < d i v   s t y l e = " l e f t : 2 7 3 p x ; t o p : 8 8 p x ; w i d t h : 1 0 5 p x ; h e i g h t : 2 2 p x ; "   t i t l e = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 0 ] ) . c o n c a t ( ' "   c l a s s = " T i t l e 1 "   o n c l i c k = " w i n d o w . l o c a t i o n = \ ' ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 3 ] ) . c o n c a t ( ' \ ' " > ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 0 ] ) . c o n c a t ( ' < / d i v > ' ) ; 	  
                 / / t i e u d e   4  
 	 	 s H T M L = s H T M L . c o n c a t ( ' 	 < d i v   s t y l e = " l e f t : 3 9 8 p x ; t o p : 8 8 p x ; w i d t h : 1 0 5 p x ; h e i g h t : 2 2 p x ; "   t i t l e = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 4 ] ) . c o n c a t ( ' "   c l a s s = " T i t l e 1 "   o n c l i c k = " w i n d o w . l o c a t i o n = \ ' ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 7 ] ) . c o n c a t ( ' \ ' " > ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 4 ] ) . c o n c a t ( ' < / d i v > ' ) ; 	  
                 / / t i e u d e   5  
 	 	 s H T M L = s H T M L . c o n c a t ( ' 	 < d i v   s t y l e = " l e f t : 5 2 5 p x ; t o p : 8 8 p x ; w i d t h : 1 1 0 p x ; h e i g h t : 2 2 p x ; "   t i t l e = " ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 8 ] ) . c o n c a t ( ' "   c l a s s = " T i t l e 1 "   o n c l i c k = " w i n d o w . l o c a t i o n = \ ' ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 2 1 ] ) . c o n c a t ( ' \ ' " > ' ) . c o n c a t ( a r I t e m T S 1 [ i ] [ 1 8 ] ) . c o n c a t ( ' < / d i v > ' ) ; 	  
 	 	  
 	 	 s H T M L = s H T M L . c o n c a t ( ' 	 < / d i v > ' ) ;  
 	 	 s H T M L = s H T M L . c o n c a t ( ' 	 < / d i v > ' ) ;  
 	 }  
 	  
 	 s H T M L = s H T M L . c o n c a t ( ' < d i v   s t y l e = " l e f t : 0 p x ; t o p : 2 p x ; h e i g h t : 1 3 8 p x ;   v a l i g n :   c e n t e r "   c l a s s = " H o m e T o p S t o r y C o l o r L a y e r S u b I m a g e " > ' ) ;  
 	 s H T M L   =   s H T M L . c o n c a t ( ' < i m g   i d = " i m g T S T r u o c 1 1 "   s r c = " ' +   T r u o c 1 2   + ' "   h s p a c e = " 2 "   v s p a c e = " 0 "   h e i g h t =   " 1 2 5 p x "   o n m o u s e o v e r = " i T S T r u o c 1 1 = 1 ; t h i s . s r c = \ ' ' +   T r u o c 1 1   + ' \ ' "   o n m o u s e o u t = " i T S T r u o c 1 1 = 0 ; t h i s . s r c = \ ' ' +   T r u o c 1 2   + ' \ ' "   s t y l e = " c u r s o r : p o i n t e r "   o n c l i c k = " c h a n g e t o p s t o r y 1 ( - 1 , f a l s e ) ; " > ' ) ;  
 	 s H T M L = s H T M L . c o n c a t ( ' < / d i v > ' ) ;  
 	 s H T M L = s H T M L . c o n c a t ( ' < d i v   s t y l e = " l e f t : 6 3 7 p x ; t o p : 2 p x ; h e i g h t : 1 3 8 p x ;   v a l i g n :   c e n t e r "   c l a s s = " H o m e T o p S t o r y C o l o r L a y e r S u b I m a g e " > ' ) ;  
 	 s H T M L   =   s H T M L . c o n c a t ( ' < i m g   i d = " i m g T S S a u 1 1 "   s r c = " ' +   S a u 1 2   + ' "   h s p a c e = " 2 "   v s p a c e = " 0 "   h e i g h t =   " 1 2 5 p x "   o n m o u s e o v e r = " i T S S a u 1 1 = 1 ; t h i s . s r c = \ ' ' +   S a u 1 1   + ' \ ' "   o n m o u s e o u t = " i T S S a u 1 1 = 0 ; i f   ( ! i T S F a d i n g 1 )   t h i s . s r c = \ ' ' +   S a u 1 2   + ' \ ' "   s t y l e = " c u r s o r : p o i n t e r "   o n c l i c k = " c h a n g e t o p s t o r y 1 ( 1 , f a l s e ) ; " > ' ) ;  
 	 s H T M L = s H T M L . c o n c a t ( ' < / d i v > ' ) ;  
 	 s H T M L = s H T M L . c o n c a t ( ' < / d i v > ' ) ;  
 	 g m o b j ( " s l i d e _ s u b " ) . i n n e r H T M L = s H T M L ;  
 	 i T S C u r 1 = 0 ;  
 	 s e t I n t e r v a l ( f u n c t i o n ( ) { t o p s t o r y c o u n t e r 1 ( ) ; } , 1 0 0 )  
 }  
  
 f u n c t i o n   c h a n g e t o p s t o r y 1 ( d i r e c t i o n , f a d e ) {  
 	 v a r   i T o p ,   i B o t ;  
 	 v a r   o T o p ,   o B o t ,   o T o p L a y e r ,   o B o t L a y e r ,   o T o p T i t l e ,   o B o t T i t l e ;  
 	 i T o p = i T S C u r 1 ;  
 	 i B o t = i T o p + d i r e c t i o n ;  
 	 i f   ( i B o t < 0 )   i B o t = i T S C o u n t 1 ;  
 	 i f   ( i B o t > i T S C o u n t 1 )   i B o t = 0 ;  
 	 o T o p   =   ' d i v T o p 1 ' + i T o p ;  
 	 o B o t   =   ' d i v T o p 1 ' + i B o t ;  
 	 o T o p L a y e r   =   ' d i v T o p L a y e r 1 ' + i T o p ;  
 	 o B o t L a y e r   =   ' d i v T o p L a y e r 1 ' + i B o t ;  
 	 o T o p T i t l e   =   ' d i v T o p T i t l e 1 ' + i T o p ;  
 	 o B o t T i t l e   =   ' d i v T o p T i t l e 1 ' + i B o t ;  
 	 i f   ( i T S F a d i n g 1 = = 1 ) {  
 	 	 g m o b j ( ' d i v T o p 1 ' + ( i T o p + 1 ) ) . s t y l e . l e f t = ' - 1 0 0 0 p x ' ;  
 	 	 g m o b j ( ' d i v T o p L a y e r 1 ' + ( i T o p + 1 ) ) . s t y l e . l e f t = ' - 1 0 0 0 p x ' ;  
 	 	 g m o b j ( ' d i v T o p T i t l e 1 ' + ( i T o p + 1 ) ) . s t y l e . l e f t = ' - 1 0 0 0 p x ' ;  
 	 	 o u t d i r e c t i o n i m a g e 1 ( ) ;  
 	 	 i T S F a d i n g 1 = 0 ;  
 	 }  
 	 i T S T i m e r 1 = 0 ;  
 	 i f   ( ! f a d e ) {  
 	 	 i T S F a s t M o v e 1 = 1 ;  
 	 	 c h a n g e O p a c 1 ( 1 0 0 , o B o t ) ;  
 	 	 c h a n g e O p a c 1 ( 4 0 , o B o t L a y e r ) ;  
 	 	 c h a n g e O p a c 1 ( 1 0 0 , o B o t T i t l e ) ;  
 	 	 g m o b j ( o T o p ) . s t y l e . z I n d e x = 3 3 ;  
 	 	 g m o b j ( o B o t ) . s t y l e . z I n d e x = 3 4 ;  
 	 	 g m o b j ( o B o t ) . s t y l e . l e f t = ' 0 p x ' ;  
 	 	 g m o b j ( o T o p ) . s t y l e . l e f t = ' - 1 0 0 0 p x ' ;  
 	 	 g m o b j ( o B o t L a y e r ) . s t y l e . l e f t = ' 0 p x ' ;  
 	 	 g m o b j ( o T o p L a y e r ) . s t y l e . l e f t = ' - 1 0 0 0 p x ' ;  
 	 	 g m o b j ( o B o t T i t l e ) . s t y l e . l e f t = ' 0 p x ' ;  
 	 	 g m o b j ( o T o p T i t l e ) . s t y l e . l e f t = ' - 1 0 0 0 p x ' ;  
 	 	 i T S F a d i n g 1 = 0 ;  
 	 	 i T S C u r 1 = i B o t ;  
 	 }  
 	 e l s e {  
 	 	 i T S F a s t M o v e 1 = 0 ;  
 	 	 c h a n g e O p a c 1 ( 1 0 0 , o B o t ) ;  
 	 	 c h a n g e O p a c 1 ( 0 , o B o t L a y e r ) ;  
 	 	 c h a n g e O p a c 1 ( 0 , o B o t T i t l e ) ;  
 	 	 g m o b j ( o T o p ) . s t y l e . z I n d e x = 3 4 ;  
 	 	 g m o b j ( o B o t ) . s t y l e . z I n d e x = 3 3 ;  
 	 	 g m o b j ( o B o t ) . s t y l e . l e f t = ' 0 p x ' ;  
 	 	 g m o b j ( o B o t L a y e r ) . s t y l e . l e f t = ' 0 p x ' ;  
 	 	 g m o b j ( o B o t T i t l e ) . s t y l e . l e f t = ' 0 p x ' ;  
 	 	 i T S F a d i n g 1 = 1 ;  
 	 	 c h a n g i n g d i r e c t i o n i m a g e 1 ( d i r e c t i o n ) ;  
 	 	 c h a n g i n g t o p s t o r y 1 ( i T o p , i B o t , 0 , 1 0 0 ) ;  
 	 }  
 }  
  
 f u n c t i o n   c h a n g i n g t o p s t o r y 1 ( i T o p , i B o t , i S t e p , i C u r O p a c ) {  
 	 v a r   o T o p ,   o B o t ,   o T o p L a y e r ,   o B o t L a y e r ,   o T o p T i t l e ,   o B o t T i t l e ;  
 	 o T o p   =   ' d i v T o p 1 ' + i T o p ;  
 	 o B o t   =   ' d i v T o p 1 ' + i B o t ;  
 	 o T o p L a y e r   =   ' d i v T o p L a y e r 1 ' + i T o p ;  
 	 o B o t L a y e r   =   ' d i v T o p L a y e r 1 ' + i B o t ;  
 	 o T o p T i t l e   =   ' d i v T o p T i t l e 1 ' + i T o p ;  
 	 o B o t T i t l e   =   ' d i v T o p T i t l e 1 ' + i B o t ;  
 	 i f   ( i T S F a d i n g 1 = = 1 ) {  
 	 	 i f   ( i S t e p = = 0 ) {  
 	 	 	 i f   ( i C u r O p a c > = 0 ) {  
 	 	 	 	 c h a n g e O p a c 1 ( i C u r O p a c , o T o p T i t l e ) ;  
 	 	 	 	 c h a n g e O p a c 1 ( i C u r O p a c * 4 0 / 1 0 0 , o T o p L a y e r ) ;  
 	 	 	 	 i C u r O p a c - = 5 ;  
 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { c h a n g i n g t o p s t o r y 1 ( i T o p , i B o t , 0 , i C u r O p a c ) } , i F a d e D e l a y 1 ) ;  
 	 	 	 }  
 	 	 	 e l s e {  
 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { c h a n g i n g t o p s t o r y 1 ( i T o p , i B o t , 1 , 1 0 0 ) } , 2 0 0 0 ) ;  
 	 	 	 }  
 	 	 }  
 	 	 e l s e   i f   ( i S t e p = = 1 ) {  
 	 	 	 i f   ( i C u r O p a c > = 0 ) {  
 	 	 	 	 c h a n g e O p a c 1 ( i C u r O p a c , o T o p ) ;  
 	 	 	 	 i C u r O p a c - = 5 ;  
 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { c h a n g i n g t o p s t o r y 1 ( i T o p , i B o t , 1 , i C u r O p a c ) } , i F a d e D e l a y 1 ) ;  
 	 	 	 }  
 	 	 	 e l s e {  
 	 	 	 	 i T S C u r 1 = i B o t ;  
 	 	 	 	 g m o b j ( o T o p ) . s t y l e . l e f t = ' - 1 0 0 0 p x ' ;  
 	 	 	 	 g m o b j ( o T o p L a y e r ) . s t y l e . l e f t = ' - 1 0 0 0 p x ' ;  
 	 	 	 	 g m o b j ( o T o p T i t l e ) . s t y l e . l e f t = ' - 1 0 0 0 p x ' ;  
 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { c h a n g i n g t o p s t o r y 1 ( i T o p , i B o t , 2 , 0 ) } , 1 0 0 ) ;  
 	 	 	 }  
 	 	 }  
 	 	 e l s e   i f   ( i S t e p = = 2 ) {  
 	 	 	 i f   ( i C u r O p a c < = 1 0 0 ) {  
 	 	 	 	 c h a n g e O p a c 1 ( i C u r O p a c , o B o t T i t l e ) ;  
 	 	 	 	 c h a n g e O p a c 1 ( i C u r O p a c * 4 0 / 1 0 0 , o B o t L a y e r ) ;  
 	 	 	 	 i C u r O p a c + = 5 ;  
 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { c h a n g i n g t o p s t o r y 1 ( i T o p , i B o t , 2 , i C u r O p a c ) } , i F a d e D e l a y 1 ) ;  
 	 	 	 }  
 	 	 	 e l s e {  
 	 	 	 	 o u t d i r e c t i o n i m a g e 1 ( ) ;  
 	 	 	 	 i T S F a d i n g 1 = 0 ;  
 	 	 	 	 i T S T i m e r 1 = 0 ;  
 	 	 	 }  
 	 	 }  
 	 }  
 	 e l s e   i f   ( i S t e p < 2   & &   i T S F a s t M o v e 1 = = 0 )   {  
 	 	 g m o b j ( o B o t ) . s t y l e . l e f t = ' - 1 0 0 0 p x ' ;  
 	 	 g m o b j ( o B o t L a y e r ) . s t y l e . l e f t = ' - 1 0 0 0 p x ' ;  
 	 	 g m o b j ( o B o t T i t l e ) . s t y l e . l e f t = ' - 1 0 0 0 p x ' ;  
 	 	 o u t d i r e c t i o n i m a g e 1 ( ) ;  
 	 	 i T S F a d i n g 1 = 0 ;  
 	 	 i T S T i m e r 1 = 0 ;  
 	 }  
 }  
  
 f u n c t i o n   c h a n g i n g d i r e c t i o n i m a g e 1 ( d i r e c t i o n ) {  
         i f   ( d i r e c t i o n   >   0 )   g m o b j ( ' i T S S a u 1 1 ' ) . s r c   =   S a u 1 1 ;  
 	 e l s e   g m o b j ( ' i m g T S T r u o c 1 1 ' ) . s r c   = T r u o c 1 1 ;  
 }  
  
 f u n c t i o n   o u t d i r e c t i o n i m a g e 1 ( ) {  
         i f   ( i T S S a u 1 1   = =   0 )   g m o b j ( ' i m g T S S a u 1 1 ' ) . s r c   =   S a u 1 2 ;  
 	 i f   ( i T S T r u o c 1 1 = = 0 )   g m o b j ( ' i m g T S T r u o c 1 1 ' ) . s r c = T r u o c 1 2 ;  
 }  
  
 f u n c t i o n   t o p s t o r y c o u n t e r 1 ( ) {  
 	 i T S T i m e r 1 + + ;  
 	 i f   ( i T S T i m e r 1 > 1 5 0 )   {  
 	 	 i T S T i m e r 1 = 0 ;  
 	 	 / / c h a n g e t o p s t o r y 1 ( 1 , t r u e ) ;  
 	 	 c h a n g e t o p s t o r y 1 ( 1 , f a l s e ) ;  
 	 }  
 }  
  
 f u n c t i o n   c l e a r t o p s t o r y c o u n t e r 1 ( ) {  
 	 c h a n g e O p a c 1 ( 1 0 0 , ' d i v T o p 1 ' + i T S C u r 1 ) ;  
 	 c h a n g e O p a c 1 ( 4 0 , ' d i v T o p L a y e r 1 ' + i T S C u r 1 ) ;  
 	 c h a n g e O p a c 1 ( 1 0 0 , ' d i v T o p T i t l e 1 ' + i T S C u r 1 ) ;  
 	 i T S F a d i n g 1 = 0 ;  
 	 i T S T i m e r 1 = 0 ;  
 }  
  
 f u n c t i o n   c h a n g e O p a c 1 ( o p a c i t y ,   i d )   {  
 	 / / g m o b j ( i d ) . s t y l e . o p a c i t y   =   ( o p a c i t y / 1 0 0 ) ;  
 	 / / g m o b j ( i d ) . s t y l e . M o z O p a c i t y   =   ( o p a c i t y / 1 0 0 ) ;  
 	 / / g m o b j ( i d ) . s t y l e . K h t m l O p a c i t y   =   ( o p a c i t y / 1 0 0 ) ;  
 	 / / g m o b j ( i d ) . s t y l e . f i l t e r   =   " a l p h a ( o p a c i t y = "   +   o p a c i t y   +   " ) " ;  
 }  
 
