ÿþi f ( t y p e o f   j w p l a y e r = = " u n d e f i n e d " ) { v a r   j w p l a y e r = f u n c t i o n ( a ) { i f ( j w p l a y e r . a p i ) { r e t u r n   j w p l a y e r . a p i . s e l e c t P l a y e r ( a ) } } ; v a r   $ j w = j w p l a y e r ; j w p l a y e r . v e r s i o n = " 5 . 6 . 1 7 6 8 " ; ( f u n c t i o n ( b ) { b . u t i l s = f u n c t i o n ( ) { } ; b . u t i l s . t y p e O f = f u n c t i o n ( d ) { v a r   c = t y p e o f   d ; i f ( c = = = " o b j e c t " ) { i f ( d ) { i f ( d   i n s t a n c e o f   A r r a y ) { c = " a r r a y " } } e l s e { c = " n u l l " } } r e t u r n   c } ; b . u t i l s . e x t e n d = f u n c t i o n ( ) { v a r   c = b . u t i l s . e x t e n d [ " a r g u m e n t s " ] ; i f ( c . l e n g t h > 1 ) { f o r ( v a r   e = 1 ; e < c . l e n g t h ; e + + ) { f o r ( v a r   d   i n   c [ e ] ) { c [ 0 ] [ d ] = c [ e ] [ d ] } } r e t u r n   c [ 0 ] } r e t u r n   n u l l } ; b . u t i l s . c l o n e = f u n c t i o n ( f ) { v a r   c ; v a r   d = b . u t i l s . c l o n e [ " a r g u m e n t s " ] ; i f ( d . l e n g t h = = 1 ) { s w i t c h ( b . u t i l s . t y p e O f ( d [ 0 ] ) ) { c a s e " o b j e c t " : c = { } ; f o r ( v a r   e   i n   d [ 0 ] ) { c [ e ] = b . u t i l s . c l o n e ( d [ 0 ] [ e ] ) } b r e a k ; c a s e " a r r a y " : c = [ ] ; f o r ( v a r   e   i n   d [ 0 ] ) { c [ e ] = b . u t i l s . c l o n e ( d [ 0 ] [ e ] ) } b r e a k ; d e f a u l t : r e t u r n   d [ 0 ] ; b r e a k } } r e t u r n   c } ; b . u t i l s . e x t e n s i o n = f u n c t i o n ( c ) { c = c . s u b s t r i n g ( c . l a s t I n d e x O f ( " / " ) + 1 , c . l e n g t h ) ; c = c . s p l i t ( " ? " ) [ 0 ] ; i f ( c . l a s t I n d e x O f ( " . " ) > - 1 ) { r e t u r n   c . s u b s t r ( c . l a s t I n d e x O f ( " . " ) + 1 , c . l e n g t h ) . t o L o w e r C a s e ( ) } r e t u r n } ; b . u t i l s . h t m l = f u n c t i o n ( c , d ) { c . i n n e r H T M L = d } ; b . u t i l s . w r a p = f u n c t i o n ( c , d ) { c . p a r e n t N o d e . r e p l a c e C h i l d ( d , c ) ; d . a p p e n d C h i l d ( c ) } ; b . u t i l s . a j a x = f u n c t i o n ( g , f , c ) { v a r   e ; i f ( w i n d o w . X M L H t t p R e q u e s t ) { e = n e w   X M L H t t p R e q u e s t ( ) } e l s e { e = n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) } e . o n r e a d y s t a t e c h a n g e = f u n c t i o n ( ) { i f ( e . r e a d y S t a t e = = = 4 ) { i f ( e . s t a t u s = = = 2 0 0 ) { i f ( f ) { f ( e ) } } e l s e { i f ( c ) { c ( g ) } } } } ; t r y { e . o p e n ( " G E T " , g , t r u e ) ; e . s e n d ( n u l l ) } c a t c h ( d ) { i f ( c ) { c ( g ) } } r e t u r n   e } ; b . u t i l s . l o a d = f u n c t i o n ( d , e , c ) { d . o n r e a d y s t a t e c h a n g e = f u n c t i o n ( ) { i f ( d . r e a d y S t a t e = = = 4 ) { i f ( d . s t a t u s = = = 2 0 0 ) { i f ( e ) { e ( ) } } e l s e { i f ( c ) { c ( ) } } } } } ; b . u t i l s . f i n d = f u n c t i o n ( d , c ) { r e t u r n   d . g e t E l e m e n t s B y T a g N a m e ( c ) } ; b . u t i l s . a p p e n d = f u n c t i o n ( c , d ) { c . a p p e n d C h i l d ( d ) } ; b . u t i l s . i s I E = f u n c t i o n ( ) { r e t u r n ( ( ! + " \ v 1 " ) | | ( t y p e o f   w i n d o w . A c t i v e X O b j e c t ! = " u n d e f i n e d " ) ) } ; b . u t i l s . i s L e g a c y A n d r o i d = f u n c t i o n ( ) { v a r   c = n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) ; r e t u r n ( c . m a t c h ( / a n d r o i d   2 . [ 0 1 2 ] / i ) ! = = n u l l ) } ; b . u t i l s . i s I O S = f u n c t i o n ( ) { v a r   c = n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) ; r e t u r n ( c . m a t c h ( / i P ( h o n e | a d ) / i ) ! = = n u l l ) } ; b . u t i l s . g e t F i r s t P l a y l i s t I t e m F r o m C o n f i g = f u n c t i o n ( c ) { v a r   d = { } ; v a r   e ; i f ( c . p l a y l i s t & & c . p l a y l i s t . l e n g t h ) { e = c . p l a y l i s t [ 0 ] } e l s e { e = c } d . f i l e = e . f i l e ; d . l e v e l s = e . l e v e l s ; d . s t r e a m e r = e . s t r e a m e r ; d . p l a y l i s t f i l e = e . p l a y l i s t f i l e ; d . p r o v i d e r = e . p r o v i d e r ; i f ( ! d . p r o v i d e r ) { i f ( d . f i l e & & ( d . f i l e . t o L o w e r C a s e ( ) . i n d e x O f ( " y o u t u b e . c o m " ) > - 1 | | d . f i l e . t o L o w e r C a s e ( ) . i n d e x O f ( " y o u t u . b e " ) > - 1 ) ) { d . p r o v i d e r = " y o u t u b e " } i f ( d . s t r e a m e r & & d . s t r e a m e r . t o L o w e r C a s e ( ) . i n d e x O f ( " r t m p : / / " ) = = 0 ) { d . p r o v i d e r = " r t m p " } i f ( e . t y p e ) { d . p r o v i d e r = e . t y p e . t o L o w e r C a s e ( ) } } r e t u r n   d } ; b . u t i l s . g e t O u t e r H T M L = f u n c t i o n ( d ) { i f ( d . o u t e r H T M L ) { r e t u r n   d . o u t e r H T M L } e l s e { v a r   e = d . p a r e n t N o d e ; v a r   c = d o c u m e n t . c r e a t e E l e m e n t ( e . t a g N a m e ) ; v a r   g = d o c u m e n t . c r e a t e E l e m e n t ( d . t a g N a m e ) ; e . r e p l a c e C h i l d ( g , d ) ; c . a p p e n d C h i l d ( d ) ; v a r   f = c . i n n e r H T M L ; e . r e p l a c e C h i l d ( d , g ) ; r e t u r n   f } } ; b . u t i l s . s e t O u t e r H T M L = f u n c t i o n ( f , e ) { i f ( f . o u t e r H T M L ) { f . o u t e r H T M L = e } e l s e { v a r   g = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; g . i n n e r H T M L = e ; v a r   c = d o c u m e n t . c r e a t e R a n g e ( ) ; c . s e l e c t N o d e C o n t e n t s ( g ) ; v a r   d = c . e x t r a c t C o n t e n t s ( ) ; f . p a r e n t N o d e . i n s e r t B e f o r e ( d , f ) ; f . p a r e n t N o d e . r e m o v e C h i l d ( f ) } } ; b . u t i l s . h a s F l a s h = f u n c t i o n ( ) { i f ( t y p e o f   n a v i g a t o r . p l u g i n s ! = " u n d e f i n e d " & & t y p e o f   n a v i g a t o r . p l u g i n s [ " S h o c k w a v e   F l a s h " ] ! = " u n d e f i n e d " ) { r e t u r n   t r u e } i f ( t y p e o f   w i n d o w . A c t i v e X O b j e c t ! = " u n d e f i n e d " ) { t r y { n e w   A c t i v e X O b j e c t ( " S h o c k w a v e F l a s h . S h o c k w a v e F l a s h " ) ; r e t u r n   t r u e } c a t c h ( c ) { } } r e t u r n   f a l s e } ; b . u t i l s . g e t P l u g i n N a m e = f u n c t i o n ( c ) { i f ( c . l a s t I n d e x O f ( " / " ) > = 0 ) { c = c . s u b s t r i n g ( c . l a s t I n d e x O f ( " / " ) + 1 , c . l e n g t h ) } i f ( c . l a s t I n d e x O f ( " - " ) > = 0 ) { c = c . s u b s t r i n g ( 0 , c . l a s t I n d e x O f ( " - " ) ) } i f ( c . l a s t I n d e x O f ( " . s w f " ) > = 0 ) { c = c . s u b s t r i n g ( 0 , c . l a s t I n d e x O f ( " . s w f " ) ) } i f ( c . l a s t I n d e x O f ( " . j s " ) > = 0 ) { c = c . s u b s t r i n g ( 0 , c . l a s t I n d e x O f ( " . j s " ) ) } r e t u r n   c } ; b . u t i l s . g e t P l u g i n V e r s i o n = f u n c t i o n ( c ) { i f ( c . l a s t I n d e x O f ( " - " ) > = 0 ) { i f ( c . l a s t I n d e x O f ( " . j s " ) > = 0 ) { r e t u r n   c . s u b s t r i n g ( c . l a s t I n d e x O f ( " - " ) + 1 , c . l a s t I n d e x O f ( " . j s " ) ) } e l s e { i f ( c . l a s t I n d e x O f ( " . s w f " ) > = 0 ) { r e t u r n   c . s u b s t r i n g ( c . l a s t I n d e x O f ( " - " ) + 1 , c . l a s t I n d e x O f ( " . s w f " ) ) } e l s e { r e t u r n   c . s u b s t r i n g ( c . l a s t I n d e x O f ( " - " ) + 1 ) } } } r e t u r n " " } ; b . u t i l s . g e t A b s o l u t e P a t h = f u n c t i o n ( j , h ) { i f ( h = = = u n d e f i n e d ) { h = d o c u m e n t . l o c a t i o n . h r e f } i f ( j = = = u n d e f i n e d ) { r e t u r n   u n d e f i n e d } i f ( a ( j ) ) { r e t u r n   j } v a r   k = h . s u b s t r i n g ( 0 , h . i n d e x O f ( " : / / " ) + 3 ) ; v a r   g = h . s u b s t r i n g ( k . l e n g t h , h . i n d e x O f ( " / " , k . l e n g t h + 1 ) ) ; v a r   d ; i f ( j . i n d e x O f ( " / " ) = = = 0 ) { d = j . s p l i t ( " / " ) } e l s e { v a r   e = h . s p l i t ( " ? " ) [ 0 ] ; e = e . s u b s t r i n g ( k . l e n g t h + g . l e n g t h + 1 , e . l a s t I n d e x O f ( " / " ) ) ; d = e . s p l i t ( " / " ) . c o n c a t ( j . s p l i t ( " / " ) ) } v a r   c = [ ] ; f o r ( v a r   f = 0 ; f < d . l e n g t h ; f + + ) { i f ( ! d [ f ] | | d [ f ] = = = u n d e f i n e d | | d [ f ] = = " . " ) { c o n t i n u e } e l s e { i f ( d [ f ] = = " . . " ) { c . p o p ( ) } e l s e { c . p u s h ( d [ f ] ) } } } r e t u r n   k + g + " / " + c . j o i n ( " / " ) } ; f u n c t i o n   a ( d ) { i f ( d = = = n u l l ) { r e t u r n } v a r   e = d . i n d e x O f ( " : / / " ) ; v a r   c = d . i n d e x O f ( " ? " ) ; r e t u r n ( e > 0 & & ( c < 0 | | ( c > e ) ) ) } b . u t i l s . p l u g i n P a t h T y p e = { A B S O L U T E : " A B S O L U T E " , R E L A T I V E : " R E L A T I V E " , C D N : " C D N " } ; b . u t i l s . g e t P l u g i n P a t h T y p e = f u n c t i o n ( d ) { i f ( t y p e o f   d ! = " s t r i n g " ) { r e t u r n } d = d . s p l i t ( " ? " ) [ 0 ] ; v a r   e = d . i n d e x O f ( " : / / " ) ; i f ( e > 0 ) { r e t u r n   b . u t i l s . p l u g i n P a t h T y p e . A B S O L U T E } v a r   c = d . i n d e x O f ( " / " ) ; v a r   f = b . u t i l s . e x t e n s i o n ( d ) ; i f ( e < 0 & & c < 0 & & ( ! f | | ! i s N a N ( f ) ) ) { r e t u r n   b . u t i l s . p l u g i n P a t h T y p e . C D N } r e t u r n   b . u t i l s . p l u g i n P a t h T y p e . R E L A T I V E } ; b . u t i l s . m a p E m p t y = f u n c t i o n ( c ) { f o r ( v a r   d   i n   c ) { r e t u r n   f a l s e } r e t u r n   t r u e } ; b . u t i l s . m a p L e n g t h = f u n c t i o n ( d ) { v a r   c = 0 ; f o r ( v a r   e   i n   d ) { c + + } r e t u r n   c } ; b . u t i l s . l o g = f u n c t i o n ( d , c ) { i f ( t y p e o f   c o n s o l e ! = " u n d e f i n e d " & & t y p e o f   c o n s o l e . l o g ! = " u n d e f i n e d " ) { i f ( c ) { c o n s o l e . l o g ( d , c ) } e l s e { c o n s o l e . l o g ( d ) } } } ; b . u t i l s . c s s = f u n c t i o n ( d , g , c ) { i f ( d ! = = u n d e f i n e d ) { f o r ( v a r   e   i n   g ) { t r y { i f ( t y p e o f   g [ e ] = = = " u n d e f i n e d " ) { c o n t i n u e } e l s e { i f ( t y p e o f   g [ e ] = = " n u m b e r " & & ! ( e = = " z I n d e x " | | e = = " o p a c i t y " ) ) { i f ( i s N a N ( g [ e ] ) ) { c o n t i n u e } i f ( e . m a t c h ( / c o l o r / i ) ) { g [ e ] = " # " + b . u t i l s . s t r i n g s . p a d ( g [ e ] . t o S t r i n g ( 1 6 ) , 6 ) } e l s e { g [ e ] = M a t h . c e i l ( g [ e ] ) + " p x " } } } d . s t y l e [ e ] = g [ e ] } c a t c h ( f ) { } } } } ; b . u t i l s . i s Y o u T u b e = f u n c t i o n ( c ) { r e t u r n ( c . i n d e x O f ( " y o u t u b e . c o m " ) > - 1 | | c . i n d e x O f ( " y o u t u . b e " ) > - 1 ) } ; b . u t i l s . t r a n s f o r m = f u n c t i o n ( c , d ) { c . s t y l e . w e b k i t T r a n s f o r m = d ; c . s t y l e . M o z T r a n s f o r m = d ; c . s t y l e . O T r a n s f o r m = d } ; b . u t i l s . s t r e t c h = f u n c t i o n ( h , m , l , f , k , g ) { i f ( t y p e o f   l = = " u n d e f i n e d " | | t y p e o f   f = = " u n d e f i n e d " | | t y p e o f   k = = " u n d e f i n e d " | | t y p e o f   g = = " u n d e f i n e d " ) { r e t u r n } v a r   d = l / k ; v a r   e = f / g ; v a r   j = 0 ; v a r   i = 0 ; m . s t y l e . o v e r f l o w = " h i d d e n " ; b . u t i l s . t r a n s f o r m ( m , " " ) ; v a r   c = { } ; s w i t c h ( h . t o U p p e r C a s e ( ) ) { c a s e   b . u t i l s . s t r e t c h i n g . N O N E : c . w i d t h = k ; c . h e i g h t = g ; b r e a k ; c a s e   b . u t i l s . s t r e t c h i n g . U N I F O R M : i f ( d > e ) { c . w i d t h = k * e ; c . h e i g h t = g * e } e l s e { c . w i d t h = k * d ; c . h e i g h t = g * d } b r e a k ; c a s e   b . u t i l s . s t r e t c h i n g . F I L L : i f ( d > e ) { c . w i d t h = k * d ; c . h e i g h t = g * d } e l s e { c . w i d t h = k * e ; c . h e i g h t = g * e } b r e a k ; c a s e   b . u t i l s . s t r e t c h i n g . E X A C T F I T : b . u t i l s . t r a n s f o r m ( m , [ " s c a l e ( " , d , " , " , e , " ) " , "   t r a n s l a t e ( 0 p x , 0 p x ) " ] . j o i n ( " " ) ) ; c . w i d t h = k ; c . h e i g h t = g ; b r e a k ; d e f a u l t : b r e a k } c . t o p = ( f - c . h e i g h t ) / 2 ; c . l e f t = ( l - c . w i d t h ) / 2 ; b . u t i l s . c s s ( m , c ) } ; b . u t i l s . s t r e t c h i n g = { N O N E : " N O N E " , F I L L : " F I L L " , U N I F O R M : " U N I F O R M " , E X A C T F I T : " E X A C T F I T " } ; b . u t i l s . d e e p R e p l a c e K e y N a m e = f u n c t i o n ( h , e , c ) { s w i t c h ( b . u t i l s . t y p e O f ( h ) ) { c a s e " a r r a y " : f o r ( v a r   g = 0 ; g < h . l e n g t h ; g + + ) { h [ g ] = b . u t i l s . d e e p R e p l a c e K e y N a m e ( h [ g ] , e , c ) } b r e a k ; c a s e " o b j e c t " : f o r ( v a r   f   i n   h ) { v a r   d = f . r e p l a c e ( n e w   R e g E x p ( e , " g " ) , c ) ; h [ d ] = b . u t i l s . d e e p R e p l a c e K e y N a m e ( h [ f ] , e , c ) ; i f ( f ! = d ) { d e l e t e   h [ f ] } } b r e a k } r e t u r n   h } ; b . u t i l s . i s I n A r r a y = f u n c t i o n ( e , d ) { i f ( ! ( e ) | | ! ( e   i n s t a n c e o f   A r r a y ) ) { r e t u r n   f a l s e } f o r ( v a r   c = 0 ; c < e . l e n g t h ; c + + ) { i f ( d = = = e [ c ] ) { r e t u r n   t r u e } } r e t u r n   f a l s e } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . e v e n t s = f u n c t i o n ( ) { } ; a . e v e n t s . C O M P L E T E = " C O M P L E T E " ; a . e v e n t s . E R R O R = " E R R O R " } ) ( j w p l a y e r ) ; ( f u n c t i o n ( j w p l a y e r ) { j w p l a y e r . e v e n t s . e v e n t d i s p a t c h e r = f u n c t i o n ( d e b u g ) { v a r   _ d e b u g = d e b u g ; v a r   _ l i s t e n e r s ; v a r   _ g l o b a l l i s t e n e r s ; t h i s . r e s e t E v e n t L i s t e n e r s = f u n c t i o n ( ) { _ l i s t e n e r s = { } ; _ g l o b a l l i s t e n e r s = [ ] } ; t h i s . r e s e t E v e n t L i s t e n e r s ( ) ; t h i s . a d d E v e n t L i s t e n e r = f u n c t i o n ( t y p e , l i s t e n e r , c o u n t ) { t r y { i f ( _ l i s t e n e r s [ t y p e ] = = = u n d e f i n e d ) { _ l i s t e n e r s [ t y p e ] = [ ] } i f ( t y p e o f ( l i s t e n e r ) = = " s t r i n g " ) { e v a l ( " l i s t e n e r   =   " + l i s t e n e r ) } _ l i s t e n e r s [ t y p e ] . p u s h ( { l i s t e n e r : l i s t e n e r , c o u n t : c o u n t } ) } c a t c h ( e r r ) { j w p l a y e r . u t i l s . l o g ( " e r r o r " , e r r ) } r e t u r n   f a l s e } ; t h i s . r e m o v e E v e n t L i s t e n e r = f u n c t i o n ( t y p e , l i s t e n e r ) { t r y { f o r ( v a r   l i s t e n e r I n d e x = 0 ; l i s t e n e r I n d e x < _ l i s t e n e r s [ t y p e ] . l e n g t h ; l i s t e n e r I n d e x + + ) { i f ( _ l i s t e n e r s [ t y p e ] [ l i s e n t e r I n d e x ] . t o S t r i n g ( ) = = l i s t e n e r . t o S t r i n g ( ) ) { _ l i s t e n e r s [ t y p e ] . s l i c e ( l i s e n t e r I n d e x , l i s e n t e r I n d e x + 1 ) ; b r e a k } } } c a t c h ( e r r ) { j w p l a y e r . u t i l s . l o g ( " e r r o r " , e r r ) } r e t u r n   f a l s e } ; t h i s . a d d G l o b a l L i s t e n e r = f u n c t i o n ( l i s t e n e r , c o u n t ) { t r y { i f ( t y p e o f ( l i s t e n e r ) = = " s t r i n g " ) { e v a l ( " l i s t e n e r   =   " + l i s t e n e r ) } _ g l o b a l l i s t e n e r s . p u s h ( { l i s t e n e r : l i s t e n e r , c o u n t : c o u n t } ) } c a t c h ( e r r ) { j w p l a y e r . u t i l s . l o g ( " e r r o r " , e r r ) } r e t u r n   f a l s e } ; t h i s . r e m o v e G l o b a l L i s t e n e r = f u n c t i o n ( l i s t e n e r ) { t r y { f o r ( v a r   g l o b a l L i s t e n e r I n d e x = 0 ; g l o b a l L i s t e n e r I n d e x < _ g l o b a l l i s t e n e r s . l e n g t h ; g l o b a l L i s t e n e r I n d e x + + ) { i f ( _ g l o b a l l i s t e n e r s [ g l o b a l L i s t e n e r I n d e x ] . t o S t r i n g ( ) = = l i s t e n e r . t o S t r i n g ( ) ) { _ g l o b a l l i s t e n e r s . s l i c e ( g l o b a l L i s t e n e r I n d e x , g l o b a l L i s t e n e r I n d e x + 1 ) ; b r e a k } } } c a t c h ( e r r ) { j w p l a y e r . u t i l s . l o g ( " e r r o r " , e r r ) } r e t u r n   f a l s e } ; t h i s . s e n d E v e n t = f u n c t i o n ( t y p e , d a t a ) { i f ( d a t a = = = u n d e f i n e d ) { d a t a = { } } i f ( _ d e b u g ) { j w p l a y e r . u t i l s . l o g ( t y p e , d a t a ) } i f ( t y p e o f   _ l i s t e n e r s [ t y p e ] ! = " u n d e f i n e d " ) { f o r ( v a r   l i s t e n e r I n d e x = 0 ; l i s t e n e r I n d e x < _ l i s t e n e r s [ t y p e ] . l e n g t h ; l i s t e n e r I n d e x + + ) { t r y { _ l i s t e n e r s [ t y p e ] [ l i s t e n e r I n d e x ] . l i s t e n e r ( d a t a ) } c a t c h ( e r r ) { j w p l a y e r . u t i l s . l o g ( " T h e r e   w a s   a n   e r r o r   w h i l e   h a n d l i n g   a   l i s t e n e r :   " + e r r . t o S t r i n g ( ) , _ l i s t e n e r s [ t y p e ] [ l i s t e n e r I n d e x ] . l i s t e n e r ) } i f ( _ l i s t e n e r s [ t y p e ] [ l i s t e n e r I n d e x ] ) { i f ( _ l i s t e n e r s [ t y p e ] [ l i s t e n e r I n d e x ] . c o u n t = = = 1 ) { d e l e t e   _ l i s t e n e r s [ t y p e ] [ l i s t e n e r I n d e x ] } e l s e { i f ( _ l i s t e n e r s [ t y p e ] [ l i s t e n e r I n d e x ] . c o u n t > 0 ) { _ l i s t e n e r s [ t y p e ] [ l i s t e n e r I n d e x ] . c o u n t = _ l i s t e n e r s [ t y p e ] [ l i s t e n e r I n d e x ] . c o u n t - 1 } } } } } f o r ( v a r   g l o b a l L i s t e n e r I n d e x = 0 ; g l o b a l L i s t e n e r I n d e x < _ g l o b a l l i s t e n e r s . l e n g t h ; g l o b a l L i s t e n e r I n d e x + + ) { t r y { _ g l o b a l l i s t e n e r s [ g l o b a l L i s t e n e r I n d e x ] . l i s t e n e r ( d a t a ) } c a t c h ( e r r ) { j w p l a y e r . u t i l s . l o g ( " T h e r e   w a s   a n   e r r o r   w h i l e   h a n d l i n g   a   l i s t e n e r :   " + e r r . t o S t r i n g ( ) , _ g l o b a l l i s t e n e r s [ g l o b a l L i s t e n e r I n d e x ] . l i s t e n e r ) } i f ( _ g l o b a l l i s t e n e r s [ g l o b a l L i s t e n e r I n d e x ] ) { i f ( _ g l o b a l l i s t e n e r s [ g l o b a l L i s t e n e r I n d e x ] . c o u n t = = = 1 ) { d e l e t e   _ g l o b a l l i s t e n e r s [ g l o b a l L i s t e n e r I n d e x ] } e l s e { i f ( _ g l o b a l l i s t e n e r s [ g l o b a l L i s t e n e r I n d e x ] . c o u n t > 0 ) { _ g l o b a l l i s t e n e r s [ g l o b a l L i s t e n e r I n d e x ] . c o u n t = _ g l o b a l l i s t e n e r s [ g l o b a l L i s t e n e r I n d e x ] . c o u n t - 1 } } } } } } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { v a r   b = { } ; a . u t i l s . a n i m a t i o n s = f u n c t i o n ( ) { } ; a . u t i l s . a n i m a t i o n s . t r a n s f o r m = f u n c t i o n ( c , d ) { c . s t y l e . w e b k i t T r a n s f o r m = d ; c . s t y l e . M o z T r a n s f o r m = d ; c . s t y l e . O T r a n s f o r m = d ; c . s t y l e . m s T r a n s f o r m = d } ; a . u t i l s . a n i m a t i o n s . t r a n s f o r m O r i g i n = f u n c t i o n ( c , d ) { c . s t y l e . w e b k i t T r a n s f o r m O r i g i n = d ; c . s t y l e . M o z T r a n s f o r m O r i g i n = d ; c . s t y l e . O T r a n s f o r m O r i g i n = d ; c . s t y l e . m s T r a n s f o r m O r i g i n = d } ; a . u t i l s . a n i m a t i o n s . r o t a t e = f u n c t i o n ( c , d ) { a . u t i l s . a n i m a t i o n s . t r a n s f o r m ( c , [ " r o t a t e ( " , d , " d e g ) " ] . j o i n ( " " ) ) } ; a . u t i l s . c a n c e l A n i m a t i o n = f u n c t i o n ( c ) { d e l e t e   b [ c . i d ] } ; a . u t i l s . f a d e T o = f u n c t i o n ( l , f , e , i , h , d ) { i f ( b [ l . i d ] ! = d & & d ! = = u n d e f i n e d ) { r e t u r n } v a r   c = n e w   D a t e ( ) . g e t T i m e ( ) ; i f ( d > c ) { s e t T i m e o u t ( f u n c t i o n ( ) { a . u t i l s . f a d e T o ( l , f , e , i , 0 , d ) } , d - c ) } l . s t y l e . d i s p l a y = " b l o c k " ; i f ( i = = = u n d e f i n e d ) { i = l . s t y l e . o p a c i t y = = = " " ? 1 : l . s t y l e . o p a c i t y } i f ( l . s t y l e . o p a c i t y = = f & & l . s t y l e . o p a c i t y ! = = " " & & d ! = = u n d e f i n e d ) { i f ( f = = = 0 ) { l . s t y l e . d i s p l a y = " n o n e " } r e t u r n } i f ( d = = = u n d e f i n e d ) { d = c ; b [ l . i d ] = d } i f ( h = = = u n d e f i n e d ) { h = 0 } v a r   j = ( c - d ) / ( e * 1 0 0 0 ) ; j = j > 1 ? 1 : j ; v a r   k = f - i ; v a r   g = i + ( j * k ) ; i f ( g > 1 ) { g = 1 } e l s e { i f ( g < 0 ) { g = 0 } } l . s t y l e . o p a c i t y = g ; i f ( h > 0 ) { b [ l . i d ] = d + h * 1 0 0 0 ; a . u t i l s . f a d e T o ( l , f , e , i , 0 , b [ l . i d ] ) ; r e t u r n } s e t T i m e o u t ( f u n c t i o n ( ) { a . u t i l s . f a d e T o ( l , f , e , i , 0 , d ) } , 1 0 ) } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . u t i l s . a r r a y s = f u n c t i o n ( ) { } ; a . u t i l s . a r r a y s . i n d e x O f = f u n c t i o n ( c , d ) { f o r ( v a r   b = 0 ; b < c . l e n g t h ; b + + ) { i f ( c [ b ] = = d ) { r e t u r n   b } } r e t u r n   - 1 } ; a . u t i l s . a r r a y s . r e m o v e = f u n c t i o n ( c , d ) { v a r   b = a . u t i l s . a r r a y s . i n d e x O f ( c , d ) ; i f ( b > - 1 ) { c . s p l i c e ( b , 1 ) } } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . u t i l s . e x t e n s i o n m a p = { " 3 g p " : { h t m l 5 : " v i d e o / 3 g p p " , f l a s h : " v i d e o " } , " 3 g p p " : { h t m l 5 : " v i d e o / 3 g p p " } , " 3 g 2 " : { h t m l 5 : " v i d e o / 3 g p p 2 " , f l a s h : " v i d e o " } , " 3 g p p 2 " : { h t m l 5 : " v i d e o / 3 g p p 2 " } , f l v : { f l a s h : " v i d e o " } , f 4 a : { h t m l 5 : " a u d i o / m p 4 " } , f 4 b : { h t m l 5 : " a u d i o / m p 4 " , f l a s h : " v i d e o " } , f 4 v : { h t m l 5 : " v i d e o / m p 4 " , f l a s h : " v i d e o " } , m o v : { h t m l 5 : " v i d e o / q u i c k t i m e " , f l a s h : " v i d e o " } , m 4 a : { h t m l 5 : " a u d i o / m p 4 " , f l a s h : " v i d e o " } , m 4 b : { h t m l 5 : " a u d i o / m p 4 " } , m 4 p : { h t m l 5 : " a u d i o / m p 4 " } , m 4 v : { h t m l 5 : " v i d e o / m p 4 " , f l a s h : " v i d e o " } , m p 4 : { h t m l 5 : " v i d e o / m p 4 " , f l a s h : " v i d e o " } , r b s : { f l a s h : " s o u n d " } , a a c : { h t m l 5 : " a u d i o / a a c " , f l a s h : " v i d e o " } , m p 3 : { h t m l 5 : " a u d i o / m p 3 " , f l a s h : " s o u n d " } , o g g : { h t m l 5 : " a u d i o / o g g " } , o g v : { h t m l 5 : " v i d e o / o g g " } , w e b m : { h t m l 5 : " v i d e o / w e b m " } , m 3 u 8 : { h t m l 5 : " a u d i o / x - m p e g u r l " } , g i f : { f l a s h : " i m a g e " } , j p e g : { f l a s h : " i m a g e " } , j p g : { f l a s h : " i m a g e " } , s w f : { f l a s h : " i m a g e " } , p n g : { f l a s h : " i m a g e " } , w a v : { h t m l 5 : " a u d i o / x - w a v " } } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( e ) { e . u t i l s . m e d i a p a r s e r = f u n c t i o n ( ) { } ; v a r   g = { e l e m e n t : { w i d t h : " w i d t h " , h e i g h t : " h e i g h t " , i d : " i d " , " c l a s s " : " c l a s s N a m e " , n a m e : " n a m e " } , m e d i a : { s r c : " f i l e " , p r e l o a d : " p r e l o a d " , a u t o p l a y : " a u t o s t a r t " , l o o p : " r e p e a t " , c o n t r o l s : " c o n t r o l s " } , s o u r c e : { s r c : " f i l e " , t y p e : " t y p e " , m e d i a : " m e d i a " , " d a t a - j w - w i d t h " : " w i d t h " , " d a t a - j w - b i t r a t e " : " b i t r a t e " } , v i d e o : { p o s t e r : " i m a g e " } } ; v a r   f = { } ; e . u t i l s . m e d i a p a r s e r . p a r s e M e d i a = f u n c t i o n ( i ) { r e t u r n   d ( i ) } ; f u n c t i o n   c ( j , i ) { i f ( i = = = u n d e f i n e d ) { i = g [ j ] } e l s e { e . u t i l s . e x t e n d ( i , g [ j ] ) } r e t u r n   i } f u n c t i o n   d ( m , i ) { i f ( f [ m . t a g N a m e . t o L o w e r C a s e ( ) ] & & ( i = = = u n d e f i n e d ) ) { r e t u r n   f [ m . t a g N a m e . t o L o w e r C a s e ( ) ] ( m ) } e l s e { i = c ( " e l e m e n t " , i ) ; v a r   n = { } ; f o r ( v a r   j   i n   i ) { i f ( j ! = " l e n g t h " ) { v a r   l = m . g e t A t t r i b u t e ( j ) ; i f ( ! ( l = = = " " | | l = = = u n d e f i n e d | | l = = = n u l l ) ) { n [ i [ j ] ] = m . g e t A t t r i b u t e ( j ) } } } v a r   k = m . s t y l e [ " # b a c k g r o u n d - c o l o r " ] ; i f ( k & & ! ( k = = " t r a n s p a r e n t " | | k = = " r g b a ( 0 ,   0 ,   0 ,   0 ) " ) ) { n . s c r e e n c o l o r = k } r e t u r n   n } } f u n c t i o n   h ( n , k ) { k = c ( " m e d i a " , k ) ; v a r   l = [ ] ; v a r   j = e . u t i l s . s e l e c t o r s ( " s o u r c e " , n ) ; f o r ( v a r   m   i n   j ) { i f ( ! i s N a N ( m ) ) { l . p u s h ( a ( j [ m ] ) ) } } v a r   o = d ( n , k ) ; i f ( o . f i l e ! = = u n d e f i n e d ) { l [ 0 ] = { f i l e : o . f i l e } } o . l e v e l s = l ; r e t u r n   o } f u n c t i o n   a ( k , j ) { j = c ( " s o u r c e " , j ) ; v a r   i = d ( k , j ) ; i . w i d t h = i . w i d t h ? i . w i d t h : 0 ; i . b i t r a t e = i . b i t r a t e ? i . b i t r a t e : 0 ; r e t u r n   i } f u n c t i o n   b ( k , j ) { j = c ( " v i d e o " , j ) ; v a r   i = h ( k , j ) ; r e t u r n   i } f . m e d i a = h ; f . a u d i o = h ; f . s o u r c e = a ; f . v i d e o = b } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . u t i l s . l o a d e r s t a t u s = { N E W : " N E W " , L O A D I N G : " L O A D I N G " , E R R O R : " E R R O R " , C O M P L E T E : " C O M P L E T E " } ; a . u t i l s . s c r i p t l o a d e r = f u n c t i o n ( c ) { v a r   d = a . u t i l s . l o a d e r s t a t u s . N E W ; v a r   b = n e w   a . e v e n t s . e v e n t d i s p a t c h e r ( ) ; a . u t i l s . e x t e n d ( t h i s , b ) ; t h i s . l o a d = f u n c t i o n ( ) { i f ( d = = a . u t i l s . l o a d e r s t a t u s . N E W ) { d = a . u t i l s . l o a d e r s t a t u s . L O A D I N G ; v a r   e = d o c u m e n t . c r e a t e E l e m e n t ( " s c r i p t " ) ; e . o n l o a d = f u n c t i o n ( f ) { d = a . u t i l s . l o a d e r s t a t u s . C O M P L E T E ; b . s e n d E v e n t ( a . e v e n t s . C O M P L E T E ) } ; e . o n e r r o r = f u n c t i o n ( f ) { d = a . u t i l s . l o a d e r s t a t u s . E R R O R ; b . s e n d E v e n t ( a . e v e n t s . E R R O R ) } ; e . o n r e a d y s t a t e c h a n g e = f u n c t i o n ( ) { i f ( e . r e a d y S t a t e = = " l o a d e d " | | e . r e a d y S t a t e = = " c o m p l e t e " ) { d = a . u t i l s . l o a d e r s t a t u s . C O M P L E T E ; b . s e n d E v e n t ( a . e v e n t s . C O M P L E T E ) } } ; d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " h e a d " ) [ 0 ] . a p p e n d C h i l d ( e ) ; e . s r c = c } } ; t h i s . g e t S t a t u s = f u n c t i o n ( ) { r e t u r n   d } } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . u t i l s . s e l e c t o r s = f u n c t i o n ( b , d ) { i f ( d = = = u n d e f i n e d ) { d = d o c u m e n t } b = a . u t i l s . s t r i n g s . t r i m ( b ) ; v a r   c = b . c h a r A t ( 0 ) ; i f ( c = = " # " ) { r e t u r n   d . g e t E l e m e n t B y I d ( b . s u b s t r ( 1 ) ) } e l s e { i f ( c = = " . " ) { i f ( d . g e t E l e m e n t s B y C l a s s N a m e ) { r e t u r n   d . g e t E l e m e n t s B y C l a s s N a m e ( b . s u b s t r ( 1 ) ) } e l s e { r e t u r n   a . u t i l s . s e l e c t o r s . g e t E l e m e n t s B y T a g A n d C l a s s ( " * " , b . s u b s t r ( 1 ) ) } } e l s e { i f ( b . i n d e x O f ( " . " ) > 0 ) { s e l e c t o r s = b . s p l i t ( " . " ) ; r e t u r n   a . u t i l s . s e l e c t o r s . g e t E l e m e n t s B y T a g A n d C l a s s ( s e l e c t o r s [ 0 ] , s e l e c t o r s [ 1 ] ) } e l s e { r e t u r n   d . g e t E l e m e n t s B y T a g N a m e ( b ) } } } r e t u r n   n u l l } ; a . u t i l s . s e l e c t o r s . g e t E l e m e n t s B y T a g A n d C l a s s = f u n c t i o n ( e , h , g ) { e l e m e n t s = [ ] ; i f ( g = = = u n d e f i n e d ) { g = d o c u m e n t } v a r   f = g . g e t E l e m e n t s B y T a g N a m e ( e ) ; f o r ( v a r   d = 0 ; d < f . l e n g t h ; d + + ) { i f ( f [ d ] . c l a s s N a m e ! = = u n d e f i n e d ) { v a r   c = f [ d ] . c l a s s N a m e . s p l i t ( "   " ) ; f o r ( v a r   b = 0 ; b < c . l e n g t h ; b + + ) { i f ( c [ b ] = = h ) { e l e m e n t s . p u s h ( f [ d ] ) } } } } r e t u r n   e l e m e n t s } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . u t i l s . s t r i n g s = f u n c t i o n ( ) { } ; a . u t i l s . s t r i n g s . t r i m = f u n c t i o n ( b ) { r e t u r n   b . r e p l a c e ( / ^ \ s * / , " " ) . r e p l a c e ( / \ s * $ / , " " ) } ; a . u t i l s . s t r i n g s . p a d = f u n c t i o n ( c , d , b ) { i f ( ! b ) { b = " 0 " } w h i l e ( c . l e n g t h < d ) { c = b + c } r e t u r n   c } ; a . u t i l s . s t r i n g s . s e r i a l i z e = f u n c t i o n ( b ) { i f ( b = = n u l l ) { r e t u r n   n u l l } e l s e { i f ( b = = " t r u e " ) { r e t u r n   t r u e } e l s e { i f ( b = = " f a l s e " ) { r e t u r n   f a l s e } e l s e { i f ( i s N a N ( N u m b e r ( b ) ) | | b . l e n g t h > 5 | | b . l e n g t h = = 0 ) { r e t u r n   b } e l s e { r e t u r n   N u m b e r ( b ) } } } } } ; a . u t i l s . s t r i n g s . s e c o n d s = f u n c t i o n ( d ) { d = d . r e p l a c e ( " , " , " . " ) ; v a r   b = d . s p l i t ( " : " ) ; v a r   c = 0 ; i f ( d . s u b s t r ( - 1 ) = = " s " ) { c = N u m b e r ( d . s u b s t r ( 0 , d . l e n g t h - 1 ) ) } e l s e { i f ( d . s u b s t r ( - 1 ) = = " m " ) { c = N u m b e r ( d . s u b s t r ( 0 , d . l e n g t h - 1 ) ) * 6 0 } e l s e { i f ( d . s u b s t r ( - 1 ) = = " h " ) { c = N u m b e r ( d . s u b s t r ( 0 , d . l e n g t h - 1 ) ) * 3 6 0 0 } e l s e { i f ( b . l e n g t h > 1 ) { c = N u m b e r ( b [ b . l e n g t h - 1 ] ) ; c + = N u m b e r ( b [ b . l e n g t h - 2 ] ) * 6 0 ; i f ( b . l e n g t h = = 3 ) { c + = N u m b e r ( b [ b . l e n g t h - 3 ] ) * 3 6 0 0 } } e l s e { c = N u m b e r ( d ) } } } } r e t u r n   c } ; a . u t i l s . s t r i n g s . x m l A t t r i b u t e = f u n c t i o n ( b , c ) { f o r ( v a r   d   i n   b . a t t r i b u t e s ) { i f ( b . a t t r i b u t e s [ d ] . n a m e & & b . a t t r i b u t e s [ d ] . n a m e . t o L o w e r C a s e ( ) = = c . t o L o w e r C a s e ( ) ) { r e t u r n   b . a t t r i b u t e s [ d ] . v a l u e . t o S t r i n g ( ) } } r e t u r n " " } ; a . u t i l s . s t r i n g s . j s o n T o S t r i n g = f u n c t i o n ( f ) { v a r   h = h | | { } ; i f ( h & & h . s t r i n g i f y ) { r e t u r n   h . s t r i n g i f y ( f ) } v a r   c = t y p e o f ( f ) ; i f ( c ! = " o b j e c t " | | f = = = n u l l ) { i f ( c = = " s t r i n g " ) { f = ' " ' + f + ' " ' } e l s e { r e t u r n   S t r i n g ( f ) } } e l s e { v a r   g = [ ] , b = ( f & & f . c o n s t r u c t o r = = A r r a y ) ; f o r ( v a r   d   i n   f ) { v a r   e = f [ d ] ; s w i t c h ( t y p e o f ( e ) ) { c a s e " s t r i n g " : e = ' " ' + e + ' " ' ; b r e a k ; c a s e " o b j e c t " : i f ( e ! = = n u l l ) { e = a . u t i l s . s t r i n g s . j s o n T o S t r i n g ( e ) } b r e a k } i f ( b ) { i f ( t y p e o f ( e ) ! = " f u n c t i o n " ) { g . p u s h ( S t r i n g ( e ) ) } } e l s e { i f ( t y p e o f ( e ) ! = " f u n c t i o n " ) { g . p u s h ( ' " ' + d + ' " : ' + S t r i n g ( e ) ) } } } i f ( b ) { r e t u r n " [ " + S t r i n g ( g ) + " ] " } e l s e { r e t u r n " { " + S t r i n g ( g ) + " } " } } } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( c ) { v a r   d = n e w   R e g E x p ( / ^ ( # | 0 x ) [ 0 - 9 a - f A - F ] { 3 , 6 } / ) ; c . u t i l s . t y p e c h e c k e r = f u n c t i o n ( g , f ) { f = f = = = n u l l ? b ( g ) : f ; r e t u r n   e ( g , f ) } ; f u n c t i o n   b ( f ) { v a r   g = [ " t r u e " , " f a l s e " , " t " , " f " ] ; i f ( g . t o S t r i n g ( ) . i n d e x O f ( f . t o L o w e r C a s e ( ) . r e p l a c e ( "   " , " " ) ) > = 0 ) { r e t u r n " b o o l e a n " } e l s e { i f ( d . t e s t ( f ) ) { r e t u r n " c o l o r " } e l s e { i f ( ! i s N a N ( p a r s e I n t ( f , 1 0 ) ) & & p a r s e I n t ( f , 1 0 ) . t o S t r i n g ( ) . l e n g t h = = f . l e n g t h ) { r e t u r n " i n t e g e r " } e l s e { i f ( ! i s N a N ( p a r s e F l o a t ( f ) ) & & p a r s e F l o a t ( f ) . t o S t r i n g ( ) . l e n g t h = = f . l e n g t h ) { r e t u r n " f l o a t " } } } } r e t u r n " s t r i n g " } f u n c t i o n   e ( g , f ) { i f ( f = = = n u l l ) { r e t u r n   g } s w i t c h ( f ) { c a s e " c o l o r " : i f ( g . l e n g t h > 0 ) { r e t u r n   a ( g ) } r e t u r n   n u l l ; c a s e " i n t e g e r " : r e t u r n   p a r s e I n t ( g , 1 0 ) ; c a s e " f l o a t " : r e t u r n   p a r s e F l o a t ( g ) ; c a s e " b o o l e a n " : i f ( g . t o L o w e r C a s e ( ) = = " t r u e " ) { r e t u r n   t r u e } e l s e { i f ( g = = " 1 " ) { r e t u r n   t r u e } } r e t u r n   f a l s e } r e t u r n   g } f u n c t i o n   a ( f ) { s w i t c h ( f . t o L o w e r C a s e ( ) ) { c a s e " b l u e " : r e t u r n   p a r s e I n t ( " 0 0 0 0 F F " , 1 6 ) ; c a s e " g r e e n " : r e t u r n   p a r s e I n t ( " 0 0 F F 0 0 " , 1 6 ) ; c a s e " r e d " : r e t u r n   p a r s e I n t ( " F F 0 0 0 0 " , 1 6 ) ; c a s e " c y a n " : r e t u r n   p a r s e I n t ( " 0 0 F F F F " , 1 6 ) ; c a s e " m a g e n t a " : r e t u r n   p a r s e I n t ( " F F 0 0 F F " , 1 6 ) ; c a s e " y e l l o w " : r e t u r n   p a r s e I n t ( " F F F F 0 0 " , 1 6 ) ; c a s e " b l a c k " : r e t u r n   p a r s e I n t ( " 0 0 0 0 0 0 " , 1 6 ) ; c a s e " w h i t e " : r e t u r n   p a r s e I n t ( " F F F F F F " , 1 6 ) ; d e f a u l t : f = f . r e p l a c e ( / ( # | 0 x ) ? ( [ 0 - 9 A - F ] { 3 , 6 } ) $ / g i , " $ 2 " ) ; i f ( f . l e n g t h = = 3 ) { f = f . c h a r A t ( 0 ) + f . c h a r A t ( 0 ) + f . c h a r A t ( 1 ) + f . c h a r A t ( 1 ) + f . c h a r A t ( 2 ) + f . c h a r A t ( 2 ) } r e t u r n   p a r s e I n t ( f , 1 6 ) } r e t u r n   p a r s e I n t ( " 0 0 0 0 0 0 " , 1 6 ) } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { v a r   c = { } ; v a r   b = { } ; a . p l u g i n s = f u n c t i o n ( ) { } ; a . p l u g i n s . l o a d P l u g i n s = f u n c t i o n ( e , d ) { b [ e ] = n e w   a . p l u g i n s . p l u g i n l o a d e r ( n e w   a . p l u g i n s . m o d e l ( c ) , d ) ; r e t u r n   b [ e ] } ; a . p l u g i n s . r e g i s t e r P l u g i n = f u n c t i o n ( h , f , e ) { v a r   d = a . u t i l s . g e t P l u g i n N a m e ( h ) ; i f ( c [ d ] ) { c [ d ] . r e g i s t e r P l u g i n ( h , f , e ) } e l s e { a . u t i l s . l o g ( " A   p l u g i n   ( " + h + " )   w a s   r e g i s t e r e d   w i t h   t h e   p l a y e r   t h a t   w a s   n o t   l o a d e d .   P l e a s e   c h e c k   y o u r   c o n f i g u r a t i o n . " ) ; f o r ( v a r   g   i n   b ) { b [ g ] . p l u g i n F a i l e d ( ) } } } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . p l u g i n s . m o d e l = f u n c t i o n ( b ) { t h i s . a d d P l u g i n = f u n c t i o n ( c ) { v a r   d = a . u t i l s . g e t P l u g i n N a m e ( c ) ; i f ( ! b [ d ] ) { b [ d ] = n e w   a . p l u g i n s . p l u g i n ( c ) } r e t u r n   b [ d ] } } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . p l u g i n s . p l u g i n m o d e s = { F L A S H : " F L A S H " , J A V A S C R I P T : " J A V A S C R I P T " , H Y B R I D : " H Y B R I D " } ; a . p l u g i n s . p l u g i n = f u n c t i o n ( b ) { v a r   d = " h t t p : / / p l u g i n s . l o n g t a i l v i d e o . c o m " ; v a r   i = a . u t i l s . l o a d e r s t a t u s . N E W ; v a r   j ; v a r   h ; v a r   k ; v a r   c = n e w   a . e v e n t s . e v e n t d i s p a t c h e r ( ) ; a . u t i l s . e x t e n d ( t h i s , c ) ; f u n c t i o n   e ( ) { s w i t c h ( a . u t i l s . g e t P l u g i n P a t h T y p e ( b ) ) { c a s e   a . u t i l s . p l u g i n P a t h T y p e . A B S O L U T E : r e t u r n   b ; c a s e   a . u t i l s . p l u g i n P a t h T y p e . R E L A T I V E : r e t u r n   a . u t i l s . g e t A b s o l u t e P a t h ( b , w i n d o w . l o c a t i o n . h r e f ) ; c a s e   a . u t i l s . p l u g i n P a t h T y p e . C D N : v a r   m = a . u t i l s . g e t P l u g i n N a m e ( b ) ; v a r   l = a . u t i l s . g e t P l u g i n V e r s i o n ( b ) ; r e t u r n   d + " / " + a . v e r s i o n . s p l i t ( " . " ) [ 0 ] + " / " + m + " / " + m + ( l ! = = " " ? ( " - " + l ) : " " ) + " . j s " } } f u n c t i o n   g ( l ) { k = s e t T i m e o u t ( f u n c t i o n ( ) { i = a . u t i l s . l o a d e r s t a t u s . C O M P L E T E ; c . s e n d E v e n t ( a . e v e n t s . C O M P L E T E ) } , 1 0 0 0 ) } f u n c t i o n   f ( l ) { i = a . u t i l s . l o a d e r s t a t u s . E R R O R ; c . s e n d E v e n t ( a . e v e n t s . E R R O R ) } t h i s . l o a d = f u n c t i o n ( ) { i f ( i = = a . u t i l s . l o a d e r s t a t u s . N E W ) { i f ( b . l a s t I n d e x O f ( " . s w f " ) > 0 ) { j = b ; i = a . u t i l s . l o a d e r s t a t u s . C O M P L E T E ; c . s e n d E v e n t ( a . e v e n t s . C O M P L E T E ) ; r e t u r n } i = a . u t i l s . l o a d e r s t a t u s . L O A D I N G ; v a r   l = n e w   a . u t i l s . s c r i p t l o a d e r ( e ( ) ) ; l . a d d E v e n t L i s t e n e r ( a . e v e n t s . C O M P L E T E , g ) ; l . a d d E v e n t L i s t e n e r ( a . e v e n t s . E R R O R , f ) ; l . l o a d ( ) } } ; t h i s . r e g i s t e r P l u g i n = f u n c t i o n ( n , m , l ) { i f ( k ) { c l e a r T i m e o u t ( k ) ; k = u n d e f i n e d } i f ( m & & l ) { j = l ; h = m } e l s e { i f ( t y p e o f   m = = " s t r i n g " ) { j = m } e l s e { i f ( t y p e o f   m = = " f u n c t i o n " ) { h = m } e l s e { i f ( ! m & & ! l ) { j = n } } } } i = a . u t i l s . l o a d e r s t a t u s . C O M P L E T E ; c . s e n d E v e n t ( a . e v e n t s . C O M P L E T E ) } ; t h i s . g e t S t a t u s = f u n c t i o n ( ) { r e t u r n   i } ; t h i s . g e t P l u g i n N a m e = f u n c t i o n ( ) { r e t u r n   a . u t i l s . g e t P l u g i n N a m e ( b ) } ; t h i s . g e t F l a s h P a t h = f u n c t i o n ( ) { i f ( j ) { s w i t c h ( a . u t i l s . g e t P l u g i n P a t h T y p e ( j ) ) { c a s e   a . u t i l s . p l u g i n P a t h T y p e . A B S O L U T E : r e t u r n   j ; c a s e   a . u t i l s . p l u g i n P a t h T y p e . R E L A T I V E : i f ( b . l a s t I n d e x O f ( " . s w f " ) > 0 ) { r e t u r n   a . u t i l s . g e t A b s o l u t e P a t h ( j , w i n d o w . l o c a t i o n . h r e f ) } r e t u r n   a . u t i l s . g e t A b s o l u t e P a t h ( j , e ( ) ) ; c a s e   a . u t i l s . p l u g i n P a t h T y p e . C D N : i f ( j . i n d e x O f ( " - " ) > - 1 ) { r e t u r n   j + " h " } r e t u r n   j + " - h " } } r e t u r n   n u l l } ; t h i s . g e t J S = f u n c t i o n ( ) { r e t u r n   h } ; t h i s . g e t P l u g i n m o d e = f u n c t i o n ( ) { i f ( t y p e o f   j ! = " u n d e f i n e d " & & t y p e o f   h ! = " u n d e f i n e d " ) { r e t u r n   a . p l u g i n s . p l u g i n m o d e s . H Y B R I D } e l s e { i f ( t y p e o f   j ! = " u n d e f i n e d " ) { r e t u r n   a . p l u g i n s . p l u g i n m o d e s . F L A S H } e l s e { i f ( t y p e o f   h ! = " u n d e f i n e d " ) { r e t u r n   a . p l u g i n s . p l u g i n m o d e s . J A V A S C R I P T } } } } ; t h i s . g e t N e w I n s t a n c e = f u n c t i o n ( m , l , n ) { r e t u r n   n e w   h ( m , l , n ) } ; t h i s . g e t U R L = f u n c t i o n ( ) { r e t u r n   b } } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . p l u g i n s . p l u g i n l o a d e r = f u n c t i o n ( h , e ) { v a r   g = { } ; v a r   j = a . u t i l s . l o a d e r s t a t u s . N E W ; v a r   d = f a l s e ; v a r   b = f a l s e ; v a r   c = n e w   a . e v e n t s . e v e n t d i s p a t c h e r ( ) ; a . u t i l s . e x t e n d ( t h i s , c ) ; f u n c t i o n   f ( ) { i f ( ! b ) { b = t r u e ; j = a . u t i l s . l o a d e r s t a t u s . C O M P L E T E ; c . s e n d E v e n t ( a . e v e n t s . C O M P L E T E ) } } f u n c t i o n   i ( ) { i f ( ! b ) { v a r   l = 0 ; f o r ( p l u g i n   i n   g ) { v a r   k = g [ p l u g i n ] . g e t S t a t u s ( ) ; i f ( k = = a . u t i l s . l o a d e r s t a t u s . L O A D I N G | | k = = a . u t i l s . l o a d e r s t a t u s . N E W ) { l + + } } i f ( l = = 0 ) { f ( ) } } } t h i s . s e t u p P l u g i n s = f u n c t i o n ( m , k , r ) { v a r   l = { l e n g t h : 0 , p l u g i n s : { } } ; v a r   o = { l e n g t h : 0 , p l u g i n s : { } } ; f o r ( v a r   n   i n   g ) { v a r   p = g [ n ] . g e t P l u g i n N a m e ( ) ; i f ( g [ n ] . g e t F l a s h P a t h ( ) ) { l . p l u g i n s [ g [ n ] . g e t F l a s h P a t h ( ) ] = k . p l u g i n s [ n ] ; l . p l u g i n s [ g [ n ] . g e t F l a s h P a t h ( ) ] . p l u g i n m o d e = g [ n ] . g e t P l u g i n m o d e ( ) ; l . l e n g t h + + } i f ( g [ n ] . g e t J S ( ) ) { v a r   q = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; q . i d = m . i d + " _ " + p ; q . s t y l e . p o s i t i o n = " a b s o l u t e " ; q . s t y l e . z I n d e x = o . l e n g t h + 1 0 ; o . p l u g i n s [ p ] = g [ n ] . g e t N e w I n s t a n c e ( m , k . p l u g i n s [ n ] , q ) ; o . l e n g t h + + ; i f ( t y p e o f   o . p l u g i n s [ p ] . r e s i z e ! = " u n d e f i n e d " ) { m . o n R e a d y ( r ( o . p l u g i n s [ p ] , q , t r u e ) ) ; m . o n R e s i z e ( r ( o . p l u g i n s [ p ] , q ) ) } } } m . p l u g i n s = o . p l u g i n s ; r e t u r n   l } ; t h i s . l o a d = f u n c t i o n ( ) { j = a . u t i l s . l o a d e r s t a t u s . L O A D I N G ; d = t r u e ; f o r ( v a r   k   i n   e ) { g [ k ] = h . a d d P l u g i n ( k ) ; g [ k ] . a d d E v e n t L i s t e n e r ( a . e v e n t s . C O M P L E T E , i ) ; g [ k ] . a d d E v e n t L i s t e n e r ( a . e v e n t s . E R R O R , i ) } f o r ( k   i n   e ) { g [ k ] . l o a d ( ) } d = f a l s e ; i ( ) } ; t h i s . p l u g i n F a i l e d = f u n c t i o n ( ) { f ( ) } ; t h i s . g e t S t a t u s = f u n c t i o n ( ) { r e t u r n   j } } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( b ) { v a r   a = [ ] ; b . a p i = f u n c t i o n ( d ) { t h i s . c o n t a i n e r = d ; t h i s . i d = d . i d ; v a r   l = { } ; v a r   p = { } ; v a r   c = [ ] ; v a r   h = u n d e f i n e d ; v a r   k = f a l s e ; v a r   i = [ ] ; v a r   n = b . u t i l s . g e t O u t e r H T M L ( d ) ; v a r   o = { } ; v a r   j = { } ; t h i s . g e t B u f f e r = f u n c t i o n ( ) { r e t u r n   t h i s . c a l l I n t e r n a l ( " j w G e t B u f f e r " ) } ; t h i s . g e t C o n t a i n e r = f u n c t i o n ( ) { r e t u r n   t h i s . c o n t a i n e r } ; f u n c t i o n   e ( q ) { r e t u r n   f u n c t i o n ( v , r , s , t ) { v a r   u ; i f ( r ) { j [ v ] = r ; u = " j w p l a y e r ( ' " + q + " ' ) . c a l l b a c k ( ' " + v + " ' ) " } e l s e { i f ( ! r & & j [ v ] ) { d e l e t e   j [ v ] } } h . j w D o c k S e t B u t t o n ( v , u , s , t ) } } t h i s . g e t P l u g i n = f u n c t i o n ( r ) { v a r   q = t h i s . c a l l I n t e r n a l ; i f ( r = = " d o c k " ) { r e t u r n { s e t B u t t o n : e ( t h i s . i d ) , s h o w : f u n c t i o n ( ) { r e t u r n   q ( " j w S h o w D o c k " ) } , h i d e : f u n c t i o n ( ) { r e t u r n   q ( " j w H i d e D o c k " ) } } } e l s e { i f ( r = = " c o n t r o l b a r " ) { r e t u r n { s h o w : f u n c t i o n ( ) { r e t u r n   q ( " j w S h o w C o n t r o l b a r " ) } , h i d e : f u n c t i o n ( ) { r e t u r n   q ( " j w H i d e C o n t r o l b a r " ) } } } e l s e { i f ( r = = " d i s p l a y " ) { r e t u r n { s h o w : f u n c t i o n ( ) { r e t u r n   q ( " j w S h o w D i s p l a y " ) } , h i d e : f u n c t i o n ( ) { r e t u r n   q ( " j w H i d e D i s p l a y " ) } } } } } r e t u r n   t h i s . p l u g i n s [ r ] } ; t h i s . c a l l b a c k = f u n c t i o n ( q ) { i f ( j [ q ] ) { r e t u r n   j [ q ] ( ) } } ; t h i s . g e t D u r a t i o n = f u n c t i o n ( ) { r e t u r n   t h i s . c a l l I n t e r n a l ( " j w G e t D u r a t i o n " ) } ; t h i s . g e t F u l l s c r e e n = f u n c t i o n ( ) { r e t u r n   t h i s . c a l l I n t e r n a l ( " j w G e t F u l l s c r e e n " ) } ; t h i s . g e t H e i g h t = f u n c t i o n ( ) { r e t u r n   t h i s . c a l l I n t e r n a l ( " j w G e t H e i g h t " ) } ; t h i s . g e t L o c k S t a t e = f u n c t i o n ( ) { r e t u r n   t h i s . c a l l I n t e r n a l ( " j w G e t L o c k S t a t e " ) } ; t h i s . g e t M e t a = f u n c t i o n ( ) { r e t u r n   t h i s . g e t I t e m M e t a ( ) } ; t h i s . g e t M u t e = f u n c t i o n ( ) { r e t u r n   t h i s . c a l l I n t e r n a l ( " j w G e t M u t e " ) } ; t h i s . g e t P l a y l i s t = f u n c t i o n ( ) { v a r   r = t h i s . c a l l I n t e r n a l ( " j w G e t P l a y l i s t " ) ; i f ( t h i s . r e n d e r i n g M o d e = = " f l a s h " ) { b . u t i l s . d e e p R e p l a c e K e y N a m e ( r , " _ _ d o t _ _ " , " . " ) } f o r ( v a r   q = 0 ; q < r . l e n g t h ; q + + ) { i f ( r [ q ] . i n d e x = = = u n d e f i n e d ) { r [ q ] . i n d e x = q } } r e t u r n   r } ; t h i s . g e t P l a y l i s t I t e m = f u n c t i o n ( q ) { i f ( q = = = u n d e f i n e d ) { q = t h i s . g e t C u r r e n t I t e m ( ) } r e t u r n   t h i s . g e t P l a y l i s t ( ) [ q ] } ; t h i s . g e t P o s i t i o n = f u n c t i o n ( ) { r e t u r n   t h i s . c a l l I n t e r n a l ( " j w G e t P o s i t i o n " ) } ; t h i s . g e t R e n d e r i n g M o d e = f u n c t i o n ( ) { r e t u r n   t h i s . r e n d e r i n g M o d e } ; t h i s . g e t S t a t e = f u n c t i o n ( ) { r e t u r n   t h i s . c a l l I n t e r n a l ( " j w G e t S t a t e " ) } ; t h i s . g e t V o l u m e = f u n c t i o n ( ) { r e t u r n   t h i s . c a l l I n t e r n a l ( " j w G e t V o l u m e " ) } ; t h i s . g e t W i d t h = f u n c t i o n ( ) { r e t u r n   t h i s . c a l l I n t e r n a l ( " j w G e t W i d t h " ) } ; t h i s . s e t F u l l s c r e e n = f u n c t i o n ( q ) { i f ( q = = = u n d e f i n e d ) { t h i s . c a l l I n t e r n a l ( " j w S e t F u l l s c r e e n " , ! t h i s . c a l l I n t e r n a l ( " j w G e t F u l l s c r e e n " ) ) } e l s e { t h i s . c a l l I n t e r n a l ( " j w S e t F u l l s c r e e n " , q ) } r e t u r n   t h i s } ; t h i s . s e t M u t e = f u n c t i o n ( q ) { i f ( q = = = u n d e f i n e d ) { t h i s . c a l l I n t e r n a l ( " j w S e t M u t e " , ! t h i s . c a l l I n t e r n a l ( " j w G e t M u t e " ) ) } e l s e { t h i s . c a l l I n t e r n a l ( " j w S e t M u t e " , q ) } r e t u r n   t h i s } ; t h i s . l o c k = f u n c t i o n ( ) { r e t u r n   t h i s } ; t h i s . u n l o c k = f u n c t i o n ( ) { r e t u r n   t h i s } ; t h i s . l o a d = f u n c t i o n ( q ) { t h i s . c a l l I n t e r n a l ( " j w L o a d " , q ) ; r e t u r n   t h i s } ; t h i s . p l a y l i s t I t e m = f u n c t i o n ( q ) { t h i s . c a l l I n t e r n a l ( " j w P l a y l i s t I t e m " , q ) ; r e t u r n   t h i s } ; t h i s . p l a y l i s t P r e v = f u n c t i o n ( ) { t h i s . c a l l I n t e r n a l ( " j w P l a y l i s t P r e v " ) ; r e t u r n   t h i s } ; t h i s . p l a y l i s t N e x t = f u n c t i o n ( ) { t h i s . c a l l I n t e r n a l ( " j w P l a y l i s t N e x t " ) ; r e t u r n   t h i s } ; t h i s . r e s i z e = f u n c t i o n ( r , q ) { i f ( t h i s . r e n d e r i n g M o d e = = " h t m l 5 " ) { h . j w R e s i z e ( r , q ) } e l s e { t h i s . c o n t a i n e r . w i d t h = r ; t h i s . c o n t a i n e r . h e i g h t = q } r e t u r n   t h i s } ; t h i s . p l a y = f u n c t i o n ( q ) { i f ( t y p e o f   q = = " u n d e f i n e d " ) { q = t h i s . g e t S t a t e ( ) ; i f ( q = = b . a p i . e v e n t s . s t a t e . P L A Y I N G | | q = = b . a p i . e v e n t s . s t a t e . B U F F E R I N G ) { t h i s . c a l l I n t e r n a l ( " j w P a u s e " ) } e l s e { t h i s . c a l l I n t e r n a l ( " j w P l a y " ) } } e l s e { t h i s . c a l l I n t e r n a l ( " j w P l a y " , q ) } r e t u r n   t h i s } ; t h i s . p a u s e = f u n c t i o n ( q ) { i f ( t y p e o f   q = = " u n d e f i n e d " ) { q = t h i s . g e t S t a t e ( ) ; i f ( q = = b . a p i . e v e n t s . s t a t e . P L A Y I N G | | q = = b . a p i . e v e n t s . s t a t e . B U F F E R I N G ) { t h i s . c a l l I n t e r n a l ( " j w P a u s e " ) } e l s e { t h i s . c a l l I n t e r n a l ( " j w P l a y " ) } } e l s e { t h i s . c a l l I n t e r n a l ( " j w P a u s e " , q ) } r e t u r n   t h i s } ; t h i s . s t o p = f u n c t i o n ( ) { t h i s . c a l l I n t e r n a l ( " j w S t o p " ) ; r e t u r n   t h i s } ; t h i s . s e e k = f u n c t i o n ( q ) { t h i s . c a l l I n t e r n a l ( " j w S e e k " , q ) ; r e t u r n   t h i s } ; t h i s . s e t V o l u m e = f u n c t i o n ( q ) { t h i s . c a l l I n t e r n a l ( " j w S e t V o l u m e " , q ) ; r e t u r n   t h i s } ; t h i s . o n B u f f e r C h a n g e = f u n c t i o n ( q ) { r e t u r n   t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ B U F F E R , q ) } ; t h i s . o n B u f f e r F u l l = f u n c t i o n ( q ) { r e t u r n   t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ B U F F E R _ F U L L , q ) } ; t h i s . o n E r r o r = f u n c t i o n ( q ) { r e t u r n   t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ E R R O R , q ) } ; t h i s . o n F u l l s c r e e n = f u n c t i o n ( q ) { r e t u r n   t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ F U L L S C R E E N , q ) } ; t h i s . o n M e t a = f u n c t i o n ( q ) { r e t u r n   t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ M E T A , q ) } ; t h i s . o n M u t e = f u n c t i o n ( q ) { r e t u r n   t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ M U T E , q ) } ; t h i s . o n P l a y l i s t = f u n c t i o n ( q ) { r e t u r n   t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ P L A Y L I S T _ L O A D E D , q ) } ; t h i s . o n P l a y l i s t I t e m = f u n c t i o n ( q ) { r e t u r n   t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ P L A Y L I S T _ I T E M , q ) } ; t h i s . o n R e a d y = f u n c t i o n ( q ) { r e t u r n   t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . A P I _ R E A D Y , q ) } ; t h i s . o n R e s i z e = f u n c t i o n ( q ) { r e t u r n   t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ R E S I Z E , q ) } ; t h i s . o n C o m p l e t e = f u n c t i o n ( q ) { r e t u r n   t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ C O M P L E T E , q ) } ; t h i s . o n S e e k = f u n c t i o n ( q ) { r e t u r n   t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ S E E K , q ) } ; t h i s . o n T i m e = f u n c t i o n ( q ) { r e t u r n   t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ T I M E , q ) } ; t h i s . o n V o l u m e = f u n c t i o n ( q ) { r e t u r n   t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ V O L U M E , q ) } ; t h i s . o n B u f f e r = f u n c t i o n ( q ) { r e t u r n   t h i s . s t a t e L i s t e n e r ( b . a p i . e v e n t s . s t a t e . B U F F E R I N G , q ) } ; t h i s . o n P a u s e = f u n c t i o n ( q ) { r e t u r n   t h i s . s t a t e L i s t e n e r ( b . a p i . e v e n t s . s t a t e . P A U S E D , q ) } ; t h i s . o n P l a y = f u n c t i o n ( q ) { r e t u r n   t h i s . s t a t e L i s t e n e r ( b . a p i . e v e n t s . s t a t e . P L A Y I N G , q ) } ; t h i s . o n I d l e = f u n c t i o n ( q ) { r e t u r n   t h i s . s t a t e L i s t e n e r ( b . a p i . e v e n t s . s t a t e . I D L E , q ) } ; t h i s . r e m o v e = f u n c t i o n ( ) { l = { } ; i = [ ] ; i f ( b . u t i l s . g e t O u t e r H T M L ( t h i s . c o n t a i n e r ) ! = n ) { b . a p i . d e s t r o y P l a y e r ( t h i s . i d , n ) } } ; t h i s . s e t u p = f u n c t i o n ( r ) { i f ( b . e m b e d ) { v a r   q = t h i s . i d ; t h i s . r e m o v e ( ) ; v a r   s = b ( q ) ; s . c o n f i g = r ; r e t u r n   n e w   b . e m b e d ( s ) } r e t u r n   t h i s } ; t h i s . r e g i s t e r P l u g i n = f u n c t i o n ( s , r , q ) { b . p l u g i n s . r e g i s t e r P l u g i n ( s , r , q ) } ; t h i s . s e t P l a y e r = f u n c t i o n ( q , r ) { h = q ; t h i s . r e n d e r i n g M o d e = r } ; t h i s . s t a t e L i s t e n e r = f u n c t i o n ( q , r ) { i f ( ! p [ q ] ) { p [ q ] = [ ] ; t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ P L A Y E R _ S T A T E , g ( q ) ) } p [ q ] . p u s h ( r ) ; r e t u r n   t h i s } ; f u n c t i o n   g ( q ) { r e t u r n   f u n c t i o n ( s ) { v a r   r = s . n e w s t a t e , u = s . o l d s t a t e ; i f ( r = = q ) { v a r   t = p [ r ] ; i f ( t ) { f o r ( v a r   v = 0 ; v < t . l e n g t h ; v + + ) { i f ( t y p e o f   t [ v ] = = " f u n c t i o n " ) { t [ v ] . c a l l ( t h i s , { o l d s t a t e : u , n e w s t a t e : r } ) } } } } } } t h i s . a d d I n t e r n a l L i s t e n e r = f u n c t i o n ( q , r ) { q . j w A d d E v e n t L i s t e n e r ( r , ' f u n c t i o n ( d a t )   {   j w p l a y e r ( " ' + t h i s . i d + ' " ) . d i s p a t c h E v e n t ( " ' + r + ' " ,   d a t ) ;   } ' ) } ; t h i s . e v e n t L i s t e n e r = f u n c t i o n ( q , r ) { i f ( ! l [ q ] ) { l [ q ] = [ ] ; i f ( h & & k ) { t h i s . a d d I n t e r n a l L i s t e n e r ( h , q ) } } l [ q ] . p u s h ( r ) ; r e t u r n   t h i s } ; t h i s . d i s p a t c h E v e n t = f u n c t i o n ( s ) { i f ( l [ s ] ) { v a r   r = f ( s , a r g u m e n t s [ 1 ] ) ; f o r ( v a r   q = 0 ; q < l [ s ] . l e n g t h ; q + + ) { i f ( t y p e o f   l [ s ] [ q ] = = " f u n c t i o n " ) { l [ s ] [ q ] . c a l l ( t h i s , r ) } } } } ; f u n c t i o n   f ( s , q ) { v a r   u = b . u t i l s . e x t e n d ( { } , q ) ; i f ( s = = b . a p i . e v e n t s . J W P L A Y E R _ F U L L S C R E E N & & ! u . f u l l s c r e e n ) { u . f u l l s c r e e n = u . m e s s a g e = = " t r u e " ? t r u e : f a l s e ; d e l e t e   u . m e s s a g e } e l s e { i f ( t y p e o f   u . d a t a = = " o b j e c t " ) { u = b . u t i l s . e x t e n d ( u , u . d a t a ) ; d e l e t e   u . d a t a } } v a r   r = [ " p o s i t i o n " , " d u r a t i o n " , " o f f s e t " ] ; f o r ( v a r   t   i n   r ) { i f ( u [ r [ t ] ] ) { u [ r [ t ] ] = M a t h . r o u n d ( u [ r [ t ] ] * 1 0 0 0 ) / 1 0 0 0 } } r e t u r n   u } t h i s . c a l l I n t e r n a l = f u n c t i o n ( r , q ) { i f ( k ) { i f ( t y p e o f   h ! = " u n d e f i n e d " & & t y p e o f   h [ r ] = = " f u n c t i o n " ) { i f ( q ! = = u n d e f i n e d ) { r e t u r n ( h [ r ] ) ( q ) } e l s e { r e t u r n ( h [ r ] ) ( ) } } r e t u r n   n u l l } e l s e { i . p u s h ( { m e t h o d : r , p a r a m e t e r s : q } ) } } ; t h i s . p l a y e r R e a d y = f u n c t i o n ( s ) { k = t r u e ; i f ( ! h ) { t h i s . s e t P l a y e r ( d o c u m e n t . g e t E l e m e n t B y I d ( s . i d ) ) } t h i s . c o n t a i n e r = d o c u m e n t . g e t E l e m e n t B y I d ( t h i s . i d ) ; f o r ( v a r   q   i n   l ) { t h i s . a d d I n t e r n a l L i s t e n e r ( h , q ) } t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ P L A Y L I S T _ I T E M , f u n c t i o n ( t ) { o = { } } ) ; t h i s . e v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ M E T A , f u n c t i o n ( t ) { b . u t i l s . e x t e n d ( o , t . m e t a d a t a ) } ) ; t h i s . d i s p a t c h E v e n t ( b . a p i . e v e n t s . A P I _ R E A D Y ) ; w h i l e ( i . l e n g t h > 0 ) { v a r   r = i . s h i f t ( ) ; t h i s . c a l l I n t e r n a l ( r . m e t h o d , r . p a r a m e t e r s ) } } ; t h i s . g e t I t e m M e t a = f u n c t i o n ( ) { r e t u r n   o } ; t h i s . g e t C u r r e n t I t e m = f u n c t i o n ( ) { r e t u r n   t h i s . c a l l I n t e r n a l ( " j w G e t P l a y l i s t I n d e x " ) } ; f u n c t i o n   m ( s , u , t ) { v a r   q = [ ] ; i f ( ! u ) { u = 0 } i f ( ! t ) { t = s . l e n g t h - 1 } f o r ( v a r   r = u ; r < = t ; r + + ) { q . p u s h ( s [ r ] ) } r e t u r n   q } r e t u r n   t h i s } ; b . a p i . s e l e c t P l a y e r = f u n c t i o n ( d ) { v a r   c ; i f ( d = = = u n d e f i n e d ) { d = 0 } i f ( d . n o d e T y p e ) { c = d } e l s e { i f ( t y p e o f   d = = " s t r i n g " ) { c = d o c u m e n t . g e t E l e m e n t B y I d ( d ) } } i f ( c ) { v a r   e = b . a p i . p l a y e r B y I d ( c . i d ) ; i f ( e ) { r e t u r n   e } e l s e { r e t u r n   b . a p i . a d d P l a y e r ( n e w   b . a p i ( c ) ) } } e l s e { i f ( t y p e o f   d = = " n u m b e r " ) { r e t u r n   b . g e t P l a y e r s ( ) [ d ] } } r e t u r n   n u l l } ; b . a p i . e v e n t s = { A P I _ R E A D Y : " j w p l a y e r A P I R e a d y " , J W P L A Y E R _ R E A D Y : " j w p l a y e r R e a d y " , J W P L A Y E R _ F U L L S C R E E N : " j w p l a y e r F u l l s c r e e n " , J W P L A Y E R _ R E S I Z E : " j w p l a y e r R e s i z e " , J W P L A Y E R _ E R R O R : " j w p l a y e r E r r o r " , J W P L A Y E R _ M E D I A _ B U F F E R : " j w p l a y e r M e d i a B u f f e r " , J W P L A Y E R _ M E D I A _ B U F F E R _ F U L L : " j w p l a y e r M e d i a B u f f e r F u l l " , J W P L A Y E R _ M E D I A _ E R R O R : " j w p l a y e r M e d i a E r r o r " , J W P L A Y E R _ M E D I A _ L O A D E D : " j w p l a y e r M e d i a L o a d e d " , J W P L A Y E R _ M E D I A _ C O M P L E T E : " j w p l a y e r M e d i a C o m p l e t e " , J W P L A Y E R _ M E D I A _ S E E K : " j w p l a y e r M e d i a S e e k " , J W P L A Y E R _ M E D I A _ T I M E : " j w p l a y e r M e d i a T i m e " , J W P L A Y E R _ M E D I A _ V O L U M E : " j w p l a y e r M e d i a V o l u m e " , J W P L A Y E R _ M E D I A _ M E T A : " j w p l a y e r M e d i a M e t a " , J W P L A Y E R _ M E D I A _ M U T E : " j w p l a y e r M e d i a M u t e " , J W P L A Y E R _ P L A Y E R _ S T A T E : " j w p l a y e r P l a y e r S t a t e " , J W P L A Y E R _ P L A Y L I S T _ L O A D E D : " j w p l a y e r P l a y l i s t L o a d e d " , J W P L A Y E R _ P L A Y L I S T _ I T E M : " j w p l a y e r P l a y l i s t I t e m " } ; b . a p i . e v e n t s . s t a t e = { B U F F E R I N G : " B U F F E R I N G " , I D L E : " I D L E " , P A U S E D : " P A U S E D " , P L A Y I N G : " P L A Y I N G " } ; b . a p i . p l a y e r B y I d = f u n c t i o n ( d ) { f o r ( v a r   c = 0 ; c < a . l e n g t h ; c + + ) { i f ( a [ c ] . i d = = d ) { r e t u r n   a [ c ] } } r e t u r n   n u l l } ; b . a p i . a d d P l a y e r = f u n c t i o n ( c ) { f o r ( v a r   d = 0 ; d < a . l e n g t h ; d + + ) { i f ( a [ d ] = = c ) { r e t u r n   c } } a . p u s h ( c ) ; r e t u r n   c } ; b . a p i . d e s t r o y P l a y e r = f u n c t i o n ( g , d ) { v a r   f = - 1 ; f o r ( v a r   i = 0 ; i < a . l e n g t h ; i + + ) { i f ( a [ i ] . i d = = g ) { f = i ; c o n t i n u e } } i f ( f > = 0 ) { v a r   c = d o c u m e n t . g e t E l e m e n t B y I d ( a [ f ] . i d ) ; i f ( d o c u m e n t . g e t E l e m e n t B y I d ( a [ f ] . i d + " _ w r a p p e r " ) ) { c = d o c u m e n t . g e t E l e m e n t B y I d ( a [ f ] . i d + " _ w r a p p e r " ) } i f ( c ) { i f ( d ) { b . u t i l s . s e t O u t e r H T M L ( c , d ) } e l s e { v a r   h = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; v a r   e = c . i d ; i f ( c . i d . i n d e x O f ( " _ w r a p p e r " ) = = c . i d . l e n g t h - 8 ) { n e w I D = c . i d . s u b s t r i n g ( 0 , c . i d . l e n g t h - 8 ) } h . s e t A t t r i b u t e ( " i d " , e ) ; c . p a r e n t N o d e . r e p l a c e C h i l d ( h , c ) } } a . s p l i c e ( f , 1 ) } r e t u r n   n u l l } ; b . g e t P l a y e r s = f u n c t i o n ( ) { r e t u r n   a . s l i c e ( 0 ) } } ) ( j w p l a y e r ) ; v a r   _ u s e r P l a y e r R e a d y = ( t y p e o f   p l a y e r R e a d y = = " f u n c t i o n " ) ? p l a y e r R e a d y : u n d e f i n e d ; p l a y e r R e a d y = f u n c t i o n ( b ) { v a r   a = j w p l a y e r . a p i . p l a y e r B y I d ( b . i d ) ; i f ( a ) { a . p l a y e r R e a d y ( b ) } i f ( _ u s e r P l a y e r R e a d y ) { _ u s e r P l a y e r R e a d y . c a l l ( t h i s , b ) } } ; ( f u n c t i o n ( a ) { a . e m b e d = f u n c t i o n ( g ) { v a r   i = { w i d t h : 4 0 0 , h e i g h t : 3 0 0 , c o m p o n e n t s : { c o n t r o l b a r : { p o s i t i o n : " o v e r " } } } ; v a r   f = a . u t i l s . m e d i a p a r s e r . p a r s e M e d i a ( g . c o n t a i n e r ) ; v a r   e = n e w   a . e m b e d . c o n f i g ( a . u t i l s . e x t e n d ( i , f , g . c o n f i g ) , t h i s ) ; v a r   h = a . p l u g i n s . l o a d P l u g i n s ( g . i d , e . p l u g i n s ) ; f u n c t i o n   c ( l , k ) { f o r ( v a r   j   i n   k ) { i f ( t y p e o f   l [ j ] = = " f u n c t i o n " ) { ( l [ j ] ) . c a l l ( l , k [ j ] ) } } } f u n c t i o n   d ( ) { i f ( h . g e t S t a t u s ( ) = = a . u t i l s . l o a d e r s t a t u s . C O M P L E T E ) { f o r ( v a r   l = 0 ; l < e . m o d e s . l e n g t h ; l + + ) { i f ( e . m o d e s [ l ] . t y p e & & a . e m b e d [ e . m o d e s [ l ] . t y p e ] ) { v a r   j = e ; i f ( e . m o d e s [ l ] . c o n f i g ) { j = a . u t i l s . e x t e n d ( a . u t i l s . c l o n e ( e ) , e . m o d e s [ l ] . c o n f i g ) } v a r   k = n e w   a . e m b e d [ e . m o d e s [ l ] . t y p e ] ( d o c u m e n t . g e t E l e m e n t B y I d ( g . i d ) , e . m o d e s [ l ] , j , h , g ) ; i f ( k . s u p p o r t s C o n f i g ( ) ) { k . e m b e d ( ) ; c ( g , e . e v e n t s ) ; r e t u r n   g } } } a . u t i l s . l o g ( " N o   s u i t a b l e   p l a y e r s   f o u n d " ) ; n e w   a . e m b e d . l o g o ( a . u t i l s . e x t e n d ( { h i d e : t r u e } , e . c o m p o n e n t s . l o g o ) , " n o n e " , g . i d ) } } h . a d d E v e n t L i s t e n e r ( a . e v e n t s . C O M P L E T E , d ) ; h . a d d E v e n t L i s t e n e r ( a . e v e n t s . E R R O R , d ) ; h . l o a d ( ) ; r e t u r n   g } ; f u n c t i o n   b ( ) { i f ( ! d o c u m e n t . b o d y ) { r e t u r n   s e t T i m e o u t ( b , 1 5 ) } v a r   c = a . u t i l s . s e l e c t o r s . g e t E l e m e n t s B y T a g A n d C l a s s ( " v i d e o " , " j w p l a y e r " ) ; f o r ( v a r   d = 0 ; d < c . l e n g t h ; d + + ) { v a r   e = c [ d ] ; a ( e . i d ) . s e t u p ( { } ) } } b ( ) } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { f u n c t i o n   c ( ) { r e t u r n [ { t y p e : " f l a s h " , s r c : " / j w p l a y e r / p l a y e r . s w f " } , { t y p e : " h t m l 5 " } , { t y p e : " d o w n l o a d " } ] } f u n c t i o n   e ( l ) { v a r   k = l . t o L o w e r C a s e ( ) ; v a r   j = [ " l e f t " , " r i g h t " , " t o p " , " b o t t o m " ] ; f o r ( v a r   i = 0 ; i < j . l e n g t h ; i + + ) { i f ( k = = j [ i ] ) { r e t u r n   t r u e } } r e t u r n   f a l s e } f u n c t i o n   d ( j ) { v a r   i = f a l s e ; i = ( j   i n s t a n c e o f   A r r a y ) | | ( t y p e o f   j = = " o b j e c t " & & ! j . p o s i t i o n & & ! j . s i z e ) ; r e t u r n   i } f u n c t i o n   h ( i ) { i f ( t y p e o f   i = = " s t r i n g " ) { i f ( p a r s e I n t ( i ) . t o S t r i n g ( ) = = i | | i . t o L o w e r C a s e ( ) . i n d e x O f ( " p x " ) > - 1 ) { r e t u r n   p a r s e I n t ( i ) } } r e t u r n   i } v a r   f = [ " p l a y l i s t " , " d o c k " , " c o n t r o l b a r " , " l o g o " ] ; f u n c t i o n   g ( j ) { v a r   m = { } ; s w i t c h ( a . u t i l s . t y p e O f ( j . p l u g i n s ) ) { c a s e " o b j e c t " : f o r ( v a r   l   i n   j . p l u g i n s ) { m [ a . u t i l s . g e t P l u g i n N a m e ( l ) ] = l } b r e a k ; c a s e " s t r i n g " : v a r   n = j . p l u g i n s . s p l i t ( " , " ) ; f o r ( v a r   k = 0 ; k < n . l e n g t h ; k + + ) { m [ a . u t i l s . g e t P l u g i n N a m e ( n [ k ] ) ] = n [ k ] } b r e a k } r e t u r n   m } f u n c t i o n   b ( m , l , k , i ) { i f ( a . u t i l s . t y p e O f ( m [ l ] ) ! = " o b j e c t " ) { m [ l ] = { } } v a r   j = m [ l ] [ k ] ; i f ( a . u t i l s . t y p e O f ( j ) ! = " o b j e c t " ) { m [ l ] [ k ] = j = { } } i f ( l = = " p l u g i n s " ) { v a r   n = a . u t i l s . g e t P l u g i n N a m e ( k ) ; j [ i ] = m [ n + " . " + i ] ; d e l e t e   m [ n + " . " + i ] } e l s e { j [ i ] = m [ k + " . " + i ] ; d e l e t e   m [ k + " . " + i ] } } a . e m b e d . d e s e r i a l i z e = f u n c t i o n ( i ) { v a r   j = g ( i ) ; f o r ( v a r   m   i n   i ) { i f ( m . i n d e x O f ( " . " ) > - 1 ) { v a r   l = m . s p l i t ( " . " ) ; v a r   k = l [ 0 ] ; v a r   m = l [ 1 ] ; i f ( a . u t i l s . i s I n A r r a y ( f , k ) ) { b ( i , " c o m p o n e n t s " , k , m ) } e l s e { i f ( j [ k ] ) { b ( i , " p l u g i n s " , j [ k ] , m ) } } } } r e t u r n   i } ; a . e m b e d . c o n f i g = f u n c t i o n ( i , q ) { v a r   p = a . u t i l s . e x t e n d ( { } , i ) ; v a r   n ; i f ( d ( p . p l a y l i s t ) ) { n = p . p l a y l i s t ; d e l e t e   p . p l a y l i s t } p = a . e m b e d . d e s e r i a l i z e ( p ) ; p . h e i g h t = h ( p . h e i g h t ) ; p . w i d t h = h ( p . w i d t h ) ; i f ( t y p e o f   p . p l u g i n s = = " s t r i n g " ) { v a r   j = p . p l u g i n s . s p l i t ( " , " ) ; i f ( t y p e o f   p . p l u g i n s ! = " o b j e c t " ) { p . p l u g i n s = { } } f o r ( v a r   l = 0 ; l < j . l e n g t h ; l + + ) { v a r   m = a . u t i l s . g e t P l u g i n N a m e ( j [ l ] ) ; i f ( t y p e o f   p [ m ] = = " o b j e c t " ) { p . p l u g i n s [ j [ l ] ] = p [ m ] ; d e l e t e   p [ m ] } e l s e { p . p l u g i n s [ j [ l ] ] = { } } } } f o r ( v a r   o = 0 ; o < f . l e n g t h ; o + + ) { i f ( t y p e o f   p [ f [ o ] ] = = " s t r i n g " ) { i f ( ! p . c o m p o n e n t s [ f [ o ] ] ) { p . c o m p o n e n t s [ f [ o ] ] = { } } i f ( f [ o ] = = " l o g o " ) { p . c o m p o n e n t s [ f [ o ] ] . f i l e = p [ f [ o ] ] } e l s e { p . c o m p o n e n t s [ f [ o ] ] . p o s i t i o n = p [ f [ o ] ] } d e l e t e   p [ f [ o ] ] } e l s e { i f ( t y p e o f   p [ f [ o ] ] ! = " u n d e f i n e d " ) { i f ( ! p . c o m p o n e n t s [ f [ o ] ] ) { p . c o m p o n e n t s [ f [ o ] ] = { } } a . u t i l s . e x t e n d ( p . c o m p o n e n t s [ f [ o ] ] , p [ f [ o ] ] ) ; d e l e t e   p [ f [ o ] ] } } i f ( t y p e o f   p [ f [ o ] + " s i z e " ] ! = " u n d e f i n e d " ) { i f ( ! p . c o m p o n e n t s [ f [ o ] ] ) { p . c o m p o n e n t s [ f [ o ] ] = { } } p . c o m p o n e n t s [ f [ o ] ] . s i z e = p [ f [ o ] + " s i z e " ] ; d e l e t e   p [ f [ o ] + " s i z e " ] } } i f ( t y p e o f   p . i c o n s ! = " u n d e f i n e d " ) { i f ( ! p . c o m p o n e n t s . d i s p l a y ) { p . c o m p o n e n t s . d i s p l a y = { } } p . c o m p o n e n t s . d i s p l a y . i c o n s = p . i c o n s ; d e l e t e   p . i c o n s } i f ( p . p l a y e r s ) { p . m o d e s = p . p l a y e r s ; d e l e t e   p . p l a y e r s } v a r   k ; i f ( p . f l a s h p l a y e r & & ! p . m o d e s ) { k = c ( ) ; k [ 0 ] . s r c = p . f l a s h p l a y e r ; d e l e t e   p . f l a s h p l a y e r } e l s e { i f ( p . m o d e s ) { i f ( t y p e o f   p . m o d e s = = " s t r i n g " ) { k = c ( ) ; k [ 0 ] . s r c = p . m o d e s } e l s e { i f ( p . m o d e s   i n s t a n c e o f   A r r a y ) { k = p . m o d e s } e l s e { i f ( t y p e o f   p . m o d e s = = " o b j e c t " & & p . m o d e s . t y p e ) { k = [ p . m o d e s ] } } } d e l e t e   p . m o d e s } e l s e { k = c ( ) } } p . m o d e s = k ; i f ( n ) { p . p l a y l i s t = n } r e t u r n   p } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . e m b e d . d o w n l o a d = f u n c t i o n ( c , g , b , d , f ) { t h i s . e m b e d = f u n c t i o n ( ) { v a r   j = a . u t i l s . e x t e n d ( { } , b ) ; v a r   p = { } ; v a r   i = b . w i d t h ? b . w i d t h : 4 8 0 ; i f ( t y p e o f   i ! = " n u m b e r " ) { i = p a r s e I n t ( i , 1 0 ) } v a r   l = b . h e i g h t ? b . h e i g h t : 3 2 0 ; i f ( t y p e o f   l ! = " n u m b e r " ) { l = p a r s e I n t ( l , 1 0 ) } v a r   t , n , m ; v a r   r = { } ; i f ( b . p l a y l i s t & & b . p l a y l i s t . l e n g t h ) { r . f i l e = b . p l a y l i s t [ 0 ] . f i l e ; n = b . p l a y l i s t [ 0 ] . i m a g e ; r . l e v e l s = b . p l a y l i s t [ 0 ] . l e v e l s } e l s e { r . f i l e = b . f i l e ; n = b . i m a g e ; r . l e v e l s = b . l e v e l s } i f ( r . f i l e ) { t = r . f i l e } e l s e { i f ( r . l e v e l s & & r . l e v e l s . l e n g t h ) { t = r . l e v e l s [ 0 ] . f i l e } } m = t ? " p o i n t e r " : " a u t o " ; v a r   k = { d i s p l a y : { s t y l e : { c u r s o r : m , w i d t h : i , h e i g h t : l , b a c k g r o u n d C o l o r : " # 0 0 0 " , p o s i t i o n : " r e l a t i v e " , t e x t D e c o r a t i o n : " n o n e " , b o r d e r : " n o n e " , d i s p l a y : " b l o c k " } } , d i s p l a y _ i c o n : { s t y l e : { c u r s o r : m , p o s i t i o n : " a b s o l u t e " , d i s p l a y : t ? " b l o c k " : " n o n e " , t o p : 0 , l e f t : 0 , b o r d e r : 0 , m a r g i n : 0 , p a d d i n g : 0 , z I n d e x : 3 , w i d t h : 5 0 , h e i g h t : 5 0 , b a c k g r o u n d I m a g e : " u r l ( d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A D I A A A A y C A Y A A A A e P 4 i x A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A L d J R E F U e N r s 1 8 E N g j A Y h m F o u D O C c Q J G c A R H g E 1 0 B D c g T O I o s A G w Q O u P w a Q e u F R i 2 p / 3 S b 6 E C 5 L 3 Q C x Z B g A A A O C o r L W 1 z M n 6 5 T r l k H 4 N c V 7 Q N c U Q t 7 G n 7 K I h x A + q N I R 8 1 s p O G k L 8 o F J D y L J R d o s q K D D k K + i X 5 + d 7 h u z w M 4 0 x p t M Q M k j I O e R G o + V k E V v I P f T G I p K A S f Y I f T 9 i C H k H r B E z f 4 g c U Q 5 6 a E z u G K / m w 0 r H p y 4 A A A C A f 3 k J M A C B x j A Q N R c k h w A A A A B J R U 5 E r k J g g g = = ) " } } , d i s p l a y _ i c o n B a c k g r o u n d : { s t y l e : { c u r s o r : m , p o s i t i o n : " a b s o l u t e " , d i s p l a y : t ? " b l o c k " : " n o n e " , t o p : ( ( l - 5 0 ) / 2 ) , l e f t : ( ( i - 5 0 ) / 2 ) , b o r d e r : 0 , w i d t h : 5 0 , h e i g h t : 5 0 , m a r g i n : 0 , p a d d i n g : 0 , z I n d e x : 2 , b a c k g r o u n d I m a g e : " u r l ( d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A D I A A A A y C A Y A A A A e P 4 i x A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A E p J R E F U e N r s z w E N A D A I A 7 D h X 8 E N o B M Z 5 K R 1 0 E r y c k C J i I i I i I i I i I i I i I i I i I i I i I h 8 G m k R E R E R E R E R E R E R E R E R E R E R E R G R H S P A A P l X H 1 p h Y p Y a A A A A A E l F T k S u Q m C C ) " } } , d i s p l a y _ i m a g e : { s t y l e : { w i d t h : i , h e i g h t : l , d i s p l a y : n ? " b l o c k " : " n o n e " , p o s i t i o n : " a b s o l u t e " , c u r s o r : m , l e f t : 0 , t o p : 0 , m a r g i n : 0 , p a d d i n g : 0 , t e x t D e c o r a t i o n : " n o n e " , z I n d e x : 1 , b o r d e r : " n o n e " } } } ; v a r   h = f u n c t i o n ( u , w , x ) { v a r   v = d o c u m e n t . c r e a t e E l e m e n t ( u ) ; i f ( x ) { v . i d = x } e l s e { v . i d = c . i d + " _ j w p l a y e r _ " + w } a . u t i l s . c s s ( v , k [ w ] . s t y l e ) ; r e t u r n   v } ; p . d i s p l a y = h ( " a " , " d i s p l a y " , c . i d ) ; i f ( t ) { p . d i s p l a y . s e t A t t r i b u t e ( " h r e f " , a . u t i l s . g e t A b s o l u t e P a t h ( t ) ) } p . d i s p l a y _ i m a g e = h ( " i m g " , " d i s p l a y _ i m a g e " ) ; p . d i s p l a y _ i m a g e . s e t A t t r i b u t e ( " a l t " , " C l i c k   t o   d o w n l o a d . . . " ) ; i f ( n ) { p . d i s p l a y _ i m a g e . s e t A t t r i b u t e ( " s r c " , a . u t i l s . g e t A b s o l u t e P a t h ( n ) ) } i f ( t r u e ) { p . d i s p l a y _ i c o n = h ( " d i v " , " d i s p l a y _ i c o n " ) ; p . d i s p l a y _ i c o n B a c k g r o u n d = h ( " d i v " , " d i s p l a y _ i c o n B a c k g r o u n d " ) ; p . d i s p l a y . a p p e n d C h i l d ( p . d i s p l a y _ i m a g e ) ; p . d i s p l a y _ i c o n B a c k g r o u n d . a p p e n d C h i l d ( p . d i s p l a y _ i c o n ) ; p . d i s p l a y . a p p e n d C h i l d ( p . d i s p l a y _ i c o n B a c k g r o u n d ) } _ c s s = a . u t i l s . c s s ; _ h i d e = f u n c t i o n ( u ) { _ c s s ( u , { d i s p l a y : " n o n e " } ) } ; f u n c t i o n   q ( u ) { _ i m a g e W i d t h = p . d i s p l a y _ i m a g e . n a t u r a l W i d t h ; _ i m a g e H e i g h t = p . d i s p l a y _ i m a g e . n a t u r a l H e i g h t ; s ( ) } f u n c t i o n   s ( ) { a . u t i l s . s t r e t c h ( a . u t i l s . s t r e t c h i n g . U N I F O R M , p . d i s p l a y _ i m a g e , i , l , _ i m a g e W i d t h , _ i m a g e H e i g h t ) } p . d i s p l a y _ i m a g e . o n e r r o r = f u n c t i o n ( u ) { _ h i d e ( p . d i s p l a y _ i m a g e ) } ; p . d i s p l a y _ i m a g e . o n l o a d = q ; c . p a r e n t N o d e . r e p l a c e C h i l d ( p . d i s p l a y , c ) ; v a r   o = ( b . p l u g i n s & & b . p l u g i n s . l o g o ) ? b . p l u g i n s . l o g o : { } ; p . d i s p l a y . a p p e n d C h i l d ( n e w   a . e m b e d . l o g o ( b . c o m p o n e n t s . l o g o , " d o w n l o a d " , c . i d ) ) ; f . c o n t a i n e r = d o c u m e n t . g e t E l e m e n t B y I d ( f . i d ) ; f . s e t P l a y e r ( p . d i s p l a y , " d o w n l o a d " ) } ; t h i s . s u p p o r t s C o n f i g = f u n c t i o n ( ) { i f ( b ) { v a r   j = a . u t i l s . g e t F i r s t P l a y l i s t I t e m F r o m C o n f i g ( b ) ; i f ( t y p e o f   j . f i l e = = " u n d e f i n e d " & & t y p e o f   j . l e v e l s = = " u n d e f i n e d " ) { r e t u r n   t r u e } e l s e { i f ( j . f i l e ) { r e t u r n   e ( j . f i l e , j . p r o v i d e r , j . p l a y l i s t f i l e ) } e l s e { i f ( j . l e v e l s & & j . l e v e l s . l e n g t h ) { f o r ( v a r   h = 0 ; h < j . l e v e l s . l e n g t h ; h + + ) { i f ( j . l e v e l s [ h ] . f i l e & & e ( j . l e v e l s [ h ] . f i l e , j . p r o v i d e r , j . p l a y l i s t f i l e ) ) { r e t u r n   t r u e } } } } } } e l s e { r e t u r n   t r u e } } ; f u n c t i o n   e ( i , k , h ) { i f ( h ) { r e t u r n   f a l s e } v a r   j = [ " i m a g e " , " s o u n d " , " y o u t u b e " , " h t t p " ] ; i f ( k & & ( j . t o S t r i n g ( ) . i n d e x O f ( k ) > - 1 ) ) { r e t u r n   t r u e } i f ( ! k | | ( k & & k = = " v i d e o " ) ) { v a r   l = a . u t i l s . e x t e n s i o n ( i ) ; i f ( l & & a . u t i l s . e x t e n s i o n m a p [ l ] ) { r e t u r n   t r u e } } r e t u r n   f a l s e } } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . e m b e d . f l a s h = f u n c t i o n ( f , g , k , e , i ) { f u n c t i o n   l ( n , m , o ) { v a r   p = d o c u m e n t . c r e a t e E l e m e n t ( " p a r a m " ) ; p . s e t A t t r i b u t e ( " n a m e " , m ) ; p . s e t A t t r i b u t e ( " v a l u e " , o ) ; n . a p p e n d C h i l d ( p ) } f u n c t i o n   j ( n , o , m ) { r e t u r n   f u n c t i o n ( p ) { i f ( m ) { d o c u m e n t . g e t E l e m e n t B y I d ( i . i d + " _ w r a p p e r " ) . a p p e n d C h i l d ( o ) } v a r   r = d o c u m e n t . g e t E l e m e n t B y I d ( i . i d ) . g e t P l u g i n C o n f i g ( " d i s p l a y " ) ; n . r e s i z e ( r . w i d t h , r . h e i g h t ) ; v a r   q = { l e f t : r . x , t o p : r . y } ; a . u t i l s . c s s ( o , q ) } } f u n c t i o n   d ( o ) { i f ( ! o ) { r e t u r n { } } v a r   q = { } ; f o r ( v a r   n   i n   o ) { v a r   m = o [ n ] ; f o r ( v a r   p   i n   m ) { q [ n + " . " + p ] = m [ p ] } } r e t u r n   q } f u n c t i o n   h ( p , o ) { i f ( p [ o ] ) { v a r   r = p [ o ] ; f o r ( v a r   n   i n   r ) { v a r   m = r [ n ] ; i f ( t y p e o f   m = = " s t r i n g " ) { i f ( ! p [ n ] ) { p [ n ] = m } } e l s e { f o r ( v a r   q   i n   m ) { i f ( ! p [ n + " . " + q ] ) { p [ n + " . " + q ] = m [ q ] } } } } d e l e t e   p [ o ] } } f u n c t i o n   b ( p ) { i f ( ! p ) { r e t u r n { } } v a r   s = { } , r = [ ] ; f o r ( v a r   m   i n   p ) { v a r   o = a . u t i l s . g e t P l u g i n N a m e ( m ) ; v a r   n = p [ m ] ; r . p u s h ( m ) ; f o r ( v a r   q   i n   n ) { s [ o + " . " + q ] = n [ q ] } } s . p l u g i n s = r . j o i n ( " , " ) ; r e t u r n   s } f u n c t i o n   c ( o ) { v a r   m = o . n e t s t r e a m b a s e p a t h ? " " : " n e t s t r e a m b a s e p a t h = " + e n c o d e U R I C o m p o n e n t ( w i n d o w . l o c a t i o n . h r e f ) + " & " ; f o r ( v a r   n   i n   o ) { i f ( t y p e o f ( o [ n ] ) = = " o b j e c t " ) { m + = n + " = " + e n c o d e U R I C o m p o n e n t ( " [ [ J S O N ] ] " + a . u t i l s . s t r i n g s . j s o n T o S t r i n g ( o [ n ] ) ) + " & " } e l s e { m + = n + " = " + e n c o d e U R I C o m p o n e n t ( o [ n ] ) + " & " } } r e t u r n   m . s u b s t r i n g ( 0 , m . l e n g t h - 1 ) } t h i s . e m b e d = f u n c t i o n ( ) { k . i d = i . i d ; v a r   x ; v a r   p = a . u t i l s . e x t e n d ( { } , k ) ; v a r   m = p . w i d t h ; v a r   v = p . h e i g h t ; i f ( f . i d + " _ w r a p p e r " = = f . p a r e n t N o d e . i d ) { x = d o c u m e n t . g e t E l e m e n t B y I d ( f . i d + " _ w r a p p e r " ) } e l s e { x = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; x . i d = f . i d + " _ w r a p p e r " ; a . u t i l s . w r a p ( f , x ) ; a . u t i l s . c s s ( x , { p o s i t i o n : " r e l a t i v e " , w i d t h : m , h e i g h t : v } ) } v a r   n = e . s e t u p P l u g i n s ( i , p , j ) ; i f ( n . l e n g t h > 0 ) { a . u t i l s . e x t e n d ( p , b ( n . p l u g i n s ) ) } e l s e { d e l e t e   p . p l u g i n s } v a r   q = [ " h e i g h t " , " w i d t h " , " m o d e s " , " e v e n t s " ] ; f o r ( v a r   t = 0 ; t < q . l e n g t h ; t + + ) { d e l e t e   p [ q [ t ] ] } v a r   o = " o p a q u e " ; i f ( p . w m o d e ) { o = p . w m o d e } h ( p , " c o m p o n e n t s " ) ; h ( p , " p r o v i d e r s " ) ; i f ( t y p e o f   p [ " d o c k . p o s i t i o n " ] ! = " u n d e f i n e d " ) { i f ( p [ " d o c k . p o s i t i o n " ] . t o S t r i n g ( ) . t o L o w e r C a s e ( ) = = " f a l s e " ) { p . d o c k = p [ " d o c k . p o s i t i o n " ] ; d e l e t e   p [ " d o c k . p o s i t i o n " ] } } v a r   w = " # 0 0 0 0 0 0 " ; v a r   s ; i f ( a . u t i l s . i s I E ( ) ) { v a r   u = ' < 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 "   b g c o l o r = " ' + w + ' "   w i d t h = " 1 0 0 % "   h e i g h t = " 1 0 0 % "   i d = " ' + f . i d + ' "   n a m e = " ' + f . i d + ' "   t a b i n d e x = 0 " " > ' ; u + = ' < p a r a m   n a m e = " m o v i e "   v a l u e = " ' + g . s r c + ' " > ' ; u + = ' < 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 " > ' ; u + = ' < 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 " > ' ; u + = ' < p a r a m   n a m e = " s e a m l e s s t a b b i n g "   v a l u e = " t r u e " > ' ; u + = ' < p a r a m   n a m e = " w m o d e "   v a l u e = " ' + o + ' " > ' ; u + = ' < p a r a m   n a m e = " f l a s h v a r s "   v a l u e = " ' + c ( p ) + ' " > ' ; u + = " < / o b j e c t > " ; a . u t i l s . s e t O u t e r H T M L ( f , u ) ; s = d o c u m e n t . g e t E l e m e n t B y I d ( f . i d ) } e l s e { v a r   r = d o c u m e n t . c r e a t e E l e m e n t ( " o b j e c t " ) ; r . s e t A t t r i b u t 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 " ) ; r . s e t A t t r i b u t e ( " d a t a " , g . s r c ) ; r . s e t A t t r i b u t e ( " w i d t h " , " 1 0 0 % " ) ; r . s e t A t t r i b u t e ( " h e i g h t " , " 1 0 0 % " ) ; r . s e t A t t r i b u t e ( " b g c o l o r " , " # 0 0 0 0 0 0 " ) ; r . s e t A t t r i b u t e ( " i d " , f . i d ) ; r . s e t A t t r i b u t e ( " n a m e " , f . i d ) ; r . s e t A t t r i b u t e ( " t a b i n d e x " , 0 ) ; l ( r , " a l l o w f u l l s c r e e n " , " t r u e " ) ; l ( r , " a l l o w s c r i p t a c c e s s " , " a l w a y s " ) ; l ( r , " s e a m l e s s t a b b i n g " , " t r u e " ) ; l ( r , " w m o d e " , o ) ; l ( r , " f l a s h v a r s " , c ( p ) ) ; f . p a r e n t N o d e . r e p l a c e C h i l d ( r , f ) ; s = r } i . c o n t a i n e r = s ; i . s e t P l a y e r ( s , " f l a s h " ) } ; t h i s . s u p p o r t s C o n f i g = f u n c t i o n ( ) { i f ( a . u t i l s . h a s F l a s h ( ) ) { i f ( k ) { v a r   n = a . u t i l s . g e t F i r s t P l a y l i s t I t e m F r o m C o n f i g ( k ) ; i f ( t y p e o f   n . f i l e = = " u n d e f i n e d " & & t y p e o f   n . l e v e l s = = " u n d e f i n e d " ) { r e t u r n   t r u e } e l s e { i f ( n . f i l e ) { r e t u r n   f l a s h C a n P l a y ( n . f i l e , n . p r o v i d e r ) } e l s e { i f ( n . l e v e l s & & n . l e v e l s . l e n g t h ) { f o r ( v a r   m = 0 ; m < n . l e v e l s . l e n g t h ; m + + ) { i f ( n . l e v e l s [ m ] . f i l e & & f l a s h C a n P l a y ( n . l e v e l s [ m ] . f i l e , n . p r o v i d e r ) ) { r e t u r n   t r u e } } } } } } e l s e { r e t u r n   t r u e } } r e t u r n   f a l s e } ; f l a s h C a n P l a y = f u n c t i o n ( m , o ) { v a r   n = [ " v i d e o " , " h t t p " , " s o u n d " , " i m a g e " ] ; i f ( o & & ( n . t o S t r i n g ( ) . i n d e x O f ( o < 0 ) ) ) { r e t u r n   t r u e } v a r   p = a . u t i l s . e x t e n s i o n ( m ) ; i f ( ! p ) { r e t u r n   t r u e } i f ( a . u t i l s . e x t e n s i o n m a p [ p ] ! = = u n d e f i n e d & & a . u t i l s . e x t e n s i o n m a p [ p ] . f l a s h = = = u n d e f i n e d ) { r e t u r n   f a l s e } r e t u r n   t r u e } } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . e m b e d . h t m l 5 = f u n c t i o n ( c , g , b , d , f ) { f u n c t i o n   e ( i , j , h ) { r e t u r n   f u n c t i o n ( k ) { v a r   l = d o c u m e n t . g e t E l e m e n t B y I d ( c . i d + " _ d i s p l a y a r e a " ) ; i f ( h ) { l . a p p e n d C h i l d ( j ) } v a r   m = l . s t y l e ; i . r e s i z e ( p a r s e I n t ( m . w i d t h . r e p l a c e ( " p x " , " " ) ) , p a r s e I n t ( m . h e i g h t . r e p l a c e ( " p x " , " " ) ) ) ; j . l e f t = m . l e f t ; j . t o p = m . t o p } } t h i s . e m b e d = f u n c t i o n ( ) { i f ( a . h t m l 5 ) { d . s e t u p P l u g i n s ( f , b , e ) ; c . i n n e r H T M L = " " ; v a r   j = a . u t i l s . e x t e n d ( { s c r e e n c o l o r : " 0 x 0 0 0 0 0 0 " } , b ) ; v a r   h = [ " p l u g i n s " , " m o d e s " , " e v e n t s " ] ; f o r ( v a r   k = 0 ; k < h . l e n g t h ; k + + ) { d e l e t e   j [ h [ k ] ] } i f ( j . l e v e l s & & ! j . s o u r c e s ) { j . s o u r c e s = b . l e v e l s } i f ( j . s k i n & & j . s k i n . t o L o w e r C a s e ( ) . i n d e x O f ( " . z i p " ) > 0 ) { j . s k i n = j . s k i n . r e p l a c e ( / \ . z i p / i , " . x m l " ) } v a r   l = n e w   ( a . h t m l 5 ( c ) ) . s e t u p ( j ) ; f . c o n t a i n e r = d o c u m e n t . g e t E l e m e n t B y I d ( f . i d ) ; f . s e t P l a y e r ( l , " h t m l 5 " ) } e l s e { r e t u r n   n u l l } } ; t h i s . s u p p o r t s C o n f i g = f u n c t i o n ( ) { v a r   h = d o c u m e n t . c r e a t e E l e m e n t ( " v i d e o " ) ; i f ( ! ! h . c a n P l a y T y p e ) { i f ( b ) { v a r   k = a . u t i l s . g e t F i r s t P l a y l i s t I t e m F r o m C o n f i g ( b ) ; i f ( t y p e o f   k . f i l e = = " u n d e f i n e d " & & t y p e o f   k . l e v e l s = = " u n d e f i n e d " ) { r e t u r n   t r u e } e l s e { i f ( k . f i l e ) { r e t u r n   h t m l 5 C a n P l a y ( h , k . f i l e , k . p r o v i d e r , k . p l a y l i s t f i l e ) } e l s e { i f ( k . l e v e l s & & k . l e v e l s . l e n g t h ) { f o r ( v a r   j = 0 ; j < k . l e v e l s . l e n g t h ; j + + ) { i f ( k . l e v e l s [ j ] . f i l e & & h t m l 5 C a n P l a y ( h , k . l e v e l s [ j ] . f i l e , k . p r o v i d e r , k . p l a y l i s t f i l e ) ) { r e t u r n   t r u e } } } } } } e l s e { r e t u r n   t r u e } } r e t u r n   f a l s e } ; h t m l 5 C a n P l a y = f u n c t i o n ( j , i , k , h ) { i f ( h ) { r e t u r n   f a l s e } i f ( k & & k = = " y o u t u b e " ) { r e t u r n   t r u e } i f ( k & & k ! = " v i d e o " & & k ! = " h t t p " & & k ! = " s o u n d " ) { r e t u r n   f a l s e } v a r   l = a . u t i l s . e x t e n s i o n ( i ) ; i f ( ! l | | a . u t i l s . e x t e n s i o n m a p [ l ] = = = u n d e f i n e d ) { r e t u r n   t r u e } i f ( a . u t i l s . e x t e n s i o n m a p [ l ] . h t m l 5 = = = u n d e f i n e d ) { r e t u r n   f a l s e } i f ( a . u t i l s . i s L e g a c y A n d r o i d ( ) & & l . m a t c h ( / m 4 v | m p 4 / ) ) { r e t u r n   t r u e } r e t u r n   b r o w s e r C a n P l a y ( j , a . u t i l s . e x t e n s i o n m a p [ l ] . h t m l 5 ) } ; b r o w s e r C a n P l a y = f u n c t i o n ( i , h ) { i f ( ! h ) { r e t u r n   t r u e } r e t u r n   i . c a n P l a y T y p e ( h ) } } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . e m b e d . l o g o = f u n c t i o n ( l , k , d ) { v a r   i = { p r e f i x : " h t t p : / / l . l o n g t a i l v i d e o . c o m / " + k + " / " , f i l e : " l o g o . p n g " , l i n k : " h t t p : / / w w w . l o n g t a i l v i d e o . c o m / p l a y e r s / j w - f l v - p l a y e r / " , m a r g i n : 8 , o u t : 0 . 5 , o v e r : 1 , t i m e o u t : 3 , h i d e : f a l s e , p o s i t i o n : " b o t t o m - l e f t " } ; _ c s s = a . u t i l s . c s s ; v a r   b ; v a r   h ; j ( ) ; f u n c t i o n   j ( ) { n ( ) ; c ( ) ; f ( ) } f u n c t i o n   n ( ) { i f ( i . p r e f i x ) { v a r   p = a . v e r s i o n . s p l i t ( / \ W / ) . s p l i c e ( 0 , 2 ) . j o i n ( " / " ) ; i f ( i . p r e f i x . i n d e x O f ( p ) < 0 ) { i . p r e f i x + = p + " / " } } h = a . u t i l s . e x t e n d ( { } , i ) } f u n c t i o n   o ( ) { v a r   r = { b o r d e r : " n o n e " , t e x t D e c o r a t i o n : " n o n e " , p o s i t i o n : " a b s o l u t e " , c u r s o r : " p o i n t e r " , z I n d e x : 1 0 } ; r . d i s p l a y = h . h i d e ? " n o n e " : " b l o c k " ; v a r   q = h . p o s i t i o n . t o L o w e r C a s e ( ) . s p l i t ( " - " ) ; f o r ( v a r   p   i n   q ) { r [ q [ p ] ] = h . m a r g i n } r e t u r n   r } f u n c t i o n   c ( ) { b = d o c u m e n t . c r e a t e E l e m e n t ( " i m g " ) ; b . i d = d + " _ j w p l a y e r _ l o g o " ; b . s t y l e . d i s p l a y = " n o n e " ; b . o n l o a d = f u n c t i o n ( p ) { _ c s s ( b , o ( ) ) ; e ( ) } ; i f ( ! h . f i l e ) { r e t u r n } i f ( h . f i l e . i n d e x O f ( " h t t p : / / " ) = = = 0 ) { b . s r c = h . f i l e } e l s e { b . s r c = h . p r e f i x + h . f i l e } } i f ( ! h . f i l e ) { r e t u r n } f u n c t i o n   f ( ) { i f ( h . l i n k ) { b . o n m o u s e o v e r = g ; b . o n m o u s e o u t = e ; b . o n c l i c k = m } e l s e { t h i s . m o u s e E n a b l e d = f a l s e } } f u n c t i o n   m ( p ) { i f ( t y p e o f   p ! = " u n d e f i n e d " ) { p . p r e v e n t D e f a u l t ( ) ; p . s t o p P r o p a g a t i o n ( ) } i f ( h . l i n k ) { w i n d o w . o p e n ( h . l i n k , " _ b l a n k " ) } r e t u r n } f u n c t i o n   e ( p ) { i f ( h . l i n k ) { b . s t y l e . o p a c i t y = h . o u t } r e t u r n } f u n c t i o n   g ( p ) { i f ( h . h i d e ) { b . s t y l e . o p a c i t y = h . o v e r } r e t u r n } r e t u r n   b } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . h t m l 5 = f u n c t i o n ( b ) { v a r   c = b ; t h i s . s e t u p = f u n c t i o n ( d ) { a . u t i l s . e x t e n d ( t h i s , n e w   a . h t m l 5 . a p i ( c , d ) ) ; r e t u r n   t h i s } ; r e t u r n   t h i s } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( b ) { v a r   c = b . u t i l s . c s s ; b . h t m l 5 . v i e w = f u n c t i o n ( p , o , e ) { v a r   s = p ; v a r   l = o ; v a r   v = e ; v a r   u ; v a r   f ; v a r   z ; v a r   q ; v a r   A ; v a r   n ; f u n c t i o n   x ( ) { u = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; u . i d = l . i d ; u . c l a s s N a m e = l . c l a s s N a m e ; _ v i d e o w r a p p e r = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; _ v i d e o w r a p p e r . i d = u . i d + " _ v i d e o _ w r a p p e r " ; l . i d = u . i d + " _ v i d e o " ; c ( u , { p o s i t i o n : " r e l a t i v e " , h e i g h t : v . h e i g h t , w i d t h : v . w i d t h , p a d d i n g : 0 , b a c k g r o u n d C o l o r : B ( ) , z I n d e x : 0 } ) ; f u n c t i o n   B ( ) { i f ( s . s k i n . g e t C o m p o n e n t S e t t i n g s ( " d i s p l a y " ) & & s . s k i n . g e t C o m p o n e n t S e t t i n g s ( " d i s p l a y " ) . b a c k g r o u n d c o l o r ) { r e t u r n   s . s k i n . g e t C o m p o n e n t S e t t i n g s ( " d i s p l a y " ) . b a c k g r o u n d c o l o r } r e t u r n   p a r s e I n t ( " 0 0 0 0 0 0 " , 1 6 ) } c ( l , { w i d t h : v . w i d t h , h e i g h t : v . h e i g h t , t o p : 0 , l e f t : 0 , z I n d e x : 1 , m a r g i n : " a u t o " , d i s p l a y : " b l o c k " } ) ; c ( _ v i d e o w r a p p e r , { o v e r f l o w : " h i d d e n " , p o s i t i o n : " a b s o l u t e " , t o p : 0 , l e f t : 0 , b o t t o m : 0 , r i g h t : 0 } ) ; b . u t i l s . w r a p ( l , u ) ; b . u t i l s . w r a p ( l , _ v i d e o w r a p p e r ) ; q = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; q . i d = u . i d + " _ d i s p l a y a r e a " ; u . a p p e n d C h i l d ( q ) } f u n c t i o n   j ( ) { f o r ( v a r   B = 0 ; B < v . p l u g i n s . o r d e r . l e n g t h ; B + + ) { v a r   C = v . p l u g i n s . o r d e r [ B ] ; i f ( v . p l u g i n s . o b j e c t [ C ] . g e t D i s p l a y E l e m e n t ! = = u n d e f i n e d ) { v . p l u g i n s . o b j e c t [ C ] . h e i g h t = h ( v . p l u g i n s . o b j e c t [ C ] . g e t D i s p l a y E l e m e n t ( ) . s t y l e . h e i g h t ) ; v . p l u g i n s . o b j e c t [ C ] . w i d t h = h ( v . p l u g i n s . o b j e c t [ C ] . g e t D i s p l a y E l e m e n t ( ) . s t y l e . w i d t h ) ; v . p l u g i n s . c o n f i g [ C ] . c u r r e n t P o s i t i o n = v . p l u g i n s . c o n f i g [ C ] . p o s i t i o n } } t ( ) } f u n c t i o n   t ( C ) { i f ( v . g e t M e d i a ( ) ! = = u n d e f i n e d ) { f o r ( v a r   B = 0 ; B < v . p l u g i n s . o r d e r . l e n g t h ; B + + ) { v a r   D = v . p l u g i n s . o r d e r [ B ] ; i f ( v . p l u g i n s . o b j e c t [ D ] . g e t D i s p l a y E l e m e n t ! = = u n d e f i n e d ) { i f ( v . g e t M e d i a ( ) . h a s C h r o m e ( ) ) { v . p l u g i n s . c o n f i g [ D ] . c u r r e n t P o s i t i o n = b . h t m l 5 . v i e w . p o s i t i o n s . N O N E } e l s e { v . p l u g i n s . c o n f i g [ D ] . c u r r e n t P o s i t i o n = v . p l u g i n s . c o n f i g [ D ] . p o s i t i o n } } } } i ( v . w i d t h , v . h e i g h t ) } f u n c t i o n   h ( B ) { i f ( t y p e o f   B = = " s t r i n g " ) { i f ( B = = = " " ) { r e t u r n   0 } e l s e { i f ( B . l a s t I n d e x O f ( " % " ) > - 1 ) { r e t u r n   B } e l s e { r e t u r n   p a r s e I n t ( B . r e p l a c e ( " p x " , " " ) , 1 0 ) } } } r e t u r n   B } t h i s . s e t u p = f u n c t i o n ( B ) { l = B ; x ( ) ; j ( ) ; s . j w A d d E v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ L O A D E D , t ) ; s . j w A d d E v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ M E T A , f u n c t i o n ( ) { w ( ) } ) ; v a r   C ; i f ( w i n d o w . o n r e s i z e ! = = n u l l ) { C = w i n d o w . o n r e s i z e } w i n d o w . o n r e s i z e = f u n c t i o n ( D ) { i f ( C ! = = u n d e f i n e d ) { t r y { C ( D ) } c a t c h ( F ) { } } i f ( s . j w G e t F u l l s c r e e n ( ) ) { v a r   E = d o c u m e n t . b o d y . g e t B o u n d i n g C l i e n t R e c t ( ) ; v . w i d t h = M a t h . a b s ( E . l e f t ) + M a t h . a b s ( E . r i g h t ) ; v . h e i g h t = w i n d o w . i n n e r H e i g h t } i ( v . w i d t h , v . h e i g h t ) } } ; f u n c t i o n   g ( B ) { s w i t c h ( B . k e y C o d e ) { c a s e   2 7 : i f ( s . j w G e t F u l l s c r e e n ( ) ) { s . j w S e t F u l l s c r e e n ( f a l s e ) } b r e a k ; c a s e   3 2 : i f ( s . j w G e t S t a t e ( ) ! = b . a p i . e v e n t s . s t a t e . I D L E & & s . j w G e t S t a t e ( ) ! = b . a p i . e v e n t s . s t a t e . P A U S E D ) { s . j w P a u s e ( ) } e l s e { s . j w P l a y ( ) } b r e a k } } f u n c t i o n   i ( E , B ) { i f ( u . s t y l e . d i s p l a y = = " n o n e " ) { r e t u r n } v a r   D = [ ] . c o n c a t ( v . p l u g i n s . o r d e r ) ; D . r e v e r s e ( ) ; A = D . l e n g t h + 2 ; i f ( ! v . f u l l s c r e e n ) { v . w i d t h = E ; v . h e i g h t = B ; f = E ; z = B ; c ( q , { t o p : 0 , b o t t o m : 0 , l e f t : 0 , r i g h t : 0 , w i d t h : E , h e i g h t : B } ) ; c ( u , { h e i g h t : z , w i d t h : f } ) ; v a r   C = m ( r , D ) ; i f ( C . l e n g t h > 0 ) { A + = C . l e n g t h ; m ( k , C , t r u e ) } } e l s e { i f ( n a v i g a t o r . v e n d o r . i n d e x O f ( " A p p l e " ) ! = = 0 ) { m ( y , D , t r u e ) } } w ( ) } f u n c t i o n   m ( G , D , E ) { v a r   C = [ ] ; f o r ( v a r   B = 0 ; B < D . l e n g t h ; B + + ) { v a r   H = D [ B ] ; i f ( v . p l u g i n s . o b j e c t [ H ] . g e t D i s p l a y E l e m e n t ! = = u n d e f i n e d ) { i f ( v . p l u g i n s . c o n f i g [ H ] . c u r r e n t P o s i t i o n ! = b . h t m l 5 . v i e w . p o s i t i o n s . N O N E ) { v a r   F = G ( H , A - - ) ; i f ( ! F ) { C . p u s h ( H ) } e l s e { v . p l u g i n s . o b j e c t [ H ] . r e s i z e ( F . w i d t h , F . h e i g h t ) ; i f ( E ) { d e l e t e   F . w i d t h ; d e l e t e   F . h e i g h t } c ( v . p l u g i n s . o b j e c t [ H ] . g e t D i s p l a y E l e m e n t ( ) , F ) } } e l s e { c ( v . p l u g i n s . o b j e c t [ H ] . g e t D i s p l a y E l e m e n t ( ) , { d i s p l a y : " n o n e " } ) } } } r e t u r n   C } f u n c t i o n   r ( C , D ) { i f ( v . p l u g i n s . o b j e c t [ C ] . g e t D i s p l a y E l e m e n t ! = = u n d e f i n e d ) { i f ( v . p l u g i n s . c o n f i g [ C ] . p o s i t i o n & & a ( v . p l u g i n s . c o n f i g [ C ] . p o s i t i o n ) ) { i f ( v . p l u g i n s . o b j e c t [ C ] . g e t D i s p l a y E l e m e n t ( ) . p a r e n t N o d e = = = n u l l ) { u . a p p e n d C h i l d ( v . p l u g i n s . o b j e c t [ C ] . g e t D i s p l a y E l e m e n t ( ) ) } v a r   B = d ( C ) ; B . z I n d e x = D ; r e t u r n   B } } r e t u r n   f a l s e } f u n c t i o n   k ( D , E ) { i f ( v . p l u g i n s . o b j e c t [ D ] . g e t D i s p l a y E l e m e n t ( ) . p a r e n t N o d e = = = n u l l ) { q . a p p e n d C h i l d ( v . p l u g i n s . o b j e c t [ D ] . g e t D i s p l a y E l e m e n t ( ) ) } v a r   B = v . w i d t h , C = v . h e i g h t ; i f ( t y p e o f   v . w i d t h = = " s t r i n g " & & v . w i d t h . l a s t I n d e x O f ( " % " ) > - 1 ) { p e r c e n t a g e = p a r s e F l o a t ( v . w i d t h . s u b s t r i n g ( 0 , v . w i d t h . l a s t I n d e x O f ( " % " ) ) ) / 1 0 0 ; B = M a t h . r o u n d ( w i n d o w . i n n e r W i d t h * p e r c e n t a g e ) } i f ( t y p e o f   v . h e i g h t = = " s t r i n g " & & v . h e i g h t . l a s t I n d e x O f ( " % " ) > - 1 ) { p e r c e n t a g e = p a r s e F l o a t ( v . h e i g h t . s u b s t r i n g ( 0 , v . h e i g h t . l a s t I n d e x O f ( " % " ) ) ) / 1 0 0 ; C = M a t h . r o u n d ( w i n d o w . i n n e r H e i g h t * p e r c e n t a g e ) } r e t u r n { p o s i t i o n : " a b s o l u t e " , w i d t h : ( B - h ( q . s t y l e . l e f t ) - h ( q . s t y l e . r i g h t ) ) , h e i g h t : ( C - h ( q . s t y l e . t o p ) - h ( q . s t y l e . b o t t o m ) ) , z I n d e x : E } } f u n c t i o n   y ( B , C ) { r e t u r n { p o s i t i o n : " f i x e d " , w i d t h : v . w i d t h , h e i g h t : v . h e i g h t , z I n d e x : C } } f u n c t i o n   w ( ) { q . s t y l e . p o s i t i o n = " a b s o l u t e " ; v . g e t M e d i a ( ) . g e t D i s p l a y E l e m e n t ( ) . s t y l e . p o s i t i o n = " a b s o l u t e " ; i f ( v . g e t M e d i a ( ) . g e t D i s p l a y E l e m e n t ( ) . v i d e o W i d t h = = 0 | | v . g e t M e d i a ( ) . g e t D i s p l a y E l e m e n t ( ) . v i d e o H e i g h t = = 0 ) { r e t u r n } v a r   B , D ; i f ( q . s t y l e . w i d t h . t o S t r i n g ( ) . l a s t I n d e x O f ( " % " ) > - 1 | | q . s t y l e . w i d t h . t o S t r i n g ( ) . l a s t I n d e x O f ( " % " ) > - 1 ) { v a r   C = q . g e t B o u n d i n g C l i e n t R e c t ( ) ; B = M a t h . a b s ( C . l e f t ) + M a t h . a b s ( C . r i g h t ) ; D = M a t h . a b s ( C . t o p ) + M a t h . a b s ( C . b o t t o m ) } e l s e { B = h ( q . s t y l e . w i d t h ) ; D = h ( q . s t y l e . h e i g h t ) } b . u t i l s . s t r e t c h ( s . j w G e t S t r e t c h i n g ( ) , v . g e t M e d i a ( ) . g e t D i s p l a y E l e m e n t ( ) , B , D , v . g e t M e d i a ( ) . g e t D i s p l a y E l e m e n t ( ) . v i d e o W i d t h , v . g e t M e d i a ( ) . g e t D i s p l a y E l e m e n t ( ) . v i d e o H e i g h t ) } f u n c t i o n   d ( C ) { v a r   D = { p o s i t i o n : " a b s o l u t e " , m a r g i n : 0 , p a d d i n g : 0 , t o p : n u l l } ; v a r   B = v . p l u g i n s . c o n f i g [ C ] . c u r r e n t P o s i t i o n . t o L o w e r C a s e ( ) ; s w i t c h ( B . t o U p p e r C a s e ( ) ) { c a s e   b . h t m l 5 . v i e w . p o s i t i o n s . T O P : D . t o p = h ( q . s t y l e . t o p ) ; D . l e f t = h ( q . s t y l e . l e f t ) ; D . w i d t h = f - h ( q . s t y l e . l e f t ) - h ( q . s t y l e . r i g h t ) ; D . h e i g h t = v . p l u g i n s . o b j e c t [ C ] . h e i g h t ; q . s t y l e [ B ] = h ( q . s t y l e [ B ] ) + v . p l u g i n s . o b j e c t [ C ] . h e i g h t + " p x " ; q . s t y l e . h e i g h t = h ( q . s t y l e . h e i g h t ) - D . h e i g h t + " p x " ; b r e a k ; c a s e   b . h t m l 5 . v i e w . p o s i t i o n s . R I G H T : D . t o p = h ( q . s t y l e . t o p ) ; D . r i g h t = h ( q . s t y l e . r i g h t ) ; D . w i d t h = D . w i d t h = v . p l u g i n s . o b j e c t [ C ] . w i d t h ; D . h e i g h t = z - h ( q . s t y l e . t o p ) - h ( q . s t y l e . b o t t o m ) ; q . s t y l e [ B ] = h ( q . s t y l e [ B ] ) + v . p l u g i n s . o b j e c t [ C ] . w i d t h + " p x " ; q . s t y l e . w i d t h = h ( q . s t y l e . w i d t h ) - D . w i d t h + " p x " ; b r e a k ; c a s e   b . h t m l 5 . v i e w . p o s i t i o n s . B O T T O M : D . b o t t o m = h ( q . s t y l e . b o t t o m ) ; D . l e f t = h ( q . s t y l e . l e f t ) ; D . w i d t h = f - h ( q . s t y l e . l e f t ) - h ( q . s t y l e . r i g h t ) ; D . h e i g h t = v . p l u g i n s . o b j e c t [ C ] . h e i g h t ; q . s t y l e [ B ] = h ( q . s t y l e [ B ] ) + v . p l u g i n s . o b j e c t [ C ] . h e i g h t + " p x " ; q . s t y l e . h e i g h t = h ( q . s t y l e . h e i g h t ) - D . h e i g h t + " p x " ; b r e a k ; c a s e   b . h t m l 5 . v i e w . p o s i t i o n s . L E F T : D . t o p = h ( q . s t y l e . t o p ) ; D . l e f t = h ( q . s t y l e . l e f t ) ; D . w i d t h = v . p l u g i n s . o b j e c t [ C ] . w i d t h ; D . h e i g h t = z - h ( q . s t y l e . t o p ) - h ( q . s t y l e . b o t t o m ) ; q . s t y l e [ B ] = h ( q . s t y l e [ B ] ) + v . p l u g i n s . o b j e c t [ C ] . w i d t h + " p x " ; q . s t y l e . w i d t h = h ( q . s t y l e . w i d t h ) - D . w i d t h + " p x " ; b r e a k ; d e f a u l t : b r e a k } r e t u r n   D } t h i s . r e s i z e = i ; t h i s . f u l l s c r e e n = f u n c t i o n ( E ) { i f ( n a v i g a t o r . v e n d o r . i n d e x O f ( " A p p l e " ) = = = 0 ) { i f ( v . g e t M e d i a ( ) . g e t D i s p l a y E l e m e n t ( ) . w e b k i t S u p p o r t s F u l l s c r e e n ) { i f ( E ) { t r y { v . g e t M e d i a ( ) . g e t D i s p l a y E l e m e n t ( ) . w e b k i t E n t e r F u l l s c r e e n ( ) } c a t c h ( D ) { } } e l s e { t r y { v . g e t M e d i a ( ) . g e t D i s p l a y E l e m e n t ( ) . w e b k i t E x i t F u l l s c r e e n ( ) } c a t c h ( D ) { } } } } e l s e { i f ( E ) { d o c u m e n t . o n k e y d o w n = g ; c l e a r I n t e r v a l ( n ) ; v a r   C = d o c u m e n t . b o d y . g e t B o u n d i n g C l i e n t R e c t ( ) ; v . w i d t h = M a t h . a b s ( C . l e f t ) + M a t h . a b s ( C . r i g h t ) ; v . h e i g h t = w i n d o w . i n n e r H e i g h t ; v a r   B = { p o s i t i o n : " f i x e d " , w i d t h : " 1 0 0 % " , h e i g h t : " 1 0 0 % " , t o p : 0 , l e f t : 0 , z I n d e x : 2 1 4 7 4 8 3 0 0 0 } ; c ( u , B ) ; B . z I n d e x = 1 ; c ( v . g e t M e d i a ( ) . g e t D i s p l a y E l e m e n t ( ) , B ) ; B . z I n d e x = 2 ; c ( q , B ) } e l s e { d o c u m e n t . o n k e y d o w n = " " ; v . w i d t h = f ; v . h e i g h t = z ; c ( u , { p o s i t i o n : " r e l a t i v e " , h e i g h t : v . h e i g h t , w i d t h : v . w i d t h , z I n d e x : 0 } ) } i ( v . w i d t h , v . h e i g h t ) } } } ; f u n c t i o n   a ( d ) { r e t u r n ( [ b . h t m l 5 . v i e w . p o s i t i o n s . T O P , b . h t m l 5 . v i e w . p o s i t i o n s . R I G H T , b . h t m l 5 . v i e w . p o s i t i o n s . B O T T O M , b . h t m l 5 . v i e w . p o s i t i o n s . L E F T ] . t o S t r i n g ( ) . i n d e x O f ( d . t o U p p e r C a s e ( ) ) > - 1 ) } b . h t m l 5 . v i e w . p o s i t i o n s = { T O P : " T O P " , R I G H T : " R I G H T " , B O T T O M : " B O T T O M " , L E F T : " L E F T " , O V E R : " O V E R " , N O N E : " N O N E " } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { v a r   b = { b a c k g r o u n d c o l o r : " " , m a r g i n : 1 0 , f o n t : " A r i a l , s a n s - s e r i f " , f o n t s i z e : 1 0 , f o n t c o l o r : p a r s e I n t ( " 0 0 0 0 0 0 " , 1 6 ) , f o n t s t y l e : " n o r m a l " , f o n t w e i g h t : " b o l d " , b u t t o n c o l o r : p a r s e I n t ( " f f f f f f " , 1 6 ) , p o s i t i o n : a . h t m l 5 . v i e w . p o s i t i o n s . B O T T O M , i d l e h i d e : f a l s e , l a y o u t : { l e f t : { p o s i t i o n : " l e f t " , e l e m e n t s : [ { n a m e : " p l a y " , t y p e : " b u t t o n " } , { n a m e : " d i v i d e r " , t y p e : " d i v i d e r " } , { n a m e : " p r e v " , t y p e : " b u t t o n " } , { n a m e : " d i v i d e r " , t y p e : " d i v i d e r " } , { n a m e : " n e x t " , t y p e : " b u t t o n " } , { n a m e : " d i v i d e r " , t y p e : " d i v i d e r " } , { n a m e : " e l a p s e d " , t y p e : " t e x t " } ] } , c e n t e r : { p o s i t i o n : " c e n t e r " , e l e m e n t s : [ { n a m e : " t i m e " , t y p e : " s l i d e r " } ] } , r i g h t : { p o s i t i o n : " r i g h t " , e l e m e n t s : [ { n a m e : " d u r a t i o n " , t y p e : " t e x t " } , { n a m e : " b l a n k " , t y p e : " b u t t o n " } , { n a m e : " d i v i d e r " , t y p e : " d i v i d e r " } , { n a m e : " m u t e " , t y p e : " b u t t o n " } , { n a m e : " v o l u m e " , t y p e : " s l i d e r " } , { n a m e : " d i v i d e r " , t y p e : " d i v i d e r " } , { n a m e : " f u l l s c r e e n " , t y p e : " b u t t o n " } ] } } } ; _ c s s = a . u t i l s . c s s ; _ h i d e = f u n c t i o n ( c ) { _ c s s ( c , { d i s p l a y : " n o n e " } ) } ; _ s h o w = f u n c t i o n ( c ) { _ c s s ( c , { d i s p l a y : " b l o c k " } ) } ; a . h t m l 5 . c o n t r o l b a r = f u n c t i o n ( k , M ) { v a r   j = k ; v a r   A = a . u t i l s . e x t e n d ( { } , b , j . s k i n . g e t C o m p o n e n t S e t t i n g s ( " c o n t r o l b a r " ) , M ) ; i f ( A . p o s i t i o n = = a . h t m l 5 . v i e w . p o s i t i o n s . N O N E | | t y p e o f   a . h t m l 5 . v i e w . p o s i t i o n s [ A . p o s i t i o n ] = = " u n d e f i n e d " ) { r e t u r n } i f ( a . u t i l s . m a p L e n g t h ( j . s k i n . g e t C o m p o n e n t L a y o u t ( " c o n t r o l b a r " ) ) > 0 ) { A . l a y o u t = j . s k i n . g e t C o m p o n e n t L a y o u t ( " c o n t r o l b a r " ) } v a r   R ; v a r   J ; v a r   Q ; v a r   B ; v a r   t = " n o n e " ; v a r   f ; v a r   i ; v a r   S ; v a r   e ; v a r   d ; v a r   w ; v a r   K = { } ; v a r   o = f a l s e ; v a r   c = { } ; v a r   O ; v a r   h = f a l s e ; f u n c t i o n   E ( ) { i f ( ! O ) { O = j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " b a c k g r o u n d " ) ; i f ( ! O ) { O = { w i d t h : 0 , h e i g h t : 0 , s r c : n u l l } } } r e t u r n   O } f u n c t i o n   I ( ) { Q = 0 ; B = 0 ; J = 0 ; i f ( ! o ) { v a r   Z = { h e i g h t : E ( ) . h e i g h t , b a c k g r o u n d C o l o r : A . b a c k g r o u n d c o l o r } ; R = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; R . i d = j . i d + " _ j w p l a y e r _ c o n t r o l b a r " ; _ c s s ( R , Z ) } v a r   Y = ( j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " c a p L e f t " ) ) ; v a r   X = ( j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " c a p R i g h t " ) ) ; i f ( Y ) { v ( " c a p L e f t " , " l e f t " , f a l s e , R ) } v a r   a a = { p o s i t i o n : " a b s o l u t e " , h e i g h t : E ( ) . h e i g h t , l e f t : ( Y ? Y . w i d t h : 0 ) , z I n d e x : 0 } ; P ( " b a c k g r o u n d " , R , a a , " i m g " ) ; i f ( E ( ) . s r c ) { K . b a c k g r o u n d . s r c = E ( ) . s r c } a a . z I n d e x = 1 ; P ( " e l e m e n t s " , R , a a ) ; i f ( X ) { v ( " c a p R i g h t " , " r i g h t " , f a l s e , R ) } } t h i s . g e t D i s p l a y E l e m e n t = f u n c t i o n ( ) { r e t u r n   R } ; t h i s . r e s i z e = f u n c t i o n ( Z , X ) { a . u t i l s . c a n c e l A n i m a t i o n ( R ) ; d o c u m e n t . g e t E l e m e n t B y I d ( j . i d ) . o n m o u s e m o v e = x ; d = Z ; w = X ; x ( ) ; v a r   Y = u ( ) ; D ( { i d : j . i d , d u r a t i o n : S , p o s i t i o n : i } ) ; s ( { i d : j . i d , b u f f e r P e r c e n t : e } ) ; r e t u r n   Y } ; t h i s . s h o w = f u n c t i o n ( ) { h = f a l s e ; _ s h o w ( R ) } ; t h i s . h i d e = f u n c t i o n ( ) { h = t r u e ; _ h i d e ( R ) } ; f u n c t i o n   p ( ) { v a r   Y = [ " t i m e S l i d e r " , " v o l u m e S l i d e r " , " t i m e S l i d e r R a i l " , " v o l u m e S l i d e r R a i l " ] ; f o r ( v a r   Z   i n   Y ) { v a r   X = Y [ Z ] ; i f ( t y p e o f   K [ X ] ! = " u n d e f i n e d " ) { c [ X ] = K [ X ] . g e t B o u n d i n g C l i e n t R e c t ( ) } } } f u n c t i o n   x ( ) { i f ( h ) { r e t u r n } a . u t i l s . c a n c e l A n i m a t i o n ( R ) ; i f ( g ( ) ) { a . u t i l s . f a d e T o ( R , 1 , 0 , 1 , 0 ) } e l s e { a . u t i l s . f a d e T o ( R , 0 , 0 . 1 , 1 , 2 ) } } f u n c t i o n   g ( ) { i f ( h ) { r e t u r n   f a l s e } i f ( j . j w G e t S t a t e ( ) = = a . a p i . e v e n t s . s t a t e . I D L E | | j . j w G e t S t a t e ( ) = = a . a p i . e v e n t s . s t a t e . P A U S E D ) { i f ( A . i d l e h i d e ) { r e t u r n   f a l s e } r e t u r n   t r u e } i f ( j . j w G e t F u l l s c r e e n ( ) ) { r e t u r n   f a l s e } i f ( A . p o s i t i o n = = a . h t m l 5 . v i e w . p o s i t i o n s . O V E R ) { r e t u r n   f a l s e } r e t u r n   t r u e } f u n c t i o n   P ( a b , a a , Z , X ) { v a r   Y ; i f ( ! o ) { i f ( ! X ) { X = " d i v " } Y = d o c u m e n t . c r e a t e E l e m e n t ( X ) ; K [ a b ] = Y ; Y . i d = R . i d + " _ " + a b ; a a . a p p e n d C h i l d ( Y ) } e l s e { Y = d o c u m e n t . g e t E l e m e n t B y I d ( R . i d + " _ " + a b ) } i f ( Z ! = = u n d e f i n e d ) { _ c s s ( Y , Z ) } r e t u r n   Y } f u n c t i o n   H ( ) { W ( A . l a y o u t . l e f t ) ; W ( A . l a y o u t . r i g h t , - 1 ) ; W ( A . l a y o u t . c e n t e r ) } f u n c t i o n   W ( a a , X ) { v a r   a b = a a . p o s i t i o n = = " r i g h t " ? " r i g h t " : " l e f t " ; v a r   Z = a . u t i l s . e x t e n d ( [ ] , a a . e l e m e n t s ) ; i f ( X ! = = u n d e f i n e d ) { Z . r e v e r s e ( ) } f o r ( v a r   Y = 0 ; Y < Z . l e n g t h ; Y + + ) { z ( Z [ Y ] , a b ) } } f u n c t i o n   F ( ) { r e t u r n   J + + } f u n c t i o n   z ( a b , a d ) { v a r   a a , Y , Z , X , a f ; i f ( a b . t y p e = = " d i v i d e r " ) { v ( " d i v i d e r " + F ( ) , a d , t r u e , u n d e f i n e d , u n d e f i n e d , a b . w i d t h , a b . e l e m e n t ) ; r e t u r n } s w i t c h ( a b . n a m e ) { c a s e " p l a y " : v ( " p l a y B u t t o n " , a d , f a l s e ) ; v ( " p a u s e B u t t o n " , a d , t r u e ) ; L ( " p l a y B u t t o n " , " j w P l a y " ) ; L ( " p a u s e B u t t o n " , " j w P a u s e " ) ; b r e a k ; c a s e " p r e v " : v ( " p r e v B u t t o n " , a d , t r u e ) ; L ( " p r e v B u t t o n " , " j w P l a y l i s t P r e v " ) ; b r e a k ; c a s e " n e x t " : v ( " n e x t B u t t o n " , a d , t r u e ) ; L ( " n e x t B u t t o n " , " j w P l a y l i s t N e x t " ) ; b r e a k ; c a s e " e l a p s e d " : v ( " e l a p s e d T e x t " , a d , t r u e ) ; b r e a k ; c a s e " t i m e " : Y = j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " t i m e S l i d e r C a p L e f t " ) = = = u n d e f i n e d ? 0 : j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " t i m e S l i d e r C a p L e f t " ) . w i d t h ; Z = j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " t i m e S l i d e r C a p R i g h t " ) = = = u n d e f i n e d ? 0 : j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " t i m e S l i d e r C a p R i g h t " ) . w i d t h ; a a = a d = = " l e f t " ? Y : Z ; X = j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " t i m e S l i d e r R a i l " ) . w i d t h + Y + Z ; a f = { h e i g h t : E ( ) . h e i g h t , p o s i t i o n : " a b s o l u t e " , t o p : 0 , w i d t h : X } ; a f [ a d ] = a d = = " l e f t " ? Q : B ; v a r   a c = P ( " t i m e S l i d e r " , K . e l e m e n t s , a f ) ; v ( " t i m e S l i d e r C a p L e f t " , a d , t r u e , a c , a d = = " l e f t " ? 0 : a a ) ; v ( " t i m e S l i d e r R a i l " , a d , f a l s e , a c , a a ) ; v ( " t i m e S l i d e r B u f f e r " , a d , f a l s e , a c , a a ) ; v ( " t i m e S l i d e r P r o g r e s s " , a d , f a l s e , a c , a a ) ; v ( " t i m e S l i d e r T h u m b " , a d , f a l s e , a c , a a ) ; v ( " t i m e S l i d e r C a p R i g h t " , a d , t r u e , a c , a d = = " r i g h t " ? 0 : a a ) ; N ( " t i m e " ) ; b r e a k ; c a s e " f u l l s c r e e n " : v ( " f u l l s c r e e n B u t t o n " , a d , f a l s e ) ; v ( " n o r m a l s c r e e n B u t t o n " , a d , t r u e ) ; L ( " f u l l s c r e e n B u t t o n " , " j w S e t F u l l s c r e e n " , t r u e ) ; L ( " n o r m a l s c r e e n B u t t o n " , " j w S e t F u l l s c r e e n " , f a l s e ) ; b r e a k ; c a s e " v o l u m e " : Y = j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " v o l u m e S l i d e r C a p L e f t " ) = = = u n d e f i n e d ? 0 : j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " v o l u m e S l i d e r C a p L e f t " ) . w i d t h ; Z = j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " v o l u m e S l i d e r C a p R i g h t " ) = = = u n d e f i n e d ? 0 : j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " v o l u m e S l i d e r C a p R i g h t " ) . w i d t h ; a a = a d = = " l e f t " ? Y : Z ; X = j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " v o l u m e S l i d e r R a i l " ) . w i d t h + Y + Z ; a f = { h e i g h t : E ( ) . h e i g h t , p o s i t i o n : " a b s o l u t e " , t o p : 0 , w i d t h : X } ; a f [ a d ] = a d = = " l e f t " ? Q : B ; v a r   a e = P ( " v o l u m e S l i d e r " , K . e l e m e n t s , a f ) ; v ( " v o l u m e S l i d e r C a p L e f t " , a d , t r u e , a e , a d = = " l e f t " ? 0 : a a ) ; v ( " v o l u m e S l i d e r R a i l " , a d , t r u e , a e , a a ) ; v ( " v o l u m e S l i d e r P r o g r e s s " , a d , f a l s e , a e , a a ) ; v ( " v o l u m e S l i d e r C a p R i g h t " , a d , t r u e , a e , a d = = " r i g h t " ? 0 : a a ) ; N ( " v o l u m e " ) ; b r e a k ; c a s e " m u t e " : v ( " m u t e B u t t o n " , a d , f a l s e ) ; v ( " u n m u t e B u t t o n " , a d , t r u e ) ; L ( " m u t e B u t t o n " , " j w S e t M u t e " , t r u e ) ; L ( " u n m u t e B u t t o n " , " j w S e t M u t e " , f a l s e ) ; b r e a k ; c a s e " d u r a t i o n " : v ( " d u r a t i o n T e x t " , a d , t r u e ) ; b r e a k } } f u n c t i o n   v ( a a , a d , Y , a g , a b , X , Z ) { i f ( j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , a a ) ! = = u n d e f i n e d | | a a . i n d e x O f ( " T e x t " ) > 0 | | a a . i n d e x O f ( " d i v i d e r " ) = = = 0 ) { v a r   a c = { h e i g h t : E ( ) . h e i g h t , p o s i t i o n : " a b s o l u t e " , d i s p l a y : " b l o c k " , t o p : 0 } ; i f ( ( a a . i n d e x O f ( " n e x t " ) = = = 0 | | a a . i n d e x O f ( " p r e v " ) = = = 0 ) & & j . j w G e t P l a y l i s t ( ) . l e n g t h < 2 ) { Y = f a l s e ; a c . d i s p l a y = " n o n e " } v a r   a h ; i f ( a a . i n d e x O f ( " T e x t " ) > 0 ) { a a . i n n e r h t m l = " 0 0 : 0 0 " ; a c . f o n t = A . f o n t s i z e + " p x / " + ( E ( ) . h e i g h t + 1 ) + " p x   " + A . f o n t ; a c . c o l o r = A . f o n t c o l o r ; a c . t e x t A l i g n = " c e n t e r " ; a c . f o n t W e i g h t = A . f o n t w e i g h t ; a c . f o n t S t y l e = A . f o n t s t y l e ; a c . c u r s o r = " d e f a u l t " ; a h = 1 4 + 3 * A . f o n t s i z e } e l s e { i f ( a a . i n d e x O f ( " d i v i d e r " ) = = = 0 ) { i f ( X ) { i f ( ! i s N a N ( p a r s e I n t ( X ) ) ) { a h = p a r s e I n t ( X ) } } e l s e { i f ( Z ) { v a r   a e = j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , Z ) ; i f ( a e ) { a c . b a c k g r o u n d = " u r l ( " + a e . s r c + " )   r e p e a t - x   c e n t e r   l e f t " ; a h = a e . w i d t h } } e l s e { a c . b a c k g r o u n d = " u r l ( " + j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " d i v i d e r " ) . s r c + " )   r e p e a t - x   c e n t e r   l e f t " ; a h = j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " d i v i d e r " ) . w i d t h } } } e l s e { a c . b a c k g r o u n d = " u r l ( " + j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , a a ) . s r c + " )   r e p e a t - x   c e n t e r   l e f t " ; a h = j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , a a ) . w i d t h } } i f ( a d = = " l e f t " ) { a c . l e f t = i s N a N ( a b ) ? Q : a b ; i f ( Y ) { Q + = a h } } e l s e { i f ( a d = = " r i g h t " ) { a c . r i g h t = i s N a N ( a b ) ? B : a b ; i f ( Y ) { B + = a h } } } i f ( a . u t i l s . t y p e O f ( a g ) = = " u n d e f i n e d " ) { a g = K . e l e m e n t s } a c . w i d t h = a h ; i f ( o ) { _ c s s ( K [ a a ] , a c ) } e l s e { v a r   a f = P ( a a , a g , a c ) ; i f ( j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , a a + " O v e r " ) ! = = u n d e f i n e d ) { a f . o n m o u s e o v e r = f u n c t i o n ( a i ) { a f . s t y l e . b a c k g r o u n d I m a g e = [ " u r l ( " , j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , a a + " O v e r " ) . s r c , " ) " ] . j o i n ( " " ) } ; a f . o n m o u s e o u t = f u n c t i o n ( a i ) { a f . s t y l e . b a c k g r o u n d I m a g e = [ " u r l ( " , j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , a a ) . s r c , " ) " ] . j o i n ( " " ) } } } } } f u n c t i o n   C ( ) { j . j w A d d E v e n t L i s t e n e r ( a . a p i . e v e n t s . J W P L A Y E R _ P L A Y L I S T _ L O A D E D , y ) ; j . j w A d d E v e n t L i s t e n e r ( a . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ B U F F E R , s ) ; j . j w A d d E v e n t L i s t e n e r ( a . a p i . e v e n t s . J W P L A Y E R _ P L A Y E R _ S T A T E , q ) ; j . j w A d d E v e n t L i s t e n e r ( a . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ T I M E , D ) ; j . j w A d d E v e n t L i s t e n e r ( a . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ M U T E , V ) ; j . j w A d d E v e n t L i s t e n e r ( a . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ V O L U M E , l ) ; j . j w A d d E v e n t L i s t e n e r ( a . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ C O M P L E T E , G ) } f u n c t i o n   y ( ) { I ( ) ; H ( ) ; u ( ) ; T ( ) } f u n c t i o n   T ( ) { D ( { i d : j . i d , d u r a t i o n : j . j w G e t D u r a t i o n ( ) , p o s i t i o n : 0 } ) ; s ( { i d : j . i d , b u f f e r P r o g r e s s : 0 } ) ; V ( { i d : j . i d , m u t e : j . j w G e t M u t e ( ) } ) ; q ( { i d : j . i d , n e w s t a t e : a . a p i . e v e n t s . s t a t e . I D L E } ) ; l ( { i d : j . i d , v o l u m e : j . j w G e t V o l u m e ( ) } ) } f u n c t i o n   L ( Z , a a , Y ) { i f ( o ) { r e t u r n } i f ( j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , Z ) ! = = u n d e f i n e d ) { v a r   X = K [ Z ] ; i f ( X ! = = n u l l ) { _ c s s ( X , { c u r s o r : " p o i n t e r " } ) ; i f ( a a = = " f u l l s c r e e n " ) { X . o n m o u s e u p = f u n c t i o n ( a b ) { a b . s t o p P r o p a g a t i o n ( ) ; j . j w S e t F u l l s c r e e n ( ! j . j w G e t F u l l s c r e e n ( ) ) } } e l s e { X . o n m o u s e u p = f u n c t i o n ( a b ) { a b . s t o p P r o p a g a t i o n ( ) ; i f ( Y ! = = n u l l ) { j [ a a ] ( Y ) } e l s e { j [ a a ] ( ) } } } } } } f u n c t i o n   N ( X ) { i f ( o ) { r e t u r n } v a r   Y = K [ X + " S l i d e r " ] ; _ c s s ( K . e l e m e n t s , { c u r s o r : " p o i n t e r " } ) ; _ c s s ( Y , { c u r s o r : " p o i n t e r " } ) ; Y . o n m o u s e d o w n = f u n c t i o n ( Z ) { t = X } ; Y . o n m o u s e u p = f u n c t i o n ( Z ) { Z . s t o p P r o p a g a t i o n ( ) ; U ( Z . p a g e X ) } ; Y . o n m o u s e m o v e = f u n c t i o n ( Z ) { i f ( t = = " t i m e " ) { f = t r u e ; v a r   a a = Z . p a g e X - c [ X + " S l i d e r " ] . l e f t - w i n d o w . p a g e X O f f s e t ; _ c s s ( K . t i m e S l i d e r T h u m b , { l e f t : a a } ) } } } f u n c t i o n   U ( Y ) { f = f a l s e ; v a r   X ; i f ( t = = " t i m e " ) { X = Y - c . t i m e S l i d e r R a i l . l e f t + w i n d o w . p a g e X O f f s e t ; v a r   a a = X / c . t i m e S l i d e r R a i l . w i d t h * S ; i f ( a a < 0 ) { a a = 0 } e l s e { i f ( a a > S ) { a a = S - 3 } } i f ( j . j w G e t S t a t e ( ) = = a . a p i . e v e n t s . s t a t e . P A U S E D | | j . j w G e t S t a t e ( ) = = a . a p i . e v e n t s . s t a t e . I D L E ) { j . j w P l a y ( ) } j . j w S e e k ( a a ) } e l s e { i f ( t = = " v o l u m e " ) { X = Y - c . v o l u m e S l i d e r R a i l . l e f t - w i n d o w . p a g e X O f f s e t ; v a r   Z = M a t h . r o u n d ( X / c . v o l u m e S l i d e r R a i l . w i d t h * 1 0 0 ) ; i f ( Z < 0 ) { Z = 0 } e l s e { i f ( Z > 1 0 0 ) { Z = 1 0 0 } } i f ( j . j w G e t M u t e ( ) ) { j . j w S e t M u t e ( f a l s e ) } j . j w S e t V o l u m e ( Z ) } } t = " n o n e " } f u n c t i o n   s ( Y ) { i f ( Y . b u f f e r P e r c e n t ! = = n u l l ) { e = Y . b u f f e r P e r c e n t } i f ( c . t i m e S l i d e r R a i l ) { v a r   Z = c . t i m e S l i d e r R a i l . w i d t h ; v a r   X = i s N a N ( M a t h . r o u n d ( Z * e / 1 0 0 ) ) ? 0 : M a t h . r o u n d ( Z * e / 1 0 0 ) ; _ c s s ( K . t i m e S l i d e r B u f f e r , { w i d t h : X } ) } } f u n c t i o n   V ( X ) { i f ( X . m u t e ) { _ h i d e ( K . m u t e B u t t o n ) ; _ s h o w ( K . u n m u t e B u t t o n ) ; _ h i d e ( K . v o l u m e S l i d e r P r o g r e s s ) } e l s e { _ s h o w ( K . m u t e B u t t o n ) ; _ h i d e ( K . u n m u t e B u t t o n ) ; _ s h o w ( K . v o l u m e S l i d e r P r o g r e s s ) } } f u n c t i o n   q ( X ) { i f ( X . n e w s t a t e = = a . a p i . e v e n t s . s t a t e . B U F F E R I N G | | X . n e w s t a t e = = a . a p i . e v e n t s . s t a t e . P L A Y I N G ) { _ s h o w ( K . p a u s e B u t t o n ) ; _ h i d e ( K . p l a y B u t t o n ) } e l s e { _ h i d e ( K . p a u s e B u t t o n ) ; _ s h o w ( K . p l a y B u t t o n ) } x ( ) ; i f ( X . n e w s t a t e = = a . a p i . e v e n t s . s t a t e . I D L E ) { _ h i d e ( K . t i m e S l i d e r B u f f e r ) ; _ h i d e ( K . t i m e S l i d e r P r o g r e s s ) ; _ h i d e ( K . t i m e S l i d e r T h u m b ) ; D ( { i d : j . i d , d u r a t i o n : j . j w G e t D u r a t i o n ( ) , p o s i t i o n : 0 } ) } e l s e { _ s h o w ( K . t i m e S l i d e r B u f f e r ) ; i f ( X . n e w s t a t e ! = a . a p i . e v e n t s . s t a t e . B U F F E R I N G ) { _ s h o w ( K . t i m e S l i d e r P r o g r e s s ) ; _ s h o w ( K . t i m e S l i d e r T h u m b ) } } } f u n c t i o n   G ( X ) { s ( { b u f f e r P e r c e n t : 0 } ) ; D ( a . u t i l s . e x t e n d ( X , { p o s i t i o n : 0 , d u r a t i o n : S } ) ) } f u n c t i o n   D ( a a ) { i f ( a a . p o s i t i o n ! = = n u l l ) { i = a a . p o s i t i o n } i f ( a a . d u r a t i o n ! = = n u l l ) { S = a a . d u r a t i o n } v a r   Y = ( i = = = S = = = 0 ) ? 0 : i / S ; v a r   a b = c . t i m e S l i d e r R a i l ; i f ( a b ) { v a r   X = i s N a N ( M a t h . r o u n d ( a b . w i d t h * Y ) ) ? 0 : M a t h . r o u n d ( a b . w i d t h * Y ) ; v a r   Z = X ; i f ( K . t i m e S l i d e r P r o g r e s s ) { K . t i m e S l i d e r P r o g r e s s . s t y l e . w i d t h = X + " p x " ; i f ( ! f ) { i f ( K . t i m e S l i d e r T h u m b ) { K . t i m e S l i d e r T h u m b . s t y l e . l e f t = Z + " p x " } } } } i f ( K . d u r a t i o n T e x t ) { K . d u r a t i o n T e x t . i n n e r H T M L = n ( S ) } i f ( K . e l a p s e d T e x t ) { K . e l a p s e d T e x t . i n n e r H T M L = n ( i ) } } f u n c t i o n   n ( X ) { s t r = " 0 0 : 0 0 " ; i f ( X > 0 ) { s t r = M a t h . f l o o r ( X / 6 0 ) < 1 0 ? " 0 " + M a t h . f l o o r ( X / 6 0 ) + " : " : M a t h . f l o o r ( X / 6 0 ) + " : " ; s t r + = M a t h . f l o o r ( X % 6 0 ) < 1 0 ? " 0 " + M a t h . f l o o r ( X % 6 0 ) : M a t h . f l o o r ( X % 6 0 ) } r e t u r n   s t r } f u n c t i o n   m ( ) { v a r   a a , Y ; v a r   Z = d o c u m e n t . g e t E l e m e n t B y I d ( R . i d + " _ e l e m e n t s " ) . c h i l d N o d e s ; f o r ( v a r   X   i n   d o c u m e n t . g e t E l e m e n t B y I d ( R . i d + " _ e l e m e n t s " ) . c h i l d N o d e s ) { i f ( i s N a N ( p a r s e I n t ( X , 1 0 ) ) ) { c o n t i n u e } i f ( Z [ X ] . i d . i n d e x O f ( R . i d + " _ d i v i d e r " ) = = = 0 & & Y & & Y . i d . i n d e x O f ( R . i d + " _ d i v i d e r " ) = = = 0 & & Z [ X ] . s t y l e . b a c k g r o u n d I m a g e = = Y . s t y l e . b a c k g r o u n d I m a g e ) { Z [ X ] . s t y l e . d i s p l a y = " n o n e " } e l s e { i f ( Z [ X ] . i d . i n d e x O f ( R . i d + " _ d i v i d e r " ) = = = 0 & & a a & & a a . s t y l e . d i s p l a y ! = " n o n e " ) { Z [ X ] . s t y l e . d i s p l a y = " b l o c k " } } i f ( Z [ X ] . s t y l e . d i s p l a y ! = " n o n e " ) { Y = Z [ X ] } a a = Z [ X ] } } f u n c t i o n   u ( ) { m ( ) ; i f ( j . j w G e t F u l l s c r e e n ( ) ) { _ s h o w ( K . n o r m a l s c r e e n B u t t o n ) ; _ h i d e ( K . f u l l s c r e e n B u t t o n ) } e l s e { _ h i d e ( K . n o r m a l s c r e e n B u t t o n ) ; _ s h o w ( K . f u l l s c r e e n B u t t o n ) } v a r   Y = { w i d t h : d } ; v a r   X = { } ; i f ( A . p o s i t i o n = = a . h t m l 5 . v i e w . p o s i t i o n s . O V E R | | j . j w G e t F u l l s c r e e n ( ) ) { Y . l e f t = A . m a r g i n ; Y . w i d t h - = 2 * A . m a r g i n ; Y . t o p = w - E ( ) . h e i g h t - A . m a r g i n ; Y . h e i g h t = E ( ) . h e i g h t } e l s e { Y . l e f t = 0 } v a r   a a = j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " c a p L e f t " ) ; v a r   Z = j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " c a p R i g h t " ) ; X . l e f t = a a ? a a . w i d t h : 0 ; X . w i d t h = Y . w i d t h - X . l e f t - ( Z ? Z . w i d t h : 0 ) ; v a r   a b = j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " t i m e S l i d e r C a p L e f t " ) = = = u n d e f i n e d ? 0 : j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " t i m e S l i d e r C a p L e f t " ) . w i d t h ; _ c s s ( K . t i m e S l i d e r R a i l , { w i d t h : ( X . w i d t h - Q - B ) , l e f t : a b } ) ; i f ( K . t i m e S l i d e r C a p R i g h t ! = = u n d e f i n e d ) { _ c s s ( K . t i m e S l i d e r C a p R i g h t , { l e f t : a b + ( X . w i d t h - Q - B ) } ) } _ c s s ( R , Y ) ; _ c s s ( K . e l e m e n t s , X ) ; _ c s s ( K . b a c k g r o u n d , X ) ; p ( ) ; r e t u r n   Y } f u n c t i o n   l ( a b ) { i f ( K . v o l u m e S l i d e r R a i l ! = = u n d e f i n e d ) { v a r   Z = i s N a N ( a b . v o l u m e / 1 0 0 ) ? 1 : a b . v o l u m e / 1 0 0 ; v a r   a a = p a r s e I n t ( K . v o l u m e S l i d e r R a i l . s t y l e . w i d t h . r e p l a c e ( " p x " , " " ) , 1 0 ) ; v a r   X = i s N a N ( M a t h . r o u n d ( a a * Z ) ) ? 0 : M a t h . r o u n d ( a a * Z ) ; v a r   a c = p a r s e I n t ( K . v o l u m e S l i d e r R a i l . s t y l e . r i g h t . r e p l a c e ( " p x " , " " ) , 1 0 ) ; v a r   Y = j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " v o l u m e S l i d e r C a p L e f t " ) = = = u n d e f i n e d ? 0 : j . s k i n . g e t S k i n E l e m e n t ( " c o n t r o l b a r " , " v o l u m e S l i d e r C a p L e f t " ) . w i d t h ; _ c s s ( K . v o l u m e S l i d e r P r o g r e s s , { w i d t h : X , l e f t : Y } ) ; i f ( K . v o l u m e S l i d e r C a p L e f t ! = = u n d e f i n e d ) { _ c s s ( K . v o l u m e S l i d e r C a p L e f t , { l e f t : 0 } ) } } } f u n c t i o n   r ( ) { I ( ) ; H ( ) ; p ( ) ; o = t r u e ; C ( ) ; T ( ) ; R . s t y l e . o p a c i t y = A . i d l e h i d e ? 0 : 1 } r ( ) ; r e t u r n   t h i s } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( b ) { v a r   a = [ " w i d t h " , " h e i g h t " , " s t a t e " , " p l a y l i s t " , " i t e m " , " p o s i t i o n " , " b u f f e r " , " d u r a t i o n " , " v o l u m e " , " m u t e " , " f u l l s c r e e n " ] ; b . h t m l 5 . c o n t r o l l e r = f u n c t i o n ( t , r , e , q ) { v a r   w = t ; v a r   y = e ; v a r   d = q ; v a r   k = r ; v a r   A = t r u e ; v a r   c = - 1 ; v a r   u = ( y . c o n f i g . d e b u g ! = = u n d e f i n e d ) & & ( y . c o n f i g . d e b u g . t o S t r i n g ( ) . t o L o w e r C a s e ( ) = = " c o n s o l e " ) ; v a r   i = n e w   b . h t m l 5 . e v e n t d i s p a t c h e r ( k . i d , u ) ; b . u t i l s . e x t e n d ( t h i s , i ) ; f u n c t i o n   m ( D ) { i . s e n d E v e n t ( D . t y p e , D ) } y . a d d G l o b a l L i s t e n e r ( m ) ; f u n c t i o n   p ( ) { t r y { i f ( y . p l a y l i s t [ y . i t e m ] . l e v e l s [ 0 ] . f i l e . l e n g t h > 0 ) { i f ( A | | y . s t a t e = = b . a p i . e v e n t s . s t a t e . I D L E ) { y . a d d E v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ B U F F E R _ F U L L , f u n c t i o n ( ) { y . g e t M e d i a ( ) . p l a y ( ) } ) ; y . a d d E v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ T I M E , f u n c t i o n ( E ) { i f ( E . p o s i t i o n > = y . p l a y l i s t [ y . i t e m ] . s t a r t & & c > = 0 ) { y . p l a y l i s t [ y . i t e m ] . s t a r t = c ; c = - 1 } } ) ; i f ( y . c o n f i g . r e p e a t ) { y . a d d E v e n t L i s t e n e r ( b . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ C O M P L E T E , f u n c t i o n ( E ) { s e t T i m e o u t ( n , 2 5 ) } ) } y . g e t M e d i a ( ) . l o a d ( y . p l a y l i s t [ y . i t e m ] ) ; A = f a l s e } e l s e { i f ( y . s t a t e = = b . a p i . e v e n t s . s t a t e . P A U S E D ) { y . g e t M e d i a ( ) . p l a y ( ) } } } r e t u r n   t r u e } c a t c h ( D ) { i . s e n d E v e n t ( b . a p i . e v e n t s . J W P L A Y E R _ E R R O R , D ) } r e t u r n   f a l s e } f u n c t i o n   B ( ) { t r y { i f ( y . p l a y l i s t [ y . i t e m ] . l e v e l s [ 0 ] . f i l e . l e n g t h > 0 ) { s w i t c h ( y . s t a t e ) { c a s e   b . a p i . e v e n t s . s t a t e . P L A Y I N G : c a s e   b . a p i . e v e n t s . s t a t e . B U F F E R I N G : y . g e t M e d i a ( ) . p a u s e ( ) ; b r e a k } } r e t u r n   t r u e } c a t c h ( D ) { i . s e n d E v e n t ( b . a p i . e v e n t s . J W P L A Y E R _ E R R O R , D ) } r e t u r n   f a l s e } f u n c t i o n   x ( D ) { t r y { i f ( y . p l a y l i s t [ y . i t e m ] . l e v e l s [ 0 ] . f i l e . l e n g t h > 0 ) { i f ( t y p e o f   D ! = " n u m b e r " ) { D = p a r s e F l o a t ( D ) } s w i t c h ( y . s t a t e ) { c a s e   b . a p i . e v e n t s . s t a t e . I D L E : i f ( c < 0 ) { c = y . p l a y l i s t [ y . i t e m ] . s t a r t ; y . p l a y l i s t [ y . i t e m ] . s t a r t = D } p ( ) ; b r e a k ; c a s e   b . a p i . e v e n t s . s t a t e . P L A Y I N G : c a s e   b . a p i . e v e n t s . s t a t e . P A U S E D : c a s e   b . a p i . e v e n t s . s t a t e . B U F F E R I N G : y . s e e k ( D ) ; b r e a k } } r e t u r n   t r u e } c a t c h ( E ) { i . s e n d E v e n t ( b . a p i . e v e n t s . J W P L A Y E R _ E R R O R , E ) } r e t u r n   f a l s e } f u n c t i o n   j ( ) { t r y { i f ( y . p l a y l i s t [ y . i t e m ] . l e v e l s [ 0 ] . f i l e . l e n g t h > 0 & & y . s t a t e ! = b . a p i . e v e n t s . s t a t e . I D L E ) { y . g e t M e d i a ( ) . s t o p ( ) } r e t u r n   t r u e } c a t c h ( D ) { i . s e n d E v e n t ( b . a p i . e v e n t s . J W P L A Y E R _ E R R O R , D ) } r e t u r n   f a l s e } f u n c t i o n   g ( ) { t r y { i f ( y . p l a y l i s t [ y . i t e m ] . l e v e l s [ 0 ] . f i l e . l e n g t h > 0 ) { i f ( y . c o n f i g . s h u f f l e ) { o ( s ( ) ) } e l s e { i f ( y . i t e m + 1 = = y . p l a y l i s t . l e n g t h ) { o ( 0 ) } e l s e { o ( y . i t e m + 1 ) } } } i f ( y . s t a t e ! = b . a p i . e v e n t s . s t a t e . P L A Y I N G & & y . s t a t e ! = b . a p i . e v e n t s . s t a t e . B U F F E R I N G ) { p ( ) } r e t u r n   t r u e } c a t c h ( D ) { i . s e n d E v e n t ( b . a p i . e v e n t s . J W P L A Y E R _ E R R O R , D ) } r e t u r n   f a l s e } f u n c t i o n   f ( ) { t r y { i f ( y . p l a y l i s t [ y . i t e m ] . l e v e l s [ 0 ] . f i l e . l e n g t h > 0 ) { i f ( y . c o n f i g . s h u f f l e ) { o ( s ( ) ) } e l s e { i f ( y . i t e m = = = 0 ) { o ( y . p l a y l i s t . l e n g t h - 1 ) } e l s e { o ( y . i t e m - 1 ) } } } i f ( y . s t a t e ! = b . a p i . e v e n t s . s t a t e . P L A Y I N G & & y . s t a t e ! = b . a p i . e v e n t s . s t a t e . B U F F E R I N G ) { p ( ) } r e t u r n   t r u e } c a t c h ( D ) { i . s e n d E v e n t ( b . a p i . e v e n t s . J W P L A Y E R _ E R R O R , D ) } r e t u r n   f a l s e } f u n c t i o n   s ( ) { v a r   D = n u l l ; i f ( y . p l a y l i s t . l e n g t h > 1 ) { w h i l e ( D = = = n u l l ) { D = M a t h . f l o o r ( M a t h . r a n d o m ( ) * y . p l a y l i s t . l e n g t h ) ; i f ( D = = y . i t e m ) { D = n u l l } } } e l s e { D = 0 } r e t u r n   D } f u n c t i o n   o ( E ) { y . r e s e t E v e n t L i s t e n e r s ( ) ; y . a d d G l o b a l L i s t e n e r ( m ) ; t r y { i f ( y . p l a y l i s t [ E ] . l e v e l s [ 0 ] . f i l e . l e n g t h > 0 ) { v a r   F = y . s t a t e ; i f ( F ! = = b . a p i . e v e n t s . s t a t e . I D L E ) { j ( ) } y . i t e m = E ; A = t r u e ; y . s e t A c t i v e M e d i a P r o v i d e r ( y . p l a y l i s t [ y . i t e m ] ) ; i . s e n d E v e n t ( b . a p i . e v e n t s . J W P L A Y E R _ P L A Y L I S T _ I T E M , { i n d e x : E } ) ; i f ( F = = b . a p i . e v e n t s . s t a t e . P L A Y I N G | | F = = b . a p i . e v e n t s . s t a t e . B U F F E R I N G | | y . c o n f i g . c h r o m e l e s s | | e . c o n f i g . a u t o s t a r t = = = t r u e ) { p ( ) } } r e t u r n   t r u e } c a t c h ( D ) { i . s e n d E v e n t ( b . a p i . e v e n t s . J W P L A Y E R _ E R R O R , D ) } r e t u r n   f a l s e } f u n c t i o n   z ( E ) { t r y { s w i t c h ( t y p e o f ( E ) ) { c a s e " n u m b e r " : y . g e t M e d i a ( ) . v o l u m e ( E ) ; b r e a k ; c a s e " s t r i n g " : y . g e t M e d i a ( ) . v o l u m e ( p a r s e I n t ( E , 1 0 ) ) ; b r e a k } r e t u r n   t r u e } c a t c h ( D ) { i . s e n d E v e n t ( b . a p i . e v e n t s . J W P L A Y E R _ E R R O R , D ) } r e t u r n   f a l s e } f u n c t i o n   l ( E ) { t r y { i f ( t y p e o f   E = = " u n d e f i n e d " ) { y . g e t M e d i a ( ) . m u t e ( ! y . m u t e ) } e l s e { i f ( E . t o S t r i n g ( ) . t o L o w e r C a s e ( ) = = " t r u e " ) { y . g e t M e d i a ( ) . m u t e ( t r u e ) } e l s e { y . g e t M e d i a ( ) . m u t e ( f a l s e ) } } r e t u r n   t r u e } c a t c h ( D ) { i . s e n d E v e n t ( b . a p i . e v e n t s . J W P L A Y E R _ E R R O R , D ) } r e t u r n   f a l s e } f u n c t i o n   h ( E , D ) { t r y { y . w i d t h = E ; y . h e i g h t = D ; d . r e s i z e ( E , D ) ; i . s e n d E v e n t ( b . a p i . e v e n t s . J W P L A Y E R _ R E S I Z E , { w i d t h : y . w i d t h , h e i g h t : y . h e i g h t } ) ; r e t u r n   t r u e } c a t c h ( F ) { i . s e n d E v e n t ( b . a p i . e v e n t s . J W P L A Y E R _ E R R O R , F ) } r e t u r n   f a l s e } f u n c t i o n   v ( E ) { t r y { i f ( t y p e o f   E = = " u n d e f i n e d " ) { y . f u l l s c r e e n = ! y . f u l l s c r e e n ; d . f u l l s c r e e n ( ! y . f u l l s c r e e n ) } e l s e { i f ( E . t o S t r i n g ( ) . t o L o w e r C a s e ( ) = = " t r u e " ) { y . f u l l s c r e e n = t r u e ; d . f u l l s c r e e n ( t r u e ) } e l s e { y . f u l l s c r e e n = f a l s e ; d . f u l l s c r e e n ( f a l s e ) } } i . s e n d E v e n t ( b . a p i . e v e n t s . J W P L A Y E R _ R E S I Z E , { w i d t h : y . w i d t h , h e i g h t : y . h e i g h t } ) ; i . s e n d E v e n t ( b . a p i . e v e n t s . J W P L A Y E R _ F U L L S C R E E N , { f u l l s c r e e n : E } ) ; r e t u r n   t r u e } c a t c h ( D ) { i . s e n d E v e n t ( b . a p i . e v e n t s . J W P L A Y E R _ E R R O R , D ) } r e t u r n   f a l s e } f u n c t i o n   C ( D ) { t r y { j ( ) ; y . l o a d P l a y l i s t ( D ) ; o ( y . i t e m ) ; r e t u r n   t r u e } c a t c h ( E ) { i . s e n d E v e n t ( b . a p i . e v e n t s . J W P L A Y E R _ E R R O R , E ) } r e t u r n   f a l s e } b . h t m l 5 . c o n t r o l l e r . r e p e a t o p t i o n s = { L I S T : " L I S T " , A L W A Y S : " A L W A Y S " , S I N G L E : " S I N G L E " , N O N E : " N O N E " } ; f u n c t i o n   n ( ) { y . r e s e t E v e n t L i s t e n e r s ( ) ; y . a d d G l o b a l L i s t e n e r ( m ) ; s w i t c h ( y . c o n f i g . r e p e a t . t o U p p e r C a s e ( ) ) { c a s e   b . h t m l 5 . c o n t r o l l e r . r e p e a t o p t i o n s . S I N G L E : p ( ) ; b r e a k ; c a s e   b . h t m l 5 . c o n t r o l l e r . r e p e a t o p t i o n s . A L W A Y S : i f ( y . i t e m = = y . p l a y l i s t . l e n g t h - 1 & & ! y . c o n f i g . s h u f f l e ) { o ( 0 ) ; p ( ) } e l s e { g ( ) } b r e a k ; c a s e   b . h t m l 5 . c o n t r o l l e r . r e p e a t o p t i o n s . L I S T : i f ( y . i t e m = = y . p l a y l i s t . l e n g t h - 1 & & ! y . c o n f i g . s h u f f l e ) { o ( 0 ) } e l s e { g ( ) } b r e a k } } t h i s . p l a y = p ; t h i s . p a u s e = B ; t h i s . s e e k = x ; t h i s . s t o p = j ; t h i s . n e x t = g ; t h i s . p r e v = f ; t h i s . i t e m = o ; t h i s . s e t V o l u m e = z ; t h i s . s e t M u t e = l ; t h i s . r e s i z e = h ; t h i s . s e t F u l l s c r e e n = v ; t h i s . l o a d = C } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . h t m l 5 . d e f a u l t S k i n = f u n c t i o n ( ) { t h i s . t e x t = ' < ? x m l   v e r s i o n = " 1 . 0 "   ? > < s k i n   a u t h o r = " L o n g T a i l   V i d e o "   n a m e = " F i v e "   v e r s i o n = " 1 . 0 " > < s e t t i n g s > < s e t t i n g   n a m e = " b a c k c o l o r "   v a l u e = " 0 x F F F F F F " / > < s e t t i n g   n a m e = " f r o n t c o l o r "   v a l u e = " 0 x 0 0 0 0 0 0 " / > < s e t t i n g   n a m e = " l i g h t c o l o r "   v a l u e = " 0 x 0 0 0 0 0 0 " / > < s e t t i n g   n a m e = " s c r e e n c o l o r "   v a l u e = " 0 x 0 0 0 0 0 0 " / > < / s e t t i n g s > < c o m p o n e n t s > < c o m p o n e n t   n a m e = " c o n t r o l b a r " > < s e t t i n g s > < s e t t i n g   n a m e = " m a r g i n "   v a l u e = " 2 0 " / > < s e t t i n g   n a m e = " f o n t s i z e "   v a l u e = " 1 1 " / > < / s e t t i n g s > < e l e m e n t s > < e l e m e n t   n a m e = " b a c k g r o u n d "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A B g A A A A Y C A I A A A B v F a q v A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A F J J R E F U e N r s l L E N w A A I w x L U / 0 9 j 5 A i O g D 5 h V Q z N A V Y 8 J K 4 q E f H M I K B n d 2 + B Q l B I N a i R t L / a V 2 r d z Y B s M 6 C I O N b I 1 N Z E N T r 3 R w d B 2 P l n J g J 6 B R g A 4 h w u 5 Q g 5 i s w A A A A A S U V O R K 5 C Y I I = " / > < e l e m e n t   n a m e = " c a p L e f t "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A A E A A A A Y C A I A A A C 0 r g C N A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A D 5 J R E F U e N o s i 8 E N A C A M A g n u v 1 4 H 0 Z 8 a s I 1 9 X E j h O i K C M m i b V g J T U t 7 V 6 f e 9 K X O t S Q C f c t J H u 2 q 3 / o t 7 9 h N g A N c 2 O T z 9 u T C C A A A A A E l F T k S u Q m C C " / > < e l e m e n t   n a m e = " c a p R i g h t "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A A E A A A A Y C A I A A A C 0 r g C N A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A D 5 J R E F U e N o s i 8 E N A C A M A g n u v 1 4 H 0 Z 8 a s I 1 9 X E j h O i K C M m i b V g J T U t 7 V 6 f e 9 K X O t S Q C f c t J H u 2 q 3 / o t 7 9 h N g A N c 2 O T z 9 u T C C A A A A A E l F T k S u Q m C C " / > < e l e m e n t   n a m e = " d i v i d e r "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A A E A A A A Y C A I A A A C 0 r g C N A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A D 5 J R E F U e N o s i 8 E N A C A M A g n u v 1 4 H 0 Z 8 a s I 1 9 X E j h O i K C M m i b V g J T U t 7 V 6 f e 9 K X O t S Q C f c t J H u 2 q 3 / o t 7 9 h N g A N c 2 O T z 9 u T C C A A A A A E l F T k S u Q m C C " / > < e l e m e n t   n a m e = " p l a y B u t t o n "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A B U A A A A Y C A Y A A A A V i b Z I A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A E h J R E F U e N p i Y q A B Y B o 1 d N R Q + h r 6 H 4 j v A 3 E 8 N S 3 9 j 4 S p Z v h / L J i g 4 Y x E G E q y 3 k E T + w + A O G F Q R h T J h r E Q k G c c z f u j h g 4 C Q w E C D A D p T R W U / B 3 w H Q A A A A B J R U 5 E r k J g g g = = " / > < e l e m e n t   n a m e = " p a u s e B u t t o n "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A B U A A A A Y C A Y A A A A V i b Z I A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A C h J R E F U e N p i Y B g F o 2 D w A 0 Y C 8 v / R 1 P 4 n R u + o o a O G U t n Q U T A K h g I A C D A A F C w Q C f A J 4 g w A A A A A S U V O R K 5 C Y I I = " / > < e l e m e n t   n a m e = " p r e v B u t t o n "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A B U A A A A Y C A Y A A A A V i b Z I A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A E t J R E F U e N p i Y B g F o 2 D o g / 9 Q D A P y Q H w e T Y w i Q / 2 B + D 0 W i 8 g 2 t B + J T d B Q R i I M J V k v E y 0 i g l h D F 9 A q 9 u O p H V E w o E + N J D U K R s F g A A A B B g D e 2 h q Z c N N L 0 A A A A A B J R U 5 E r k J g g g = = " / > < e l e m e n t   n a m e = " n e x t B u t t o n "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A B U A A A A Y C A Y A A A A V i b Z I A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A E l J R E F U e N p i Y B g F o 2 D o g / 9 A f B 6 I 5 d H E / l N q K A i / B 2 J / a h s K w / 3 E G M p I h K E k 6 6 W J o a R 6 f z 6 1 I y q e m h E F S l L 6 1 E x S o 2 A U D A Y A E G A A i G 4 h j + 5 t 7 M 8 A A A A A S U V O R K 5 C Y I I = " / > < e l e m e n t   n a m e = " t i m e S l i d e r R a i l "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A B g A A A A Y C A Y A A A D g d z 3 4 A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A D x J R E F U e N p i Y B g F o 2 A U 0 B w w z l u w + D 8 t L W A R F h K i q Q 9 Y u L g 4 a W s B G x s 7 b S 1 g Z 6 e 5 B W y j S X 0 U j I K h D g A C D A B l Y Q O G h 5 p Y y w A A A A B J R U 5 E r k J g g g = = " / > < e l e m e n t   n a m e = " t i m e S l i d e r B u f f e r "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A B g A A A A Y C A Y A A A D g d z 3 4 A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A D 1 J R E F U e N p i Y B g F o 2 A U 0 B w w 1 j c 0 / a e l B S z 8 / P w 0 9 Q E L O z s 7 b S 1 g Y 2 O j r Q W s r K y 0 9 g H r a F I f B a N g q A O A A A M A v y 0 D C h X H s Z M A A A A A S U V O R K 5 C Y I I = " / > < e l e m e n t   n a m e = " t i m e S l i d e r P r o g r e s s "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A B g A A A A Y C A Y A A A D g d z 3 4 A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A C l J R E F U e N p i Y B g F o 2 A U 0 B w w A v F / W l r A R G s f j F o w 8 B a M g l E w C u g A A A I M A O H f A Q u n R + X z A A A A A E l F T k S u Q m C C " / > < e l e m e n t   n a m e = " t i m e S l i d e r T h u m b "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A A M A A A A I C A Y A A A A 8 7 0 V 8 A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A B Z J R E F U e N p i Z I C A / y C C i Q E J U J c D E G A A Y 0 g B D 1 / m 7 Q 0 A A A A A S U V O R K 5 C Y I I = " / > < e l e m e n t   n a m e = " m u t e B u t t o n "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A A 4 A A A A Y C A Y A A A D K x 8 x X A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A D F J R E F U e N p i Y B g F I w 3 M B + L / 5 G j 8 j 6 y R i R T F y I C J X H f T X y M L A X l G a t i 4 Y D R F D j 8 A E G A A B k 8 G S q q S 4 C o A A A A A S U V O R K 5 C Y I I = " / > < e l e m e n t   n a m e = " u n m u t e B u t t o n "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A A 4 A A A A Y C A Y A A A D K x 8 x X A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A D 1 J R E F U e N p i Y B g F g x z 8 p 7 b m + c Q a + h 8 L H y 7 G h E c j I z 4 b m A j Y y k i u n / 8 j 0 f a k G P I f T f P g i S r 6 a B 4 F V A c A A Q Y A W d w R 1 G 1 W d 2 g A A A A A S U V O R K 5 C Y I I = " / > < e l e m e n t   n a m e = " v o l u m e S l i d e r R a i l "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A B o A A A A Y C A Y A A A D k g u 3 F A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A G p J R E F U e N p i / P / / P w M 9 A B M D n c C o R Y P f I q q D Z c u W 1 U P p / 6 A U D c N M 1 D Q Y K t R A l a A j 1 m C S L S L X Y I I W U c t g D I t o Z f D A 5 a O o q K h G E A N I M 9 L V R 7 S y m G D Q U c t i k u O I X k F N d h H E O F r D j l p E d 4 s A A g w A r i R M u b 9 5 f u 8 A A A A A S U V O R K 5 C Y I I = " / > < e l e m e n t   n a m e = " v o l u m e S l i d e r P r o g r e s s "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A B o A A A A Y C A Y A A A D k g u 3 F A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A F t J R E F U e N p i / P / / P w M 9 A B M D n c C o R Y P f I l q A e i j 9 H 5 S i Y Z i q B q P T l F q E 0 2 B K L S L a Y F I t I t t g Q h Z R z W B 8 F j E N i u R J 7 a A b s M Q w Y M l 7 w D I s W U U Q 4 2 g N O 2 o R 3 S 0 C C D A A K h K q 6 M L L n 8 o A A A A A S U V O R K 5 C Y I I = " / > < e l e m e n t   n a m e = " f u l l s c r e e n B u t t o n "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A B g A A A A Y C A Y A A A D g d z 3 4 A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A E 5 J R E F U e N p i Y B g F o 2 D Q A 0 Y C 8 v / x q P 1 P j D l M R D r E g U g x k g H I l f Z o r i V G j m z L s L F H A W 2 D 6 D 8 e A / 9 T w 7 L / B A w g J E 9 0 P v h P p N g o G A V D E Q A E G A A M d h T y X c P K c A A A A A B J R U 5 E r k J g g g = = " / > < e l e m e n t   n a m e = " n o r m a l s c r e e n B u t t o n "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A B g A A A A Y C A Y A A A D g d z 3 4 A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A E Z J R E F U e N p i Y B g F o 2 D I g / 9 U U k O U A f 8 J i F F s y X 8 8 f J y A k c Q g Y M Q j N k z B o A g i e z y R b E + t F G S P x Q J 7 a u Y B m m a 0 U T A K B h g A B B g A J A E Y 6 z O N 6 1 s A A A A A S U V O R K 5 C Y I I = " / > < / e l e m e n t s > < / c o m p o n e n t > < c o m p o n e n t   n a m e = " d i s p l a y " > < e l e m e n t s > < e l e m e n t   n a m e = " b a c k g r o u n d "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A D I A A A A y C A Y A A A A e P 4 i x A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A E p J R E F U e N r s z w E N A D A I A 7 D h X 8 E N o B M Z 5 K R 1 0 E r y c k C J i I i I i I i I i I i I i I i I i I i I i I h 8 G m k R E R E R E R E R E R E R E R E R E R E R E R G R H S P A A P l X H 1 p h Y p Y a A A A A A E l F T k S u Q m C C " / > < e l e m e n t   n a m e = " p l a y I c o n "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A D I A A A A y C A Y A A A A e P 4 i x A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A L d J R E F U e N r s 1 8 E N g j A Y h m F o u D O C c Q J G c A R H g E 1 0 B D c g T O I o s A G w Q O u P w a Q e u F R i 2 p / 3 S b 6 E C 5 L 3 Q C x Z B g A A A O C o r L W 1 z M n 6 5 T r l k H 4 N c V 7 Q N c U Q t 7 G n 7 K I h x A + q N I R 8 1 s p O G k L 8 o F J D y L J R d o s q K D D k K + i X 5 + d 7 h u z w M 4 0 x p t M Q M k j I O e R G o + V k E V v I P f T G I p K A S f Y I f T 9 i C H k H r B E z f 4 g c U Q 5 6 a E z u G K / m w 0 r H p y 4 A A A C A f 3 k J M A C B x j A Q N R c k h w A A A A B J R U 5 E r k J g g g = = " / > < e l e m e n t   n a m e = " m u t e I c o n "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A D I A A A A y C A Y A A A A e P 4 i x A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A H J J R E F U e N r s 1 j E O g C A M B V A g 7 t 5 / 8 q a o I y 4 u o o b y X s L C x A + 0 N C U A A A D G U W v d Q o Q 4 1 x 4 i x N B B 2 h B v B s k d D 3 w 5 Z C k l 3 + 3 3 V q I 0 k j B B l h 9 r p + u T c y O P 3 3 T n o l f s U 8 5 X X 3 y I R p Q p h 8 Z Q Y 3 w T Z t U 5 A A C A S A 4 B B g D H o V u Y 1 / f v O Q A A A A B J R U 5 E r k J g g g = = " / > < e l e m e n t   n a m e = " e r r o r I c o n "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A D I A A A A y C A Y A A A A e P 4 i x A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A W l J R E F U e N r s l + 1 t w j A Q h s H q / 7 B B Y Q L Y I B m B D c o G M A I j t B P Q T c I I 2 S D t B D B B w r U 6 p G s U O 7 Y b O 4 7 0 P t K J k z 9 i H + + d 4 y w W A A A A A A B g l j R N s y W r 2 b Z z D u J G 1 r L d Z h c M b T j r B C G D y U K s q Q L F c i J b 9 b S v u G / W a g R V R U V U I 6 g q y 5 H V e K W f S g R y J r u K I U / / T r Z T S n 2 n m l a X T h r l o i / v 9 F 2 S T C 1 W 4 + A w 5 c B z k q u R c 0 9 b o f F N c 6 Y L x E O N 0 V U Z S 5 F P T f t O 4 9 v M j R s I F 3 R h O G r 7 / D / p J w + F K U + q 0 v D y q 8 W 4 2 j C u n D q I 3 L C 5 X x N j 2 w H L U 1 X j a R n b 0 L h y k h q h h d 8 M t S F 5 J 9 t b j C v 4 m X G v K J z / 6 5 F F / q J r y y a a I v z P 2 Q R x Z T X 2 n T u X j v V / V P F S w y L n W 7 m p H 9 9 y T h 1 F E V r o 6 J B S d 4 0 / p M r R d V 8 v P t c K l 2 8 T 2 p T 8 T n F Z 4 y N o s c t 3 Q 0 i o 6 J f B i z 1 F l G d q V Q H 3 V H n e p A E A A A A A A D D z E G A A c T w B 1 0 j W g x c A A A A A S U V O R K 5 C Y I I = " / > < e l e m e n t   n a m e = " b u f f e r I c o n "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A D I A A A A y C A Y A A A A e P 4 i x A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A u h J R E F U e N r s W r 9 r U 1 E U z n u N G q v F Q h 1 U L O h i B x 0 K D t I u i o O 4 p J u i k 3 F x F f U P a A V 1 F T d x 0 Q 5 d 2 g 4 F F x e h T n E p Z H F o B y 2 0 t C I W t G q 0 T Z P 4 H f k e H B 5 N 8 m 6 S l / s a 7 4 X D y b v v 3 v v O d 8 / P e 4 l X r V Z T 3 d D 8 V J c 0 B 8 Q B c U A c E A f E S k t H G e R 5 X t M f q F Q q / f 9 2 z P e / N b t G l K T d C Y 3 0 k u x r p M G O 9 4 B l Q C X s + r b h 3 O N g A 6 B l z P 1 p 2 0 d 8 0 g E I 5 h m A 2 A 9 2 Q u a 1 Q 2 P t A F I S M + b v j M G 8 U + Q 7 o A 3 r Q G A S w r Y C U 6 W p N d L G Y b A + P q 5 j j X I i w i 8 E E a 2 U D b Q S a K O I u V + S l k c C r f j Y 8 X T I 9 E p K G w P 0 C 2 k r u 2 h L t H q a 4 z o X t Z R W y v i 4 C L w v 9 O p r 6 H k n 6 A 9 H K g E A N s Q 1 i q C 3 U b / v R U k 2 J g m R k a t K 3 6 k V r n t 0 q O b u n w U d U U M X M W Y p a k J s O 5 A m 8 t A w 2 G B I g w W A + G 2 S 2 d M p i w 0 g D i o Q R Q J o K h R b 1 Q i D w l H Z U A B Y b a X W s m 5 a e 6 l o T E 4 Z D x N 4 C Z a r 8 f o V z O J 2 i y Z 2 k W F 3 t 7 Y I e v f f a M T 5 y J 7 0 k Q b 2 f Q 1 s E 5 S H r 2 w a z s 2 w g M x g b s E K E A g x A v Z U J b Q L B G T S B M g N r n c J b A 6 A l j t S / e K D J 0 E z + D m r Q E z X S 2 h 1 C k 2 5 k A g 0 I Z c U O a y d C y 4 s Y n N 2 f O A + 2 A P 1 6 g N o H A L l Q + f w H 7 X O 4 C x L e n U p g j 4 x r 6 u g Y 2 r o P M b M x + X s 1 8 m / E 8 C V E I h x s N e g 8 3 X W O A N 6 g r G 3 l G b k 8 u E 5 f r 4 B / W H 3 c J w + c o / l 9 n T Y s S G Y C J / l Y 5 / q v 0 t h n 6 n r I W m j e J c P S n W O e Y + + A k F 8 t p J H I M A U s / M a B B p j 3 z n Z f Q o 5 p s Y + Z r G 4 g v 5 H i c k j E O y m K j E e R p g y S T 6 I u Z c T c W b n j c g d P i 5 g h x c i R K s l 1 l D S s g w A 1 i 8 f s s o n J g z m T S q f G U k C E N n d N d A L 7 P S 6 Q Q 7 Z Y I S T o + 1 q q 0 L E W j T W c v Y 4 i s a 4 z + y f Q B + 7 o o y H V g 5 R I 7 / i 1 I j n / v n g g D g g D o g D 4 o C 0 0 P 4 K M A C d / j u E H O r S 4 A A A A A B J R U 5 E r k J g g g = = " / > < / e l e m e n t s > < / c o m p o n e n t > < c o m p o n e n t   n a m e = " d o c k " > < e l e m e n t s > < e l e m e n t   n a m e = " b u t t o n "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A D I A A A A y C A Y A A A A e P 4 i x A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A F B J R E F U e N r s 0 c E J A C A Q A 8 E o f u 0 f u / W 6 E M 5 Z S A F D R p K T B s 0 0 C Q Q E B A Q E B A Q E B A Q E B A Q E B A T k K 8 i q b Y + A g I C A g I C A g I C A g I C A g I C A g I C 8 6 Q o w A G 5 P A Q z E J 0 l K A A A A A E l F T k S u Q m C C " / > < / e l e m e n t s > < / c o m p o n e n t > < c o m p o n e n t   n a m e = " p l a y l i s t " > < e l e m e n t s > < e l e m e n t   n a m e = " i t e m "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A D w A A A A 8 C A I A A A C 1 n k 4 l A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A H h J R E F U e N r s 2 N E J w C A M B c B Y u v / C F u I E 9 V N 4 7 W W C R 7 i o c X R 3 p d W d G P q q w I o M j Y f Q e A i N h 9 B 4 J H c 6 M H Q V H n j g g Q c e e O C B B x 7 7 T i f y e O Y 0 i H i 8 D q I d E Y 8 d D 5 c L 0 9 4 e e P z I N B 5 C O / L w c O T p t N B 4 C P 2 5 L 4 T I b Z z p U 7 U E G A A 5 w z 1 u F 5 r F 9 A A A A A B J R U 5 E r k J g g g = = " / > < e l e m e n t   n a m e = " s l i d e r R a i l "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A B Q A A A A 8 C A I A A A D p F A 0 B A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A D h J R E F U e N r s y 6 E N A C A M A M H C l p 2 w Y x Z L A g 5 F c u 9 e 3 O j u O K q q f T M z b s 1 4 C I Z h G I Z h G I Z h G P 4 V L w E G A K / B B n V F p B 0 o A A A A A E l F T k S u Q m C C " / > < e l e m e n t   n a m e = " s l i d e r T h u m b "   s r c = " d a t a : i m a g e / p n g ; b a s e 6 4 , i V B O R w 0 K G g o A A A A N S U h E U g A A A B Q A A A A 8 C A I A A A D p F A 0 B A A A A G X R F W H R T b 2 Z 0 d 2 F y Z Q B B Z G 9 i Z S B J b W F n Z V J l Y W R 5 c c l l P A A A A D R J R E F U e N r s y 7 E N A C A M B L E 8 + + 8 c a F F K K i R f f U 5 3 1 1 2 S G s 3 t t O o h G I Z h G I Z h G I Z h + F e 8 B R g A i a U G d e 6 N O S E A A A A A S U V O R K 5 C Y I I = " / > < / e l e m e n t s > < / c o m p o n e n t > < / c o m p o n e n t s > < / s k i n > ' ; t h i s . x m l = n u l l ; i f ( w i n d o w . D O M P a r s e r ) { p a r s e r = n e w   D O M P a r s e r ( ) ; t h i s . x m l = p a r s e r . p a r s e F r o m S t r i n g ( t h i s . t e x t , " t e x t / x m l " ) } e l s e { t h i s . x m l = n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L D O M " ) ; t h i s . x m l . a s y n c = " f a l s e " ; t h i s . x m l . l o a d X M L ( t h i s . t e x t ) } r e t u r n   t h i s } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { _ c s s = a . u t i l s . c s s ; _ h i d e = f u n c t i o n ( b ) { _ c s s ( b , { d i s p l a y : " n o n e " } ) } ; _ s h o w = f u n c t i o n ( b ) { _ c s s ( b , { d i s p l a y : " b l o c k " } ) } ; a . h t m l 5 . d i s p l a y = f u n c t i o n ( o , z ) { v a r   r = { i c o n s : t r u e } ; v a r   j = a . u t i l s . e x t e n d ( { } , r , z ) ; v a r   w = o ; v a r   d = { } ; v a r   f ; v a r   A ; v a r   k ; v a r   x ; v a r   y ; v a r   p ; v a r   i ; v a r   n = w . s k i n . g e t C o m p o n e n t S e t t i n g s ( " d i s p l a y " ) . b u f f e r r o t a t i o n = = = u n d e f i n e d ? 1 5 : p a r s e I n t ( w . s k i n . g e t C o m p o n e n t S e t t i n g s ( " d i s p l a y " ) . b u f f e r r o t a t i o n , 1 0 ) ; v a r   e = w . s k i n . g e t C o m p o n e n t S e t t i n g s ( " d i s p l a y " ) . b u f f e r i n t e r v a l = = = u n d e f i n e d ? 1 0 0 : p a r s e I n t ( w . s k i n . g e t C o m p o n e n t S e t t i n g s ( " d i s p l a y " ) . b u f f e r i n t e r v a l , 1 0 ) ; v a r   c = { d i s p l a y : { s t y l e : { c u r s o r : " p o i n t e r " , t o p : 0 , l e f t : 0 , o v e r f l o w : " h i d d e n " } , c l i c k : u } , d i s p l a y _ i c o n : { s t y l e : { c u r s o r : " p o i n t e r " , p o s i t i o n : " a b s o l u t e " , t o p : ( ( w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , " b a c k g r o u n d " ) . h e i g h t - w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , " p l a y I c o n " ) . h e i g h t ) / 2 ) , l e f t : ( ( w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , " b a c k g r o u n d " ) . w i d t h - w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , " p l a y I c o n " ) . w i d t h ) / 2 ) , b o r d e r : 0 , m a r g i n : 0 , p a d d i n g : 0 , z I n d e x : 3 } } , d i s p l a y _ i c o n B a c k g r o u n d : { s t y l e : { c u r s o r : " p o i n t e r " , p o s i t i o n : " a b s o l u t e " , t o p : ( ( A - w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , " b a c k g r o u n d " ) . h e i g h t ) / 2 ) , l e f t : ( ( f - w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , " b a c k g r o u n d " ) . w i d t h ) / 2 ) , b o r d e r : 0 , b a c k g r o u n d I m a g e : ( [ " u r l ( " , w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , " b a c k g r o u n d " ) . s r c , " ) " ] ) . j o i n ( " " ) , w i d t h : w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , " b a c k g r o u n d " ) . w i d t h , h e i g h t : w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , " b a c k g r o u n d " ) . h e i g h t , m a r g i n : 0 , p a d d i n g : 0 , z I n d e x : 2 } } , d i s p l a y _ i m a g e : { s t y l e : { d i s p l a y : " n o n e " , w i d t h : f , h e i g h t : A , p o s i t i o n : " a b s o l u t e " , c u r s o r : " p o i n t e r " , l e f t : 0 , t o p : 0 , m a r g i n : 0 , p a d d i n g : 0 , t e x t D e c o r a t i o n : " n o n e " , z I n d e x : 1 } } , d i s p l a y _ t e x t : { s t y l e : { z I n d e x : 4 , p o s i t i o n : " r e l a t i v e " , o p a c i t y : 0 . 8 , b a c k g r o u n d C o l o r : p a r s e I n t ( " 0 0 0 0 0 0 " , 1 6 ) , c o l o r : p a r s e I n t ( " f f f f f f " , 1 6 ) , t e x t A l i g n : " c e n t e r " , f o n t F a m i l y : " A r i a l , s a n s - s e r i f " , p a d d i n g : " 0   5 p x " , f o n t S i z e : 1 4 } } } ; w . j w A d d E v e n t L i s t e n e r ( a . a p i . e v e n t s . J W P L A Y E R _ P L A Y E R _ S T A T E , l ) ; w . j w A d d E v e n t L i s t e n e r ( a . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ M U T E , l ) ; w . j w A d d E v e n t L i s t e n e r ( a . a p i . e v e n t s . J W P L A Y E R _ P L A Y L I S T _ I T E M , l ) ; w . j w A d d E v e n t L i s t e n e r ( a . a p i . e v e n t s . J W P L A Y E R _ E R R O R , t ) ; B ( ) ; f u n c t i o n   B ( ) { d . d i s p l a y = s ( " d i v " , " d i s p l a y " ) ; d . d i s p l a y _ t e x t = s ( " d i v " , " d i s p l a y _ t e x t " ) ; d . d i s p l a y . a p p e n d C h i l d ( d . d i s p l a y _ t e x t ) ; d . d i s p l a y _ i m a g e = s ( " i m g " , " d i s p l a y _ i m a g e " ) ; d . d i s p l a y _ i m a g e . o n e r r o r = f u n c t i o n ( C ) { _ h i d e ( d . d i s p l a y _ i m a g e ) } ; d . d i s p l a y _ i m a g e . o n l o a d = m ; d . d i s p l a y _ i c o n = s ( " d i v " , " d i s p l a y _ i c o n " ) ; d . d i s p l a y _ i c o n B a c k g r o u n d = s ( " d i v " , " d i s p l a y _ i c o n B a c k g r o u n d " ) ; d . d i s p l a y . a p p e n d C h i l d ( d . d i s p l a y _ i m a g e ) ; d . d i s p l a y _ i c o n B a c k g r o u n d . a p p e n d C h i l d ( d . d i s p l a y _ i c o n ) ; d . d i s p l a y . a p p e n d C h i l d ( d . d i s p l a y _ i c o n B a c k g r o u n d ) ; b ( ) } t h i s . g e t D i s p l a y E l e m e n t = f u n c t i o n ( ) { r e t u r n   d . d i s p l a y } ; t h i s . r e s i z e = f u n c t i o n ( D , C ) { f = D ; A = C ; _ c s s ( d . d i s p l a y , { w i d t h : D , h e i g h t : C } ) ; _ c s s ( d . d i s p l a y _ t e x t , { w i d t h : ( D - 1 0 ) , t o p : ( ( A - d . d i s p l a y _ t e x t . g e t B o u n d i n g C l i e n t R e c t ( ) . h e i g h t ) / 2 ) } ) ; _ c s s ( d . d i s p l a y _ i c o n B a c k g r o u n d , { t o p : ( ( A - w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , " b a c k g r o u n d " ) . h e i g h t ) / 2 ) , l e f t : ( ( f - w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , " b a c k g r o u n d " ) . w i d t h ) / 2 ) } ) ; h ( ) ; l ( { } ) } ; t h i s . s h o w = f u n c t i o n ( ) { _ s h o w ( d . d i s p l a y _ i c o n ) ; _ s h o w ( d . d i s p l a y _ i c o n B a c k g r o u n d ) } ; t h i s . h i d e = f u n c t i o n ( ) { q ( ) } ; f u n c t i o n   m ( C ) { k = d . d i s p l a y _ i m a g e . n a t u r a l W i d t h ; x = d . d i s p l a y _ i m a g e . n a t u r a l H e i g h t ; h ( ) } f u n c t i o n   h ( ) { a . u t i l s . s t r e t c h ( w . j w G e t S t r e t c h i n g ( ) , d . d i s p l a y _ i m a g e , f , A , k , x ) } f u n c t i o n   s ( C , E ) { v a r   D = d o c u m e n t . c r e a t e E l e m e n t ( C ) ; D . i d = w . i d + " _ j w p l a y e r _ " + E ; _ c s s ( D , c [ E ] . s t y l e ) ; r e t u r n   D } f u n c t i o n   b ( ) { f o r ( v a r   C   i n   d ) { i f ( c [ C ] . c l i c k ! = = u n d e f i n e d ) { d [ C ] . o n c l i c k = c [ C ] . c l i c k } } } f u n c t i o n   u ( C ) { i f ( t y p e o f   C . p r e v e n t D e f a u l t ! = " u n d e f i n e d " ) { C . p r e v e n t D e f a u l t ( ) } e l s e { C . r e t u r n V a l u e = f a l s e } i f ( w . j w G e t S t a t e ( ) ! = a . a p i . e v e n t s . s t a t e . P L A Y I N G ) { w . j w P l a y ( ) } e l s e { w . j w P a u s e ( ) } } f u n c t i o n   g ( C ) { i f ( i | | ! j . i c o n s ) { q ( ) ; r e t u r n } _ s h o w ( d . d i s p l a y _ i c o n B a c k g r o u n d ) ; d . d i s p l a y _ i c o n . s t y l e . b a c k g r o u n d I m a g e = ( [ " u r l ( " , w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , C ) . s r c , " ) " ] ) . j o i n ( " " ) ; _ c s s ( d . d i s p l a y _ i c o n , { d i s p l a y : " b l o c k " , w i d t h : w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , C ) . w i d t h , h e i g h t : w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , C ) . h e i g h t , t o p : ( w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , " b a c k g r o u n d " ) . h e i g h t - w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , C ) . h e i g h t ) / 2 , l e f t : ( w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , " b a c k g r o u n d " ) . w i d t h - w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , C ) . w i d t h ) / 2 } ) ; i f ( w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , C + " O v e r " ) ! = = u n d e f i n e d ) { d . d i s p l a y _ i c o n . o n m o u s e o v e r = f u n c t i o n ( D ) { d . d i s p l a y _ i c o n . s t y l e . b a c k g r o u n d I m a g e = [ " u r l ( " , w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , C + " O v e r " ) . s r c , " ) " ] . j o i n ( " " ) } ; d . d i s p l a y _ i c o n . o n m o u s e o u t = f u n c t i o n ( D ) { d . d i s p l a y _ i c o n . s t y l e . b a c k g r o u n d I m a g e = [ " u r l ( " , w . s k i n . g e t S k i n E l e m e n t ( " d i s p l a y " , C ) . s r c , " ) " ] . j o i n ( " " ) } } e l s e { d . d i s p l a y _ i c o n . o n m o u s e o v e r = n u l l ; d . d i s p l a y _ i c o n . o n m o u s e o u t = n u l l } } f u n c t i o n   q ( ) { _ h i d e ( d . d i s p l a y _ i c o n ) ; _ h i d e ( d . d i s p l a y _ i c o n B a c k g r o u n d ) } f u n c t i o n   t ( C ) { i = t r u e ; q ( ) ; d . d i s p l a y _ t e x t . i n n e r H T M L = C . e r r o r ; _ s h o w ( d . d i s p l a y _ t e x t ) ; d . d i s p l a y _ t e x t . s t y l e . t o p = ( ( A - d . d i s p l a y _ t e x t . g e t B o u n d i n g C l i e n t R e c t ( ) . h e i g h t ) / 2 ) + " p x " } f u n c t i o n   v ( ) { v a r   C = d . d i s p l a y _ i m a g e ; d . d i s p l a y _ i m a g e = s ( " i m g " , " d i s p l a y _ i m a g e " ) ; d . d i s p l a y _ i m a g e . o n e r r o r = f u n c t i o n ( D ) { _ h i d e ( d . d i s p l a y _ i m a g e ) } ; d . d i s p l a y _ i m a g e . o n l o a d = m ; d . d i s p l a y . r e p l a c e C h i l d ( d . d i s p l a y _ i m a g e , C ) } f u n c t i o n   l ( C ) { i f ( ( C . t y p e = = a . a p i . e v e n t s . J W P L A Y E R _ P L A Y E R _ S T A T E | | C . t y p e = = a . a p i . e v e n t s . J W P L A Y E R _ P L A Y L I S T _ I T E M ) & & i ) { i = f a l s e ; _ h i d e ( d . d i s p l a y _ t e x t ) } i f ( p ! = = u n d e f i n e d ) { c l e a r I n t e r v a l ( p ) ; p = n u l l ; a . u t i l s . a n i m a t i o n s . r o t a t e ( d . d i s p l a y _ i c o n , 0 ) } s w i t c h ( w . j w G e t S t a t e ( ) ) { c a s e   a . a p i . e v e n t s . s t a t e . B U F F E R I N G : g ( " b u f f e r I c o n " ) ; y = 0 ; p = s e t I n t e r v a l ( f u n c t i o n ( ) { y + = n ; a . u t i l s . a n i m a t i o n s . r o t a t e ( d . d i s p l a y _ i c o n , y % 3 6 0 ) } , e ) ; g ( " b u f f e r I c o n " ) ; b r e a k ; c a s e   a . a p i . e v e n t s . s t a t e . P A U S E D : i f ( w . j w G e t P l a y l i s t ( ) [ w . j w G e t I t e m ( ) ] . p r o v i d e r ! = " s o u n d " ) { _ c s s ( d . d i s p l a y _ i m a g e , { b a c k g r o u n d : " t r a n s p a r e n t   n o - r e p e a t   c e n t e r   c e n t e r " } ) } g ( " p l a y I c o n " ) ; b r e a k ; c a s e   a . a p i . e v e n t s . s t a t e . I D L E : i f ( w . j w G e t P l a y l i s t ( ) [ w . j w G e t I t e m ( ) ] . i m a g e ) { _ c s s ( d . d i s p l a y _ i m a g e , { d i s p l a y : " b l o c k " } ) ; d . d i s p l a y _ i m a g e . s r c = a . u t i l s . g e t A b s o l u t e P a t h ( w . j w G e t P l a y l i s t ( ) [ w . j w G e t I t e m ( ) ] . i m a g e ) } e l s e { v ( ) } g ( " p l a y I c o n " ) ; b r e a k ; d e f a u l t : i f ( w . j w G e t M u t e ( ) & & j . s h o w m u t e ) { i f ( w . j w G e t P l a y l i s t ( ) [ w . j w G e t I t e m ( ) ] . p r o v i d e r ! = " s o u n d " ) { v ( ) } g ( " m u t e I c o n " ) } e l s e { i f ( w . j w G e t P l a y l i s t ( ) [ w . j w G e t I t e m ( ) ] . p r o v i d e r ! = " s o u n d " ) { v ( ) } _ h i d e ( d . d i s p l a y _ i c o n B a c k g r o u n d ) ; _ h i d e ( d . d i s p l a y _ i c o n ) } b r e a k } } r e t u r n   t h i s } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { _ c s s = a . u t i l s . c s s ; a . h t m l 5 . d o c k = f u n c t i o n ( g , c ) { f u n c t i o n   f ( ) { r e t u r n { a l i g n : a . h t m l 5 . v i e w . p o s i t i o n s . R I G H T } } v a r   k = a . u t i l s . e x t e n d ( { } , f ( ) , c ) ; i f ( k . a l i g n = = " F A L S E " ) { r e t u r n } v a r   h = { } ; v a r   b = [ ] ; v a r   d ; v a r   e ; v a r   j = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; j . i d = g . i d + " _ j w p l a y e r _ d o c k " ; t h i s . g e t D i s p l a y E l e m e n t = f u n c t i o n ( ) { r e t u r n   j } ; t h i s . s e t B u t t o n = f u n c t i o n ( o , l , m , n ) { i f ( ! l & & h [ o ] ) { a . u t i l s . a r r a y s . r e m o v e ( b , o ) ; j . r e m o v e C h i l d ( h [ o ] . d i v ) ; d e l e t e   h [ o ] } e l s e { i f ( l ) { i f ( ! h [ o ] ) { h [ o ] = { } } h [ o ] . h a n d l e r = l ; h [ o ] . o u t G r a p h i c = m ; h [ o ] . o v e r G r a p h i c = n ; i f ( ! h [ o ] . d i v ) { b . p u s h ( o ) ; h [ o ] . d i v = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; h [ o ] . d i v . s t y l e . p o s i t i o n = " r e l a t i v e " ; j . a p p e n d C h i l d ( h [ o ] . d i v ) ; h [ o ] . d i v . a p p e n d C h i l d ( d o c u m e n t . c r e a t e E l e m e n t ( " i m g " ) ) ; h [ o ] . d i v . c h i l d N o d e s [ 0 ] . s t y l e . p o s i t i o n = " a b s o l u t e " ; h [ o ] . d i v . c h i l d N o d e s [ 0 ] . s t y l e . l e f t = 0 ; h [ o ] . d i v . c h i l d N o d e s [ 0 ] . s t y l e . t o p = 0 ; h [ o ] . d i v . c h i l d N o d e s [ 0 ] . s t y l e . z I n d e x = 1 0 ; h [ o ] . d i v . c h i l d N o d e s [ 0 ] . s t y l e . c u r s o r = " p o i n t e r " ; h [ o ] . d i v . a p p e n d C h i l d ( d o c u m e n t . c r e a t e E l e m e n t ( " i m g " ) ) ; h [ o ] . d i v . c h i l d N o d e s [ 1 ] . s t y l e . p o s i t i o n = " a b s o l u t e " ; h [ o ] . d i v . c h i l d N o d e s [ 1 ] . s t y l e . l e f t = 0 ; h [ o ] . d i v . c h i l d N o d e s [ 1 ] . s t y l e . t o p = 0 ; i f ( g . s k i n . g e t S k i n E l e m e n t ( " d o c k " , " b u t t o n " ) ) { h [ o ] . d i v . c h i l d N o d e s [ 1 ] . s r c = g . s k i n . g e t S k i n E l e m e n t ( " d o c k " , " b u t t o n " ) . s r c } h [ o ] . d i v . c h i l d N o d e s [ 1 ] . s t y l e . z I n d e x = 9 ; h [ o ] . d i v . c h i l d N o d e s [ 1 ] . s t y l e . c u r s o r = " p o i n t e r " ; h [ o ] . d i v . o n m o u s e o v e r = f u n c t i o n ( ) { i f ( h [ o ] . o v e r G r a p h i c ) { h [ o ] . d i v . c h i l d N o d e s [ 0 ] . s r c = h [ o ] . o v e r G r a p h i c } i f ( g . s k i n . g e t S k i n E l e m e n t ( " d o c k " , " b u t t o n O v e r " ) ) { h [ o ] . d i v . c h i l d N o d e s [ 1 ] . s r c = g . s k i n . g e t S k i n E l e m e n t ( " d o c k " , " b u t t o n O v e r " ) . s r c } } ; h [ o ] . d i v . o n m o u s e o u t = f u n c t i o n ( ) { i f ( h [ o ] . o u t G r a p h i c ) { h [ o ] . d i v . c h i l d N o d e s [ 0 ] . s r c = h [ o ] . o u t G r a p h i c } i f ( g . s k i n . g e t S k i n E l e m e n t ( " d o c k " , " b u t t o n " ) ) { h [ o ] . d i v . c h i l d N o d e s [ 1 ] . s r c = g . s k i n . g e t S k i n E l e m e n t ( " d o c k " , " b u t t o n " ) . s r c } } ; i f ( h [ o ] . o v e r G r a p h i c ) { h [ o ] . d i v . c h i l d N o d e s [ 0 ] . s r c = h [ o ] . o v e r G r a p h i c } i f ( h [ o ] . o u t G r a p h i c ) { h [ o ] . d i v . c h i l d N o d e s [ 0 ] . s r c = h [ o ] . o u t G r a p h i c } i f ( g . s k i n . g e t S k i n E l e m e n t ( " d o c k " , " b u t t o n " ) ) { h [ o ] . d i v . c h i l d N o d e s [ 1 ] . s r c = g . s k i n . g e t S k i n E l e m e n t ( " d o c k " , " b u t t o n " ) . s r c } } i f ( l ) { h [ o ] . d i v . o n c l i c k = f u n c t i o n ( p ) { p . p r e v e n t D e f a u l t ( ) ; a ( g . i d ) . c a l l b a c k ( o ) ; i f ( h [ o ] . o v e r G r a p h i c ) { h [ o ] . d i v . c h i l d N o d e s [ 0 ] . s r c = h [ o ] . o v e r G r a p h i c } i f ( g . s k i n . g e t S k i n E l e m e n t ( " d o c k " , " b u t t o n " ) ) { h [ o ] . d i v . c h i l d N o d e s [ 1 ] . s r c = g . s k i n . g e t S k i n E l e m e n t ( " d o c k " , " b u t t o n " ) . s r c } } } } } i ( d , e ) } ; f u n c t i o n   i ( n , l ) { d = n ; e = l ; i f ( b . l e n g t h > 0 ) { v a r   p = 1 0 ; v a r   r = n - g . s k i n . g e t S k i n E l e m e n t ( " d o c k " , " b u t t o n " ) . w i d t h - p ; v a r   o = p ; v a r   q = - 1 ; i f ( k . a l i g n = = a . h t m l 5 . v i e w . p o s i t i o n s . L E F T ) { q = 1 ; r = p } f o r ( v a r   m = 0 ; m < b . l e n g t h ; m + + ) { v a r   s = M a t h . f l o o r ( o / l ) ; i f ( ( o + g . s k i n . g e t S k i n E l e m e n t ( " d o c k " , " b u t t o n " ) . h e i g h t + p ) > ( ( s + 1 ) * l ) ) { o = ( ( s + 1 ) * l ) + p ; s = M a t h . f l o o r ( o / l ) } h [ b [ m ] ] . d i v . s t y l e . t o p = ( o % l ) + " p x " ; h [ b [ m ] ] . d i v . s t y l e . l e f t = ( r + ( g . s k i n . g e t S k i n E l e m e n t ( " d o c k " , " b u t t o n " ) . w i d t h + p ) * s * q ) + " p x " ; o + = g . s k i n . g e t S k i n E l e m e n t ( " d o c k " , " b u t t o n " ) . h e i g h t + p } } } t h i s . r e s i z e = i ; t h i s . s h o w = f u n c t i o n ( ) { _ c s s ( j , { d i s p l a y : " b l o c k " } ) } ; t h i s . h i d e = f u n c t i o n ( ) { _ c s s ( j , { d i s p l a y : " n o n e " } ) } ; r e t u r n   t h i s } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . h t m l 5 . e v e n t d i s p a t c h e r = f u n c t i o n ( d , b ) { v a r   c = n e w   a . e v e n t s . e v e n t d i s p a t c h e r ( b ) ; a . u t i l s . e x t e n d ( t h i s , c ) ; t h i s . s e n d E v e n t = f u n c t i o n ( e , f ) { i f ( f = = = u n d e f i n e d ) { f = { } } a . u t i l s . e x t e n d ( f , { i d : d , v e r s i o n : a . v e r s i o n , t y p e : e } ) ; c . s e n d E v e n t ( e , f ) } } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { v a r   b = { p r e f i x : " h t t p : / / l . l o n g t a i l v i d e o . c o m / h t m l 5 / " , f i l e : " l o g o . p n g " , l i n k : " h t t p : / / w w w . l o n g t a i l v i d e o . c o m / p l a y e r s / j w - f l v - p l a y e r / " , m a r g i n : 8 , o u t : 0 . 5 , o v e r : 1 , t i m e o u t : 3 , h i d e : t r u e , p o s i t i o n : " b o t t o m - l e f t " } ; _ c s s = a . u t i l s . c s s ; a . h t m l 5 . l o g o = f u n c t i o n ( l , m ) { v a r   r = l ; v a r   n ; v a r   i ; v a r   c ; j ( ) ; f u n c t i o n   j ( ) { p ( ) ; d ( ) ; f ( ) } f u n c t i o n   p ( ) { i f ( b . p r e f i x ) { v a r   t = l . v e r s i o n . s p l i t ( / \ W / ) . s p l i c e ( 0 , 2 ) . j o i n ( " / " ) ; i f ( b . p r e f i x . i n d e x O f ( t ) < 0 ) { b . p r e f i x + = t + " / " } } i f ( m . p o s i t i o n = = a . h t m l 5 . v i e w . p o s i t i o n s . O V E R ) { m . p o s i t i o n = b . p o s i t i o n } i = a . u t i l s . e x t e n d ( { } , b ) } f u n c t i o n   d ( ) { c = d o c u m e n t . c r e a t e E l e m e n t ( " i m g " ) ; c . i d = r . i d + " _ j w p l a y e r _ l o g o " ; c . s t y l e . d i s p l a y = " n o n e " ; c . o n l o a d = f u n c t i o n ( t ) { _ c s s ( c , q ( ) ) ; r . j w A d d E v e n t L i s t e n e r ( a . a p i . e v e n t s . J W P L A Y E R _ P L A Y E R _ S T A T E , s ) ; e ( ) } ; i f ( ! i . f i l e ) { r e t u r n } i f ( i . f i l e . i n d e x O f ( " h t t p : / / " ) = = = 0 ) { c . s r c = i . f i l e } e l s e { c . s r c = i . p r e f i x + i . f i l e } } i f ( ! i . f i l e ) { r e t u r n } t h i s . r e s i z e = f u n c t i o n ( u , t ) { } ; t h i s . g e t D i s p l a y E l e m e n t = f u n c t i o n ( ) { r e t u r n   c } ; f u n c t i o n   f ( ) { i f ( i . l i n k ) { c . o n m o u s e o v e r = h ; c . o n m o u s e o u t = e ; c . o n c l i c k = o } e l s e { t h i s . m o u s e E n a b l e d = f a l s e } } f u n c t i o n   o ( t ) { i f ( t y p e o f   t ! = " u n d e f i n e d " ) { t . s t o p P r o p a g a t i o n ( ) } r . j w P a u s e ( ) ; r . j w S e t F u l l s c r e e n ( f a l s e ) ; i f ( i . l i n k ) { w i n d o w . o p e n ( i . l i n k , " _ b l a n k " ) } r e t u r n } f u n c t i o n   e ( t ) { i f ( i . l i n k ) { c . s t y l e . o p a c i t y = i . o u t } r e t u r n } f u n c t i o n   h ( t ) { i f ( i . h i d e ) { c . s t y l e . o p a c i t y = i . o v e r } r e t u r n } f u n c t i o n   q ( ) { v a r   v = { t e x t D e c o r a t i o n : " n o n e " , p o s i t i o n : " a b s o l u t e " , c u r s o r : " p o i n t e r " } ; v . d i s p l a y = i . h i d e ? " n o n e " : " b l o c k " ; v a r   u = i . p o s i t i o n . t o L o w e r C a s e ( ) . s p l i t ( " - " ) ; f o r ( v a r   t   i n   u ) { v [ u [ t ] ] = i . m a r g i n } r e t u r n   v } f u n c t i o n   k ( ) { i f ( i . h i d e ) { c . s t y l e . d i s p l a y = " b l o c k " ; c . s t y l e . o p a c i t y = 0 ; a . u t i l s . f a d e T o ( c , i . o u t , 0 . 1 , p a r s e F l o a t ( c . s t y l e . o p a c i t y ) ) ; n = s e t T i m e o u t ( f u n c t i o n ( ) { g ( ) } , i . t i m e o u t * 1 0 0 0 ) } } f u n c t i o n   g ( ) { i f ( i . h i d e ) { a . u t i l s . f a d e T o ( c , 0 , 0 . 1 , p a r s e F l o a t ( c . s t y l e . o p a c i t y ) ) } } f u n c t i o n   s ( t ) { i f ( t . n e w s t a t e = = a . a p i . e v e n t s . s t a t e . B U F F E R I N G ) { c l e a r T i m e o u t ( n ) ; k ( ) } } r e t u r n   t h i s } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { v a r   c = { e n d e d : a . a p i . e v e n t s . s t a t e . I D L E , p l a y i n g : a . a p i . e v e n t s . s t a t e . P L A Y I N G , p a u s e : a . a p i . e v e n t s . s t a t e . P A U S E D , b u f f e r i n g : a . a p i . e v e n t s . s t a t e . B U F F E R I N G } ; v a r   b = a . u t i l s . c s s ; a . h t m l 5 . m e d i a v i d e o = f u n c t i o n ( f , F ) { v a r   J = { a b o r t : t , c a n p l a y : m , c a n p l a y t h r o u g h : m , d u r a t i o n c h a n g e : q , e m p t i e d : t , e n d e d : m , e r r o r : l , l o a d e d d a t a : q , l o a d e d m e t a d a t a : q , l o a d s t a r t : m , p a u s e : m , p l a y : M , p l a y i n g : m , p r o g r e s s : B , r a t e c h a n g e : t , s e e k e d : m , s e e k i n g : m , s t a l l e d : m , s u s p e n d : m , t i m e u p d a t e : M , v o l u m e c h a n g e : t , w a i t i n g : m , c a n s h o w c u r r e n t f r a m e : t , d a t a u n a v a i l a b l e : t , e m p t y : t , l o a d : e , l o a d e d f i r s t f r a m e : t } ; v a r   K = n e w   a . h t m l 5 . e v e n t d i s p a t c h e r ( ) ; a . u t i l s . e x t e n d ( t h i s , K ) ; v a r   h = f ; v a r   x = F ; v a r   G ; v a r   I ; v a r   d = a . a p i . e v e n t s . s t a t e . I D L E ; v a r   C = n u l l ; v a r   n ; v a r   g = 0 ; v a r   A = f a l s e ; v a r   r = f a l s e ; v a r   O ; v a r   N ; v a r   i = [ ] ; v a r   P ; v a r   E = f a l s e ; f u n c t i o n   v ( ) { r e t u r n   d } f u n c t i o n   e ( Q ) { } f u n c t i o n   t ( Q ) { } f u n c t i o n   m ( Q ) { i f ( c [ Q . t y p e ] ) { s ( c [ Q . t y p e ] ) } } f u n c t i o n   s ( Q ) { i f ( E ) { r e t u r n } i f ( n ) { Q = a . a p i . e v e n t s . s t a t e . I D L E } i f ( Q = = a . a p i . e v e n t s . s t a t e . P A U S E D & & d = = a . a p i . e v e n t s . s t a t e . I D L E ) { r e t u r n } i f ( Q = = a . a p i . e v e n t s . s t a t e . P L A Y I N G & & d = = a . a p i . e v e n t s . s t a t e . I D L E ) { s ( a . a p i . e v e n t s . s t a t e . B U F F E R I N G ) ; K . s e n d E v e n t ( a . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ B U F F E R , { b u f f e r P e r c e n t : h . b u f f e r } ) ; z ( ) ; r e t u r n } i f ( d ! = Q ) { v a r   R = d ; h . s t a t e = Q ; d = Q ; v a r   S = f a l s e ; i f ( Q = = a . a p i . e v e n t s . s t a t e . I D L E ) { p ( ) ; i f ( h . p o s i t i o n > = h . d u r a t i o n & & ( h . p o s i t i o n > 0 | | h . d u r a t i o n > 0 ) ) { S = t r u e } i f ( x . s t y l e . d i s p l a y ! = " n o n e " & & ! h . c o n f i g . c h r o m e l e s s ) { x . s t y l e . d i s p l a y = " n o n e " } } K . s e n d E v e n t ( a . a p i . e v e n t s . J W P L A Y E R _ P L A Y E R _ S T A T E , { o l d s t a t e : R , n e w s t a t e : Q } ) ; i f ( S ) { K . s e n d E v e n t ( a . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ C O M P L E T E ) } } n = f a l s e } f u n c t i o n   q ( Q ) { v a r   R = { h e i g h t : Q . t a r g e t . v i d e o H e i g h t , w i d t h : Q . t a r g e t . v i d e o W i d t h , d u r a t i o n : M a t h . r o u n d ( Q . t a r g e t . d u r a t i o n * 1 0 ) / 1 0 } ; i f ( h . d u r a t i o n = = = 0 | | i s N a N ( h . d u r a t i o n ) ) { h . d u r a t i o n = M a t h . r o u n d ( Q . t a r g e t . d u r a t i o n * 1 0 ) / 1 0 } h . p l a y l i s t [ h . i t e m ] = a . u t i l s . e x t e n d ( h . p l a y l i s t [ h . i t e m ] , R ) ; K . s e n d E v e n t ( a . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ M E T A , { m e t a d a t a : R } ) } f u n c t i o n   M ( R ) { i f ( n ) { r e t u r n } i f ( R ! = = u n d e f i n e d & & R . t a r g e t ! = = u n d e f i n e d ) { i f ( h . d u r a t i o n = = = 0 | | i s N a N ( h . d u r a t i o n ) ) { h . d u r a t i o n = M a t h . r o u n d ( R . t a r g e t . d u r a t i o n * 1 0 ) / 1 0 } i f ( ! A & & x . r e a d y S t a t e > 0 ) { s ( a . a p i . e v e n t s . s t a t e . P L A Y I N G ) } i f ( d = = a . a p i . e v e n t s . s t a t e . P L A Y I N G ) { i f ( ! A & & x . r e a d y S t a t e > 0 ) { A = t r u e ; t r y { x . c u r r e n t T i m e = h . p l a y l i s t [ h . i t e m ] . s t a r t } c a t c h ( Q ) { } x . v o l u m e = h . v o l u m e / 1 0 0 ; x . m u t e d = h . m u t e } h . p o s i t i o n = M a t h . r o u n d ( R . t a r g e t . c u r r e n t T i m e * 1 0 ) / 1 0 ; K . s e n d E v e n t ( a . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ T I M E , { p o s i t i o n : R . t a r g e t . c u r r e n t T i m e , d u r a t i o n : R . t a r g e t . d u r a t i o n } ) } } B ( R ) } f u n c t i o n   z ( ) { i f ( G = = = f a l s e & & d = = a . a p i . e v e n t s . s t a t e . B U F F E R I N G ) { K . s e n d E v e n t ( a . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ B U F F E R _ F U L L ) ; G = t r u e } } f u n c t i o n   H ( ) { v a r   Q = ( i [ i . l e n g t h - 1 ] - i [ 0 ] ) / i . l e n g t h ; P = s e t T i m e o u t ( f u n c t i o n ( ) { i f ( ! I ) { B ( { l e n g t h C o m p u t a b l e : t r u e , l o a d e d : 1 , t o t a l : 1 } ) } } , Q * 1 0 ) } f u n c t i o n   B ( S ) { v a r   R , Q ; i f ( S ! = = u n d e f i n e d & & S . l e n g t h C o m p u t a b l e & & S . t o t a l ) { o ( ) ; R = S . l o a d e d / S . t o t a l * 1 0 0 ; Q = R / 1 0 0 * ( h . d u r a t i o n - x . c u r r e n t T i m e ) ; i f ( 5 0 < R & & ! I ) { c l e a r T i m e o u t ( P ) ; H ( ) } } e l s e { i f ( ( x . b u f f e r e d ! = = u n d e f i n e d ) & & ( x . b u f f e r e d . l e n g t h > 0 ) ) { m a x B u f f e r I n d e x = 0 ; i f ( m a x B u f f e r I n d e x > = 0 ) { R = x . b u f f e r e d . e n d ( m a x B u f f e r I n d e x ) / x . d u r a t i o n * 1 0 0 ; Q = x . b u f f e r e d . e n d ( m a x B u f f e r I n d e x ) - x . c u r r e n t T i m e } } } z ( ) ; i f ( ! I ) { i f ( R = = 1 0 0 & & I = = = f a l s e ) { I = t r u e } i f ( R ! = = n u l l & & ( R > h . b u f f e r ) ) { h . b u f f e r = M a t h . r o u n d ( R ) ; K . s e n d E v e n t ( a . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ B U F F E R , { b u f f e r P e r c e n t : M a t h . r o u n d ( R ) } ) } } } f u n c t i o n   w ( ) { i f ( C = = = n u l l ) { C = s e t I n t e r v a l ( f u n c t i o n ( ) { M ( ) } , 1 0 0 ) } } f u n c t i o n   p ( ) { c l e a r I n t e r v a l ( C ) ; C = n u l l } f u n c t i o n   l ( S ) { v a r   R = " T h e r e   w a s   a n   e r r o r :   " ; i f ( ( S . t a r g e t . e r r o r & & S . t a r g e t . t a g N a m e . t o L o w e r C a s e ( ) = = " v i d e o " ) | | S . t a r g e t . p a r e n t N o d e . e r r o r & & S . t a r g e t . p a r e n t N o d e . t a g N a m e . t o L o w e r C a s e ( ) = = " v i d e o " ) { v a r   Q = S . t a r g e t . e r r o r = = = u n d e f i n e d ? S . t a r g e t . p a r e n t N o d e . e r r o r : S . t a r g e t . e r r o r ; s w i t c h ( Q . c o d e ) { c a s e   Q . M E D I A _ E R R _ A B O R T E D : R = " Y o u   a b o r t e d   t h e   v i d e o   p l a y b a c k :   " ; b r e a k ; c a s e   Q . M E D I A _ E R R _ N E T W O R K : R = " A   n e t w o r k   e r r o r   c a u s e d   t h e   v i d e o   d o w n l o a d   t o   f a i l   p a r t - w a y :   " ; b r e a k ; c a s e   Q . M E D I A _ E R R _ D E C O D E : R = " T h e   v i d e o   p l a y b a c k   w a s   a b o r t e d   d u e   t o   a   c o r r u p t i o n   p r o b l e m   o r   b e c a u s e   t h e   v i d e o   u s e d   f e a t u r e s   y o u r   b r o w s e r   d i d   n o t   s u p p o r t :   " ; b r e a k ; c a s e   Q . M E D I A _ E R R _ S R C _ N O T _ S U P P O R T E D : R = " T h e   v i d e o   c o u l d   n o t   b e   l o a d e d ,   e i t h e r   b e c a u s e   t h e   s e r v e r   o r   n e t w o r k   f a i l e d   o r   b e c a u s e   t h e   f o r m a t   i s   n o t   s u p p o r t e d :   " ; b r e a k ; d e f a u l t : R = " A n   u n k n o w n   e r r o r   o c c u r r e d :   " ; b r e a k } } e l s e { i f ( S . t a r g e t . t a g N a m e . t o L o w e r C a s e ( ) = = " s o u r c e " ) { N - - ; i f ( N > 0 ) { r e t u r n } R = " T h e   v i d e o   c o u l d   n o t   b e   l o a d e d ,   e i t h e r   b e c a u s e   t h e   s e r v e r   o r   n e t w o r k   f a i l e d   o r   b e c a u s e   t h e   f o r m a t   i s   n o t   s u p p o r t e d :   " } e l s e { a . u t i l s . l o g ( " E r r o n e o u s   e r r o r   r e c e i v e d .   C o n t i n u i n g . . . " ) ; r e t u r n } } u ( ) ; R + = j ( ) ; E = t r u e ; K . s e n d E v e n t ( a . a p i . e v e n t s . J W P L A Y E R _ E R R O R , { e r r o r : R } ) ; r e t u r n } f u n c t i o n   j ( ) { v a r   S = " " ; f o r ( v a r   R   i n   O . l e v e l s ) { v a r   Q = O . l e v e l s [ R ] ; v a r   T = x . o w n e r D o c u m e n t . c r e a t e E l e m e n t ( " s o u r c e " ) ; S + = a . u t i l s . g e t A b s o l u t e P a t h ( Q . f i l e ) ; i f ( R < ( O . l e v e l s . l e n g t h - 1 ) ) { S + = " ,   " } } r e t u r n   S } t h i s . g e t D i s p l a y E l e m e n t = f u n c t i o n ( ) { r e t u r n   x } ; t h i s . p l a y = f u n c t i o n ( ) { i f ( d ! = a . a p i . e v e n t s . s t a t e . P L A Y I N G ) { i f ( x . s t y l e . d i s p l a y ! = " b l o c k " ) { x . s t y l e . d i s p l a y = " b l o c k " } x . p l a y ( ) ; w ( ) ; i f ( G ) { s ( a . a p i . e v e n t s . s t a t e . P L A Y I N G ) } } } ; t h i s . p a u s e = f u n c t i o n ( ) { x . p a u s e ( ) ; s ( a . a p i . e v e n t s . s t a t e . P A U S E D ) } ; t h i s . s e e k = f u n c t i o n ( Q ) { i f ( ! ( h . d u r a t i o n = = = 0 | | i s N a N ( h . d u r a t i o n ) ) & & ! ( h . p o s i t i o n = = = 0 | | i s N a N ( h . p o s i t i o n ) ) ) { x . c u r r e n t T i m e = Q ; x . p l a y ( ) } } ; f u n c t i o n   u ( ) { x . p a u s e ( ) ; x . r e m o v e A t t r i b u t e ( " s r c " ) ; v a r   Q = x . g e t E l e m e n t s B y T a g N a m e ( " s o u r c e " ) ; f o r ( v a r   R = 0 ; R < Q . l e n g t h ; R + + ) { x . r e m o v e C h i l d ( Q [ R ] ) } i f ( t y p e o f   x . l o a d = = " f u n c t i o n " ) { x . l o a d ( ) } p ( ) ; h . p o s i t i o n = 0 ; n = t r u e ; s ( a . a p i . e v e n t s . s t a t e . I D L E ) } t h i s . s t o p = u ; t h i s . v o l u m e = f u n c t i o n ( Q ) { x . v o l u m e = Q / 1 0 0 ; h . v o l u m e = Q ; K . s e n d E v e n t ( a . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ V O L U M E , { v o l u m e : M a t h . r o u n d ( Q ) } ) } ; t h i s . m u t e = f u n c t i o n ( Q ) { x . m u t e d = Q ; h . m u t e = Q ; K . s e n d E v e n t ( a . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ M U T E , { m u t e : Q } ) } ; t h i s . r e s i z e = f u n c t i o n ( R , Q ) { i f ( f a l s e ) { b ( x , { w i d t h : R , h e i g h t : Q } ) } K . s e n d E v e n t ( a . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ R E S I Z E , { f u l l s c r e e n : h . f u l l s c r e e n , w i d t h : R , h i e g h t : Q } ) } ; t h i s . f u l l s c r e e n = f u n c t i o n ( Q ) { i f ( Q = = = t r u e ) { t h i s . r e s i z e ( " 1 0 0 % " , " 1 0 0 % " ) } e l s e { t h i s . r e s i z e ( h . c o n f i g . w i d t h , h . c o n f i g . h e i g h t ) } } ; t h i s . l o a d = f u n c t i o n ( Q ) { L ( Q ) ; K . s e n d E v e n t ( a . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ L O A D E D ) ; G = f a l s e ; I = f a l s e ; A = f a l s e ; i f ( ! h . c o n f i g . c h r o m e l e s s & & ! r ) { i = [ ] ; o ( ) ; s ( a . a p i . e v e n t s . s t a t e . B U F F E R I N G ) ; s e t T i m e o u t ( f u n c t i o n ( ) { M ( ) } , 2 5 ) } } ; f u n c t i o n   o ( ) { v a r   Q = n e w   D a t e ( ) . g e t T i m e ( ) ; i . p u s h ( Q ) } t h i s . h a s C h r o m e = f u n c t i o n ( ) { r e t u r n   r } ; f u n c t i o n   L ( Q ) { s w i t c h ( Q . p r o v i d e r ) { c a s e " y o u t u b e " : k ( Q ) ; b r e a k ; d e f a u l t : D ( Q , d o c u m e n t . c r e a t e E l e m e n t ( " v i d e o " ) ) ; b r e a k } } f u n c t i o n   D ( X , V ) { h . d u r a t i o n = X . d u r a t i o n ; r = f a l s e ; O = X ; V . p r e l o a d = " n o n e " ; V . s e t A t t r i b u t e ( " x - w e b k i t - a i r p l a y " , " a l l o w " ) ; E = f a l s e ; N = 0 ; f o r ( v a r   R = 0 ; R < X . l e v e l s . l e n g t h ; R + + ) { v a r   Q = X . l e v e l s [ R ] ; v a r   S ; v a r   W = a . u t i l s . e x t e n s i o n ( Q . f i l e ) ; i f ( Q . t y p e = = = u n d e f i n e d ) { i f ( a . u t i l s . e x t e n s i o n m a p [ W ] ! = = u n d e f i n e d & & a . u t i l s . e x t e n s i o n m a p [ W ] . h t m l 5 ! = = u n d e f i n e d ) { S = a . u t i l s . e x t e n s i o n m a p [ W ] . h t m l 5 } } e l s e { S = Q . t y p e } i f ( ! S | | V . c a n P l a y T y p e ( S ) | | ( a . u t i l s . i s L e g a c y A n d r o i d ( ) & & W . m a t c h ( / m 4 v | m p 4 / ) ) ) { v a r   U = x . o w n e r D o c u m e n t . c r e a t e E l e m e n t ( " s o u r c e " ) ; U . s r c = a . u t i l s . g e t A b s o l u t e P a t h ( Q . f i l e ) ; i f ( S & & ! a . u t i l s . i s L e g a c y A n d r o i d ( ) ) { U . t y p e = S } N + + ; V . a p p e n d C h i l d ( U ) } } i f ( N = = = 0 ) { E = t r u e ; K . s e n d E v e n t ( a . a p i . e v e n t s . J W P L A Y E R _ E R R O R , { e r r o r : " T h e   m e d i a   c o u l d   n o t   b e   l o a d e d   b e c a u s e   t h e   f o r m a t   i s   n o t   s u p p o r t e d   b y   y o u r   b r o w s e r :   " + j ( ) } ) } i f ( h . c o n f i g . c h r o m e l e s s ) { V . p o s t e r = a . u t i l s . g e t A b s o l u t e P a t h ( X . i m a g e ) ; V . c o n t r o l s = " c o n t r o l s " } V . s t y l e . t o p = x . s t y l e . t o p ; V . s t y l e . l e f t = x . s t y l e . l e f t ; V . s t y l e . w i d t h = x . s t y l e . w i d t h ; V . s t y l e . h e i g h t = x . s t y l e . h e i g h t ; V . s t y l e . z I n d e x = x . s t y l e . z I n d e x ; V . o n l o a d = e ; V . v o l u m e = 0 ; x . p a r e n t N o d e . r e p l a c e C h i l d ( V , x ) ; V . i d = x . i d ; x = V ; f o r ( v a r   T   i n   J ) { x . a d d E v e n t L i s t e n e r ( T , f u n c t i o n ( Y ) { i f ( Y . t a r g e t . p a r e n t N o d e ! = = n u l l ) { J [ Y . t y p e ] ( Y ) } } , t r u e ) } } f u n c t i o n   k ( Q ) { v a r   Y = Q . l e v e l s [ 0 ] . f i l e ; v a r   T = d o c u m e n t . c r e a t e E l e m e n t ( " o b j e c t " ) ; Y = [ " h t t p : / / w w w . y o u t u b e . c o m / v / " , y ( Y ) , " & a m p ; h l = e n _ U S & a m p ; f s = 1 & a u t o p l a y = 1 " ] . j o i n ( " " ) ; v a r   W = { m o v i e : Y , a l l o w F u l l S c r e e n : " t r u e " , a l l o w s c r i p t a c c e s s : " a l w a y s " } ; f o r ( v a r   S   i n   W ) { v a r   R = d o c u m e n t . c r e a t e E l e m e n t ( " p a r a m " ) ; R . n a m e = S ; R . v a l u e = W [ S ] ; T . a p p e n d C h i l d ( R ) } v a r   X = d o c u m e n t . c r e a t e E l e m e n t ( " e m b e d " ) ; v a r   U = { s r c : Y , 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 " , a l l o w s c r i p t a c c e s s : " a l w a y s " , a l l o w f u l l s c r e e n : " t r u e " , w i d t h : d o c u m e n t . g e t E l e m e n t B y I d ( f . i d ) . s t y l e . w i d t h , h e i g h t : d o c u m e n t . g e t E l e m e n t B y I d ( f . i d ) . s t y l e . h e i g h t } ; f o r ( v a r   V   i n   U ) { X [ V ] = U [ V ] } T . a p p e n d C h i l d ( X ) ; T . s t y l e . p o s i t i o n = x . s t y l e . p o s i t i o n ; T . s t y l e . t o p = x . s t y l e . t o p ; T . s t y l e . l e f t = x . s t y l e . l e f t ; T . s t y l e . w i d t h = d o c u m e n t . g e t E l e m e n t B y I d ( f . i d ) . s t y l e . w i d t h ; T . s t y l e . h e i g h t = d o c u m e n t . g e t E l e m e n t B y I d ( f . i d ) . s t y l e . h e i g h t ; T . s t y l e . z I n d e x = 2 1 4 7 4 8 3 0 0 0 ; x . p a r e n t N o d e . r e p l a c e C h i l d ( T , x ) ; T . i d = x . i d ; x = T ; r = t r u e } f u n c t i o n   y ( R ) { v a r   Q = R . s p l i t ( / \ ? | \ # \ ! / ) ; v a r   T = " " ; f o r ( v a r   S = 0 ; S < Q . l e n g t h ; S + + ) { i f ( Q [ S ] . s u b s t r ( 0 , 2 ) = = " v = " ) { T = Q [ S ] . s u b s t r ( 2 ) } } i f ( T = = " " ) { i f ( R . i n d e x O f ( " / v / " ) > = 0 ) { T = R . s u b s t r ( R . i n d e x O f ( " / v / " ) + 3 ) } e l s e { i f ( R . i n d e x O f ( " y o u t u . b e " ) > = 0 ) { T = R . s u b s t r ( R . i n d e x O f ( " y o u t u . b e / " ) + 9 ) } e l s e { T = R } } } i f ( T . i n d e x O f ( " ? " ) > - 1 ) { T = T . s u b s t r ( 0 , T . i n d e x O f ( " ? " ) ) } i f ( T . i n d e x O f ( " & " ) > - 1 ) { T = T . s u b s t r ( 0 , T . i n d e x O f ( " & " ) ) } r e t u r n   T } t h i s . e m b e d = L ; r e t u r n   t h i s } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( j w p l a y e r ) { v a r   _ c o n f i g u r a b l e S t a t e V a r i a b l e s = [ " w i d t h " , " h e i g h t " , " s t a r t " , " d u r a t i o n " , " v o l u m e " , " m u t e " , " f u l l s c r e e n " , " i t e m " , " p l u g i n s " , " s t r e t c h i n g " ] ; j w p l a y e r . h t m l 5 . m o d e l = f u n c t i o n ( a p i , c o n t a i n e r , o p t i o n s ) { v a r   _ a p i = a p i ; v a r   _ c o n t a i n e r = c o n t a i n e r ; v a r   _ m o d e l = { i d : _ c o n t a i n e r . i d , p l a y l i s t : [ ] , s t a t e : j w p l a y e r . a p i . e v e n t s . s t a t e . I D L E , p o s i t i o n : 0 , b u f f e r : 0 , c o n f i g : { w i d t h : 4 8 0 , h e i g h t : 3 2 0 , i t e m : - 1 , s k i n : u n d e f i n e d , f i l e : u n d e f i n e d , i m a g e : u n d e f i n e d , s t a r t : 0 , d u r a t i o n : 0 , b u f f e r l e n g t h : 5 , v o l u m e : 9 0 , m u t e : f a l s e , f u l l s c r e e n : f a l s e , r e p e a t : " n o n e " , s t r e t c h i n g : j w p l a y e r . u t i l s . s t r e t c h i n g . U N I F O R M , a u t o s t a r t : f a l s e , d e b u g : u n d e f i n e d , s c r e e n c o l o r : u n d e f i n e d } } ; v a r   _ m e d i a ; v a r   _ e v e n t D i s p a t c h e r = n e w   j w p l a y e r . h t m l 5 . e v e n t d i s p a t c h e r ( ) ; v a r   _ c o m p o n e n t s = [ " d i s p l a y " , " l o g o " , " c o n t r o l b a r " , " d o c k " ] ; j w p l a y e r . u t i l s . e x t e n d ( _ m o d e l , _ e v e n t D i s p a t c h e r ) ; f o r ( v a r   o p t i o n   i n   o p t i o n s ) { i f ( t y p e o f   o p t i o n s [ o p t i o n ] = = " s t r i n g " ) { v a r   t y p e = / c o l o r $ / . t e s t ( o p t i o n ) ? " c o l o r " : n u l l ; o p t i o n s [ o p t i o n ] = j w p l a y e r . u t i l s . t y p e c h e c k e r ( o p t i o n s [ o p t i o n ] , t y p e ) } v a r   c o n f i g = _ m o d e l . c o n f i g ; v a r   p a t h = o p t i o n . s p l i t ( " . " ) ; f o r ( v a r   e d g e   i n   p a t h ) { i f ( e d g e = = p a t h . l e n g t h - 1 ) { c o n f i g [ p a t h [ e d g e ] ] = o p t i o n s [ o p t i o n ] } e l s e { i f ( c o n f i g [ p a t h [ e d g e ] ] = = = u n d e f i n e d ) { c o n f i g [ p a t h [ e d g e ] ] = { } } c o n f i g = c o n f i g [ p a t h [ e d g e ] ] } } } f o r ( v a r   i n d e x   i n   _ c o n f i g u r a b l e S t a t e V a r i a b l e s ) { v a r   c o n f i g u r a b l e S t a t e V a r i a b l e = _ c o n f i g u r a b l e S t a t e V a r i a b l e s [ i n d e x ] ; _ m o d e l [ c o n f i g u r a b l e S t a t e V a r i a b l e ] = _ m o d e l . c o n f i g [ c o n f i g u r a b l e S t a t e V a r i a b l e ] } v a r   p l u g i n o r d e r = _ c o m p o n e n t s . c o n c a t ( [ ] ) ; i f ( _ m o d e l . p l u g i n s ! = = u n d e f i n e d ) { i f ( t y p e o f   _ m o d e l . p l u g i n s = = " s t r i n g " ) { v a r   u s e r p l u g i n s = _ m o d e l . p l u g i n s . s p l i t ( " , " ) ; f o r ( v a r   u s e r p l u g i n   i n   u s e r p l u g i n s ) { i f ( t y p e o f   u s e r p l u g i n s [ u s e r p l u g i n ] = = " s t r i n g " ) { p l u g i n o r d e r . p u s h ( u s e r p l u g i n s [ u s e r p l u g i n ] . r e p l a c e ( / ^ \ s + | \ s + $ / g , " " ) ) } } } } i f ( t y p e o f   _ m o d e l . c o n f i g . c h r o m e l e s s = = " u n d e f i n e d " & & j w p l a y e r . u t i l s . i s I O S ( ) ) { _ m o d e l . c o n f i g . c h r o m e l e s s = t r u e } i f ( _ m o d e l . c o n f i g . c h r o m e l e s s ) { p l u g i n o r d e r = [ " l o g o " ] ; i f ( _ m o d e l . c o n f i g . r e p e a t = = = u n d e f i n e d | | _ m o d e l . c o n f i g . r e p e a t = = " n o n e " ) { _ m o d e l . c o n f i g . r e p e a t = " l i s t " } } _ m o d e l . p l u g i n s = { o r d e r : p l u g i n o r d e r , c o n f i g : { } , o b j e c t : { } } ; i f ( t y p e o f   _ m o d e l . c o n f i g . c o m p o n e n t s ! = " u n d e f i n e d " ) { f o r ( v a r   c o m p o n e n t   i n   _ m o d e l . c o n f i g . c o m p o n e n t s ) { _ m o d e l . p l u g i n s . c o n f i g [ c o m p o n e n t ] = _ m o d e l . c o n f i g . c o m p o n e n t s [ c o m p o n e n t ] } } f o r ( v a r   p l u g i n I n d e x   i n   _ m o d e l . p l u g i n s . o r d e r ) { v a r   p l u g i n N a m e = _ m o d e l . p l u g i n s . o r d e r [ p l u g i n I n d e x ] ; v a r   p l u g i n C o n f i g = _ m o d e l . c o n f i g [ p l u g i n N a m e ] = = = u n d e f i n e d ? { } : _ m o d e l . c o n f i g [ p l u g i n N a m e ] ; _ m o d e l . p l u g i n s . c o n f i g [ p l u g i n N a m e ] = _ m o d e l . p l u g i n s . c o n f i g [ p l u g i n N a m e ] = = = u n d e f i n e d ? p l u g i n C o n f i g : j w p l a y e r . u t i l s . e x t e n d ( _ m o d e l . p l u g i n s . c o n f i g [ p l u g i n N a m e ] , p l u g i n C o n f i g ) ; i f ( t y p e o f   _ m o d e l . p l u g i n s . c o n f i g [ p l u g i n N a m e ] . p o s i t i o n = = " u n d e f i n e d " ) { _ m o d e l . p l u g i n s . c o n f i g [ p l u g i n N a m e ] . p o s i t i o n = j w p l a y e r . h t m l 5 . v i e w . p o s i t i o n s . O V E R } e l s e { _ m o d e l . p l u g i n s . c o n f i g [ p l u g i n N a m e ] . p o s i t i o n = _ m o d e l . p l u g i n s . c o n f i g [ p l u g i n N a m e ] . p o s i t i o n . t o S t r i n g ( ) . t o U p p e r C a s e ( ) } } i f ( t y p e o f   _ m o d e l . p l u g i n s . c o n f i g . d o c k ! = " u n d e f i n e d " ) { i f ( t y p e o f   _ m o d e l . p l u g i n s . c o n f i g . d o c k ! = " o b j e c t " ) { v a r   p o s i t i o n = _ m o d e l . p l u g i n s . c o n f i g . d o c k . t o S t r i n g ( ) . t o U p p e r C a s e ( ) ; _ m o d e l . p l u g i n s . c o n f i g . d o c k = { p o s i t i o n : p o s i t i o n } } i f ( t y p e o f   _ m o d e l . p l u g i n s . c o n f i g . d o c k . p o s i t i o n ! = " u n d e f i n e d " ) { _ m o d e l . p l u g i n s . c o n f i g . d o c k . a l i g n = _ m o d e l . p l u g i n s . c o n f i g . d o c k . p o s i t i o n ; _ m o d e l . p l u g i n s . c o n f i g . d o c k . p o s i t i o n = j w p l a y e r . h t m l 5 . v i e w . p o s i t i o n s . O V E R } } _ m o d e l . l o a d P l a y l i s t = f u n c t i o n ( a r g , r e a d y ) { v a r   i n p u t ; i f ( t y p e o f   a r g = = " s t r i n g " ) { t r y { i n p u t = e v a l ( a r g ) } c a t c h ( e r r ) { i n p u t = a r g } } e l s e { i n p u t = a r g } v a r   c o n f i g ; s w i t c h ( j w p l a y e r . u t i l s . t y p e O f ( i n p u t ) ) { c a s e " o b j e c t " : c o n f i g = i n p u t ; b r e a k ; c a s e " a r r a y " : c o n f i g = { p l a y l i s t : i n p u t } ; b r e a k ; d e f a u l t : c o n f i g = { f i l e : i n p u t } ; b r e a k } _ m o d e l . p l a y l i s t = n e w   j w p l a y e r . h t m l 5 . p l a y l i s t ( c o n f i g ) ; i f ( _ m o d e l . c o n f i g . s h u f f l e ) { _ m o d e l . i t e m = _ g e t S h u f f l e I t e m ( ) } e l s e { i f ( _ m o d e l . c o n f i g . i t e m > = _ m o d e l . p l a y l i s t . l e n g t h ) { _ m o d e l . c o n f i g . i t e m = _ m o d e l . p l a y l i s t . l e n g t h - 1 } e l s e { i f ( _ m o d e l . c o n f i g . i t e m < 0 ) { _ m o d e l . c o n f i g . i t e m = 0 } } _ m o d e l . i t e m = _ m o d e l . c o n f i g . i t e m } i f ( ! r e a d y ) { _ e v e n t D i s p a t c h e r . s e n d E v e n t ( j w p l a y e r . a p i . e v e n t s . J W P L A Y E R _ P L A Y L I S T _ L O A D E D , { p l a y l i s t : _ m o d e l . p l a y l i s t } ) } _ m o d e l . s e t A c t i v e M e d i a P r o v i d e r ( _ m o d e l . p l a y l i s t [ _ m o d e l . i t e m ] ) } ; f u n c t i o n   _ g e t S h u f f l e I t e m ( ) { v a r   r e s u l t = n u l l ; i f ( _ m o d e l . p l a y l i s t . l e n g t h > 1 ) { w h i l e ( r e s u l t = = = n u l l ) { r e s u l t = M a t h . f l o o r ( M a t h . r a n d o m ( ) * _ m o d e l . p l a y l i s t . l e n g t h ) ; i f ( r e s u l t = = _ m o d e l . i t e m ) { r e s u l t = n u l l } } } e l s e { r e s u l t = 0 } r e t u r n   r e s u l t } f u n c t i o n   f o r w a r d ( e v t ) { i f ( e v t . t y p e = = j w p l a y e r . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ L O A D E D ) { _ c o n t a i n e r = _ m e d i a . g e t D i s p l a y E l e m e n t ( ) } _ e v e n t D i s p a t c h e r . s e n d E v e n t ( e v t . t y p e , e v t ) } _ m o d e l . s e t A c t i v e M e d i a P r o v i d e r = f u n c t i o n ( p l a y l i s t I t e m ) { i f ( _ m e d i a ! = = u n d e f i n e d ) { _ m e d i a . r e s e t E v e n t L i s t e n e r s ( ) } _ m e d i a = n e w   j w p l a y e r . h t m l 5 . m e d i a v i d e o ( _ m o d e l , _ c o n t a i n e r ) ; _ m e d i a . a d d G l o b a l L i s t e n e r ( f o r w a r d ) ; i f ( _ m o d e l . c o n f i g . c h r o m e l e s s ) { _ m e d i a . l o a d ( p l a y l i s t I t e m ) } r e t u r n   t r u e } ; _ m o d e l . g e t M e d i a = f u n c t i o n ( ) { r e t u r n   _ m e d i a } ; _ m o d e l . s e e k = f u n c t i o n ( p o s ) { _ e v e n t D i s p a t c h e r . s e n d E v e n t ( j w p l a y e r . a p i . e v e n t s . J W P L A Y E R _ M E D I A _ S E E K , { p o s i t i o n : _ m o d e l . p o s i t i o n , o f f s e t : p o s } ) ; r e t u r n   _ m e d i a . s e e k ( p o s ) } ; _ m o d e l . s e t u p P l u g i n s = f u n c t i o n ( ) { f o r ( v a r   p l u g i n   i n   _ m o d e l . p l u g i n s . o r d e r ) { t r y { v a r   p l u g i n N a m e = _ m o d e l . p l u g i n s . o r d e r [ p l u g i n ] ; i f ( j w p l a y e r . h t m l 5 [ p l u g i n N a m e ] ! = = u n d e f i n e d ) { _ m o d e l . p l u g i n s . o b j e c t [ p l u g i n N a m e ] = n e w   j w p l a y e r . h t m l 5 [ p l u g i n N a m e ] ( _ a p i , _ m o d e l . p l u g i n s . c o n f i g [ p l u g i n N a m e ] ) } e l s e { _ m o d e l . p l u g i n s . o r d e r . s p l i c e ( p l u g i n , p l u g i n + 1 ) } } c a t c h ( e r r ) { j w p l a y e r . u t i l s . l o g ( " C o u l d   n o t   s e t u p   " + p l u g i n N a m e ) } } } ; r e t u r n   _ m o d e l } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . h t m l 5 . p l a y l i s t = f u n c t i o n ( b ) { v a r   d = [ ] ; i f ( b . p l a y l i s t & & b . p l a y l i s t   i n s t a n c e o f   A r r a y & & b . p l a y l i s t . l e n g t h > 0 ) { f o r ( v a r   c   i n   b . p l a y l i s t ) { i f ( ! i s N a N ( p a r s e I n t ( c ) ) ) { d . p u s h ( n e w   a . h t m l 5 . p l a y l i s t i t e m ( b . p l a y l i s t [ c ] ) ) } } } e l s e { d . p u s h ( n e w   a . h t m l 5 . p l a y l i s t i t e m ( b ) ) } r e t u r n   d } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( b ) { b . h t m l 5 . p l a y l i s t i t e m = f u n c t i o n ( d ) { v a r   e = { a u t h o r : " " , d a t e : " " , d e s c r i p t i o n : " " , i m a g e : " " , l i n k : " " , m e d i a i d : " " , t a g s : " " , t i t l e : " " , p r o v i d e r : " " , f i l e : " " , s t r e a m e r : " " , d u r a t i o n : - 1 , s t a r t : 0 , c u r r e n t L e v e l : - 1 , l e v e l s : [ ] } ; v a r   c = b . u t i l s . e x t e n d ( { } , e , d ) ; i f ( c . t y p e ) { c . p r o v i d e r = c . t y p e ; d e l e t e   c . t y p e } i f ( c . l e v e l s . l e n g t h = = = 0 ) { c . l e v e l s [ 0 ] = n e w   b . h t m l 5 . p l a y l i s t i t e m l e v e l ( c ) } i f ( ! c . p r o v i d e r ) { c . p r o v i d e r = a ( c . l e v e l s [ 0 ] ) } e l s e { c . p r o v i d e r = c . p r o v i d e r . t o L o w e r C a s e ( ) } r e t u r n   c } ; f u n c t i o n   a ( e ) { i f ( b . u t i l s . i s Y o u T u b e ( e . f i l e ) ) { r e t u r n " y o u t u b e " } e l s e { v a r   f = b . u t i l s . e x t e n s i o n ( e . f i l e ) ; v a r   c ; i f ( f & & b . u t i l s . e x t e n s i o n m a p [ f ] ) { c = b . u t i l s . e x t e n s i o n m a p [ f ] . h t m l 5 } e l s e { i f ( e . t y p e ) { c = e . t y p e } } i f ( c ) { v a r   d = c . s p l i t ( " / " ) [ 0 ] ; i f ( d = = " a u d i o " ) { r e t u r n " s o u n d " } e l s e { i f ( d = = " v i d e o " ) { r e t u r n   d } } } } r e t u r n " " } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . h t m l 5 . p l a y l i s t i t e m l e v e l = f u n c t i o n ( b ) { v a r   d = { f i l e : " " , s t r e a m e r : " " , b i t r a t e : 0 , w i d t h : 0 } ; f o r ( v a r   c   i n   d ) { i f ( b [ c ] ! = = u n d e f i n e d ) { d [ c ] = b [ c ] } } r e t u r n   d } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . h t m l 5 . s k i n = f u n c t i o n ( ) { v a r   b = { } ; v a r   c = f a l s e ; t h i s . l o a d = f u n c t i o n ( d , e ) { n e w   a . h t m l 5 . s k i n l o a d e r ( d , f u n c t i o n ( f ) { c = t r u e ; b = f ; e ( ) } , f u n c t i o n ( ) { n e w   a . h t m l 5 . s k i n l o a d e r ( " " , f u n c t i o n ( f ) { c = t r u e ; b = f ; e ( ) } ) } ) } ; t h i s . g e t S k i n E l e m e n t = f u n c t i o n ( d , e ) { i f ( c ) { t r y { r e t u r n   b [ d ] . e l e m e n t s [ e ] } c a t c h ( f ) { a . u t i l s . l o g ( " N o   s u c h   s k i n   c o m p o n e n t   /   e l e m e n t :   " , [ d , e ] ) } } r e t u r n   n u l l } ; t h i s . g e t C o m p o n e n t S e t t i n g s = f u n c t i o n ( d ) { i f ( c ) { r e t u r n   b [ d ] . s e t t i n g s } r e t u r n   n u l l } ; t h i s . g e t C o m p o n e n t L a y o u t = f u n c t i o n ( d ) { i f ( c ) { r e t u r n   b [ d ] . l a y o u t } r e t u r n   n u l l } } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . h t m l 5 . s k i n l o a d e r = f u n c t i o n ( f , n , i ) { v a r   m = { } ; v a r   c = n ; v a r   j = i ; v a r   e = t r u e ; v a r   h ; v a r   l = f ; v a r   q = f a l s e ; f u n c t i o n   k ( ) { i f ( t y p e o f   l ! = " s t r i n g " | | l = = = " " ) { d ( a . h t m l 5 . d e f a u l t S k i n ( ) . x m l ) } e l s e { a . u t i l s . a j a x ( a . u t i l s . g e t A b s o l u t e P a t h ( l ) , f u n c t i o n ( r ) { t r y { i f ( r . r e s p o n s e X M L ! = = n u l l ) { d ( r . r e s p o n s e X M L ) ; r e t u r n } } c a t c h ( s ) { } d ( a . h t m l 5 . d e f a u l t S k i n ( ) . x m l ) } , f u n c t i o n ( r ) { d ( a . h t m l 5 . d e f a u l t S k i n ( ) . x m l ) } ) } } f u n c t i o n   d ( w ) { v a r   C = w . g e t E l e m e n t s B y T a g N a m e ( " c o m p o n e n t " ) ; i f ( C . l e n g t h = = = 0 ) { r e t u r n } f o r ( v a r   F = 0 ; F < C . l e n g t h ; F + + ) { v a r   A = C [ F ] . g e t A t t r i b u t e ( " n a m e " ) ; v a r   z = { s e t t i n g s : { } , e l e m e n t s : { } , l a y o u t : { } } ; m [ A ] = z ; v a r   E = C [ F ] . g e t E l e m e n t s B y T a g N a m e ( " e l e m e n t s " ) [ 0 ] . g e t E l e m e n t s B y T a g N a m e ( " e l e m e n t " ) ; f o r ( v a r   D = 0 ; D < E . l e n g t h ; D + + ) { b ( E [ D ] , A ) } v a r   x = C [ F ] . g e t E l e m e n t s B y T a g N a m e ( " s e t t i n g s " ) [ 0 ] ; i f ( x ! = = u n d e f i n e d & & x . c h i l d N o d e s . l e n g t h > 0 ) { v a r   I = x . g e t E l e m e n t s B y T a g N a m e ( " s e t t i n g " ) ; f o r ( v a r   N = 0 ; N < I . l e n g t h ; N + + ) { v a r   O = I [ N ] . g e t A t t r i b u t e ( " n a m e " ) ; v a r   G = I [ N ] . g e t A t t r i b u t e ( " v a l u e " ) ; v a r   v = / c o l o r $ / . t e s t ( O ) ? " c o l o r " : n u l l ; m [ A ] . s e t t i n g s [ O ] = a . u t i l s . t y p e c h e c k e r ( G , v ) } } v a r   J = C [ F ] . g e t E l e m e n t s B y T a g N a m e ( " l a y o u t " ) [ 0 ] ; i f ( J ! = = u n d e f i n e d & & J . c h i l d N o d e s . l e n g t h > 0 ) { v a r   K = J . g e t E l e m e n t s B y T a g N a m e ( " g r o u p " ) ; f o r ( v a r   u = 0 ; u < K . l e n g t h ; u + + ) { v a r   y = K [ u ] ; m [ A ] . l a y o u t [ y . g e t A t t r i b u t e ( " p o s i t i o n " ) ] = { e l e m e n t s : [ ] } ; f o r ( v a r   M = 0 ; M < y . a t t r i b u t e s . l e n g t h ; M + + ) { v a r   B = y . a t t r i b u t e s [ M ] ; m [ A ] . l a y o u t [ y . g e t A t t r i b u t e ( " p o s i t i o n " ) ] [ B . n a m e ] = B . v a l u e } v a r   L = y . g e t E l e m e n t s B y T a g N a m e ( " * " ) ; f o r ( v a r   t = 0 ; t < L . l e n g t h ; t + + ) { v a r   r = L [ t ] ; m [ A ] . l a y o u t [ y . g e t A t t r i b u t e ( " p o s i t i o n " ) ] . e l e m e n t s . p u s h ( { t y p e : r . t a g N a m e } ) ; f o r ( v a r   s = 0 ; s < r . a t t r i b u t e s . l e n g t h ; s + + ) { v a r   H = r . a t t r i b u t e s [ s ] ; m [ A ] . l a y o u t [ y . g e t A t t r i b u t e ( " p o s i t i o n " ) ] . e l e m e n t s [ t ] [ H . n a m e ] = H . v a l u e } i f ( m [ A ] . l a y o u t [ y . g e t A t t r i b u t e ( " p o s i t i o n " ) ] . e l e m e n t s [ t ] . n a m e = = = u n d e f i n e d ) { m [ A ] . l a y o u t [ y . g e t A t t r i b u t e ( " p o s i t i o n " ) ] . e l e m e n t s [ t ] . n a m e = r . t a g N a m e } } } } e = f a l s e ; p ( ) } } f u n c t i o n   p ( ) { c l e a r I n t e r v a l ( h ) ; i f ( ! q ) { h = s e t I n t e r v a l ( f u n c t i o n ( ) { o ( ) } , 1 0 0 ) } } f u n c t i o n   b ( w , v ) { v a r   u = n e w   I m a g e ( ) ; v a r   r = w . g e t A t t r i b u t e ( " n a m e " ) ; v a r   t = w . g e t A t t r i b u t e ( " s r c " ) ; v a r   y ; i f ( t . i n d e x O f ( " d a t a : i m a g e / p n g ; b a s e 6 4 , " ) = = = 0 ) { y = t } e l s e { v a r   s = a . u t i l s . g e t A b s o l u t e P a t h ( l ) ; v a r   x = s . s u b s t r ( 0 , s . l a s t I n d e x O f ( " / " ) ) ; y = [ x , v , t ] . j o i n ( " / " ) } m [ v ] . e l e m e n t s [ r ] = { h e i g h t : 0 , w i d t h : 0 , s r c : " " , r e a d y : f a l s e } ; u . o n l o a d = f u n c t i o n ( z ) { g ( u , r , v ) } ; u . o n e r r o r = f u n c t i o n ( z ) { q = t r u e ; p ( ) ; j ( ) } ; u . s r c = y } f u n c t i o n   o ( ) { f o r ( v a r   r   i n   m ) { i f ( r ! = " p r o p e r t i e s " ) { f o r ( v a r   s   i n   m [ r ] . e l e m e n t s ) { i f ( ! m [ r ] . e l e m e n t s [ s ] . r e a d y ) { r e t u r n } } } } i f ( e = = = f a l s e ) { c l e a r I n t e r v a l ( h ) ; c ( m ) } } f u n c t i o n   g ( r , t , s ) { m [ s ] . e l e m e n t s [ t ] . h e i g h t = r . h e i g h t ; m [ s ] . e l e m e n t s [ t ] . w i d t h = r . w i d t h ; m [ s ] . e l e m e n t s [ t ] . s r c = r . s r c ; m [ s ] . e l e m e n t s [ t ] . r e a d y = t r u e ; p ( ) } k ( ) } } ) ( j w p l a y e r ) ; ( f u n c t i o n ( a ) { a . h t m l 5 . a p i = f u n c t i o n ( b , l ) { v a r   k = { } ; v a r   f = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; b . p a r e n t N o d e . r e p l a c e C h i l d ( f , b ) ; f . i d = b . i d ; k . v e r s i o n = a . v e r s i o n ; k . i d = f . i d ; v a r   j = n e w   a . h t m l 5 . m o d e l ( k , f , l ) ; v a r   h = n e w   a . h t m l 5 . v i e w ( k , f , j ) ; v a r   i = n e w   a . h t m l 5 . c o n t r o l l e r ( k , f , j , h ) ; k . s k i n = n e w   a . h t m l 5 . s k i n ( ) ; k . j w P l a y = f u n c t i o n ( m ) { i f ( t y p e o f   m = = " u n d e f i n e d " ) { e ( ) } e l s e { i f ( m . t o S t r i n g ( ) . t o L o w e r C a s e ( ) = = " t r u e " ) { i . p l a y ( ) } e l s e { i . p a u s e ( ) } } } ; k . j w P a u s e = f u n c t i o n ( m ) { i f ( t y p e o f   m = = " u n d e f i n e d " ) { e ( ) } e l s e { i f ( m . t o S t r i n g ( ) . t o L o w e r C a s e ( ) = = " t r u e " ) { i . p a u s e ( ) } e l s e { i . p l a y ( ) } } } ; f u n c t i o n   e ( ) { i f ( j . s t a t e = = a . a p i . e v e n t s . s t a t e . P L A Y I N G | | j . s t a t e = = a . a p i . e v e n t s . s t a t e . B U F F E R I N G ) { i . p a u s e ( ) } e l s e { i . p l a y ( ) } } k . j w S t o p = i . s t o p ; k . j w S e e k = i . s e e k ; k . j w P l a y l i s t I t e m = i . i t e m ; k . j w P l a y l i s t N e x t = i . n e x t ; k . j w P l a y l i s t P r e v = i . p r e v ; k . j w R e s i z e = i . r e s i z e ; k . j w L o a d = i . l o a d ; f u n c t i o n   g ( m ) { r e t u r n   f u n c t i o n ( ) { r e t u r n   j [ m ] } } f u n c t i o n   d ( m , o , n ) { r e t u r n   f u n c t i o n ( ) { v a r   p = j . p l u g i n s . o b j e c t [ m ] ; i f ( p & & p [ o ] & & t y p e o f   p [ o ] = = " f u n c t i o n " ) { p [ o ] . a p p l y ( p , n ) } } } k . j w G e t I t e m = g ( " i t e m " ) ; k . j w G e t P o s i t i o n = g ( " p o s i t i o n " ) ; k . j w G e t D u r a t i o n = g ( " d u r a t i o n " ) ; k . j w G e t B u f f e r = g ( " b u f f e r " ) ; k . j w G e t W i d t h = g ( " w i d t h " ) ; k . j w G e t H e i g h t = g ( " h e i g h t " ) ; k . j w G e t F u l l s c r e e n = g ( " f u l l s c r e e n " ) ; k . j w S e t F u l l s c r e e n = i . s e t F u l l s c r e e n ; k . j w G e t V o l u m e = g ( " v o l u m e " ) ; k . j w S e t V o l u m e = i . s e t V o l u m e ; k . j w G e t M u t e = g ( " m u t e " ) ; k . j w S e t M u t e = i . s e t M u t e ; k . j w G e t S t r e t c h i n g = g ( " s t r e t c h i n g " ) ; k . j w G e t S t a t e = g ( " s t a t e " ) ; k . j w G e t V e r s i o n = f u n c t i o n ( ) { r e t u r n   k . v e r s i o n } ; k . j w G e t P l a y l i s t = f u n c t i o n ( ) { r e t u r n   j . p l a y l i s t } ; k . j w G e t P l a y l i s t I n d e x = k . j w G e t I t e m ; k . j w A d d E v e n t L i s t e n e r = i . a d d E v e n t L i s t e n e r ; k . j w R e m o v e E v e n t L i s t e n e r = i . r e m o v e E v e n t L i s t e n e r ; k . j w S e n d E v e n t = i . s e n d E v e n t ; k . j w D o c k S e t B u t t o n = f u n c t i o n ( p , m , n , o ) { i f ( j . p l u g i n s . o b j e c t . d o c k & & j . p l u g i n s . o b j e c t . d o c k . s e t B u t t o n ) { j . p l u g i n s . o b j e c t . d o c k . s e t B u t t o n ( p , m , n , o ) } } ; k . j w S h o w C o n t r o l b a r = d ( " c o n t r o l b a r " , " s h o w " ) ; k . j w H i d e C o n t r o l b a r = d ( " c o n t r o l b a r " , " h i d e " ) ; k . j w S h o w D o c k = d ( " d o c k " , " s h o w " ) ; k . j w H i d e D o c k = d ( " d o c k " , " h i d e " ) ; k . j w S h o w D i s p l a y = d ( " d i s p l a y " , " s h o w " ) ; k . j w H i d e D i s p l a y = d ( " d i s p l a y " , " h i d e " ) ; k . j w G e t L e v e l = f u n c t i o n ( ) { } ; k . j w G e t B a n d w i d t h = f u n c t i o n ( ) { } ; k . j w G e t L o c k S t a t e = f u n c t i o n ( ) { } ; k . j w L o c k = f u n c t i o n ( ) { } ; k . j w U n l o c k = f u n c t i o n ( ) { } ; f u n c t i o n   c ( o , n , m ) { r e t u r n   f u n c t i o n ( ) { o . l o a d P l a y l i s t ( o . c o n f i g , t r u e ) ; o . s e t u p P l u g i n s ( ) ; n . s e t u p ( o . g e t M e d i a ( ) . g e t D i s p l a y E l e m e n t ( ) ) ; v a r   p = { i d : k . i d , v e r s i o n : k . v e r s i o n } ; m . s e n d E v e n t ( a . a p i . e v e n t s . J W P L A Y E R _ R E A D Y , p ) ; i f ( p l a y e r R e a d y ! = = u n d e f i n e d ) { p l a y e r R e a d y ( p ) } i f ( w i n d o w [ o . c o n f i g . p l a y e r R e a d y ] ! = = u n d e f i n e d ) { w i n d o w [ o . c o n f i g . p l a y e r R e a d y ] ( p ) } o . s e n d E v e n t ( a . a p i . e v e n t s . J W P L A Y E R _ P L A Y L I S T _ L O A D E D , { p l a y l i s t : o . p l a y l i s t } ) ; m . i t e m ( o . i t e m ) } } i f ( j . c o n f i g . c h r o m e l e s s ) { s e t T i m e o u t ( c ( j , h , i ) , 2 5 ) } e l s e { k . s k i n . l o a d ( j . c o n f i g . s k i n , c ( j , h , i ) ) } r e t u r n   k } } ) ( j w p l a y e r ) } ; 
