ÿþ/ /   J a v a S c r i p t   D o c u m e n t  
 f u n c t i o n   f l a s h W r i t e ( u r l , w , h , v a r s , i d , b g ) {  
  
           v a r   f l a s h S t r =  
         " < o b j e c t   c l a s s i d = ' c l s i d : d 2 7 c d b 6 e - a e 6 d - 1 1 c f - 9 6 b 8 - 4 4 4 5 5 3 5 4 0 0 0 0 '   c o d e b a s e = ' h t t p : / / f p d o w n l o a d . m a c r o m e d i a . c o m / p u b / s h o c k w a v e / c a b s / f l a s h / s w f l a s h . c a b # v e r s i o n = 8 , 0 , 0 , 0 '   w i d t h = ' " + w + " '   h e i g h t = ' " + h + " '   i d = ' " + i d + " '   a l i g n = ' m i d d l e ' > " +  
         " < p a r a m   n a m e = ' a l l o w S c r i p t A c c e s s '   v a l u e = ' a l w a y s '   / > " +  
         " < p a r a m   n a m e = ' m o v i e '   v a l u e = ' " + u r l + " '   / > " +  
         " < p a r a m   n a m e = ' F l a s h V a r s '   v a l u e = ' " + v a r s + " '   / > " +  
         " < p a r a m   n a m e = ' w m o d e '   v a l u e = ' t r a n s p a r e n t '   / > " +  
         " < p a r a m   n a m e = ' m e n u '   v a l u e = ' f a l s e '   / > " +  
         " < p a r a m   n a m e = ' q u a l i t y '   v a l u e = ' h i g h '   / > " +  
         " < e m b e d   s r c = ' " + u r l + " '   F l a s h V a r s = ' " + v a r s + " '   w m o d e = ' t r a n s p a r e n t '   m e n u = ' f a l s e '   q u a l i t y = ' h i g h '   w i d t h = ' " + w + " '   h e i g h t = ' " + h + " '   a l l o w S c r i p t A c c e s s = ' a l w a y s '   t y p e = ' a p p l i c a t i o n / x - s h o c k w a v e - f l a s h '   p l u g i n s p a g e = ' h t t p : / / w w w . m a c r o m e d i a . c o m / g o / g e t f l a s h p l a y e r '   / > " +  
         " < / o b j e c t > " ;  
         d o c u m e n t . w r i t e ( f l a s h S t r ) ;  
 }  
  
 f u n c t i o n   r e v e a l M o d a l ( d i v I D )  
 {  
         w i n d o w . o n s c r o l l   =   f u n c t i o n   ( )   {   d o c u m e n t . g e t E l e m e n t B y I d ( d i v I D ) . s t y l e . t o p   =   d o c u m e n t . b o d y . s c r o l l T o p ;   } ;  
         d o c u m e n t . g e t E l e m e n t B y I d ( d i v I D ) . s t y l e . d i s p l a y   =   " b l o c k " ;  
         d o c u m e n t . g e t E l e m e n t B y I d ( d i v I D ) . s t y l e . t o p   =   d o c u m e n t . b o d y . s c r o l l T o p ;          
  
     v a r   b c g D i v   =   d o c u m e n t . g e t E l e m e n t B y I d ( " d i v B a c k g r o u n d " ) ;  
                 b c g D i v . s t y l e . d i s p l a y = " b l o c k " ;  
                 i f   ( b c g D i v   ! =   n u l l )  
                 {                      
                         i f   ( d o c u m e n t . b o d y . c l i e n t 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 )  
                         {  
                                 b c g D i v . s t y l e . 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   +   " p x " ;  
                         }  
                         e l s e  
                         {  
                                 b c g D i v . s t y l e . 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   +   " p x "   ;  
                         }  
                         b c g D i v . s t y l e . w i d t h   =   " 1 0 0 % " ;  
                 }  
 }  
  
 f u n c t i o n   h i d e M o d a l ( d i v I D )  
 {  
         d o c u m e n t . g e t E l e m e n t B y I d ( d i v I D ) . s t y l e . d i s p l a y   =   " n o n e " ;        
  
   v a r   b c g D i v   =   d o c u m e n t . g e t E l e m e n t B y I d ( " d i v B a c k g r o u n d " ) ;  
                 b c g D i v . s t y l e . d i s p l a y = " n o n e " ;  
 } 
