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