ÿþ 
 / /   v a r i a b l e s  
 v a r   i m g L i s t   =   n e w   A r r a y ( ) ;  
 v a r   z I n t e r v a l   =   n u l l ;  
 v a r   i n d i c e = 0 ;  
  
 / /   C h a n g e   O p a c i t ýÿ  d e   l ' i m a g e  
 f u n c t i o n   s e t O p a c i t y ( o b j e t )  
 {  
 	 i f ( o b j e t . x O p a c i t y > . 9 9 )  
 	 {  
 	 	 o b j e t . x O p a c i t y   =   . 9 9 ;  
 	 	 r e t u r n ;  
 	 }  
  
 	 o b j e t . s t y l e . o p a c i t y   =   o b j e t . x O p a c i t y ;  
 	 o b j e t . s t y l e . M o z O p a c i t y   =   o b j e t . x O p a c i t y ;  
 	 o b j e t . s t y l e . f i l t e r   =   ' a l p h a ( o p a c i t y = '   +   ( o b j e t . x O p a c i t y * 1 0 0 )   +   ' ) ' ;  
 }  
  
 / /   F o n c t i o n   d e   c h a n g e m e n t   d e s   i m a g e s   ( r o t a t i o n )  
 f u n c t i o n   r o t a t i o n ( )  
 {  
 	 c O p a c i t y   =   i m g L i s t [ i n d i c e ] . x O p a c i t y ;  
 	 n I n d e x   =   i m g L i s t [ i n d i c e   +   1 ] ?   i n d i c e   +   1   :   0 ;  
 	 n O p a c i t y   =   i m g L i s t [ n I n d e x ] . x O p a c i t y ;  
  
 	 c O p a c i t y - = . 0 5 ;  
 	 n O p a c i t y + = . 0 5 ;  
  
 	 i m g L i s t [ n I n d e x ] . s t y l e . d i s p l a y   =   ' b l o c k ' ;  
 	 i m g L i s t [ i n d i c e ] . x O p a c i t y   =   c O p a c i t y ;  
 	 i m g L i s t [ n I n d e x ] . x O p a c i t y   =   n O p a c i t y ;  
  
 	 s e t O p a c i t y ( i m g L i s t [ i n d i c e ] ) ;  
 	 s e t O p a c i t y ( i m g L i s t [ n I n d e x ] ) ;  
  
 	 i f ( c O p a c i t y < = 0 )  
 	 {  
 	 	 i m g L i s t [ i n d i c e ] . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 	 	 i n d i c e   =   n I n d e x ;  
 	 	 s e t T i m e o u t ( r o t a t i o n ,   8 0 0 0 ) ;  
 	 }  
 	 e l s e  
 	 {  
 	 	 s e t T i m e o u t ( r o t a t i o n ,   7 0 ) ;  
 	 }  
 }  
  
 / /   I n i t i a l i s a t i o n   d u   r o t a t i o n  
 f u n c t i o n   r o t a t i o n I n i t ( e l e m e n t I d )  
 {  
 	 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 . c r e a t e E l e m e n t )  
 	 {  
 	 	 i m g L i s t   =   d o c u m e n t . g e t E l e m e n t B y I d (   e l e m e n t 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 ' ) ;  
 	 	  
 	 	 f o r ( i = 1 ; i < i m g L i s t . l e n g t h ; i + + )    
 	 	 {   i m g L i s t [ i ] . x O p a c i t y   =   0 ;   }  
 	 	  
 	 	 i m g L i s t [ 0 ] . s t y l e . d i s p l a y   =   ' b l o c k ' ;  
 	 	 i m g L i s t [ 0 ] . x O p a c i t y   =   . 9 9 ;  
  
 	 	 s e t T i m e o u t ( r o t a t i o n ,   8 0 0 0 ) ;  
 	 } ;  
 } 
