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