v a r   t h e I m a g e s   =   n e w   A r r a y ( ) 
 
 
 
 / / R a n d o m - l o a d i n g   i m a g e s 
 
 t h e I m a g e s [ 0 ]   =   ' . . / i m a g e s / s h a r e / s _ b _ 0 0 . j p g ' 
 
 t h e I m a g e s [ 1 ]   =   ' . . / i m a g e s / s h a r e / s _ b _ 0 1 . j p g ' 
 
 t h e I m a g e s [ 2 ]   =   ' . . / i m a g e s / s h a r e / s _ b _ 0 2 . j p g ' 
 
 t h e I m a g e s [ 3 ]   =   ' . . / i m a g e s / s h a r e / s _ b _ 0 3 . j p g ' 
 
 t h e I m a g e s [ 4 ]   =   ' . . / i m a g e s / s h a r e / s _ b _ 0 4 . j p g ' 
 
 t h e I m a g e s [ 5 ]   =   ' . . / i m a g e s / s h a r e / s _ b _ 0 5 . j p g ' 
 
 t h e I m a g e s [ 6 ]   =   ' . . / i m a g e s / s h a r e / s _ b _ 0 6 . j p g ' 
 
 t h e I m a g e s [ 7 ]   =   ' . . / i m a g e s / s h a r e / s _ b _ 0 7 . j p g ' 
 
 t h e I m a g e s [ 8 ]   =   ' . . / i m a g e s / s h a r e / s _ b _ 0 8 . j p g ' 
 
 t h e I m a g e s [ 9 ]   =   ' . . / i m a g e s / s h a r e / s _ b _ 0 9 . j p g ' 
 
 
 
 v a r   j   =   0 
 
 v a r   p   =   t h e I m a g e s . l e n g t h ; 
 
 v a r   p r e B u f f e r   =   n e w   A r r a y ( ) 
 
 
 
 f o r   ( i   =   0 ;   i   <   p ;   i + + ) { 
 
 p r e B u f f e r [ i ]   =   n e w   I m a g e ( ) 
 
 p r e B u f f e r [ i ] . s r c   =   t h e I m a g e s [ i ] 
 
 } 
 
 
 
 v a r   w h i c h I m a g e   =   M a t h . r o u n d ( M a t h . r a n d o m ( ) * ( p - 1 ) ) ; 
 
 
 
 f u n c t i o n   s h o w I m a g e ( ) { 
 
 i f ( w h i c h I m a g e = = 0 ) { 
 
 d o c u m e n t . w r i t e ( ' < i m g   s r c = " ' + t h e I m a g e s [ w h i c h I m a g e ] + ' "   b o r d e r = 0   w i d t h = 2 1 1   h e i g h t = 1 7 2 > ' ) ; 
 
 } 
 
 e l s e   i f ( w h i c h I m a g e = = 1 ) { 
 
 d o c u m e n t . w r i t e ( ' < i m g   s r c = " ' + t h e I m a g e s [ w h i c h I m a g e ] + ' "   b o r d e r = 0   w i d t h = 2 1 1   h e i g h t = 1 7 2 > ' ) ; 
 
 } 
 
 e l s e   i f ( w h i c h I m a g e = = 2 ) { 
 
 d o c u m e n t . w r i t e ( ' < i m g   s r c = " ' + t h e I m a g e s [ w h i c h I m a g e ] + ' "   b o r d e r = 0   w i d t h = 2 1 1   h e i g h t = 1 7 2 > ' ) ; 
 
 } 
 
 e l s e   i f ( w h i c h I m a g e = = 3 ) { 
 
 d o c u m e n t . w r i t e ( ' < i m g   s r c = " ' + t h e I m a g e s [ w h i c h I m a g e ] + ' "   b o r d e r = 0   w i d t h = 2 1 1   h e i g h t = 1 7 2 > ' ) ; 
 
 } 
 
 e l s e   i f ( w h i c h I m a g e = = 4 ) { 
 
 d o c u m e n t . w r i t e ( ' < i m g   s r c = " ' + t h e I m a g e s [ w h i c h I m a g e ] + ' "   b o r d e r = 0   w i d t h = 2 1 1   h e i g h t = 1 7 2 > ' ) ; 
 
 } 
 
 e l s e   i f ( w h i c h I m a g e = = 5 ) { 
 
 d o c u m e n t . w r i t e ( ' < i m g   s r c = " ' + t h e I m a g e s [ w h i c h I m a g e ] + ' "   b o r d e r = 0   w i d t h = 2 1 1   h e i g h t = 1 7 2 > ' ) ; 
 
 } 
 
 e l s e   i f ( w h i c h I m a g e = = 6 ) { 
 
 d o c u m e n t . w r i t e ( ' < i m g   s r c = " ' + t h e I m a g e s [ w h i c h I m a g e ] + ' "   b o r d e r = 0   w i d t h = 2 1 1   h e i g h t = 1 7 2 > ' ) ; 
 
 } 
 
 e l s e   i f ( w h i c h I m a g e = = 7 ) { 
 
 d o c u m e n t . w r i t e ( ' < i m g   s r c = " ' + t h e I m a g e s [ w h i c h I m a g e ] + ' "   b o r d e r = 0   w i d t h = 2 1 1   h e i g h t = 1 7 2 > ' ) ; 
 
 } 
 
 e l s e   i f ( w h i c h I m a g e = = 8 ) { 
 
 d o c u m e n t . w r i t e ( ' < i m g   s r c = " ' + t h e I m a g e s [ w h i c h I m a g e ] + ' "   b o r d e r = 0   w i d t h = 2 1 1   h e i g h t = 1 7 2 > ' ) ; 
 
 } 
 
 e l s e   i f ( w h i c h I m a g e = = 9 ) { 
 
 d o c u m e n t . w r i t e ( ' < i m g   s r c = " ' + t h e I m a g e s [ w h i c h I m a g e ] + ' "   b o r d e r = 0   w i d t h = 2 1 1   h e i g h t = 1 7 2 > ' ) ; 
 
 } 
 
 } 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
