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