ÿþf u n c t i o n   a d d t o f a v o r i t e ( )    
 {  
 	 i f   ( ( n a v i g a t o r . a p p N a m e   = =   " M i c r o s o f t   I n t e r n e t   E x p l o r e r " )   & &   ( p a r s e I n t ( n a v i g a t o r . a p p V e r s i o n )   > =   4 ) )    
 	 {  
 	 	 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   ( " h t t p : / / w w w . s u v r e m e n o u c i l i s t e . h r " , " S u v r e m e n o   u i l i at e " ) ;  
 	 }  
 	 e l s e    
 	 {  
 	 	 v a r   m s g   =   " D o d a j t e   n a s   u   l i s t u   o m i l j e n i h   s t r a n i c a .   P r i t i s n i t e " ;  
 	 	 i f ( n a v i g a t o r . a p p N a m e   = =   " N e t s c a p e " )   m s g   + =   "     ( C T R L - D ) " ;  
 	 	 	 a l e r t ( m s g ) ;  
 	 }  
 }  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *   B o o k m a r k   s i t e   s c r i p t -   ©   D y n a m i c   D r i v e   D H T M L   c o d e   l i b r a r y   ( w w w . d y n a m i c d r i v e . c o m )  
 *   T h i s   n o t i c e   M U S T   s t a y   i n t a c t   f o r   l e g a l   u s e  
 *   V i s i t   D y n a m i c   D r i v e   a t   h t t p : / / w w w . d y n a m i c d r i v e . c o m /   f o r   f u l l   s o u r c e   c o d e  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 / *   M o d i f i e d   t o   s u p p o r t   O p e r a   * /  
 f u n c t i o n   b o o k m a r k s i t e ( t i t l e , u r l ) {  
 i f   ( w i n d o w . s i d e b a r )   / /   f i r e f o x  
 	 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 ,   " " ) ;  
 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  
 	 v a r   e l e m   =   d o c u m e n t . c r e a t e E l e m e n t ( ' a ' ) ;  
 	 e l e m . s e t A t t r i b u t e ( ' h r e f ' , u r l ) ;  
 	 e l e m . s e t A t t r i b u t e ( ' t i t l e ' , t i t l e ) ;  
 	 e l e m . s e t A t t r i b u t e ( ' r e l ' , ' s i d e b a r ' ) ;  
 	 e l e m . c l i c k ( ) ;  
 }    
 e l s e   i f ( d o c u m e n t . a l l ) / /   i e  
 	 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 ) ;  
 }  
  
  
 f u n c t i o n   s e t H o m 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 . s u v r e m e n o u c i l i s t e . h r ' ) ;  
         }  
         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 . s u v r e m e n o u c i l i s t e . h r ' ) ;  
         }  
 }    
  
  
 f u n c t i o n   s e t H o m e P a g e ( h o m e )   {  
     i f   ( n a v i g a t o r . a p p N a m e   = =   " N e t s c a p e " )   {  
         a l e r t ( " M o z i l l a / F i r e f o x   n e   d o z v o l j a v a   o v u   a k c i j u " ) ;  
     }  
     e l s e   {  
         h o m e . 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 ) ' ;  
         h o m e . s e t H o m e P a g e ( ' h t t p : / / w w w . s u v r e m e n o u c i l i s t e . h r ' ) ;  
     }  
 } 
