ÿþ/ / N h Û  c h é p   k e m   t h e o   f i l e   p l a y e r . s w f   v à o   t h °  m åc   g Ñc  
 f u n c t i o n   V i e w V i d e o ( t a g I D ,   f i l e ,   p i c t u r e )  
 {        
 	 t r y  
 	 {  
 	 	 / / i f ( f i l e = = " " ) r e t u r n ;  
 	 	 v a r   s t r S p l i t   =   f i l e . s p l i t ( " . " ) ;  
 	 	 v a r   e x t   =   s t r S p l i t [ 1 ]   +   " " ;  
 	 	 e x t   =   e x t . t o U p p e r C a s e ( ) ;  
 	 	 v a r   m e d i a E x t e n s i o n s   =   " F L V   M P E G   A V I   A F S   W M A   W M V   W A V   M P 3   M I D I   A I F F " ;  
 	 	 i f ( m e d i a E x t e n s i o n s . i n d e x O f ( e x t ) = = - 1 )  
 	 	 {  
 	 	 	 a l e r t ( " o ¡n   p h i m   n à y   ã   b Ë  h Ïn g ,   c h ú n g   t Ñi   s ½  k h ¯c   p h åc   s Ûm ,   m o n g   q u í   k h á c h   t h ô n g   c £m " ) ;  
 	 	 	 / / r e t u r n ;  
 	 	 }  
 	 }  
 	 c a t c h ( e )  
 	 {  
 	 	 a l e r t ( e )  
 	 }  
 	  
 	 t r y {  
 	         v a r   f i l e N a m e   =     f i l e ; / / " U P L O A D S / V i d e o / "   +  
 	         v a r   v i d e o H T M L   =   " " ;  
 	         v a r   w i d t h   =   " 3 7 9 " ;  
 	         v a r   h e i g h t   =   " 3 4 0 " ;  
 	          
 	         v i d e o H T M L   + =   ' < t a b l e   w i d t h = 1 0 0 %   h e i g h t = 2 3   b o r d e r = " 0 "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 " > ' ;  
 	         v i d e o H T M L   + =   ' < t r > < t d   v a l i g n = " t o p "   b a c k g r o u n d = " i m a g e s / T o p _ T i t l e _ m e d i a . g i f " > ' ;  
 	         v i d e o H T M L   + =   ' < i m g   a l i g n = r i g h t   o n c l i c k = C l o s e _ v i d e o ( " '   +   t a g I D   +   ' " )   s r c = " i m a g e s / T o p _ T i t l e _ m e d i a _ b u t t o n . g i f "   b o r d e r = " 0 "   s t y l e = " c u r s o r : p o i n t e r "   / > ' ;  
 	         v i d e o H T M L   + =   ' < / t d > < / t r > < / t a b l e > ' ;  
 	         / / v i d e o H T M L   + =   " < p   a l i g n = r i g h t > < b   o n c l i c k = C l o s e _ v i d e o ( ' " + t a g I D + " ' )   s t y l e = ' c u r s o r : p o i n t e r ;   f o n t - c o l o r : w h i t e ;   f o n t - s i z e : 1 4 p x ' > ó n g < / b > < / p > " ;  
 	         i f ( f i l e . i n d e x O f ( ' f l v ' ) > - 1 )  
 	         {  
 	 	         v i d e o 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 '   w i d t h = ' "   +   w i d t h   +   " '   h e i g h t = ' "   +   h e i g h t   +   " '   i d = ' f l v P l a y e r ' > " ;  
 	 	         v i d e o H T M L   + =   	 " < p a r a m   n a m e = ' a l l o w F u l l S c r e e n '   v a l u e = ' t r u e ' > "  
 	 	         v i d e o H T M L   + =   	 " < p a r a m   n a m e = ' m o v i e '   v a l u e = ' p l a y e r . s w f ? m o v i e = "   +   f i l e N a m e   +   " & b g c o l o r = 0 x 2 0 5 1 7 1 & f g c o l o r = 0 x 1 3 A B E C & v o l u m e = 1 0 0 & a u t o p l a y = o n & a u t o l o a d = o n & a u t o r e w i n d = o n & c l i c k u r l = & c l i c k t a r g e t = ' > "  
 	 	         v i d e o H T M L   + =     	 " < e m b e d   s r c = ' p l a y e r . s w f ? m o v i e = "   +   f i l e N a m e   +   " & b g c o l o r = 0 x 0 5 1 6 1 5 & f g c o l o r = 0 x 1 3 A B E C & v o l u m e = 1 0 0 & a u t o p l a y = o n & a u t o l o a d = o n & a u t o r e w i n d = o n & c l i c k u r l = & c l i c k t a r g e t = '   w i d t h = ' "   +   w i d t h   +   " '   h e i g h t = ' "   +   h e i g h t   +   " '   a l l o w F u l l S c r e e n = ' t r u e '   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 ' > "  
 	 	         v i d e o H T M L   + =   " < / o b j e c t > "  
 	         }  
 	         e l s e  
 	         { / /   T r u o n g   h o p   k h o n g   p h a i   l a   f i l e   * . F L V  
 	 	         v i d e o H T M L   + =   ' < E M B E D   '  
 	 	         v i d e o H T M L   + =   	 ' p l u g i n s p a g e = " h t t p : / / w w w . m i c r o s o f t . c o m / W i n d o w s / D o w n l o a d s / C o n t e n t s / P r o d u c t s / M e d i a P l a y e r / "   '  
 	 	         v i d e o H T M L   + =   	 ' s r c = " ' +   f i l e N a m e   + ' " '  
 	 	         v i d e o H T M L   + =   	 ' t y p e = " a p p l i c a t i o n / x - m p l a y e r 2 "   '  
 	 	         v i d e o H T M L   + =   	 ' S h o w S t a t u s B a r = " 1 "   '  
 	 	         v i d e o H T M L   + = 	 ' A u t o S t a r t = " 1 "   '  
 	 	         v i d e o H T M L   + = 	 ' L o o p = " 1 " '    
 	 	         v i d e o H T M L   + = 	 ' C l o s e = " y e s " '  
 	 	         v i d e o H T M L   + = 	 ' E x i t = " y e s " '  
 	 	         v i d e o H T M L   + = 	 ' S h o w C o n t r o l s = " 1 " '    
 	 	         v i d e o H T M L   + = 	 ' w i d t h = " ' + w i d t h + ' "   h e i g h t = " ' + h e i g h t + ' " > '  
 	 	         v i d e o H T M L   + ' < / e m b e d > '  
 	 	         v i d e o H T M L   + = ' ' ;  
 	         }  
 	         v a r   s c r w   =   s c r e e n . a v a i l W i d t h ;  
 	         v a r   s c r h   =   s c r e e n . a v a i l H e i g h t ;  
 	          
 	         v a r   o   =   d o c u m e n t . g e t E l e m e n t B y I d ( t a g I D ) ;  
 	         o . i n n e r H T M L   =   v i d e o H T M L ;  
 	         o . s t y l e . l e f t   =   ( s c r w - w i d t h ) / 2   +   " " ;  
 	         o . s t y l e . t o p   =   ( s c r h - h e i g h t ) / 2   +   " " ;  
                  
                 o . s t y l e . d i s p l a y   =   " " ;  
         } c a t c h ( e ) { a l e r t ( e ) }  
 }  
 f u n c t i o n   C l o s e _ v i d e o ( t a g I D )  
 {  
         v a r   o   =   d o c u m e n t . g e t E l e m e n t B y I d ( t a g I D ) ;  
         o . i n n e r H T M L   =   " " ;  
         o . s t y l e . d i s p l a y   =   " n o n e " ;  
 } 
