ÿþf u n c t i o n   d i s p l a y A d ( c o n t a i n e r ,   s r c ,   w i d t h ,   h e i g h t )  
 {  
         v a r   p l a y P a r a m ;  
          
         i f   ( g e t C o o k i e ( s r c )   ! =   " t r u e " )  
         {  
                 s e t C o o k i e ( s r c ,   " t r u e " ) ;  
                 p l a y P a r a m   =   " t r u e " ;  
         }  
         e l s e  
         {  
                 p l a y P a r a m   =   " f a l s e " ;  
         }  
          
         s e t I n t e r v a l ( " p o s i t i o n i t ( ' " + c o n t a i n e r + " ' ) " , 1 0 0 ) ;    
         d o c u m e n t . g e t E l e m e n t B y I d ( c o n t a i n e r ) . i n n e r H T M L   =   " < 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 = 7 , 0 , 0 , 0 '   w i d t h = ' " + w i d t h + " '   h e i g h t = ' " + h e i g h t + " '   i d = ' m y f l a s h '   a l i g n = ' m i d d l e ' > < p a r a m   n a m e = ' p l a y '   v a l u e = ' " + p l a y P a r a m + " '   / > < 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 = ' " + s r c + " '   / > < 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 '   / > < 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 ' > < e m b e d   p l a y = ' " + p l a y P a r a m + " '   s r c = ' " + s r c + " '   q u a l i t y = ' h i g h '   b g c o l o r = ' # f f f f f f '   w i d t h = ' " + h e i g h t + " '   h e i g h t = ' " + w i d t h + " '   n a m e = ' m y m o v i e '   a l i g n = ' m i d d l e '   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 '   w m o d e = ' t r a n s p a r e n t '   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 > " ;          
 }  
  
 f u n c t i o n   p o s i t i o n i t ( c o n t a i n e r ) {  
         v a r   c r o s s o b j = d o c u m e n t . a l l ?   d o c u m e n t . a l l . s t a t i c V i d e o   :   d o c u m e n t . g e t E l e m e n t B y I d ( c o n t a i n e r )  
         v a r   i e b o d y = ( d o c u m e n t . c o m p a t M o d e   & &   d o c u m e n t . c o m p a t M o d e   ! =   " B a c k C o m p a t " ) ?   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 . b o d y  
         v a r   d s o c l e f t = d o c u m e n t . a l l   ?   i e b o d y . s c r o l l L e f t   :   p a g e X O f f s e t  
         v a r   d s o c t o p = d o c u m e n t . a l l ?   i e b o d y . s c r o l l T o p   :   p a g e Y O f f s e t  
         i f   ( d o c u m e n t . a l l | | d o c u m e n t . g e t E l e m e n t B y I d ) {  
  
         c r o s s o b j . s t y l e . t o p = 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 - 4 1 0 + d s o c t o p + " p x "  
         c r o s s o b j . s t y l e . 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 . c l i e n t W i d t h - 3 0 0 + d s o c l e f t + " p x "  
         }  
 }  
  
 f u n c t i o n   c l o s e F l a s h ( ) {    
         v a r   c r o s s 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 ( " s t a t i c V i d e o " ) ;  
         c r o s s o b j . s t y l e . d i s p l a y = " n o n e " ;  
 }  
  
 f u n c t i o n   g e t C o o k i e ( k e y )   {  
     v a r   s e a r c h   =   k e y   +   " = " ;  
     v a r   r e t u r n v a l u e   =   " " ;  
     v a r   o f f s e t ,   e n d ;  
      
     i f   ( d o c u m e n t . c o o k i e . l e n g t h   >   0 )    
     {  
         o f f s e t   =   d o c u m e n t . c o o k i e . i n d e x O f ( s e a r c h ) ;  
         i f   ( o f f s e t   ! =   - 1 )    
         {    
             o f f s e t   + =   s e a r c h . l e n g t h ;  
             e n d   =   d o c u m e n t . c o o k i e . i n d e x O f ( " ; " ,   o f f s e t ) ;  
             i f   ( e n d   = =   - 1 )   e n d   =   d o c u m e n t . c o o k i e . l e n g t h ;  
             {  
                 r e t u r n v a l u e   = u n e s c a p e ( d o c u m e n t . c o o k i e . s u b s t r i n g ( o f f s e t ,   e n d ) ) ;  
             }  
         }  
       }  
     r e t u r n   r e t u r n v a l u e ;  
 }  
  
 f u n c t i o n   s e t C o o k i e ( k e y ,   v a l u e )  
 {  
         d o c u m e n t . c o o k i e = k e y   +   " = "   +   v a l u e ;  
 } 
