ÿþf u n c t i o n   v i s i t S i t e ( t h e _ s i t e )  
 { 	  
       / /   w i n d o w . l o c a t i o n   =   t h e _ s i t e  
       i f   ( t h e _ s i t e   ! = " O F F " )   {  
       w i n N a m e = w i n d o w . o p e n ( t h e _ s i t e , " w i n N a m e " ) ;   w i n N a m e . f o c u s ( ) ;   r e t u r n   f a l s e ;  
       }  
 }  
  
 f u n c t i o n   A d d _ B o o k m a r k _ F a v o r i t e ( u r l , t i t l e )    
 {  
   i f   ( w i n d o w . s i d e b a r )    
   {   / /   M o z i l l a   F i r e f o x   B o o k m a r k  
           / / M a k e   s u r e   " L o a d   t h i s   b o o k m a r k   i n   t h e   s i d e b a r   i s   d e s e l e c t e d  
     w i n d o w . s i d e b a r . a d d P a n e l ( t i t l e ,   u r l , " " ) ;  
     r e t u r n   f a l s e ;  
   }    
   e l s e   i f (   w i n d o w . e x t e r n a l   )    
   {   / /   I E   F a v o r i t e s  
     w i n d o w . e x t e r n a l . A d d F a v o r i t e (   u r l ,   t i t l e ) ;    
     r e t u r n   f a l s e ;  
   }  
   e l s e   i f ( w i n d o w . o p e r a   & &   w i n d o w . p r i n t )    
   {   / /   O p e r a   B o o k m a r k  
                 r e t u r n   ! a d d T o F a v ( u r l , t i t l e )  
         }  
 }  
 f u n c t i o n   s e t H o m e p a g e ( u r l )  
 {  
   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 ( u r l ) ;  
         }  
         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 ' , u r l ) ;  
         }  
 } 
