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