ÿþ/ *   R a n d o m   B a n n e r   I m a g e   o n L o a d   * /  
 / *   C h a n g e   n u m i m a g e   t o   e q u a l   t h e   n u m b e r   o f   b a n n e r   i n   r o t a t i o n   * /  
 / *   C h a n g e   t h e   a r r a y ( " b a n n e r 1 " ,   " b a n n e r 2 " ,   . . .   )   t o   t h e   l o c a t i o n   o f   t h e   b a n n e r   i m a g e s   * /  
  
 i f   ( d o c u m e n t . g e t E l e m e n t B y I d )   {   w i n d o w . o n l o a d   =   s w a p   } ;  
 f u n c t i o n   s w a p ( )   {  
 v a r   n u m i m a g e s = 6 ;  
 r n d i m g   =   n e w   A r r a y ( " i m a g e s / b a n n e r s / b a n n e r _ a d v . j p g " ,   " i m a g e s / b a n n e r s / b a n n e r _ a b s t r a c t . j p g " ,   " i m a g e s / b a n n e r s / b a n n e r _ r o a d . j p g " ,   " i m a g e s / b a n n e r s / b a n n e r _ c o a s t . j p g " ,   " i m a g e s / b a n n e r s / b a n n e r _ n i g h t . j p g " ,   " i m a g e s / b a n n e r s / b a n n e r _ c i t y . j p g " ) ;    
 x = ( M a t h . f l o o r ( M a t h . r a n d o m ( ) * n u m i m a g e s ) ) ;  
 r a n d o m i m a g e = ( r n d i m g [ x ] ) ;  
 d o c u m e n t . g e t E l e m e n t B y I d ( " b a n n e r " ) . s t y l e . b a c k g r o u n d I m a g e   =   " u r l ( " +   r a n d o m i m a g e   + " ) " ;    
 }  
 
