ÿþf u n c t i o n   C r u m b ( P a t h ,   N a m e ,   U r l )   {  
   	 t h i s . P a t h 	 =   P a t h ;  
   	 t h i s . N a m e 	 =   N a m e ;  
   	 t h i s . U r l 	 =   U r l ;  
 }  
  
 B a g O C r u m b s   =   n e w   A r r a y ( ) ;  
  
 / /   a d d   n e w   d i r e c t o r i e s   h e r e .     t h e   f o r m a t :  
 / /   P a t h :   t h e   n a m e   o f   t h e   d i r e c t o r y  
 / /   N a m e :   t h e   t e x t   y o u   w a n t   t o   d i s p l a y   o n s c r e e n  
 / /   U r l :     t h e   U R L   t o   t h e   p a g e   f o r   t h i s   g r o u p   p a g e   o r   b o o k  
  
 B a g O C r u m b s [ 0 ]   =   n e w   C r u m b ( " n a v i g a t i o n " ,   " n a v i g a t i o n   s c r i p t s " ,   " / n a v i g a t i o n / " ) ;  
 B a g O C r u m b s [ 1 ]   =   n e w   C r u m b ( " b r e a d c r u m b _ t r a i l s " ,   " b r e a d c r u m b   t r a i l s " ,   " / b r e a d c r u m b _ t r a i l s / a b o u t _ b r e a d c r u m b _ t r a i l s . h t m " ) ;  
 B a g O C r u m b s [ 2 ]   =   n e w   C r u m b ( " b r e a d c r u m b _ d e m o " ,   " b r e a d c r u m b   d e m o " ,   " / d e m o s / d e m o s . h t m " ) ;  
  
 / /   . . .   w e   b u i l d   t h e   p a t h   a n d   d i s p l a y   i t  
  
 v a r   i ,   x ;  
 / /   t h e   c h a r a c t e r   b e l o w   d i s p l a y s   b e t w e e n   t h e   d i r e c t o r i e s ;   y o u   c a n   c h a n g e   i t   i f   y o u   l i k e .  
 s t r C o n c a t   =   "   |   " ;  
 s t r U r l   =   d o c u m e n t . l o c a t i o n . h r e f ;  
 s t r L i s t   =   " < a   h r e f = ' i n d e x - e n g . h t m l ' > H o m e < / a > " ;  
 s t r D e b u g   =   " " ;  
 a r y D i r s   =   s t r U r l . s p l i t ( " / " ) ;  
 f o r   ( x = 0 ;   x   <   a r y D i r s . l e n g t h ;   x + + )   {  
 	   f o r ( i   =   0 ;   i   <   B a g O C r u m b s . l e n g t h ;   i + + )   {  
 	 	 	   i f   ( B a g O C r u m b s [ i ] . P a t h . t o L o w e r C a s e ( )   = =   a r y D i r s [ x ] . t o L o w e r C a s e ( ) )   {  
 	                                             s t r L i s t   + =   s t r C o n c a t   +   " < a   h r e f = ' "   +   B a g O C r u m b s [ i ] . U r l   +   " ' > "   +   B a g O C r u m b s [ i ] . N a m e   +   " < / a > " ;  
 	 	 	   i   =   B a g O C r u m b s . l e n g t h ;  
 	 	 }  
 }  
 }  
  
 / /   c o m m e n t   o u t   t h e   n e x t   l i n e   t o   e l i m i n a t e   t h e   d i s p l a y   o f   t h e   d o c u m e n t ' s   t i t l e  
 / /   t h e   c h a r a c t e r   b e l o w   d i s p l a y s   b e t w e e n   t h e   d i r e c t o r y   a n d   t h e   d o c u m e n t ' s   t i t l e ;   y o u   c a n   c h a n g e   i t   i f   y o u   l i k e .  
  
 s t r L i s t   + =   "   º%  "   +   d o c u m e n t . t i t l e ;  
 d o c u m e n t . w r i t e ( s t r L i s t ) ; 
