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