ÿþf u n c t i o n   g e t Q u o t e s ( r a n g e )  
 {  
     v a r   m   =   [ ' T h e   M o n s t e r   o f   P h a n t o m   L a k e ' , ' I t   C a m e   F r o m   A n o t h e r   W o r l d ! ' , ' C a v e   W o m e n   o n   M a r s ' , ' T e r r o r   f r o m   B e n e a t h   t h e   E a r t h ' , ' D e s t i n a t i o n :   O u t e r   S p a c e ' , ' A t t a c k   o f   t h e   M o o n   Z o m b i e s ' ] ;  
      
     v a r   m p   =   [ " & q u o t ; H i l a r i o u s ! & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   < i > E d   B r a d l e y ,   T h e   F l i n t   J o u r n a l < / i > < / d i v > " ,  
                         " & q u o t ; I f   y o u   w a n t   a   s i l l y   a n d   e n j o y a b l e   b r e a k   f r o m   t h e   r a t h e r   d r e a r y   f l o o d   o f   r e m a k e s , < b r >   r e b o o t s ,   a n d   u n o r i g i n a l   h o r r o r   f i l m s   o u t   o n   t h e   m a r k e t ,   I   w o u l d   r e c o m m e n d < b r > w a t c h i n g   ' < b > T h e   M o n s t e r   o f   P h a n t o m   L a k e < / b > '   & # 0 1 5 1   e s p e c i a l l y   w i t h   f r i e n d s . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   T h e   C o r n e r   o f   T e r r o r < / i > < / d i v > " ,  
                         " & q u o t ; A   g l o w i n g   t r i b u t e   t o   t h e   c r e a t u r e   f e a t u r e s   o f   t h e   1 9 5 0 ' s & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   J o h n   B e h l i n g ,   M i n n e a p o l i s / S t .   P a u l   C i t y   P a g e s < / i > < / d i v > " ,  
                         " & q u o t ; . . . o n e   o f   t h e   b e s t   h o m a g e   f i l m s   e v e r   c r e a t e d & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   D u a n e   L .   M a r t i n ,   R o g u e   C i n e m a < / i > < / d i v > " ,  
                         " & q u o t ; . . . [ a ]   m a s t e r f u l   p o r t r a y a l   o f   t h o s e   g o o d   o l '   c h e e s y   5 0 s   f l i c k s . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   F a m o u s   M o n s t e r s   o f   F i l m l a n d < / i > < / d i v > " ,  
                         " & q u o t ; . . . t h e   g a n g   a t   ' M y s t e r y   S c i e n c e   T h e a t e r   3 0 0 0 '   w o u l d < b r > & n b s p ; h a v e   b e e n   e c s t a t i c   t o   w a t c h   t h i s   o n e . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   S i d   K o r p i ,   A t o m i c M o n s t e r s . c o m < / i > < / d i v > " ] ;  
     v a r   i c   =   [ " & q u o t ; I f   y o u   l i k e   c l a s s i c   B - m o v i e s ,   y o u ' l l   d e f i n i t e l y   w a n t   t o   s e e   i t & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   D u a n e   L .   M a r t i n ,   R o g u e   C i n e m a < / i > < / d i v > " ,  
                         " & q u o t ; . . . i m a g i n a t i v e   a n d   f u n   & # 0 1 5 1 ;   t h e   p e r f e c t   s u m m e r   d r i v e - i n   f a r e & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   P e t e r   S c h i l l i n g ,   T h e   R a k e < / i > < / d i v > " ,  
                         " & q u o t ; . . . c e r t a i n l y   d e l i v e r s   a   w o n d e r f u l   t r i b u t e   t o   1 9 5 0 s   s c i e n c e   f i c t i o n   m o v i e s . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   F a m o u s   M o n s t e r s   o f   F i l m l a n d < / i > < / d i v > " ,  
                         " & q u o t ; . . . a   r e f r e s h i n g   d e p a r t u r e   f r o m   t h e   H o l l y w o o d   s c h l o c k < b r > & n b s p ; t h a t   e v e r y o n e ' s   s e e n   t o o   m a n y   t i m e s . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   D a r r e l l   M o e n ,   E x a m i n e r . c o m < / i > < / d i v > " ,  
                         " & q u o t ; . . . t h e r e ' s   a   c e r t a i n   s c e n e   i n v o l v i n g   a n   o a r   a n d   a   m u s h r o o m   y o u ' l l   n e e d < b r > & n b s p ; t o   b e   w e a r i n g   D e p e n d s   t o   s a f e l y   w a t c h . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   S i d   K o r p i ,   A t o m i c M o n s t e r s . c o m < / i > < / d i v > " ] ;  
     v a r   c w   =   [ " & q u o t ; . . . o n e   m o v i e   t h a t   y o u   d e f i n i t e l y   n e e d   t o   s e e & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   D u a n e   L .   M a r t i n ,   R o g u e   C i n e m a < / i > < / d i v > " ,  
                         " & q u o t ; . . . r e a l l y   w e l l   w r i t t e n ,   b r i l l i a n t l y   a c t e d   . . .   t r u e   t o   t h e   f e e l   o f   t h e   o l d   f i l m s   i t   s e e k s   t o   e m u l a t e & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > & # 0 1 5 1 ;   < i > D u a n e   L .   M a r t i n ,   R o g u e   C i n e m a < / i > < / d i v > " ,  
                         " & q u o t ; . . . t h e   f i l m   i s   g o o d   f u n . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > & # 0 1 5 1 ;   < i > B o b   E s t r e i c h ,   S y n e r g y   M a g a z i n e < / i > < / d i v > " ,  
                         " & q u o t ; . . . h o l d s   t r u e   t o   m a n y   o f   t h e   1 9 5 0 s   s p a c e   e x p l o r a t i o n   m o v i e s   a n d   t h e   p r o d u c t i o n   s t y l e   a n d < b r > & n b s p ; m u s i c a l   s c o r e   d o   a   w o n d e r f u l   j o b   o f   r e - c r e a t i n g   t h e   a b s u r d   a t m o s p h e r e   t h o s e   m o v i e s   h e l d . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > & # 0 1 5 1 ;   < i > F a m o u s   M o n s t e r s   o f   F i l m l a n d < / i > < / d i v > " ,  
                         " & q u o t ; . . . t h e   l a t e s t   B - m o v i e   m a s t e r p i e c e   . . .   a   r e a l   h o o t & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   P e t e r   S c h i l l i n g ,   M p l s / S t .   P a u l   S t a r T r i b u n e < / i > < / d i v > " ] ;  
     v a r   t f   =   [ " & q u o t ; V e r y   c o o l   s t u f f   a n d   t h e   c r e a t u r e   l o o k e d   a m a z i n g & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   D u a n e   L .   M a r t i n ,   R o g u e   C i n e m a < / i > < / d i v > " ,  
                         " & q u o t ; A   b u d g e t   p r o d u c t i o n ?   U n d o u b t e d l y ,   a n d   a l l   t h e   b e t t e r   f o r   n o t   t r y i n g   t o o   h a r d   t o   h i d e   i t . < b r > & n b s p ; I t ' s   j u s t   f a k e - l o o k i n g   e n o u g h   t o   w o r k   p e r f e c t l y . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   B o b   E s t r e i c h ,   S y n e r g y   M a g a z i n e < / i > < / d i v > " ,  
                         " & q u o t ; T h e   m u t a n t   b a t   c r e a t u r e   . . .   i s   o n e   o f   t h e   b e s t   f i l m   m o n s t e r s   e v e r   d e v i s e d . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   S i d   K o r p i ,   A t o m i c M o n s t e r s . c o m < / i > < / d i v > " ,    
                         " & q u o t ; I t s   s t r e n g t h s   a r e   i t s   w e a k n e s s e s ;   i t s   w e a k n e s s e s   a r e   i t s   s t r e n g t h s .   . . .   T h e   s a m e   c a n < b r > & n b s p ; b e   s a i d   o f   m o s t   o f   t h e   f i l m s   t h i s   r e p l i c a t e s . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   D r e a d   C e n t r a l < / i > < / d i v > " ,    
                         " & q u o t ; [ 1 9 5 0 s   B - m o v i e ]   s e t s   a n d   c r e a t u r e s   w e r e   i m p r o v i s e d   p r o d u c t s   o f   i n d i v i d u a l   c r e a t i v i t y < b r > & n b s p ; a n d   t h e   i m a g i n a t i o n s   o f   t h e   d i r e c t o r   a n d   w r i t e r .     C h r i s t o p h e r   R .   M i h m   r e p l i c a t e d   t h a t < b r > & n b s p ; t e c h n i q u e   w i t h   a m a z i n g   a c c u r a c y   a s   b o t h   w r i t e r   a n d   d i r e c t o r & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   D a r r e l l   M o e n ,   M i n n e a p o l i s   M o v i e s   E x a m i n e r < / i > < / d i v > " ,    
                         " & q u o t ; O n c e   a g a i n   M i h m   c a p t u r e s   t h e   c h a r m i n g   a n d   c h e a p   f e e l   o f < b r > & n b s p ; a   H o w c o   o r   A s t o r - s t y l e   d r i v e - i n   m o v i e . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   S c a r l e t :   T h e   F i l m   M a g a z i n e < / i > < / d i v > " ,    
                         " & q u o t ; T h e   a c t i n g ,   l i g h t i n g ,   s t a g i n g ,   s e t   d e s i g n s   a n d   c r e a t u r e   m a k e - u p   a r e   a u t h e n t i c < b r > & n b s p ; r e p r o d u c t i o n s   o f   [ l o w - b u d g e t   h o r r o r   f i l m s   o f   t h e   ' 5 0 s ] & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   D a r r e l l   M o e n ,   M i n n e a p o l i s   M o v i e s   E x a m i n e r < / i > < / d i v > " ] ;    
     v a r   d o s   =   [ " & q u o t ; I t ' s   C h r i s t o p h e r   R .   M i h m ' s   b e s t   w o r k   s o   f a r . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   S y n e r g y   M a g a z i n e < / i > < / d i v > " ,  
                           " & q u o t ; T e c h n i c a l l y   s p e a k i n g ,   i t ' s   t h e   b e s t   M i h m   f i l m   y e t . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   O m a h a s t a r ' s   L i v e J o u r n a l < / i > < / d i v > " ,  
                           " & q u o t ; C h r i s t o p h e r   R .   M i h m   h a s   r e a l l y   o u t d o n e   h i m s e l f   w i t h   t h i s   f i l m . < b r > & n b s p ; I t ' s   f u n   f r o m   b e g i n n i n g   t o   e n d ,   a n d   t h e   v i s u a l s   a r e   j u s t   o u t s t a n d i n g . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   D u a n e   L .   M a r t i n ,   R o g u e   C i n e m a < / i > < / d i v > " ,  
                           " & q u o t ; I   e n j o y e d   t h i s   m o v i e ,   p e r s o n a l l y ,   b e c a u s e   i t   s h o w s   y e t   a g a i n   t h a t   a   m o v i e < b r > & n b s p ; d o e s   n o t   n e e d   a   b i g   b u d g e t   t o   b e   e n t e r t a i n i n g . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   J a s o n   D .   W i t t m a n ' s   L i v e J o u r n a l < / i > < / d i v > " ] ;  
     v a r   m z   =   [ " & q u o t ; I t ' s   t h a t   g o o d ,   f o l k s . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   D a r r e l l   M o e n ,   E x a m i n e r . c o m < / i > < / d i v > " ,  
                         " & q u o t ; I n   t h e   w o r l d   o f   i n d e p e n d e n t   f i l m s ,   [ w r i t e r / d i r e c t o r ]   C h r i s t o p h e r   M i h m   i s   r e a l l y   u p < b r > & n b s p ; t h e r e   w i t h   t h e   b e s t   o f   t h e m .   H i s   f i l m   r e a l l y   h i t   a l l   t h e   r i g h t   n o t e s ,   f r o m   a   g r e a t   s t o r y < b r > & n b s p ; t o   a   g r e a t   c a s t ,   p e r f e c t l y   d o n e   s e t s ,   a n d   a   v e r y   o b v i o u s   l o v e   o f   w h a t   h e \ ' s   d o i n g . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   D a r r y l   L .   P i e r c e ,   A   L i t t l e   D e a d   P o d c a s t < / i > < / d i v > " ,  
                         " & q u o t ; . . . a   l o o n y   l u n a r   l a u g h - f e s t   t h a t   m a n a g e s   t o   l o v i n g l y   l a m p o o n   v i n t a g e   s c h l o c k < b r > & n b s p ; w h i l e   a l s o   m a i n t a i n i n g   a n   i n n a t e   r e s p e c t   f o r   t h i s   b e l o v e d   g e n r e . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   W i l l   & q u o t ; T h e   T h r i l l & q u o t ;   V a h a r o ,   E x a m i n e r . c o m   ( O a k l a n d ,   C A ) < / i > < / d i v > " ,  
                         " & q u o t ; T h e   c o s t u m e s ,   h a i r   s t y l e s   a n d   c a s t i n g   a r e   a l l   p e r f e c t ,   r i g h t   d o w n < b r > & n b s p ; t o   t h e   B r u s s e l s   s p r o u t ,   b u g   e y e d ,   c a b b a g e   h e a d   M o o n   Z o m b i e s . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   Z o m b i e s D r u l e . c o m < / i > < / d i v > " ,  
                         " & q u o t ; . . . r e s p e c t f u l l y   p a y s   h o m a g e   t o   t h o s e   g r e a t   B - m o v i e s   o f   y e s t e r y e a r .   I f   y o u < b r > & n b s p ; r e m e m b e r   t h a t   e r a   o r   a r e   j u s t   a   f a n   o f   s c i - f i   i n   g e n e r a l ,   t h e n   t h i s   m o v i e   i s   f o r   y o u ! & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   D r i v e I n O f T h e D e a d . c o m < / i > < / d i v > " ,  
                         " & q u o t ; . . . a   h i l a r i o u s   a n d   w e l l - o r c h e s t r a t e d   s e n d - u p   o f   s c i - f i   f i l m s   a n d   t h e i r   a u d i e n c e s . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   E x o n a u t s !   ( b l o g ) < / i > < / d i v > " ,  
                         " & q u o t ; . . . h i l a r i o u s ,   w i t h   t h e   r i g h t   b a l a n c e   o f   i n - j o k e s   a b o u t   t h e   g e n r e   a n d   p l a y i n g < b r > & n b s p ; i t   & q u o t ; s t r a i g h t , & q u o t ;   a n d   t h e   b r i l l i a n t l y - w r i t t e n   p l o t   a n d   d i a l o g u e   o o z i n g   w i t h   a l l   t h e < b r > & n b s p ; g o o e y   c h e e s i n e s s   o f   a   ' 5 0 s   d r i v e - i n   t h r i l l e r . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   T r a c e y B e l l e   ( b l o g ) < / i > < / d i v > " ,  
                         " & q u o t ; . . . T h e   M o o n   Z o m b i e s   t h e m s e l v e s   a r e   p e r f e c t l y   r e a l i z e d , < b r > & n b s p ; l o o k i n g   e x a c t l y   a s   c h e a p   a s   t h e y   s h o u l d . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   J a s o n   C o f f m a n ,   F i l m M o n t h l y . c o m < / i > < / d i v > " ,  
                         " & q u o t ; . . . g r e a t   c o s t u m e s ,   n i c e   e f f e c t s   a n d   s o m e   n i f t y   k e e n   B - m o v i e   s t y l e   m o n s t e r s . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   D u a n e   L .   M a r t i n ,   R o g u e   C i n e m a < / i > < / d i v > " ,  
                         " & q u o t ; . . . [ w r i t e r / d i r e c t o r   C h r i s t o p h e r   R .   M i h m ' s ]   f i l m s   a r e   a l w a y s   f u n   t o   w a t c h , < b r > & n b s p ; a n d   t h i s   o n e   i s   n o   e x c e p t i o n . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   D u a n e   L .   M a r t i n ,   R o g u e   C i n e m a < / i > < / d i v > " ,  
                         " & q u o t ; . . . s o m e   o f   M i h m ' s   b e s t   w o r k . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   R o b e r t   F o r t o   ( b l o g ) < / i > < / d i v > " ,  
                         " & q u o t ; I   w a s   s u r p r i s e d   a t   h o w   m u c h   I   l a u g h e d   a n d   w a s   e n t e r t a i n e d   b y   t h e   f i l m & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   P a u l   S k o w ,   B u y Z o m b i e . c o m < / i > < / d i v > " ,  
                         " & q u o t ; . . . m u c h   l i k e   M i h m ' s   o t h e r   f i l m s ,   a   l o v e - l e t t e r   t o   c i n e m a t i c   c h e d d a r   p l a y e d   t o   t h e   h i l t . & q u o t ; < b r > < d i v   a l i g n = \ " r i g h t \ "   c l a s s = \ " s m a l l e r \ " > < i > & # 0 1 5 1 ;   E x o n a u t s !   ( b l o g ) < / i > < / d i v > " ] ;  
                      
     v a r   q s   =   [ m p , i c , c w , t f , d o s , m z ] ;  
  
     v a r   r a n   =   ( M a t h . r o u n d ( ( ( m . l e n g t h - 1 ) * M a t h . r a n d o m ( ) ) ) ) ;  
     i f   ( r a n g e   = =   ' t m o p l ' )  
     {   r a n   =   0 ;   }  
     e l s e   i f   ( r a n g e   = =   ' i c f a w ' )  
     {   r a n   =   1 ;   }  
     e l s e   i f   ( r a n g e   = =   ' c w o m ' )  
     {   r a n   =   2 ;   }  
     e l s e   i f   ( r a n g e   = =   ' t f b e ' )  
     {   r a n   =   3 ;   }  
     e l s e   i f   ( r a n g e   = =   ' d o s ' )  
     {   r a n   =   4 ;   }  
     e l s e   i f   ( r a n g e   = =   ' m z ' )  
     {   r a n   =   5 ;   }  
  
     v a r   q = ( M a t h . r o u n d ( ( ( q s [ r a n ] . l e n g t h - 1 ) * M a t h . r a n d o m ( ) ) ) ) ;  
     d o c u m e n t . w r i t e ( ' < t a b l e   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 " > < t r   v a l i g n = " t o p " > < t d   a l i g n = " r i g h t "   c l a s s = " s m a l l e r "   n o w r a p > < b > ' + m [ r a n ] + ' < / b > & n b s p ; & # 0 1 5 0 ; & n b s p ; < / t d > < t d   c l a s s = " s m a l l e r " > ' + q s [ r a n ] [ q ] + ' < / t d > < / t r > < / t a b l e > ' ) ;  
 }  
  
 f u n c t i o n   M M _ p r e l o a d I m a g e s ( )   {   / / v 3 . 0  
     v a r   d = d o c u m e n t ;   i f ( d . i m a g e s ) {   i f ( ! d . M M _ p )   d . M M _ p = n e w   A r r a y ( ) ;  
     v a r   i , j = d . M M _ p . l e n g t h , a = M M _ p r e l o a d I m a g e s . a r g u m e n t s ;   f o r ( i = 0 ;   i < a . l e n g t h ;   i + + )  
     i f   ( a [ i ] . i n d e x O f ( " # " ) ! = 0 ) {   d . M M _ p [ j ] = n e w   I m a g e ;   d . M M _ p [ j + + ] . s r c = a [ i ] ; } }  
 }  
  
 f u n c t i o n   s w a p ( t h i n g ,   n e w I m a g e )   {  
     t h i n g . s r c = " i m a g e s / " + n e w I m a g e + " . g i f " ;  
     r e t u r n   t r u e ;  
 }  
  
 f u n c t i o n   g e t H e a d ( )  
 {  
     v a r   q = ( M a t h . r o u n d ( 5 * M a t h . r a n d o m ( ) ) ) + 1 ;  
     d o c u m e n t . w r i t e ( ' < t a b l e   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 "   w i d t h = " 7 2 9 "   s t y l e = " b a c k g r o u n d : u r l ( i m a g e s / h e a d e r ' + q + ' . g i f ) " > < t r > < t d > < t a b l e   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 " > < t r   v a l i g n = " t o p " > < t d   w i d t h = " 1 " > < i m g   s r c = " i m a g e s / t r a n s _ s p a c e r . g i f "   h e i g h t = " 7 4 "   w i d t h = " 1 "   a l t = " t h e   o n l i n e   h o m e   o f   t h e   f i l m s   o f   C h r i s t o p h e r   R .   M i h m " > < / t d > ' ) ;  
     d o c u m e n t . w r i t e ( ' < t d   w i d t h = " 7 2 8 "   a l i g n = " r i g h t " > < i m g   s r c = " i m a g e s / t r a n s _ s p a c e r . g i f "   w i d t h = " 7 2 8 "   h e i g h t = " 1 0 "   a l t = " t h e   o n l i n e   h o m e   o f   t h e   f i l m s   o f   C h r i s t o p h e r   R .   M i h m " > < b r > ' ) ;  
     d o c u m e n t . w r i t e ( ' < a   h r e f = " h t t p : / / w w w . a d d t h i s . c o m / b o o k m a r k . p h p ? v = 2 5 0 & p u b = s a i n t e u p h o r i a "   o n m o u s e o v e r = " r e t u r n   a d d t h i s _ o p e n ( t h i s ,   \ ' \ ' ,   \ ' [ U R L ] \ ' ,   \ ' [ T I T L E ] \ ' ) "   o n m o u s e o u t = " a d d t h i s _ c l o s e ( ) "   o n c l i c k = " r e t u r n   a d d t h i s _ s e n d t o ( ) " > < i m g   s r c = " h t t p : / / s 7 . a d d t h i s . c o m / s t a t i c / b t n / l g - s h a r e - e n . g i f "   w i d t h = " 1 2 5 "   h e i g h t = " 1 6 "   a l t = " B o o k m a r k   a n d   S h a r e "   s t y l e = " b o r d e r : 0 " / > < / a > < s c r i p t   t y p e = " t e x t / j a v a s c r i p t "   s r c = " h t t p : / / s 7 . a d d t h i s . c o m / j s / 2 5 0 / a d d t h i s _ w i d g e t . j s ? p u b = s a i n t e u p h o r i a " > < / s c r i p t > ' ) ;  
     d o c u m e n t . w r i t e ( ' < i m g   s r c = " i m a g e s / t r a n s _ s p a c e r . g i f "   h e i g h t = " 1 "   w i d t h = " 1 0 "   a l t = " " > < / t d > < / t r > < / t a b l e > < / t d > < / t r > < / t a b l e > ' ) ;  
 }  
  
 f u n c t i o n   g e t S p e c i f i c H e a d ( q )  
 {  
     d o c u m e n t . w r i t e ( ' < t a b l e   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 "   w i d t h = " 7 2 9 "   s t y l e = " b a c k g r o u n d : u r l ( i m a g e s / h e a d e r ' + q + ' . g i f ) " > < t r > < t d > < t a b l e   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 " > < t r   v a l i g n = " t o p " > < t d   w i d t h = " 1 " > < i m g   s r c = " i m a g e s / t r a n s _ s p a c e r . g i f "   h e i g h t = " 7 4 "   w i d t h = " 1 "   a l t = " t h e   o n l i n e   h o m e   o f   t h e   f i l m s   o f   C h r i s t o p h e r   R .   M i h m " > < / t d > ' ) ;  
     d o c u m e n t . w r i t e ( ' < t d   w i d t h = " 7 2 8 "   a l i g n = " r i g h t " > < i m g   s r c = " i m a g e s / t r a n s _ s p a c e r . g i f "   w i d t h = " 7 2 8 "   h e i g h t = " 1 0 "   a l t = " t h e   o n l i n e   h o m e   o f   t h e   f i l m s   o f   C h r i s t o p h e r   R .   M i h m " > < b r > ' ) ;  
     d o c u m e n t . w r i t e ( ' < a   h r e f = " h t t p : / / w w w . a d d t h i s . c o m / b o o k m a r k . p h p ? v = 2 5 0 & p u b = s a i n t e u p h o r i a "   o n m o u s e o v e r = " r e t u r n   a d d t h i s _ o p e n ( t h i s ,   \ ' \ ' ,   \ ' [ U R L ] \ ' ,   \ ' [ T I T L E ] \ ' ) "   o n m o u s e o u t = " a d d t h i s _ c l o s e ( ) "   o n c l i c k = " r e t u r n   a d d t h i s _ s e n d t o ( ) " > < i m g   s r c = " h t t p : / / s 7 . a d d t h i s . c o m / s t a t i c / b t n / l g - s h a r e - e n . g i f "   w i d t h = " 1 2 5 "   h e i g h t = " 1 6 "   a l t = " B o o k m a r k   a n d   S h a r e "   s t y l e = " b o r d e r : 0 " / > < / a > < s c r i p t   t y p e = " t e x t / j a v a s c r i p t "   s r c = " h t t p : / / s 7 . a d d t h i s . c o m / j s / 2 5 0 / a d d t h i s _ w i d g e t . j s ? p u b = s a i n t e u p h o r i a " > < / s c r i p t > ' ) ;  
     d o c u m e n t . w r i t e ( ' < i m g   s r c = " i m a g e s / t r a n s _ s p a c e r . g i f "   h e i g h t = " 1 "   w i d t h = " 1 0 "   a l t = " " > < / t d > < / t r > < / t a b l e > < / t d > < / t r > < / t a b l e > ' ) ;  
 }  
  
 f u n c t i o n   g e t D a t e Y e a r ( )   {  
  
     v a r   T o d a y   =   n e w   D a t e ( ) ;  
     v a r   Y e a r   =   T o d a y . g e t Y e a r ( ) ;  
     i f ( Y e a r <   1 9 0 0 )   {   Y e a r   + =   1 9 0 0 ;   }  
  
     r e t u r n   Y e a r ;  
 }  
  
 f u n c t i o n   s h o w G a m e ( )  
 {  
     v a r   p o p U p   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p o p u p c o n t e n t " ) ;  
     v a r   h   =   4 5 0 ;  
     v a r   w   =   8 1 3 ;  
     i f ( p o p U p   ! =   n u l l )    
     {  
         v a r   b a s e T e x t   =   " < t a b l e   c e l l p a d d i n g = \ " 0 \ "   c e l l s p a c i n g = \ " 0 \ "   b o r d e r = \ " 0 \ " > < t r > < t d > < t a b l e   c e l l p a d d i n g = \ " 0 \ "   c e l l s p a c i n g = \ " 0 \ "   b o r d e r = \ " 0 \ "   w i d t h = \ " " + w + " \ "   s t y l e = \ " b a c k g r o u n d : u r l ( i m a g e s / b l a c k _ s p a c e r . g i f ) \ " > < t r   v a l i g n = \ " t o p \ " > < t d > < s p a n   c l a s s = \ " n o r m \ " > < i m g   s r c = \ " i m a g e s / b l a c k _ s p a c e r . g i f \ "   h e i g h t = \ " 8 \ "   w i d t h = \ " 1 \ "   a l t = \ " \ " > < b r > < i m g   s r c = \ " i m a g e s / b l a c k _ s p a c e r . g i f \ "   h e i g h t = \ " 1 \ "   w i d t h = \ " 8 \ "   a l t = \ " \ " > < f o n t   c o l o r = \ " # F F F F F F \ " > < b > D A N N Y   J O H N S O N   A N D   T H E   L U C K Y   C O I N < / b >   & # 0 1 5 1 ;   a n   i n t e r a c t i v e   a d v e n t u r e   b y   C h r i s t o p h e r   R .   M i h m < b r > < i m g   s r c = \ " i m a g e s / b l a c k _ s p a c e r . g i f \ "   h e i g h t = \ " 8 \ "   w i d t h = \ " 1 \ "   a l t = \ " \ " > < / f o n t > < / s p a n > < / t d > " ;  
         b a s e T e x t   + =   " < t d   a l i g n = \ " r i g h t \ "   n o w r a p   c l a s s = \ " w h i t e \ " > < i m g   s r c = \ " i m a g e s / b l a c k _ s p a c e r . g i f \ "   h e i g h t = \ " 8 \ "   w i d t h = \ " 1 \ "   a l t = \ " \ " > < b r > < a   h r e f = \ " # \ "   o n C l i c k = \ " j a v a s c r i p t : h i d e P o p u p ( ) ; r e t u r n   f a l s e ; \ " > X < / a > < i m g   s r c = \ " i m a g e s / b l a c k _ s p a c e r . g i f \ "   h e i g h t = \ " 1 \ "   w i d t h = \ " 1 2 \ "   a l t = \ " \ " > < / t d > < / t r > < / t a b l e > < / t d > < / t r > " ;  
         b a s e T e x t   + =   " < t r > < t d   s t y l e = \ " b a c k g r o u n d : u r l ( i m a g e s / b g _ s p a c e r . p n g ) \ " > < a   h r e f = \ " # \ "   o n C l i c k = \ " j a v a s c r i p t : h i d e P o p u p ( ) ; r e t u r n   f a l s e ; \ " > " ;  
         b a s e T e x t   + =   " < i f r a m e   w i d t h = \ " 1 0 0 % \ "   h e i g h t = \ " 4 5 0 \ "   f r a m e b o r d e r = \ " 0 \ "   i d = \ " m y i f r a m e \ "   n a m e = \ " m y i f r a m e \ "   s r c = \ " g a m e / g a m e . h t m l \ "   s c r o l l i n g = \ " n o \ "   s t y l e = \ " w i d t h : 1 0 0 % ; b o r d e r : 0 p x \ " > < / i f r a m e > " ;  
         b a s e T e x t   + =   " < / a > < / t d > < / t r > < / t a b l e > < / t d > < / t r > < / t a b l e > " ;    
         p o p U p . i n n e r H T M L   =   b a s e T e x t ;  
         p o p U p . s t y l e . w i d t h   =   w ;  
         p o p U p . s t y l e . h e i g h t   =   h ;  
         p o p U p . s t y l e . v i s i b i l i t y   =   " v i s i b l e " ;  
         p o p U p . s t y l e . d i s p l a y   =   ' b l o c k ' ;  
         c e n t e r E l e m e n t ( p o p U p ) ;  
         g r e y o u t ( t r u e ) ;  
     }  
 }  
  
 f u n c t i o n   s h o w P o p u p ( w h i c h ,   h ,   w ,   c a p t i o n ,   s u b m i t t e d B y )  
 {  
     v a r   p o p U p   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p o p u p c o n t e n t " ) ;  
      
     i f ( p o p U p   ! =   n u l l )    
     {  
         i f   ( w h i c h   = =   ' S T A R D U S T A D ' )  
         {  
             v a r   b a s e T e x t   =   " < t a b l e   c e l l p a d d i n g = \ " 0 \ "   c e l l s p a c i n g = \ " 0 \ "   b o r d e r = \ " 0 \ " > < t r > < t d > < t a b l e   c e l l p a d d i n g = \ " 0 \ "   c e l l s p a c i n g = \ " 0 \ "   b o r d e r = \ " 0 \ "   w i d t h = \ " " + w + " \ "   s t y l e = \ " b a c k g r o u n d : u r l ( i m a g e s / b l a c k _ s p a c e r . g i f ) \ " > < t r   v a l i g n = \ " t o p \ " > < t d > < s p a n   c l a s s = \ " n o r m \ " > < i m g   s r c = \ " i m a g e s / b l a c k _ s p a c e r . g i f \ "   h e i g h t = \ " 8 \ "   w i d t h = \ " 1 \ "   a l t = \ " \ " > < b r > < i m g   s r c = \ " i m a g e s / b l a c k _ s p a c e r . g i f \ "   h e i g h t = \ " 1 \ "   w i d t h = \ " 8 \ "   a l t = \ " \ " > < f o n t   c o l o r = \ " # F F F F F F \ " > < b > D O N ' T   M I S S   I T ! < / b > < b r > < i m g   s r c = \ " i m a g e s / b l a c k _ s p a c e r . g i f \ "   h e i g h t = \ " 8 \ "   w i d t h = \ " 1 \ "   a l t = \ " \ " > < / f o n t > < / s p a n > < / t d > " ;  
             b a s e T e x t   + =   " < t d   a l i g n = \ " r i g h t \ "   n o w r a p   c l a s s = \ " w h i t e \ " > < i m g   s r c = \ " i m a g e s / b l a c k _ s p a c e r . g i f \ "   h e i g h t = \ " 8 \ "   w i d t h = \ " 1 \ "   a l t = \ " \ " > < b r > < a   h r e f = \ " # \ "   o n C l i c k = \ " j a v a s c r i p t : h i d e P o p u p ( ) ; r e t u r n   f a l s e ; \ " > X < / a > < i m g   s r c = \ " i m a g e s / b l a c k _ s p a c e r . g i f \ "   h e i g h t = \ " 1 \ "   w i d t h = \ " 1 2 \ "   a l t = \ " \ " > < / t d > < / t r > < / t a b l e > < / t d > < / t r > " ;  
             b a s e T e x t   + =   " < t r > < t d   s t y l e = \ " b a c k g r o u n d : u r l ( i m a g e s / w h i t e _ s p a c e r . g i f ) \ " > < a   h r e f = \ " # \ "   o n C l i c k = \ " j a v a s c r i p t : h i d e P o p u p ( ) ; r e t u r n   f a l s e ; \ " > " ;  
             v a r   r a n   =   ( M a t h . r o u n d ( 4 * M a t h . r a n d o m ( ) ) ) ;  
      
             b a s e T e x t   + =   " < i m g   s r c = \ " i m a g e s / m a r a t h o n " + r a n + " . j p g \ "   h e i g h t = \ " 4 0 0 \ "   w i d t h = \ " 6 0 0 \ "   a l t = \ " \ "   b o r d e r = \ " 0 \ " > " ;  
             b a s e T e x t   + =   " < / a > < / t d > < / t r > < / t a b l e > " ;    
         }  
         e l s e  
         {  
             v a r   b a s e T e x t   =   " < t a b l e   c e l l p a d d i n g = \ " 0 \ "   c e l l s p a c i n g = \ " 0 \ "   b o r d e r = \ " 0 \ " > < t r > < t d > < t a b l e   c e l l p a d d i n g = \ " 0 \ "   c e l l s p a c i n g = \ " 0 \ "   b o r d e r = \ " 0 \ "   w i d t h = \ " " + w + " \ "   s t y l e = \ " b a c k g r o u n d : u r l ( i m a g e s / b l a c k _ s p a c e r . g i f ) \ " > < t r   v a l i g n = \ " t o p \ " > < t d > < s p a n   c l a s s = \ " n o r m \ " > < i m g   s r c = \ " i m a g e s / b l a c k _ s p a c e r . g i f \ "   h e i g h t = \ " 8 \ "   w i d t h = \ " 1 \ "   a l t = \ " \ " > < b r > < i m g   s r c = \ " i m a g e s / b l a c k _ s p a c e r . g i f \ "   h e i g h t = \ " 1 \ "   w i d t h = \ " 8 \ "   a l t = \ " \ " > < f o n t   c o l o r = \ " # F F F F F F \ " > < b > F A N   S U B M I T T E D   P H O T O < / b > < b r > < i m g   s r c = \ " i m a g e s / b l a c k _ s p a c e r . g i f \ "   h e i g h t = \ " 8 \ "   w i d t h = \ " 1 \ "   a l t = \ " \ " > < / f o n t > < / s p a n > < / t d > " ;  
             b a s e T e x t   + =   " < t d   a l i g n = \ " r i g h t \ "   n o w r a p   c l a s s = \ " w h i t e \ " > < i m g   s r c = \ " i m a g e s / b l a c k _ s p a c e r . g i f \ "   h e i g h t = \ " 8 \ "   w i d t h = \ " 1 \ "   a l t = \ " \ " > < b r > < a   h r e f = \ " # \ "   o n C l i c k = \ " j a v a s c r i p t : h i d e P o p u p ( ) ; r e t u r n   f a l s e ; \ " > X < / a > < i m g   s r c = \ " i m a g e s / b l a c k _ s p a c e r . g i f \ "   h e i g h t = \ " 1 \ "   w i d t h = \ " 1 2 \ "   a l t = \ " \ " > < / t d > < / t r > < / t a b l e > < / t d > < / t r > " ;  
             b a s e T e x t   + =   " < t r > < t d   s t y l e = \ " b a c k g r o u n d : u r l ( i m a g e s / w h i t e _ s p a c e r . g i f ) \ " > < t a b l e   c e l l p a d d i n g = \ " 8 \ "   c e l l s p a c i n g = \ " 0 \ "   b o r d e r = \ " 0 \ " > < t r > < t d   a l i g n = \ " c e n t e r \ " > < t a b l e   c e l l p a d d i n g = \ " 0 \ "   c e l l s p a c i n g = \ " 0 \ "   b o r d e r = \ " 0 \ " > " ;  
             b a s e T e x t   + =   " < t r > < t d   a l i g n = \ " c e n t e r \ " > < t a b l e   c e l l p a d d i n g = \ " 0 \ "   c e l l s p a c i n g = \ " 1 \ "   b o r d e r = \ " 0 \ "   s t y l e = \ " b a c k g r o u n d : u r l ( i m a g e s / b l a c k _ s p a c e r . g i f ) \ " > < t r > < t d > < i m g   s r c = \ " p h o t o s / p h o t o " + w h i c h + " . j p g \ "   a l t = \ " \ " > < / t d > < / t r > < / t a b l e > < i m g   s r c = \ " i m a g e s / w h i t e _ s p a c e r . g i f \ "   h e i g h t = \ " 5 \ "   w i d t h = \ " 1 \ "   a l t = \ " \ " > < b r > < t a b l e   c e l l p a d d i n g = \ " 0 \ "   c e l l s p a c i n g = \ " 0 \ "   b o r d e r = \ " 0 \ " > " ;  
             b a s e T e x t   + =   " < t r > < t d   c l a s s = \ " s m a l l e r \ "   a l i g n = \ " c e n t e r \ " > " + c a p t i o n ;  
  
             i f   ( s u b m i t t e d B y   ! =   ' ' )  
             {   b a s e T e x t   + =   " < b r > < b > s u b m i t t e d   b y : < / b >   " + s u b m i t t e d B y ;   }  
  
             b a s e T e x t   + =   " < / t d > < / t r > < / t a b l e > < / t d > < / t r > < / t a b l e > < / t d > < / t r > < / t a b l e > < / t d > < / t r > < / t a b l e > " ;    
         }  
  
         p o p U p . i n n e r H T M L   =   b a s e T e x t ;  
         p o p U p . s t y l e . w i d t h   =   w ;  
         p o p U p . s t y l e . h e i g h t   =   h ;  
         p o p U p . s t y l e . v i s i b i l i t y   =   " v i s i b l e " ;  
         p o p U p . s t y l e . d i s p l a y   =   ' b l o c k ' ;  
         c e n t e r E l e m e n t ( p o p U p ) ;  
         g r e y o u t ( t r u e ) ;  
     }  
 }  
  
 f u n c t i o n   h i d e P o p u p ( )  
 {  
     v a r   p o p U p   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p o p u p c o n t e n t " ) ;  
      
     i f ( p o p U p   ! =   n u l l )    
     {  
         g r e y o u t ( f a l s e ) ;  
         p o p U p . s t y l e . d i s p l a y   =   ' n o n e ' ;  
         p o p U p . s t y l e . v i s i b i l i t y   =   " h i d d e n " ;  
         w i n d o w . o n r e s i z e   =   n u l l ;  
     }  
 }  
  
 f u n c t i o n   g e t V i e w p o r t D i m e n s i o n s ( )   {  
         v a r   i n t H   =   0 ,   i n t W   =   0 ;  
          
         i f ( s e l f . i n n e r H e i g h t )   {  
               i n t H   =   w i n d o w . i n n e r H e i g h t ;  
               i n t W   =   w i n d o w . i n n e r W i d t h ;  
         }    
         e l s e   {  
                 i f ( d o c u m e n t . d o c u m e n t E l e m e n t   & &   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t )   {  
                         i n t H   =   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t ;  
                         i n t W   =   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h ;  
                 }  
                 e l s e   {  
                         i f ( d o c u m e n t . b o d y )   {  
                                 i n t H   =   d o c u m e n t . b o d y . c l i e n t H e i g h t ;  
                                 i n t W   =   d o c u m e n t . b o d y . c l i e n t W i d t h ;  
                         }  
                 }  
         }  
  
         r e t u r n   {  
                 h e i g h t :   p a r s e I n t ( i n t H ,   1 0 ) ,  
                 w i d t h :   p a r s e I n t ( i n t W ,   1 0 )  
         } ;  
 }  
  
 f u n c t i o n   c e n t e r E l e m e n t ( e l e m )    
 {  
         v a r   v i e w p o r t   =   g e t V i e w p o r t D i m e n s i o n s ( ) ;  
         v a r   l e f t   =   ( v i e w p o r t . w i d t h   = =   0 )   ?   5 0   :   p a r s e I n t ( ( v i e w p o r t . w i d t h   -   e l e m . o f f s e t W i d t h )   /   2 ,   1 0 ) ;  
         v a r   t o p   =   ( v i e w p o r t . h e i g h t   = =   0 )   ?   5 0   :   p a r s e I n t ( ( v i e w p o r t . h e i g h t   -   e l e m . o f f s e t H e i g h t )   /   2 ,   1 0 ) ;  
  
         e l e m . s t y l e . l e f t   =   l e f t   +   g e t S c r o l l X Y ( ' x ' ) ;  
         e l e m . s t y l e . t o p   =   t o p   +   g e t S c r o l l X Y ( ' y ' ) ; ;  
  
         v i e w p o r t ,   l e f t ,   t o p ,   e l e m   =   n u l l ;          
 }  
  
 f u n c t i o n   g r e y o u t ( s h o w )  
 {  
     v a r   o b j   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' g r e y o u t ' ) ;  
     i f ( ! o b j   | |   o b j = = n u l l )  
     {  
         a p p e n d E l e m e n t ( d o c u m e n t . b o d y , ' d i v ' , ' g r e y o u t ' ) ;  
         o b j   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' g r e y o u t ' ) ;  
         o b j . s t y l e . p o s i t i o n   =   ' a b s o l u t e ' ;  
         o b j . s t y l e . t o p   =   g e t S c r o l l X Y ( ' y ' ) ;  
         o b j . s t y l e . l e f t   =   g e t S c r o l l X Y ( ' x ' ) ;  
         o b j . s t y l e . b a c k g r o u n d   =   ' # 1 1 1 ' ;  
         o b j . s t y l e . o p a c i t y   =   ' . 2 5 ' ;  
         o b j . s t y l e . f i l t e r   =   ' a l p h a ( o p a c i t y = 2 5 ) ' ;  
     }  
  
     i f   ( s h o w )  
     {  
         v a r   v i e w p o r t   =   g e t V i e w p o r t D i m e n s i o n s ( ) ;  
         v a r   c h   =   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t   ?   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t   :   d o c u m e n t . b o d y . c l i e n t H e i g h t ;  
         v a r   c w   =   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h   ?   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h   :   d o c u m e n t . b o d y . c l i e n t W i d t h ;  
         v a r   s h   =   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l H e i g h t   ?   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l H e i g h t   :   d o c u m e n t . b o d y . s c r o l l H e i g h t ;  
         i f ( d o c u m e n t . b o d y . s c r o l l H e i g h t )   s h   =   M a t h . m a x ( s h , d o c u m e n t . b o d y . s c r o l l H e i g h t )  
         v a r   s w   =   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l W i d t h   ?   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l W i d t h   :   d o c u m e n t . b o d y . s c r o l l W i d t h ;  
         i f ( d o c u m e n t . b o d y . s c r o l l W i d t h )   s h   =   M a t h . m a x ( s h , d o c u m e n t . b o d y . s c r o l l W i d t h )  
         v a r   w h   =   w i n d o w . i n n e r H e i g h t   ?   w i n d o w . i n n e r H e i g h t   :   d o c u m e n t . b o d y . o f f s e t H e i g h t ;  
         v a r   z   =   5 0 ;  
         o b j . s t y l e . z I n d e x   =   z ;  
         / / o b j . s t y l e . h e i g h t   =   M a t h . m a x ( w h , M a t h . m a x ( s h , c h ) ) + ' p x ' ;  
         / / o b j . s t y l e . w i d t h   =   M a t h . m a x ( s w , c w ) + ' p x ' ;  
         o b j . s t y l e . h e i g h t   =   p a r s e I n t ( v i e w p o r t . h e i g h t ) ;  
         o b j . s t y l e . w i d t h   =   p a r s e I n t ( v i e w p o r t . w i d t h ) ;  
         o b j . s t y l e . d i s p l a y   =   ' b l o c k ' ;  
         a d d E v e n t ( w i n d o w , ' r e s i z e ' , g r e y o u t R e s i z e ) ;  
         a d d E v e n t ( w i n d o w , ' s c r o l l ' , g r e y o u t R e s i z e ) ;  
     }  
     e l s e  
     {  
         o b j . s t y l e . d i s p l a y   =   ' n o n e ' ;    
         r e m o v e E v e n t ( w i n d o w , ' r e s i z e ' , g r e y o u t R e s i z e ) ;  
         r e m o v e E v e n t ( w i n d o w , ' s c r o l l ' , g r e y o u t R e s i z e ) ;  
     }  
 }  
  
 f u n c t i o n   g r e y o u t R e s i z e ( )  
 {  
     v a r   c h   =   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t   ?   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t   :   d o c u m e n t . b o d y . c l i e n t H e i g h t ;  
     v a r   c w   =   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h   ?   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h   :   d o c u m e n t . b o d y . c l i e n t W i d t h ;  
     v a r   s h   =   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l H e i g h t   ?   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l H e i g h t   :   d o c u m e n t . b o d y . s c r o l l H e i g h t ;  
     i f ( d o c u m e n t . b o d y . s c r o l l H e i g h t )   s h   =   M a t h . m a x ( s h , d o c u m e n t . b o d y . s c r o l l H e i g h t )  
     v a r   s w   =   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l W i d t h   ?   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l W i d t h   :   d o c u m e n t . b o d y . s c r o l l W i d t h ;  
     i f ( d o c u m e n t . b o d y . s c r o l l W i d t h )   s h   =   M a t h . m a x ( s h , d o c u m e n t . b o d y . s c r o l l W i d t h )  
     v a r   w h   =   w i n d o w . i n n e r H e i g h t   ?   w i n d o w . i n n e r H e i g h t   :   d o c u m e n t . b o d y . o f f s e t H e i g h t ;  
     v a r   o b j   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' g r e y o u t ' ) ;  
     o b j . s t y l e . h e i g h t   =   c h + ' p x ' ;  
     o b j . s t y l e . w i d t h   =   c w + ' p x ' ;  
     / / o b j . s t y l e . h e i g h t   =   M a t h . m a x ( w h , M a t h . m a x ( s h , c h ) ) + ' p x ' ;  
     / / o b j . s t y l e . w i d t h   =   M a t h . m a x ( s w , c w ) + ' p x ' ;  
  
     o b j . s t y l e . t o p   =   g e t S c r o l l X Y ( ' y ' ) ;  
     o b j . s t y l e . l e f t   =   g e t S c r o l l X Y ( ' x ' ) ;  
          
     v a r   v i e w p o r t   =   g e t V i e w p o r t D i m e n s i o n s ( ) ;  
     o b j . s t y l e . h e i g h t   =   p a r s e I n t ( v i e w p o r t . h e i g h t ) ;  
     o b j . s t y l e . w i d t h   =   p a r s e I n t ( v i e w p o r t . w i d t h ) ;  
  
     c e n t e r E l e m e n t ( d o c u m e n t . g e t E l e m e n t B y I d ( ' p o p u p c o n t e n t ' ) ) ;    
 }  
  
 f u n c t i o n   g e t S c r o l l X Y ( w h i c h )    
 {    
     v a r   s c r O f X   =   0 ;  
     v a r   s c r O f Y   =   0 ;      
     i f (   t y p e o f (   w i n d o w . p a g e Y O f f s e t   )   = =   ' n u m b e r '   )    
     {    
         s c r O f Y   =   w i n d o w . p a g e Y O f f s e t ;    
         s c r O f X   =   w i n d o w . p a g e X O f f s e t ;    
     }    
     e l s e   i f   (   d o c u m e n t . b o d y   & &   (   d o c u m e n t . b o d y . s c r o l l L e f t   | |   d o c u m e n t . b o d y . s c r o l l T o p   )   )    
     {    
         s c r O f Y   =   d o c u m e n t . b o d y . s c r o l l T o p ;    
         s c r O f X   =   d o c u m e n t . b o d y . s c r o l l L e f t ;    
     }    
     e l s e   i f (   d o c u m e n t . d o c u m e n t E l e m e n t   & &   (   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l L e f t   | |   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p   )   )  
     {    
         s c r O f Y   =   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p ;    
         s c r O f X   =   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l L e f t ;    
   }    
    
   i f   ( w h i c h   = =   ' x ' )  
   {   r e t u r n   s c r O f X ;   }  
   e l s e  
   {   r e t u r n   s c r O f Y ;   }    
 }  
  
 f u n c t i o n   a p p e n d E l e m e n t ( n o d e , t a g , i d , h t m )  
 {  
     v a r   n e   =   d o c u m e n t . c r e a t e E l e m e n t ( t a g ) ;  
     i f ( i d )   n e . i d   =   i d ;  
     i f ( h t m )   n e . i n n e r H T M L   =   h t m ;  
     n o d e . a p p e n d C h i l d ( n e ) ;  
 }  
  
 f u n c t i o n   a d d E v e n t ( o b j   , e v t ,   f n c )  
 {  
 i f   ( o b j . a d d E v e n t L i s t e n e r )  
 o b j . a d d E v e n t L i s t e n e r ( e v t , f n c , f a l s e ) ;  
 e l s e   i f   ( o b j . a t t a c h E v e n t )  
 o b j . a t t a c h E v e n t ( ' o n ' + e v t , f n c ) ;  
 e l s e  
 r e t u r n   f a l s e ;  
 r e t u r n   t r u e ;  
 }  
  
 f u n c t i o n   r e m o v e E v e n t ( o b j   , e v t ,   f n c )  
 {  
 i f   ( o b j . r e m o v e E v e n t L i s t e n e r )  
 o b j . r e m o v e E v e n t L i s t e n e r ( e v t , f n c , f a l s e ) ;  
 e l s e   i f   ( o b j . d e t a c h E v e n t )  
 o b j . d e t a c h E v e n t ( ' o n ' + e v t , f n c ) ;  
 e l s e  
 r e t u r n   f a l s e ;  
 r e t u r n   t r u e ;  
 } 
