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