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