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