ÿþf u n c t i o n   t h e R o t a t o r ( )   { 
 	 / / S e t   t h e   o p a c i t y   o f   a l l   i m a g e s   t o   0 
 	 $ ( ' d i v . r o t a t o r   u l   l i ' ) . c s s ( { o p a c i t y :   0 . 0 } ) ; 
 	 
 	 / / G e t   t h e   f i r s t   i m a g e   a n d   d i s p l a y   i t   ( g e t s   s e t   t o   f u l l   o p a c i t y ) 
 	 $ ( ' d i v . r o t a t o r   u l   l i : f i r s t ' ) . c s s ( { o p a c i t y :   1 . 0 } ) ; 
 	 	 
 	 / / C a l l   t h e   r o t a t o r   f u n c t i o n   t o   r u n   t h e   s l i d e s h o w ,   6 0 0 0   =   c h a n g e   t o   n e x t   i m a g e   a f t e r   6   s e c o n d s 
 	 
 	 s e t I n t e r v a l ( ' r o t a t e ( ) ' , 3 0 0 0 ) ; 
 	 
 } 
 
 f u n c t i o n   r o t a t e ( )   { 	 
 	 / / G e t   t h e   f i r s t   i m a g e 
 	 v a r   c u r r e n t   =   ( $ ( ' d i v . r o t a t o r   u l   l i . s h o w ' ) ?     $ ( ' d i v . r o t a t o r   u l   l i . s h o w ' )   :   $ ( ' d i v . r o t a t o r   u l   l i : f i r s t ' ) ) ; 
 
         i f   (   c u r r e n t . l e n g t h   = =   0   )   c u r r e n t   =   $ ( ' d i v . r o t a t o r   u l   l i : f i r s t ' ) ; 
 
 	 / / G e t   n e x t   i m a g e ,   w h e n   i t   r e a c h e s   t h e   e n d ,   r o t a t e   i t   b a c k   t o   t h e   f i r s t   i m a g e 
 	 v a r   n e x t   =   ( ( c u r r e n t . n e x t ( ) . l e n g t h )   ?   ( ( c u r r e n t . n e x t ( ) . h a s C l a s s ( ' s h o w ' ) )   ?   $ ( ' d i v . r o t a t o r   u l   l i : f i r s t ' )   : c u r r e n t . n e x t ( ) )   :   $ ( ' d i v . r o t a t o r   u l   l i : f i r s t ' ) ) ; 
 	 
 	 / / U n - c o m m e n t   t h e   3   l i n e s   b e l o w   t o   g e t   t h e   i m a g e s   i n   r a n d o m   o r d e r 
 	 
 	 / / v a r   s i b s   =   c u r r e n t . s i b l i n g s ( ) ; 
         / / v a r   r n d N u m   =   M a t h . f l o o r ( M a t h . r a n d o m ( )   *   s i b s . l e n g t h   ) ; 
         / / v a r   n e x t   =   $ (   s i b s [   r n d N u m   ]   ) ; 
 	 	 	 
 
 	 / / S e t   t h e   f a d e   i n   e f f e c t   f o r   t h e   n e x t   i m a g e ,   t h e   s h o w   c l a s s   h a s   h i g h e r   z - i n d e x 
 	 n e x t . c s s ( { o p a c i t y :   0 . 0 } ) 
 	 . a d d C l a s s ( ' s h o w ' ) 
 	 . a n i m a t e ( { o p a c i t y :   1 . 0 } ,   5 0 0 ) ; 
 
 	 / / H i d e   t h e   c u r r e n t   i m a g e 
 	 c u r r e n t . a n i m a t e ( { o p a c i t y :   0 . 0 } ,   5 0 0 ) 
 	 . r e m o v e C l a s s ( ' s h o w ' ) ; 
 	 
 } ; 
 
 
 
 $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( )   { 	 	 
 	 / / L o a d   t h e   s l i d e s h o w 
 	 t h e R o t a t o r ( ) ; 
 	 $ ( ' d i v . r o t a t o r ' ) . f a d e I n ( 5 0 0 ) ; 
         $ ( ' d i v . r o t a t o r   u l   l i ' ) . f a d e I n ( 5 0 0 ) ;   / /   t w e e k   f o r   I E 
 } ) ; 
 
