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